configure 683 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for expat 2.6.4.
  4. #
  5. # Report bugs to <https://github.com/libexpat/libexpat/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and
  256. $0: https://github.com/libexpat/libexpat/issues about your
  257. $0: system, including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='expat'
  565. PACKAGE_TARNAME='expat'
  566. PACKAGE_VERSION='2.6.4'
  567. PACKAGE_STRING='expat 2.6.4'
  568. PACKAGE_BUGREPORT='https://github.com/libexpat/libexpat/issues'
  569. PACKAGE_URL=''
  570. ac_unique_file="Makefile.in"
  571. # Factoring default headers for most tests.
  572. ac_includes_default="\
  573. #include <stddef.h>
  574. #ifdef HAVE_STDIO_H
  575. # include <stdio.h>
  576. #endif
  577. #ifdef HAVE_STDLIB_H
  578. # include <stdlib.h>
  579. #endif
  580. #ifdef HAVE_STRING_H
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_INTTYPES_H
  584. # include <inttypes.h>
  585. #endif
  586. #ifdef HAVE_STDINT_H
  587. # include <stdint.h>
  588. #endif
  589. #ifdef HAVE_STRINGS_H
  590. # include <strings.h>
  591. #endif
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef HAVE_UNISTD_H
  599. # include <unistd.h>
  600. #endif"
  601. ac_header_c_list=
  602. ac_func_c_list=
  603. ac_subst_vars='am__EXEEXT_FALSE
  604. am__EXEEXT_TRUE
  605. LTLIBOBJS
  606. LIBOBJS
  607. CMAKE_SHARED_LIBRARY_PREFIX
  608. AM_LDFLAGS
  609. AM_CXXFLAGS
  610. AM_CFLAGS
  611. AM_CPPFLAGS
  612. SIZEOF_VOID_P
  613. SO_PATCH
  614. SO_MINOR
  615. SO_MAJOR
  616. LIBDIR_BASENAME
  617. EXPAT_CHAR_TYPE
  618. EXPAT_CONTEXT_BYTES
  619. EXPAT_NS
  620. EXPAT_MIN_SIZE
  621. EXPAT_LARGE_SIZE
  622. EXPAT_DTD
  623. EXPAT_ATTR_INFO
  624. WITH_DISTRIBUTABLE_MANPAGE_FALSE
  625. WITH_DISTRIBUTABLE_MANPAGE_TRUE
  626. WITH_PREBUILT_MANPAGE_FALSE
  627. WITH_PREBUILT_MANPAGE_TRUE
  628. WITH_MANPAGE_FALSE
  629. WITH_MANPAGE_TRUE
  630. DOCBOOK_TO_MAN
  631. FILEMAP
  632. LIBM
  633. _INTERNAL_LARGE_SIZE_FALSE
  634. _INTERNAL_LARGE_SIZE_TRUE
  635. _INTERNAL_MIN_SIZE_FALSE
  636. _INTERNAL_MIN_SIZE_TRUE
  637. _INTERNAL_UNICODE_WCHAR_T_FALSE
  638. _INTERNAL_UNICODE_WCHAR_T_TRUE
  639. UNICODE_FALSE
  640. UNICODE_TRUE
  641. MINGW_FALSE
  642. MINGW_TRUE
  643. HAVE_CXX11
  644. WITH_TESTS_FALSE
  645. WITH_TESTS_TRUE
  646. WITH_EXAMPLES_FALSE
  647. WITH_EXAMPLES_TRUE
  648. WITH_XMLWF_FALSE
  649. WITH_XMLWF_TRUE
  650. CXXCPP
  651. am__fastdepCXX_FALSE
  652. am__fastdepCXX_TRUE
  653. CXXDEPMODE
  654. ac_ct_CXX
  655. CXXFLAGS
  656. CXX
  657. LIBAGE
  658. LIBREVISION
  659. LIBCURRENT
  660. LT_SYS_LIBRARY_PATH
  661. OTOOL64
  662. OTOOL
  663. LIPO
  664. NMEDIT
  665. DSYMUTIL
  666. MANIFEST_TOOL
  667. RANLIB
  668. FILECMD
  669. NM
  670. ac_ct_DUMPBIN
  671. DUMPBIN
  672. LD
  673. FGREP
  674. EGREP
  675. GREP
  676. SED
  677. LIBTOOL
  678. OBJDUMP
  679. DLLTOOL
  680. AS
  681. LN_S
  682. am__fastdepCC_FALSE
  683. am__fastdepCC_TRUE
  684. CCDEPMODE
  685. am__nodep
  686. AMDEPBACKSLASH
  687. AMDEP_FALSE
  688. AMDEP_TRUE
  689. am__include
  690. DEPDIR
  691. OBJEXT
  692. EXEEXT
  693. ac_ct_CC
  694. CPPFLAGS
  695. LDFLAGS
  696. CFLAGS
  697. CC
  698. ac_ct_AR
  699. AR
  700. MAINT
  701. MAINTAINER_MODE_FALSE
  702. MAINTAINER_MODE_TRUE
  703. AM_BACKSLASH
  704. AM_DEFAULT_VERBOSITY
  705. AM_DEFAULT_V
  706. AM_V
  707. CSCOPE
  708. ETAGS
  709. CTAGS
  710. am__untar
  711. am__tar
  712. AMTAR
  713. am__leading_dot
  714. SET_MAKE
  715. AWK
  716. mkdir_p
  717. MKDIR_P
  718. INSTALL_STRIP_PROGRAM
  719. STRIP
  720. install_sh
  721. MAKEINFO
  722. AUTOHEADER
  723. AUTOMAKE
  724. AUTOCONF
  725. ACLOCAL
  726. VERSION
  727. PACKAGE
  728. CYGPATH_W
  729. am__isrc
  730. INSTALL_DATA
  731. INSTALL_SCRIPT
  732. INSTALL_PROGRAM
  733. host_os
  734. host_vendor
  735. host_cpu
  736. host
  737. build_os
  738. build_vendor
  739. build_cpu
  740. build
  741. target_alias
  742. host_alias
  743. build_alias
  744. LIBS
  745. ECHO_T
  746. ECHO_N
  747. ECHO_C
  748. DEFS
  749. mandir
  750. localedir
  751. libdir
  752. psdir
  753. pdfdir
  754. dvidir
  755. htmldir
  756. infodir
  757. docdir
  758. oldincludedir
  759. includedir
  760. runstatedir
  761. localstatedir
  762. sharedstatedir
  763. sysconfdir
  764. datadir
  765. datarootdir
  766. libexecdir
  767. sbindir
  768. bindir
  769. program_transform_name
  770. prefix
  771. exec_prefix
  772. PACKAGE_URL
  773. PACKAGE_BUGREPORT
  774. PACKAGE_STRING
  775. PACKAGE_VERSION
  776. PACKAGE_TARNAME
  777. PACKAGE_NAME
  778. PATH_SEPARATOR
  779. SHELL
  780. am__quote'
  781. ac_subst_files='PACKAGE_INIT'
  782. ac_user_opts='
  783. enable_option_checking
  784. enable_silent_rules
  785. enable_maintainer_mode
  786. enable_dependency_tracking
  787. enable_shared
  788. enable_static
  789. enable_pic
  790. with_pic
  791. enable_fast_install
  792. enable_aix_soname
  793. with_aix_soname
  794. with_gnu_ld
  795. with_sysroot
  796. enable_libtool_lock
  797. with_xmlwf
  798. with_examples
  799. with_tests
  800. with_libbsd
  801. with_getrandom
  802. with_sys_getrandom
  803. enable_xml_attr_info
  804. enable_xml_context
  805. with_docbook
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. LT_SYS_LIBRARY_PATH
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CXXCPP
  820. DOCBOOK_TO_MAN'
  821. # Initialize some variables set by options.
  822. ac_init_help=
  823. ac_init_version=false
  824. ac_unrecognized_opts=
  825. ac_unrecognized_sep=
  826. # The variables have the same names as the options, with
  827. # dashes changed to underlines.
  828. cache_file=/dev/null
  829. exec_prefix=NONE
  830. no_create=
  831. no_recursion=
  832. prefix=NONE
  833. program_prefix=NONE
  834. program_suffix=NONE
  835. program_transform_name=s,x,x,
  836. silent=
  837. site=
  838. srcdir=
  839. verbose=
  840. x_includes=NONE
  841. x_libraries=NONE
  842. # Installation directory options.
  843. # These are left unexpanded so users can "make install exec_prefix=/foo"
  844. # and all the variables that are supposed to be based on exec_prefix
  845. # by default will actually change.
  846. # Use braces instead of parens because sh, perl, etc. also accept them.
  847. # (The list follows the same order as the GNU Coding Standards.)
  848. bindir='${exec_prefix}/bin'
  849. sbindir='${exec_prefix}/sbin'
  850. libexecdir='${exec_prefix}/libexec'
  851. datarootdir='${prefix}/share'
  852. datadir='${datarootdir}'
  853. sysconfdir='${prefix}/etc'
  854. sharedstatedir='${prefix}/com'
  855. localstatedir='${prefix}/var'
  856. runstatedir='${localstatedir}/run'
  857. includedir='${prefix}/include'
  858. oldincludedir='/usr/include'
  859. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  860. infodir='${datarootdir}/info'
  861. htmldir='${docdir}'
  862. dvidir='${docdir}'
  863. pdfdir='${docdir}'
  864. psdir='${docdir}'
  865. libdir='${exec_prefix}/lib'
  866. localedir='${datarootdir}/locale'
  867. mandir='${datarootdir}/man'
  868. ac_prev=
  869. ac_dashdash=
  870. for ac_option
  871. do
  872. # If the previous option needs an argument, assign it.
  873. if test -n "$ac_prev"; then
  874. eval $ac_prev=\$ac_option
  875. ac_prev=
  876. continue
  877. fi
  878. case $ac_option in
  879. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  880. *=) ac_optarg= ;;
  881. *) ac_optarg=yes ;;
  882. esac
  883. case $ac_dashdash$ac_option in
  884. --)
  885. ac_dashdash=yes ;;
  886. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  887. ac_prev=bindir ;;
  888. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  889. bindir=$ac_optarg ;;
  890. -build | --build | --buil | --bui | --bu)
  891. ac_prev=build_alias ;;
  892. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  893. build_alias=$ac_optarg ;;
  894. -cache-file | --cache-file | --cache-fil | --cache-fi \
  895. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  896. ac_prev=cache_file ;;
  897. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  898. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  899. cache_file=$ac_optarg ;;
  900. --config-cache | -C)
  901. cache_file=config.cache ;;
  902. -datadir | --datadir | --datadi | --datad)
  903. ac_prev=datadir ;;
  904. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  905. datadir=$ac_optarg ;;
  906. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  907. | --dataroo | --dataro | --datar)
  908. ac_prev=datarootdir ;;
  909. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  910. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  911. datarootdir=$ac_optarg ;;
  912. -disable-* | --disable-*)
  913. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  914. # Reject names that are not valid shell variable names.
  915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  916. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  917. ac_useropt_orig=$ac_useropt
  918. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  919. case $ac_user_opts in
  920. *"
  921. "enable_$ac_useropt"
  922. "*) ;;
  923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  924. ac_unrecognized_sep=', ';;
  925. esac
  926. eval enable_$ac_useropt=no ;;
  927. -docdir | --docdir | --docdi | --doc | --do)
  928. ac_prev=docdir ;;
  929. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  930. docdir=$ac_optarg ;;
  931. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  932. ac_prev=dvidir ;;
  933. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  934. dvidir=$ac_optarg ;;
  935. -enable-* | --enable-*)
  936. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  937. # Reject names that are not valid shell variable names.
  938. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  939. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  940. ac_useropt_orig=$ac_useropt
  941. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  942. case $ac_user_opts in
  943. *"
  944. "enable_$ac_useropt"
  945. "*) ;;
  946. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  947. ac_unrecognized_sep=', ';;
  948. esac
  949. eval enable_$ac_useropt=\$ac_optarg ;;
  950. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  951. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  952. | --exec | --exe | --ex)
  953. ac_prev=exec_prefix ;;
  954. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  955. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  956. | --exec=* | --exe=* | --ex=*)
  957. exec_prefix=$ac_optarg ;;
  958. -gas | --gas | --ga | --g)
  959. # Obsolete; use --with-gas.
  960. with_gas=yes ;;
  961. -help | --help | --hel | --he | -h)
  962. ac_init_help=long ;;
  963. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  964. ac_init_help=recursive ;;
  965. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  966. ac_init_help=short ;;
  967. -host | --host | --hos | --ho)
  968. ac_prev=host_alias ;;
  969. -host=* | --host=* | --hos=* | --ho=*)
  970. host_alias=$ac_optarg ;;
  971. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  972. ac_prev=htmldir ;;
  973. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  974. | --ht=*)
  975. htmldir=$ac_optarg ;;
  976. -includedir | --includedir | --includedi | --included | --include \
  977. | --includ | --inclu | --incl | --inc)
  978. ac_prev=includedir ;;
  979. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  980. | --includ=* | --inclu=* | --incl=* | --inc=*)
  981. includedir=$ac_optarg ;;
  982. -infodir | --infodir | --infodi | --infod | --info | --inf)
  983. ac_prev=infodir ;;
  984. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  985. infodir=$ac_optarg ;;
  986. -libdir | --libdir | --libdi | --libd)
  987. ac_prev=libdir ;;
  988. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  989. libdir=$ac_optarg ;;
  990. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  991. | --libexe | --libex | --libe)
  992. ac_prev=libexecdir ;;
  993. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  994. | --libexe=* | --libex=* | --libe=*)
  995. libexecdir=$ac_optarg ;;
  996. -localedir | --localedir | --localedi | --localed | --locale)
  997. ac_prev=localedir ;;
  998. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  999. localedir=$ac_optarg ;;
  1000. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1001. | --localstate | --localstat | --localsta | --localst | --locals)
  1002. ac_prev=localstatedir ;;
  1003. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1004. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1005. localstatedir=$ac_optarg ;;
  1006. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1007. ac_prev=mandir ;;
  1008. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1009. mandir=$ac_optarg ;;
  1010. -nfp | --nfp | --nf)
  1011. # Obsolete; use --without-fp.
  1012. with_fp=no ;;
  1013. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1014. | --no-cr | --no-c | -n)
  1015. no_create=yes ;;
  1016. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1017. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1018. no_recursion=yes ;;
  1019. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1020. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1021. | --oldin | --oldi | --old | --ol | --o)
  1022. ac_prev=oldincludedir ;;
  1023. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1024. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1025. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1026. oldincludedir=$ac_optarg ;;
  1027. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1028. ac_prev=prefix ;;
  1029. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1030. prefix=$ac_optarg ;;
  1031. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1032. | --program-pre | --program-pr | --program-p)
  1033. ac_prev=program_prefix ;;
  1034. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1035. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1036. program_prefix=$ac_optarg ;;
  1037. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1038. | --program-suf | --program-su | --program-s)
  1039. ac_prev=program_suffix ;;
  1040. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1041. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1042. program_suffix=$ac_optarg ;;
  1043. -program-transform-name | --program-transform-name \
  1044. | --program-transform-nam | --program-transform-na \
  1045. | --program-transform-n | --program-transform- \
  1046. | --program-transform | --program-transfor \
  1047. | --program-transfo | --program-transf \
  1048. | --program-trans | --program-tran \
  1049. | --progr-tra | --program-tr | --program-t)
  1050. ac_prev=program_transform_name ;;
  1051. -program-transform-name=* | --program-transform-name=* \
  1052. | --program-transform-nam=* | --program-transform-na=* \
  1053. | --program-transform-n=* | --program-transform-=* \
  1054. | --program-transform=* | --program-transfor=* \
  1055. | --program-transfo=* | --program-transf=* \
  1056. | --program-trans=* | --program-tran=* \
  1057. | --progr-tra=* | --program-tr=* | --program-t=*)
  1058. program_transform_name=$ac_optarg ;;
  1059. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1060. ac_prev=pdfdir ;;
  1061. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1062. pdfdir=$ac_optarg ;;
  1063. -psdir | --psdir | --psdi | --psd | --ps)
  1064. ac_prev=psdir ;;
  1065. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1066. psdir=$ac_optarg ;;
  1067. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1068. | -silent | --silent | --silen | --sile | --sil)
  1069. silent=yes ;;
  1070. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1071. | --runstate | --runstat | --runsta | --runst | --runs \
  1072. | --run | --ru | --r)
  1073. ac_prev=runstatedir ;;
  1074. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1075. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1076. | --run=* | --ru=* | --r=*)
  1077. runstatedir=$ac_optarg ;;
  1078. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1079. ac_prev=sbindir ;;
  1080. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1081. | --sbi=* | --sb=*)
  1082. sbindir=$ac_optarg ;;
  1083. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1084. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1085. | --sharedst | --shareds | --shared | --share | --shar \
  1086. | --sha | --sh)
  1087. ac_prev=sharedstatedir ;;
  1088. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1089. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1090. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1091. | --sha=* | --sh=*)
  1092. sharedstatedir=$ac_optarg ;;
  1093. -site | --site | --sit)
  1094. ac_prev=site ;;
  1095. -site=* | --site=* | --sit=*)
  1096. site=$ac_optarg ;;
  1097. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1098. ac_prev=srcdir ;;
  1099. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1100. srcdir=$ac_optarg ;;
  1101. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1102. | --syscon | --sysco | --sysc | --sys | --sy)
  1103. ac_prev=sysconfdir ;;
  1104. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1105. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1106. sysconfdir=$ac_optarg ;;
  1107. -target | --target | --targe | --targ | --tar | --ta | --t)
  1108. ac_prev=target_alias ;;
  1109. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1110. target_alias=$ac_optarg ;;
  1111. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1112. verbose=yes ;;
  1113. -version | --version | --versio | --versi | --vers | -V)
  1114. ac_init_version=: ;;
  1115. -with-* | --with-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=\$ac_optarg ;;
  1130. -without-* | --without-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=no ;;
  1145. --x)
  1146. # Obsolete; use --with-x.
  1147. with_x=yes ;;
  1148. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1149. | --x-incl | --x-inc | --x-in | --x-i)
  1150. ac_prev=x_includes ;;
  1151. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1152. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1153. x_includes=$ac_optarg ;;
  1154. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1155. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1156. ac_prev=x_libraries ;;
  1157. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1158. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1159. x_libraries=$ac_optarg ;;
  1160. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1161. Try \`$0 --help' for more information"
  1162. ;;
  1163. *=*)
  1164. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1165. # Reject names that are not valid shell variable names.
  1166. case $ac_envvar in #(
  1167. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1168. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1169. esac
  1170. eval $ac_envvar=\$ac_optarg
  1171. export $ac_envvar ;;
  1172. *)
  1173. # FIXME: should be removed in autoconf 3.0.
  1174. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1175. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1176. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1177. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1178. ;;
  1179. esac
  1180. done
  1181. if test -n "$ac_prev"; then
  1182. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1183. as_fn_error $? "missing argument to $ac_option"
  1184. fi
  1185. if test -n "$ac_unrecognized_opts"; then
  1186. case $enable_option_checking in
  1187. no) ;;
  1188. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1189. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1190. esac
  1191. fi
  1192. # Check all directory arguments for consistency.
  1193. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1194. datadir sysconfdir sharedstatedir localstatedir includedir \
  1195. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1196. libdir localedir mandir runstatedir
  1197. do
  1198. eval ac_val=\$$ac_var
  1199. # Remove trailing slashes.
  1200. case $ac_val in
  1201. */ )
  1202. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1203. eval $ac_var=\$ac_val;;
  1204. esac
  1205. # Be sure to have absolute directory names.
  1206. case $ac_val in
  1207. [\\/$]* | ?:[\\/]* ) continue;;
  1208. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1209. esac
  1210. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1211. done
  1212. # There might be people who depend on the old broken behavior: `$host'
  1213. # used to hold the argument of --host etc.
  1214. # FIXME: To remove some day.
  1215. build=$build_alias
  1216. host=$host_alias
  1217. target=$target_alias
  1218. # FIXME: To remove some day.
  1219. if test "x$host_alias" != x; then
  1220. if test "x$build_alias" = x; then
  1221. cross_compiling=maybe
  1222. elif test "x$build_alias" != "x$host_alias"; then
  1223. cross_compiling=yes
  1224. fi
  1225. fi
  1226. ac_tool_prefix=
  1227. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1228. test "$silent" = yes && exec 6>/dev/null
  1229. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1230. ac_ls_di=`ls -di .` &&
  1231. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1232. as_fn_error $? "working directory cannot be determined"
  1233. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1234. as_fn_error $? "pwd does not report name of working directory"
  1235. # Find the source files, if location was not specified.
  1236. if test -z "$srcdir"; then
  1237. ac_srcdir_defaulted=yes
  1238. # Try the directory containing this script, then the parent directory.
  1239. ac_confdir=`$as_dirname -- "$as_myself" ||
  1240. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1241. X"$as_myself" : 'X\(//\)[^/]' \| \
  1242. X"$as_myself" : 'X\(//\)$' \| \
  1243. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1244. printf "%s\n" X"$as_myself" |
  1245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\/\)[^/].*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\/\)$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\).*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. s/.*/./; q'`
  1262. srcdir=$ac_confdir
  1263. if test ! -r "$srcdir/$ac_unique_file"; then
  1264. srcdir=..
  1265. fi
  1266. else
  1267. ac_srcdir_defaulted=no
  1268. fi
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1271. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1272. fi
  1273. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1274. ac_abs_confdir=`(
  1275. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1276. pwd)`
  1277. # When building in place, set srcdir=.
  1278. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1279. srcdir=.
  1280. fi
  1281. # Remove unnecessary trailing slashes from srcdir.
  1282. # Double slashes in file names in object file debugging info
  1283. # mess up M-x gdb in Emacs.
  1284. case $srcdir in
  1285. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1286. esac
  1287. for ac_var in $ac_precious_vars; do
  1288. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1289. eval ac_env_${ac_var}_value=\$${ac_var}
  1290. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1291. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1292. done
  1293. #
  1294. # Report the --help message.
  1295. #
  1296. if test "$ac_init_help" = "long"; then
  1297. # Omit some internal or obsolete options to make the list less imposing.
  1298. # This message is too long to be a string in the A/UX 3.1 sh.
  1299. cat <<_ACEOF
  1300. \`configure' configures expat 2.6.4 to adapt to many kinds of systems.
  1301. Usage: $0 [OPTION]... [VAR=VALUE]...
  1302. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1303. VAR=VALUE. See below for descriptions of some of the useful variables.
  1304. Defaults for the options are specified in brackets.
  1305. Configuration:
  1306. -h, --help display this help and exit
  1307. --help=short display options specific to this package
  1308. --help=recursive display the short help of all the included packages
  1309. -V, --version display version information and exit
  1310. -q, --quiet, --silent do not print \`checking ...' messages
  1311. --cache-file=FILE cache test results in FILE [disabled]
  1312. -C, --config-cache alias for \`--cache-file=config.cache'
  1313. -n, --no-create do not create output files
  1314. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1315. Installation directories:
  1316. --prefix=PREFIX install architecture-independent files in PREFIX
  1317. [$ac_default_prefix]
  1318. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1319. [PREFIX]
  1320. By default, \`make install' will install all the files in
  1321. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1322. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1323. for instance \`--prefix=\$HOME'.
  1324. For better control, use the options below.
  1325. Fine tuning of the installation directories:
  1326. --bindir=DIR user executables [EPREFIX/bin]
  1327. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1328. --libexecdir=DIR program executables [EPREFIX/libexec]
  1329. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1330. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1331. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1332. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1333. --libdir=DIR object code libraries [EPREFIX/lib]
  1334. --includedir=DIR C header files [PREFIX/include]
  1335. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1336. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1337. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1338. --infodir=DIR info documentation [DATAROOTDIR/info]
  1339. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1340. --mandir=DIR man documentation [DATAROOTDIR/man]
  1341. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1342. --htmldir=DIR html documentation [DOCDIR]
  1343. --dvidir=DIR dvi documentation [DOCDIR]
  1344. --pdfdir=DIR pdf documentation [DOCDIR]
  1345. --psdir=DIR ps documentation [DOCDIR]
  1346. _ACEOF
  1347. cat <<\_ACEOF
  1348. Program names:
  1349. --program-prefix=PREFIX prepend PREFIX to installed program names
  1350. --program-suffix=SUFFIX append SUFFIX to installed program names
  1351. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1352. System types:
  1353. --build=BUILD configure for building on BUILD [guessed]
  1354. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1355. _ACEOF
  1356. fi
  1357. if test -n "$ac_init_help"; then
  1358. case $ac_init_help in
  1359. short | recursive ) echo "Configuration of expat 2.6.4:";;
  1360. esac
  1361. cat <<\_ACEOF
  1362. Optional Features:
  1363. --disable-option-checking ignore unrecognized --enable/--with options
  1364. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1365. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1366. --enable-silent-rules less verbose build output (undo: "make V=1")
  1367. --disable-silent-rules verbose build output (undo: "make V=0")
  1368. --disable-maintainer-mode
  1369. disable make rules and dependencies not useful (and
  1370. sometimes confusing) to the casual installer
  1371. --enable-dependency-tracking
  1372. do not reject slow dependency extractors
  1373. --disable-dependency-tracking
  1374. speeds up one-time build
  1375. --enable-shared[=PKGS] build shared libraries [default=yes]
  1376. --enable-static[=PKGS] build static libraries [default=yes]
  1377. --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1378. both]
  1379. --enable-fast-install[=PKGS]
  1380. optimize for fast installation [default=yes]
  1381. --enable-aix-soname=aix|svr4|both
  1382. shared library versioning (aka "SONAME") variant to
  1383. provide on AIX, [default=aix].
  1384. --disable-libtool-lock avoid locking (might break parallel builds)
  1385. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1386. names and values [default=no]
  1387. --enable-xml-context [COUNT]
  1388. Retain context around the current parse point;
  1389. default is enabled and a size of 1024 bytes
  1390. --disable-xml-context Do not retain context around the current parse point
  1391. Optional Packages:
  1392. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1393. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1394. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1395. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1396. compiler's sysroot if not specified).
  1397. --without-xmlwf do not build xmlwf
  1398. --without-examples do not build examples [default=included]
  1399. --without-tests do not build tests [default=included]
  1400. --with-libbsd utilize libbsd (for arc4random_buf)
  1401. --with-getrandom enforce the use of getrandom function in the system
  1402. [default=check]
  1403. --without-getrandom skip auto detect of getrandom [default=check]
  1404. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1405. the system [default=check]
  1406. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1407. [default=check]
  1408. --with-docbook enforce XML to man page compilation [default=check]
  1409. --without-docbook skip XML to man page compilation [default=check]
  1410. Some influential environment variables:
  1411. CC C compiler command
  1412. CFLAGS C compiler flags
  1413. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1414. nonstandard directory <lib dir>
  1415. LIBS libraries to pass to the linker, e.g. -l<library>
  1416. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1417. you have headers in a nonstandard directory <include dir>
  1418. LT_SYS_LIBRARY_PATH
  1419. User-defined run-time library search path.
  1420. CXX C++ compiler command
  1421. CXXFLAGS C++ compiler flags
  1422. CXXCPP C++ preprocessor
  1423. DOCBOOK_TO_MAN
  1424. docbook2x-man command
  1425. Use these variables to override the choices made by `configure' or to help
  1426. it to find libraries and programs with nonstandard names/locations.
  1427. Report bugs to <https://github.com/libexpat/libexpat/issues>.
  1428. _ACEOF
  1429. ac_status=$?
  1430. fi
  1431. if test "$ac_init_help" = "recursive"; then
  1432. # If there are subdirs, report their specific --help.
  1433. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1434. test -d "$ac_dir" ||
  1435. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1436. continue
  1437. ac_builddir=.
  1438. case "$ac_dir" in
  1439. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1440. *)
  1441. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1442. # A ".." for each directory in $ac_dir_suffix.
  1443. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1444. case $ac_top_builddir_sub in
  1445. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1446. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1447. esac ;;
  1448. esac
  1449. ac_abs_top_builddir=$ac_pwd
  1450. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1451. # for backward compatibility:
  1452. ac_top_builddir=$ac_top_build_prefix
  1453. case $srcdir in
  1454. .) # We are building in place.
  1455. ac_srcdir=.
  1456. ac_top_srcdir=$ac_top_builddir_sub
  1457. ac_abs_top_srcdir=$ac_pwd ;;
  1458. [\\/]* | ?:[\\/]* ) # Absolute name.
  1459. ac_srcdir=$srcdir$ac_dir_suffix;
  1460. ac_top_srcdir=$srcdir
  1461. ac_abs_top_srcdir=$srcdir ;;
  1462. *) # Relative name.
  1463. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1464. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1465. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1466. esac
  1467. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1468. cd "$ac_dir" || { ac_status=$?; continue; }
  1469. # Check for configure.gnu first; this name is used for a wrapper for
  1470. # Metaconfig's "Configure" on case-insensitive file systems.
  1471. if test -f "$ac_srcdir/configure.gnu"; then
  1472. echo &&
  1473. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1474. elif test -f "$ac_srcdir/configure"; then
  1475. echo &&
  1476. $SHELL "$ac_srcdir/configure" --help=recursive
  1477. else
  1478. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1479. fi || ac_status=$?
  1480. cd "$ac_pwd" || { ac_status=$?; break; }
  1481. done
  1482. fi
  1483. test -n "$ac_init_help" && exit $ac_status
  1484. if $ac_init_version; then
  1485. cat <<\_ACEOF
  1486. expat configure 2.6.4
  1487. generated by GNU Autoconf 2.71
  1488. Copyright (C) 2021 Free Software Foundation, Inc.
  1489. This configure script is free software; the Free Software Foundation
  1490. gives unlimited permission to copy, distribute and modify it.
  1491. _ACEOF
  1492. exit
  1493. fi
  1494. ## ------------------------ ##
  1495. ## Autoconf initialization. ##
  1496. ## ------------------------ ##
  1497. # ac_fn_c_try_compile LINENO
  1498. # --------------------------
  1499. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. rm -f conftest.$ac_objext conftest.beam
  1504. if { { ac_try="$ac_compile"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. printf "%s\n" "$ac_try_echo"; } >&5
  1511. (eval "$ac_compile") 2>conftest.err
  1512. ac_status=$?
  1513. if test -s conftest.err; then
  1514. grep -v '^ *+' conftest.err >conftest.er1
  1515. cat conftest.er1 >&5
  1516. mv -f conftest.er1 conftest.err
  1517. fi
  1518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && {
  1520. test -z "$ac_c_werror_flag" ||
  1521. test ! -s conftest.err
  1522. } && test -s conftest.$ac_objext
  1523. then :
  1524. ac_retval=0
  1525. else $as_nop
  1526. printf "%s\n" "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. ac_retval=1
  1529. fi
  1530. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1531. as_fn_set_status $ac_retval
  1532. } # ac_fn_c_try_compile
  1533. # ac_fn_c_try_link LINENO
  1534. # -----------------------
  1535. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_c_try_link ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1540. if { { ac_try="$ac_link"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. printf "%s\n" "$ac_try_echo"; } >&5
  1547. (eval "$ac_link") 2>conftest.err
  1548. ac_status=$?
  1549. if test -s conftest.err; then
  1550. grep -v '^ *+' conftest.err >conftest.er1
  1551. cat conftest.er1 >&5
  1552. mv -f conftest.er1 conftest.err
  1553. fi
  1554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && {
  1556. test -z "$ac_c_werror_flag" ||
  1557. test ! -s conftest.err
  1558. } && test -s conftest$ac_exeext && {
  1559. test "$cross_compiling" = yes ||
  1560. test -x conftest$ac_exeext
  1561. }
  1562. then :
  1563. ac_retval=0
  1564. else $as_nop
  1565. printf "%s\n" "$as_me: failed program was:" >&5
  1566. sed 's/^/| /' conftest.$ac_ext >&5
  1567. ac_retval=1
  1568. fi
  1569. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1570. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1571. # interfere with the next link command; also delete a directory that is
  1572. # left behind by Apple's compiler. We do this before executing the actions.
  1573. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1574. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1575. as_fn_set_status $ac_retval
  1576. } # ac_fn_c_try_link
  1577. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1578. # -------------------------------------------------------
  1579. # Tests whether HEADER exists and can be compiled using the include files in
  1580. # INCLUDES, setting the cache variable VAR accordingly.
  1581. ac_fn_c_check_header_compile ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. printf %s "checking for $2... " >&6; }
  1586. if eval test \${$3+y}
  1587. then :
  1588. printf %s "(cached) " >&6
  1589. else $as_nop
  1590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end confdefs.h. */
  1592. $4
  1593. #include <$2>
  1594. _ACEOF
  1595. if ac_fn_c_try_compile "$LINENO"
  1596. then :
  1597. eval "$3=yes"
  1598. else $as_nop
  1599. eval "$3=no"
  1600. fi
  1601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  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 $as_nop
  1620. 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 $as_nop
  1654. eval "$3=no"
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1657. conftest$ac_exeext conftest.$ac_ext
  1658. fi
  1659. eval ac_res=\$$3
  1660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1661. printf "%s\n" "$ac_res" >&6; }
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. } # ac_fn_c_check_func
  1664. # ac_fn_cxx_try_compile LINENO
  1665. # ----------------------------
  1666. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1667. ac_fn_cxx_try_compile ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. rm -f conftest.$ac_objext conftest.beam
  1671. if { { ac_try="$ac_compile"
  1672. case "(($ac_try" in
  1673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1674. *) ac_try_echo=$ac_try;;
  1675. esac
  1676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1677. printf "%s\n" "$ac_try_echo"; } >&5
  1678. (eval "$ac_compile") 2>conftest.err
  1679. ac_status=$?
  1680. if test -s conftest.err; then
  1681. grep -v '^ *+' conftest.err >conftest.er1
  1682. cat conftest.er1 >&5
  1683. mv -f conftest.er1 conftest.err
  1684. fi
  1685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } && {
  1687. test -z "$ac_cxx_werror_flag" ||
  1688. test ! -s conftest.err
  1689. } && test -s conftest.$ac_objext
  1690. then :
  1691. ac_retval=0
  1692. else $as_nop
  1693. printf "%s\n" "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } # ac_fn_cxx_try_compile
  1700. # ac_fn_cxx_try_cpp LINENO
  1701. # ------------------------
  1702. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_cxx_try_cpp ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1707. case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. printf "%s\n" "$ac_try_echo"; } >&5
  1713. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1714. ac_status=$?
  1715. if test -s conftest.err; then
  1716. grep -v '^ *+' conftest.err >conftest.er1
  1717. cat conftest.er1 >&5
  1718. mv -f conftest.er1 conftest.err
  1719. fi
  1720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } > conftest.i && {
  1722. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1723. test ! -s conftest.err
  1724. }
  1725. then :
  1726. ac_retval=0
  1727. else $as_nop
  1728. printf "%s\n" "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730. ac_retval=1
  1731. fi
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. as_fn_set_status $ac_retval
  1734. } # ac_fn_cxx_try_cpp
  1735. # ac_fn_cxx_try_link LINENO
  1736. # -------------------------
  1737. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1738. ac_fn_cxx_try_link ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1742. if { { ac_try="$ac_link"
  1743. case "(($ac_try" in
  1744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1745. *) ac_try_echo=$ac_try;;
  1746. esac
  1747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1748. printf "%s\n" "$ac_try_echo"; } >&5
  1749. (eval "$ac_link") 2>conftest.err
  1750. ac_status=$?
  1751. if test -s conftest.err; then
  1752. grep -v '^ *+' conftest.err >conftest.er1
  1753. cat conftest.er1 >&5
  1754. mv -f conftest.er1 conftest.err
  1755. fi
  1756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1757. test $ac_status = 0; } && {
  1758. test -z "$ac_cxx_werror_flag" ||
  1759. test ! -s conftest.err
  1760. } && test -s conftest$ac_exeext && {
  1761. test "$cross_compiling" = yes ||
  1762. test -x conftest$ac_exeext
  1763. }
  1764. then :
  1765. ac_retval=0
  1766. else $as_nop
  1767. printf "%s\n" "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1772. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1773. # interfere with the next link command; also delete a directory that is
  1774. # left behind by Apple's compiler. We do this before executing the actions.
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_cxx_try_link
  1779. # ac_fn_c_try_run LINENO
  1780. # ----------------------
  1781. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1782. # executables *can* be run.
  1783. ac_fn_c_try_run ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. if { { ac_try="$ac_link"
  1787. case "(($ac_try" in
  1788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1789. *) ac_try_echo=$ac_try;;
  1790. esac
  1791. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1792. printf "%s\n" "$ac_try_echo"; } >&5
  1793. (eval "$ac_link") 2>&5
  1794. ac_status=$?
  1795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1797. { { case "(($ac_try" in
  1798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1799. *) ac_try_echo=$ac_try;;
  1800. esac
  1801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1802. printf "%s\n" "$ac_try_echo"; } >&5
  1803. (eval "$ac_try") 2>&5
  1804. ac_status=$?
  1805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; }; }
  1807. then :
  1808. ac_retval=0
  1809. else $as_nop
  1810. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1811. printf "%s\n" "$as_me: failed program was:" >&5
  1812. sed 's/^/| /' conftest.$ac_ext >&5
  1813. ac_retval=$ac_status
  1814. fi
  1815. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1816. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_c_try_run
  1819. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1820. # -------------------------------------------
  1821. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1822. # variable VAR accordingly.
  1823. ac_fn_c_check_type ()
  1824. {
  1825. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1827. printf %s "checking for $2... " >&6; }
  1828. if eval test \${$3+y}
  1829. then :
  1830. printf %s "(cached) " >&6
  1831. else $as_nop
  1832. eval "$3=no"
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. int
  1837. main (void)
  1838. {
  1839. if (sizeof ($2))
  1840. return 0;
  1841. ;
  1842. return 0;
  1843. }
  1844. _ACEOF
  1845. if ac_fn_c_try_compile "$LINENO"
  1846. then :
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. int
  1851. main (void)
  1852. {
  1853. if (sizeof (($2)))
  1854. return 0;
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"
  1860. then :
  1861. else $as_nop
  1862. eval "$3=yes"
  1863. fi
  1864. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1865. fi
  1866. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1867. fi
  1868. eval ac_res=\$$3
  1869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1870. printf "%s\n" "$ac_res" >&6; }
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. } # ac_fn_c_check_type
  1873. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1874. # --------------------------------------------
  1875. # Tries to find the compile-time value of EXPR in a program that includes
  1876. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1877. # computed
  1878. ac_fn_c_compute_int ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. if test "$cross_compiling" = yes; then
  1882. # Depending upon the size, compute the lo and hi bounds.
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. $4
  1886. int
  1887. main (void)
  1888. {
  1889. static int test_array [1 - 2 * !(($2) >= 0)];
  1890. test_array [0] = 0;
  1891. return test_array [0];
  1892. ;
  1893. return 0;
  1894. }
  1895. _ACEOF
  1896. if ac_fn_c_try_compile "$LINENO"
  1897. then :
  1898. ac_lo=0 ac_mid=0
  1899. while :; do
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. $4
  1903. int
  1904. main (void)
  1905. {
  1906. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1907. test_array [0] = 0;
  1908. return test_array [0];
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. if ac_fn_c_try_compile "$LINENO"
  1914. then :
  1915. ac_hi=$ac_mid; break
  1916. else $as_nop
  1917. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1918. if test $ac_lo -le $ac_mid; then
  1919. ac_lo= ac_hi=
  1920. break
  1921. fi
  1922. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1923. fi
  1924. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1925. done
  1926. else $as_nop
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. $4
  1930. int
  1931. main (void)
  1932. {
  1933. static int test_array [1 - 2 * !(($2) < 0)];
  1934. test_array [0] = 0;
  1935. return test_array [0];
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. if ac_fn_c_try_compile "$LINENO"
  1941. then :
  1942. ac_hi=-1 ac_mid=-1
  1943. while :; do
  1944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1945. /* end confdefs.h. */
  1946. $4
  1947. int
  1948. main (void)
  1949. {
  1950. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1951. test_array [0] = 0;
  1952. return test_array [0];
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_compile "$LINENO"
  1958. then :
  1959. ac_lo=$ac_mid; break
  1960. else $as_nop
  1961. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1962. if test $ac_mid -le $ac_hi; then
  1963. ac_lo= ac_hi=
  1964. break
  1965. fi
  1966. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1969. done
  1970. else $as_nop
  1971. ac_lo= ac_hi=
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1974. fi
  1975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1976. # Binary search between lo and hi bounds.
  1977. while test "x$ac_lo" != "x$ac_hi"; do
  1978. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $4
  1982. int
  1983. main (void)
  1984. {
  1985. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1986. test_array [0] = 0;
  1987. return test_array [0];
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"
  1993. then :
  1994. ac_hi=$ac_mid
  1995. else $as_nop
  1996. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1997. fi
  1998. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1999. done
  2000. case $ac_lo in #((
  2001. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2002. '') ac_retval=1 ;;
  2003. esac
  2004. else
  2005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2006. /* end confdefs.h. */
  2007. $4
  2008. static long int longval (void) { return $2; }
  2009. static unsigned long int ulongval (void) { return $2; }
  2010. #include <stdio.h>
  2011. #include <stdlib.h>
  2012. int
  2013. main (void)
  2014. {
  2015. FILE *f = fopen ("conftest.val", "w");
  2016. if (! f)
  2017. return 1;
  2018. if (($2) < 0)
  2019. {
  2020. long int i = longval ();
  2021. if (i != ($2))
  2022. return 1;
  2023. fprintf (f, "%ld", i);
  2024. }
  2025. else
  2026. {
  2027. unsigned long int i = ulongval ();
  2028. if (i != ($2))
  2029. return 1;
  2030. fprintf (f, "%lu", i);
  2031. }
  2032. /* Do not output a trailing newline, as this causes \r\n confusion
  2033. on some platforms. */
  2034. return ferror (f) || fclose (f) != 0;
  2035. ;
  2036. return 0;
  2037. }
  2038. _ACEOF
  2039. if ac_fn_c_try_run "$LINENO"
  2040. then :
  2041. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2042. else $as_nop
  2043. ac_retval=1
  2044. fi
  2045. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2046. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2047. rm -f conftest.val
  2048. fi
  2049. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2050. as_fn_set_status $ac_retval
  2051. } # ac_fn_c_compute_int
  2052. ac_configure_args_raw=
  2053. for ac_arg
  2054. do
  2055. case $ac_arg in
  2056. *\'*)
  2057. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2058. esac
  2059. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2060. done
  2061. case $ac_configure_args_raw in
  2062. *$as_nl*)
  2063. ac_safe_unquote= ;;
  2064. *)
  2065. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2066. ac_unsafe_a="$ac_unsafe_z#~"
  2067. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2068. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2069. esac
  2070. cat >config.log <<_ACEOF
  2071. This file contains any messages produced by compilers while
  2072. running configure, to aid debugging if configure makes a mistake.
  2073. It was created by expat $as_me 2.6.4, which was
  2074. generated by GNU Autoconf 2.71. Invocation command line was
  2075. $ $0$ac_configure_args_raw
  2076. _ACEOF
  2077. exec 5>>config.log
  2078. {
  2079. cat <<_ASUNAME
  2080. ## --------- ##
  2081. ## Platform. ##
  2082. ## --------- ##
  2083. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2084. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2085. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2086. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2087. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2088. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2089. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2090. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2091. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2092. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2093. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2094. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2095. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2096. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2097. _ASUNAME
  2098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2099. for as_dir in $PATH
  2100. do
  2101. IFS=$as_save_IFS
  2102. case $as_dir in #(((
  2103. '') as_dir=./ ;;
  2104. */) ;;
  2105. *) as_dir=$as_dir/ ;;
  2106. esac
  2107. printf "%s\n" "PATH: $as_dir"
  2108. done
  2109. IFS=$as_save_IFS
  2110. } >&5
  2111. cat >&5 <<_ACEOF
  2112. ## ----------- ##
  2113. ## Core tests. ##
  2114. ## ----------- ##
  2115. _ACEOF
  2116. # Keep a trace of the command line.
  2117. # Strip out --no-create and --no-recursion so they do not pile up.
  2118. # Strip out --silent because we don't want to record it for future runs.
  2119. # Also quote any args containing shell meta-characters.
  2120. # Make two passes to allow for proper duplicate-argument suppression.
  2121. ac_configure_args=
  2122. ac_configure_args0=
  2123. ac_configure_args1=
  2124. ac_must_keep_next=false
  2125. for ac_pass in 1 2
  2126. do
  2127. for ac_arg
  2128. do
  2129. case $ac_arg in
  2130. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2131. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2132. | -silent | --silent | --silen | --sile | --sil)
  2133. continue ;;
  2134. *\'*)
  2135. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2136. esac
  2137. case $ac_pass in
  2138. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2139. 2)
  2140. as_fn_append ac_configure_args1 " '$ac_arg'"
  2141. if test $ac_must_keep_next = true; then
  2142. ac_must_keep_next=false # Got value, back to normal.
  2143. else
  2144. case $ac_arg in
  2145. *=* | --config-cache | -C | -disable-* | --disable-* \
  2146. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2147. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2148. | -with-* | --with-* | -without-* | --without-* | --x)
  2149. case "$ac_configure_args0 " in
  2150. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2151. esac
  2152. ;;
  2153. -* ) ac_must_keep_next=true ;;
  2154. esac
  2155. fi
  2156. as_fn_append ac_configure_args " '$ac_arg'"
  2157. ;;
  2158. esac
  2159. done
  2160. done
  2161. { ac_configure_args0=; unset ac_configure_args0;}
  2162. { ac_configure_args1=; unset ac_configure_args1;}
  2163. # When interrupted or exit'd, cleanup temporary files, and complete
  2164. # config.log. We remove comments because anyway the quotes in there
  2165. # would cause problems or look ugly.
  2166. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2167. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2168. trap 'exit_status=$?
  2169. # Sanitize IFS.
  2170. IFS=" "" $as_nl"
  2171. # Save into config.log some information that might help in debugging.
  2172. {
  2173. echo
  2174. printf "%s\n" "## ---------------- ##
  2175. ## Cache variables. ##
  2176. ## ---------------- ##"
  2177. echo
  2178. # The following way of writing the cache mishandles newlines in values,
  2179. (
  2180. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2181. eval ac_val=\$$ac_var
  2182. case $ac_val in #(
  2183. *${as_nl}*)
  2184. case $ac_var in #(
  2185. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2186. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2187. esac
  2188. case $ac_var in #(
  2189. _ | IFS | as_nl) ;; #(
  2190. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2191. *) { eval $ac_var=; unset $ac_var;} ;;
  2192. esac ;;
  2193. esac
  2194. done
  2195. (set) 2>&1 |
  2196. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2197. *${as_nl}ac_space=\ *)
  2198. sed -n \
  2199. "s/'\''/'\''\\\\'\'''\''/g;
  2200. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2201. ;; #(
  2202. *)
  2203. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2204. ;;
  2205. esac |
  2206. sort
  2207. )
  2208. echo
  2209. printf "%s\n" "## ----------------- ##
  2210. ## Output variables. ##
  2211. ## ----------------- ##"
  2212. echo
  2213. for ac_var in $ac_subst_vars
  2214. do
  2215. eval ac_val=\$$ac_var
  2216. case $ac_val in
  2217. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2218. esac
  2219. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2220. done | sort
  2221. echo
  2222. if test -n "$ac_subst_files"; then
  2223. printf "%s\n" "## ------------------- ##
  2224. ## File substitutions. ##
  2225. ## ------------------- ##"
  2226. echo
  2227. for ac_var in $ac_subst_files
  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. fi
  2237. if test -s confdefs.h; then
  2238. printf "%s\n" "## ----------- ##
  2239. ## confdefs.h. ##
  2240. ## ----------- ##"
  2241. echo
  2242. cat confdefs.h
  2243. echo
  2244. fi
  2245. test "$ac_signal" != 0 &&
  2246. printf "%s\n" "$as_me: caught signal $ac_signal"
  2247. printf "%s\n" "$as_me: exit $exit_status"
  2248. } >&5
  2249. rm -f core *.core core.conftest.* &&
  2250. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2251. exit $exit_status
  2252. ' 0
  2253. for ac_signal in 1 2 13 15; do
  2254. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2255. done
  2256. ac_signal=0
  2257. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2258. rm -f -r conftest* confdefs.h
  2259. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2260. # Predefined preprocessor variables.
  2261. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2262. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2263. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2264. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2265. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2266. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2267. # Let the site file select an alternate cache file if it wants to.
  2268. # Prefer an explicitly selected file to automatically selected ones.
  2269. if test -n "$CONFIG_SITE"; then
  2270. ac_site_files="$CONFIG_SITE"
  2271. elif test "x$prefix" != xNONE; then
  2272. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2273. else
  2274. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2275. fi
  2276. for ac_site_file in $ac_site_files
  2277. do
  2278. case $ac_site_file in #(
  2279. */*) :
  2280. ;; #(
  2281. *) :
  2282. ac_site_file=./$ac_site_file ;;
  2283. esac
  2284. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2286. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2287. sed 's/^/| /' "$ac_site_file" >&5
  2288. . "$ac_site_file" \
  2289. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2290. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2291. as_fn_error $? "failed to load site script $ac_site_file
  2292. See \`config.log' for more details" "$LINENO" 5; }
  2293. fi
  2294. done
  2295. if test -r "$cache_file"; then
  2296. # Some versions of bash will fail to source /dev/null (special files
  2297. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2298. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2300. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2301. case $cache_file in
  2302. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2303. *) . "./$cache_file";;
  2304. esac
  2305. fi
  2306. else
  2307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2308. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2309. >$cache_file
  2310. fi
  2311. # Test code for whether the C compiler supports C89 (global declarations)
  2312. ac_c_conftest_c89_globals='
  2313. /* Does the compiler advertise C89 conformance?
  2314. Do not test the value of __STDC__, because some compilers set it to 0
  2315. while being otherwise adequately conformant. */
  2316. #if !defined __STDC__
  2317. # error "Compiler does not advertise C89 conformance"
  2318. #endif
  2319. #include <stddef.h>
  2320. #include <stdarg.h>
  2321. struct stat;
  2322. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2323. struct buf { int x; };
  2324. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2325. static char *e (char **p, int i)
  2326. {
  2327. return p[i];
  2328. }
  2329. static char *f (char * (*g) (char **, int), char **p, ...)
  2330. {
  2331. char *s;
  2332. va_list v;
  2333. va_start (v,p);
  2334. s = g (p, va_arg (v,int));
  2335. va_end (v);
  2336. return s;
  2337. }
  2338. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2339. function prototypes and stuff, but not \xHH hex character constants.
  2340. These do not provoke an error unfortunately, instead are silently treated
  2341. as an "x". The following induces an error, until -std is added to get
  2342. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2343. array size at least. It is necessary to write \x00 == 0 to get something
  2344. that is true only with -std. */
  2345. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2346. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2347. inside strings and character constants. */
  2348. #define FOO(x) '\''x'\''
  2349. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2350. int test (int i, double x);
  2351. struct s1 {int (*f) (int a);};
  2352. struct s2 {int (*f) (double a);};
  2353. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2354. int, int);'
  2355. # Test code for whether the C compiler supports C89 (body of main).
  2356. ac_c_conftest_c89_main='
  2357. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2358. '
  2359. # Test code for whether the C compiler supports C99 (global declarations)
  2360. ac_c_conftest_c99_globals='
  2361. // Does the compiler advertise C99 conformance?
  2362. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2363. # error "Compiler does not advertise C99 conformance"
  2364. #endif
  2365. #include <stdbool.h>
  2366. extern int puts (const char *);
  2367. extern int printf (const char *, ...);
  2368. extern int dprintf (int, const char *, ...);
  2369. extern void *malloc (size_t);
  2370. extern void free (void *);
  2371. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2372. // dprintf is used instead of fprintf to avoid needing to declare
  2373. // FILE and stderr.
  2374. #define debug(...) dprintf (2, __VA_ARGS__)
  2375. #define showlist(...) puts (#__VA_ARGS__)
  2376. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2377. static void
  2378. test_varargs_macros (void)
  2379. {
  2380. int x = 1234;
  2381. int y = 5678;
  2382. debug ("Flag");
  2383. debug ("X = %d\n", x);
  2384. showlist (The first, second, and third items.);
  2385. report (x>y, "x is %d but y is %d", x, y);
  2386. }
  2387. // Check long long types.
  2388. #define BIG64 18446744073709551615ull
  2389. #define BIG32 4294967295ul
  2390. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2391. #if !BIG_OK
  2392. #error "your preprocessor is broken"
  2393. #endif
  2394. #if BIG_OK
  2395. #else
  2396. #error "your preprocessor is broken"
  2397. #endif
  2398. static long long int bignum = -9223372036854775807LL;
  2399. static unsigned long long int ubignum = BIG64;
  2400. struct incomplete_array
  2401. {
  2402. int datasize;
  2403. double data[];
  2404. };
  2405. struct named_init {
  2406. int number;
  2407. const wchar_t *name;
  2408. double average;
  2409. };
  2410. typedef const char *ccp;
  2411. static inline int
  2412. test_restrict (ccp restrict text)
  2413. {
  2414. // See if C++-style comments work.
  2415. // Iterate through items via the restricted pointer.
  2416. // Also check for declarations in for loops.
  2417. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2418. continue;
  2419. return 0;
  2420. }
  2421. // Check varargs and va_copy.
  2422. static bool
  2423. test_varargs (const char *format, ...)
  2424. {
  2425. va_list args;
  2426. va_start (args, format);
  2427. va_list args_copy;
  2428. va_copy (args_copy, args);
  2429. const char *str = "";
  2430. int number = 0;
  2431. float fnumber = 0;
  2432. while (*format)
  2433. {
  2434. switch (*format++)
  2435. {
  2436. case '\''s'\'': // string
  2437. str = va_arg (args_copy, const char *);
  2438. break;
  2439. case '\''d'\'': // int
  2440. number = va_arg (args_copy, int);
  2441. break;
  2442. case '\''f'\'': // float
  2443. fnumber = va_arg (args_copy, double);
  2444. break;
  2445. default:
  2446. break;
  2447. }
  2448. }
  2449. va_end (args_copy);
  2450. va_end (args);
  2451. return *str && number && fnumber;
  2452. }
  2453. '
  2454. # Test code for whether the C compiler supports C99 (body of main).
  2455. ac_c_conftest_c99_main='
  2456. // Check bool.
  2457. _Bool success = false;
  2458. success |= (argc != 0);
  2459. // Check restrict.
  2460. if (test_restrict ("String literal") == 0)
  2461. success = true;
  2462. char *restrict newvar = "Another string";
  2463. // Check varargs.
  2464. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2465. test_varargs_macros ();
  2466. // Check flexible array members.
  2467. struct incomplete_array *ia =
  2468. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2469. ia->datasize = 10;
  2470. for (int i = 0; i < ia->datasize; ++i)
  2471. ia->data[i] = i * 1.234;
  2472. // Check named initializers.
  2473. struct named_init ni = {
  2474. .number = 34,
  2475. .name = L"Test wide string",
  2476. .average = 543.34343,
  2477. };
  2478. ni.number = 58;
  2479. int dynamic_array[ni.number];
  2480. dynamic_array[0] = argv[0][0];
  2481. dynamic_array[ni.number - 1] = 543;
  2482. // work around unused variable warnings
  2483. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2484. || dynamic_array[ni.number - 1] != 543);
  2485. '
  2486. # Test code for whether the C compiler supports C11 (global declarations)
  2487. ac_c_conftest_c11_globals='
  2488. // Does the compiler advertise C11 conformance?
  2489. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2490. # error "Compiler does not advertise C11 conformance"
  2491. #endif
  2492. // Check _Alignas.
  2493. char _Alignas (double) aligned_as_double;
  2494. char _Alignas (0) no_special_alignment;
  2495. extern char aligned_as_int;
  2496. char _Alignas (0) _Alignas (int) aligned_as_int;
  2497. // Check _Alignof.
  2498. enum
  2499. {
  2500. int_alignment = _Alignof (int),
  2501. int_array_alignment = _Alignof (int[100]),
  2502. char_alignment = _Alignof (char)
  2503. };
  2504. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2505. // Check _Noreturn.
  2506. int _Noreturn does_not_return (void) { for (;;) continue; }
  2507. // Check _Static_assert.
  2508. struct test_static_assert
  2509. {
  2510. int x;
  2511. _Static_assert (sizeof (int) <= sizeof (long int),
  2512. "_Static_assert does not work in struct");
  2513. long int y;
  2514. };
  2515. // Check UTF-8 literals.
  2516. #define u8 syntax error!
  2517. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2518. // Check duplicate typedefs.
  2519. typedef long *long_ptr;
  2520. typedef long int *long_ptr;
  2521. typedef long_ptr long_ptr;
  2522. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2523. struct anonymous
  2524. {
  2525. union {
  2526. struct { int i; int j; };
  2527. struct { int k; long int l; } w;
  2528. };
  2529. int m;
  2530. } v1;
  2531. '
  2532. # Test code for whether the C compiler supports C11 (body of main).
  2533. ac_c_conftest_c11_main='
  2534. _Static_assert ((offsetof (struct anonymous, i)
  2535. == offsetof (struct anonymous, w.k)),
  2536. "Anonymous union alignment botch");
  2537. v1.i = 2;
  2538. v1.w.k = 5;
  2539. ok |= v1.i != 5;
  2540. '
  2541. # Test code for whether the C compiler supports C11 (complete).
  2542. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2543. ${ac_c_conftest_c99_globals}
  2544. ${ac_c_conftest_c11_globals}
  2545. int
  2546. main (int argc, char **argv)
  2547. {
  2548. int ok = 0;
  2549. ${ac_c_conftest_c89_main}
  2550. ${ac_c_conftest_c99_main}
  2551. ${ac_c_conftest_c11_main}
  2552. return ok;
  2553. }
  2554. "
  2555. # Test code for whether the C compiler supports C99 (complete).
  2556. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2557. ${ac_c_conftest_c99_globals}
  2558. int
  2559. main (int argc, char **argv)
  2560. {
  2561. int ok = 0;
  2562. ${ac_c_conftest_c89_main}
  2563. ${ac_c_conftest_c99_main}
  2564. return ok;
  2565. }
  2566. "
  2567. # Test code for whether the C compiler supports C89 (complete).
  2568. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2569. int
  2570. main (int argc, char **argv)
  2571. {
  2572. int ok = 0;
  2573. ${ac_c_conftest_c89_main}
  2574. return ok;
  2575. }
  2576. "
  2577. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2578. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2579. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2580. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2581. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2582. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2583. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2584. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2585. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2586. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2587. ac_cxx_conftest_cxx98_globals='
  2588. // Does the compiler advertise C++98 conformance?
  2589. #if !defined __cplusplus || __cplusplus < 199711L
  2590. # error "Compiler does not advertise C++98 conformance"
  2591. #endif
  2592. // These inclusions are to reject old compilers that
  2593. // lack the unsuffixed header files.
  2594. #include <cstdlib>
  2595. #include <exception>
  2596. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2597. extern void assert (int);
  2598. namespace std {
  2599. extern int strcmp (const char *, const char *);
  2600. }
  2601. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2602. using std::exception;
  2603. using std::strcmp;
  2604. namespace {
  2605. void test_exception_syntax()
  2606. {
  2607. try {
  2608. throw "test";
  2609. } catch (const char *s) {
  2610. // Extra parentheses suppress a warning when building autoconf itself,
  2611. // due to lint rules shared with more typical C programs.
  2612. assert (!(strcmp) (s, "test"));
  2613. }
  2614. }
  2615. template <typename T> struct test_template
  2616. {
  2617. T const val;
  2618. explicit test_template(T t) : val(t) {}
  2619. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2620. };
  2621. } // anonymous namespace
  2622. '
  2623. # Test code for whether the C++ compiler supports C++98 (body of main)
  2624. ac_cxx_conftest_cxx98_main='
  2625. assert (argc);
  2626. assert (! argv[0]);
  2627. {
  2628. test_exception_syntax ();
  2629. test_template<double> tt (2.0);
  2630. assert (tt.add (4) == 6.0);
  2631. assert (true && !false);
  2632. }
  2633. '
  2634. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2635. ac_cxx_conftest_cxx11_globals='
  2636. // Does the compiler advertise C++ 2011 conformance?
  2637. #if !defined __cplusplus || __cplusplus < 201103L
  2638. # error "Compiler does not advertise C++11 conformance"
  2639. #endif
  2640. namespace cxx11test
  2641. {
  2642. constexpr int get_val() { return 20; }
  2643. struct testinit
  2644. {
  2645. int i;
  2646. double d;
  2647. };
  2648. class delegate
  2649. {
  2650. public:
  2651. delegate(int n) : n(n) {}
  2652. delegate(): delegate(2354) {}
  2653. virtual int getval() { return this->n; };
  2654. protected:
  2655. int n;
  2656. };
  2657. class overridden : public delegate
  2658. {
  2659. public:
  2660. overridden(int n): delegate(n) {}
  2661. virtual int getval() override final { return this->n * 2; }
  2662. };
  2663. class nocopy
  2664. {
  2665. public:
  2666. nocopy(int i): i(i) {}
  2667. nocopy() = default;
  2668. nocopy(const nocopy&) = delete;
  2669. nocopy & operator=(const nocopy&) = delete;
  2670. private:
  2671. int i;
  2672. };
  2673. // for testing lambda expressions
  2674. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2675. {
  2676. return f(v);
  2677. }
  2678. // for testing variadic templates and trailing return types
  2679. template <typename V> auto sum(V first) -> V
  2680. {
  2681. return first;
  2682. }
  2683. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2684. {
  2685. return first + sum(rest...);
  2686. }
  2687. }
  2688. '
  2689. # Test code for whether the C++ compiler supports C++11 (body of main)
  2690. ac_cxx_conftest_cxx11_main='
  2691. {
  2692. // Test auto and decltype
  2693. auto a1 = 6538;
  2694. auto a2 = 48573953.4;
  2695. auto a3 = "String literal";
  2696. int total = 0;
  2697. for (auto i = a3; *i; ++i) { total += *i; }
  2698. decltype(a2) a4 = 34895.034;
  2699. }
  2700. {
  2701. // Test constexpr
  2702. short sa[cxx11test::get_val()] = { 0 };
  2703. }
  2704. {
  2705. // Test initializer lists
  2706. cxx11test::testinit il = { 4323, 435234.23544 };
  2707. }
  2708. {
  2709. // Test range-based for
  2710. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2711. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2712. for (auto &x : array) { x += 23; }
  2713. }
  2714. {
  2715. // Test lambda expressions
  2716. using cxx11test::eval;
  2717. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2718. double d = 2.0;
  2719. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2720. assert (d == 5.0);
  2721. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2722. assert (d == 5.0);
  2723. }
  2724. {
  2725. // Test use of variadic templates
  2726. using cxx11test::sum;
  2727. auto a = sum(1);
  2728. auto b = sum(1, 2);
  2729. auto c = sum(1.0, 2.0, 3.0);
  2730. }
  2731. {
  2732. // Test constructor delegation
  2733. cxx11test::delegate d1;
  2734. cxx11test::delegate d2();
  2735. cxx11test::delegate d3(45);
  2736. }
  2737. {
  2738. // Test override and final
  2739. cxx11test::overridden o1(55464);
  2740. }
  2741. {
  2742. // Test nullptr
  2743. char *c = nullptr;
  2744. }
  2745. {
  2746. // Test template brackets
  2747. test_template<::test_template<int>> v(test_template<int>(12));
  2748. }
  2749. {
  2750. // Unicode literals
  2751. char const *utf8 = u8"UTF-8 string \u2500";
  2752. char16_t const *utf16 = u"UTF-8 string \u2500";
  2753. char32_t const *utf32 = U"UTF-32 string \u2500";
  2754. }
  2755. '
  2756. # Test code for whether the C compiler supports C++11 (complete).
  2757. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2758. ${ac_cxx_conftest_cxx11_globals}
  2759. int
  2760. main (int argc, char **argv)
  2761. {
  2762. int ok = 0;
  2763. ${ac_cxx_conftest_cxx98_main}
  2764. ${ac_cxx_conftest_cxx11_main}
  2765. return ok;
  2766. }
  2767. "
  2768. # Test code for whether the C compiler supports C++98 (complete).
  2769. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2770. int
  2771. main (int argc, char **argv)
  2772. {
  2773. int ok = 0;
  2774. ${ac_cxx_conftest_cxx98_main}
  2775. return ok;
  2776. }
  2777. "
  2778. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2779. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2780. # Auxiliary files required by this configure script.
  2781. ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
  2782. # Locations in which to look for auxiliary files.
  2783. ac_aux_dir_candidates="${srcdir}/conftools"
  2784. # Search for a directory containing all of the required auxiliary files,
  2785. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2786. # If we don't find one directory that contains all the files we need,
  2787. # we report the set of missing files from the *first* directory in
  2788. # $ac_aux_dir_candidates and give up.
  2789. ac_missing_aux_files=""
  2790. ac_first_candidate=:
  2791. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2793. as_found=false
  2794. for as_dir in $ac_aux_dir_candidates
  2795. do
  2796. IFS=$as_save_IFS
  2797. case $as_dir in #(((
  2798. '') as_dir=./ ;;
  2799. */) ;;
  2800. *) as_dir=$as_dir/ ;;
  2801. esac
  2802. as_found=:
  2803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2804. ac_aux_dir_found=yes
  2805. ac_install_sh=
  2806. for ac_aux in $ac_aux_files
  2807. do
  2808. # As a special case, if "install-sh" is required, that requirement
  2809. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2810. # and $ac_install_sh is set appropriately for whichever one is found.
  2811. if test x"$ac_aux" = x"install-sh"
  2812. then
  2813. if test -f "${as_dir}install-sh"; then
  2814. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2815. ac_install_sh="${as_dir}install-sh -c"
  2816. elif test -f "${as_dir}install.sh"; then
  2817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2818. ac_install_sh="${as_dir}install.sh -c"
  2819. elif test -f "${as_dir}shtool"; then
  2820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2821. ac_install_sh="${as_dir}shtool install -c"
  2822. else
  2823. ac_aux_dir_found=no
  2824. if $ac_first_candidate; then
  2825. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2826. else
  2827. break
  2828. fi
  2829. fi
  2830. else
  2831. if test -f "${as_dir}${ac_aux}"; then
  2832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2833. else
  2834. ac_aux_dir_found=no
  2835. if $ac_first_candidate; then
  2836. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2837. else
  2838. break
  2839. fi
  2840. fi
  2841. fi
  2842. done
  2843. if test "$ac_aux_dir_found" = yes; then
  2844. ac_aux_dir="$as_dir"
  2845. break
  2846. fi
  2847. ac_first_candidate=false
  2848. as_found=false
  2849. done
  2850. IFS=$as_save_IFS
  2851. if $as_found
  2852. then :
  2853. else $as_nop
  2854. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2855. fi
  2856. # These three variables are undocumented and unsupported,
  2857. # and are intended to be withdrawn in a future Autoconf release.
  2858. # They can cause serious problems if a builder's source tree is in a directory
  2859. # whose full name contains unusual characters.
  2860. if test -f "${ac_aux_dir}config.guess"; then
  2861. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2862. fi
  2863. if test -f "${ac_aux_dir}config.sub"; then
  2864. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2865. fi
  2866. if test -f "$ac_aux_dir/configure"; then
  2867. ac_configure="$SHELL ${ac_aux_dir}configure"
  2868. fi
  2869. # Check that the precious variables saved in the cache have kept the same
  2870. # value.
  2871. ac_cache_corrupted=false
  2872. for ac_var in $ac_precious_vars; do
  2873. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2874. eval ac_new_set=\$ac_env_${ac_var}_set
  2875. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2876. eval ac_new_val=\$ac_env_${ac_var}_value
  2877. case $ac_old_set,$ac_new_set in
  2878. set,)
  2879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2880. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2881. ac_cache_corrupted=: ;;
  2882. ,set)
  2883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2884. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2885. ac_cache_corrupted=: ;;
  2886. ,);;
  2887. *)
  2888. if test "x$ac_old_val" != "x$ac_new_val"; then
  2889. # differences in whitespace do not lead to failure.
  2890. ac_old_val_w=`echo x $ac_old_val`
  2891. ac_new_val_w=`echo x $ac_new_val`
  2892. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2894. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2895. ac_cache_corrupted=:
  2896. else
  2897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2898. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2899. eval $ac_var=\$ac_old_val
  2900. fi
  2901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2902. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2904. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2905. fi;;
  2906. esac
  2907. # Pass precious variables to config.status.
  2908. if test "$ac_new_set" = set; then
  2909. case $ac_new_val in
  2910. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2911. *) ac_arg=$ac_var=$ac_new_val ;;
  2912. esac
  2913. case " $ac_configure_args " in
  2914. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2915. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2916. esac
  2917. fi
  2918. done
  2919. if $ac_cache_corrupted; then
  2920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2921. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2923. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2924. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2925. and start over" "$LINENO" 5
  2926. fi
  2927. ## -------------------- ##
  2928. ## Main body of script. ##
  2929. ## -------------------- ##
  2930. ac_ext=c
  2931. ac_cpp='$CPP $CPPFLAGS'
  2932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2935. # Make sure we can run config.sub.
  2936. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2937. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2939. printf %s "checking build system type... " >&6; }
  2940. if test ${ac_cv_build+y}
  2941. then :
  2942. printf %s "(cached) " >&6
  2943. else $as_nop
  2944. ac_build_alias=$build_alias
  2945. test "x$ac_build_alias" = x &&
  2946. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2947. test "x$ac_build_alias" = x &&
  2948. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2949. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2950. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2951. fi
  2952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2953. printf "%s\n" "$ac_cv_build" >&6; }
  2954. case $ac_cv_build in
  2955. *-*-*) ;;
  2956. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2957. esac
  2958. build=$ac_cv_build
  2959. ac_save_IFS=$IFS; IFS='-'
  2960. set x $ac_cv_build
  2961. shift
  2962. build_cpu=$1
  2963. build_vendor=$2
  2964. shift; shift
  2965. # Remember, the first character of IFS is used to create $*,
  2966. # except with old shells:
  2967. build_os=$*
  2968. IFS=$ac_save_IFS
  2969. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2971. printf %s "checking host system type... " >&6; }
  2972. if test ${ac_cv_host+y}
  2973. then :
  2974. printf %s "(cached) " >&6
  2975. else $as_nop
  2976. if test "x$host_alias" = x; then
  2977. ac_cv_host=$ac_cv_build
  2978. else
  2979. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2980. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2981. fi
  2982. fi
  2983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2984. printf "%s\n" "$ac_cv_host" >&6; }
  2985. case $ac_cv_host in
  2986. *-*-*) ;;
  2987. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2988. esac
  2989. host=$ac_cv_host
  2990. ac_save_IFS=$IFS; IFS='-'
  2991. set x $ac_cv_host
  2992. shift
  2993. host_cpu=$1
  2994. host_vendor=$2
  2995. shift; shift
  2996. # Remember, the first character of IFS is used to create $*,
  2997. # except with old shells:
  2998. host_os=$*
  2999. IFS=$ac_save_IFS
  3000. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3001. am__api_version='1.16'
  3002. # Find a good install program. We prefer a C program (faster),
  3003. # so one script is as good as another. But avoid the broken or
  3004. # incompatible versions:
  3005. # SysV /etc/install, /usr/sbin/install
  3006. # SunOS /usr/etc/install
  3007. # IRIX /sbin/install
  3008. # AIX /bin/install
  3009. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3010. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3011. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3012. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3013. # OS/2's system install, which has a completely different semantic
  3014. # ./install, which can be erroneously created by make from ./install.sh.
  3015. # Reject install programs that cannot install multiple files.
  3016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3017. printf %s "checking for a BSD-compatible install... " >&6; }
  3018. if test -z "$INSTALL"; then
  3019. if test ${ac_cv_path_install+y}
  3020. then :
  3021. printf %s "(cached) " >&6
  3022. else $as_nop
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. case $as_dir in #(((
  3028. '') as_dir=./ ;;
  3029. */) ;;
  3030. *) as_dir=$as_dir/ ;;
  3031. esac
  3032. # Account for fact that we put trailing slashes in our PATH walk.
  3033. case $as_dir in #((
  3034. ./ | /[cC]/* | \
  3035. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3036. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3037. /usr/ucb/* ) ;;
  3038. *)
  3039. # OSF1 and SCO ODT 3.0 have their own names for install.
  3040. # Don't use installbsd from OSF since it installs stuff as root
  3041. # by default.
  3042. for ac_prog in ginstall scoinst install; do
  3043. for ac_exec_ext in '' $ac_executable_extensions; do
  3044. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3045. if test $ac_prog = install &&
  3046. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3047. # AIX install. It has an incompatible calling convention.
  3048. :
  3049. elif test $ac_prog = install &&
  3050. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3051. # program-specific install script used by HP pwplus--don't use.
  3052. :
  3053. else
  3054. rm -rf conftest.one conftest.two conftest.dir
  3055. echo one > conftest.one
  3056. echo two > conftest.two
  3057. mkdir conftest.dir
  3058. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3059. test -s conftest.one && test -s conftest.two &&
  3060. test -s conftest.dir/conftest.one &&
  3061. test -s conftest.dir/conftest.two
  3062. then
  3063. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3064. break 3
  3065. fi
  3066. fi
  3067. fi
  3068. done
  3069. done
  3070. ;;
  3071. esac
  3072. done
  3073. IFS=$as_save_IFS
  3074. rm -rf conftest.one conftest.two conftest.dir
  3075. fi
  3076. if test ${ac_cv_path_install+y}; then
  3077. INSTALL=$ac_cv_path_install
  3078. else
  3079. # As a last resort, use the slow shell script. Don't cache a
  3080. # value for INSTALL within a source directory, because that will
  3081. # break other packages using the cache if that directory is
  3082. # removed, or if the value is a relative name.
  3083. INSTALL=$ac_install_sh
  3084. fi
  3085. fi
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3087. printf "%s\n" "$INSTALL" >&6; }
  3088. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3089. # It thinks the first close brace ends the variable substitution.
  3090. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3091. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3092. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3094. printf %s "checking whether build environment is sane... " >&6; }
  3095. # Reject unsafe characters in $srcdir or the absolute working directory
  3096. # name. Accept space and tab only in the latter.
  3097. am_lf='
  3098. '
  3099. case `pwd` in
  3100. *[\\\"\#\$\&\'\`$am_lf]*)
  3101. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3102. esac
  3103. case $srcdir in
  3104. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3105. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3106. esac
  3107. # Do 'set' in a subshell so we don't clobber the current shell's
  3108. # arguments. Must try -L first in case configure is actually a
  3109. # symlink; some systems play weird games with the mod time of symlinks
  3110. # (eg FreeBSD returns the mod time of the symlink's containing
  3111. # directory).
  3112. if (
  3113. am_has_slept=no
  3114. for am_try in 1 2; do
  3115. echo "timestamp, slept: $am_has_slept" > conftest.file
  3116. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3117. if test "$*" = "X"; then
  3118. # -L didn't work.
  3119. set X `ls -t "$srcdir/configure" conftest.file`
  3120. fi
  3121. if test "$*" != "X $srcdir/configure conftest.file" \
  3122. && test "$*" != "X conftest.file $srcdir/configure"; then
  3123. # If neither matched, then we have a broken ls. This can happen
  3124. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3125. # broken ls alias from the environment. This has actually
  3126. # happened. Such a system could not be considered "sane".
  3127. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3128. alias in your environment" "$LINENO" 5
  3129. fi
  3130. if test "$2" = conftest.file || test $am_try -eq 2; then
  3131. break
  3132. fi
  3133. # Just in case.
  3134. sleep 1
  3135. am_has_slept=yes
  3136. done
  3137. test "$2" = conftest.file
  3138. )
  3139. then
  3140. # Ok.
  3141. :
  3142. else
  3143. as_fn_error $? "newly created file is older than distributed files!
  3144. Check your system clock" "$LINENO" 5
  3145. fi
  3146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3147. printf "%s\n" "yes" >&6; }
  3148. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3149. # generated files are strictly newer.
  3150. am_sleep_pid=
  3151. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3152. ( sleep 1 ) &
  3153. am_sleep_pid=$!
  3154. fi
  3155. rm -f conftest.file
  3156. test "$program_prefix" != NONE &&
  3157. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3158. # Use a double $ so make ignores it.
  3159. test "$program_suffix" != NONE &&
  3160. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3161. # Double any \ or $.
  3162. # By default was `s,x,x', remove it if useless.
  3163. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3164. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3165. # Expand $ac_aux_dir to an absolute path.
  3166. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3167. if test x"${MISSING+set}" != xset; then
  3168. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3169. fi
  3170. # Use eval to expand $SHELL
  3171. if eval "$MISSING --is-lightweight"; then
  3172. am_missing_run="$MISSING "
  3173. else
  3174. am_missing_run=
  3175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3176. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3177. fi
  3178. if test x"${install_sh+set}" != xset; then
  3179. case $am_aux_dir in
  3180. *\ * | *\ *)
  3181. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3182. *)
  3183. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3184. esac
  3185. fi
  3186. # Installed binaries are usually stripped using 'strip' when the user
  3187. # run "make install-strip". However 'strip' might not be the right
  3188. # tool to use in cross-compilation environments, therefore Automake
  3189. # will honor the 'STRIP' environment variable to overrule this program.
  3190. if test "$cross_compiling" != no; then
  3191. if test -n "$ac_tool_prefix"; then
  3192. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3193. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3195. printf %s "checking for $ac_word... " >&6; }
  3196. if test ${ac_cv_prog_STRIP+y}
  3197. then :
  3198. printf %s "(cached) " >&6
  3199. else $as_nop
  3200. if test -n "$STRIP"; then
  3201. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3202. else
  3203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3204. for as_dir in $PATH
  3205. do
  3206. IFS=$as_save_IFS
  3207. case $as_dir in #(((
  3208. '') as_dir=./ ;;
  3209. */) ;;
  3210. *) as_dir=$as_dir/ ;;
  3211. esac
  3212. for ac_exec_ext in '' $ac_executable_extensions; do
  3213. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3214. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3216. break 2
  3217. fi
  3218. done
  3219. done
  3220. IFS=$as_save_IFS
  3221. fi
  3222. fi
  3223. STRIP=$ac_cv_prog_STRIP
  3224. if test -n "$STRIP"; then
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3226. printf "%s\n" "$STRIP" >&6; }
  3227. else
  3228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3229. printf "%s\n" "no" >&6; }
  3230. fi
  3231. fi
  3232. if test -z "$ac_cv_prog_STRIP"; then
  3233. ac_ct_STRIP=$STRIP
  3234. # Extract the first word of "strip", so it can be a program name with args.
  3235. set dummy strip; ac_word=$2
  3236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3237. printf %s "checking for $ac_word... " >&6; }
  3238. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3239. then :
  3240. printf %s "(cached) " >&6
  3241. else $as_nop
  3242. if test -n "$ac_ct_STRIP"; then
  3243. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. case $as_dir in #(((
  3250. '') as_dir=./ ;;
  3251. */) ;;
  3252. *) as_dir=$as_dir/ ;;
  3253. esac
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3256. ac_cv_prog_ac_ct_STRIP="strip"
  3257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3258. break 2
  3259. fi
  3260. done
  3261. done
  3262. IFS=$as_save_IFS
  3263. fi
  3264. fi
  3265. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3266. if test -n "$ac_ct_STRIP"; then
  3267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3268. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3269. else
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3271. printf "%s\n" "no" >&6; }
  3272. fi
  3273. if test "x$ac_ct_STRIP" = x; then
  3274. STRIP=":"
  3275. else
  3276. case $cross_compiling:$ac_tool_warned in
  3277. yes:)
  3278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3279. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3280. ac_tool_warned=yes ;;
  3281. esac
  3282. STRIP=$ac_ct_STRIP
  3283. fi
  3284. else
  3285. STRIP="$ac_cv_prog_STRIP"
  3286. fi
  3287. fi
  3288. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3290. printf %s "checking for a race-free mkdir -p... " >&6; }
  3291. if test -z "$MKDIR_P"; then
  3292. if test ${ac_cv_path_mkdir+y}
  3293. then :
  3294. printf %s "(cached) " >&6
  3295. else $as_nop
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3298. do
  3299. IFS=$as_save_IFS
  3300. case $as_dir in #(((
  3301. '') as_dir=./ ;;
  3302. */) ;;
  3303. *) as_dir=$as_dir/ ;;
  3304. esac
  3305. for ac_prog in mkdir gmkdir; do
  3306. for ac_exec_ext in '' $ac_executable_extensions; do
  3307. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3308. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3309. 'mkdir ('*'coreutils) '* | \
  3310. 'BusyBox '* | \
  3311. 'mkdir (fileutils) '4.1*)
  3312. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3313. break 3;;
  3314. esac
  3315. done
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. test -d ./--version && rmdir ./--version
  3321. if test ${ac_cv_path_mkdir+y}; then
  3322. MKDIR_P="$ac_cv_path_mkdir -p"
  3323. else
  3324. # As a last resort, use the slow shell script. Don't cache a
  3325. # value for MKDIR_P within a source directory, because that will
  3326. # break other packages using the cache if that directory is
  3327. # removed, or if the value is a relative name.
  3328. MKDIR_P="$ac_install_sh -d"
  3329. fi
  3330. fi
  3331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3332. printf "%s\n" "$MKDIR_P" >&6; }
  3333. for ac_prog in gawk mawk nawk awk
  3334. do
  3335. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3336. set dummy $ac_prog; ac_word=$2
  3337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3338. printf %s "checking for $ac_word... " >&6; }
  3339. if test ${ac_cv_prog_AWK+y}
  3340. then :
  3341. printf %s "(cached) " >&6
  3342. else $as_nop
  3343. if test -n "$AWK"; then
  3344. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3345. else
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. case $as_dir in #(((
  3351. '') as_dir=./ ;;
  3352. */) ;;
  3353. *) as_dir=$as_dir/ ;;
  3354. esac
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3357. ac_cv_prog_AWK="$ac_prog"
  3358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. fi
  3366. AWK=$ac_cv_prog_AWK
  3367. if test -n "$AWK"; then
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3369. printf "%s\n" "$AWK" >&6; }
  3370. else
  3371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3372. printf "%s\n" "no" >&6; }
  3373. fi
  3374. test -n "$AWK" && break
  3375. done
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3377. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3378. set x ${MAKE-make}
  3379. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3380. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3381. then :
  3382. printf %s "(cached) " >&6
  3383. else $as_nop
  3384. cat >conftest.make <<\_ACEOF
  3385. SHELL = /bin/sh
  3386. all:
  3387. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3388. _ACEOF
  3389. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3390. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3391. *@@@%%%=?*=@@@%%%*)
  3392. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3393. *)
  3394. eval ac_cv_prog_make_${ac_make}_set=no;;
  3395. esac
  3396. rm -f conftest.make
  3397. fi
  3398. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3400. printf "%s\n" "yes" >&6; }
  3401. SET_MAKE=
  3402. else
  3403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3404. printf "%s\n" "no" >&6; }
  3405. SET_MAKE="MAKE=${MAKE-make}"
  3406. fi
  3407. rm -rf .tst 2>/dev/null
  3408. mkdir .tst 2>/dev/null
  3409. if test -d .tst; then
  3410. am__leading_dot=.
  3411. else
  3412. am__leading_dot=_
  3413. fi
  3414. rmdir .tst 2>/dev/null
  3415. # Check whether --enable-silent-rules was given.
  3416. if test ${enable_silent_rules+y}
  3417. then :
  3418. enableval=$enable_silent_rules;
  3419. fi
  3420. case $enable_silent_rules in # (((
  3421. yes) AM_DEFAULT_VERBOSITY=0;;
  3422. no) AM_DEFAULT_VERBOSITY=1;;
  3423. *) AM_DEFAULT_VERBOSITY=1;;
  3424. esac
  3425. am_make=${MAKE-make}
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3427. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3428. if test ${am_cv_make_support_nested_variables+y}
  3429. then :
  3430. printf %s "(cached) " >&6
  3431. else $as_nop
  3432. if printf "%s\n" 'TRUE=$(BAR$(V))
  3433. BAR0=false
  3434. BAR1=true
  3435. V=1
  3436. am__doit:
  3437. @$(TRUE)
  3438. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3439. am_cv_make_support_nested_variables=yes
  3440. else
  3441. am_cv_make_support_nested_variables=no
  3442. fi
  3443. fi
  3444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3445. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3446. if test $am_cv_make_support_nested_variables = yes; then
  3447. AM_V='$(V)'
  3448. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3449. else
  3450. AM_V=$AM_DEFAULT_VERBOSITY
  3451. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3452. fi
  3453. AM_BACKSLASH='\'
  3454. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3455. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3456. # is not polluted with repeated "-I."
  3457. am__isrc=' -I$(srcdir)'
  3458. # test to see if srcdir already configured
  3459. if test -f $srcdir/config.status; then
  3460. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3461. fi
  3462. fi
  3463. # test whether we have cygpath
  3464. if test -z "$CYGPATH_W"; then
  3465. if (cygpath --version) >/dev/null 2>/dev/null; then
  3466. CYGPATH_W='cygpath -w'
  3467. else
  3468. CYGPATH_W=echo
  3469. fi
  3470. fi
  3471. # Define the identity of the package.
  3472. PACKAGE='expat'
  3473. VERSION='2.6.4'
  3474. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3475. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3476. # Some tools Automake needs.
  3477. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3478. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3479. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3480. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3481. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3482. # For better backward compatibility. To be removed once Automake 1.9.x
  3483. # dies out for good. For more background, see:
  3484. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3485. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3486. mkdir_p='$(MKDIR_P)'
  3487. # We need awk for the "check" target (and possibly the TAP driver). The
  3488. # system "awk" is bad on some platforms.
  3489. # Always define AMTAR for backward compatibility. Yes, it's still used
  3490. # in the wild :-( We should find a proper way to deprecate it ...
  3491. AMTAR='$${TAR-tar}'
  3492. # We'll loop over all known methods to create a tar archive until one works.
  3493. _am_tools='gnutar pax cpio none'
  3494. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3495. # Variables for tags utilities; see am/tags.am
  3496. if test -z "$CTAGS"; then
  3497. CTAGS=ctags
  3498. fi
  3499. if test -z "$ETAGS"; then
  3500. ETAGS=etags
  3501. fi
  3502. if test -z "$CSCOPE"; then
  3503. CSCOPE=cscope
  3504. fi
  3505. # POSIX will say in a future version that running "rm -f" with no argument
  3506. # is OK; and we want to be able to make that assumption in our Makefile
  3507. # recipes. So use an aggressive probe to check that the usage we want is
  3508. # actually supported "in the wild" to an acceptable degree.
  3509. # See automake bug#10828.
  3510. # To make any issue more visible, cause the running configure to be aborted
  3511. # by default if the 'rm' program in use doesn't match our expectations; the
  3512. # user can still override this though.
  3513. if rm -f && rm -fr && rm -rf; then : OK; else
  3514. cat >&2 <<'END'
  3515. Oops!
  3516. Your 'rm' program seems unable to run without file operands specified
  3517. on the command line, even when the '-f' option is present. This is contrary
  3518. to the behaviour of most rm programs out there, and not conforming with
  3519. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3520. Please tell [email protected] about your system, including the value
  3521. of your $PATH and any error possibly output before this message. This
  3522. can help us improve future automake versions.
  3523. END
  3524. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3525. echo 'Configuration will proceed anyway, since you have set the' >&2
  3526. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3527. echo >&2
  3528. else
  3529. cat >&2 <<'END'
  3530. Aborting the configuration process, to ensure you take notice of the issue.
  3531. You can download and install GNU coreutils to get an 'rm' implementation
  3532. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3533. If you want to complete the configuration process using your problematic
  3534. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3535. to "yes", and re-run configure.
  3536. END
  3537. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3538. fi
  3539. fi
  3540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3541. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3542. # Check whether --enable-maintainer-mode was given.
  3543. if test ${enable_maintainer_mode+y}
  3544. then :
  3545. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3546. else $as_nop
  3547. USE_MAINTAINER_MODE=yes
  3548. fi
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3550. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3551. if test $USE_MAINTAINER_MODE = yes; then
  3552. MAINTAINER_MODE_TRUE=
  3553. MAINTAINER_MODE_FALSE='#'
  3554. else
  3555. MAINTAINER_MODE_TRUE='#'
  3556. MAINTAINER_MODE_FALSE=
  3557. fi
  3558. MAINT=$MAINTAINER_MODE_TRUE
  3559. # to allow argument --disable-maintainer-mode
  3560. LIBCURRENT=11 # sync
  3561. LIBREVISION=0 # with
  3562. LIBAGE=10 # CMakeLists.txt!
  3563. ac_config_headers="$ac_config_headers expat_config.h"
  3564. DEPDIR="${am__leading_dot}deps"
  3565. ac_config_commands="$ac_config_commands depfiles"
  3566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3567. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3568. cat > confinc.mk << 'END'
  3569. am__doit:
  3570. @echo this is the am__doit target >confinc.out
  3571. .PHONY: am__doit
  3572. END
  3573. am__include="#"
  3574. am__quote=
  3575. # BSD make does it like this.
  3576. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3577. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3578. echo 'include confinc.mk # ignored' > confmf.GNU
  3579. _am_result=no
  3580. for s in GNU BSD; do
  3581. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3582. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3583. ac_status=$?
  3584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3585. (exit $ac_status); }
  3586. case $?:`cat confinc.out 2>/dev/null` in #(
  3587. '0:this is the am__doit target') :
  3588. case $s in #(
  3589. BSD) :
  3590. am__include='.include' am__quote='"' ;; #(
  3591. *) :
  3592. am__include='include' am__quote='' ;;
  3593. esac ;; #(
  3594. *) :
  3595. ;;
  3596. esac
  3597. if test "$am__include" != "#"; then
  3598. _am_result="yes ($s style)"
  3599. break
  3600. fi
  3601. done
  3602. rm -f confinc.* confmf.*
  3603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3604. printf "%s\n" "${_am_result}" >&6; }
  3605. # Check whether --enable-dependency-tracking was given.
  3606. if test ${enable_dependency_tracking+y}
  3607. then :
  3608. enableval=$enable_dependency_tracking;
  3609. fi
  3610. if test "x$enable_dependency_tracking" != xno; then
  3611. am_depcomp="$ac_aux_dir/depcomp"
  3612. AMDEPBACKSLASH='\'
  3613. am__nodep='_no'
  3614. fi
  3615. if test "x$enable_dependency_tracking" != xno; then
  3616. AMDEP_TRUE=
  3617. AMDEP_FALSE='#'
  3618. else
  3619. AMDEP_TRUE='#'
  3620. AMDEP_FALSE=
  3621. fi
  3622. ac_ext=c
  3623. ac_cpp='$CPP $CPPFLAGS'
  3624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3627. if test -n "$ac_tool_prefix"; then
  3628. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3629. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3631. printf %s "checking for $ac_word... " >&6; }
  3632. if test ${ac_cv_prog_CC+y}
  3633. then :
  3634. printf %s "(cached) " >&6
  3635. else $as_nop
  3636. if test -n "$CC"; then
  3637. ac_cv_prog_CC="$CC" # Let the user override the test.
  3638. else
  3639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3640. for as_dir in $PATH
  3641. do
  3642. IFS=$as_save_IFS
  3643. case $as_dir in #(((
  3644. '') as_dir=./ ;;
  3645. */) ;;
  3646. *) as_dir=$as_dir/ ;;
  3647. esac
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3650. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3652. break 2
  3653. fi
  3654. done
  3655. done
  3656. IFS=$as_save_IFS
  3657. fi
  3658. fi
  3659. CC=$ac_cv_prog_CC
  3660. if test -n "$CC"; then
  3661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3662. printf "%s\n" "$CC" >&6; }
  3663. else
  3664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3665. printf "%s\n" "no" >&6; }
  3666. fi
  3667. fi
  3668. if test -z "$ac_cv_prog_CC"; then
  3669. ac_ct_CC=$CC
  3670. # Extract the first word of "gcc", so it can be a program name with args.
  3671. set dummy gcc; ac_word=$2
  3672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3673. printf %s "checking for $ac_word... " >&6; }
  3674. if test ${ac_cv_prog_ac_ct_CC+y}
  3675. then :
  3676. printf %s "(cached) " >&6
  3677. else $as_nop
  3678. if test -n "$ac_ct_CC"; then
  3679. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3680. else
  3681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3682. for as_dir in $PATH
  3683. do
  3684. IFS=$as_save_IFS
  3685. case $as_dir in #(((
  3686. '') as_dir=./ ;;
  3687. */) ;;
  3688. *) as_dir=$as_dir/ ;;
  3689. esac
  3690. for ac_exec_ext in '' $ac_executable_extensions; do
  3691. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3692. ac_cv_prog_ac_ct_CC="gcc"
  3693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3694. break 2
  3695. fi
  3696. done
  3697. done
  3698. IFS=$as_save_IFS
  3699. fi
  3700. fi
  3701. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3702. if test -n "$ac_ct_CC"; then
  3703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3704. printf "%s\n" "$ac_ct_CC" >&6; }
  3705. else
  3706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3707. printf "%s\n" "no" >&6; }
  3708. fi
  3709. if test "x$ac_ct_CC" = x; then
  3710. CC=""
  3711. else
  3712. case $cross_compiling:$ac_tool_warned in
  3713. yes:)
  3714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3715. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3716. ac_tool_warned=yes ;;
  3717. esac
  3718. CC=$ac_ct_CC
  3719. fi
  3720. else
  3721. CC="$ac_cv_prog_CC"
  3722. fi
  3723. if test -z "$CC"; then
  3724. if test -n "$ac_tool_prefix"; then
  3725. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3726. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3728. printf %s "checking for $ac_word... " >&6; }
  3729. if test ${ac_cv_prog_CC+y}
  3730. then :
  3731. printf %s "(cached) " >&6
  3732. else $as_nop
  3733. if test -n "$CC"; then
  3734. ac_cv_prog_CC="$CC" # Let the user override the test.
  3735. else
  3736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3737. for as_dir in $PATH
  3738. do
  3739. IFS=$as_save_IFS
  3740. case $as_dir in #(((
  3741. '') as_dir=./ ;;
  3742. */) ;;
  3743. *) as_dir=$as_dir/ ;;
  3744. esac
  3745. for ac_exec_ext in '' $ac_executable_extensions; do
  3746. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3747. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3749. break 2
  3750. fi
  3751. done
  3752. done
  3753. IFS=$as_save_IFS
  3754. fi
  3755. fi
  3756. CC=$ac_cv_prog_CC
  3757. if test -n "$CC"; then
  3758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3759. printf "%s\n" "$CC" >&6; }
  3760. else
  3761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3762. printf "%s\n" "no" >&6; }
  3763. fi
  3764. fi
  3765. fi
  3766. if test -z "$CC"; then
  3767. # Extract the first word of "cc", so it can be a program name with args.
  3768. set dummy cc; ac_word=$2
  3769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. printf %s "checking for $ac_word... " >&6; }
  3771. if test ${ac_cv_prog_CC+y}
  3772. then :
  3773. printf %s "(cached) " >&6
  3774. else $as_nop
  3775. if test -n "$CC"; then
  3776. ac_cv_prog_CC="$CC" # Let the user override the test.
  3777. else
  3778. ac_prog_rejected=no
  3779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3780. for as_dir in $PATH
  3781. do
  3782. IFS=$as_save_IFS
  3783. case $as_dir in #(((
  3784. '') as_dir=./ ;;
  3785. */) ;;
  3786. *) as_dir=$as_dir/ ;;
  3787. esac
  3788. for ac_exec_ext in '' $ac_executable_extensions; do
  3789. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3790. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3791. ac_prog_rejected=yes
  3792. continue
  3793. fi
  3794. ac_cv_prog_CC="cc"
  3795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3796. break 2
  3797. fi
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. if test $ac_prog_rejected = yes; then
  3802. # We found a bogon in the path, so make sure we never use it.
  3803. set dummy $ac_cv_prog_CC
  3804. shift
  3805. if test $# != 0; then
  3806. # We chose a different compiler from the bogus one.
  3807. # However, it has the same basename, so the bogon will be chosen
  3808. # first if we set CC to just the basename; use the full file name.
  3809. shift
  3810. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3811. fi
  3812. fi
  3813. fi
  3814. fi
  3815. CC=$ac_cv_prog_CC
  3816. if test -n "$CC"; then
  3817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3818. printf "%s\n" "$CC" >&6; }
  3819. else
  3820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3821. printf "%s\n" "no" >&6; }
  3822. fi
  3823. fi
  3824. if test -z "$CC"; then
  3825. if test -n "$ac_tool_prefix"; then
  3826. for ac_prog in cl.exe
  3827. do
  3828. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3829. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. printf %s "checking for $ac_word... " >&6; }
  3832. if test ${ac_cv_prog_CC+y}
  3833. then :
  3834. printf %s "(cached) " >&6
  3835. else $as_nop
  3836. if test -n "$CC"; then
  3837. ac_cv_prog_CC="$CC" # Let the user override the test.
  3838. else
  3839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3840. for as_dir in $PATH
  3841. do
  3842. IFS=$as_save_IFS
  3843. case $as_dir in #(((
  3844. '') as_dir=./ ;;
  3845. */) ;;
  3846. *) as_dir=$as_dir/ ;;
  3847. esac
  3848. for ac_exec_ext in '' $ac_executable_extensions; do
  3849. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3850. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3852. break 2
  3853. fi
  3854. done
  3855. done
  3856. IFS=$as_save_IFS
  3857. fi
  3858. fi
  3859. CC=$ac_cv_prog_CC
  3860. if test -n "$CC"; then
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3862. printf "%s\n" "$CC" >&6; }
  3863. else
  3864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3865. printf "%s\n" "no" >&6; }
  3866. fi
  3867. test -n "$CC" && break
  3868. done
  3869. fi
  3870. if test -z "$CC"; then
  3871. ac_ct_CC=$CC
  3872. for ac_prog in cl.exe
  3873. do
  3874. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3875. set dummy $ac_prog; ac_word=$2
  3876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3877. printf %s "checking for $ac_word... " >&6; }
  3878. if test ${ac_cv_prog_ac_ct_CC+y}
  3879. then :
  3880. printf %s "(cached) " >&6
  3881. else $as_nop
  3882. if test -n "$ac_ct_CC"; then
  3883. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. case $as_dir in #(((
  3890. '') as_dir=./ ;;
  3891. */) ;;
  3892. *) as_dir=$as_dir/ ;;
  3893. esac
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3896. ac_cv_prog_ac_ct_CC="$ac_prog"
  3897. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3898. break 2
  3899. fi
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. fi
  3905. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3906. if test -n "$ac_ct_CC"; then
  3907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3908. printf "%s\n" "$ac_ct_CC" >&6; }
  3909. else
  3910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3911. printf "%s\n" "no" >&6; }
  3912. fi
  3913. test -n "$ac_ct_CC" && break
  3914. done
  3915. if test "x$ac_ct_CC" = x; then
  3916. CC=""
  3917. else
  3918. case $cross_compiling:$ac_tool_warned in
  3919. yes:)
  3920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3921. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3922. ac_tool_warned=yes ;;
  3923. esac
  3924. CC=$ac_ct_CC
  3925. fi
  3926. fi
  3927. fi
  3928. if test -z "$CC"; then
  3929. if test -n "$ac_tool_prefix"; then
  3930. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3931. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3933. printf %s "checking for $ac_word... " >&6; }
  3934. if test ${ac_cv_prog_CC+y}
  3935. then :
  3936. printf %s "(cached) " >&6
  3937. else $as_nop
  3938. if test -n "$CC"; then
  3939. ac_cv_prog_CC="$CC" # Let the user override the test.
  3940. else
  3941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3942. for as_dir in $PATH
  3943. do
  3944. IFS=$as_save_IFS
  3945. case $as_dir in #(((
  3946. '') as_dir=./ ;;
  3947. */) ;;
  3948. *) as_dir=$as_dir/ ;;
  3949. esac
  3950. for ac_exec_ext in '' $ac_executable_extensions; do
  3951. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3952. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3953. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3954. break 2
  3955. fi
  3956. done
  3957. done
  3958. IFS=$as_save_IFS
  3959. fi
  3960. fi
  3961. CC=$ac_cv_prog_CC
  3962. if test -n "$CC"; then
  3963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3964. printf "%s\n" "$CC" >&6; }
  3965. else
  3966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3967. printf "%s\n" "no" >&6; }
  3968. fi
  3969. fi
  3970. if test -z "$ac_cv_prog_CC"; then
  3971. ac_ct_CC=$CC
  3972. # Extract the first word of "clang", so it can be a program name with args.
  3973. set dummy clang; ac_word=$2
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3975. printf %s "checking for $ac_word... " >&6; }
  3976. if test ${ac_cv_prog_ac_ct_CC+y}
  3977. then :
  3978. printf %s "(cached) " >&6
  3979. else $as_nop
  3980. if test -n "$ac_ct_CC"; then
  3981. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3982. else
  3983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3984. for as_dir in $PATH
  3985. do
  3986. IFS=$as_save_IFS
  3987. case $as_dir in #(((
  3988. '') as_dir=./ ;;
  3989. */) ;;
  3990. *) as_dir=$as_dir/ ;;
  3991. esac
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3994. ac_cv_prog_ac_ct_CC="clang"
  3995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3996. break 2
  3997. fi
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. fi
  4002. fi
  4003. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4004. if test -n "$ac_ct_CC"; then
  4005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4006. printf "%s\n" "$ac_ct_CC" >&6; }
  4007. else
  4008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. printf "%s\n" "no" >&6; }
  4010. fi
  4011. if test "x$ac_ct_CC" = x; then
  4012. CC=""
  4013. else
  4014. case $cross_compiling:$ac_tool_warned in
  4015. yes:)
  4016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4017. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4018. ac_tool_warned=yes ;;
  4019. esac
  4020. CC=$ac_ct_CC
  4021. fi
  4022. else
  4023. CC="$ac_cv_prog_CC"
  4024. fi
  4025. fi
  4026. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4027. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4028. as_fn_error $? "no acceptable C compiler found in \$PATH
  4029. See \`config.log' for more details" "$LINENO" 5; }
  4030. # Provide some information about the compiler.
  4031. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4032. set X $ac_compile
  4033. ac_compiler=$2
  4034. for ac_option in --version -v -V -qversion -version; do
  4035. { { ac_try="$ac_compiler $ac_option >&5"
  4036. case "(($ac_try" in
  4037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4038. *) ac_try_echo=$ac_try;;
  4039. esac
  4040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4041. printf "%s\n" "$ac_try_echo"; } >&5
  4042. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4043. ac_status=$?
  4044. if test -s conftest.err; then
  4045. sed '10a\
  4046. ... rest of stderr output deleted ...
  4047. 10q' conftest.err >conftest.er1
  4048. cat conftest.er1 >&5
  4049. fi
  4050. rm -f conftest.er1 conftest.err
  4051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4052. test $ac_status = 0; }
  4053. done
  4054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. /* end confdefs.h. */
  4056. int
  4057. main (void)
  4058. {
  4059. ;
  4060. return 0;
  4061. }
  4062. _ACEOF
  4063. ac_clean_files_save=$ac_clean_files
  4064. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4065. # Try to create an executable without -o first, disregard a.out.
  4066. # It will help us diagnose broken compilers, and finding out an intuition
  4067. # of exeext.
  4068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4069. printf %s "checking whether the C compiler works... " >&6; }
  4070. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4071. # The possible output files:
  4072. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4073. ac_rmfiles=
  4074. for ac_file in $ac_files
  4075. do
  4076. case $ac_file in
  4077. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4078. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4079. esac
  4080. done
  4081. rm -f $ac_rmfiles
  4082. if { { ac_try="$ac_link_default"
  4083. case "(($ac_try" in
  4084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4085. *) ac_try_echo=$ac_try;;
  4086. esac
  4087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4088. printf "%s\n" "$ac_try_echo"; } >&5
  4089. (eval "$ac_link_default") 2>&5
  4090. ac_status=$?
  4091. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4092. test $ac_status = 0; }
  4093. then :
  4094. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4095. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4096. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4097. # so that the user can short-circuit this test for compilers unknown to
  4098. # Autoconf.
  4099. for ac_file in $ac_files ''
  4100. do
  4101. test -f "$ac_file" || continue
  4102. case $ac_file in
  4103. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4104. ;;
  4105. [ab].out )
  4106. # We found the default executable, but exeext='' is most
  4107. # certainly right.
  4108. break;;
  4109. *.* )
  4110. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4111. then :; else
  4112. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4113. fi
  4114. # We set ac_cv_exeext here because the later test for it is not
  4115. # safe: cross compilers may not add the suffix if given an `-o'
  4116. # argument, so we may need to know it at that point already.
  4117. # Even if this section looks crufty: it has the advantage of
  4118. # actually working.
  4119. break;;
  4120. * )
  4121. break;;
  4122. esac
  4123. done
  4124. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4125. else $as_nop
  4126. ac_file=''
  4127. fi
  4128. if test -z "$ac_file"
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4131. printf "%s\n" "no" >&6; }
  4132. printf "%s\n" "$as_me: failed program was:" >&5
  4133. sed 's/^/| /' conftest.$ac_ext >&5
  4134. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4135. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4136. as_fn_error 77 "C compiler cannot create executables
  4137. See \`config.log' for more details" "$LINENO" 5; }
  4138. else $as_nop
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4140. printf "%s\n" "yes" >&6; }
  4141. fi
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4143. printf %s "checking for C compiler default output file name... " >&6; }
  4144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4145. printf "%s\n" "$ac_file" >&6; }
  4146. ac_exeext=$ac_cv_exeext
  4147. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4148. ac_clean_files=$ac_clean_files_save
  4149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4150. printf %s "checking for suffix of executables... " >&6; }
  4151. if { { ac_try="$ac_link"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4157. printf "%s\n" "$ac_try_echo"; } >&5
  4158. (eval "$ac_link") 2>&5
  4159. ac_status=$?
  4160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4161. test $ac_status = 0; }
  4162. then :
  4163. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4164. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4165. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4166. # `rm'.
  4167. for ac_file in conftest.exe conftest conftest.*; do
  4168. test -f "$ac_file" || continue
  4169. case $ac_file in
  4170. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4171. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4172. break;;
  4173. * ) break;;
  4174. esac
  4175. done
  4176. else $as_nop
  4177. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4178. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4179. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4180. See \`config.log' for more details" "$LINENO" 5; }
  4181. fi
  4182. rm -f conftest conftest$ac_cv_exeext
  4183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4184. printf "%s\n" "$ac_cv_exeext" >&6; }
  4185. rm -f conftest.$ac_ext
  4186. EXEEXT=$ac_cv_exeext
  4187. ac_exeext=$EXEEXT
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. #include <stdio.h>
  4191. int
  4192. main (void)
  4193. {
  4194. FILE *f = fopen ("conftest.out", "w");
  4195. return ferror (f) || fclose (f) != 0;
  4196. ;
  4197. return 0;
  4198. }
  4199. _ACEOF
  4200. ac_clean_files="$ac_clean_files conftest.out"
  4201. # Check that the compiler produces executables we can run. If not, either
  4202. # the compiler is broken, or we cross compile.
  4203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4204. printf %s "checking whether we are cross compiling... " >&6; }
  4205. if test "$cross_compiling" != yes; then
  4206. { { ac_try="$ac_link"
  4207. case "(($ac_try" in
  4208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4209. *) ac_try_echo=$ac_try;;
  4210. esac
  4211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4212. printf "%s\n" "$ac_try_echo"; } >&5
  4213. (eval "$ac_link") 2>&5
  4214. ac_status=$?
  4215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4216. test $ac_status = 0; }
  4217. if { ac_try='./conftest$ac_cv_exeext'
  4218. { { case "(($ac_try" in
  4219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4220. *) ac_try_echo=$ac_try;;
  4221. esac
  4222. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4223. printf "%s\n" "$ac_try_echo"; } >&5
  4224. (eval "$ac_try") 2>&5
  4225. ac_status=$?
  4226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4227. test $ac_status = 0; }; }; then
  4228. cross_compiling=no
  4229. else
  4230. if test "$cross_compiling" = maybe; then
  4231. cross_compiling=yes
  4232. else
  4233. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4234. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4235. as_fn_error 77 "cannot run C compiled programs.
  4236. If you meant to cross compile, use \`--host'.
  4237. See \`config.log' for more details" "$LINENO" 5; }
  4238. fi
  4239. fi
  4240. fi
  4241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4242. printf "%s\n" "$cross_compiling" >&6; }
  4243. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4244. ac_clean_files=$ac_clean_files_save
  4245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4246. printf %s "checking for suffix of object files... " >&6; }
  4247. if test ${ac_cv_objext+y}
  4248. then :
  4249. printf %s "(cached) " >&6
  4250. else $as_nop
  4251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4252. /* end confdefs.h. */
  4253. int
  4254. main (void)
  4255. {
  4256. ;
  4257. return 0;
  4258. }
  4259. _ACEOF
  4260. rm -f conftest.o conftest.obj
  4261. if { { ac_try="$ac_compile"
  4262. case "(($ac_try" in
  4263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4264. *) ac_try_echo=$ac_try;;
  4265. esac
  4266. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4267. printf "%s\n" "$ac_try_echo"; } >&5
  4268. (eval "$ac_compile") 2>&5
  4269. ac_status=$?
  4270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4271. test $ac_status = 0; }
  4272. then :
  4273. for ac_file in conftest.o conftest.obj conftest.*; do
  4274. test -f "$ac_file" || continue;
  4275. case $ac_file in
  4276. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4277. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4278. break;;
  4279. esac
  4280. done
  4281. else $as_nop
  4282. printf "%s\n" "$as_me: failed program was:" >&5
  4283. sed 's/^/| /' conftest.$ac_ext >&5
  4284. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4285. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4286. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4287. See \`config.log' for more details" "$LINENO" 5; }
  4288. fi
  4289. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4290. fi
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4292. printf "%s\n" "$ac_cv_objext" >&6; }
  4293. OBJEXT=$ac_cv_objext
  4294. ac_objext=$OBJEXT
  4295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4296. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4297. if test ${ac_cv_c_compiler_gnu+y}
  4298. then :
  4299. printf %s "(cached) " >&6
  4300. else $as_nop
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. int
  4304. main (void)
  4305. {
  4306. #ifndef __GNUC__
  4307. choke me
  4308. #endif
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. if ac_fn_c_try_compile "$LINENO"
  4314. then :
  4315. ac_compiler_gnu=yes
  4316. else $as_nop
  4317. ac_compiler_gnu=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4321. fi
  4322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4323. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4325. if test $ac_compiler_gnu = yes; then
  4326. GCC=yes
  4327. else
  4328. GCC=
  4329. fi
  4330. ac_test_CFLAGS=${CFLAGS+y}
  4331. ac_save_CFLAGS=$CFLAGS
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4333. printf %s "checking whether $CC accepts -g... " >&6; }
  4334. if test ${ac_cv_prog_cc_g+y}
  4335. then :
  4336. printf %s "(cached) " >&6
  4337. else $as_nop
  4338. ac_save_c_werror_flag=$ac_c_werror_flag
  4339. ac_c_werror_flag=yes
  4340. ac_cv_prog_cc_g=no
  4341. CFLAGS="-g"
  4342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end confdefs.h. */
  4344. int
  4345. main (void)
  4346. {
  4347. ;
  4348. return 0;
  4349. }
  4350. _ACEOF
  4351. if ac_fn_c_try_compile "$LINENO"
  4352. then :
  4353. ac_cv_prog_cc_g=yes
  4354. else $as_nop
  4355. CFLAGS=""
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int
  4359. main (void)
  4360. {
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"
  4366. then :
  4367. else $as_nop
  4368. ac_c_werror_flag=$ac_save_c_werror_flag
  4369. CFLAGS="-g"
  4370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4371. /* end confdefs.h. */
  4372. int
  4373. main (void)
  4374. {
  4375. ;
  4376. return 0;
  4377. }
  4378. _ACEOF
  4379. if ac_fn_c_try_compile "$LINENO"
  4380. then :
  4381. ac_cv_prog_cc_g=yes
  4382. fi
  4383. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4386. fi
  4387. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4388. ac_c_werror_flag=$ac_save_c_werror_flag
  4389. fi
  4390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4391. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4392. if test $ac_test_CFLAGS; then
  4393. CFLAGS=$ac_save_CFLAGS
  4394. elif test $ac_cv_prog_cc_g = yes; then
  4395. if test "$GCC" = yes; then
  4396. CFLAGS="-g -O2"
  4397. else
  4398. CFLAGS="-g"
  4399. fi
  4400. else
  4401. if test "$GCC" = yes; then
  4402. CFLAGS="-O2"
  4403. else
  4404. CFLAGS=
  4405. fi
  4406. fi
  4407. ac_prog_cc_stdc=no
  4408. if test x$ac_prog_cc_stdc = xno
  4409. then :
  4410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4411. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4412. if test ${ac_cv_prog_cc_c11+y}
  4413. then :
  4414. printf %s "(cached) " >&6
  4415. else $as_nop
  4416. ac_cv_prog_cc_c11=no
  4417. ac_save_CC=$CC
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. $ac_c_conftest_c11_program
  4421. _ACEOF
  4422. for ac_arg in '' -std=gnu11
  4423. do
  4424. CC="$ac_save_CC $ac_arg"
  4425. if ac_fn_c_try_compile "$LINENO"
  4426. then :
  4427. ac_cv_prog_cc_c11=$ac_arg
  4428. fi
  4429. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4430. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4431. done
  4432. rm -f conftest.$ac_ext
  4433. CC=$ac_save_CC
  4434. fi
  4435. if test "x$ac_cv_prog_cc_c11" = xno
  4436. then :
  4437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4438. printf "%s\n" "unsupported" >&6; }
  4439. else $as_nop
  4440. if test "x$ac_cv_prog_cc_c11" = x
  4441. then :
  4442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4443. printf "%s\n" "none needed" >&6; }
  4444. else $as_nop
  4445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4446. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4447. CC="$CC $ac_cv_prog_cc_c11"
  4448. fi
  4449. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4450. ac_prog_cc_stdc=c11
  4451. fi
  4452. fi
  4453. if test x$ac_prog_cc_stdc = xno
  4454. then :
  4455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4456. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4457. if test ${ac_cv_prog_cc_c99+y}
  4458. then :
  4459. printf %s "(cached) " >&6
  4460. else $as_nop
  4461. ac_cv_prog_cc_c99=no
  4462. ac_save_CC=$CC
  4463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4464. /* end confdefs.h. */
  4465. $ac_c_conftest_c99_program
  4466. _ACEOF
  4467. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4468. do
  4469. CC="$ac_save_CC $ac_arg"
  4470. if ac_fn_c_try_compile "$LINENO"
  4471. then :
  4472. ac_cv_prog_cc_c99=$ac_arg
  4473. fi
  4474. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4475. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4476. done
  4477. rm -f conftest.$ac_ext
  4478. CC=$ac_save_CC
  4479. fi
  4480. if test "x$ac_cv_prog_cc_c99" = xno
  4481. then :
  4482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4483. printf "%s\n" "unsupported" >&6; }
  4484. else $as_nop
  4485. if test "x$ac_cv_prog_cc_c99" = x
  4486. then :
  4487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4488. printf "%s\n" "none needed" >&6; }
  4489. else $as_nop
  4490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4491. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4492. CC="$CC $ac_cv_prog_cc_c99"
  4493. fi
  4494. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4495. ac_prog_cc_stdc=c99
  4496. fi
  4497. fi
  4498. if test x$ac_prog_cc_stdc = xno
  4499. then :
  4500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4501. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4502. if test ${ac_cv_prog_cc_c89+y}
  4503. then :
  4504. printf %s "(cached) " >&6
  4505. else $as_nop
  4506. ac_cv_prog_cc_c89=no
  4507. ac_save_CC=$CC
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. $ac_c_conftest_c89_program
  4511. _ACEOF
  4512. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4513. do
  4514. CC="$ac_save_CC $ac_arg"
  4515. if ac_fn_c_try_compile "$LINENO"
  4516. then :
  4517. ac_cv_prog_cc_c89=$ac_arg
  4518. fi
  4519. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4520. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4521. done
  4522. rm -f conftest.$ac_ext
  4523. CC=$ac_save_CC
  4524. fi
  4525. if test "x$ac_cv_prog_cc_c89" = xno
  4526. then :
  4527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4528. printf "%s\n" "unsupported" >&6; }
  4529. else $as_nop
  4530. if test "x$ac_cv_prog_cc_c89" = x
  4531. then :
  4532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4533. printf "%s\n" "none needed" >&6; }
  4534. else $as_nop
  4535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4536. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4537. CC="$CC $ac_cv_prog_cc_c89"
  4538. fi
  4539. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4540. ac_prog_cc_stdc=c89
  4541. fi
  4542. fi
  4543. ac_ext=c
  4544. ac_cpp='$CPP $CPPFLAGS'
  4545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4548. ac_ext=c
  4549. ac_cpp='$CPP $CPPFLAGS'
  4550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4554. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4555. if test ${am_cv_prog_cc_c_o+y}
  4556. then :
  4557. printf %s "(cached) " >&6
  4558. else $as_nop
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. int
  4562. main (void)
  4563. {
  4564. ;
  4565. return 0;
  4566. }
  4567. _ACEOF
  4568. # Make sure it works both with $CC and with simple cc.
  4569. # Following AC_PROG_CC_C_O, we do the test twice because some
  4570. # compilers refuse to overwrite an existing .o file with -o,
  4571. # though they will create one.
  4572. am_cv_prog_cc_c_o=yes
  4573. for am_i in 1 2; do
  4574. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4575. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4576. ac_status=$?
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); } \
  4579. && test -f conftest2.$ac_objext; then
  4580. : OK
  4581. else
  4582. am_cv_prog_cc_c_o=no
  4583. break
  4584. fi
  4585. done
  4586. rm -f core conftest*
  4587. unset am_i
  4588. fi
  4589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4590. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4591. if test "$am_cv_prog_cc_c_o" != yes; then
  4592. # Losing compiler, so override with the script.
  4593. # FIXME: It is wrong to rewrite CC.
  4594. # But if we don't then we get into trouble of one sort or another.
  4595. # A longer-term fix would be to have automake use am__CC in this case,
  4596. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4597. CC="$am_aux_dir/compile $CC"
  4598. fi
  4599. ac_ext=c
  4600. ac_cpp='$CPP $CPPFLAGS'
  4601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4604. depcc="$CC" am_compiler_list=
  4605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4606. printf %s "checking dependency style of $depcc... " >&6; }
  4607. if test ${am_cv_CC_dependencies_compiler_type+y}
  4608. then :
  4609. printf %s "(cached) " >&6
  4610. else $as_nop
  4611. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4612. # We make a subdir and do the tests there. Otherwise we can end up
  4613. # making bogus files that we don't know about and never remove. For
  4614. # instance it was reported that on HP-UX the gcc test will end up
  4615. # making a dummy file named 'D' -- because '-MD' means "put the output
  4616. # in D".
  4617. rm -rf conftest.dir
  4618. mkdir conftest.dir
  4619. # Copy depcomp to subdir because otherwise we won't find it if we're
  4620. # using a relative directory.
  4621. cp "$am_depcomp" conftest.dir
  4622. cd conftest.dir
  4623. # We will build objects and dependencies in a subdirectory because
  4624. # it helps to detect inapplicable dependency modes. For instance
  4625. # both Tru64's cc and ICC support -MD to output dependencies as a
  4626. # side effect of compilation, but ICC will put the dependencies in
  4627. # the current directory while Tru64 will put them in the object
  4628. # directory.
  4629. mkdir sub
  4630. am_cv_CC_dependencies_compiler_type=none
  4631. if test "$am_compiler_list" = ""; then
  4632. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4633. fi
  4634. am__universal=false
  4635. case " $depcc " in #(
  4636. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4637. esac
  4638. for depmode in $am_compiler_list; do
  4639. # Setup a source with many dependencies, because some compilers
  4640. # like to wrap large dependency lists on column 80 (with \), and
  4641. # we should not choose a depcomp mode which is confused by this.
  4642. #
  4643. # We need to recreate these files for each test, as the compiler may
  4644. # overwrite some of them when testing with obscure command lines.
  4645. # This happens at least with the AIX C compiler.
  4646. : > sub/conftest.c
  4647. for i in 1 2 3 4 5 6; do
  4648. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4649. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4650. # Solaris 10 /bin/sh.
  4651. echo '/* dummy */' > sub/conftst$i.h
  4652. done
  4653. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4654. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4655. # mode. It turns out that the SunPro C++ compiler does not properly
  4656. # handle '-M -o', and we need to detect this. Also, some Intel
  4657. # versions had trouble with output in subdirs.
  4658. am__obj=sub/conftest.${OBJEXT-o}
  4659. am__minus_obj="-o $am__obj"
  4660. case $depmode in
  4661. gcc)
  4662. # This depmode causes a compiler race in universal mode.
  4663. test "$am__universal" = false || continue
  4664. ;;
  4665. nosideeffect)
  4666. # After this tag, mechanisms are not by side-effect, so they'll
  4667. # only be used when explicitly requested.
  4668. if test "x$enable_dependency_tracking" = xyes; then
  4669. continue
  4670. else
  4671. break
  4672. fi
  4673. ;;
  4674. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4675. # This compiler won't grok '-c -o', but also, the minuso test has
  4676. # not run yet. These depmodes are late enough in the game, and
  4677. # so weak that their functioning should not be impacted.
  4678. am__obj=conftest.${OBJEXT-o}
  4679. am__minus_obj=
  4680. ;;
  4681. none) break ;;
  4682. esac
  4683. if depmode=$depmode \
  4684. source=sub/conftest.c object=$am__obj \
  4685. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4686. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4687. >/dev/null 2>conftest.err &&
  4688. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4689. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4690. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4691. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4692. # icc doesn't choke on unknown options, it will just issue warnings
  4693. # or remarks (even with -Werror). So we grep stderr for any message
  4694. # that says an option was ignored or not supported.
  4695. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4696. # icc: Command line warning: ignoring option '-M'; no argument required
  4697. # The diagnosis changed in icc 8.0:
  4698. # icc: Command line remark: option '-MP' not supported
  4699. if (grep 'ignoring option' conftest.err ||
  4700. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4701. am_cv_CC_dependencies_compiler_type=$depmode
  4702. break
  4703. fi
  4704. fi
  4705. done
  4706. cd ..
  4707. rm -rf conftest.dir
  4708. else
  4709. am_cv_CC_dependencies_compiler_type=none
  4710. fi
  4711. fi
  4712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4713. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4714. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4715. if
  4716. test "x$enable_dependency_tracking" != xno \
  4717. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4718. am__fastdepCC_TRUE=
  4719. am__fastdepCC_FALSE='#'
  4720. else
  4721. am__fastdepCC_TRUE='#'
  4722. am__fastdepCC_FALSE=
  4723. fi
  4724. if test -n "$ac_tool_prefix"; then
  4725. for ac_prog in ar lib "link -lib"
  4726. do
  4727. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4728. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4730. printf %s "checking for $ac_word... " >&6; }
  4731. if test ${ac_cv_prog_AR+y}
  4732. then :
  4733. printf %s "(cached) " >&6
  4734. else $as_nop
  4735. if test -n "$AR"; then
  4736. ac_cv_prog_AR="$AR" # Let the user override the test.
  4737. else
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. case $as_dir in #(((
  4743. '') as_dir=./ ;;
  4744. */) ;;
  4745. *) as_dir=$as_dir/ ;;
  4746. esac
  4747. for ac_exec_ext in '' $ac_executable_extensions; do
  4748. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4749. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4751. break 2
  4752. fi
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. fi
  4757. fi
  4758. AR=$ac_cv_prog_AR
  4759. if test -n "$AR"; then
  4760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4761. printf "%s\n" "$AR" >&6; }
  4762. else
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4764. printf "%s\n" "no" >&6; }
  4765. fi
  4766. test -n "$AR" && break
  4767. done
  4768. fi
  4769. if test -z "$AR"; then
  4770. ac_ct_AR=$AR
  4771. for ac_prog in ar lib "link -lib"
  4772. do
  4773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4774. set dummy $ac_prog; ac_word=$2
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4776. printf %s "checking for $ac_word... " >&6; }
  4777. if test ${ac_cv_prog_ac_ct_AR+y}
  4778. then :
  4779. printf %s "(cached) " >&6
  4780. else $as_nop
  4781. if test -n "$ac_ct_AR"; then
  4782. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4783. else
  4784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4785. for as_dir in $PATH
  4786. do
  4787. IFS=$as_save_IFS
  4788. case $as_dir in #(((
  4789. '') as_dir=./ ;;
  4790. */) ;;
  4791. *) as_dir=$as_dir/ ;;
  4792. esac
  4793. for ac_exec_ext in '' $ac_executable_extensions; do
  4794. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4795. ac_cv_prog_ac_ct_AR="$ac_prog"
  4796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4797. break 2
  4798. fi
  4799. done
  4800. done
  4801. IFS=$as_save_IFS
  4802. fi
  4803. fi
  4804. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4805. if test -n "$ac_ct_AR"; then
  4806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4807. printf "%s\n" "$ac_ct_AR" >&6; }
  4808. else
  4809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4810. printf "%s\n" "no" >&6; }
  4811. fi
  4812. test -n "$ac_ct_AR" && break
  4813. done
  4814. if test "x$ac_ct_AR" = x; then
  4815. AR="false"
  4816. else
  4817. case $cross_compiling:$ac_tool_warned in
  4818. yes:)
  4819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4820. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4821. ac_tool_warned=yes ;;
  4822. esac
  4823. AR=$ac_ct_AR
  4824. fi
  4825. fi
  4826. : ${AR=ar}
  4827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4828. printf %s "checking the archiver ($AR) interface... " >&6; }
  4829. if test ${am_cv_ar_interface+y}
  4830. then :
  4831. printf %s "(cached) " >&6
  4832. else $as_nop
  4833. ac_ext=c
  4834. ac_cpp='$CPP $CPPFLAGS'
  4835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4838. am_cv_ar_interface=ar
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. int some_variable = 0;
  4842. _ACEOF
  4843. if ac_fn_c_try_compile "$LINENO"
  4844. then :
  4845. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4846. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4847. (eval $am_ar_try) 2>&5
  4848. ac_status=$?
  4849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4850. test $ac_status = 0; }
  4851. if test "$ac_status" -eq 0; then
  4852. am_cv_ar_interface=ar
  4853. else
  4854. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4855. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4856. (eval $am_ar_try) 2>&5
  4857. ac_status=$?
  4858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4859. test $ac_status = 0; }
  4860. if test "$ac_status" -eq 0; then
  4861. am_cv_ar_interface=lib
  4862. else
  4863. am_cv_ar_interface=unknown
  4864. fi
  4865. fi
  4866. rm -f conftest.lib libconftest.a
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4869. ac_ext=c
  4870. ac_cpp='$CPP $CPPFLAGS'
  4871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4874. fi
  4875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4876. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4877. case $am_cv_ar_interface in
  4878. ar)
  4879. ;;
  4880. lib)
  4881. # Microsoft lib, so override with the ar-lib wrapper script.
  4882. # FIXME: It is wrong to rewrite AR.
  4883. # But if we don't then we get into trouble of one sort or another.
  4884. # A longer-term fix would be to have automake use am__AR in this case,
  4885. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4886. # similar.
  4887. AR="$am_aux_dir/ar-lib $AR"
  4888. ;;
  4889. unknown)
  4890. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4891. ;;
  4892. esac
  4893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4894. printf %s "checking whether ln -s works... " >&6; }
  4895. LN_S=$as_ln_s
  4896. if test "$LN_S" = "ln -s"; then
  4897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4898. printf "%s\n" "yes" >&6; }
  4899. else
  4900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4901. printf "%s\n" "no, using $LN_S" >&6; }
  4902. fi
  4903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4904. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4905. set x ${MAKE-make}
  4906. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4907. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4908. then :
  4909. printf %s "(cached) " >&6
  4910. else $as_nop
  4911. cat >conftest.make <<\_ACEOF
  4912. SHELL = /bin/sh
  4913. all:
  4914. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4915. _ACEOF
  4916. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4917. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4918. *@@@%%%=?*=@@@%%%*)
  4919. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4920. *)
  4921. eval ac_cv_prog_make_${ac_make}_set=no;;
  4922. esac
  4923. rm -f conftest.make
  4924. fi
  4925. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4927. printf "%s\n" "yes" >&6; }
  4928. SET_MAKE=
  4929. else
  4930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. printf "%s\n" "no" >&6; }
  4932. SET_MAKE="MAKE=${MAKE-make}"
  4933. fi
  4934. case `pwd` in
  4935. *\ * | *\ *)
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4937. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4938. esac
  4939. macro_version='2.5.3'
  4940. macro_revision='2.5.3'
  4941. ltmain=$ac_aux_dir/ltmain.sh
  4942. # Backslashify metacharacters that are still active within
  4943. # double-quoted strings.
  4944. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4945. # Same as above, but do not quote variable references.
  4946. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4947. # Sed substitution to delay expansion of an escaped shell variable in a
  4948. # double_quote_subst'ed string.
  4949. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4950. # Sed substitution to delay expansion of an escaped single quote.
  4951. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4952. # Sed substitution to avoid accidental globbing in evaled expressions
  4953. no_glob_subst='s/\*/\\\*/g'
  4954. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4955. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4956. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4958. printf %s "checking how to print strings... " >&6; }
  4959. # Test print first, because it will be a builtin if present.
  4960. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4961. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4962. ECHO='print -r --'
  4963. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4964. ECHO='printf %s\n'
  4965. else
  4966. # Use this function as a fallback that always works.
  4967. func_fallback_echo ()
  4968. {
  4969. eval 'cat <<_LTECHO_EOF
  4970. $1
  4971. _LTECHO_EOF'
  4972. }
  4973. ECHO='func_fallback_echo'
  4974. fi
  4975. # func_echo_all arg...
  4976. # Invoke $ECHO with all args, space-separated.
  4977. func_echo_all ()
  4978. {
  4979. $ECHO ""
  4980. }
  4981. case $ECHO in
  4982. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4983. printf "%s\n" "printf" >&6; } ;;
  4984. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4985. printf "%s\n" "print -r" >&6; } ;;
  4986. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4987. printf "%s\n" "cat" >&6; } ;;
  4988. esac
  4989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4990. printf %s "checking for a sed that does not truncate output... " >&6; }
  4991. if test ${ac_cv_path_SED+y}
  4992. then :
  4993. printf %s "(cached) " >&6
  4994. else $as_nop
  4995. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4996. for ac_i in 1 2 3 4 5 6 7; do
  4997. ac_script="$ac_script$as_nl$ac_script"
  4998. done
  4999. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5000. { ac_script=; unset ac_script;}
  5001. if test -z "$SED"; then
  5002. ac_path_SED_found=false
  5003. # Loop through the user's path and test for each of PROGNAME-LIST
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH
  5006. do
  5007. IFS=$as_save_IFS
  5008. case $as_dir in #(((
  5009. '') as_dir=./ ;;
  5010. */) ;;
  5011. *) as_dir=$as_dir/ ;;
  5012. esac
  5013. for ac_prog in sed gsed
  5014. do
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5017. as_fn_executable_p "$ac_path_SED" || continue
  5018. # Check for GNU ac_path_SED and select it if it is found.
  5019. # Check for GNU $ac_path_SED
  5020. case `"$ac_path_SED" --version 2>&1` in
  5021. *GNU*)
  5022. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5023. *)
  5024. ac_count=0
  5025. printf %s 0123456789 >"conftest.in"
  5026. while :
  5027. do
  5028. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5029. mv "conftest.tmp" "conftest.in"
  5030. cp "conftest.in" "conftest.nl"
  5031. printf "%s\n" '' >> "conftest.nl"
  5032. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5033. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5034. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5035. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5036. # Best one so far, save it but keep looking for a better one
  5037. ac_cv_path_SED="$ac_path_SED"
  5038. ac_path_SED_max=$ac_count
  5039. fi
  5040. # 10*(2^10) chars as input seems more than enough
  5041. test $ac_count -gt 10 && break
  5042. done
  5043. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5044. esac
  5045. $ac_path_SED_found && break 3
  5046. done
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. if test -z "$ac_cv_path_SED"; then
  5051. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5052. fi
  5053. else
  5054. ac_cv_path_SED=$SED
  5055. fi
  5056. fi
  5057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5058. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5059. SED="$ac_cv_path_SED"
  5060. rm -f conftest.sed
  5061. test -z "$SED" && SED=sed
  5062. Xsed="$SED -e 1s/^X//"
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5064. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5065. if test ${ac_cv_path_GREP+y}
  5066. then :
  5067. printf %s "(cached) " >&6
  5068. else $as_nop
  5069. if test -z "$GREP"; then
  5070. ac_path_GREP_found=false
  5071. # Loop through the user's path and test for each of PROGNAME-LIST
  5072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5073. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5074. do
  5075. IFS=$as_save_IFS
  5076. case $as_dir in #(((
  5077. '') as_dir=./ ;;
  5078. */) ;;
  5079. *) as_dir=$as_dir/ ;;
  5080. esac
  5081. for ac_prog in grep ggrep
  5082. do
  5083. for ac_exec_ext in '' $ac_executable_extensions; do
  5084. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5085. as_fn_executable_p "$ac_path_GREP" || continue
  5086. # Check for GNU ac_path_GREP and select it if it is found.
  5087. # Check for GNU $ac_path_GREP
  5088. case `"$ac_path_GREP" --version 2>&1` in
  5089. *GNU*)
  5090. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5091. *)
  5092. ac_count=0
  5093. printf %s 0123456789 >"conftest.in"
  5094. while :
  5095. do
  5096. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5097. mv "conftest.tmp" "conftest.in"
  5098. cp "conftest.in" "conftest.nl"
  5099. printf "%s\n" 'GREP' >> "conftest.nl"
  5100. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5101. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5102. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5103. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5104. # Best one so far, save it but keep looking for a better one
  5105. ac_cv_path_GREP="$ac_path_GREP"
  5106. ac_path_GREP_max=$ac_count
  5107. fi
  5108. # 10*(2^10) chars as input seems more than enough
  5109. test $ac_count -gt 10 && break
  5110. done
  5111. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5112. esac
  5113. $ac_path_GREP_found && break 3
  5114. done
  5115. done
  5116. done
  5117. IFS=$as_save_IFS
  5118. if test -z "$ac_cv_path_GREP"; then
  5119. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5120. fi
  5121. else
  5122. ac_cv_path_GREP=$GREP
  5123. fi
  5124. fi
  5125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5126. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5127. GREP="$ac_cv_path_GREP"
  5128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5129. printf %s "checking for egrep... " >&6; }
  5130. if test ${ac_cv_path_EGREP+y}
  5131. then :
  5132. printf %s "(cached) " >&6
  5133. else $as_nop
  5134. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5135. then ac_cv_path_EGREP="$GREP -E"
  5136. else
  5137. if test -z "$EGREP"; then
  5138. ac_path_EGREP_found=false
  5139. # Loop through the user's path and test for each of PROGNAME-LIST
  5140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5141. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5142. do
  5143. IFS=$as_save_IFS
  5144. case $as_dir in #(((
  5145. '') as_dir=./ ;;
  5146. */) ;;
  5147. *) as_dir=$as_dir/ ;;
  5148. esac
  5149. for ac_prog in egrep
  5150. do
  5151. for ac_exec_ext in '' $ac_executable_extensions; do
  5152. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5153. as_fn_executable_p "$ac_path_EGREP" || continue
  5154. # Check for GNU ac_path_EGREP and select it if it is found.
  5155. # Check for GNU $ac_path_EGREP
  5156. case `"$ac_path_EGREP" --version 2>&1` in
  5157. *GNU*)
  5158. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5159. *)
  5160. ac_count=0
  5161. printf %s 0123456789 >"conftest.in"
  5162. while :
  5163. do
  5164. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5165. mv "conftest.tmp" "conftest.in"
  5166. cp "conftest.in" "conftest.nl"
  5167. printf "%s\n" 'EGREP' >> "conftest.nl"
  5168. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5169. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5170. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5171. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5172. # Best one so far, save it but keep looking for a better one
  5173. ac_cv_path_EGREP="$ac_path_EGREP"
  5174. ac_path_EGREP_max=$ac_count
  5175. fi
  5176. # 10*(2^10) chars as input seems more than enough
  5177. test $ac_count -gt 10 && break
  5178. done
  5179. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5180. esac
  5181. $ac_path_EGREP_found && break 3
  5182. done
  5183. done
  5184. done
  5185. IFS=$as_save_IFS
  5186. if test -z "$ac_cv_path_EGREP"; then
  5187. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5188. fi
  5189. else
  5190. ac_cv_path_EGREP=$EGREP
  5191. fi
  5192. fi
  5193. fi
  5194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5195. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5196. EGREP="$ac_cv_path_EGREP"
  5197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5198. printf %s "checking for fgrep... " >&6; }
  5199. if test ${ac_cv_path_FGREP+y}
  5200. then :
  5201. printf %s "(cached) " >&6
  5202. else $as_nop
  5203. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5204. then ac_cv_path_FGREP="$GREP -F"
  5205. else
  5206. if test -z "$FGREP"; then
  5207. ac_path_FGREP_found=false
  5208. # Loop through the user's path and test for each of PROGNAME-LIST
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5211. do
  5212. IFS=$as_save_IFS
  5213. case $as_dir in #(((
  5214. '') as_dir=./ ;;
  5215. */) ;;
  5216. *) as_dir=$as_dir/ ;;
  5217. esac
  5218. for ac_prog in fgrep
  5219. do
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5222. as_fn_executable_p "$ac_path_FGREP" || continue
  5223. # Check for GNU ac_path_FGREP and select it if it is found.
  5224. # Check for GNU $ac_path_FGREP
  5225. case `"$ac_path_FGREP" --version 2>&1` in
  5226. *GNU*)
  5227. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5228. *)
  5229. ac_count=0
  5230. printf %s 0123456789 >"conftest.in"
  5231. while :
  5232. do
  5233. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5234. mv "conftest.tmp" "conftest.in"
  5235. cp "conftest.in" "conftest.nl"
  5236. printf "%s\n" 'FGREP' >> "conftest.nl"
  5237. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5238. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5239. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5240. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5241. # Best one so far, save it but keep looking for a better one
  5242. ac_cv_path_FGREP="$ac_path_FGREP"
  5243. ac_path_FGREP_max=$ac_count
  5244. fi
  5245. # 10*(2^10) chars as input seems more than enough
  5246. test $ac_count -gt 10 && break
  5247. done
  5248. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5249. esac
  5250. $ac_path_FGREP_found && break 3
  5251. done
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. if test -z "$ac_cv_path_FGREP"; then
  5256. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5257. fi
  5258. else
  5259. ac_cv_path_FGREP=$FGREP
  5260. fi
  5261. fi
  5262. fi
  5263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5264. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5265. FGREP="$ac_cv_path_FGREP"
  5266. test -z "$GREP" && GREP=grep
  5267. # Check whether --with-gnu-ld was given.
  5268. if test ${with_gnu_ld+y}
  5269. then :
  5270. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5271. else $as_nop
  5272. with_gnu_ld=no
  5273. fi
  5274. ac_prog=ld
  5275. if test yes = "$GCC"; then
  5276. # Check if gcc -print-prog-name=ld gives a path.
  5277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5278. printf %s "checking for ld used by $CC... " >&6; }
  5279. case $host in
  5280. *-*-mingw* | *-*-windows*)
  5281. # gcc leaves a trailing carriage return, which upsets mingw
  5282. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5283. *)
  5284. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5285. esac
  5286. case $ac_prog in
  5287. # Accept absolute paths.
  5288. [\\/]* | ?:[\\/]*)
  5289. re_direlt='/[^/][^/]*/\.\./'
  5290. # Canonicalize the pathname of ld
  5291. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5292. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5293. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5294. done
  5295. test -z "$LD" && LD=$ac_prog
  5296. ;;
  5297. "")
  5298. # If it fails, then pretend we aren't using GCC.
  5299. ac_prog=ld
  5300. ;;
  5301. *)
  5302. # If it is relative, then search for the first ld in PATH.
  5303. with_gnu_ld=unknown
  5304. ;;
  5305. esac
  5306. elif test yes = "$with_gnu_ld"; then
  5307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5308. printf %s "checking for GNU ld... " >&6; }
  5309. else
  5310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5311. printf %s "checking for non-GNU ld... " >&6; }
  5312. fi
  5313. if test ${lt_cv_path_LD+y}
  5314. then :
  5315. printf %s "(cached) " >&6
  5316. else $as_nop
  5317. if test -z "$LD"; then
  5318. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5319. for ac_dir in $PATH; do
  5320. IFS=$lt_save_ifs
  5321. test -z "$ac_dir" && ac_dir=.
  5322. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5323. lt_cv_path_LD=$ac_dir/$ac_prog
  5324. # Check to see if the program is GNU ld. I'd rather use --version,
  5325. # but apparently some variants of GNU ld only accept -v.
  5326. # Break only if it was the GNU/non-GNU ld that we prefer.
  5327. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5328. *GNU* | *'with BFD'*)
  5329. test no != "$with_gnu_ld" && break
  5330. ;;
  5331. *)
  5332. test yes != "$with_gnu_ld" && break
  5333. ;;
  5334. esac
  5335. fi
  5336. done
  5337. IFS=$lt_save_ifs
  5338. else
  5339. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5340. fi
  5341. fi
  5342. LD=$lt_cv_path_LD
  5343. if test -n "$LD"; then
  5344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5345. printf "%s\n" "$LD" >&6; }
  5346. else
  5347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5348. printf "%s\n" "no" >&6; }
  5349. fi
  5350. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5352. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5353. if test ${lt_cv_prog_gnu_ld+y}
  5354. then :
  5355. printf %s "(cached) " >&6
  5356. else $as_nop
  5357. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5358. case `$LD -v 2>&1 </dev/null` in
  5359. *GNU* | *'with BFD'*)
  5360. lt_cv_prog_gnu_ld=yes
  5361. ;;
  5362. *)
  5363. lt_cv_prog_gnu_ld=no
  5364. ;;
  5365. esac
  5366. fi
  5367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5368. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5369. with_gnu_ld=$lt_cv_prog_gnu_ld
  5370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5371. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5372. if test ${lt_cv_path_NM+y}
  5373. then :
  5374. printf %s "(cached) " >&6
  5375. else $as_nop
  5376. if test -n "$NM"; then
  5377. # Let the user override the test.
  5378. lt_cv_path_NM=$NM
  5379. else
  5380. lt_nm_to_check=${ac_tool_prefix}nm
  5381. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5382. lt_nm_to_check="$lt_nm_to_check nm"
  5383. fi
  5384. for lt_tmp_nm in $lt_nm_to_check; do
  5385. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5386. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5387. IFS=$lt_save_ifs
  5388. test -z "$ac_dir" && ac_dir=.
  5389. tmp_nm=$ac_dir/$lt_tmp_nm
  5390. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5391. # Check to see if the nm accepts a BSD-compat flag.
  5392. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5393. # nm: unknown option "B" ignored
  5394. # Tru64's nm complains that /dev/null is an invalid object file
  5395. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5396. case $build_os in
  5397. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  5398. *) lt_bad_file=/dev/null ;;
  5399. esac
  5400. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5401. *$lt_bad_file* | *'Invalid file or object type'*)
  5402. lt_cv_path_NM="$tmp_nm -B"
  5403. break 2
  5404. ;;
  5405. *)
  5406. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5407. */dev/null*)
  5408. lt_cv_path_NM="$tmp_nm -p"
  5409. break 2
  5410. ;;
  5411. *)
  5412. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5413. continue # so that we can try to find one that supports BSD flags
  5414. ;;
  5415. esac
  5416. ;;
  5417. esac
  5418. fi
  5419. done
  5420. IFS=$lt_save_ifs
  5421. done
  5422. : ${lt_cv_path_NM=no}
  5423. fi
  5424. fi
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5426. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5427. if test no != "$lt_cv_path_NM"; then
  5428. NM=$lt_cv_path_NM
  5429. else
  5430. # Didn't find any BSD compatible name lister, look for dumpbin.
  5431. if test -n "$DUMPBIN"; then :
  5432. # Let the user override the test.
  5433. else
  5434. if test -n "$ac_tool_prefix"; then
  5435. for ac_prog in dumpbin "link -dump"
  5436. do
  5437. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5438. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5440. printf %s "checking for $ac_word... " >&6; }
  5441. if test ${ac_cv_prog_DUMPBIN+y}
  5442. then :
  5443. printf %s "(cached) " >&6
  5444. else $as_nop
  5445. if test -n "$DUMPBIN"; then
  5446. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451. IFS=$as_save_IFS
  5452. case $as_dir in #(((
  5453. '') as_dir=./ ;;
  5454. */) ;;
  5455. *) as_dir=$as_dir/ ;;
  5456. esac
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5459. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. DUMPBIN=$ac_cv_prog_DUMPBIN
  5469. if test -n "$DUMPBIN"; then
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5471. printf "%s\n" "$DUMPBIN" >&6; }
  5472. else
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. printf "%s\n" "no" >&6; }
  5475. fi
  5476. test -n "$DUMPBIN" && break
  5477. done
  5478. fi
  5479. if test -z "$DUMPBIN"; then
  5480. ac_ct_DUMPBIN=$DUMPBIN
  5481. for ac_prog in dumpbin "link -dump"
  5482. do
  5483. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5484. set dummy $ac_prog; ac_word=$2
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5486. printf %s "checking for $ac_word... " >&6; }
  5487. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5488. then :
  5489. printf %s "(cached) " >&6
  5490. else $as_nop
  5491. if test -n "$ac_ct_DUMPBIN"; then
  5492. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5493. else
  5494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5495. for as_dir in $PATH
  5496. do
  5497. IFS=$as_save_IFS
  5498. case $as_dir in #(((
  5499. '') as_dir=./ ;;
  5500. */) ;;
  5501. *) as_dir=$as_dir/ ;;
  5502. esac
  5503. for ac_exec_ext in '' $ac_executable_extensions; do
  5504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5505. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5507. break 2
  5508. fi
  5509. done
  5510. done
  5511. IFS=$as_save_IFS
  5512. fi
  5513. fi
  5514. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5515. if test -n "$ac_ct_DUMPBIN"; then
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5517. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5518. else
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5520. printf "%s\n" "no" >&6; }
  5521. fi
  5522. test -n "$ac_ct_DUMPBIN" && break
  5523. done
  5524. if test "x$ac_ct_DUMPBIN" = x; then
  5525. DUMPBIN=":"
  5526. else
  5527. case $cross_compiling:$ac_tool_warned in
  5528. yes:)
  5529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5530. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5531. ac_tool_warned=yes ;;
  5532. esac
  5533. DUMPBIN=$ac_ct_DUMPBIN
  5534. fi
  5535. fi
  5536. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5537. *COFF*)
  5538. DUMPBIN="$DUMPBIN -symbols -headers"
  5539. ;;
  5540. *)
  5541. DUMPBIN=:
  5542. ;;
  5543. esac
  5544. fi
  5545. if test : != "$DUMPBIN"; then
  5546. NM=$DUMPBIN
  5547. fi
  5548. fi
  5549. test -z "$NM" && NM=nm
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5551. printf %s "checking the name lister ($NM) interface... " >&6; }
  5552. if test ${lt_cv_nm_interface+y}
  5553. then :
  5554. printf %s "(cached) " >&6
  5555. else $as_nop
  5556. lt_cv_nm_interface="BSD nm"
  5557. echo "int some_variable = 0;" > conftest.$ac_ext
  5558. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5559. (eval "$ac_compile" 2>conftest.err)
  5560. cat conftest.err >&5
  5561. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5562. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5563. cat conftest.err >&5
  5564. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5565. cat conftest.out >&5
  5566. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5567. lt_cv_nm_interface="MS dumpbin"
  5568. fi
  5569. rm -f conftest*
  5570. fi
  5571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5572. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5573. # find the maximum length of command line arguments
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5575. printf %s "checking the maximum length of command line arguments... " >&6; }
  5576. if test ${lt_cv_sys_max_cmd_len+y}
  5577. then :
  5578. printf %s "(cached) " >&6
  5579. else $as_nop
  5580. i=0
  5581. teststring=ABCD
  5582. case $build_os in
  5583. msdosdjgpp*)
  5584. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5585. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5586. # during glob expansion). Even if it were fixed, the result of this
  5587. # check would be larger than it should be.
  5588. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5589. ;;
  5590. gnu*)
  5591. # Under GNU Hurd, this test is not required because there is
  5592. # no limit to the length of command line arguments.
  5593. # Libtool will interpret -1 as no limit whatsoever
  5594. lt_cv_sys_max_cmd_len=-1;
  5595. ;;
  5596. cygwin* | mingw* | windows* | cegcc*)
  5597. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5598. # about 5 minutes as the teststring grows exponentially.
  5599. # Worse, since 9x/ME are not pre-emptively multitasking,
  5600. # you end up with a "frozen" computer, even though with patience
  5601. # the test eventually succeeds (with a max line length of 256k).
  5602. # Instead, let's just punt: use the minimum linelength reported by
  5603. # all of the supported platforms: 8192 (on NT/2K/XP).
  5604. lt_cv_sys_max_cmd_len=8192;
  5605. ;;
  5606. mint*)
  5607. # On MiNT this can take a long time and run out of memory.
  5608. lt_cv_sys_max_cmd_len=8192;
  5609. ;;
  5610. amigaos*)
  5611. # On AmigaOS with pdksh, this test takes hours, literally.
  5612. # So we just punt and use a minimum line length of 8192.
  5613. lt_cv_sys_max_cmd_len=8192;
  5614. ;;
  5615. darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5616. # This has been around since 386BSD, at least. Likely further.
  5617. if test -x /sbin/sysctl; then
  5618. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5619. elif test -x /usr/sbin/sysctl; then
  5620. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5621. else
  5622. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5623. fi
  5624. # And add a safety zone
  5625. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5626. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5627. ;;
  5628. interix*)
  5629. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5630. lt_cv_sys_max_cmd_len=196608
  5631. ;;
  5632. os2*)
  5633. # The test takes a long time on OS/2.
  5634. lt_cv_sys_max_cmd_len=8192
  5635. ;;
  5636. osf*)
  5637. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5638. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5639. # nice to cause kernel panics so lets avoid the loop below.
  5640. # First set a reasonable default.
  5641. lt_cv_sys_max_cmd_len=16384
  5642. #
  5643. if test -x /sbin/sysconfig; then
  5644. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5645. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5646. esac
  5647. fi
  5648. ;;
  5649. sco3.2v5*)
  5650. lt_cv_sys_max_cmd_len=102400
  5651. ;;
  5652. sysv5* | sco5v6* | sysv4.2uw2*)
  5653. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5654. if test -n "$kargmax"; then
  5655. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  5656. else
  5657. lt_cv_sys_max_cmd_len=32768
  5658. fi
  5659. ;;
  5660. *)
  5661. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5662. if test -n "$lt_cv_sys_max_cmd_len" && \
  5663. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5664. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5665. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5666. else
  5667. # Make teststring a little bigger before we do anything with it.
  5668. # a 1K string should be a reasonable start.
  5669. for i in 1 2 3 4 5 6 7 8; do
  5670. teststring=$teststring$teststring
  5671. done
  5672. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5673. # If test is not a shell built-in, we'll probably end up computing a
  5674. # maximum length that is only half of the actual maximum length, but
  5675. # we can't tell.
  5676. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5677. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5678. test 17 != "$i" # 1/2 MB should be enough
  5679. do
  5680. i=`expr $i + 1`
  5681. teststring=$teststring$teststring
  5682. done
  5683. # Only check the string length outside the loop.
  5684. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5685. teststring=
  5686. # Add a significant safety factor because C++ compilers can tack on
  5687. # massive amounts of additional arguments before passing them to the
  5688. # linker. It appears as though 1/2 is a usable value.
  5689. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5690. fi
  5691. ;;
  5692. esac
  5693. fi
  5694. if test -n "$lt_cv_sys_max_cmd_len"; then
  5695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5696. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5697. else
  5698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5699. printf "%s\n" "none" >&6; }
  5700. fi
  5701. max_cmd_len=$lt_cv_sys_max_cmd_len
  5702. : ${CP="cp -f"}
  5703. : ${MV="mv -f"}
  5704. : ${RM="rm -f"}
  5705. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5706. lt_unset=unset
  5707. else
  5708. lt_unset=false
  5709. fi
  5710. # test EBCDIC or ASCII
  5711. case `echo X|tr X '\101'` in
  5712. A) # ASCII based system
  5713. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5714. lt_SP2NL='tr \040 \012'
  5715. lt_NL2SP='tr \015\012 \040\040'
  5716. ;;
  5717. *) # EBCDIC based system
  5718. lt_SP2NL='tr \100 \n'
  5719. lt_NL2SP='tr \r\n \100\100'
  5720. ;;
  5721. esac
  5722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5723. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5724. if test ${lt_cv_to_host_file_cmd+y}
  5725. then :
  5726. printf %s "(cached) " >&6
  5727. else $as_nop
  5728. case $host in
  5729. *-*-mingw* )
  5730. case $build in
  5731. *-*-mingw* | *-*-windows* ) # actually msys
  5732. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5733. ;;
  5734. *-*-cygwin* )
  5735. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5736. ;;
  5737. * ) # otherwise, assume *nix
  5738. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5739. ;;
  5740. esac
  5741. ;;
  5742. *-*-cygwin* )
  5743. case $build in
  5744. *-*-mingw* | *-*-windows* ) # actually msys
  5745. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5746. ;;
  5747. *-*-cygwin* )
  5748. lt_cv_to_host_file_cmd=func_convert_file_noop
  5749. ;;
  5750. * ) # otherwise, assume *nix
  5751. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5752. ;;
  5753. esac
  5754. ;;
  5755. * ) # unhandled hosts (and "normal" native builds)
  5756. lt_cv_to_host_file_cmd=func_convert_file_noop
  5757. ;;
  5758. esac
  5759. fi
  5760. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5762. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5764. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5765. if test ${lt_cv_to_tool_file_cmd+y}
  5766. then :
  5767. printf %s "(cached) " >&6
  5768. else $as_nop
  5769. #assume ordinary cross tools, or native build.
  5770. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5771. case $host in
  5772. *-*-mingw* | *-*-windows* )
  5773. case $build in
  5774. *-*-mingw* | *-*-windows* ) # actually msys
  5775. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5776. ;;
  5777. esac
  5778. ;;
  5779. esac
  5780. fi
  5781. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5783. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5785. printf %s "checking for $LD option to reload object files... " >&6; }
  5786. if test ${lt_cv_ld_reload_flag+y}
  5787. then :
  5788. printf %s "(cached) " >&6
  5789. else $as_nop
  5790. lt_cv_ld_reload_flag='-r'
  5791. fi
  5792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5793. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5794. reload_flag=$lt_cv_ld_reload_flag
  5795. case $reload_flag in
  5796. "" | " "*) ;;
  5797. *) reload_flag=" $reload_flag" ;;
  5798. esac
  5799. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5800. case $host_os in
  5801. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5802. if test yes != "$GCC"; then
  5803. reload_cmds=false
  5804. fi
  5805. ;;
  5806. darwin*)
  5807. if test yes = "$GCC"; then
  5808. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5809. else
  5810. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5811. fi
  5812. ;;
  5813. esac
  5814. # Extract the first word of "file", so it can be a program name with args.
  5815. set dummy file; ac_word=$2
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. printf %s "checking for $ac_word... " >&6; }
  5818. if test ${ac_cv_prog_FILECMD+y}
  5819. then :
  5820. printf %s "(cached) " >&6
  5821. else $as_nop
  5822. if test -n "$FILECMD"; then
  5823. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. case $as_dir in #(((
  5830. '') as_dir=./ ;;
  5831. */) ;;
  5832. *) as_dir=$as_dir/ ;;
  5833. esac
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_FILECMD="file"
  5837. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
  5844. fi
  5845. fi
  5846. FILECMD=$ac_cv_prog_FILECMD
  5847. if test -n "$FILECMD"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  5849. printf "%s\n" "$FILECMD" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. printf %s "checking for $ac_word... " >&6; }
  5859. if test ${ac_cv_prog_OBJDUMP+y}
  5860. then :
  5861. printf %s "(cached) " >&6
  5862. else $as_nop
  5863. if test -n "$OBJDUMP"; then
  5864. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. case $as_dir in #(((
  5871. '') as_dir=./ ;;
  5872. */) ;;
  5873. *) as_dir=$as_dir/ ;;
  5874. esac
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5878. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. OBJDUMP=$ac_cv_prog_OBJDUMP
  5887. if test -n "$OBJDUMP"; then
  5888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5889. printf "%s\n" "$OBJDUMP" >&6; }
  5890. else
  5891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. printf "%s\n" "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_OBJDUMP"; then
  5896. ac_ct_OBJDUMP=$OBJDUMP
  5897. # Extract the first word of "objdump", so it can be a program name with args.
  5898. set dummy objdump; ac_word=$2
  5899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. printf %s "checking for $ac_word... " >&6; }
  5901. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5902. then :
  5903. printf %s "(cached) " >&6
  5904. else $as_nop
  5905. if test -n "$ac_ct_OBJDUMP"; then
  5906. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5907. else
  5908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5909. for as_dir in $PATH
  5910. do
  5911. IFS=$as_save_IFS
  5912. case $as_dir in #(((
  5913. '') as_dir=./ ;;
  5914. */) ;;
  5915. *) as_dir=$as_dir/ ;;
  5916. esac
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5919. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5920. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5929. if test -n "$ac_ct_OBJDUMP"; then
  5930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5931. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5932. else
  5933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. printf "%s\n" "no" >&6; }
  5935. fi
  5936. if test "x$ac_ct_OBJDUMP" = x; then
  5937. OBJDUMP="false"
  5938. else
  5939. case $cross_compiling:$ac_tool_warned in
  5940. yes:)
  5941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5942. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5943. ac_tool_warned=yes ;;
  5944. esac
  5945. OBJDUMP=$ac_ct_OBJDUMP
  5946. fi
  5947. else
  5948. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5949. fi
  5950. test -z "$OBJDUMP" && OBJDUMP=objdump
  5951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5952. printf %s "checking how to recognize dependent libraries... " >&6; }
  5953. if test ${lt_cv_deplibs_check_method+y}
  5954. then :
  5955. printf %s "(cached) " >&6
  5956. else $as_nop
  5957. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5958. lt_cv_file_magic_test_file=
  5959. lt_cv_deplibs_check_method='unknown'
  5960. # Need to set the preceding variable on all platforms that support
  5961. # interlibrary dependencies.
  5962. # 'none' -- dependencies not supported.
  5963. # 'unknown' -- same as none, but documents that we really don't know.
  5964. # 'pass_all' -- all dependencies passed with no checks.
  5965. # 'file_magic [[regex]]' -- check by looking for files in library path
  5966. # that responds to the $file_magic_cmd with a given extended regex.
  5967. # If you have 'file' or equivalent on your system and you're not sure
  5968. # whether 'pass_all' will *always* work, you probably want this one.
  5969. case $host_os in
  5970. aix[4-9]*)
  5971. lt_cv_deplibs_check_method=pass_all
  5972. ;;
  5973. beos*)
  5974. lt_cv_deplibs_check_method=pass_all
  5975. ;;
  5976. bsdi[45]*)
  5977. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5978. lt_cv_file_magic_cmd='$FILECMD -L'
  5979. lt_cv_file_magic_test_file=/shlib/libc.so
  5980. ;;
  5981. cygwin*)
  5982. # func_win32_libid is a shell function defined in ltmain.sh
  5983. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5984. lt_cv_file_magic_cmd='func_win32_libid'
  5985. ;;
  5986. mingw* | windows* | pw32*)
  5987. # Base MSYS/MinGW do not provide the 'file' command needed by
  5988. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5989. # unless we find 'file', for example because we are cross-compiling.
  5990. if ( file / ) >/dev/null 2>&1; then
  5991. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5992. lt_cv_file_magic_cmd='func_win32_libid'
  5993. else
  5994. # Keep this pattern in sync with the one in func_win32_libid.
  5995. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  5996. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5997. fi
  5998. ;;
  5999. cegcc*)
  6000. # use the weaker test based on 'objdump'. See mingw*.
  6001. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6002. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6003. ;;
  6004. darwin* | rhapsody*)
  6005. lt_cv_deplibs_check_method=pass_all
  6006. ;;
  6007. freebsd* | dragonfly* | midnightbsd*)
  6008. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6009. case $host_cpu in
  6010. i*86 )
  6011. # Not sure whether the presence of OpenBSD here was a mistake.
  6012. # Let's accept both of them until this is cleared up.
  6013. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6014. lt_cv_file_magic_cmd=$FILECMD
  6015. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6016. ;;
  6017. esac
  6018. else
  6019. lt_cv_deplibs_check_method=pass_all
  6020. fi
  6021. ;;
  6022. haiku*)
  6023. lt_cv_deplibs_check_method=pass_all
  6024. ;;
  6025. hpux10.20* | hpux11*)
  6026. lt_cv_file_magic_cmd=$FILECMD
  6027. case $host_cpu in
  6028. ia64*)
  6029. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6030. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6031. ;;
  6032. hppa*64*)
  6033. 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]'
  6034. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6035. ;;
  6036. *)
  6037. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6038. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6039. ;;
  6040. esac
  6041. ;;
  6042. interix[3-9]*)
  6043. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6044. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6045. ;;
  6046. irix5* | irix6* | nonstopux*)
  6047. case $LD in
  6048. *-32|*"-32 ") libmagic=32-bit;;
  6049. *-n32|*"-n32 ") libmagic=N32;;
  6050. *-64|*"-64 ") libmagic=64-bit;;
  6051. *) libmagic=never-match;;
  6052. esac
  6053. lt_cv_deplibs_check_method=pass_all
  6054. ;;
  6055. # This must be glibc/ELF.
  6056. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6057. lt_cv_deplibs_check_method=pass_all
  6058. ;;
  6059. netbsd*)
  6060. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6061. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6062. else
  6063. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6064. fi
  6065. ;;
  6066. newos6*)
  6067. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6068. lt_cv_file_magic_cmd=$FILECMD
  6069. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6070. ;;
  6071. *nto* | *qnx*)
  6072. lt_cv_deplibs_check_method=pass_all
  6073. ;;
  6074. openbsd*)
  6075. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6076. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6077. else
  6078. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6079. fi
  6080. ;;
  6081. osf3* | osf4* | osf5*)
  6082. lt_cv_deplibs_check_method=pass_all
  6083. ;;
  6084. rdos*)
  6085. lt_cv_deplibs_check_method=pass_all
  6086. ;;
  6087. solaris*)
  6088. lt_cv_deplibs_check_method=pass_all
  6089. ;;
  6090. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6091. lt_cv_deplibs_check_method=pass_all
  6092. ;;
  6093. sysv4 | sysv4.3*)
  6094. case $host_vendor in
  6095. motorola)
  6096. 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]'
  6097. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6098. ;;
  6099. ncr)
  6100. lt_cv_deplibs_check_method=pass_all
  6101. ;;
  6102. sequent)
  6103. lt_cv_file_magic_cmd='/bin/file'
  6104. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6105. ;;
  6106. sni)
  6107. lt_cv_file_magic_cmd='/bin/file'
  6108. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6109. lt_cv_file_magic_test_file=/lib/libc.so
  6110. ;;
  6111. siemens)
  6112. lt_cv_deplibs_check_method=pass_all
  6113. ;;
  6114. pc)
  6115. lt_cv_deplibs_check_method=pass_all
  6116. ;;
  6117. esac
  6118. ;;
  6119. tpf*)
  6120. lt_cv_deplibs_check_method=pass_all
  6121. ;;
  6122. os2*)
  6123. lt_cv_deplibs_check_method=pass_all
  6124. ;;
  6125. esac
  6126. fi
  6127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6128. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6129. file_magic_glob=
  6130. want_nocaseglob=no
  6131. if test "$build" = "$host"; then
  6132. case $host_os in
  6133. mingw* | windows* | pw32*)
  6134. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6135. want_nocaseglob=yes
  6136. else
  6137. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6138. fi
  6139. ;;
  6140. esac
  6141. fi
  6142. file_magic_cmd=$lt_cv_file_magic_cmd
  6143. deplibs_check_method=$lt_cv_deplibs_check_method
  6144. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6145. if test -n "$ac_tool_prefix"; then
  6146. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6147. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6149. printf %s "checking for $ac_word... " >&6; }
  6150. if test ${ac_cv_prog_DLLTOOL+y}
  6151. then :
  6152. printf %s "(cached) " >&6
  6153. else $as_nop
  6154. if test -n "$DLLTOOL"; then
  6155. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6156. else
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. case $as_dir in #(((
  6162. '') as_dir=./ ;;
  6163. */) ;;
  6164. *) as_dir=$as_dir/ ;;
  6165. esac
  6166. for ac_exec_ext in '' $ac_executable_extensions; do
  6167. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6168. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6169. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6170. break 2
  6171. fi
  6172. done
  6173. done
  6174. IFS=$as_save_IFS
  6175. fi
  6176. fi
  6177. DLLTOOL=$ac_cv_prog_DLLTOOL
  6178. if test -n "$DLLTOOL"; then
  6179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6180. printf "%s\n" "$DLLTOOL" >&6; }
  6181. else
  6182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6183. printf "%s\n" "no" >&6; }
  6184. fi
  6185. fi
  6186. if test -z "$ac_cv_prog_DLLTOOL"; then
  6187. ac_ct_DLLTOOL=$DLLTOOL
  6188. # Extract the first word of "dlltool", so it can be a program name with args.
  6189. set dummy dlltool; ac_word=$2
  6190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6191. printf %s "checking for $ac_word... " >&6; }
  6192. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6193. then :
  6194. printf %s "(cached) " >&6
  6195. else $as_nop
  6196. if test -n "$ac_ct_DLLTOOL"; then
  6197. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6198. else
  6199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6200. for as_dir in $PATH
  6201. do
  6202. IFS=$as_save_IFS
  6203. case $as_dir in #(((
  6204. '') as_dir=./ ;;
  6205. */) ;;
  6206. *) as_dir=$as_dir/ ;;
  6207. esac
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6210. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6220. if test -n "$ac_ct_DLLTOOL"; then
  6221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6222. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6223. else
  6224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. printf "%s\n" "no" >&6; }
  6226. fi
  6227. if test "x$ac_ct_DLLTOOL" = x; then
  6228. DLLTOOL="false"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. DLLTOOL=$ac_ct_DLLTOOL
  6237. fi
  6238. else
  6239. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6240. fi
  6241. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6243. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6244. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6245. then :
  6246. printf %s "(cached) " >&6
  6247. else $as_nop
  6248. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6249. case $host_os in
  6250. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6251. # two different shell functions defined in ltmain.sh;
  6252. # decide which one to use based on capabilities of $DLLTOOL
  6253. case `$DLLTOOL --help 2>&1` in
  6254. *--identify-strict*)
  6255. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6256. ;;
  6257. *)
  6258. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6259. ;;
  6260. esac
  6261. ;;
  6262. *)
  6263. # fallback: assume linklib IS sharedlib
  6264. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6265. ;;
  6266. esac
  6267. fi
  6268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6269. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6270. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6271. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6272. if test -n "$ac_tool_prefix"; then
  6273. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6274. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6276. printf %s "checking for $ac_word... " >&6; }
  6277. if test ${ac_cv_prog_RANLIB+y}
  6278. then :
  6279. printf %s "(cached) " >&6
  6280. else $as_nop
  6281. if test -n "$RANLIB"; then
  6282. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6283. else
  6284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6285. for as_dir in $PATH
  6286. do
  6287. IFS=$as_save_IFS
  6288. case $as_dir in #(((
  6289. '') as_dir=./ ;;
  6290. */) ;;
  6291. *) as_dir=$as_dir/ ;;
  6292. esac
  6293. for ac_exec_ext in '' $ac_executable_extensions; do
  6294. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6295. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6297. break 2
  6298. fi
  6299. done
  6300. done
  6301. IFS=$as_save_IFS
  6302. fi
  6303. fi
  6304. RANLIB=$ac_cv_prog_RANLIB
  6305. if test -n "$RANLIB"; then
  6306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6307. printf "%s\n" "$RANLIB" >&6; }
  6308. else
  6309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. printf "%s\n" "no" >&6; }
  6311. fi
  6312. fi
  6313. if test -z "$ac_cv_prog_RANLIB"; then
  6314. ac_ct_RANLIB=$RANLIB
  6315. # Extract the first word of "ranlib", so it can be a program name with args.
  6316. set dummy ranlib; ac_word=$2
  6317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6318. printf %s "checking for $ac_word... " >&6; }
  6319. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6320. then :
  6321. printf %s "(cached) " >&6
  6322. else $as_nop
  6323. if test -n "$ac_ct_RANLIB"; then
  6324. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6325. else
  6326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6327. for as_dir in $PATH
  6328. do
  6329. IFS=$as_save_IFS
  6330. case $as_dir in #(((
  6331. '') as_dir=./ ;;
  6332. */) ;;
  6333. *) as_dir=$as_dir/ ;;
  6334. esac
  6335. for ac_exec_ext in '' $ac_executable_extensions; do
  6336. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6337. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6339. break 2
  6340. fi
  6341. done
  6342. done
  6343. IFS=$as_save_IFS
  6344. fi
  6345. fi
  6346. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6347. if test -n "$ac_ct_RANLIB"; then
  6348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6349. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6350. else
  6351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. printf "%s\n" "no" >&6; }
  6353. fi
  6354. if test "x$ac_ct_RANLIB" = x; then
  6355. RANLIB=":"
  6356. else
  6357. case $cross_compiling:$ac_tool_warned in
  6358. yes:)
  6359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6360. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6361. ac_tool_warned=yes ;;
  6362. esac
  6363. RANLIB=$ac_ct_RANLIB
  6364. fi
  6365. else
  6366. RANLIB="$ac_cv_prog_RANLIB"
  6367. fi
  6368. if test -n "$ac_tool_prefix"; then
  6369. for ac_prog in ar
  6370. do
  6371. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6372. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6374. printf %s "checking for $ac_word... " >&6; }
  6375. if test ${ac_cv_prog_AR+y}
  6376. then :
  6377. printf %s "(cached) " >&6
  6378. else $as_nop
  6379. if test -n "$AR"; then
  6380. ac_cv_prog_AR="$AR" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. case $as_dir in #(((
  6387. '') as_dir=./ ;;
  6388. */) ;;
  6389. *) as_dir=$as_dir/ ;;
  6390. esac
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6393. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6394. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. fi
  6401. fi
  6402. AR=$ac_cv_prog_AR
  6403. if test -n "$AR"; then
  6404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6405. printf "%s\n" "$AR" >&6; }
  6406. else
  6407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6408. printf "%s\n" "no" >&6; }
  6409. fi
  6410. test -n "$AR" && break
  6411. done
  6412. fi
  6413. if test -z "$AR"; then
  6414. ac_ct_AR=$AR
  6415. for ac_prog in ar
  6416. do
  6417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6418. set dummy $ac_prog; ac_word=$2
  6419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. printf %s "checking for $ac_word... " >&6; }
  6421. if test ${ac_cv_prog_ac_ct_AR+y}
  6422. then :
  6423. printf %s "(cached) " >&6
  6424. else $as_nop
  6425. if test -n "$ac_ct_AR"; then
  6426. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. case $as_dir in #(((
  6433. '') as_dir=./ ;;
  6434. */) ;;
  6435. *) as_dir=$as_dir/ ;;
  6436. esac
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6439. ac_cv_prog_ac_ct_AR="$ac_prog"
  6440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6449. if test -n "$ac_ct_AR"; then
  6450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6451. printf "%s\n" "$ac_ct_AR" >&6; }
  6452. else
  6453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. printf "%s\n" "no" >&6; }
  6455. fi
  6456. test -n "$ac_ct_AR" && break
  6457. done
  6458. if test "x$ac_ct_AR" = x; then
  6459. AR="false"
  6460. else
  6461. case $cross_compiling:$ac_tool_warned in
  6462. yes:)
  6463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6464. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6465. ac_tool_warned=yes ;;
  6466. esac
  6467. AR=$ac_ct_AR
  6468. fi
  6469. fi
  6470. : ${AR=ar}
  6471. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6472. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6473. # higher priority because that's what people were doing historically (setting
  6474. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6475. # variable obsoleted/removed.
  6476. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6477. lt_ar_flags=$AR_FLAGS
  6478. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6479. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6481. printf %s "checking for archiver @FILE support... " >&6; }
  6482. if test ${lt_cv_ar_at_file+y}
  6483. then :
  6484. printf %s "(cached) " >&6
  6485. else $as_nop
  6486. lt_cv_ar_at_file=no
  6487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6488. /* end confdefs.h. */
  6489. int
  6490. main (void)
  6491. {
  6492. ;
  6493. return 0;
  6494. }
  6495. _ACEOF
  6496. if ac_fn_c_try_compile "$LINENO"
  6497. then :
  6498. echo conftest.$ac_objext > conftest.lst
  6499. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6500. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6501. (eval $lt_ar_try) 2>&5
  6502. ac_status=$?
  6503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6504. test $ac_status = 0; }
  6505. if test 0 -eq "$ac_status"; then
  6506. # Ensure the archiver fails upon bogus file names.
  6507. rm -f conftest.$ac_objext libconftest.a
  6508. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6509. (eval $lt_ar_try) 2>&5
  6510. ac_status=$?
  6511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6512. test $ac_status = 0; }
  6513. if test 0 -ne "$ac_status"; then
  6514. lt_cv_ar_at_file=@
  6515. fi
  6516. fi
  6517. rm -f conftest.* libconftest.a
  6518. fi
  6519. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6520. fi
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6522. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6523. if test no = "$lt_cv_ar_at_file"; then
  6524. archiver_list_spec=
  6525. else
  6526. archiver_list_spec=$lt_cv_ar_at_file
  6527. fi
  6528. if test -n "$ac_tool_prefix"; then
  6529. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6530. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6532. printf %s "checking for $ac_word... " >&6; }
  6533. if test ${ac_cv_prog_STRIP+y}
  6534. then :
  6535. printf %s "(cached) " >&6
  6536. else $as_nop
  6537. if test -n "$STRIP"; then
  6538. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. case $as_dir in #(((
  6545. '') as_dir=./ ;;
  6546. */) ;;
  6547. *) as_dir=$as_dir/ ;;
  6548. esac
  6549. for ac_exec_ext in '' $ac_executable_extensions; do
  6550. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6551. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6553. break 2
  6554. fi
  6555. done
  6556. done
  6557. IFS=$as_save_IFS
  6558. fi
  6559. fi
  6560. STRIP=$ac_cv_prog_STRIP
  6561. if test -n "$STRIP"; then
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6563. printf "%s\n" "$STRIP" >&6; }
  6564. else
  6565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6566. printf "%s\n" "no" >&6; }
  6567. fi
  6568. fi
  6569. if test -z "$ac_cv_prog_STRIP"; then
  6570. ac_ct_STRIP=$STRIP
  6571. # Extract the first word of "strip", so it can be a program name with args.
  6572. set dummy strip; ac_word=$2
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6574. printf %s "checking for $ac_word... " >&6; }
  6575. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6576. then :
  6577. printf %s "(cached) " >&6
  6578. else $as_nop
  6579. if test -n "$ac_ct_STRIP"; then
  6580. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6581. else
  6582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6583. for as_dir in $PATH
  6584. do
  6585. IFS=$as_save_IFS
  6586. case $as_dir in #(((
  6587. '') as_dir=./ ;;
  6588. */) ;;
  6589. *) as_dir=$as_dir/ ;;
  6590. esac
  6591. for ac_exec_ext in '' $ac_executable_extensions; do
  6592. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6593. ac_cv_prog_ac_ct_STRIP="strip"
  6594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6595. break 2
  6596. fi
  6597. done
  6598. done
  6599. IFS=$as_save_IFS
  6600. fi
  6601. fi
  6602. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6603. if test -n "$ac_ct_STRIP"; then
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6605. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6606. else
  6607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6608. printf "%s\n" "no" >&6; }
  6609. fi
  6610. if test "x$ac_ct_STRIP" = x; then
  6611. STRIP=":"
  6612. else
  6613. case $cross_compiling:$ac_tool_warned in
  6614. yes:)
  6615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6616. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6617. ac_tool_warned=yes ;;
  6618. esac
  6619. STRIP=$ac_ct_STRIP
  6620. fi
  6621. else
  6622. STRIP="$ac_cv_prog_STRIP"
  6623. fi
  6624. test -z "$STRIP" && STRIP=:
  6625. test -z "$RANLIB" && RANLIB=:
  6626. # Determine commands to create old-style static archives.
  6627. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6628. old_postinstall_cmds='chmod 644 $oldlib'
  6629. old_postuninstall_cmds=
  6630. if test -n "$RANLIB"; then
  6631. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6632. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6633. fi
  6634. case $host_os in
  6635. darwin*)
  6636. lock_old_archive_extraction=yes ;;
  6637. *)
  6638. lock_old_archive_extraction=no ;;
  6639. esac
  6640. # If no C compiler was specified, use CC.
  6641. LTCC=${LTCC-"$CC"}
  6642. # If no C compiler flags were specified, use CFLAGS.
  6643. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6644. # Allow CC to be a program name with arguments.
  6645. compiler=$CC
  6646. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6648. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6649. if test ${lt_cv_sys_global_symbol_pipe+y}
  6650. then :
  6651. printf %s "(cached) " >&6
  6652. else $as_nop
  6653. # These are sane defaults that work on at least a few old systems.
  6654. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6655. # Character class describing NM global symbol codes.
  6656. symcode='[BCDEGRST]'
  6657. # Regexp to match symbols that can be accessed directly from C.
  6658. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6659. # Define system-specific variables.
  6660. case $host_os in
  6661. aix*)
  6662. symcode='[BCDT]'
  6663. ;;
  6664. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6665. symcode='[ABCDGISTW]'
  6666. ;;
  6667. hpux*)
  6668. if test ia64 = "$host_cpu"; then
  6669. symcode='[ABCDEGRST]'
  6670. fi
  6671. ;;
  6672. irix* | nonstopux*)
  6673. symcode='[BCDEGRST]'
  6674. ;;
  6675. osf*)
  6676. symcode='[BCDEGQRST]'
  6677. ;;
  6678. solaris*)
  6679. symcode='[BCDRT]'
  6680. ;;
  6681. sco3.2v5*)
  6682. symcode='[DT]'
  6683. ;;
  6684. sysv4.2uw2*)
  6685. symcode='[DT]'
  6686. ;;
  6687. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6688. symcode='[ABDT]'
  6689. ;;
  6690. sysv4)
  6691. symcode='[DFNSTU]'
  6692. ;;
  6693. esac
  6694. # If we're using GNU nm, then use its standard symbol codes.
  6695. case `$NM -V 2>&1` in
  6696. *GNU* | *'with BFD'*)
  6697. symcode='[ABCDGIRSTW]' ;;
  6698. esac
  6699. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6700. # Gets list of data symbols to import.
  6701. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  6702. # Adjust the below global symbol transforms to fixup imported variables.
  6703. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6704. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6705. lt_c_name_lib_hook="\
  6706. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6707. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6708. else
  6709. # Disable hooks by default.
  6710. lt_cv_sys_global_symbol_to_import=
  6711. lt_cdecl_hook=
  6712. lt_c_name_hook=
  6713. lt_c_name_lib_hook=
  6714. fi
  6715. # Transform an extracted symbol line into a proper C declaration.
  6716. # Some systems (esp. on ia64) link data and code symbols differently,
  6717. # so use this general approach.
  6718. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  6719. $lt_cdecl_hook\
  6720. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6721. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6722. # Transform an extracted symbol line into symbol name and symbol address
  6723. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  6724. $lt_c_name_hook\
  6725. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6726. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6727. # Transform an extracted symbol line into symbol name with lib prefix and
  6728. # symbol address.
  6729. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  6730. $lt_c_name_lib_hook\
  6731. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6732. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6733. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6734. # Handle CRLF in mingw tool chain
  6735. opt_cr=
  6736. case $build_os in
  6737. mingw* | windows*)
  6738. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6739. ;;
  6740. esac
  6741. # Try without a prefix underscore, then with it.
  6742. for ac_symprfx in "" "_"; do
  6743. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6744. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6745. # Write the raw and C identifiers.
  6746. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6747. # Fake it for dumpbin and say T for any non-static function,
  6748. # D for any global variable and I for any imported variable.
  6749. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6750. # which start with @ or ?.
  6751. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6752. " {last_section=section; section=\$ 3};"\
  6753. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6754. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6755. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6756. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6757. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6758. " \$ 0!~/External *\|/{next};"\
  6759. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6760. " {if(hide[section]) next};"\
  6761. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6762. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6763. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6764. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6765. " ' prfx=^$ac_symprfx"
  6766. else
  6767. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6768. fi
  6769. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  6770. # Check to see that the pipe works correctly.
  6771. pipe_works=no
  6772. rm -f conftest*
  6773. cat > conftest.$ac_ext <<_LT_EOF
  6774. #ifdef __cplusplus
  6775. extern "C" {
  6776. #endif
  6777. char nm_test_var;
  6778. void nm_test_func(void);
  6779. void nm_test_func(void){}
  6780. #ifdef __cplusplus
  6781. }
  6782. #endif
  6783. int main(void){nm_test_var='a';nm_test_func();return(0);}
  6784. _LT_EOF
  6785. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6786. (eval $ac_compile) 2>&5
  6787. ac_status=$?
  6788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6789. test $ac_status = 0; }; then
  6790. # Now try to grab the symbols.
  6791. nlist=conftest.nm
  6792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6793. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6794. ac_status=$?
  6795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6796. test $ac_status = 0; } && test -s "$nlist"; then
  6797. # Try sorting and uniquifying the output.
  6798. if sort "$nlist" | uniq > "$nlist"T; then
  6799. mv -f "$nlist"T "$nlist"
  6800. else
  6801. rm -f "$nlist"T
  6802. fi
  6803. # Make sure that we snagged all the symbols we need.
  6804. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6805. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6806. cat <<_LT_EOF > conftest.$ac_ext
  6807. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6808. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6809. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6810. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6811. # define LT_DLSYM_CONST
  6812. #elif defined __osf__
  6813. /* This system does not cope well with relocations in const data. */
  6814. # define LT_DLSYM_CONST
  6815. #else
  6816. # define LT_DLSYM_CONST const
  6817. #endif
  6818. #ifdef __cplusplus
  6819. extern "C" {
  6820. #endif
  6821. _LT_EOF
  6822. # Now generate the symbol file.
  6823. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6824. cat <<_LT_EOF >> conftest.$ac_ext
  6825. /* The mapping between symbol names and symbols. */
  6826. LT_DLSYM_CONST struct {
  6827. const char *name;
  6828. void *address;
  6829. }
  6830. lt__PROGRAM__LTX_preloaded_symbols[] =
  6831. {
  6832. { "@PROGRAM@", (void *) 0 },
  6833. _LT_EOF
  6834. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6835. cat <<\_LT_EOF >> conftest.$ac_ext
  6836. {0, (void *) 0}
  6837. };
  6838. /* This works around a problem in FreeBSD linker */
  6839. #ifdef FREEBSD_WORKAROUND
  6840. static const void *lt_preloaded_setup() {
  6841. return lt__PROGRAM__LTX_preloaded_symbols;
  6842. }
  6843. #endif
  6844. #ifdef __cplusplus
  6845. }
  6846. #endif
  6847. _LT_EOF
  6848. # Now try linking the two files.
  6849. mv conftest.$ac_objext conftstm.$ac_objext
  6850. lt_globsym_save_LIBS=$LIBS
  6851. lt_globsym_save_CFLAGS=$CFLAGS
  6852. LIBS=conftstm.$ac_objext
  6853. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6854. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6855. (eval $ac_link) 2>&5
  6856. ac_status=$?
  6857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6858. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6859. pipe_works=yes
  6860. fi
  6861. LIBS=$lt_globsym_save_LIBS
  6862. CFLAGS=$lt_globsym_save_CFLAGS
  6863. else
  6864. echo "cannot find nm_test_func in $nlist" >&5
  6865. fi
  6866. else
  6867. echo "cannot find nm_test_var in $nlist" >&5
  6868. fi
  6869. else
  6870. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6871. fi
  6872. else
  6873. echo "$progname: failed program was:" >&5
  6874. cat conftest.$ac_ext >&5
  6875. fi
  6876. rm -rf conftest* conftst*
  6877. # Do not use the global_symbol_pipe unless it works.
  6878. if test yes = "$pipe_works"; then
  6879. break
  6880. else
  6881. lt_cv_sys_global_symbol_pipe=
  6882. fi
  6883. done
  6884. fi
  6885. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6886. lt_cv_sys_global_symbol_to_cdecl=
  6887. fi
  6888. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6890. printf "%s\n" "failed" >&6; }
  6891. else
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6893. printf "%s\n" "ok" >&6; }
  6894. fi
  6895. # Response file support.
  6896. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6897. nm_file_list_spec='@'
  6898. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6899. nm_file_list_spec='@'
  6900. fi
  6901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6902. printf %s "checking for sysroot... " >&6; }
  6903. # Check whether --with-sysroot was given.
  6904. if test ${with_sysroot+y}
  6905. then :
  6906. withval=$with_sysroot;
  6907. else $as_nop
  6908. with_sysroot=no
  6909. fi
  6910. lt_sysroot=
  6911. case $with_sysroot in #(
  6912. yes)
  6913. if test yes = "$GCC"; then
  6914. # Trim trailing / since we'll always append absolute paths and we want
  6915. # to avoid //, if only for less confusing output for the user.
  6916. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  6917. fi
  6918. ;; #(
  6919. /*)
  6920. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  6921. ;; #(
  6922. no|'')
  6923. ;; #(
  6924. *)
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6926. printf "%s\n" "$with_sysroot" >&6; }
  6927. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6928. ;;
  6929. esac
  6930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6931. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6933. printf %s "checking for a working dd... " >&6; }
  6934. if test ${ac_cv_path_lt_DD+y}
  6935. then :
  6936. printf %s "(cached) " >&6
  6937. else $as_nop
  6938. printf 0123456789abcdef0123456789abcdef >conftest.i
  6939. cat conftest.i conftest.i >conftest2.i
  6940. : ${lt_DD:=$DD}
  6941. if test -z "$lt_DD"; then
  6942. ac_path_lt_DD_found=false
  6943. # Loop through the user's path and test for each of PROGNAME-LIST
  6944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6945. for as_dir in $PATH
  6946. do
  6947. IFS=$as_save_IFS
  6948. case $as_dir in #(((
  6949. '') as_dir=./ ;;
  6950. */) ;;
  6951. *) as_dir=$as_dir/ ;;
  6952. esac
  6953. for ac_prog in dd
  6954. do
  6955. for ac_exec_ext in '' $ac_executable_extensions; do
  6956. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6957. as_fn_executable_p "$ac_path_lt_DD" || continue
  6958. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6959. cmp -s conftest.i conftest.out \
  6960. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6961. fi
  6962. $ac_path_lt_DD_found && break 3
  6963. done
  6964. done
  6965. done
  6966. IFS=$as_save_IFS
  6967. if test -z "$ac_cv_path_lt_DD"; then
  6968. :
  6969. fi
  6970. else
  6971. ac_cv_path_lt_DD=$lt_DD
  6972. fi
  6973. rm -f conftest.i conftest2.i conftest.out
  6974. fi
  6975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6976. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6978. printf %s "checking how to truncate binary pipes... " >&6; }
  6979. if test ${lt_cv_truncate_bin+y}
  6980. then :
  6981. printf %s "(cached) " >&6
  6982. else $as_nop
  6983. printf 0123456789abcdef0123456789abcdef >conftest.i
  6984. cat conftest.i conftest.i >conftest2.i
  6985. lt_cv_truncate_bin=
  6986. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6987. cmp -s conftest.i conftest.out \
  6988. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6989. fi
  6990. rm -f conftest.i conftest2.i conftest.out
  6991. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6992. fi
  6993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6994. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6995. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6996. func_cc_basename ()
  6997. {
  6998. for cc_temp in $*""; do
  6999. case $cc_temp in
  7000. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7001. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7002. \-*) ;;
  7003. *) break;;
  7004. esac
  7005. done
  7006. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7007. }
  7008. # Check whether --enable-libtool-lock was given.
  7009. if test ${enable_libtool_lock+y}
  7010. then :
  7011. enableval=$enable_libtool_lock;
  7012. fi
  7013. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7014. # Some flags need to be propagated to the compiler or linker for good
  7015. # libtool support.
  7016. case $host in
  7017. ia64-*-hpux*)
  7018. # Find out what ABI is being produced by ac_compile, and set mode
  7019. # options accordingly.
  7020. echo 'int i;' > conftest.$ac_ext
  7021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7022. (eval $ac_compile) 2>&5
  7023. ac_status=$?
  7024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7025. test $ac_status = 0; }; then
  7026. case `$FILECMD conftest.$ac_objext` in
  7027. *ELF-32*)
  7028. HPUX_IA64_MODE=32
  7029. ;;
  7030. *ELF-64*)
  7031. HPUX_IA64_MODE=64
  7032. ;;
  7033. esac
  7034. fi
  7035. rm -rf conftest*
  7036. ;;
  7037. *-*-irix6*)
  7038. # Find out what ABI is being produced by ac_compile, and set linker
  7039. # options accordingly.
  7040. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7041. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7042. (eval $ac_compile) 2>&5
  7043. ac_status=$?
  7044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7045. test $ac_status = 0; }; then
  7046. if test yes = "$lt_cv_prog_gnu_ld"; then
  7047. case `$FILECMD conftest.$ac_objext` in
  7048. *32-bit*)
  7049. LD="${LD-ld} -melf32bsmip"
  7050. ;;
  7051. *N32*)
  7052. LD="${LD-ld} -melf32bmipn32"
  7053. ;;
  7054. *64-bit*)
  7055. LD="${LD-ld} -melf64bmip"
  7056. ;;
  7057. esac
  7058. else
  7059. case `$FILECMD conftest.$ac_objext` in
  7060. *32-bit*)
  7061. LD="${LD-ld} -32"
  7062. ;;
  7063. *N32*)
  7064. LD="${LD-ld} -n32"
  7065. ;;
  7066. *64-bit*)
  7067. LD="${LD-ld} -64"
  7068. ;;
  7069. esac
  7070. fi
  7071. fi
  7072. rm -rf conftest*
  7073. ;;
  7074. mips64*-*linux*)
  7075. # Find out what ABI is being produced by ac_compile, and set linker
  7076. # options accordingly.
  7077. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7079. (eval $ac_compile) 2>&5
  7080. ac_status=$?
  7081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7082. test $ac_status = 0; }; then
  7083. emul=elf
  7084. case `$FILECMD conftest.$ac_objext` in
  7085. *32-bit*)
  7086. emul="${emul}32"
  7087. ;;
  7088. *64-bit*)
  7089. emul="${emul}64"
  7090. ;;
  7091. esac
  7092. case `$FILECMD conftest.$ac_objext` in
  7093. *MSB*)
  7094. emul="${emul}btsmip"
  7095. ;;
  7096. *LSB*)
  7097. emul="${emul}ltsmip"
  7098. ;;
  7099. esac
  7100. case `$FILECMD conftest.$ac_objext` in
  7101. *N32*)
  7102. emul="${emul}n32"
  7103. ;;
  7104. esac
  7105. LD="${LD-ld} -m $emul"
  7106. fi
  7107. rm -rf conftest*
  7108. ;;
  7109. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7110. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  7111. # Find out what ABI is being produced by ac_compile, and set linker
  7112. # options accordingly. Note that the listed cases only cover the
  7113. # situations where additional linker options are needed (such as when
  7114. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7115. # vice versa); the common cases where no linker options are needed do
  7116. # not appear in the list.
  7117. echo 'int i;' > conftest.$ac_ext
  7118. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7119. (eval $ac_compile) 2>&5
  7120. ac_status=$?
  7121. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7122. test $ac_status = 0; }; then
  7123. case `$FILECMD conftest.o` in
  7124. *32-bit*)
  7125. case $host in
  7126. x86_64-*kfreebsd*-gnu)
  7127. LD="${LD-ld} -m elf_i386_fbsd"
  7128. ;;
  7129. x86_64-*linux*|x86_64-gnu*)
  7130. case `$FILECMD conftest.o` in
  7131. *x86-64*)
  7132. LD="${LD-ld} -m elf32_x86_64"
  7133. ;;
  7134. *)
  7135. LD="${LD-ld} -m elf_i386"
  7136. ;;
  7137. esac
  7138. ;;
  7139. powerpc64le-*linux*)
  7140. LD="${LD-ld} -m elf32lppclinux"
  7141. ;;
  7142. powerpc64-*linux*)
  7143. LD="${LD-ld} -m elf32ppclinux"
  7144. ;;
  7145. s390x-*linux*)
  7146. LD="${LD-ld} -m elf_s390"
  7147. ;;
  7148. sparc64-*linux*)
  7149. LD="${LD-ld} -m elf32_sparc"
  7150. ;;
  7151. esac
  7152. ;;
  7153. *64-bit*)
  7154. case $host in
  7155. x86_64-*kfreebsd*-gnu)
  7156. LD="${LD-ld} -m elf_x86_64_fbsd"
  7157. ;;
  7158. x86_64-*linux*|x86_64-gnu*)
  7159. LD="${LD-ld} -m elf_x86_64"
  7160. ;;
  7161. powerpcle-*linux*|powerpc64le-*linux*)
  7162. LD="${LD-ld} -m elf64lppc"
  7163. ;;
  7164. powerpc-*linux*|powerpc64-*linux*)
  7165. LD="${LD-ld} -m elf64ppc"
  7166. ;;
  7167. s390*-*linux*|s390*-*tpf*)
  7168. LD="${LD-ld} -m elf64_s390"
  7169. ;;
  7170. sparc*-*linux*)
  7171. LD="${LD-ld} -m elf64_sparc"
  7172. ;;
  7173. esac
  7174. ;;
  7175. esac
  7176. fi
  7177. rm -rf conftest*
  7178. ;;
  7179. *-*-sco3.2v5*)
  7180. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7181. SAVE_CFLAGS=$CFLAGS
  7182. CFLAGS="$CFLAGS -belf"
  7183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7184. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7185. if test ${lt_cv_cc_needs_belf+y}
  7186. then :
  7187. printf %s "(cached) " >&6
  7188. else $as_nop
  7189. ac_ext=c
  7190. ac_cpp='$CPP $CPPFLAGS'
  7191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7195. /* end confdefs.h. */
  7196. int
  7197. main (void)
  7198. {
  7199. ;
  7200. return 0;
  7201. }
  7202. _ACEOF
  7203. if ac_fn_c_try_link "$LINENO"
  7204. then :
  7205. lt_cv_cc_needs_belf=yes
  7206. else $as_nop
  7207. lt_cv_cc_needs_belf=no
  7208. fi
  7209. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7210. conftest$ac_exeext conftest.$ac_ext
  7211. ac_ext=c
  7212. ac_cpp='$CPP $CPPFLAGS'
  7213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7216. fi
  7217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7218. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7219. if test yes != "$lt_cv_cc_needs_belf"; then
  7220. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7221. CFLAGS=$SAVE_CFLAGS
  7222. fi
  7223. ;;
  7224. *-*solaris*)
  7225. # Find out what ABI is being produced by ac_compile, and set linker
  7226. # options accordingly.
  7227. echo 'int i;' > conftest.$ac_ext
  7228. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7229. (eval $ac_compile) 2>&5
  7230. ac_status=$?
  7231. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7232. test $ac_status = 0; }; then
  7233. case `$FILECMD conftest.o` in
  7234. *64-bit*)
  7235. case $lt_cv_prog_gnu_ld in
  7236. yes*)
  7237. case $host in
  7238. i?86-*-solaris*|x86_64-*-solaris*)
  7239. LD="${LD-ld} -m elf_x86_64"
  7240. ;;
  7241. sparc*-*-solaris*)
  7242. LD="${LD-ld} -m elf64_sparc"
  7243. ;;
  7244. esac
  7245. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7246. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7247. LD=${LD-ld}_sol2
  7248. fi
  7249. ;;
  7250. *)
  7251. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7252. LD="${LD-ld} -64"
  7253. fi
  7254. ;;
  7255. esac
  7256. ;;
  7257. esac
  7258. fi
  7259. rm -rf conftest*
  7260. ;;
  7261. esac
  7262. need_locks=$enable_libtool_lock
  7263. if test -n "$ac_tool_prefix"; then
  7264. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7265. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7267. printf %s "checking for $ac_word... " >&6; }
  7268. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7269. then :
  7270. printf %s "(cached) " >&6
  7271. else $as_nop
  7272. if test -n "$MANIFEST_TOOL"; then
  7273. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7274. else
  7275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7276. for as_dir in $PATH
  7277. do
  7278. IFS=$as_save_IFS
  7279. case $as_dir in #(((
  7280. '') as_dir=./ ;;
  7281. */) ;;
  7282. *) as_dir=$as_dir/ ;;
  7283. esac
  7284. for ac_exec_ext in '' $ac_executable_extensions; do
  7285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7286. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7288. break 2
  7289. fi
  7290. done
  7291. done
  7292. IFS=$as_save_IFS
  7293. fi
  7294. fi
  7295. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7296. if test -n "$MANIFEST_TOOL"; then
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7298. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7299. else
  7300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7301. printf "%s\n" "no" >&6; }
  7302. fi
  7303. fi
  7304. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7305. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7306. # Extract the first word of "mt", so it can be a program name with args.
  7307. set dummy mt; ac_word=$2
  7308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7309. printf %s "checking for $ac_word... " >&6; }
  7310. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7311. then :
  7312. printf %s "(cached) " >&6
  7313. else $as_nop
  7314. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7315. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7316. else
  7317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7318. for as_dir in $PATH
  7319. do
  7320. IFS=$as_save_IFS
  7321. case $as_dir in #(((
  7322. '') as_dir=./ ;;
  7323. */) ;;
  7324. *) as_dir=$as_dir/ ;;
  7325. esac
  7326. for ac_exec_ext in '' $ac_executable_extensions; do
  7327. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7328. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7330. break 2
  7331. fi
  7332. done
  7333. done
  7334. IFS=$as_save_IFS
  7335. fi
  7336. fi
  7337. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7338. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7340. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7341. else
  7342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7343. printf "%s\n" "no" >&6; }
  7344. fi
  7345. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7346. MANIFEST_TOOL=":"
  7347. else
  7348. case $cross_compiling:$ac_tool_warned in
  7349. yes:)
  7350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7351. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7352. ac_tool_warned=yes ;;
  7353. esac
  7354. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7355. fi
  7356. else
  7357. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7358. fi
  7359. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7361. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7362. if test ${lt_cv_path_manifest_tool+y}
  7363. then :
  7364. printf %s "(cached) " >&6
  7365. else $as_nop
  7366. lt_cv_path_manifest_tool=no
  7367. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7368. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7369. cat conftest.err >&5
  7370. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7371. lt_cv_path_manifest_tool=yes
  7372. fi
  7373. rm -f conftest*
  7374. fi
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  7376. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  7377. if test yes != "$lt_cv_path_manifest_tool"; then
  7378. MANIFEST_TOOL=:
  7379. fi
  7380. case $host_os in
  7381. rhapsody* | darwin*)
  7382. if test -n "$ac_tool_prefix"; then
  7383. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7384. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7386. printf %s "checking for $ac_word... " >&6; }
  7387. if test ${ac_cv_prog_DSYMUTIL+y}
  7388. then :
  7389. printf %s "(cached) " >&6
  7390. else $as_nop
  7391. if test -n "$DSYMUTIL"; then
  7392. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7393. else
  7394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7395. for as_dir in $PATH
  7396. do
  7397. IFS=$as_save_IFS
  7398. case $as_dir in #(((
  7399. '') as_dir=./ ;;
  7400. */) ;;
  7401. *) as_dir=$as_dir/ ;;
  7402. esac
  7403. for ac_exec_ext in '' $ac_executable_extensions; do
  7404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7405. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7407. break 2
  7408. fi
  7409. done
  7410. done
  7411. IFS=$as_save_IFS
  7412. fi
  7413. fi
  7414. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7415. if test -n "$DSYMUTIL"; then
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7417. printf "%s\n" "$DSYMUTIL" >&6; }
  7418. else
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7420. printf "%s\n" "no" >&6; }
  7421. fi
  7422. fi
  7423. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7424. ac_ct_DSYMUTIL=$DSYMUTIL
  7425. # Extract the first word of "dsymutil", so it can be a program name with args.
  7426. set dummy dsymutil; ac_word=$2
  7427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7428. printf %s "checking for $ac_word... " >&6; }
  7429. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7430. then :
  7431. printf %s "(cached) " >&6
  7432. else $as_nop
  7433. if test -n "$ac_ct_DSYMUTIL"; then
  7434. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7435. else
  7436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7437. for as_dir in $PATH
  7438. do
  7439. IFS=$as_save_IFS
  7440. case $as_dir in #(((
  7441. '') as_dir=./ ;;
  7442. */) ;;
  7443. *) as_dir=$as_dir/ ;;
  7444. esac
  7445. for ac_exec_ext in '' $ac_executable_extensions; do
  7446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7447. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7449. break 2
  7450. fi
  7451. done
  7452. done
  7453. IFS=$as_save_IFS
  7454. fi
  7455. fi
  7456. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7457. if test -n "$ac_ct_DSYMUTIL"; then
  7458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7459. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7460. else
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7462. printf "%s\n" "no" >&6; }
  7463. fi
  7464. if test "x$ac_ct_DSYMUTIL" = x; then
  7465. DSYMUTIL=":"
  7466. else
  7467. case $cross_compiling:$ac_tool_warned in
  7468. yes:)
  7469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7470. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7471. ac_tool_warned=yes ;;
  7472. esac
  7473. DSYMUTIL=$ac_ct_DSYMUTIL
  7474. fi
  7475. else
  7476. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7477. fi
  7478. if test -n "$ac_tool_prefix"; then
  7479. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7480. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7482. printf %s "checking for $ac_word... " >&6; }
  7483. if test ${ac_cv_prog_NMEDIT+y}
  7484. then :
  7485. printf %s "(cached) " >&6
  7486. else $as_nop
  7487. if test -n "$NMEDIT"; then
  7488. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7489. else
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. case $as_dir in #(((
  7495. '') as_dir=./ ;;
  7496. */) ;;
  7497. *) as_dir=$as_dir/ ;;
  7498. esac
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. NMEDIT=$ac_cv_prog_NMEDIT
  7511. if test -n "$NMEDIT"; then
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7513. printf "%s\n" "$NMEDIT" >&6; }
  7514. else
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. printf "%s\n" "no" >&6; }
  7517. fi
  7518. fi
  7519. if test -z "$ac_cv_prog_NMEDIT"; then
  7520. ac_ct_NMEDIT=$NMEDIT
  7521. # Extract the first word of "nmedit", so it can be a program name with args.
  7522. set dummy nmedit; ac_word=$2
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7524. printf %s "checking for $ac_word... " >&6; }
  7525. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7526. then :
  7527. printf %s "(cached) " >&6
  7528. else $as_nop
  7529. if test -n "$ac_ct_NMEDIT"; then
  7530. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7531. else
  7532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7533. for as_dir in $PATH
  7534. do
  7535. IFS=$as_save_IFS
  7536. case $as_dir in #(((
  7537. '') as_dir=./ ;;
  7538. */) ;;
  7539. *) as_dir=$as_dir/ ;;
  7540. esac
  7541. for ac_exec_ext in '' $ac_executable_extensions; do
  7542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7543. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7545. break 2
  7546. fi
  7547. done
  7548. done
  7549. IFS=$as_save_IFS
  7550. fi
  7551. fi
  7552. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7553. if test -n "$ac_ct_NMEDIT"; then
  7554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7555. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7556. else
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7558. printf "%s\n" "no" >&6; }
  7559. fi
  7560. if test "x$ac_ct_NMEDIT" = x; then
  7561. NMEDIT=":"
  7562. else
  7563. case $cross_compiling:$ac_tool_warned in
  7564. yes:)
  7565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7566. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7567. ac_tool_warned=yes ;;
  7568. esac
  7569. NMEDIT=$ac_ct_NMEDIT
  7570. fi
  7571. else
  7572. NMEDIT="$ac_cv_prog_NMEDIT"
  7573. fi
  7574. if test -n "$ac_tool_prefix"; then
  7575. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7576. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7578. printf %s "checking for $ac_word... " >&6; }
  7579. if test ${ac_cv_prog_LIPO+y}
  7580. then :
  7581. printf %s "(cached) " >&6
  7582. else $as_nop
  7583. if test -n "$LIPO"; then
  7584. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7585. else
  7586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7587. for as_dir in $PATH
  7588. do
  7589. IFS=$as_save_IFS
  7590. case $as_dir in #(((
  7591. '') as_dir=./ ;;
  7592. */) ;;
  7593. *) as_dir=$as_dir/ ;;
  7594. esac
  7595. for ac_exec_ext in '' $ac_executable_extensions; do
  7596. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7597. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7599. break 2
  7600. fi
  7601. done
  7602. done
  7603. IFS=$as_save_IFS
  7604. fi
  7605. fi
  7606. LIPO=$ac_cv_prog_LIPO
  7607. if test -n "$LIPO"; then
  7608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7609. printf "%s\n" "$LIPO" >&6; }
  7610. else
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7612. printf "%s\n" "no" >&6; }
  7613. fi
  7614. fi
  7615. if test -z "$ac_cv_prog_LIPO"; then
  7616. ac_ct_LIPO=$LIPO
  7617. # Extract the first word of "lipo", so it can be a program name with args.
  7618. set dummy lipo; ac_word=$2
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7620. printf %s "checking for $ac_word... " >&6; }
  7621. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7622. then :
  7623. printf %s "(cached) " >&6
  7624. else $as_nop
  7625. if test -n "$ac_ct_LIPO"; then
  7626. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7627. else
  7628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7629. for as_dir in $PATH
  7630. do
  7631. IFS=$as_save_IFS
  7632. case $as_dir in #(((
  7633. '') as_dir=./ ;;
  7634. */) ;;
  7635. *) as_dir=$as_dir/ ;;
  7636. esac
  7637. for ac_exec_ext in '' $ac_executable_extensions; do
  7638. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7639. ac_cv_prog_ac_ct_LIPO="lipo"
  7640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7641. break 2
  7642. fi
  7643. done
  7644. done
  7645. IFS=$as_save_IFS
  7646. fi
  7647. fi
  7648. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7649. if test -n "$ac_ct_LIPO"; then
  7650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7651. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7652. else
  7653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7654. printf "%s\n" "no" >&6; }
  7655. fi
  7656. if test "x$ac_ct_LIPO" = x; then
  7657. LIPO=":"
  7658. else
  7659. case $cross_compiling:$ac_tool_warned in
  7660. yes:)
  7661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7662. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7663. ac_tool_warned=yes ;;
  7664. esac
  7665. LIPO=$ac_ct_LIPO
  7666. fi
  7667. else
  7668. LIPO="$ac_cv_prog_LIPO"
  7669. fi
  7670. if test -n "$ac_tool_prefix"; then
  7671. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7672. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7674. printf %s "checking for $ac_word... " >&6; }
  7675. if test ${ac_cv_prog_OTOOL+y}
  7676. then :
  7677. printf %s "(cached) " >&6
  7678. else $as_nop
  7679. if test -n "$OTOOL"; then
  7680. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7681. else
  7682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7683. for as_dir in $PATH
  7684. do
  7685. IFS=$as_save_IFS
  7686. case $as_dir in #(((
  7687. '') as_dir=./ ;;
  7688. */) ;;
  7689. *) as_dir=$as_dir/ ;;
  7690. esac
  7691. for ac_exec_ext in '' $ac_executable_extensions; do
  7692. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7693. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7694. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7695. break 2
  7696. fi
  7697. done
  7698. done
  7699. IFS=$as_save_IFS
  7700. fi
  7701. fi
  7702. OTOOL=$ac_cv_prog_OTOOL
  7703. if test -n "$OTOOL"; then
  7704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7705. printf "%s\n" "$OTOOL" >&6; }
  7706. else
  7707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7708. printf "%s\n" "no" >&6; }
  7709. fi
  7710. fi
  7711. if test -z "$ac_cv_prog_OTOOL"; then
  7712. ac_ct_OTOOL=$OTOOL
  7713. # Extract the first word of "otool", so it can be a program name with args.
  7714. set dummy otool; ac_word=$2
  7715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7716. printf %s "checking for $ac_word... " >&6; }
  7717. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7718. then :
  7719. printf %s "(cached) " >&6
  7720. else $as_nop
  7721. if test -n "$ac_ct_OTOOL"; then
  7722. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7723. else
  7724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7725. for as_dir in $PATH
  7726. do
  7727. IFS=$as_save_IFS
  7728. case $as_dir in #(((
  7729. '') as_dir=./ ;;
  7730. */) ;;
  7731. *) as_dir=$as_dir/ ;;
  7732. esac
  7733. for ac_exec_ext in '' $ac_executable_extensions; do
  7734. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7735. ac_cv_prog_ac_ct_OTOOL="otool"
  7736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7737. break 2
  7738. fi
  7739. done
  7740. done
  7741. IFS=$as_save_IFS
  7742. fi
  7743. fi
  7744. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7745. if test -n "$ac_ct_OTOOL"; then
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7747. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7748. else
  7749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7750. printf "%s\n" "no" >&6; }
  7751. fi
  7752. if test "x$ac_ct_OTOOL" = x; then
  7753. OTOOL=":"
  7754. else
  7755. case $cross_compiling:$ac_tool_warned in
  7756. yes:)
  7757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7758. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7759. ac_tool_warned=yes ;;
  7760. esac
  7761. OTOOL=$ac_ct_OTOOL
  7762. fi
  7763. else
  7764. OTOOL="$ac_cv_prog_OTOOL"
  7765. fi
  7766. if test -n "$ac_tool_prefix"; then
  7767. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7768. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7770. printf %s "checking for $ac_word... " >&6; }
  7771. if test ${ac_cv_prog_OTOOL64+y}
  7772. then :
  7773. printf %s "(cached) " >&6
  7774. else $as_nop
  7775. if test -n "$OTOOL64"; then
  7776. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7777. else
  7778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7779. for as_dir in $PATH
  7780. do
  7781. IFS=$as_save_IFS
  7782. case $as_dir in #(((
  7783. '') as_dir=./ ;;
  7784. */) ;;
  7785. *) as_dir=$as_dir/ ;;
  7786. esac
  7787. for ac_exec_ext in '' $ac_executable_extensions; do
  7788. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7789. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7791. break 2
  7792. fi
  7793. done
  7794. done
  7795. IFS=$as_save_IFS
  7796. fi
  7797. fi
  7798. OTOOL64=$ac_cv_prog_OTOOL64
  7799. if test -n "$OTOOL64"; then
  7800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7801. printf "%s\n" "$OTOOL64" >&6; }
  7802. else
  7803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7804. printf "%s\n" "no" >&6; }
  7805. fi
  7806. fi
  7807. if test -z "$ac_cv_prog_OTOOL64"; then
  7808. ac_ct_OTOOL64=$OTOOL64
  7809. # Extract the first word of "otool64", so it can be a program name with args.
  7810. set dummy otool64; ac_word=$2
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7812. printf %s "checking for $ac_word... " >&6; }
  7813. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7814. then :
  7815. printf %s "(cached) " >&6
  7816. else $as_nop
  7817. if test -n "$ac_ct_OTOOL64"; then
  7818. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7819. else
  7820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7821. for as_dir in $PATH
  7822. do
  7823. IFS=$as_save_IFS
  7824. case $as_dir in #(((
  7825. '') as_dir=./ ;;
  7826. */) ;;
  7827. *) as_dir=$as_dir/ ;;
  7828. esac
  7829. for ac_exec_ext in '' $ac_executable_extensions; do
  7830. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7831. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7833. break 2
  7834. fi
  7835. done
  7836. done
  7837. IFS=$as_save_IFS
  7838. fi
  7839. fi
  7840. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7841. if test -n "$ac_ct_OTOOL64"; then
  7842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7843. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7844. else
  7845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7846. printf "%s\n" "no" >&6; }
  7847. fi
  7848. if test "x$ac_ct_OTOOL64" = x; then
  7849. OTOOL64=":"
  7850. else
  7851. case $cross_compiling:$ac_tool_warned in
  7852. yes:)
  7853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7854. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7855. ac_tool_warned=yes ;;
  7856. esac
  7857. OTOOL64=$ac_ct_OTOOL64
  7858. fi
  7859. else
  7860. OTOOL64="$ac_cv_prog_OTOOL64"
  7861. fi
  7862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7863. printf %s "checking for -single_module linker flag... " >&6; }
  7864. if test ${lt_cv_apple_cc_single_mod+y}
  7865. then :
  7866. printf %s "(cached) " >&6
  7867. else $as_nop
  7868. lt_cv_apple_cc_single_mod=no
  7869. if test -z "$LT_MULTI_MODULE"; then
  7870. # By default we will add the -single_module flag. You can override
  7871. # by either setting the environment variable LT_MULTI_MODULE
  7872. # non-empty at configure time, or by adding -multi_module to the
  7873. # link flags.
  7874. rm -rf libconftest.dylib*
  7875. echo "int foo(void){return 1;}" > conftest.c
  7876. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7877. -dynamiclib -Wl,-single_module conftest.c" >&5
  7878. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7879. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7880. _lt_result=$?
  7881. # If there is a non-empty error log, and "single_module"
  7882. # appears in it, assume the flag caused a linker warning
  7883. if test -s conftest.err && $GREP single_module conftest.err; then
  7884. cat conftest.err >&5
  7885. # Otherwise, if the output was created with a 0 exit code from
  7886. # the compiler, it worked.
  7887. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7888. lt_cv_apple_cc_single_mod=yes
  7889. else
  7890. cat conftest.err >&5
  7891. fi
  7892. rm -rf libconftest.dylib*
  7893. rm -f conftest.*
  7894. fi
  7895. fi
  7896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7897. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7898. # Feature test to disable chained fixups since it is not
  7899. # compatible with '-undefined dynamic_lookup'
  7900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  7901. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  7902. if test ${lt_cv_support_no_fixup_chains+y}
  7903. then :
  7904. printf %s "(cached) " >&6
  7905. else $as_nop
  7906. save_LDFLAGS=$LDFLAGS
  7907. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  7908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7909. /* end confdefs.h. */
  7910. int
  7911. main (void)
  7912. {
  7913. ;
  7914. return 0;
  7915. }
  7916. _ACEOF
  7917. if ac_fn_c_try_link "$LINENO"
  7918. then :
  7919. lt_cv_support_no_fixup_chains=yes
  7920. else $as_nop
  7921. lt_cv_support_no_fixup_chains=no
  7922. fi
  7923. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7924. conftest$ac_exeext conftest.$ac_ext
  7925. LDFLAGS=$save_LDFLAGS
  7926. fi
  7927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  7928. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  7929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7930. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7931. if test ${lt_cv_ld_exported_symbols_list+y}
  7932. then :
  7933. printf %s "(cached) " >&6
  7934. else $as_nop
  7935. lt_cv_ld_exported_symbols_list=no
  7936. save_LDFLAGS=$LDFLAGS
  7937. echo "_main" > conftest.sym
  7938. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7940. /* end confdefs.h. */
  7941. int
  7942. main (void)
  7943. {
  7944. ;
  7945. return 0;
  7946. }
  7947. _ACEOF
  7948. if ac_fn_c_try_link "$LINENO"
  7949. then :
  7950. lt_cv_ld_exported_symbols_list=yes
  7951. else $as_nop
  7952. lt_cv_ld_exported_symbols_list=no
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7955. conftest$ac_exeext conftest.$ac_ext
  7956. LDFLAGS=$save_LDFLAGS
  7957. fi
  7958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7959. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7961. printf %s "checking for -force_load linker flag... " >&6; }
  7962. if test ${lt_cv_ld_force_load+y}
  7963. then :
  7964. printf %s "(cached) " >&6
  7965. else $as_nop
  7966. lt_cv_ld_force_load=no
  7967. cat > conftest.c << _LT_EOF
  7968. int forced_loaded() { return 2;}
  7969. _LT_EOF
  7970. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7971. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7972. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7973. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7974. echo "$RANLIB libconftest.a" >&5
  7975. $RANLIB libconftest.a 2>&5
  7976. cat > conftest.c << _LT_EOF
  7977. int main(void) { return 0;}
  7978. _LT_EOF
  7979. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7980. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7981. _lt_result=$?
  7982. if test -s conftest.err && $GREP force_load conftest.err; then
  7983. cat conftest.err >&5
  7984. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7985. lt_cv_ld_force_load=yes
  7986. else
  7987. cat conftest.err >&5
  7988. fi
  7989. rm -f conftest.err libconftest.a conftest conftest.c
  7990. rm -rf conftest.dSYM
  7991. fi
  7992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7993. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7994. case $host_os in
  7995. rhapsody* | darwin1.[012])
  7996. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7997. darwin1.*)
  7998. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7999. darwin*)
  8000. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8001. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8002. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8003. *)
  8004. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  8005. if test yes = "$lt_cv_support_no_fixup_chains"; then
  8006. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  8007. fi
  8008. ;;
  8009. esac
  8010. ;;
  8011. esac
  8012. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8013. _lt_dar_single_mod='$single_module'
  8014. fi
  8015. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8016. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8017. else
  8018. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8019. fi
  8020. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8021. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8022. else
  8023. _lt_dsymutil=
  8024. fi
  8025. ;;
  8026. esac
  8027. # func_munge_path_list VARIABLE PATH
  8028. # -----------------------------------
  8029. # VARIABLE is name of variable containing _space_ separated list of
  8030. # directories to be munged by the contents of PATH, which is string
  8031. # having a format:
  8032. # "DIR[:DIR]:"
  8033. # string "DIR[ DIR]" will be prepended to VARIABLE
  8034. # ":DIR[:DIR]"
  8035. # string "DIR[ DIR]" will be appended to VARIABLE
  8036. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8037. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8038. # "DIRA[ DIRA]" will be appended to VARIABLE
  8039. # "DIR[:DIR]"
  8040. # VARIABLE will be replaced by "DIR[ DIR]"
  8041. func_munge_path_list ()
  8042. {
  8043. case x$2 in
  8044. x)
  8045. ;;
  8046. *:)
  8047. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8048. ;;
  8049. x:*)
  8050. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8051. ;;
  8052. *::*)
  8053. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8054. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8055. ;;
  8056. *)
  8057. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8058. ;;
  8059. esac
  8060. }
  8061. ac_header= ac_cache=
  8062. for ac_item in $ac_header_c_list
  8063. do
  8064. if test $ac_cache; then
  8065. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8066. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8067. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8068. fi
  8069. ac_header= ac_cache=
  8070. elif test $ac_header; then
  8071. ac_cache=$ac_item
  8072. else
  8073. ac_header=$ac_item
  8074. fi
  8075. done
  8076. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8077. then :
  8078. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8079. fi
  8080. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8081. "
  8082. if test "x$ac_cv_header_dlfcn_h" = xyes
  8083. then :
  8084. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8085. fi
  8086. # Set options
  8087. enable_win32_dll=yes
  8088. case $host in
  8089. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  8090. if test -n "$ac_tool_prefix"; then
  8091. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8092. set dummy ${ac_tool_prefix}as; ac_word=$2
  8093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8094. printf %s "checking for $ac_word... " >&6; }
  8095. if test ${ac_cv_prog_AS+y}
  8096. then :
  8097. printf %s "(cached) " >&6
  8098. else $as_nop
  8099. if test -n "$AS"; then
  8100. ac_cv_prog_AS="$AS" # Let the user override the test.
  8101. else
  8102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8103. for as_dir in $PATH
  8104. do
  8105. IFS=$as_save_IFS
  8106. case $as_dir in #(((
  8107. '') as_dir=./ ;;
  8108. */) ;;
  8109. *) as_dir=$as_dir/ ;;
  8110. esac
  8111. for ac_exec_ext in '' $ac_executable_extensions; do
  8112. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8113. ac_cv_prog_AS="${ac_tool_prefix}as"
  8114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8115. break 2
  8116. fi
  8117. done
  8118. done
  8119. IFS=$as_save_IFS
  8120. fi
  8121. fi
  8122. AS=$ac_cv_prog_AS
  8123. if test -n "$AS"; then
  8124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8125. printf "%s\n" "$AS" >&6; }
  8126. else
  8127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8128. printf "%s\n" "no" >&6; }
  8129. fi
  8130. fi
  8131. if test -z "$ac_cv_prog_AS"; then
  8132. ac_ct_AS=$AS
  8133. # Extract the first word of "as", so it can be a program name with args.
  8134. set dummy as; ac_word=$2
  8135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8136. printf %s "checking for $ac_word... " >&6; }
  8137. if test ${ac_cv_prog_ac_ct_AS+y}
  8138. then :
  8139. printf %s "(cached) " >&6
  8140. else $as_nop
  8141. if test -n "$ac_ct_AS"; then
  8142. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8143. else
  8144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8145. for as_dir in $PATH
  8146. do
  8147. IFS=$as_save_IFS
  8148. case $as_dir in #(((
  8149. '') as_dir=./ ;;
  8150. */) ;;
  8151. *) as_dir=$as_dir/ ;;
  8152. esac
  8153. for ac_exec_ext in '' $ac_executable_extensions; do
  8154. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8155. ac_cv_prog_ac_ct_AS="as"
  8156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8157. break 2
  8158. fi
  8159. done
  8160. done
  8161. IFS=$as_save_IFS
  8162. fi
  8163. fi
  8164. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8165. if test -n "$ac_ct_AS"; then
  8166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8167. printf "%s\n" "$ac_ct_AS" >&6; }
  8168. else
  8169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8170. printf "%s\n" "no" >&6; }
  8171. fi
  8172. if test "x$ac_ct_AS" = x; then
  8173. AS="false"
  8174. else
  8175. case $cross_compiling:$ac_tool_warned in
  8176. yes:)
  8177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8178. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8179. ac_tool_warned=yes ;;
  8180. esac
  8181. AS=$ac_ct_AS
  8182. fi
  8183. else
  8184. AS="$ac_cv_prog_AS"
  8185. fi
  8186. if test -n "$ac_tool_prefix"; then
  8187. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8188. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8190. printf %s "checking for $ac_word... " >&6; }
  8191. if test ${ac_cv_prog_DLLTOOL+y}
  8192. then :
  8193. printf %s "(cached) " >&6
  8194. else $as_nop
  8195. if test -n "$DLLTOOL"; then
  8196. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8197. else
  8198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8199. for as_dir in $PATH
  8200. do
  8201. IFS=$as_save_IFS
  8202. case $as_dir in #(((
  8203. '') as_dir=./ ;;
  8204. */) ;;
  8205. *) as_dir=$as_dir/ ;;
  8206. esac
  8207. for ac_exec_ext in '' $ac_executable_extensions; do
  8208. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8209. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8211. break 2
  8212. fi
  8213. done
  8214. done
  8215. IFS=$as_save_IFS
  8216. fi
  8217. fi
  8218. DLLTOOL=$ac_cv_prog_DLLTOOL
  8219. if test -n "$DLLTOOL"; then
  8220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8221. printf "%s\n" "$DLLTOOL" >&6; }
  8222. else
  8223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8224. printf "%s\n" "no" >&6; }
  8225. fi
  8226. fi
  8227. if test -z "$ac_cv_prog_DLLTOOL"; then
  8228. ac_ct_DLLTOOL=$DLLTOOL
  8229. # Extract the first word of "dlltool", so it can be a program name with args.
  8230. set dummy dlltool; ac_word=$2
  8231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8232. printf %s "checking for $ac_word... " >&6; }
  8233. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8234. then :
  8235. printf %s "(cached) " >&6
  8236. else $as_nop
  8237. if test -n "$ac_ct_DLLTOOL"; then
  8238. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8239. else
  8240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8241. for as_dir in $PATH
  8242. do
  8243. IFS=$as_save_IFS
  8244. case $as_dir in #(((
  8245. '') as_dir=./ ;;
  8246. */) ;;
  8247. *) as_dir=$as_dir/ ;;
  8248. esac
  8249. for ac_exec_ext in '' $ac_executable_extensions; do
  8250. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8251. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8253. break 2
  8254. fi
  8255. done
  8256. done
  8257. IFS=$as_save_IFS
  8258. fi
  8259. fi
  8260. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8261. if test -n "$ac_ct_DLLTOOL"; then
  8262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8263. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8264. else
  8265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8266. printf "%s\n" "no" >&6; }
  8267. fi
  8268. if test "x$ac_ct_DLLTOOL" = x; then
  8269. DLLTOOL="false"
  8270. else
  8271. case $cross_compiling:$ac_tool_warned in
  8272. yes:)
  8273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8274. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8275. ac_tool_warned=yes ;;
  8276. esac
  8277. DLLTOOL=$ac_ct_DLLTOOL
  8278. fi
  8279. else
  8280. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8281. fi
  8282. if test -n "$ac_tool_prefix"; then
  8283. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8284. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8286. printf %s "checking for $ac_word... " >&6; }
  8287. if test ${ac_cv_prog_OBJDUMP+y}
  8288. then :
  8289. printf %s "(cached) " >&6
  8290. else $as_nop
  8291. if test -n "$OBJDUMP"; then
  8292. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8293. else
  8294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8295. for as_dir in $PATH
  8296. do
  8297. IFS=$as_save_IFS
  8298. case $as_dir in #(((
  8299. '') as_dir=./ ;;
  8300. */) ;;
  8301. *) as_dir=$as_dir/ ;;
  8302. esac
  8303. for ac_exec_ext in '' $ac_executable_extensions; do
  8304. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8305. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8307. break 2
  8308. fi
  8309. done
  8310. done
  8311. IFS=$as_save_IFS
  8312. fi
  8313. fi
  8314. OBJDUMP=$ac_cv_prog_OBJDUMP
  8315. if test -n "$OBJDUMP"; then
  8316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8317. printf "%s\n" "$OBJDUMP" >&6; }
  8318. else
  8319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8320. printf "%s\n" "no" >&6; }
  8321. fi
  8322. fi
  8323. if test -z "$ac_cv_prog_OBJDUMP"; then
  8324. ac_ct_OBJDUMP=$OBJDUMP
  8325. # Extract the first word of "objdump", so it can be a program name with args.
  8326. set dummy objdump; ac_word=$2
  8327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8328. printf %s "checking for $ac_word... " >&6; }
  8329. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8330. then :
  8331. printf %s "(cached) " >&6
  8332. else $as_nop
  8333. if test -n "$ac_ct_OBJDUMP"; then
  8334. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8335. else
  8336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8337. for as_dir in $PATH
  8338. do
  8339. IFS=$as_save_IFS
  8340. case $as_dir in #(((
  8341. '') as_dir=./ ;;
  8342. */) ;;
  8343. *) as_dir=$as_dir/ ;;
  8344. esac
  8345. for ac_exec_ext in '' $ac_executable_extensions; do
  8346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8347. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8349. break 2
  8350. fi
  8351. done
  8352. done
  8353. IFS=$as_save_IFS
  8354. fi
  8355. fi
  8356. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8357. if test -n "$ac_ct_OBJDUMP"; then
  8358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8359. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8360. else
  8361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8362. printf "%s\n" "no" >&6; }
  8363. fi
  8364. if test "x$ac_ct_OBJDUMP" = x; then
  8365. OBJDUMP="false"
  8366. else
  8367. case $cross_compiling:$ac_tool_warned in
  8368. yes:)
  8369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8370. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8371. ac_tool_warned=yes ;;
  8372. esac
  8373. OBJDUMP=$ac_ct_OBJDUMP
  8374. fi
  8375. else
  8376. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8377. fi
  8378. ;;
  8379. esac
  8380. test -z "$AS" && AS=as
  8381. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8382. test -z "$OBJDUMP" && OBJDUMP=objdump
  8383. enable_dlopen=no
  8384. # Check whether --enable-shared was given.
  8385. if test ${enable_shared+y}
  8386. then :
  8387. enableval=$enable_shared; p=${PACKAGE-default}
  8388. case $enableval in
  8389. yes) enable_shared=yes ;;
  8390. no) enable_shared=no ;;
  8391. *)
  8392. enable_shared=no
  8393. # Look at the argument we got. We use all the common list separators.
  8394. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8395. for pkg in $enableval; do
  8396. IFS=$lt_save_ifs
  8397. if test "X$pkg" = "X$p"; then
  8398. enable_shared=yes
  8399. fi
  8400. done
  8401. IFS=$lt_save_ifs
  8402. ;;
  8403. esac
  8404. else $as_nop
  8405. enable_shared=yes
  8406. fi
  8407. # Check whether --enable-static was given.
  8408. if test ${enable_static+y}
  8409. then :
  8410. enableval=$enable_static; p=${PACKAGE-default}
  8411. case $enableval in
  8412. yes) enable_static=yes ;;
  8413. no) enable_static=no ;;
  8414. *)
  8415. enable_static=no
  8416. # Look at the argument we got. We use all the common list separators.
  8417. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8418. for pkg in $enableval; do
  8419. IFS=$lt_save_ifs
  8420. if test "X$pkg" = "X$p"; then
  8421. enable_static=yes
  8422. fi
  8423. done
  8424. IFS=$lt_save_ifs
  8425. ;;
  8426. esac
  8427. else $as_nop
  8428. enable_static=yes
  8429. fi
  8430. # Check whether --enable-pic was given.
  8431. if test ${enable_pic+y}
  8432. then :
  8433. enableval=$enable_pic; lt_p=${PACKAGE-default}
  8434. case $enableval in
  8435. yes|no) pic_mode=$enableval ;;
  8436. *)
  8437. pic_mode=default
  8438. # Look at the argument we got. We use all the common list separators.
  8439. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8440. for lt_pkg in $enableval; do
  8441. IFS=$lt_save_ifs
  8442. if test "X$lt_pkg" = "X$lt_p"; then
  8443. pic_mode=yes
  8444. fi
  8445. done
  8446. IFS=$lt_save_ifs
  8447. ;;
  8448. esac
  8449. else $as_nop
  8450. # Check whether --with-pic was given.
  8451. if test ${with_pic+y}
  8452. then :
  8453. withval=$with_pic; lt_p=${PACKAGE-default}
  8454. case $withval in
  8455. yes|no) pic_mode=$withval ;;
  8456. *)
  8457. pic_mode=default
  8458. # Look at the argument we got. We use all the common list separators.
  8459. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8460. for lt_pkg in $withval; do
  8461. IFS=$lt_save_ifs
  8462. if test "X$lt_pkg" = "X$lt_p"; then
  8463. pic_mode=yes
  8464. fi
  8465. done
  8466. IFS=$lt_save_ifs
  8467. ;;
  8468. esac
  8469. else $as_nop
  8470. pic_mode=default
  8471. fi
  8472. fi
  8473. # Check whether --enable-fast-install was given.
  8474. if test ${enable_fast_install+y}
  8475. then :
  8476. enableval=$enable_fast_install; p=${PACKAGE-default}
  8477. case $enableval in
  8478. yes) enable_fast_install=yes ;;
  8479. no) enable_fast_install=no ;;
  8480. *)
  8481. enable_fast_install=no
  8482. # Look at the argument we got. We use all the common list separators.
  8483. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8484. for pkg in $enableval; do
  8485. IFS=$lt_save_ifs
  8486. if test "X$pkg" = "X$p"; then
  8487. enable_fast_install=yes
  8488. fi
  8489. done
  8490. IFS=$lt_save_ifs
  8491. ;;
  8492. esac
  8493. else $as_nop
  8494. enable_fast_install=yes
  8495. fi
  8496. shared_archive_member_spec=
  8497. case $host,$enable_shared in
  8498. power*-*-aix[5-9]*,yes)
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8500. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8501. # Check whether --enable-aix-soname was given.
  8502. if test ${enable_aix_soname+y}
  8503. then :
  8504. enableval=$enable_aix_soname; case $enableval in
  8505. aix|svr4|both)
  8506. ;;
  8507. *)
  8508. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  8509. ;;
  8510. esac
  8511. lt_cv_with_aix_soname=$enable_aix_soname
  8512. else $as_nop
  8513. # Check whether --with-aix-soname was given.
  8514. if test ${with_aix_soname+y}
  8515. then :
  8516. withval=$with_aix_soname; case $withval in
  8517. aix|svr4|both)
  8518. ;;
  8519. *)
  8520. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8521. ;;
  8522. esac
  8523. lt_cv_with_aix_soname=$with_aix_soname
  8524. else $as_nop
  8525. if test ${lt_cv_with_aix_soname+y}
  8526. then :
  8527. printf %s "(cached) " >&6
  8528. else $as_nop
  8529. lt_cv_with_aix_soname=aix
  8530. fi
  8531. fi
  8532. enable_aix_soname=$lt_cv_with_aix_soname
  8533. fi
  8534. with_aix_soname=$enable_aix_soname
  8535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8536. printf "%s\n" "$with_aix_soname" >&6; }
  8537. if test aix != "$with_aix_soname"; then
  8538. # For the AIX way of multilib, we name the shared archive member
  8539. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8540. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8541. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8542. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8543. if test 64 = "${OBJECT_MODE-32}"; then
  8544. shared_archive_member_spec=shr_64
  8545. else
  8546. shared_archive_member_spec=shr
  8547. fi
  8548. fi
  8549. ;;
  8550. *)
  8551. with_aix_soname=aix
  8552. ;;
  8553. esac
  8554. # This can be used to rebuild libtool when needed
  8555. LIBTOOL_DEPS=$ltmain
  8556. # Always use our own libtool.
  8557. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8558. test -z "$LN_S" && LN_S="ln -s"
  8559. if test -n "${ZSH_VERSION+set}"; then
  8560. setopt NO_GLOB_SUBST
  8561. fi
  8562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8563. printf %s "checking for objdir... " >&6; }
  8564. if test ${lt_cv_objdir+y}
  8565. then :
  8566. printf %s "(cached) " >&6
  8567. else $as_nop
  8568. rm -f .libs 2>/dev/null
  8569. mkdir .libs 2>/dev/null
  8570. if test -d .libs; then
  8571. lt_cv_objdir=.libs
  8572. else
  8573. # MS-DOS does not allow filenames that begin with a dot.
  8574. lt_cv_objdir=_libs
  8575. fi
  8576. rmdir .libs 2>/dev/null
  8577. fi
  8578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8579. printf "%s\n" "$lt_cv_objdir" >&6; }
  8580. objdir=$lt_cv_objdir
  8581. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8582. case $host_os in
  8583. aix3*)
  8584. # AIX sometimes has problems with the GCC collect2 program. For some
  8585. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8586. # vanish in a puff of smoke.
  8587. if test set != "${COLLECT_NAMES+set}"; then
  8588. COLLECT_NAMES=
  8589. export COLLECT_NAMES
  8590. fi
  8591. ;;
  8592. esac
  8593. # Global variables:
  8594. ofile=libtool
  8595. can_build_shared=yes
  8596. # All known linkers require a '.a' archive for static linking (except MSVC and
  8597. # ICC, which need '.lib').
  8598. libext=a
  8599. with_gnu_ld=$lt_cv_prog_gnu_ld
  8600. old_CC=$CC
  8601. old_CFLAGS=$CFLAGS
  8602. # Set sane defaults for various variables
  8603. test -z "$CC" && CC=cc
  8604. test -z "$LTCC" && LTCC=$CC
  8605. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8606. test -z "$LD" && LD=ld
  8607. test -z "$ac_objext" && ac_objext=o
  8608. func_cc_basename $compiler
  8609. cc_basename=$func_cc_basename_result
  8610. # Only perform the check for file, if the check method requires it
  8611. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8612. case $deplibs_check_method in
  8613. file_magic*)
  8614. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8616. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8617. if test ${lt_cv_path_MAGIC_CMD+y}
  8618. then :
  8619. printf %s "(cached) " >&6
  8620. else $as_nop
  8621. case $MAGIC_CMD in
  8622. [\\/*] | ?:[\\/]*)
  8623. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8624. ;;
  8625. *)
  8626. lt_save_MAGIC_CMD=$MAGIC_CMD
  8627. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8628. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8629. for ac_dir in $ac_dummy; do
  8630. IFS=$lt_save_ifs
  8631. test -z "$ac_dir" && ac_dir=.
  8632. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8633. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8634. if test -n "$file_magic_test_file"; then
  8635. case $deplibs_check_method in
  8636. "file_magic "*)
  8637. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8638. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8639. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8640. $EGREP "$file_magic_regex" > /dev/null; then
  8641. :
  8642. else
  8643. cat <<_LT_EOF 1>&2
  8644. *** Warning: the command libtool uses to detect shared libraries,
  8645. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8646. *** The result is that libtool may fail to recognize shared libraries
  8647. *** as such. This will affect the creation of libtool libraries that
  8648. *** depend on shared libraries, but programs linked with such libtool
  8649. *** libraries will work regardless of this problem. Nevertheless, you
  8650. *** may want to report the problem to your system manager and/or to
  8651. *** [email protected]
  8652. _LT_EOF
  8653. fi ;;
  8654. esac
  8655. fi
  8656. break
  8657. fi
  8658. done
  8659. IFS=$lt_save_ifs
  8660. MAGIC_CMD=$lt_save_MAGIC_CMD
  8661. ;;
  8662. esac
  8663. fi
  8664. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8665. if test -n "$MAGIC_CMD"; then
  8666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8667. printf "%s\n" "$MAGIC_CMD" >&6; }
  8668. else
  8669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8670. printf "%s\n" "no" >&6; }
  8671. fi
  8672. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8673. if test -n "$ac_tool_prefix"; then
  8674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8675. printf %s "checking for file... " >&6; }
  8676. if test ${lt_cv_path_MAGIC_CMD+y}
  8677. then :
  8678. printf %s "(cached) " >&6
  8679. else $as_nop
  8680. case $MAGIC_CMD in
  8681. [\\/*] | ?:[\\/]*)
  8682. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8683. ;;
  8684. *)
  8685. lt_save_MAGIC_CMD=$MAGIC_CMD
  8686. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8687. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8688. for ac_dir in $ac_dummy; do
  8689. IFS=$lt_save_ifs
  8690. test -z "$ac_dir" && ac_dir=.
  8691. if test -f "$ac_dir/file"; then
  8692. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8693. if test -n "$file_magic_test_file"; then
  8694. case $deplibs_check_method in
  8695. "file_magic "*)
  8696. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8697. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8698. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8699. $EGREP "$file_magic_regex" > /dev/null; then
  8700. :
  8701. else
  8702. cat <<_LT_EOF 1>&2
  8703. *** Warning: the command libtool uses to detect shared libraries,
  8704. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8705. *** The result is that libtool may fail to recognize shared libraries
  8706. *** as such. This will affect the creation of libtool libraries that
  8707. *** depend on shared libraries, but programs linked with such libtool
  8708. *** libraries will work regardless of this problem. Nevertheless, you
  8709. *** may want to report the problem to your system manager and/or to
  8710. *** [email protected]
  8711. _LT_EOF
  8712. fi ;;
  8713. esac
  8714. fi
  8715. break
  8716. fi
  8717. done
  8718. IFS=$lt_save_ifs
  8719. MAGIC_CMD=$lt_save_MAGIC_CMD
  8720. ;;
  8721. esac
  8722. fi
  8723. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8724. if test -n "$MAGIC_CMD"; then
  8725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8726. printf "%s\n" "$MAGIC_CMD" >&6; }
  8727. else
  8728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8729. printf "%s\n" "no" >&6; }
  8730. fi
  8731. else
  8732. MAGIC_CMD=:
  8733. fi
  8734. fi
  8735. fi
  8736. ;;
  8737. esac
  8738. # Use C for the default configuration in the libtool script
  8739. lt_save_CC=$CC
  8740. ac_ext=c
  8741. ac_cpp='$CPP $CPPFLAGS'
  8742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8745. # Source file extension for C test sources.
  8746. ac_ext=c
  8747. # Object file extension for compiled C test sources.
  8748. objext=o
  8749. objext=$objext
  8750. # Code to be used in simple compile tests
  8751. lt_simple_compile_test_code="int some_variable = 0;"
  8752. # Code to be used in simple link tests
  8753. lt_simple_link_test_code='int main(void){return(0);}'
  8754. # If no C compiler was specified, use CC.
  8755. LTCC=${LTCC-"$CC"}
  8756. # If no C compiler flags were specified, use CFLAGS.
  8757. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8758. # Allow CC to be a program name with arguments.
  8759. compiler=$CC
  8760. # Save the default compiler, since it gets overwritten when the other
  8761. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8762. compiler_DEFAULT=$CC
  8763. # save warnings/boilerplate of simple test code
  8764. ac_outfile=conftest.$ac_objext
  8765. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8766. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8767. _lt_compiler_boilerplate=`cat conftest.err`
  8768. $RM conftest*
  8769. ac_outfile=conftest.$ac_objext
  8770. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8771. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8772. _lt_linker_boilerplate=`cat conftest.err`
  8773. $RM -r conftest*
  8774. ## CAVEAT EMPTOR:
  8775. ## There is no encapsulation within the following macros, do not change
  8776. ## the running order or otherwise move them around unless you know exactly
  8777. ## what you are doing...
  8778. if test -n "$compiler"; then
  8779. lt_prog_compiler_no_builtin_flag=
  8780. if test yes = "$GCC"; then
  8781. case $cc_basename in
  8782. nvcc*)
  8783. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8784. *)
  8785. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8786. esac
  8787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8788. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8789. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8790. then :
  8791. printf %s "(cached) " >&6
  8792. else $as_nop
  8793. lt_cv_prog_compiler_rtti_exceptions=no
  8794. ac_outfile=conftest.$ac_objext
  8795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8796. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8797. # Insert the option either (1) after the last *FLAGS variable, or
  8798. # (2) before a word containing "conftest.", or (3) at the end.
  8799. # Note that $ac_compile itself does not contain backslashes and begins
  8800. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8801. # The option is referenced via a variable to avoid confusing sed.
  8802. lt_compile=`echo "$ac_compile" | $SED \
  8803. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8804. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8805. -e 's:$: $lt_compiler_flag:'`
  8806. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8807. (eval "$lt_compile" 2>conftest.err)
  8808. ac_status=$?
  8809. cat conftest.err >&5
  8810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8811. if (exit $ac_status) && test -s "$ac_outfile"; then
  8812. # The compiler can only warn and ignore the option if not recognized
  8813. # So say no if there are warnings other than the usual output.
  8814. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8815. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8816. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8817. lt_cv_prog_compiler_rtti_exceptions=yes
  8818. fi
  8819. fi
  8820. $RM conftest*
  8821. fi
  8822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8823. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8824. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8825. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8826. else
  8827. :
  8828. fi
  8829. fi
  8830. lt_prog_compiler_wl=
  8831. lt_prog_compiler_pic=
  8832. lt_prog_compiler_static=
  8833. if test yes = "$GCC"; then
  8834. lt_prog_compiler_wl='-Wl,'
  8835. lt_prog_compiler_static='-static'
  8836. case $host_os in
  8837. aix*)
  8838. # All AIX code is PIC.
  8839. if test ia64 = "$host_cpu"; then
  8840. # AIX 5 now supports IA64 processor
  8841. lt_prog_compiler_static='-Bstatic'
  8842. fi
  8843. lt_prog_compiler_pic='-fPIC'
  8844. ;;
  8845. amigaos*)
  8846. case $host_cpu in
  8847. powerpc)
  8848. # see comment about AmigaOS4 .so support
  8849. lt_prog_compiler_pic='-fPIC'
  8850. ;;
  8851. m68k)
  8852. # FIXME: we need at least 68020 code to build shared libraries, but
  8853. # adding the '-m68020' flag to GCC prevents building anything better,
  8854. # like '-m68040'.
  8855. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8856. ;;
  8857. esac
  8858. ;;
  8859. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8860. # PIC is the default for these OSes.
  8861. ;;
  8862. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8863. # This hack is so that the source file can tell whether it is being
  8864. # built for inclusion in a dll (and should export symbols for example).
  8865. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8866. # (--disable-auto-import) libraries
  8867. lt_prog_compiler_pic='-DDLL_EXPORT'
  8868. case $host_os in
  8869. os2*)
  8870. lt_prog_compiler_static='$wl-static'
  8871. ;;
  8872. esac
  8873. ;;
  8874. darwin* | rhapsody*)
  8875. # PIC is the default on this platform
  8876. # Common symbols not allowed in MH_DYLIB files
  8877. lt_prog_compiler_pic='-fno-common'
  8878. ;;
  8879. haiku*)
  8880. # PIC is the default for Haiku.
  8881. # The "-static" flag exists, but is broken.
  8882. lt_prog_compiler_static=
  8883. ;;
  8884. hpux*)
  8885. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8886. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8887. # sets the default TLS model and affects inlining.
  8888. case $host_cpu in
  8889. hppa*64*)
  8890. # +Z the default
  8891. ;;
  8892. *)
  8893. lt_prog_compiler_pic='-fPIC'
  8894. ;;
  8895. esac
  8896. ;;
  8897. interix[3-9]*)
  8898. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8899. # Instead, we relocate shared libraries at runtime.
  8900. ;;
  8901. msdosdjgpp*)
  8902. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8903. # on systems that don't support them.
  8904. lt_prog_compiler_can_build_shared=no
  8905. enable_shared=no
  8906. ;;
  8907. *nto* | *qnx*)
  8908. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8909. # it will coredump.
  8910. lt_prog_compiler_pic='-fPIC -shared'
  8911. ;;
  8912. sysv4*MP*)
  8913. if test -d /usr/nec; then
  8914. lt_prog_compiler_pic=-Kconform_pic
  8915. fi
  8916. ;;
  8917. *)
  8918. lt_prog_compiler_pic='-fPIC'
  8919. ;;
  8920. esac
  8921. case $cc_basename in
  8922. nvcc*) # Cuda Compiler Driver 2.2
  8923. lt_prog_compiler_wl='-Xlinker '
  8924. if test -n "$lt_prog_compiler_pic"; then
  8925. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8926. fi
  8927. ;;
  8928. esac
  8929. else
  8930. # PORTME Check for flag to pass linker flags through the system compiler.
  8931. case $host_os in
  8932. aix*)
  8933. lt_prog_compiler_wl='-Wl,'
  8934. if test ia64 = "$host_cpu"; then
  8935. # AIX 5 now supports IA64 processor
  8936. lt_prog_compiler_static='-Bstatic'
  8937. else
  8938. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8939. fi
  8940. ;;
  8941. darwin* | rhapsody*)
  8942. # PIC is the default on this platform
  8943. # Common symbols not allowed in MH_DYLIB files
  8944. lt_prog_compiler_pic='-fno-common'
  8945. case $cc_basename in
  8946. nagfor*)
  8947. # NAG Fortran compiler
  8948. lt_prog_compiler_wl='-Wl,-Wl,,'
  8949. lt_prog_compiler_pic='-PIC'
  8950. lt_prog_compiler_static='-Bstatic'
  8951. ;;
  8952. esac
  8953. ;;
  8954. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8955. # This hack is so that the source file can tell whether it is being
  8956. # built for inclusion in a dll (and should export symbols for example).
  8957. lt_prog_compiler_pic='-DDLL_EXPORT'
  8958. case $host_os in
  8959. os2*)
  8960. lt_prog_compiler_static='$wl-static'
  8961. ;;
  8962. esac
  8963. ;;
  8964. hpux9* | hpux10* | hpux11*)
  8965. lt_prog_compiler_wl='-Wl,'
  8966. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8967. # not for PA HP-UX.
  8968. case $host_cpu in
  8969. hppa*64*|ia64*)
  8970. # +Z the default
  8971. ;;
  8972. *)
  8973. lt_prog_compiler_pic='+Z'
  8974. ;;
  8975. esac
  8976. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8977. lt_prog_compiler_static='$wl-a ${wl}archive'
  8978. ;;
  8979. irix5* | irix6* | nonstopux*)
  8980. lt_prog_compiler_wl='-Wl,'
  8981. # PIC (with -KPIC) is the default.
  8982. lt_prog_compiler_static='-non_shared'
  8983. ;;
  8984. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8985. case $cc_basename in
  8986. # old Intel for x86_64, which still supported -KPIC.
  8987. ecc*)
  8988. lt_prog_compiler_wl='-Wl,'
  8989. lt_prog_compiler_pic='-KPIC'
  8990. lt_prog_compiler_static='-static'
  8991. ;;
  8992. *flang* | ftn)
  8993. # Flang compiler.
  8994. lt_prog_compiler_wl='-Wl,'
  8995. lt_prog_compiler_pic='-fPIC'
  8996. lt_prog_compiler_static='-static'
  8997. ;;
  8998. # icc used to be incompatible with GCC.
  8999. # ICC 10 doesn't accept -KPIC any more.
  9000. icc* | ifort*)
  9001. lt_prog_compiler_wl='-Wl,'
  9002. lt_prog_compiler_pic='-fPIC'
  9003. lt_prog_compiler_static='-static'
  9004. ;;
  9005. # Lahey Fortran 8.1.
  9006. lf95*)
  9007. lt_prog_compiler_wl='-Wl,'
  9008. lt_prog_compiler_pic='--shared'
  9009. lt_prog_compiler_static='--static'
  9010. ;;
  9011. nagfor*)
  9012. # NAG Fortran compiler
  9013. lt_prog_compiler_wl='-Wl,-Wl,,'
  9014. lt_prog_compiler_pic='-PIC'
  9015. lt_prog_compiler_static='-Bstatic'
  9016. ;;
  9017. tcc*)
  9018. # Fabrice Bellard et al's Tiny C Compiler
  9019. lt_prog_compiler_wl='-Wl,'
  9020. lt_prog_compiler_pic='-fPIC'
  9021. lt_prog_compiler_static='-static'
  9022. ;;
  9023. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9024. # Portland Group compilers (*not* the Pentium gcc compiler,
  9025. # which looks to be a dead project)
  9026. lt_prog_compiler_wl='-Wl,'
  9027. lt_prog_compiler_pic='-fpic'
  9028. lt_prog_compiler_static='-Bstatic'
  9029. ;;
  9030. ccc*)
  9031. lt_prog_compiler_wl='-Wl,'
  9032. # All Alpha code is PIC.
  9033. lt_prog_compiler_static='-non_shared'
  9034. ;;
  9035. xl* | bgxl* | bgf* | mpixl*)
  9036. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9037. lt_prog_compiler_wl='-Wl,'
  9038. lt_prog_compiler_pic='-qpic'
  9039. lt_prog_compiler_static='-qstaticlink'
  9040. ;;
  9041. *)
  9042. case `$CC -V 2>&1 | $SED 5q` in
  9043. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9044. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9045. lt_prog_compiler_pic='-KPIC'
  9046. lt_prog_compiler_static='-Bstatic'
  9047. lt_prog_compiler_wl=''
  9048. ;;
  9049. *Sun\ F* | *Sun*Fortran*)
  9050. lt_prog_compiler_pic='-KPIC'
  9051. lt_prog_compiler_static='-Bstatic'
  9052. lt_prog_compiler_wl='-Qoption ld '
  9053. ;;
  9054. *Sun\ C*)
  9055. # Sun C 5.9
  9056. lt_prog_compiler_pic='-KPIC'
  9057. lt_prog_compiler_static='-Bstatic'
  9058. lt_prog_compiler_wl='-Wl,'
  9059. ;;
  9060. *Intel*\ [CF]*Compiler*)
  9061. lt_prog_compiler_wl='-Wl,'
  9062. lt_prog_compiler_pic='-fPIC'
  9063. lt_prog_compiler_static='-static'
  9064. ;;
  9065. *Portland\ Group*)
  9066. lt_prog_compiler_wl='-Wl,'
  9067. lt_prog_compiler_pic='-fpic'
  9068. lt_prog_compiler_static='-Bstatic'
  9069. ;;
  9070. esac
  9071. ;;
  9072. esac
  9073. ;;
  9074. newsos6)
  9075. lt_prog_compiler_pic='-KPIC'
  9076. lt_prog_compiler_static='-Bstatic'
  9077. ;;
  9078. *nto* | *qnx*)
  9079. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9080. # it will coredump.
  9081. lt_prog_compiler_pic='-fPIC -shared'
  9082. ;;
  9083. osf3* | osf4* | osf5*)
  9084. lt_prog_compiler_wl='-Wl,'
  9085. # All OSF/1 code is PIC.
  9086. lt_prog_compiler_static='-non_shared'
  9087. ;;
  9088. rdos*)
  9089. lt_prog_compiler_static='-non_shared'
  9090. ;;
  9091. solaris*)
  9092. lt_prog_compiler_pic='-KPIC'
  9093. lt_prog_compiler_static='-Bstatic'
  9094. case $cc_basename in
  9095. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9096. lt_prog_compiler_wl='-Qoption ld ';;
  9097. *)
  9098. lt_prog_compiler_wl='-Wl,';;
  9099. esac
  9100. ;;
  9101. sunos4*)
  9102. lt_prog_compiler_wl='-Qoption ld '
  9103. lt_prog_compiler_pic='-PIC'
  9104. lt_prog_compiler_static='-Bstatic'
  9105. ;;
  9106. sysv4 | sysv4.2uw2* | sysv4.3*)
  9107. lt_prog_compiler_wl='-Wl,'
  9108. lt_prog_compiler_pic='-KPIC'
  9109. lt_prog_compiler_static='-Bstatic'
  9110. ;;
  9111. sysv4*MP*)
  9112. if test -d /usr/nec; then
  9113. lt_prog_compiler_pic='-Kconform_pic'
  9114. lt_prog_compiler_static='-Bstatic'
  9115. fi
  9116. ;;
  9117. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9118. lt_prog_compiler_wl='-Wl,'
  9119. lt_prog_compiler_pic='-KPIC'
  9120. lt_prog_compiler_static='-Bstatic'
  9121. ;;
  9122. unicos*)
  9123. lt_prog_compiler_wl='-Wl,'
  9124. lt_prog_compiler_can_build_shared=no
  9125. ;;
  9126. uts4*)
  9127. lt_prog_compiler_pic='-pic'
  9128. lt_prog_compiler_static='-Bstatic'
  9129. ;;
  9130. *)
  9131. lt_prog_compiler_can_build_shared=no
  9132. ;;
  9133. esac
  9134. fi
  9135. case $host_os in
  9136. # For platforms that do not support PIC, -DPIC is meaningless:
  9137. *djgpp*)
  9138. lt_prog_compiler_pic=
  9139. ;;
  9140. *)
  9141. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9142. ;;
  9143. esac
  9144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9145. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9146. if test ${lt_cv_prog_compiler_pic+y}
  9147. then :
  9148. printf %s "(cached) " >&6
  9149. else $as_nop
  9150. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9151. fi
  9152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9153. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9154. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9155. #
  9156. # Check to make sure the PIC flag actually works.
  9157. #
  9158. if test -n "$lt_prog_compiler_pic"; then
  9159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9160. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9161. if test ${lt_cv_prog_compiler_pic_works+y}
  9162. then :
  9163. printf %s "(cached) " >&6
  9164. else $as_nop
  9165. lt_cv_prog_compiler_pic_works=no
  9166. ac_outfile=conftest.$ac_objext
  9167. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9168. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9169. # Insert the option either (1) after the last *FLAGS variable, or
  9170. # (2) before a word containing "conftest.", or (3) at the end.
  9171. # Note that $ac_compile itself does not contain backslashes and begins
  9172. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9173. # The option is referenced via a variable to avoid confusing sed.
  9174. lt_compile=`echo "$ac_compile" | $SED \
  9175. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9176. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9177. -e 's:$: $lt_compiler_flag:'`
  9178. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9179. (eval "$lt_compile" 2>conftest.err)
  9180. ac_status=$?
  9181. cat conftest.err >&5
  9182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9183. if (exit $ac_status) && test -s "$ac_outfile"; then
  9184. # The compiler can only warn and ignore the option if not recognized
  9185. # So say no if there are warnings other than the usual output.
  9186. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9188. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9189. lt_cv_prog_compiler_pic_works=yes
  9190. fi
  9191. fi
  9192. $RM conftest*
  9193. fi
  9194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9195. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9196. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9197. case $lt_prog_compiler_pic in
  9198. "" | " "*) ;;
  9199. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9200. esac
  9201. else
  9202. lt_prog_compiler_pic=
  9203. lt_prog_compiler_can_build_shared=no
  9204. fi
  9205. fi
  9206. #
  9207. # Check to make sure the static flag actually works.
  9208. #
  9209. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9211. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9212. if test ${lt_cv_prog_compiler_static_works+y}
  9213. then :
  9214. printf %s "(cached) " >&6
  9215. else $as_nop
  9216. lt_cv_prog_compiler_static_works=no
  9217. save_LDFLAGS=$LDFLAGS
  9218. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9219. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9220. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9221. # The linker can only warn and ignore the option if not recognized
  9222. # So say no if there are warnings
  9223. if test -s conftest.err; then
  9224. # Append any errors to the config.log.
  9225. cat conftest.err 1>&5
  9226. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9227. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9228. if diff conftest.exp conftest.er2 >/dev/null; then
  9229. lt_cv_prog_compiler_static_works=yes
  9230. fi
  9231. else
  9232. lt_cv_prog_compiler_static_works=yes
  9233. fi
  9234. fi
  9235. $RM -r conftest*
  9236. LDFLAGS=$save_LDFLAGS
  9237. fi
  9238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9239. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9240. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9241. :
  9242. else
  9243. lt_prog_compiler_static=
  9244. fi
  9245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9246. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9247. if test ${lt_cv_prog_compiler_c_o+y}
  9248. then :
  9249. printf %s "(cached) " >&6
  9250. else $as_nop
  9251. lt_cv_prog_compiler_c_o=no
  9252. $RM -r conftest 2>/dev/null
  9253. mkdir conftest
  9254. cd conftest
  9255. mkdir out
  9256. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9257. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9258. # Insert the option either (1) after the last *FLAGS variable, or
  9259. # (2) before a word containing "conftest.", or (3) at the end.
  9260. # Note that $ac_compile itself does not contain backslashes and begins
  9261. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9262. lt_compile=`echo "$ac_compile" | $SED \
  9263. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9264. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9265. -e 's:$: $lt_compiler_flag:'`
  9266. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9267. (eval "$lt_compile" 2>out/conftest.err)
  9268. ac_status=$?
  9269. cat out/conftest.err >&5
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9272. then
  9273. # The compiler can only warn and ignore the option if not recognized
  9274. # So say no if there are warnings
  9275. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9276. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9277. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9278. lt_cv_prog_compiler_c_o=yes
  9279. fi
  9280. fi
  9281. chmod u+w . 2>&5
  9282. $RM conftest*
  9283. # SGI C++ compiler will create directory out/ii_files/ for
  9284. # template instantiation
  9285. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9286. $RM out/* && rmdir out
  9287. cd ..
  9288. $RM -r conftest
  9289. $RM conftest*
  9290. fi
  9291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9292. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9294. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9295. if test ${lt_cv_prog_compiler_c_o+y}
  9296. then :
  9297. printf %s "(cached) " >&6
  9298. else $as_nop
  9299. lt_cv_prog_compiler_c_o=no
  9300. $RM -r conftest 2>/dev/null
  9301. mkdir conftest
  9302. cd conftest
  9303. mkdir out
  9304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9305. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9306. # Insert the option either (1) after the last *FLAGS variable, or
  9307. # (2) before a word containing "conftest.", or (3) at the end.
  9308. # Note that $ac_compile itself does not contain backslashes and begins
  9309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9310. lt_compile=`echo "$ac_compile" | $SED \
  9311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9313. -e 's:$: $lt_compiler_flag:'`
  9314. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9315. (eval "$lt_compile" 2>out/conftest.err)
  9316. ac_status=$?
  9317. cat out/conftest.err >&5
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9320. then
  9321. # The compiler can only warn and ignore the option if not recognized
  9322. # So say no if there are warnings
  9323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9324. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9325. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9326. lt_cv_prog_compiler_c_o=yes
  9327. fi
  9328. fi
  9329. chmod u+w . 2>&5
  9330. $RM conftest*
  9331. # SGI C++ compiler will create directory out/ii_files/ for
  9332. # template instantiation
  9333. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9334. $RM out/* && rmdir out
  9335. cd ..
  9336. $RM -r conftest
  9337. $RM conftest*
  9338. fi
  9339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9340. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9341. hard_links=nottested
  9342. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9343. # do not overwrite the value of need_locks provided by the user
  9344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9345. printf %s "checking if we can lock with hard links... " >&6; }
  9346. hard_links=yes
  9347. $RM conftest*
  9348. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9349. touch conftest.a
  9350. ln conftest.a conftest.b 2>&5 || hard_links=no
  9351. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9353. printf "%s\n" "$hard_links" >&6; }
  9354. if test no = "$hard_links"; then
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9356. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9357. need_locks=warn
  9358. fi
  9359. else
  9360. need_locks=no
  9361. fi
  9362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9363. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9364. runpath_var=
  9365. allow_undefined_flag=
  9366. always_export_symbols=no
  9367. archive_cmds=
  9368. archive_expsym_cmds=
  9369. compiler_needs_object=no
  9370. enable_shared_with_static_runtimes=no
  9371. export_dynamic_flag_spec=
  9372. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9373. hardcode_automatic=no
  9374. hardcode_direct=no
  9375. hardcode_direct_absolute=no
  9376. hardcode_libdir_flag_spec=
  9377. hardcode_libdir_separator=
  9378. hardcode_minus_L=no
  9379. hardcode_shlibpath_var=unsupported
  9380. inherit_rpath=no
  9381. link_all_deplibs=unknown
  9382. module_cmds=
  9383. module_expsym_cmds=
  9384. old_archive_from_new_cmds=
  9385. old_archive_from_expsyms_cmds=
  9386. thread_safe_flag_spec=
  9387. whole_archive_flag_spec=
  9388. # include_expsyms should be a list of space-separated symbols to be *always*
  9389. # included in the symbol list
  9390. include_expsyms=
  9391. # exclude_expsyms can be an extended regexp of symbols to exclude
  9392. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9393. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9394. # as well as any symbol that contains 'd'.
  9395. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9396. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9397. # platforms (ab)use it in PIC code, but their linkers get confused if
  9398. # the symbol is explicitly referenced. Since portable code cannot
  9399. # rely on this symbol name, it's probably fine to never include it in
  9400. # preloaded symbol tables.
  9401. # Exclude shared library initialization/finalization symbols.
  9402. extract_expsyms_cmds=
  9403. case $host_os in
  9404. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9405. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9406. # When not using gcc, we currently assume that we are using
  9407. # Microsoft Visual C++ or Intel C++ Compiler.
  9408. if test yes != "$GCC"; then
  9409. with_gnu_ld=no
  9410. fi
  9411. ;;
  9412. interix*)
  9413. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9414. with_gnu_ld=yes
  9415. ;;
  9416. openbsd*)
  9417. with_gnu_ld=no
  9418. ;;
  9419. esac
  9420. ld_shlibs=yes
  9421. # On some targets, GNU ld is compatible enough with the native linker
  9422. # that we're better off using the native interface for both.
  9423. lt_use_gnu_ld_interface=no
  9424. if test yes = "$with_gnu_ld"; then
  9425. case $host_os in
  9426. aix*)
  9427. # The AIX port of GNU ld has always aspired to compatibility
  9428. # with the native linker. However, as the warning in the GNU ld
  9429. # block says, versions before 2.19.5* couldn't really create working
  9430. # shared libraries, regardless of the interface used.
  9431. case `$LD -v 2>&1` in
  9432. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9433. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9434. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9435. *)
  9436. lt_use_gnu_ld_interface=yes
  9437. ;;
  9438. esac
  9439. ;;
  9440. *)
  9441. lt_use_gnu_ld_interface=yes
  9442. ;;
  9443. esac
  9444. fi
  9445. if test yes = "$lt_use_gnu_ld_interface"; then
  9446. # If archive_cmds runs LD, not CC, wlarc should be empty
  9447. wlarc='$wl'
  9448. # Set some defaults for GNU ld with shared library support. These
  9449. # are reset later if shared libraries are not supported. Putting them
  9450. # here allows them to be overridden if necessary.
  9451. runpath_var=LD_RUN_PATH
  9452. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9453. export_dynamic_flag_spec='$wl--export-dynamic'
  9454. # ancient GNU ld didn't support --whole-archive et. al.
  9455. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9456. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9457. else
  9458. whole_archive_flag_spec=
  9459. fi
  9460. supports_anon_versioning=no
  9461. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9462. *GNU\ gold*) supports_anon_versioning=yes ;;
  9463. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9464. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9465. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9466. *\ 2.11.*) ;; # other 2.11 versions
  9467. *) supports_anon_versioning=yes ;;
  9468. esac
  9469. # See if GNU ld supports shared libraries.
  9470. case $host_os in
  9471. aix[3-9]*)
  9472. # On AIX/PPC, the GNU linker is very broken
  9473. if test ia64 != "$host_cpu"; then
  9474. ld_shlibs=no
  9475. cat <<_LT_EOF 1>&2
  9476. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9477. *** to be unable to reliably create shared libraries on AIX.
  9478. *** Therefore, libtool is disabling shared libraries support. If you
  9479. *** really care for shared libraries, you may want to install binutils
  9480. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9481. *** You will then need to restart the configuration process.
  9482. _LT_EOF
  9483. fi
  9484. ;;
  9485. amigaos*)
  9486. case $host_cpu in
  9487. powerpc)
  9488. # see comment about AmigaOS4 .so support
  9489. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9490. archive_expsym_cmds=''
  9491. ;;
  9492. m68k)
  9493. 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)'
  9494. hardcode_libdir_flag_spec='-L$libdir'
  9495. hardcode_minus_L=yes
  9496. ;;
  9497. esac
  9498. ;;
  9499. beos*)
  9500. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9501. allow_undefined_flag=unsupported
  9502. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9503. # support --undefined. This deserves some investigation. FIXME
  9504. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9505. else
  9506. ld_shlibs=no
  9507. fi
  9508. ;;
  9509. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9510. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9511. # as there is no search path for DLLs.
  9512. hardcode_libdir_flag_spec='-L$libdir'
  9513. export_dynamic_flag_spec='$wl--export-all-symbols'
  9514. allow_undefined_flag=unsupported
  9515. always_export_symbols=no
  9516. enable_shared_with_static_runtimes=yes
  9517. 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'
  9518. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9519. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9521. # If the export-symbols file already is a .def file, use it as
  9522. # is; otherwise, prepend EXPORTS...
  9523. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9524. cp $export_symbols $output_objdir/$soname.def;
  9525. else
  9526. echo EXPORTS > $output_objdir/$soname.def;
  9527. cat $export_symbols >> $output_objdir/$soname.def;
  9528. fi~
  9529. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9530. else
  9531. ld_shlibs=no
  9532. fi
  9533. ;;
  9534. haiku*)
  9535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9536. link_all_deplibs=yes
  9537. ;;
  9538. os2*)
  9539. hardcode_libdir_flag_spec='-L$libdir'
  9540. hardcode_minus_L=yes
  9541. allow_undefined_flag=unsupported
  9542. shrext_cmds=.dll
  9543. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9544. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9545. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9546. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9547. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9548. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9549. emximp -o $lib $output_objdir/$libname.def'
  9550. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9551. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9552. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9553. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9554. prefix_cmds="$SED"~
  9555. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9556. prefix_cmds="$prefix_cmds -e 1d";
  9557. fi~
  9558. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9559. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9560. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9561. emximp -o $lib $output_objdir/$libname.def'
  9562. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9563. enable_shared_with_static_runtimes=yes
  9564. file_list_spec='@'
  9565. ;;
  9566. interix[3-9]*)
  9567. hardcode_direct=no
  9568. hardcode_shlibpath_var=no
  9569. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9570. export_dynamic_flag_spec='$wl-E'
  9571. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9572. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9573. # default) and relocated if they conflict, which is a slow very memory
  9574. # consuming and fragmenting process. To avoid this, we pick a random,
  9575. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9576. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9577. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9578. 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'
  9579. ;;
  9580. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9581. tmp_diet=no
  9582. if test linux-dietlibc = "$host_os"; then
  9583. case $cc_basename in
  9584. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9585. esac
  9586. fi
  9587. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9588. && test no = "$tmp_diet"
  9589. then
  9590. tmp_addflag=' $pic_flag'
  9591. tmp_sharedflag='-shared'
  9592. case $cc_basename,$host_cpu in
  9593. pgcc*) # Portland Group C compiler
  9594. 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'
  9595. tmp_addflag=' $pic_flag'
  9596. ;;
  9597. pgf77* | pgf90* | pgf95* | pgfortran*)
  9598. # Portland Group f77 and f90 compilers
  9599. 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'
  9600. tmp_addflag=' $pic_flag -Mnomain' ;;
  9601. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9602. tmp_addflag=' -i_dynamic' ;;
  9603. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9604. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9605. ifc* | ifort*) # Intel Fortran compiler
  9606. tmp_addflag=' -nofor_main' ;;
  9607. lf95*) # Lahey Fortran 8.1
  9608. whole_archive_flag_spec=
  9609. tmp_sharedflag='--shared' ;;
  9610. nagfor*) # NAGFOR 5.3
  9611. tmp_sharedflag='-Wl,-shared' ;;
  9612. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9613. tmp_sharedflag='-qmkshrobj'
  9614. tmp_addflag= ;;
  9615. nvcc*) # Cuda Compiler Driver 2.2
  9616. 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'
  9617. compiler_needs_object=yes
  9618. ;;
  9619. esac
  9620. case `$CC -V 2>&1 | $SED 5q` in
  9621. *Sun\ C*) # Sun C 5.9
  9622. 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'
  9623. compiler_needs_object=yes
  9624. tmp_sharedflag='-G' ;;
  9625. *Sun\ F*) # Sun Fortran 8.3
  9626. tmp_sharedflag='-G' ;;
  9627. esac
  9628. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9629. if test yes = "$supports_anon_versioning"; then
  9630. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9631. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9632. echo "local: *; };" >> $output_objdir/$libname.ver~
  9633. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9634. fi
  9635. case $cc_basename in
  9636. tcc*)
  9637. export_dynamic_flag_spec='-rdynamic'
  9638. ;;
  9639. xlf* | bgf* | bgxlf* | mpixlf*)
  9640. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9641. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9642. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9643. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9644. if test yes = "$supports_anon_versioning"; then
  9645. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9646. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9647. echo "local: *; };" >> $output_objdir/$libname.ver~
  9648. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9649. fi
  9650. ;;
  9651. esac
  9652. else
  9653. ld_shlibs=no
  9654. fi
  9655. ;;
  9656. netbsd*)
  9657. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9658. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9659. wlarc=
  9660. else
  9661. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9662. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9663. fi
  9664. ;;
  9665. solaris*)
  9666. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9667. ld_shlibs=no
  9668. cat <<_LT_EOF 1>&2
  9669. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9670. *** create shared libraries on Solaris systems. Therefore, libtool
  9671. *** is disabling shared libraries support. We urge you to upgrade GNU
  9672. *** binutils to release 2.9.1 or newer. Another option is to modify
  9673. *** your PATH or compiler configuration so that the native linker is
  9674. *** used, and then restart.
  9675. _LT_EOF
  9676. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9677. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9678. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9679. else
  9680. ld_shlibs=no
  9681. fi
  9682. ;;
  9683. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9684. case `$LD -v 2>&1` in
  9685. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9686. ld_shlibs=no
  9687. cat <<_LT_EOF 1>&2
  9688. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9689. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9690. *** is disabling shared libraries support. We urge you to upgrade GNU
  9691. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9692. *** your PATH or compiler configuration so that the native linker is
  9693. *** used, and then restart.
  9694. _LT_EOF
  9695. ;;
  9696. *)
  9697. # For security reasons, it is highly recommended that you always
  9698. # use absolute paths for naming shared libraries, and exclude the
  9699. # DT_RUNPATH tag from executables and libraries. But doing so
  9700. # requires that you compile everything twice, which is a pain.
  9701. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9702. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9703. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9704. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9705. else
  9706. ld_shlibs=no
  9707. fi
  9708. ;;
  9709. esac
  9710. ;;
  9711. sunos4*)
  9712. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9713. wlarc=
  9714. hardcode_direct=yes
  9715. hardcode_shlibpath_var=no
  9716. ;;
  9717. *)
  9718. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9719. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9720. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9721. else
  9722. ld_shlibs=no
  9723. fi
  9724. ;;
  9725. esac
  9726. if test no = "$ld_shlibs"; then
  9727. runpath_var=
  9728. hardcode_libdir_flag_spec=
  9729. export_dynamic_flag_spec=
  9730. whole_archive_flag_spec=
  9731. fi
  9732. else
  9733. # PORTME fill in a description of your system's linker (not GNU ld)
  9734. case $host_os in
  9735. aix3*)
  9736. allow_undefined_flag=unsupported
  9737. always_export_symbols=yes
  9738. 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'
  9739. # Note: this linker hardcodes the directories in LIBPATH if there
  9740. # are no directories specified by -L.
  9741. hardcode_minus_L=yes
  9742. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9743. # Neither direct hardcoding nor static linking is supported with a
  9744. # broken collect2.
  9745. hardcode_direct=unsupported
  9746. fi
  9747. ;;
  9748. aix[4-9]*)
  9749. if test ia64 = "$host_cpu"; then
  9750. # On IA64, the linker does run time linking by default, so we don't
  9751. # have to do anything special.
  9752. aix_use_runtimelinking=no
  9753. exp_sym_flag='-Bexport'
  9754. no_entry_flag=
  9755. else
  9756. # If we're using GNU nm, then we don't want the "-C" option.
  9757. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9758. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9759. # weak defined symbols like other global defined symbols, whereas
  9760. # GNU nm marks them as "W".
  9761. # While the 'weak' keyword is ignored in the Export File, we need
  9762. # it in the Import File for the 'aix-soname' feature, so we have
  9763. # to replace the "-B" option with "-P" for AIX nm.
  9764. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9765. 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'
  9766. else
  9767. 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'
  9768. fi
  9769. aix_use_runtimelinking=no
  9770. # Test if we are trying to use run time linking or normal
  9771. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9772. # have runtime linking enabled, and use it for executables.
  9773. # For shared libraries, we enable/disable runtime linking
  9774. # depending on the kind of the shared library created -
  9775. # when "with_aix_soname,aix_use_runtimelinking" is:
  9776. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9777. # "aix,yes" lib.so shared, rtl:yes, for executables
  9778. # lib.a static archive
  9779. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9780. # lib.a(lib.so.V) shared, rtl:no, for executables
  9781. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9782. # lib.a(lib.so.V) shared, rtl:no
  9783. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9784. # lib.a static archive
  9785. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9786. for ld_flag in $LDFLAGS; do
  9787. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9788. aix_use_runtimelinking=yes
  9789. break
  9790. fi
  9791. done
  9792. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9793. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9794. # so we don't have lib.a shared libs to link our executables.
  9795. # We have to force runtime linking in this case.
  9796. aix_use_runtimelinking=yes
  9797. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9798. fi
  9799. ;;
  9800. esac
  9801. exp_sym_flag='-bexport'
  9802. no_entry_flag='-bnoentry'
  9803. fi
  9804. # When large executables or shared objects are built, AIX ld can
  9805. # have problems creating the table of contents. If linking a library
  9806. # or program results in "error TOC overflow" add -mminimal-toc to
  9807. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9808. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9809. archive_cmds=''
  9810. hardcode_direct=yes
  9811. hardcode_direct_absolute=yes
  9812. hardcode_libdir_separator=':'
  9813. link_all_deplibs=yes
  9814. file_list_spec='$wl-f,'
  9815. case $with_aix_soname,$aix_use_runtimelinking in
  9816. aix,*) ;; # traditional, no import file
  9817. svr4,* | *,yes) # use import file
  9818. # The Import File defines what to hardcode.
  9819. hardcode_direct=no
  9820. hardcode_direct_absolute=no
  9821. ;;
  9822. esac
  9823. if test yes = "$GCC"; then
  9824. case $host_os in aix4.[012]|aix4.[012].*)
  9825. # We only want to do this on AIX 4.2 and lower, the check
  9826. # below for broken collect2 doesn't work under 4.3+
  9827. collect2name=`$CC -print-prog-name=collect2`
  9828. if test -f "$collect2name" &&
  9829. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9830. then
  9831. # We have reworked collect2
  9832. :
  9833. else
  9834. # We have old collect2
  9835. hardcode_direct=unsupported
  9836. # It fails to find uninstalled libraries when the uninstalled
  9837. # path is not listed in the libpath. Setting hardcode_minus_L
  9838. # to unsupported forces relinking
  9839. hardcode_minus_L=yes
  9840. hardcode_libdir_flag_spec='-L$libdir'
  9841. hardcode_libdir_separator=
  9842. fi
  9843. ;;
  9844. esac
  9845. shared_flag='-shared'
  9846. if test yes = "$aix_use_runtimelinking"; then
  9847. shared_flag="$shared_flag "'$wl-G'
  9848. fi
  9849. # Need to ensure runtime linking is disabled for the traditional
  9850. # shared library, or the linker may eventually find shared libraries
  9851. # /with/ Import File - we do not want to mix them.
  9852. shared_flag_aix='-shared'
  9853. shared_flag_svr4='-shared $wl-G'
  9854. else
  9855. # not using gcc
  9856. if test ia64 = "$host_cpu"; then
  9857. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9858. # chokes on -Wl,-G. The following line is correct:
  9859. shared_flag='-G'
  9860. else
  9861. if test yes = "$aix_use_runtimelinking"; then
  9862. shared_flag='$wl-G'
  9863. else
  9864. shared_flag='$wl-bM:SRE'
  9865. fi
  9866. shared_flag_aix='$wl-bM:SRE'
  9867. shared_flag_svr4='$wl-G'
  9868. fi
  9869. fi
  9870. export_dynamic_flag_spec='$wl-bexpall'
  9871. # It seems that -bexpall does not export symbols beginning with
  9872. # underscore (_), so it is better to generate a list of symbols to export.
  9873. always_export_symbols=yes
  9874. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9875. # Warning - without using the other runtime loading flags (-brtl),
  9876. # -berok will link without error, but may produce a broken library.
  9877. allow_undefined_flag='-berok'
  9878. # Determine the default libpath from the value encoded in an
  9879. # empty executable.
  9880. if test set = "${lt_cv_aix_libpath+set}"; then
  9881. aix_libpath=$lt_cv_aix_libpath
  9882. else
  9883. if test ${lt_cv_aix_libpath_+y}
  9884. then :
  9885. printf %s "(cached) " >&6
  9886. else $as_nop
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. int
  9890. main (void)
  9891. {
  9892. ;
  9893. return 0;
  9894. }
  9895. _ACEOF
  9896. if ac_fn_c_try_link "$LINENO"
  9897. then :
  9898. lt_aix_libpath_sed='
  9899. /Import File Strings/,/^$/ {
  9900. /^0/ {
  9901. s/^0 *\([^ ]*\) *$/\1/
  9902. p
  9903. }
  9904. }'
  9905. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9906. # Check for a 64-bit object if we didn't find anything.
  9907. if test -z "$lt_cv_aix_libpath_"; then
  9908. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9909. fi
  9910. fi
  9911. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9912. conftest$ac_exeext conftest.$ac_ext
  9913. if test -z "$lt_cv_aix_libpath_"; then
  9914. lt_cv_aix_libpath_=/usr/lib:/lib
  9915. fi
  9916. fi
  9917. aix_libpath=$lt_cv_aix_libpath_
  9918. fi
  9919. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9920. 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
  9921. else
  9922. if test ia64 = "$host_cpu"; then
  9923. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9924. allow_undefined_flag="-z nodefs"
  9925. 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"
  9926. else
  9927. # Determine the default libpath from the value encoded in an
  9928. # empty executable.
  9929. if test set = "${lt_cv_aix_libpath+set}"; then
  9930. aix_libpath=$lt_cv_aix_libpath
  9931. else
  9932. if test ${lt_cv_aix_libpath_+y}
  9933. then :
  9934. printf %s "(cached) " >&6
  9935. else $as_nop
  9936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9937. /* end confdefs.h. */
  9938. int
  9939. main (void)
  9940. {
  9941. ;
  9942. return 0;
  9943. }
  9944. _ACEOF
  9945. if ac_fn_c_try_link "$LINENO"
  9946. then :
  9947. lt_aix_libpath_sed='
  9948. /Import File Strings/,/^$/ {
  9949. /^0/ {
  9950. s/^0 *\([^ ]*\) *$/\1/
  9951. p
  9952. }
  9953. }'
  9954. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9955. # Check for a 64-bit object if we didn't find anything.
  9956. if test -z "$lt_cv_aix_libpath_"; then
  9957. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9958. fi
  9959. fi
  9960. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9961. conftest$ac_exeext conftest.$ac_ext
  9962. if test -z "$lt_cv_aix_libpath_"; then
  9963. lt_cv_aix_libpath_=/usr/lib:/lib
  9964. fi
  9965. fi
  9966. aix_libpath=$lt_cv_aix_libpath_
  9967. fi
  9968. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9969. # Warning - without using the other run time loading flags,
  9970. # -berok will link without error, but may produce a broken library.
  9971. no_undefined_flag=' $wl-bernotok'
  9972. allow_undefined_flag=' $wl-berok'
  9973. if test yes = "$with_gnu_ld"; then
  9974. # We only use this code for GNU lds that support --whole-archive.
  9975. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9976. else
  9977. # Exported symbols can be pulled into shared objects from archives
  9978. whole_archive_flag_spec='$convenience'
  9979. fi
  9980. archive_cmds_need_lc=yes
  9981. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9982. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9983. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9984. if test svr4 != "$with_aix_soname"; then
  9985. # This is similar to how AIX traditionally builds its shared libraries.
  9986. 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'
  9987. fi
  9988. if test aix != "$with_aix_soname"; then
  9989. 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'
  9990. else
  9991. # used by -dlpreopen to get the symbols
  9992. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9993. fi
  9994. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9995. fi
  9996. fi
  9997. ;;
  9998. amigaos*)
  9999. case $host_cpu in
  10000. powerpc)
  10001. # see comment about AmigaOS4 .so support
  10002. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10003. archive_expsym_cmds=''
  10004. ;;
  10005. m68k)
  10006. 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)'
  10007. hardcode_libdir_flag_spec='-L$libdir'
  10008. hardcode_minus_L=yes
  10009. ;;
  10010. esac
  10011. ;;
  10012. bsdi[45]*)
  10013. export_dynamic_flag_spec=-rdynamic
  10014. ;;
  10015. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10016. # When not using gcc, we currently assume that we are using
  10017. # Microsoft Visual C++ or Intel C++ Compiler.
  10018. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10019. # no search path for DLLs.
  10020. case $cc_basename in
  10021. cl* | icl*)
  10022. # Native MSVC or ICC
  10023. hardcode_libdir_flag_spec=' '
  10024. allow_undefined_flag=unsupported
  10025. always_export_symbols=yes
  10026. file_list_spec='@'
  10027. # Tell ltmain to make .lib files, not .a files.
  10028. libext=lib
  10029. # Tell ltmain to make .dll files, not .so files.
  10030. shrext_cmds=.dll
  10031. # FIXME: Setting linknames here is a bad hack.
  10032. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10033. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10034. cp "$export_symbols" "$output_objdir/$soname.def";
  10035. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10036. else
  10037. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10038. fi~
  10039. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10040. linknames='
  10041. # The linker will not automatically build a static lib if we build a DLL.
  10042. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10043. enable_shared_with_static_runtimes=yes
  10044. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10045. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10046. # Don't use ranlib
  10047. old_postinstall_cmds='chmod 644 $oldlib'
  10048. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10049. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10050. case $lt_outputfile in
  10051. *.exe|*.EXE) ;;
  10052. *)
  10053. lt_outputfile=$lt_outputfile.exe
  10054. lt_tool_outputfile=$lt_tool_outputfile.exe
  10055. ;;
  10056. esac~
  10057. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10058. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10059. $RM "$lt_outputfile.manifest";
  10060. fi'
  10061. ;;
  10062. *)
  10063. # Assume MSVC and ICC wrapper
  10064. hardcode_libdir_flag_spec=' '
  10065. allow_undefined_flag=unsupported
  10066. # Tell ltmain to make .lib files, not .a files.
  10067. libext=lib
  10068. # Tell ltmain to make .dll files, not .so files.
  10069. shrext_cmds=.dll
  10070. # FIXME: Setting linknames here is a bad hack.
  10071. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10072. # The linker will automatically build a .lib file if we build a DLL.
  10073. old_archive_from_new_cmds='true'
  10074. # FIXME: Should let the user specify the lib program.
  10075. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10076. enable_shared_with_static_runtimes=yes
  10077. ;;
  10078. esac
  10079. ;;
  10080. darwin* | rhapsody*)
  10081. archive_cmds_need_lc=no
  10082. hardcode_direct=no
  10083. hardcode_automatic=yes
  10084. hardcode_shlibpath_var=unsupported
  10085. if test yes = "$lt_cv_ld_force_load"; then
  10086. 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\"`'
  10087. else
  10088. whole_archive_flag_spec=''
  10089. fi
  10090. link_all_deplibs=yes
  10091. allow_undefined_flag=$_lt_dar_allow_undefined
  10092. case $cc_basename in
  10093. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10094. *) _lt_dar_can_shared=$GCC ;;
  10095. esac
  10096. if test yes = "$_lt_dar_can_shared"; then
  10097. output_verbose_link_cmd=func_echo_all
  10098. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10099. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10100. 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"
  10101. 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"
  10102. else
  10103. ld_shlibs=no
  10104. fi
  10105. ;;
  10106. dgux*)
  10107. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10108. hardcode_libdir_flag_spec='-L$libdir'
  10109. hardcode_shlibpath_var=no
  10110. ;;
  10111. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10112. # support. Future versions do this automatically, but an explicit c++rt0.o
  10113. # does not break anything, and helps significantly (at the cost of a little
  10114. # extra space).
  10115. freebsd2.2*)
  10116. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10117. hardcode_libdir_flag_spec='-R$libdir'
  10118. hardcode_direct=yes
  10119. hardcode_shlibpath_var=no
  10120. ;;
  10121. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10122. freebsd2.*)
  10123. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10124. hardcode_direct=yes
  10125. hardcode_minus_L=yes
  10126. hardcode_shlibpath_var=no
  10127. ;;
  10128. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10129. freebsd* | dragonfly* | midnightbsd*)
  10130. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10131. hardcode_libdir_flag_spec='-R$libdir'
  10132. hardcode_direct=yes
  10133. hardcode_shlibpath_var=no
  10134. ;;
  10135. hpux9*)
  10136. if test yes = "$GCC"; then
  10137. 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'
  10138. else
  10139. 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'
  10140. fi
  10141. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10142. hardcode_libdir_separator=:
  10143. hardcode_direct=yes
  10144. # hardcode_minus_L: Not really in the search PATH,
  10145. # but as the default location of the library.
  10146. hardcode_minus_L=yes
  10147. export_dynamic_flag_spec='$wl-E'
  10148. ;;
  10149. hpux10*)
  10150. if test yes,no = "$GCC,$with_gnu_ld"; then
  10151. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10152. else
  10153. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10154. fi
  10155. if test no = "$with_gnu_ld"; then
  10156. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10157. hardcode_libdir_separator=:
  10158. hardcode_direct=yes
  10159. hardcode_direct_absolute=yes
  10160. export_dynamic_flag_spec='$wl-E'
  10161. # hardcode_minus_L: Not really in the search PATH,
  10162. # but as the default location of the library.
  10163. hardcode_minus_L=yes
  10164. fi
  10165. ;;
  10166. hpux11*)
  10167. if test yes,no = "$GCC,$with_gnu_ld"; then
  10168. case $host_cpu in
  10169. hppa*64*)
  10170. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10171. ;;
  10172. ia64*)
  10173. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10174. ;;
  10175. *)
  10176. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10177. ;;
  10178. esac
  10179. else
  10180. case $host_cpu in
  10181. hppa*64*)
  10182. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10183. ;;
  10184. ia64*)
  10185. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10186. ;;
  10187. *)
  10188. # Older versions of the 11.00 compiler do not understand -b yet
  10189. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10191. printf %s "checking if $CC understands -b... " >&6; }
  10192. if test ${lt_cv_prog_compiler__b+y}
  10193. then :
  10194. printf %s "(cached) " >&6
  10195. else $as_nop
  10196. lt_cv_prog_compiler__b=no
  10197. save_LDFLAGS=$LDFLAGS
  10198. LDFLAGS="$LDFLAGS -b"
  10199. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10200. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10201. # The linker can only warn and ignore the option if not recognized
  10202. # So say no if there are warnings
  10203. if test -s conftest.err; then
  10204. # Append any errors to the config.log.
  10205. cat conftest.err 1>&5
  10206. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10207. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10208. if diff conftest.exp conftest.er2 >/dev/null; then
  10209. lt_cv_prog_compiler__b=yes
  10210. fi
  10211. else
  10212. lt_cv_prog_compiler__b=yes
  10213. fi
  10214. fi
  10215. $RM -r conftest*
  10216. LDFLAGS=$save_LDFLAGS
  10217. fi
  10218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10219. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10220. if test yes = "$lt_cv_prog_compiler__b"; then
  10221. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10222. else
  10223. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10224. fi
  10225. ;;
  10226. esac
  10227. fi
  10228. if test no = "$with_gnu_ld"; then
  10229. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10230. hardcode_libdir_separator=:
  10231. case $host_cpu in
  10232. hppa*64*|ia64*)
  10233. hardcode_direct=no
  10234. hardcode_shlibpath_var=no
  10235. ;;
  10236. *)
  10237. hardcode_direct=yes
  10238. hardcode_direct_absolute=yes
  10239. export_dynamic_flag_spec='$wl-E'
  10240. # hardcode_minus_L: Not really in the search PATH,
  10241. # but as the default location of the library.
  10242. hardcode_minus_L=yes
  10243. ;;
  10244. esac
  10245. fi
  10246. ;;
  10247. irix5* | irix6* | nonstopux*)
  10248. if test yes = "$GCC"; then
  10249. 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'
  10250. # Try to use the -exported_symbol ld option, if it does not
  10251. # work, assume that -exports_file does not work either and
  10252. # implicitly export all symbols.
  10253. # This should be the same for all languages, so no per-tag cache variable.
  10254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10255. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10256. if test ${lt_cv_irix_exported_symbol+y}
  10257. then :
  10258. printf %s "(cached) " >&6
  10259. else $as_nop
  10260. save_LDFLAGS=$LDFLAGS
  10261. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10263. /* end confdefs.h. */
  10264. int foo (void) { return 0; }
  10265. _ACEOF
  10266. if ac_fn_c_try_link "$LINENO"
  10267. then :
  10268. lt_cv_irix_exported_symbol=yes
  10269. else $as_nop
  10270. lt_cv_irix_exported_symbol=no
  10271. fi
  10272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10273. conftest$ac_exeext conftest.$ac_ext
  10274. LDFLAGS=$save_LDFLAGS
  10275. fi
  10276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10277. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10278. if test yes = "$lt_cv_irix_exported_symbol"; then
  10279. 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'
  10280. fi
  10281. else
  10282. 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'
  10283. 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'
  10284. fi
  10285. archive_cmds_need_lc='no'
  10286. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10287. hardcode_libdir_separator=:
  10288. inherit_rpath=yes
  10289. link_all_deplibs=yes
  10290. ;;
  10291. linux*)
  10292. case $cc_basename in
  10293. tcc*)
  10294. # Fabrice Bellard et al's Tiny C Compiler
  10295. ld_shlibs=yes
  10296. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10297. ;;
  10298. esac
  10299. ;;
  10300. netbsd*)
  10301. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10302. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10303. else
  10304. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10305. fi
  10306. hardcode_libdir_flag_spec='-R$libdir'
  10307. hardcode_direct=yes
  10308. hardcode_shlibpath_var=no
  10309. ;;
  10310. newsos6)
  10311. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10312. hardcode_direct=yes
  10313. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10314. hardcode_libdir_separator=:
  10315. hardcode_shlibpath_var=no
  10316. ;;
  10317. *nto* | *qnx*)
  10318. ;;
  10319. openbsd*)
  10320. if test -f /usr/libexec/ld.so; then
  10321. hardcode_direct=yes
  10322. hardcode_shlibpath_var=no
  10323. hardcode_direct_absolute=yes
  10324. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10325. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10326. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10327. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10328. export_dynamic_flag_spec='$wl-E'
  10329. else
  10330. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10331. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10332. fi
  10333. else
  10334. ld_shlibs=no
  10335. fi
  10336. ;;
  10337. os2*)
  10338. hardcode_libdir_flag_spec='-L$libdir'
  10339. hardcode_minus_L=yes
  10340. allow_undefined_flag=unsupported
  10341. shrext_cmds=.dll
  10342. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10343. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10344. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10345. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10346. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10347. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10348. emximp -o $lib $output_objdir/$libname.def'
  10349. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10350. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10351. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10352. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10353. prefix_cmds="$SED"~
  10354. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10355. prefix_cmds="$prefix_cmds -e 1d";
  10356. fi~
  10357. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10358. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10359. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10360. emximp -o $lib $output_objdir/$libname.def'
  10361. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10362. enable_shared_with_static_runtimes=yes
  10363. file_list_spec='@'
  10364. ;;
  10365. osf3*)
  10366. if test yes = "$GCC"; then
  10367. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10368. 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'
  10369. else
  10370. allow_undefined_flag=' -expect_unresolved \*'
  10371. 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'
  10372. fi
  10373. archive_cmds_need_lc='no'
  10374. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10375. hardcode_libdir_separator=:
  10376. ;;
  10377. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10378. if test yes = "$GCC"; then
  10379. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10380. 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'
  10381. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10382. else
  10383. allow_undefined_flag=' -expect_unresolved \*'
  10384. 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'
  10385. 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~
  10386. $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'
  10387. # Both c and cxx compiler support -rpath directly
  10388. hardcode_libdir_flag_spec='-rpath $libdir'
  10389. fi
  10390. archive_cmds_need_lc='no'
  10391. hardcode_libdir_separator=:
  10392. ;;
  10393. solaris*)
  10394. no_undefined_flag=' -z defs'
  10395. if test yes = "$GCC"; then
  10396. wlarc='$wl'
  10397. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10398. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10399. $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'
  10400. else
  10401. case `$CC -V 2>&1` in
  10402. *"Compilers 5.0"*)
  10403. wlarc=''
  10404. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10405. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10406. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10407. ;;
  10408. *)
  10409. wlarc='$wl'
  10410. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10411. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10412. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10413. ;;
  10414. esac
  10415. fi
  10416. hardcode_libdir_flag_spec='-R$libdir'
  10417. hardcode_shlibpath_var=no
  10418. case $host_os in
  10419. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10420. *)
  10421. # The compiler driver will combine and reorder linker options,
  10422. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10423. # but is careful enough not to reorder.
  10424. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10425. if test yes = "$GCC"; then
  10426. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10427. else
  10428. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10429. fi
  10430. ;;
  10431. esac
  10432. link_all_deplibs=yes
  10433. ;;
  10434. sunos4*)
  10435. if test sequent = "$host_vendor"; then
  10436. # Use $CC to link under sequent, because it throws in some extra .o
  10437. # files that make .init and .fini sections work.
  10438. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10439. else
  10440. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10441. fi
  10442. hardcode_libdir_flag_spec='-L$libdir'
  10443. hardcode_direct=yes
  10444. hardcode_minus_L=yes
  10445. hardcode_shlibpath_var=no
  10446. ;;
  10447. sysv4)
  10448. case $host_vendor in
  10449. sni)
  10450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10451. hardcode_direct=yes # is this really true???
  10452. ;;
  10453. siemens)
  10454. ## LD is ld it makes a PLAMLIB
  10455. ## CC just makes a GrossModule.
  10456. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10457. reload_cmds='$CC -r -o $output$reload_objs'
  10458. hardcode_direct=no
  10459. ;;
  10460. motorola)
  10461. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10462. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10463. ;;
  10464. esac
  10465. runpath_var='LD_RUN_PATH'
  10466. hardcode_shlibpath_var=no
  10467. ;;
  10468. sysv4.3*)
  10469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10470. hardcode_shlibpath_var=no
  10471. export_dynamic_flag_spec='-Bexport'
  10472. ;;
  10473. sysv4*MP*)
  10474. if test -d /usr/nec; then
  10475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10476. hardcode_shlibpath_var=no
  10477. runpath_var=LD_RUN_PATH
  10478. hardcode_runpath_var=yes
  10479. ld_shlibs=yes
  10480. fi
  10481. ;;
  10482. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10483. no_undefined_flag='$wl-z,text'
  10484. archive_cmds_need_lc=no
  10485. hardcode_shlibpath_var=no
  10486. runpath_var='LD_RUN_PATH'
  10487. if test yes = "$GCC"; then
  10488. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10489. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10490. else
  10491. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10492. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10493. fi
  10494. ;;
  10495. sysv5* | sco3.2v5* | sco5v6*)
  10496. # Note: We CANNOT use -z defs as we might desire, because we do not
  10497. # link with -lc, and that would cause any symbols used from libc to
  10498. # always be unresolved, which means just about no library would
  10499. # ever link correctly. If we're not using GNU ld we use -z text
  10500. # though, which does catch some bad symbols but isn't as heavy-handed
  10501. # as -z defs.
  10502. no_undefined_flag='$wl-z,text'
  10503. allow_undefined_flag='$wl-z,nodefs'
  10504. archive_cmds_need_lc=no
  10505. hardcode_shlibpath_var=no
  10506. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10507. hardcode_libdir_separator=':'
  10508. link_all_deplibs=yes
  10509. export_dynamic_flag_spec='$wl-Bexport'
  10510. runpath_var='LD_RUN_PATH'
  10511. if test yes = "$GCC"; then
  10512. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10513. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10514. else
  10515. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10516. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10517. fi
  10518. ;;
  10519. uts4*)
  10520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10521. hardcode_libdir_flag_spec='-L$libdir'
  10522. hardcode_shlibpath_var=no
  10523. ;;
  10524. *)
  10525. ld_shlibs=no
  10526. ;;
  10527. esac
  10528. if test sni = "$host_vendor"; then
  10529. case $host in
  10530. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10531. export_dynamic_flag_spec='$wl-Blargedynsym'
  10532. ;;
  10533. esac
  10534. fi
  10535. fi
  10536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10537. printf "%s\n" "$ld_shlibs" >&6; }
  10538. test no = "$ld_shlibs" && can_build_shared=no
  10539. with_gnu_ld=$with_gnu_ld
  10540. #
  10541. # Do we need to explicitly link libc?
  10542. #
  10543. case "x$archive_cmds_need_lc" in
  10544. x|xyes)
  10545. # Assume -lc should be added
  10546. archive_cmds_need_lc=yes
  10547. if test yes,yes = "$GCC,$enable_shared"; then
  10548. case $archive_cmds in
  10549. *'~'*)
  10550. # FIXME: we may have to deal with multi-command sequences.
  10551. ;;
  10552. '$CC '*)
  10553. # Test whether the compiler implicitly links with -lc since on some
  10554. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10555. # to ld, don't add -lc before -lgcc.
  10556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10557. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10558. if test ${lt_cv_archive_cmds_need_lc+y}
  10559. then :
  10560. printf %s "(cached) " >&6
  10561. else $as_nop
  10562. $RM conftest*
  10563. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10564. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10565. (eval $ac_compile) 2>&5
  10566. ac_status=$?
  10567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10568. test $ac_status = 0; } 2>conftest.err; then
  10569. soname=conftest
  10570. lib=conftest
  10571. libobjs=conftest.$ac_objext
  10572. deplibs=
  10573. wl=$lt_prog_compiler_wl
  10574. pic_flag=$lt_prog_compiler_pic
  10575. compiler_flags=-v
  10576. linker_flags=-v
  10577. verstring=
  10578. output_objdir=.
  10579. libname=conftest
  10580. lt_save_allow_undefined_flag=$allow_undefined_flag
  10581. allow_undefined_flag=
  10582. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10583. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10584. ac_status=$?
  10585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10586. test $ac_status = 0; }
  10587. then
  10588. lt_cv_archive_cmds_need_lc=no
  10589. else
  10590. lt_cv_archive_cmds_need_lc=yes
  10591. fi
  10592. allow_undefined_flag=$lt_save_allow_undefined_flag
  10593. else
  10594. cat conftest.err 1>&5
  10595. fi
  10596. $RM conftest*
  10597. fi
  10598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10599. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10600. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10601. ;;
  10602. esac
  10603. fi
  10604. ;;
  10605. esac
  10606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10607. printf %s "checking dynamic linker characteristics... " >&6; }
  10608. if test yes = "$GCC"; then
  10609. case $host_os in
  10610. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10611. *) lt_awk_arg='/^libraries:/' ;;
  10612. esac
  10613. case $host_os in
  10614. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10615. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10616. esac
  10617. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10618. case $lt_search_path_spec in
  10619. *\;*)
  10620. # if the path contains ";" then we assume it to be the separator
  10621. # otherwise default to the standard path separator (i.e. ":") - it is
  10622. # assumed that no part of a normal pathname contains ";" but that should
  10623. # okay in the real world where ";" in dirpaths is itself problematic.
  10624. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10625. ;;
  10626. *)
  10627. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10628. ;;
  10629. esac
  10630. # Ok, now we have the path, separated by spaces, we can step through it
  10631. # and add multilib dir if necessary...
  10632. lt_tmp_lt_search_path_spec=
  10633. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10634. # ...but if some path component already ends with the multilib dir we assume
  10635. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10636. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10637. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10638. lt_multi_os_dir=
  10639. ;;
  10640. esac
  10641. for lt_sys_path in $lt_search_path_spec; do
  10642. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10643. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10644. elif test -n "$lt_multi_os_dir"; then
  10645. test -d "$lt_sys_path" && \
  10646. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10647. fi
  10648. done
  10649. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10650. BEGIN {RS = " "; FS = "/|\n";} {
  10651. lt_foo = "";
  10652. lt_count = 0;
  10653. for (lt_i = NF; lt_i > 0; lt_i--) {
  10654. if ($lt_i != "" && $lt_i != ".") {
  10655. if ($lt_i == "..") {
  10656. lt_count++;
  10657. } else {
  10658. if (lt_count == 0) {
  10659. lt_foo = "/" $lt_i lt_foo;
  10660. } else {
  10661. lt_count--;
  10662. }
  10663. }
  10664. }
  10665. }
  10666. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10667. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10668. }'`
  10669. # AWK program above erroneously prepends '/' to C:/dos/paths
  10670. # for these hosts.
  10671. case $host_os in
  10672. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10673. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10674. esac
  10675. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10676. else
  10677. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10678. fi
  10679. library_names_spec=
  10680. libname_spec='lib$name'
  10681. soname_spec=
  10682. shrext_cmds=.so
  10683. postinstall_cmds=
  10684. postuninstall_cmds=
  10685. finish_cmds=
  10686. finish_eval=
  10687. shlibpath_var=
  10688. shlibpath_overrides_runpath=unknown
  10689. version_type=none
  10690. dynamic_linker="$host_os ld.so"
  10691. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10692. need_lib_prefix=unknown
  10693. hardcode_into_libs=no
  10694. # when you set need_version to no, make sure it does not cause -set_version
  10695. # flags to be left without arguments
  10696. need_version=unknown
  10697. case $host_os in
  10698. aix3*)
  10699. version_type=linux # correct to gnu/linux during the next big refactor
  10700. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10701. shlibpath_var=LIBPATH
  10702. # AIX 3 has no versioning support, so we append a major version to the name.
  10703. soname_spec='$libname$release$shared_ext$major'
  10704. ;;
  10705. aix[4-9]*)
  10706. version_type=linux # correct to gnu/linux during the next big refactor
  10707. need_lib_prefix=no
  10708. need_version=no
  10709. hardcode_into_libs=yes
  10710. if test ia64 = "$host_cpu"; then
  10711. # AIX 5 supports IA64
  10712. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10713. shlibpath_var=LD_LIBRARY_PATH
  10714. else
  10715. # With GCC up to 2.95.x, collect2 would create an import file
  10716. # for dependence libraries. The import file would start with
  10717. # the line '#! .'. This would cause the generated library to
  10718. # depend on '.', always an invalid library. This was fixed in
  10719. # development snapshots of GCC prior to 3.0.
  10720. case $host_os in
  10721. aix4 | aix4.[01] | aix4.[01].*)
  10722. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10723. echo ' yes '
  10724. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10725. :
  10726. else
  10727. can_build_shared=no
  10728. fi
  10729. ;;
  10730. esac
  10731. # Using Import Files as archive members, it is possible to support
  10732. # filename-based versioning of shared library archives on AIX. While
  10733. # this would work for both with and without runtime linking, it will
  10734. # prevent static linking of such archives. So we do filename-based
  10735. # shared library versioning with .so extension only, which is used
  10736. # when both runtime linking and shared linking is enabled.
  10737. # Unfortunately, runtime linking may impact performance, so we do
  10738. # not want this to be the default eventually. Also, we use the
  10739. # versioned .so libs for executables only if there is the -brtl
  10740. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  10741. # To allow for filename-based versioning support, we need to create
  10742. # libNAME.so.V as an archive file, containing:
  10743. # *) an Import File, referring to the versioned filename of the
  10744. # archive as well as the shared archive member, telling the
  10745. # bitwidth (32 or 64) of that shared object, and providing the
  10746. # list of exported symbols of that shared object, eventually
  10747. # decorated with the 'weak' keyword
  10748. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10749. # it being seen by the linker.
  10750. # At run time we better use the real file rather than another symlink,
  10751. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10752. case $with_aix_soname,$aix_use_runtimelinking in
  10753. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10754. # soname into executable. Probably we can add versioning support to
  10755. # collect2, so additional links can be useful in future.
  10756. aix,yes) # traditional libtool
  10757. dynamic_linker='AIX unversionable lib.so'
  10758. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10759. # instead of lib<name>.a to let people know that these are not
  10760. # typical AIX shared libraries.
  10761. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10762. ;;
  10763. aix,no) # traditional AIX only
  10764. dynamic_linker='AIX lib.a(lib.so.V)'
  10765. # We preserve .a as extension for shared libraries through AIX4.2
  10766. # and later when we are not doing run time linking.
  10767. library_names_spec='$libname$release.a $libname.a'
  10768. soname_spec='$libname$release$shared_ext$major'
  10769. ;;
  10770. svr4,*) # full svr4 only
  10771. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10772. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10773. # We do not specify a path in Import Files, so LIBPATH fires.
  10774. shlibpath_overrides_runpath=yes
  10775. ;;
  10776. *,yes) # both, prefer svr4
  10777. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10778. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10779. # unpreferred sharedlib libNAME.a needs extra handling
  10780. 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"'
  10781. 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"'
  10782. # We do not specify a path in Import Files, so LIBPATH fires.
  10783. shlibpath_overrides_runpath=yes
  10784. ;;
  10785. *,no) # both, prefer aix
  10786. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10787. library_names_spec='$libname$release.a $libname.a'
  10788. soname_spec='$libname$release$shared_ext$major'
  10789. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10790. 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)'
  10791. 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"'
  10792. ;;
  10793. esac
  10794. shlibpath_var=LIBPATH
  10795. fi
  10796. ;;
  10797. amigaos*)
  10798. case $host_cpu in
  10799. powerpc)
  10800. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10801. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10803. ;;
  10804. m68k)
  10805. library_names_spec='$libname.ixlibrary $libname.a'
  10806. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10807. 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'
  10808. ;;
  10809. esac
  10810. ;;
  10811. beos*)
  10812. library_names_spec='$libname$shared_ext'
  10813. dynamic_linker="$host_os ld.so"
  10814. shlibpath_var=LIBRARY_PATH
  10815. ;;
  10816. bsdi[45]*)
  10817. version_type=linux # correct to gnu/linux during the next big refactor
  10818. need_version=no
  10819. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10820. soname_spec='$libname$release$shared_ext$major'
  10821. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10822. shlibpath_var=LD_LIBRARY_PATH
  10823. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10824. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10825. # the default ld.so.conf also contains /usr/contrib/lib and
  10826. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10827. # libtool to hard-code these into programs
  10828. ;;
  10829. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10830. version_type=windows
  10831. shrext_cmds=.dll
  10832. need_version=no
  10833. need_lib_prefix=no
  10834. case $GCC,$cc_basename in
  10835. yes,*)
  10836. # gcc
  10837. library_names_spec='$libname.dll.a'
  10838. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10839. # If user builds GCC with mulitlibs enabled,
  10840. # it should just install on $(libdir)
  10841. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  10842. if test yes = $multilib; then
  10843. postinstall_cmds='base_file=`basename \$file`~
  10844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10845. dldir=$destdir/`dirname \$dlpath`~
  10846. $install_prog $dir/$dlname $destdir/$dlname~
  10847. chmod a+x $destdir/$dlname~
  10848. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10849. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  10850. fi'
  10851. else
  10852. postinstall_cmds='base_file=`basename \$file`~
  10853. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10854. dldir=$destdir/`dirname \$dlpath`~
  10855. test -d \$dldir || mkdir -p \$dldir~
  10856. $install_prog $dir/$dlname \$dldir/$dlname~
  10857. chmod a+x \$dldir/$dlname~
  10858. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10859. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10860. fi'
  10861. fi
  10862. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10863. dlpath=$dir/\$dldll~
  10864. $RM \$dlpath'
  10865. shlibpath_overrides_runpath=yes
  10866. case $host_os in
  10867. cygwin*)
  10868. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10869. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10870. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10871. ;;
  10872. mingw* | windows* | cegcc*)
  10873. # MinGW DLLs use traditional 'lib' prefix
  10874. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10875. ;;
  10876. pw32*)
  10877. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10878. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10879. ;;
  10880. esac
  10881. dynamic_linker='Win32 ld.exe'
  10882. ;;
  10883. *,cl* | *,icl*)
  10884. # Native MSVC or ICC
  10885. libname_spec='$name'
  10886. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10887. library_names_spec='$libname.dll.lib'
  10888. case $build_os in
  10889. mingw* | windows*)
  10890. sys_lib_search_path_spec=
  10891. lt_save_ifs=$IFS
  10892. IFS=';'
  10893. for lt_path in $LIB
  10894. do
  10895. IFS=$lt_save_ifs
  10896. # Let DOS variable expansion print the short 8.3 style file name.
  10897. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10898. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10899. done
  10900. IFS=$lt_save_ifs
  10901. # Convert to MSYS style.
  10902. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10903. ;;
  10904. cygwin*)
  10905. # Convert to unix form, then to dos form, then back to unix form
  10906. # but this time dos style (no spaces!) so that the unix form looks
  10907. # like /cygdrive/c/PROGRA~1:/cygdr...
  10908. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10909. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10910. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10911. ;;
  10912. *)
  10913. sys_lib_search_path_spec=$LIB
  10914. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10915. # It is most probably a Windows format PATH.
  10916. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10917. else
  10918. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10919. fi
  10920. # FIXME: find the short name or the path components, as spaces are
  10921. # common. (e.g. "Program Files" -> "PROGRA~1")
  10922. ;;
  10923. esac
  10924. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10925. postinstall_cmds='base_file=`basename \$file`~
  10926. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10927. dldir=$destdir/`dirname \$dlpath`~
  10928. test -d \$dldir || mkdir -p \$dldir~
  10929. $install_prog $dir/$dlname \$dldir/$dlname'
  10930. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10931. dlpath=$dir/\$dldll~
  10932. $RM \$dlpath'
  10933. shlibpath_overrides_runpath=yes
  10934. dynamic_linker='Win32 link.exe'
  10935. ;;
  10936. *)
  10937. # Assume MSVC and ICC wrapper
  10938. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10939. dynamic_linker='Win32 ld.exe'
  10940. ;;
  10941. esac
  10942. # FIXME: first we should search . and the directory the executable is in
  10943. shlibpath_var=PATH
  10944. ;;
  10945. darwin* | rhapsody*)
  10946. dynamic_linker="$host_os dyld"
  10947. version_type=darwin
  10948. need_lib_prefix=no
  10949. need_version=no
  10950. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  10951. soname_spec='$libname$release$major$shared_ext'
  10952. shlibpath_overrides_runpath=yes
  10953. shlibpath_var=DYLD_LIBRARY_PATH
  10954. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  10955. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10957. ;;
  10958. dgux*)
  10959. version_type=linux # correct to gnu/linux during the next big refactor
  10960. need_lib_prefix=no
  10961. need_version=no
  10962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10963. soname_spec='$libname$release$shared_ext$major'
  10964. shlibpath_var=LD_LIBRARY_PATH
  10965. ;;
  10966. freebsd* | dragonfly* | midnightbsd*)
  10967. # DragonFly does not have aout. When/if they implement a new
  10968. # versioning mechanism, adjust this.
  10969. if test -x /usr/bin/objformat; then
  10970. objformat=`/usr/bin/objformat`
  10971. else
  10972. case $host_os in
  10973. freebsd[23].*) objformat=aout ;;
  10974. *) objformat=elf ;;
  10975. esac
  10976. fi
  10977. # Handle Gentoo/FreeBSD as it was Linux
  10978. case $host_vendor in
  10979. gentoo)
  10980. version_type=linux ;;
  10981. *)
  10982. version_type=freebsd-$objformat ;;
  10983. esac
  10984. case $version_type in
  10985. freebsd-elf*)
  10986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10987. soname_spec='$libname$release$shared_ext$major'
  10988. need_version=no
  10989. need_lib_prefix=no
  10990. ;;
  10991. freebsd-*)
  10992. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10993. need_version=yes
  10994. ;;
  10995. linux)
  10996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10997. soname_spec='${libname}${release}${shared_ext}$major'
  10998. need_lib_prefix=no
  10999. need_version=no
  11000. ;;
  11001. esac
  11002. case $host_cpu in
  11003. powerpc64)
  11004. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  11005. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  11006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11007. /* end confdefs.h. */
  11008. int test_pointer_size[sizeof (void *) - 5];
  11009. _ACEOF
  11010. if ac_fn_c_try_compile "$LINENO"
  11011. then :
  11012. shlibpath_var=LD_LIBRARY_PATH
  11013. else $as_nop
  11014. shlibpath_var=LD_32_LIBRARY_PATH
  11015. fi
  11016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11017. ;;
  11018. *)
  11019. shlibpath_var=LD_LIBRARY_PATH
  11020. ;;
  11021. esac
  11022. case $host_os in
  11023. freebsd2.*)
  11024. shlibpath_overrides_runpath=yes
  11025. ;;
  11026. freebsd3.[01]* | freebsdelf3.[01]*)
  11027. shlibpath_overrides_runpath=yes
  11028. hardcode_into_libs=yes
  11029. ;;
  11030. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11031. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11032. shlibpath_overrides_runpath=no
  11033. hardcode_into_libs=yes
  11034. ;;
  11035. *) # from 4.6 on, and DragonFly
  11036. shlibpath_overrides_runpath=yes
  11037. hardcode_into_libs=yes
  11038. ;;
  11039. esac
  11040. ;;
  11041. haiku*)
  11042. version_type=linux # correct to gnu/linux during the next big refactor
  11043. need_lib_prefix=no
  11044. need_version=no
  11045. dynamic_linker="$host_os runtime_loader"
  11046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11047. soname_spec='$libname$release$shared_ext$major'
  11048. shlibpath_var=LIBRARY_PATH
  11049. shlibpath_overrides_runpath=no
  11050. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11051. hardcode_into_libs=yes
  11052. ;;
  11053. hpux9* | hpux10* | hpux11*)
  11054. # Give a soname corresponding to the major version so that dld.sl refuses to
  11055. # link against other versions.
  11056. version_type=sunos
  11057. need_lib_prefix=no
  11058. need_version=no
  11059. case $host_cpu in
  11060. ia64*)
  11061. shrext_cmds='.so'
  11062. hardcode_into_libs=yes
  11063. dynamic_linker="$host_os dld.so"
  11064. shlibpath_var=LD_LIBRARY_PATH
  11065. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11066. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11067. soname_spec='$libname$release$shared_ext$major'
  11068. if test 32 = "$HPUX_IA64_MODE"; then
  11069. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11070. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11071. else
  11072. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11073. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11074. fi
  11075. ;;
  11076. hppa*64*)
  11077. shrext_cmds='.sl'
  11078. hardcode_into_libs=yes
  11079. dynamic_linker="$host_os dld.sl"
  11080. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11081. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11082. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11083. soname_spec='$libname$release$shared_ext$major'
  11084. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11085. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11086. ;;
  11087. *)
  11088. shrext_cmds='.sl'
  11089. dynamic_linker="$host_os dld.sl"
  11090. shlibpath_var=SHLIB_PATH
  11091. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11092. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11093. soname_spec='$libname$release$shared_ext$major'
  11094. ;;
  11095. esac
  11096. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11097. postinstall_cmds='chmod 555 $lib'
  11098. # or fails outright, so override atomically:
  11099. install_override_mode=555
  11100. ;;
  11101. interix[3-9]*)
  11102. version_type=linux # correct to gnu/linux during the next big refactor
  11103. need_lib_prefix=no
  11104. need_version=no
  11105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11106. soname_spec='$libname$release$shared_ext$major'
  11107. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11108. shlibpath_var=LD_LIBRARY_PATH
  11109. shlibpath_overrides_runpath=no
  11110. hardcode_into_libs=yes
  11111. ;;
  11112. irix5* | irix6* | nonstopux*)
  11113. case $host_os in
  11114. nonstopux*) version_type=nonstopux ;;
  11115. *)
  11116. if test yes = "$lt_cv_prog_gnu_ld"; then
  11117. version_type=linux # correct to gnu/linux during the next big refactor
  11118. else
  11119. version_type=irix
  11120. fi ;;
  11121. esac
  11122. need_lib_prefix=no
  11123. need_version=no
  11124. soname_spec='$libname$release$shared_ext$major'
  11125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11126. case $host_os in
  11127. irix5* | nonstopux*)
  11128. libsuff= shlibsuff=
  11129. ;;
  11130. *)
  11131. case $LD in # libtool.m4 will add one of these switches to LD
  11132. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11133. libsuff= shlibsuff= libmagic=32-bit;;
  11134. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11135. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11136. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11137. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11138. *) libsuff= shlibsuff= libmagic=never-match;;
  11139. esac
  11140. ;;
  11141. esac
  11142. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11143. shlibpath_overrides_runpath=no
  11144. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11145. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11146. hardcode_into_libs=yes
  11147. ;;
  11148. # No shared lib support for Linux oldld, aout, or coff.
  11149. linux*oldld* | linux*aout* | linux*coff*)
  11150. dynamic_linker=no
  11151. ;;
  11152. linux*android*)
  11153. version_type=none # Android doesn't support versioned libraries.
  11154. need_lib_prefix=no
  11155. need_version=no
  11156. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  11157. soname_spec='$libname$release$shared_ext'
  11158. finish_cmds=
  11159. shlibpath_var=LD_LIBRARY_PATH
  11160. shlibpath_overrides_runpath=yes
  11161. # This implies no fast_install, which is unacceptable.
  11162. # Some rework will be needed to allow for fast_install
  11163. # before this can be enabled.
  11164. hardcode_into_libs=yes
  11165. dynamic_linker='Android linker'
  11166. # -rpath works at least for libraries that are not overridden by
  11167. # libraries installed in system locations.
  11168. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11169. ;;
  11170. # This must be glibc/ELF.
  11171. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11172. version_type=linux # correct to gnu/linux during the next big refactor
  11173. need_lib_prefix=no
  11174. need_version=no
  11175. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11176. soname_spec='$libname$release$shared_ext$major'
  11177. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11178. shlibpath_var=LD_LIBRARY_PATH
  11179. shlibpath_overrides_runpath=no
  11180. # Some binutils ld are patched to set DT_RUNPATH
  11181. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11182. then :
  11183. printf %s "(cached) " >&6
  11184. else $as_nop
  11185. lt_cv_shlibpath_overrides_runpath=no
  11186. save_LDFLAGS=$LDFLAGS
  11187. save_libdir=$libdir
  11188. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11189. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11191. /* end confdefs.h. */
  11192. int
  11193. main (void)
  11194. {
  11195. ;
  11196. return 0;
  11197. }
  11198. _ACEOF
  11199. if ac_fn_c_try_link "$LINENO"
  11200. then :
  11201. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11202. then :
  11203. lt_cv_shlibpath_overrides_runpath=yes
  11204. fi
  11205. fi
  11206. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11207. conftest$ac_exeext conftest.$ac_ext
  11208. LDFLAGS=$save_LDFLAGS
  11209. libdir=$save_libdir
  11210. fi
  11211. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11212. # This implies no fast_install, which is unacceptable.
  11213. # Some rework will be needed to allow for fast_install
  11214. # before this can be enabled.
  11215. hardcode_into_libs=yes
  11216. # Ideally, we could use ldconfig to report *all* directories which are
  11217. # searched for libraries, however this is still not possible. Aside from not
  11218. # being certain /sbin/ldconfig is available, command
  11219. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11220. # even though it is searched at run-time. Try to do the best guess by
  11221. # appending ld.so.conf contents (and includes) to the search path.
  11222. if test -f /etc/ld.so.conf; then
  11223. 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' ' '`
  11224. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11225. fi
  11226. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11227. # powerpc, because MkLinux only supported shared libraries with the
  11228. # GNU dynamic linker. Since this was broken with cross compilers,
  11229. # most powerpc-linux boxes support dynamic linking these days and
  11230. # people can always --disable-shared, the test was removed, and we
  11231. # assume the GNU/Linux dynamic linker is in use.
  11232. dynamic_linker='GNU/Linux ld.so'
  11233. ;;
  11234. netbsd*)
  11235. version_type=sunos
  11236. need_lib_prefix=no
  11237. need_version=no
  11238. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11239. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11240. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11241. dynamic_linker='NetBSD (a.out) ld.so'
  11242. else
  11243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11244. soname_spec='$libname$release$shared_ext$major'
  11245. dynamic_linker='NetBSD ld.elf_so'
  11246. fi
  11247. shlibpath_var=LD_LIBRARY_PATH
  11248. shlibpath_overrides_runpath=yes
  11249. hardcode_into_libs=yes
  11250. ;;
  11251. newsos6)
  11252. version_type=linux # correct to gnu/linux during the next big refactor
  11253. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11254. shlibpath_var=LD_LIBRARY_PATH
  11255. shlibpath_overrides_runpath=yes
  11256. ;;
  11257. *nto* | *qnx*)
  11258. version_type=qnx
  11259. need_lib_prefix=no
  11260. need_version=no
  11261. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11262. soname_spec='$libname$release$shared_ext$major'
  11263. shlibpath_var=LD_LIBRARY_PATH
  11264. shlibpath_overrides_runpath=no
  11265. hardcode_into_libs=yes
  11266. dynamic_linker='ldqnx.so'
  11267. ;;
  11268. openbsd*)
  11269. version_type=sunos
  11270. sys_lib_dlsearch_path_spec=/usr/lib
  11271. need_lib_prefix=no
  11272. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11273. need_version=no
  11274. else
  11275. need_version=yes
  11276. fi
  11277. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11278. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11279. shlibpath_var=LD_LIBRARY_PATH
  11280. shlibpath_overrides_runpath=yes
  11281. ;;
  11282. os2*)
  11283. libname_spec='$name'
  11284. version_type=windows
  11285. shrext_cmds=.dll
  11286. need_version=no
  11287. need_lib_prefix=no
  11288. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11289. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11290. v=$($ECHO $release$versuffix | tr -d .-);
  11291. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11292. $ECHO $n$v`$shared_ext'
  11293. library_names_spec='${libname}_dll.$libext'
  11294. dynamic_linker='OS/2 ld.exe'
  11295. shlibpath_var=BEGINLIBPATH
  11296. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11297. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11298. postinstall_cmds='base_file=`basename \$file`~
  11299. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11300. dldir=$destdir/`dirname \$dlpath`~
  11301. test -d \$dldir || mkdir -p \$dldir~
  11302. $install_prog $dir/$dlname \$dldir/$dlname~
  11303. chmod a+x \$dldir/$dlname~
  11304. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11305. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11306. fi'
  11307. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11308. dlpath=$dir/\$dldll~
  11309. $RM \$dlpath'
  11310. ;;
  11311. osf3* | osf4* | osf5*)
  11312. version_type=osf
  11313. need_lib_prefix=no
  11314. need_version=no
  11315. soname_spec='$libname$release$shared_ext$major'
  11316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11317. shlibpath_var=LD_LIBRARY_PATH
  11318. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11319. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11320. ;;
  11321. rdos*)
  11322. dynamic_linker=no
  11323. ;;
  11324. solaris*)
  11325. version_type=linux # correct to gnu/linux during the next big refactor
  11326. need_lib_prefix=no
  11327. need_version=no
  11328. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11329. soname_spec='$libname$release$shared_ext$major'
  11330. shlibpath_var=LD_LIBRARY_PATH
  11331. shlibpath_overrides_runpath=yes
  11332. hardcode_into_libs=yes
  11333. # ldd complains unless libraries are executable
  11334. postinstall_cmds='chmod +x $lib'
  11335. ;;
  11336. sunos4*)
  11337. version_type=sunos
  11338. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11339. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11340. shlibpath_var=LD_LIBRARY_PATH
  11341. shlibpath_overrides_runpath=yes
  11342. if test yes = "$with_gnu_ld"; then
  11343. need_lib_prefix=no
  11344. fi
  11345. need_version=yes
  11346. ;;
  11347. sysv4 | sysv4.3*)
  11348. version_type=linux # correct to gnu/linux during the next big refactor
  11349. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11350. soname_spec='$libname$release$shared_ext$major'
  11351. shlibpath_var=LD_LIBRARY_PATH
  11352. case $host_vendor in
  11353. sni)
  11354. shlibpath_overrides_runpath=no
  11355. need_lib_prefix=no
  11356. runpath_var=LD_RUN_PATH
  11357. ;;
  11358. siemens)
  11359. need_lib_prefix=no
  11360. ;;
  11361. motorola)
  11362. need_lib_prefix=no
  11363. need_version=no
  11364. shlibpath_overrides_runpath=no
  11365. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11366. ;;
  11367. esac
  11368. ;;
  11369. sysv4*MP*)
  11370. if test -d /usr/nec; then
  11371. version_type=linux # correct to gnu/linux during the next big refactor
  11372. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11373. soname_spec='$libname$shared_ext.$major'
  11374. shlibpath_var=LD_LIBRARY_PATH
  11375. fi
  11376. ;;
  11377. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11378. version_type=sco
  11379. need_lib_prefix=no
  11380. need_version=no
  11381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11382. soname_spec='$libname$release$shared_ext$major'
  11383. shlibpath_var=LD_LIBRARY_PATH
  11384. shlibpath_overrides_runpath=yes
  11385. hardcode_into_libs=yes
  11386. if test yes = "$with_gnu_ld"; then
  11387. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11388. else
  11389. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11390. case $host_os in
  11391. sco3.2v5*)
  11392. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11393. ;;
  11394. esac
  11395. fi
  11396. sys_lib_dlsearch_path_spec='/usr/lib'
  11397. ;;
  11398. tpf*)
  11399. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11400. version_type=linux # correct to gnu/linux during the next big refactor
  11401. need_lib_prefix=no
  11402. need_version=no
  11403. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11404. shlibpath_var=LD_LIBRARY_PATH
  11405. shlibpath_overrides_runpath=no
  11406. hardcode_into_libs=yes
  11407. ;;
  11408. uts4*)
  11409. version_type=linux # correct to gnu/linux during the next big refactor
  11410. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11411. soname_spec='$libname$release$shared_ext$major'
  11412. shlibpath_var=LD_LIBRARY_PATH
  11413. ;;
  11414. *)
  11415. dynamic_linker=no
  11416. ;;
  11417. esac
  11418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11419. printf "%s\n" "$dynamic_linker" >&6; }
  11420. test no = "$dynamic_linker" && can_build_shared=no
  11421. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11422. if test yes = "$GCC"; then
  11423. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11424. fi
  11425. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11426. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11427. fi
  11428. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11429. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11430. fi
  11431. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11432. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11433. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11434. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11435. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11436. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11438. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11439. hardcode_action=
  11440. if test -n "$hardcode_libdir_flag_spec" ||
  11441. test -n "$runpath_var" ||
  11442. test yes = "$hardcode_automatic"; then
  11443. # We can hardcode non-existent directories.
  11444. if test no != "$hardcode_direct" &&
  11445. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11446. # have to relink, otherwise we might link with an installed library
  11447. # when we should be linking with a yet-to-be-installed one
  11448. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11449. test no != "$hardcode_minus_L"; then
  11450. # Linking always hardcodes the temporary library directory.
  11451. hardcode_action=relink
  11452. else
  11453. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11454. hardcode_action=immediate
  11455. fi
  11456. else
  11457. # We cannot hardcode anything, or else we can only hardcode existing
  11458. # directories.
  11459. hardcode_action=unsupported
  11460. fi
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11462. printf "%s\n" "$hardcode_action" >&6; }
  11463. if test relink = "$hardcode_action" ||
  11464. test yes = "$inherit_rpath"; then
  11465. # Fast installation is not supported
  11466. enable_fast_install=no
  11467. elif test yes = "$shlibpath_overrides_runpath" ||
  11468. test no = "$enable_shared"; then
  11469. # Fast installation is not necessary
  11470. enable_fast_install=needless
  11471. fi
  11472. if test yes != "$enable_dlopen"; then
  11473. enable_dlopen=unknown
  11474. enable_dlopen_self=unknown
  11475. enable_dlopen_self_static=unknown
  11476. else
  11477. lt_cv_dlopen=no
  11478. lt_cv_dlopen_libs=
  11479. case $host_os in
  11480. beos*)
  11481. lt_cv_dlopen=load_add_on
  11482. lt_cv_dlopen_libs=
  11483. lt_cv_dlopen_self=yes
  11484. ;;
  11485. mingw* | windows* | pw32* | cegcc*)
  11486. lt_cv_dlopen=LoadLibrary
  11487. lt_cv_dlopen_libs=
  11488. ;;
  11489. cygwin*)
  11490. lt_cv_dlopen=dlopen
  11491. lt_cv_dlopen_libs=
  11492. ;;
  11493. darwin*)
  11494. # if libdl is installed we need to link against it
  11495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11496. printf %s "checking for dlopen in -ldl... " >&6; }
  11497. if test ${ac_cv_lib_dl_dlopen+y}
  11498. then :
  11499. printf %s "(cached) " >&6
  11500. else $as_nop
  11501. ac_check_lib_save_LIBS=$LIBS
  11502. LIBS="-ldl $LIBS"
  11503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11504. /* end confdefs.h. */
  11505. /* Override any GCC internal prototype to avoid an error.
  11506. Use char because int might match the return type of a GCC
  11507. builtin and then its argument prototype would still apply.
  11508. The 'extern "C"' is for builds by C++ compilers;
  11509. although this is not generally supported in C code supporting it here
  11510. has little cost and some practical benefit (sr 110532). */
  11511. #ifdef __cplusplus
  11512. extern "C"
  11513. #endif
  11514. char dlopen (void);
  11515. int
  11516. main (void)
  11517. {
  11518. return dlopen ();
  11519. ;
  11520. return 0;
  11521. }
  11522. _ACEOF
  11523. if ac_fn_c_try_link "$LINENO"
  11524. then :
  11525. ac_cv_lib_dl_dlopen=yes
  11526. else $as_nop
  11527. ac_cv_lib_dl_dlopen=no
  11528. fi
  11529. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11530. conftest$ac_exeext conftest.$ac_ext
  11531. LIBS=$ac_check_lib_save_LIBS
  11532. fi
  11533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11534. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11535. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11536. then :
  11537. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11538. else $as_nop
  11539. lt_cv_dlopen=dyld
  11540. lt_cv_dlopen_libs=
  11541. lt_cv_dlopen_self=yes
  11542. fi
  11543. ;;
  11544. tpf*)
  11545. # Don't try to run any link tests for TPF. We know it's impossible
  11546. # because TPF is a cross-compiler, and we know how we open DSOs.
  11547. lt_cv_dlopen=dlopen
  11548. lt_cv_dlopen_libs=
  11549. lt_cv_dlopen_self=no
  11550. ;;
  11551. *)
  11552. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11553. if test "x$ac_cv_func_shl_load" = xyes
  11554. then :
  11555. lt_cv_dlopen=shl_load
  11556. else $as_nop
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11558. printf %s "checking for shl_load in -ldld... " >&6; }
  11559. if test ${ac_cv_lib_dld_shl_load+y}
  11560. then :
  11561. printf %s "(cached) " >&6
  11562. else $as_nop
  11563. ac_check_lib_save_LIBS=$LIBS
  11564. LIBS="-ldld $LIBS"
  11565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11566. /* end confdefs.h. */
  11567. /* Override any GCC internal prototype to avoid an error.
  11568. Use char because int might match the return type of a GCC
  11569. builtin and then its argument prototype would still apply.
  11570. The 'extern "C"' is for builds by C++ compilers;
  11571. although this is not generally supported in C code supporting it here
  11572. has little cost and some practical benefit (sr 110532). */
  11573. #ifdef __cplusplus
  11574. extern "C"
  11575. #endif
  11576. char shl_load (void);
  11577. int
  11578. main (void)
  11579. {
  11580. return shl_load ();
  11581. ;
  11582. return 0;
  11583. }
  11584. _ACEOF
  11585. if ac_fn_c_try_link "$LINENO"
  11586. then :
  11587. ac_cv_lib_dld_shl_load=yes
  11588. else $as_nop
  11589. ac_cv_lib_dld_shl_load=no
  11590. fi
  11591. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11592. conftest$ac_exeext conftest.$ac_ext
  11593. LIBS=$ac_check_lib_save_LIBS
  11594. fi
  11595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11596. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11597. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11598. then :
  11599. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11600. else $as_nop
  11601. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11602. if test "x$ac_cv_func_dlopen" = xyes
  11603. then :
  11604. lt_cv_dlopen=dlopen
  11605. else $as_nop
  11606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11607. printf %s "checking for dlopen in -ldl... " >&6; }
  11608. if test ${ac_cv_lib_dl_dlopen+y}
  11609. then :
  11610. printf %s "(cached) " >&6
  11611. else $as_nop
  11612. ac_check_lib_save_LIBS=$LIBS
  11613. LIBS="-ldl $LIBS"
  11614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11615. /* end confdefs.h. */
  11616. /* Override any GCC internal prototype to avoid an error.
  11617. Use char because int might match the return type of a GCC
  11618. builtin and then its argument prototype would still apply.
  11619. The 'extern "C"' is for builds by C++ compilers;
  11620. although this is not generally supported in C code supporting it here
  11621. has little cost and some practical benefit (sr 110532). */
  11622. #ifdef __cplusplus
  11623. extern "C"
  11624. #endif
  11625. char dlopen (void);
  11626. int
  11627. main (void)
  11628. {
  11629. return dlopen ();
  11630. ;
  11631. return 0;
  11632. }
  11633. _ACEOF
  11634. if ac_fn_c_try_link "$LINENO"
  11635. then :
  11636. ac_cv_lib_dl_dlopen=yes
  11637. else $as_nop
  11638. ac_cv_lib_dl_dlopen=no
  11639. fi
  11640. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11641. conftest$ac_exeext conftest.$ac_ext
  11642. LIBS=$ac_check_lib_save_LIBS
  11643. fi
  11644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11645. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11646. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11647. then :
  11648. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11649. else $as_nop
  11650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11651. printf %s "checking for dlopen in -lsvld... " >&6; }
  11652. if test ${ac_cv_lib_svld_dlopen+y}
  11653. then :
  11654. printf %s "(cached) " >&6
  11655. else $as_nop
  11656. ac_check_lib_save_LIBS=$LIBS
  11657. LIBS="-lsvld $LIBS"
  11658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11659. /* end confdefs.h. */
  11660. /* Override any GCC internal prototype to avoid an error.
  11661. Use char because int might match the return type of a GCC
  11662. builtin and then its argument prototype would still apply.
  11663. The 'extern "C"' is for builds by C++ compilers;
  11664. although this is not generally supported in C code supporting it here
  11665. has little cost and some practical benefit (sr 110532). */
  11666. #ifdef __cplusplus
  11667. extern "C"
  11668. #endif
  11669. char dlopen (void);
  11670. int
  11671. main (void)
  11672. {
  11673. return dlopen ();
  11674. ;
  11675. return 0;
  11676. }
  11677. _ACEOF
  11678. if ac_fn_c_try_link "$LINENO"
  11679. then :
  11680. ac_cv_lib_svld_dlopen=yes
  11681. else $as_nop
  11682. ac_cv_lib_svld_dlopen=no
  11683. fi
  11684. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11685. conftest$ac_exeext conftest.$ac_ext
  11686. LIBS=$ac_check_lib_save_LIBS
  11687. fi
  11688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11689. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11690. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11691. then :
  11692. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11693. else $as_nop
  11694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11695. printf %s "checking for dld_link in -ldld... " >&6; }
  11696. if test ${ac_cv_lib_dld_dld_link+y}
  11697. then :
  11698. printf %s "(cached) " >&6
  11699. else $as_nop
  11700. ac_check_lib_save_LIBS=$LIBS
  11701. LIBS="-ldld $LIBS"
  11702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11703. /* end confdefs.h. */
  11704. /* Override any GCC internal prototype to avoid an error.
  11705. Use char because int might match the return type of a GCC
  11706. builtin and then its argument prototype would still apply.
  11707. The 'extern "C"' is for builds by C++ compilers;
  11708. although this is not generally supported in C code supporting it here
  11709. has little cost and some practical benefit (sr 110532). */
  11710. #ifdef __cplusplus
  11711. extern "C"
  11712. #endif
  11713. char dld_link (void);
  11714. int
  11715. main (void)
  11716. {
  11717. return dld_link ();
  11718. ;
  11719. return 0;
  11720. }
  11721. _ACEOF
  11722. if ac_fn_c_try_link "$LINENO"
  11723. then :
  11724. ac_cv_lib_dld_dld_link=yes
  11725. else $as_nop
  11726. ac_cv_lib_dld_dld_link=no
  11727. fi
  11728. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11729. conftest$ac_exeext conftest.$ac_ext
  11730. LIBS=$ac_check_lib_save_LIBS
  11731. fi
  11732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11733. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11734. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11735. then :
  11736. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11737. fi
  11738. fi
  11739. fi
  11740. fi
  11741. fi
  11742. fi
  11743. ;;
  11744. esac
  11745. if test no = "$lt_cv_dlopen"; then
  11746. enable_dlopen=no
  11747. else
  11748. enable_dlopen=yes
  11749. fi
  11750. case $lt_cv_dlopen in
  11751. dlopen)
  11752. save_CPPFLAGS=$CPPFLAGS
  11753. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11754. save_LDFLAGS=$LDFLAGS
  11755. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11756. save_LIBS=$LIBS
  11757. LIBS="$lt_cv_dlopen_libs $LIBS"
  11758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11759. printf %s "checking whether a program can dlopen itself... " >&6; }
  11760. if test ${lt_cv_dlopen_self+y}
  11761. then :
  11762. printf %s "(cached) " >&6
  11763. else $as_nop
  11764. if test yes = "$cross_compiling"; then :
  11765. lt_cv_dlopen_self=cross
  11766. else
  11767. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11768. lt_status=$lt_dlunknown
  11769. cat > conftest.$ac_ext <<_LT_EOF
  11770. #line $LINENO "configure"
  11771. #include "confdefs.h"
  11772. #if HAVE_DLFCN_H
  11773. #include <dlfcn.h>
  11774. #endif
  11775. #include <stdio.h>
  11776. #ifdef RTLD_GLOBAL
  11777. # define LT_DLGLOBAL RTLD_GLOBAL
  11778. #else
  11779. # ifdef DL_GLOBAL
  11780. # define LT_DLGLOBAL DL_GLOBAL
  11781. # else
  11782. # define LT_DLGLOBAL 0
  11783. # endif
  11784. #endif
  11785. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11786. find out it does not work in some platform. */
  11787. #ifndef LT_DLLAZY_OR_NOW
  11788. # ifdef RTLD_LAZY
  11789. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11790. # else
  11791. # ifdef DL_LAZY
  11792. # define LT_DLLAZY_OR_NOW DL_LAZY
  11793. # else
  11794. # ifdef RTLD_NOW
  11795. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11796. # else
  11797. # ifdef DL_NOW
  11798. # define LT_DLLAZY_OR_NOW DL_NOW
  11799. # else
  11800. # define LT_DLLAZY_OR_NOW 0
  11801. # endif
  11802. # endif
  11803. # endif
  11804. # endif
  11805. #endif
  11806. /* When -fvisibility=hidden is used, assume the code has been annotated
  11807. correspondingly for the symbols needed. */
  11808. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11809. int fnord (void) __attribute__((visibility("default")));
  11810. #endif
  11811. int fnord (void) { return 42; }
  11812. int main (void)
  11813. {
  11814. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11815. int status = $lt_dlunknown;
  11816. if (self)
  11817. {
  11818. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11819. else
  11820. {
  11821. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11822. else puts (dlerror ());
  11823. }
  11824. /* dlclose (self); */
  11825. }
  11826. else
  11827. puts (dlerror ());
  11828. return status;
  11829. }
  11830. _LT_EOF
  11831. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11832. (eval $ac_link) 2>&5
  11833. ac_status=$?
  11834. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11835. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11836. (./conftest; exit; ) >&5 2>/dev/null
  11837. lt_status=$?
  11838. case x$lt_status in
  11839. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11840. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11841. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11842. esac
  11843. else :
  11844. # compilation failed
  11845. lt_cv_dlopen_self=no
  11846. fi
  11847. fi
  11848. rm -fr conftest*
  11849. fi
  11850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11851. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11852. if test yes = "$lt_cv_dlopen_self"; then
  11853. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11855. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11856. if test ${lt_cv_dlopen_self_static+y}
  11857. then :
  11858. printf %s "(cached) " >&6
  11859. else $as_nop
  11860. if test yes = "$cross_compiling"; then :
  11861. lt_cv_dlopen_self_static=cross
  11862. else
  11863. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11864. lt_status=$lt_dlunknown
  11865. cat > conftest.$ac_ext <<_LT_EOF
  11866. #line $LINENO "configure"
  11867. #include "confdefs.h"
  11868. #if HAVE_DLFCN_H
  11869. #include <dlfcn.h>
  11870. #endif
  11871. #include <stdio.h>
  11872. #ifdef RTLD_GLOBAL
  11873. # define LT_DLGLOBAL RTLD_GLOBAL
  11874. #else
  11875. # ifdef DL_GLOBAL
  11876. # define LT_DLGLOBAL DL_GLOBAL
  11877. # else
  11878. # define LT_DLGLOBAL 0
  11879. # endif
  11880. #endif
  11881. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11882. find out it does not work in some platform. */
  11883. #ifndef LT_DLLAZY_OR_NOW
  11884. # ifdef RTLD_LAZY
  11885. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11886. # else
  11887. # ifdef DL_LAZY
  11888. # define LT_DLLAZY_OR_NOW DL_LAZY
  11889. # else
  11890. # ifdef RTLD_NOW
  11891. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11892. # else
  11893. # ifdef DL_NOW
  11894. # define LT_DLLAZY_OR_NOW DL_NOW
  11895. # else
  11896. # define LT_DLLAZY_OR_NOW 0
  11897. # endif
  11898. # endif
  11899. # endif
  11900. # endif
  11901. #endif
  11902. /* When -fvisibility=hidden is used, assume the code has been annotated
  11903. correspondingly for the symbols needed. */
  11904. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11905. int fnord (void) __attribute__((visibility("default")));
  11906. #endif
  11907. int fnord (void) { return 42; }
  11908. int main (void)
  11909. {
  11910. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11911. int status = $lt_dlunknown;
  11912. if (self)
  11913. {
  11914. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11915. else
  11916. {
  11917. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11918. else puts (dlerror ());
  11919. }
  11920. /* dlclose (self); */
  11921. }
  11922. else
  11923. puts (dlerror ());
  11924. return status;
  11925. }
  11926. _LT_EOF
  11927. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11928. (eval $ac_link) 2>&5
  11929. ac_status=$?
  11930. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11931. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11932. (./conftest; exit; ) >&5 2>/dev/null
  11933. lt_status=$?
  11934. case x$lt_status in
  11935. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11936. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11937. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11938. esac
  11939. else :
  11940. # compilation failed
  11941. lt_cv_dlopen_self_static=no
  11942. fi
  11943. fi
  11944. rm -fr conftest*
  11945. fi
  11946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11947. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11948. fi
  11949. CPPFLAGS=$save_CPPFLAGS
  11950. LDFLAGS=$save_LDFLAGS
  11951. LIBS=$save_LIBS
  11952. ;;
  11953. esac
  11954. case $lt_cv_dlopen_self in
  11955. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11956. *) enable_dlopen_self=unknown ;;
  11957. esac
  11958. case $lt_cv_dlopen_self_static in
  11959. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11960. *) enable_dlopen_self_static=unknown ;;
  11961. esac
  11962. fi
  11963. striplib=
  11964. old_striplib=
  11965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11966. printf %s "checking whether stripping libraries is possible... " >&6; }
  11967. if test -z "$STRIP"; then
  11968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11969. printf "%s\n" "no" >&6; }
  11970. else
  11971. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11972. old_striplib="$STRIP --strip-debug"
  11973. striplib="$STRIP --strip-unneeded"
  11974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11975. printf "%s\n" "yes" >&6; }
  11976. else
  11977. case $host_os in
  11978. darwin*)
  11979. # FIXME - insert some real tests, host_os isn't really good enough
  11980. striplib="$STRIP -x"
  11981. old_striplib="$STRIP -S"
  11982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11983. printf "%s\n" "yes" >&6; }
  11984. ;;
  11985. freebsd*)
  11986. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11987. old_striplib="$STRIP --strip-debug"
  11988. striplib="$STRIP --strip-unneeded"
  11989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11990. printf "%s\n" "yes" >&6; }
  11991. else
  11992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11993. printf "%s\n" "no" >&6; }
  11994. fi
  11995. ;;
  11996. *)
  11997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11998. printf "%s\n" "no" >&6; }
  11999. ;;
  12000. esac
  12001. fi
  12002. fi
  12003. # Report what library types will actually be built
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12005. printf %s "checking if libtool supports shared libraries... " >&6; }
  12006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12007. printf "%s\n" "$can_build_shared" >&6; }
  12008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12009. printf %s "checking whether to build shared libraries... " >&6; }
  12010. test no = "$can_build_shared" && enable_shared=no
  12011. # On AIX, shared libraries and static libraries use the same namespace, and
  12012. # are all built from PIC.
  12013. case $host_os in
  12014. aix3*)
  12015. test yes = "$enable_shared" && enable_static=no
  12016. if test -n "$RANLIB"; then
  12017. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12018. postinstall_cmds='$RANLIB $lib'
  12019. fi
  12020. ;;
  12021. aix[4-9]*)
  12022. if test ia64 != "$host_cpu"; then
  12023. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12024. yes,aix,yes) ;; # shared object as lib.so file only
  12025. yes,svr4,*) ;; # shared object as lib.so archive member only
  12026. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12027. esac
  12028. fi
  12029. ;;
  12030. esac
  12031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12032. printf "%s\n" "$enable_shared" >&6; }
  12033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12034. printf %s "checking whether to build static libraries... " >&6; }
  12035. # Make sure either enable_shared or enable_static is yes.
  12036. test yes = "$enable_shared" || enable_static=yes
  12037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12038. printf "%s\n" "$enable_static" >&6; }
  12039. fi
  12040. ac_ext=c
  12041. ac_cpp='$CPP $CPPFLAGS'
  12042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12045. CC=$lt_save_CC
  12046. ac_config_commands="$ac_config_commands libtool"
  12047. # Only expand once:
  12048. ac_ext=c
  12049. ac_cpp='$CPP $CPPFLAGS'
  12050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12053. if test "${ac_cv_prog_cc_c99}" = no
  12054. then :
  12055. as_fn_error $? "Expat requires a C99 compiler." "$LINENO" 5
  12056. fi
  12057. if test "$GCC" = yes
  12058. then :
  12059. for flag in -Wall -Wextra; do
  12060. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12062. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12063. if eval test \${$as_CACHEVAR+y}
  12064. then :
  12065. printf %s "(cached) " >&6
  12066. else $as_nop
  12067. ax_check_save_flags=$CFLAGS
  12068. CFLAGS="$CFLAGS -Werror $flag"
  12069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12070. /* end confdefs.h. */
  12071. int main(void) { return 0; }
  12072. _ACEOF
  12073. if ac_fn_c_try_compile "$LINENO"
  12074. then :
  12075. eval "$as_CACHEVAR=yes"
  12076. else $as_nop
  12077. eval "$as_CACHEVAR=no"
  12078. fi
  12079. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12080. CFLAGS=$ax_check_save_flags
  12081. fi
  12082. eval ac_res=\$$as_CACHEVAR
  12083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12084. printf "%s\n" "$ac_res" >&6; }
  12085. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12086. then :
  12087. if test ${AM_CFLAGS+y}
  12088. then :
  12089. case " $AM_CFLAGS " in #(
  12090. *" $flag "*) :
  12091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12092. (: AM_CFLAGS already contains $flag) 2>&5
  12093. ac_status=$?
  12094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12095. test $ac_status = 0; } ;; #(
  12096. *) :
  12097. as_fn_append AM_CFLAGS " $flag"
  12098. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12099. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12100. ac_status=$?
  12101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12102. test $ac_status = 0; }
  12103. ;;
  12104. esac
  12105. else $as_nop
  12106. AM_CFLAGS=$flag
  12107. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12108. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12109. ac_status=$?
  12110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12111. test $ac_status = 0; }
  12112. fi
  12113. else $as_nop
  12114. :
  12115. fi
  12116. done
  12117. for flag in -fexceptions; do
  12118. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12120. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12121. if eval test \${$as_CACHEVAR+y}
  12122. then :
  12123. printf %s "(cached) " >&6
  12124. else $as_nop
  12125. ax_check_save_flags=$CFLAGS
  12126. CFLAGS="$CFLAGS -Werror $flag"
  12127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12128. /* end confdefs.h. */
  12129. int main(void) { return 0; }
  12130. _ACEOF
  12131. if ac_fn_c_try_compile "$LINENO"
  12132. then :
  12133. eval "$as_CACHEVAR=yes"
  12134. else $as_nop
  12135. eval "$as_CACHEVAR=no"
  12136. fi
  12137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12138. CFLAGS=$ax_check_save_flags
  12139. fi
  12140. eval ac_res=\$$as_CACHEVAR
  12141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12142. printf "%s\n" "$ac_res" >&6; }
  12143. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12144. then :
  12145. if test ${AM_CFLAGS+y}
  12146. then :
  12147. case " $AM_CFLAGS " in #(
  12148. *" $flag "*) :
  12149. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12150. (: AM_CFLAGS already contains $flag) 2>&5
  12151. ac_status=$?
  12152. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12153. test $ac_status = 0; } ;; #(
  12154. *) :
  12155. as_fn_append AM_CFLAGS " $flag"
  12156. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12157. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12158. ac_status=$?
  12159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12160. test $ac_status = 0; }
  12161. ;;
  12162. esac
  12163. else $as_nop
  12164. AM_CFLAGS=$flag
  12165. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12166. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12167. ac_status=$?
  12168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12169. test $ac_status = 0; }
  12170. fi
  12171. else $as_nop
  12172. :
  12173. fi
  12174. done
  12175. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  12176. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12178. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12179. if eval test \${$as_CACHEVAR+y}
  12180. then :
  12181. printf %s "(cached) " >&6
  12182. else $as_nop
  12183. ax_check_save_flags=$CFLAGS
  12184. CFLAGS="$CFLAGS -Werror $flag"
  12185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12186. /* end confdefs.h. */
  12187. int main(void) { return 0; }
  12188. _ACEOF
  12189. if ac_fn_c_try_compile "$LINENO"
  12190. then :
  12191. eval "$as_CACHEVAR=yes"
  12192. else $as_nop
  12193. eval "$as_CACHEVAR=no"
  12194. fi
  12195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12196. CFLAGS=$ax_check_save_flags
  12197. fi
  12198. eval ac_res=\$$as_CACHEVAR
  12199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12200. printf "%s\n" "$ac_res" >&6; }
  12201. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12202. then :
  12203. if test ${AM_CFLAGS+y}
  12204. then :
  12205. case " $AM_CFLAGS " in #(
  12206. *" $flag "*) :
  12207. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12208. (: AM_CFLAGS already contains $flag) 2>&5
  12209. ac_status=$?
  12210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12211. test $ac_status = 0; } ;; #(
  12212. *) :
  12213. as_fn_append AM_CFLAGS " $flag"
  12214. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12215. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12216. ac_status=$?
  12217. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12218. test $ac_status = 0; }
  12219. ;;
  12220. esac
  12221. else $as_nop
  12222. AM_CFLAGS=$flag
  12223. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12224. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12225. ac_status=$?
  12226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12227. test $ac_status = 0; }
  12228. fi
  12229. else $as_nop
  12230. :
  12231. fi
  12232. done
  12233. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  12234. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12236. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12237. if eval test \${$as_CACHEVAR+y}
  12238. then :
  12239. printf %s "(cached) " >&6
  12240. else $as_nop
  12241. ax_check_save_flags=$CFLAGS
  12242. CFLAGS="$CFLAGS -Werror $flag"
  12243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12244. /* end confdefs.h. */
  12245. int main(void) { return 0; }
  12246. _ACEOF
  12247. if ac_fn_c_try_compile "$LINENO"
  12248. then :
  12249. eval "$as_CACHEVAR=yes"
  12250. else $as_nop
  12251. eval "$as_CACHEVAR=no"
  12252. fi
  12253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12254. CFLAGS=$ax_check_save_flags
  12255. fi
  12256. eval ac_res=\$$as_CACHEVAR
  12257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12258. printf "%s\n" "$ac_res" >&6; }
  12259. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12260. then :
  12261. if test ${AM_CFLAGS+y}
  12262. then :
  12263. case " $AM_CFLAGS " in #(
  12264. *" $flag "*) :
  12265. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12266. (: AM_CFLAGS already contains $flag) 2>&5
  12267. ac_status=$?
  12268. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12269. test $ac_status = 0; } ;; #(
  12270. *) :
  12271. as_fn_append AM_CFLAGS " $flag"
  12272. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12273. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12274. ac_status=$?
  12275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12276. test $ac_status = 0; }
  12277. ;;
  12278. esac
  12279. else $as_nop
  12280. AM_CFLAGS=$flag
  12281. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12282. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12283. ac_status=$?
  12284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12285. test $ac_status = 0; }
  12286. fi
  12287. else $as_nop
  12288. :
  12289. fi
  12290. done
  12291. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  12292. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12294. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12295. if eval test \${$as_CACHEVAR+y}
  12296. then :
  12297. printf %s "(cached) " >&6
  12298. else $as_nop
  12299. ax_check_save_flags=$CFLAGS
  12300. CFLAGS="$CFLAGS -Werror $flag"
  12301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12302. /* end confdefs.h. */
  12303. int main(void) { return 0; }
  12304. _ACEOF
  12305. if ac_fn_c_try_compile "$LINENO"
  12306. then :
  12307. eval "$as_CACHEVAR=yes"
  12308. else $as_nop
  12309. eval "$as_CACHEVAR=no"
  12310. fi
  12311. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12312. CFLAGS=$ax_check_save_flags
  12313. fi
  12314. eval ac_res=\$$as_CACHEVAR
  12315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12316. printf "%s\n" "$ac_res" >&6; }
  12317. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12318. then :
  12319. if test ${AM_CFLAGS+y}
  12320. then :
  12321. case " $AM_CFLAGS " in #(
  12322. *" $flag "*) :
  12323. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12324. (: AM_CFLAGS already contains $flag) 2>&5
  12325. ac_status=$?
  12326. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12327. test $ac_status = 0; } ;; #(
  12328. *) :
  12329. as_fn_append AM_CFLAGS " $flag"
  12330. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12331. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12332. ac_status=$?
  12333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12334. test $ac_status = 0; }
  12335. ;;
  12336. esac
  12337. else $as_nop
  12338. AM_CFLAGS=$flag
  12339. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12340. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12341. ac_status=$?
  12342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12343. test $ac_status = 0; }
  12344. fi
  12345. else $as_nop
  12346. :
  12347. fi
  12348. done
  12349. for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
  12350. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12352. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12353. if eval test \${$as_CACHEVAR+y}
  12354. then :
  12355. printf %s "(cached) " >&6
  12356. else $as_nop
  12357. ax_check_save_flags=$CFLAGS
  12358. CFLAGS="$CFLAGS -Werror $flag"
  12359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12360. /* end confdefs.h. */
  12361. int main(void) { return 0; }
  12362. _ACEOF
  12363. if ac_fn_c_try_compile "$LINENO"
  12364. then :
  12365. eval "$as_CACHEVAR=yes"
  12366. else $as_nop
  12367. eval "$as_CACHEVAR=no"
  12368. fi
  12369. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12370. CFLAGS=$ax_check_save_flags
  12371. fi
  12372. eval ac_res=\$$as_CACHEVAR
  12373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12374. printf "%s\n" "$ac_res" >&6; }
  12375. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12376. then :
  12377. if test ${AM_CFLAGS+y}
  12378. then :
  12379. case " $AM_CFLAGS " in #(
  12380. *" $flag "*) :
  12381. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12382. (: AM_CFLAGS already contains $flag) 2>&5
  12383. ac_status=$?
  12384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12385. test $ac_status = 0; } ;; #(
  12386. *) :
  12387. as_fn_append AM_CFLAGS " $flag"
  12388. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12389. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12390. ac_status=$?
  12391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12392. test $ac_status = 0; }
  12393. ;;
  12394. esac
  12395. else $as_nop
  12396. AM_CFLAGS=$flag
  12397. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12398. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12399. ac_status=$?
  12400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12401. test $ac_status = 0; }
  12402. fi
  12403. else $as_nop
  12404. :
  12405. fi
  12406. done
  12407. fi
  12408. ac_ext=cpp
  12409. ac_cpp='$CXXCPP $CPPFLAGS'
  12410. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12411. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12412. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12413. ac_ext=cpp
  12414. ac_cpp='$CXXCPP $CPPFLAGS'
  12415. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12416. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12417. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12418. if test -z "$CXX"; then
  12419. if test -n "$CCC"; then
  12420. CXX=$CCC
  12421. else
  12422. if test -n "$ac_tool_prefix"; then
  12423. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12424. do
  12425. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12426. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12428. printf %s "checking for $ac_word... " >&6; }
  12429. if test ${ac_cv_prog_CXX+y}
  12430. then :
  12431. printf %s "(cached) " >&6
  12432. else $as_nop
  12433. if test -n "$CXX"; then
  12434. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12435. else
  12436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12437. for as_dir in $PATH
  12438. do
  12439. IFS=$as_save_IFS
  12440. case $as_dir in #(((
  12441. '') as_dir=./ ;;
  12442. */) ;;
  12443. *) as_dir=$as_dir/ ;;
  12444. esac
  12445. for ac_exec_ext in '' $ac_executable_extensions; do
  12446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12447. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12449. break 2
  12450. fi
  12451. done
  12452. done
  12453. IFS=$as_save_IFS
  12454. fi
  12455. fi
  12456. CXX=$ac_cv_prog_CXX
  12457. if test -n "$CXX"; then
  12458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12459. printf "%s\n" "$CXX" >&6; }
  12460. else
  12461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12462. printf "%s\n" "no" >&6; }
  12463. fi
  12464. test -n "$CXX" && break
  12465. done
  12466. fi
  12467. if test -z "$CXX"; then
  12468. ac_ct_CXX=$CXX
  12469. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12470. do
  12471. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12472. set dummy $ac_prog; ac_word=$2
  12473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12474. printf %s "checking for $ac_word... " >&6; }
  12475. if test ${ac_cv_prog_ac_ct_CXX+y}
  12476. then :
  12477. printf %s "(cached) " >&6
  12478. else $as_nop
  12479. if test -n "$ac_ct_CXX"; then
  12480. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12481. else
  12482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12483. for as_dir in $PATH
  12484. do
  12485. IFS=$as_save_IFS
  12486. case $as_dir in #(((
  12487. '') as_dir=./ ;;
  12488. */) ;;
  12489. *) as_dir=$as_dir/ ;;
  12490. esac
  12491. for ac_exec_ext in '' $ac_executable_extensions; do
  12492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12493. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12495. break 2
  12496. fi
  12497. done
  12498. done
  12499. IFS=$as_save_IFS
  12500. fi
  12501. fi
  12502. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12503. if test -n "$ac_ct_CXX"; then
  12504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12505. printf "%s\n" "$ac_ct_CXX" >&6; }
  12506. else
  12507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12508. printf "%s\n" "no" >&6; }
  12509. fi
  12510. test -n "$ac_ct_CXX" && break
  12511. done
  12512. if test "x$ac_ct_CXX" = x; then
  12513. CXX="g++"
  12514. else
  12515. case $cross_compiling:$ac_tool_warned in
  12516. yes:)
  12517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12518. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12519. ac_tool_warned=yes ;;
  12520. esac
  12521. CXX=$ac_ct_CXX
  12522. fi
  12523. fi
  12524. fi
  12525. fi
  12526. # Provide some information about the compiler.
  12527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12528. set X $ac_compile
  12529. ac_compiler=$2
  12530. for ac_option in --version -v -V -qversion; do
  12531. { { ac_try="$ac_compiler $ac_option >&5"
  12532. case "(($ac_try" in
  12533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12534. *) ac_try_echo=$ac_try;;
  12535. esac
  12536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12537. printf "%s\n" "$ac_try_echo"; } >&5
  12538. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12539. ac_status=$?
  12540. if test -s conftest.err; then
  12541. sed '10a\
  12542. ... rest of stderr output deleted ...
  12543. 10q' conftest.err >conftest.er1
  12544. cat conftest.er1 >&5
  12545. fi
  12546. rm -f conftest.er1 conftest.err
  12547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12548. test $ac_status = 0; }
  12549. done
  12550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12551. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12552. if test ${ac_cv_cxx_compiler_gnu+y}
  12553. then :
  12554. printf %s "(cached) " >&6
  12555. else $as_nop
  12556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12557. /* end confdefs.h. */
  12558. int
  12559. main (void)
  12560. {
  12561. #ifndef __GNUC__
  12562. choke me
  12563. #endif
  12564. ;
  12565. return 0;
  12566. }
  12567. _ACEOF
  12568. if ac_fn_cxx_try_compile "$LINENO"
  12569. then :
  12570. ac_compiler_gnu=yes
  12571. else $as_nop
  12572. ac_compiler_gnu=no
  12573. fi
  12574. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12575. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12576. fi
  12577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12578. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12580. if test $ac_compiler_gnu = yes; then
  12581. GXX=yes
  12582. else
  12583. GXX=
  12584. fi
  12585. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12586. ac_save_CXXFLAGS=$CXXFLAGS
  12587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12588. printf %s "checking whether $CXX accepts -g... " >&6; }
  12589. if test ${ac_cv_prog_cxx_g+y}
  12590. then :
  12591. printf %s "(cached) " >&6
  12592. else $as_nop
  12593. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12594. ac_cxx_werror_flag=yes
  12595. ac_cv_prog_cxx_g=no
  12596. CXXFLAGS="-g"
  12597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12598. /* end confdefs.h. */
  12599. int
  12600. main (void)
  12601. {
  12602. ;
  12603. return 0;
  12604. }
  12605. _ACEOF
  12606. if ac_fn_cxx_try_compile "$LINENO"
  12607. then :
  12608. ac_cv_prog_cxx_g=yes
  12609. else $as_nop
  12610. CXXFLAGS=""
  12611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12612. /* end confdefs.h. */
  12613. int
  12614. main (void)
  12615. {
  12616. ;
  12617. return 0;
  12618. }
  12619. _ACEOF
  12620. if ac_fn_cxx_try_compile "$LINENO"
  12621. then :
  12622. else $as_nop
  12623. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12624. CXXFLAGS="-g"
  12625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12626. /* end confdefs.h. */
  12627. int
  12628. main (void)
  12629. {
  12630. ;
  12631. return 0;
  12632. }
  12633. _ACEOF
  12634. if ac_fn_cxx_try_compile "$LINENO"
  12635. then :
  12636. ac_cv_prog_cxx_g=yes
  12637. fi
  12638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12639. fi
  12640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12641. fi
  12642. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12643. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12644. fi
  12645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12646. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12647. if test $ac_test_CXXFLAGS; then
  12648. CXXFLAGS=$ac_save_CXXFLAGS
  12649. elif test $ac_cv_prog_cxx_g = yes; then
  12650. if test "$GXX" = yes; then
  12651. CXXFLAGS="-g -O2"
  12652. else
  12653. CXXFLAGS="-g"
  12654. fi
  12655. else
  12656. if test "$GXX" = yes; then
  12657. CXXFLAGS="-O2"
  12658. else
  12659. CXXFLAGS=
  12660. fi
  12661. fi
  12662. ac_prog_cxx_stdcxx=no
  12663. if test x$ac_prog_cxx_stdcxx = xno
  12664. then :
  12665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12666. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12667. if test ${ac_cv_prog_cxx_cxx11+y}
  12668. then :
  12669. printf %s "(cached) " >&6
  12670. else $as_nop
  12671. ac_cv_prog_cxx_cxx11=no
  12672. ac_save_CXX=$CXX
  12673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12674. /* end confdefs.h. */
  12675. $ac_cxx_conftest_cxx11_program
  12676. _ACEOF
  12677. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12678. do
  12679. CXX="$ac_save_CXX $ac_arg"
  12680. if ac_fn_cxx_try_compile "$LINENO"
  12681. then :
  12682. ac_cv_prog_cxx_cxx11=$ac_arg
  12683. fi
  12684. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12685. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12686. done
  12687. rm -f conftest.$ac_ext
  12688. CXX=$ac_save_CXX
  12689. fi
  12690. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12691. then :
  12692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12693. printf "%s\n" "unsupported" >&6; }
  12694. else $as_nop
  12695. if test "x$ac_cv_prog_cxx_cxx11" = x
  12696. then :
  12697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12698. printf "%s\n" "none needed" >&6; }
  12699. else $as_nop
  12700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12701. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12702. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12703. fi
  12704. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12705. ac_prog_cxx_stdcxx=cxx11
  12706. fi
  12707. fi
  12708. if test x$ac_prog_cxx_stdcxx = xno
  12709. then :
  12710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12711. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12712. if test ${ac_cv_prog_cxx_cxx98+y}
  12713. then :
  12714. printf %s "(cached) " >&6
  12715. else $as_nop
  12716. ac_cv_prog_cxx_cxx98=no
  12717. ac_save_CXX=$CXX
  12718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12719. /* end confdefs.h. */
  12720. $ac_cxx_conftest_cxx98_program
  12721. _ACEOF
  12722. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12723. do
  12724. CXX="$ac_save_CXX $ac_arg"
  12725. if ac_fn_cxx_try_compile "$LINENO"
  12726. then :
  12727. ac_cv_prog_cxx_cxx98=$ac_arg
  12728. fi
  12729. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12730. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12731. done
  12732. rm -f conftest.$ac_ext
  12733. CXX=$ac_save_CXX
  12734. fi
  12735. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12736. then :
  12737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12738. printf "%s\n" "unsupported" >&6; }
  12739. else $as_nop
  12740. if test "x$ac_cv_prog_cxx_cxx98" = x
  12741. then :
  12742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12743. printf "%s\n" "none needed" >&6; }
  12744. else $as_nop
  12745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12746. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12747. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12748. fi
  12749. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12750. ac_prog_cxx_stdcxx=cxx98
  12751. fi
  12752. fi
  12753. ac_ext=cpp
  12754. ac_cpp='$CXXCPP $CPPFLAGS'
  12755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12758. depcc="$CXX" am_compiler_list=
  12759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12760. printf %s "checking dependency style of $depcc... " >&6; }
  12761. if test ${am_cv_CXX_dependencies_compiler_type+y}
  12762. then :
  12763. printf %s "(cached) " >&6
  12764. else $as_nop
  12765. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12766. # We make a subdir and do the tests there. Otherwise we can end up
  12767. # making bogus files that we don't know about and never remove. For
  12768. # instance it was reported that on HP-UX the gcc test will end up
  12769. # making a dummy file named 'D' -- because '-MD' means "put the output
  12770. # in D".
  12771. rm -rf conftest.dir
  12772. mkdir conftest.dir
  12773. # Copy depcomp to subdir because otherwise we won't find it if we're
  12774. # using a relative directory.
  12775. cp "$am_depcomp" conftest.dir
  12776. cd conftest.dir
  12777. # We will build objects and dependencies in a subdirectory because
  12778. # it helps to detect inapplicable dependency modes. For instance
  12779. # both Tru64's cc and ICC support -MD to output dependencies as a
  12780. # side effect of compilation, but ICC will put the dependencies in
  12781. # the current directory while Tru64 will put them in the object
  12782. # directory.
  12783. mkdir sub
  12784. am_cv_CXX_dependencies_compiler_type=none
  12785. if test "$am_compiler_list" = ""; then
  12786. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12787. fi
  12788. am__universal=false
  12789. case " $depcc " in #(
  12790. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12791. esac
  12792. for depmode in $am_compiler_list; do
  12793. # Setup a source with many dependencies, because some compilers
  12794. # like to wrap large dependency lists on column 80 (with \), and
  12795. # we should not choose a depcomp mode which is confused by this.
  12796. #
  12797. # We need to recreate these files for each test, as the compiler may
  12798. # overwrite some of them when testing with obscure command lines.
  12799. # This happens at least with the AIX C compiler.
  12800. : > sub/conftest.c
  12801. for i in 1 2 3 4 5 6; do
  12802. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12803. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12804. # Solaris 10 /bin/sh.
  12805. echo '/* dummy */' > sub/conftst$i.h
  12806. done
  12807. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12808. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12809. # mode. It turns out that the SunPro C++ compiler does not properly
  12810. # handle '-M -o', and we need to detect this. Also, some Intel
  12811. # versions had trouble with output in subdirs.
  12812. am__obj=sub/conftest.${OBJEXT-o}
  12813. am__minus_obj="-o $am__obj"
  12814. case $depmode in
  12815. gcc)
  12816. # This depmode causes a compiler race in universal mode.
  12817. test "$am__universal" = false || continue
  12818. ;;
  12819. nosideeffect)
  12820. # After this tag, mechanisms are not by side-effect, so they'll
  12821. # only be used when explicitly requested.
  12822. if test "x$enable_dependency_tracking" = xyes; then
  12823. continue
  12824. else
  12825. break
  12826. fi
  12827. ;;
  12828. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12829. # This compiler won't grok '-c -o', but also, the minuso test has
  12830. # not run yet. These depmodes are late enough in the game, and
  12831. # so weak that their functioning should not be impacted.
  12832. am__obj=conftest.${OBJEXT-o}
  12833. am__minus_obj=
  12834. ;;
  12835. none) break ;;
  12836. esac
  12837. if depmode=$depmode \
  12838. source=sub/conftest.c object=$am__obj \
  12839. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12840. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12841. >/dev/null 2>conftest.err &&
  12842. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12843. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12844. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12845. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12846. # icc doesn't choke on unknown options, it will just issue warnings
  12847. # or remarks (even with -Werror). So we grep stderr for any message
  12848. # that says an option was ignored or not supported.
  12849. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12850. # icc: Command line warning: ignoring option '-M'; no argument required
  12851. # The diagnosis changed in icc 8.0:
  12852. # icc: Command line remark: option '-MP' not supported
  12853. if (grep 'ignoring option' conftest.err ||
  12854. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12855. am_cv_CXX_dependencies_compiler_type=$depmode
  12856. break
  12857. fi
  12858. fi
  12859. done
  12860. cd ..
  12861. rm -rf conftest.dir
  12862. else
  12863. am_cv_CXX_dependencies_compiler_type=none
  12864. fi
  12865. fi
  12866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12867. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12868. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12869. if
  12870. test "x$enable_dependency_tracking" != xno \
  12871. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12872. am__fastdepCXX_TRUE=
  12873. am__fastdepCXX_FALSE='#'
  12874. else
  12875. am__fastdepCXX_TRUE='#'
  12876. am__fastdepCXX_FALSE=
  12877. fi
  12878. func_stripname_cnf ()
  12879. {
  12880. case $2 in
  12881. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12882. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12883. esac
  12884. } # func_stripname_cnf
  12885. if test -n "$CXX" && ( test no != "$CXX" &&
  12886. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12887. (test g++ != "$CXX"))); then
  12888. ac_ext=cpp
  12889. ac_cpp='$CXXCPP $CPPFLAGS'
  12890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12894. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12895. if test -z "$CXXCPP"; then
  12896. if test ${ac_cv_prog_CXXCPP+y}
  12897. then :
  12898. printf %s "(cached) " >&6
  12899. else $as_nop
  12900. # Double quotes because $CXX needs to be expanded
  12901. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12902. do
  12903. ac_preproc_ok=false
  12904. for ac_cxx_preproc_warn_flag in '' yes
  12905. do
  12906. # Use a header file that comes with gcc, so configuring glibc
  12907. # with a fresh cross-compiler works.
  12908. # On the NeXT, cc -E runs the code through the compiler's parser,
  12909. # not just through cpp. "Syntax error" is here to catch this case.
  12910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12911. /* end confdefs.h. */
  12912. #include <limits.h>
  12913. Syntax error
  12914. _ACEOF
  12915. if ac_fn_cxx_try_cpp "$LINENO"
  12916. then :
  12917. else $as_nop
  12918. # Broken: fails on valid input.
  12919. continue
  12920. fi
  12921. rm -f conftest.err conftest.i conftest.$ac_ext
  12922. # OK, works on sane cases. Now check whether nonexistent headers
  12923. # can be detected and how.
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. #include <ac_nonexistent.h>
  12927. _ACEOF
  12928. if ac_fn_cxx_try_cpp "$LINENO"
  12929. then :
  12930. # Broken: success on invalid input.
  12931. continue
  12932. else $as_nop
  12933. # Passes both tests.
  12934. ac_preproc_ok=:
  12935. break
  12936. fi
  12937. rm -f conftest.err conftest.i conftest.$ac_ext
  12938. done
  12939. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12940. rm -f conftest.i conftest.err conftest.$ac_ext
  12941. if $ac_preproc_ok
  12942. then :
  12943. break
  12944. fi
  12945. done
  12946. ac_cv_prog_CXXCPP=$CXXCPP
  12947. fi
  12948. CXXCPP=$ac_cv_prog_CXXCPP
  12949. else
  12950. ac_cv_prog_CXXCPP=$CXXCPP
  12951. fi
  12952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12953. printf "%s\n" "$CXXCPP" >&6; }
  12954. ac_preproc_ok=false
  12955. for ac_cxx_preproc_warn_flag in '' yes
  12956. do
  12957. # Use a header file that comes with gcc, so configuring glibc
  12958. # with a fresh cross-compiler works.
  12959. # On the NeXT, cc -E runs the code through the compiler's parser,
  12960. # not just through cpp. "Syntax error" is here to catch this case.
  12961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12962. /* end confdefs.h. */
  12963. #include <limits.h>
  12964. Syntax error
  12965. _ACEOF
  12966. if ac_fn_cxx_try_cpp "$LINENO"
  12967. then :
  12968. else $as_nop
  12969. # Broken: fails on valid input.
  12970. continue
  12971. fi
  12972. rm -f conftest.err conftest.i conftest.$ac_ext
  12973. # OK, works on sane cases. Now check whether nonexistent headers
  12974. # can be detected and how.
  12975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12976. /* end confdefs.h. */
  12977. #include <ac_nonexistent.h>
  12978. _ACEOF
  12979. if ac_fn_cxx_try_cpp "$LINENO"
  12980. then :
  12981. # Broken: success on invalid input.
  12982. continue
  12983. else $as_nop
  12984. # Passes both tests.
  12985. ac_preproc_ok=:
  12986. break
  12987. fi
  12988. rm -f conftest.err conftest.i conftest.$ac_ext
  12989. done
  12990. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12991. rm -f conftest.i conftest.err conftest.$ac_ext
  12992. if $ac_preproc_ok
  12993. then :
  12994. else $as_nop
  12995. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12996. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12997. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12998. See \`config.log' for more details" "$LINENO" 5; }
  12999. fi
  13000. ac_ext=cpp
  13001. ac_cpp='$CXXCPP $CPPFLAGS'
  13002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13005. else
  13006. _lt_caught_CXX_error=yes
  13007. fi
  13008. ac_ext=cpp
  13009. ac_cpp='$CXXCPP $CPPFLAGS'
  13010. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13011. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13012. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13013. archive_cmds_need_lc_CXX=no
  13014. allow_undefined_flag_CXX=
  13015. always_export_symbols_CXX=no
  13016. archive_expsym_cmds_CXX=
  13017. compiler_needs_object_CXX=no
  13018. export_dynamic_flag_spec_CXX=
  13019. hardcode_direct_CXX=no
  13020. hardcode_direct_absolute_CXX=no
  13021. hardcode_libdir_flag_spec_CXX=
  13022. hardcode_libdir_separator_CXX=
  13023. hardcode_minus_L_CXX=no
  13024. hardcode_shlibpath_var_CXX=unsupported
  13025. hardcode_automatic_CXX=no
  13026. inherit_rpath_CXX=no
  13027. module_cmds_CXX=
  13028. module_expsym_cmds_CXX=
  13029. link_all_deplibs_CXX=unknown
  13030. old_archive_cmds_CXX=$old_archive_cmds
  13031. reload_flag_CXX=$reload_flag
  13032. reload_cmds_CXX=$reload_cmds
  13033. no_undefined_flag_CXX=
  13034. whole_archive_flag_spec_CXX=
  13035. enable_shared_with_static_runtimes_CXX=no
  13036. # Source file extension for C++ test sources.
  13037. ac_ext=cpp
  13038. # Object file extension for compiled C++ test sources.
  13039. objext=o
  13040. objext_CXX=$objext
  13041. # No sense in running all these tests if we already determined that
  13042. # the CXX compiler isn't working. Some variables (like enable_shared)
  13043. # are currently assumed to apply to all compilers on this platform,
  13044. # and will be corrupted by setting them based on a non-working compiler.
  13045. if test yes != "$_lt_caught_CXX_error"; then
  13046. # Code to be used in simple compile tests
  13047. lt_simple_compile_test_code="int some_variable = 0;"
  13048. # Code to be used in simple link tests
  13049. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13050. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13051. # If no C compiler was specified, use CC.
  13052. LTCC=${LTCC-"$CC"}
  13053. # If no C compiler flags were specified, use CFLAGS.
  13054. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13055. # Allow CC to be a program name with arguments.
  13056. compiler=$CC
  13057. # save warnings/boilerplate of simple test code
  13058. ac_outfile=conftest.$ac_objext
  13059. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13060. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13061. _lt_compiler_boilerplate=`cat conftest.err`
  13062. $RM conftest*
  13063. ac_outfile=conftest.$ac_objext
  13064. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13065. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13066. _lt_linker_boilerplate=`cat conftest.err`
  13067. $RM -r conftest*
  13068. # Allow CC to be a program name with arguments.
  13069. lt_save_CC=$CC
  13070. lt_save_CFLAGS=$CFLAGS
  13071. lt_save_LD=$LD
  13072. lt_save_GCC=$GCC
  13073. GCC=$GXX
  13074. lt_save_with_gnu_ld=$with_gnu_ld
  13075. lt_save_path_LD=$lt_cv_path_LD
  13076. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13077. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13078. else
  13079. $as_unset lt_cv_prog_gnu_ld
  13080. fi
  13081. if test -n "${lt_cv_path_LDCXX+set}"; then
  13082. lt_cv_path_LD=$lt_cv_path_LDCXX
  13083. else
  13084. $as_unset lt_cv_path_LD
  13085. fi
  13086. test -z "${LDCXX+set}" || LD=$LDCXX
  13087. CC=${CXX-"c++"}
  13088. CFLAGS=$CXXFLAGS
  13089. compiler=$CC
  13090. compiler_CXX=$CC
  13091. func_cc_basename $compiler
  13092. cc_basename=$func_cc_basename_result
  13093. if test -n "$compiler"; then
  13094. # We don't want -fno-exception when compiling C++ code, so set the
  13095. # no_builtin_flag separately
  13096. if test yes = "$GXX"; then
  13097. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13098. else
  13099. lt_prog_compiler_no_builtin_flag_CXX=
  13100. fi
  13101. if test yes = "$GXX"; then
  13102. # Set up default GNU C++ configuration
  13103. # Check whether --with-gnu-ld was given.
  13104. if test ${with_gnu_ld+y}
  13105. then :
  13106. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  13107. else $as_nop
  13108. with_gnu_ld=no
  13109. fi
  13110. ac_prog=ld
  13111. if test yes = "$GCC"; then
  13112. # Check if gcc -print-prog-name=ld gives a path.
  13113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13114. printf %s "checking for ld used by $CC... " >&6; }
  13115. case $host in
  13116. *-*-mingw* | *-*-windows*)
  13117. # gcc leaves a trailing carriage return, which upsets mingw
  13118. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13119. *)
  13120. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13121. esac
  13122. case $ac_prog in
  13123. # Accept absolute paths.
  13124. [\\/]* | ?:[\\/]*)
  13125. re_direlt='/[^/][^/]*/\.\./'
  13126. # Canonicalize the pathname of ld
  13127. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13128. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13129. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13130. done
  13131. test -z "$LD" && LD=$ac_prog
  13132. ;;
  13133. "")
  13134. # If it fails, then pretend we aren't using GCC.
  13135. ac_prog=ld
  13136. ;;
  13137. *)
  13138. # If it is relative, then search for the first ld in PATH.
  13139. with_gnu_ld=unknown
  13140. ;;
  13141. esac
  13142. elif test yes = "$with_gnu_ld"; then
  13143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13144. printf %s "checking for GNU ld... " >&6; }
  13145. else
  13146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13147. printf %s "checking for non-GNU ld... " >&6; }
  13148. fi
  13149. if test ${lt_cv_path_LD+y}
  13150. then :
  13151. printf %s "(cached) " >&6
  13152. else $as_nop
  13153. if test -z "$LD"; then
  13154. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  13155. for ac_dir in $PATH; do
  13156. IFS=$lt_save_ifs
  13157. test -z "$ac_dir" && ac_dir=.
  13158. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13159. lt_cv_path_LD=$ac_dir/$ac_prog
  13160. # Check to see if the program is GNU ld. I'd rather use --version,
  13161. # but apparently some variants of GNU ld only accept -v.
  13162. # Break only if it was the GNU/non-GNU ld that we prefer.
  13163. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13164. *GNU* | *'with BFD'*)
  13165. test no != "$with_gnu_ld" && break
  13166. ;;
  13167. *)
  13168. test yes != "$with_gnu_ld" && break
  13169. ;;
  13170. esac
  13171. fi
  13172. done
  13173. IFS=$lt_save_ifs
  13174. else
  13175. lt_cv_path_LD=$LD # Let the user override the test with a path.
  13176. fi
  13177. fi
  13178. LD=$lt_cv_path_LD
  13179. if test -n "$LD"; then
  13180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13181. printf "%s\n" "$LD" >&6; }
  13182. else
  13183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13184. printf "%s\n" "no" >&6; }
  13185. fi
  13186. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13188. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  13189. if test ${lt_cv_prog_gnu_ld+y}
  13190. then :
  13191. printf %s "(cached) " >&6
  13192. else $as_nop
  13193. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13194. case `$LD -v 2>&1 </dev/null` in
  13195. *GNU* | *'with BFD'*)
  13196. lt_cv_prog_gnu_ld=yes
  13197. ;;
  13198. *)
  13199. lt_cv_prog_gnu_ld=no
  13200. ;;
  13201. esac
  13202. fi
  13203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13204. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  13205. with_gnu_ld=$lt_cv_prog_gnu_ld
  13206. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13207. # archiving commands below assume that GNU ld is being used.
  13208. if test yes = "$with_gnu_ld"; then
  13209. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13210. 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'
  13211. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13212. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13213. # If archive_cmds runs LD, not CC, wlarc should be empty
  13214. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13215. # investigate it a little bit more. (MM)
  13216. wlarc='$wl'
  13217. # ancient GNU ld didn't support --whole-archive et. al.
  13218. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  13219. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13220. else
  13221. whole_archive_flag_spec_CXX=
  13222. fi
  13223. else
  13224. with_gnu_ld=no
  13225. wlarc=
  13226. # A generic and very simple default shared library creation
  13227. # command for GNU C++ for the case where it uses the native
  13228. # linker, instead of GNU ld. If possible, this setting should
  13229. # overridden to take advantage of the native linker features on
  13230. # the platform it is being used on.
  13231. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13232. fi
  13233. # Commands to make compiler produce verbose output that lists
  13234. # what "hidden" libraries, object files and flags are used when
  13235. # linking a shared library.
  13236. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13237. else
  13238. GXX=no
  13239. with_gnu_ld=no
  13240. wlarc=
  13241. fi
  13242. # PORTME: fill in a description of your system's C++ link characteristics
  13243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13244. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13245. ld_shlibs_CXX=yes
  13246. case $host_os in
  13247. aix3*)
  13248. # FIXME: insert proper C++ library support
  13249. ld_shlibs_CXX=no
  13250. ;;
  13251. aix[4-9]*)
  13252. if test ia64 = "$host_cpu"; then
  13253. # On IA64, the linker does run time linking by default, so we don't
  13254. # have to do anything special.
  13255. aix_use_runtimelinking=no
  13256. exp_sym_flag='-Bexport'
  13257. no_entry_flag=
  13258. else
  13259. aix_use_runtimelinking=no
  13260. # Test if we are trying to use run time linking or normal
  13261. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13262. # have runtime linking enabled, and use it for executables.
  13263. # For shared libraries, we enable/disable runtime linking
  13264. # depending on the kind of the shared library created -
  13265. # when "with_aix_soname,aix_use_runtimelinking" is:
  13266. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13267. # "aix,yes" lib.so shared, rtl:yes, for executables
  13268. # lib.a static archive
  13269. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13270. # lib.a(lib.so.V) shared, rtl:no, for executables
  13271. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13272. # lib.a(lib.so.V) shared, rtl:no
  13273. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13274. # lib.a static archive
  13275. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13276. for ld_flag in $LDFLAGS; do
  13277. case $ld_flag in
  13278. *-brtl*)
  13279. aix_use_runtimelinking=yes
  13280. break
  13281. ;;
  13282. esac
  13283. done
  13284. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13285. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13286. # so we don't have lib.a shared libs to link our executables.
  13287. # We have to force runtime linking in this case.
  13288. aix_use_runtimelinking=yes
  13289. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13290. fi
  13291. ;;
  13292. esac
  13293. exp_sym_flag='-bexport'
  13294. no_entry_flag='-bnoentry'
  13295. fi
  13296. # When large executables or shared objects are built, AIX ld can
  13297. # have problems creating the table of contents. If linking a library
  13298. # or program results in "error TOC overflow" add -mminimal-toc to
  13299. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13300. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13301. archive_cmds_CXX=''
  13302. hardcode_direct_CXX=yes
  13303. hardcode_direct_absolute_CXX=yes
  13304. hardcode_libdir_separator_CXX=':'
  13305. link_all_deplibs_CXX=yes
  13306. file_list_spec_CXX='$wl-f,'
  13307. case $with_aix_soname,$aix_use_runtimelinking in
  13308. aix,*) ;; # no import file
  13309. svr4,* | *,yes) # use import file
  13310. # The Import File defines what to hardcode.
  13311. hardcode_direct_CXX=no
  13312. hardcode_direct_absolute_CXX=no
  13313. ;;
  13314. esac
  13315. if test yes = "$GXX"; then
  13316. case $host_os in aix4.[012]|aix4.[012].*)
  13317. # We only want to do this on AIX 4.2 and lower, the check
  13318. # below for broken collect2 doesn't work under 4.3+
  13319. collect2name=`$CC -print-prog-name=collect2`
  13320. if test -f "$collect2name" &&
  13321. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13322. then
  13323. # We have reworked collect2
  13324. :
  13325. else
  13326. # We have old collect2
  13327. hardcode_direct_CXX=unsupported
  13328. # It fails to find uninstalled libraries when the uninstalled
  13329. # path is not listed in the libpath. Setting hardcode_minus_L
  13330. # to unsupported forces relinking
  13331. hardcode_minus_L_CXX=yes
  13332. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13333. hardcode_libdir_separator_CXX=
  13334. fi
  13335. esac
  13336. shared_flag='-shared'
  13337. if test yes = "$aix_use_runtimelinking"; then
  13338. shared_flag=$shared_flag' $wl-G'
  13339. fi
  13340. # Need to ensure runtime linking is disabled for the traditional
  13341. # shared library, or the linker may eventually find shared libraries
  13342. # /with/ Import File - we do not want to mix them.
  13343. shared_flag_aix='-shared'
  13344. shared_flag_svr4='-shared $wl-G'
  13345. else
  13346. # not using gcc
  13347. if test ia64 = "$host_cpu"; then
  13348. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13349. # chokes on -Wl,-G. The following line is correct:
  13350. shared_flag='-G'
  13351. else
  13352. if test yes = "$aix_use_runtimelinking"; then
  13353. shared_flag='$wl-G'
  13354. else
  13355. shared_flag='$wl-bM:SRE'
  13356. fi
  13357. shared_flag_aix='$wl-bM:SRE'
  13358. shared_flag_svr4='$wl-G'
  13359. fi
  13360. fi
  13361. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13362. # It seems that -bexpall does not export symbols beginning with
  13363. # underscore (_), so it is better to generate a list of symbols to
  13364. # export.
  13365. always_export_symbols_CXX=yes
  13366. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13367. # Warning - without using the other runtime loading flags (-brtl),
  13368. # -berok will link without error, but may produce a broken library.
  13369. # The "-G" linker flag allows undefined symbols.
  13370. no_undefined_flag_CXX='-bernotok'
  13371. # Determine the default libpath from the value encoded in an empty
  13372. # executable.
  13373. if test set = "${lt_cv_aix_libpath+set}"; then
  13374. aix_libpath=$lt_cv_aix_libpath
  13375. else
  13376. if test ${lt_cv_aix_libpath__CXX+y}
  13377. then :
  13378. printf %s "(cached) " >&6
  13379. else $as_nop
  13380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13381. /* end confdefs.h. */
  13382. int
  13383. main (void)
  13384. {
  13385. ;
  13386. return 0;
  13387. }
  13388. _ACEOF
  13389. if ac_fn_cxx_try_link "$LINENO"
  13390. then :
  13391. lt_aix_libpath_sed='
  13392. /Import File Strings/,/^$/ {
  13393. /^0/ {
  13394. s/^0 *\([^ ]*\) *$/\1/
  13395. p
  13396. }
  13397. }'
  13398. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13399. # Check for a 64-bit object if we didn't find anything.
  13400. if test -z "$lt_cv_aix_libpath__CXX"; then
  13401. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13402. fi
  13403. fi
  13404. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13405. conftest$ac_exeext conftest.$ac_ext
  13406. if test -z "$lt_cv_aix_libpath__CXX"; then
  13407. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13408. fi
  13409. fi
  13410. aix_libpath=$lt_cv_aix_libpath__CXX
  13411. fi
  13412. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13413. 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
  13414. else
  13415. if test ia64 = "$host_cpu"; then
  13416. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13417. allow_undefined_flag_CXX="-z nodefs"
  13418. 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"
  13419. else
  13420. # Determine the default libpath from the value encoded in an
  13421. # empty executable.
  13422. if test set = "${lt_cv_aix_libpath+set}"; then
  13423. aix_libpath=$lt_cv_aix_libpath
  13424. else
  13425. if test ${lt_cv_aix_libpath__CXX+y}
  13426. then :
  13427. printf %s "(cached) " >&6
  13428. else $as_nop
  13429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13430. /* end confdefs.h. */
  13431. int
  13432. main (void)
  13433. {
  13434. ;
  13435. return 0;
  13436. }
  13437. _ACEOF
  13438. if ac_fn_cxx_try_link "$LINENO"
  13439. then :
  13440. lt_aix_libpath_sed='
  13441. /Import File Strings/,/^$/ {
  13442. /^0/ {
  13443. s/^0 *\([^ ]*\) *$/\1/
  13444. p
  13445. }
  13446. }'
  13447. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13448. # Check for a 64-bit object if we didn't find anything.
  13449. if test -z "$lt_cv_aix_libpath__CXX"; then
  13450. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13451. fi
  13452. fi
  13453. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13454. conftest$ac_exeext conftest.$ac_ext
  13455. if test -z "$lt_cv_aix_libpath__CXX"; then
  13456. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13457. fi
  13458. fi
  13459. aix_libpath=$lt_cv_aix_libpath__CXX
  13460. fi
  13461. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13462. # Warning - without using the other run time loading flags,
  13463. # -berok will link without error, but may produce a broken library.
  13464. no_undefined_flag_CXX=' $wl-bernotok'
  13465. allow_undefined_flag_CXX=' $wl-berok'
  13466. if test yes = "$with_gnu_ld"; then
  13467. # We only use this code for GNU lds that support --whole-archive.
  13468. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13469. else
  13470. # Exported symbols can be pulled into shared objects from archives
  13471. whole_archive_flag_spec_CXX='$convenience'
  13472. fi
  13473. archive_cmds_need_lc_CXX=yes
  13474. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13475. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13476. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13477. if test svr4 != "$with_aix_soname"; then
  13478. # This is similar to how AIX traditionally builds its shared
  13479. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13480. 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'
  13481. fi
  13482. if test aix != "$with_aix_soname"; then
  13483. 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'
  13484. else
  13485. # used by -dlpreopen to get the symbols
  13486. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13487. fi
  13488. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13489. fi
  13490. fi
  13491. ;;
  13492. beos*)
  13493. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13494. allow_undefined_flag_CXX=unsupported
  13495. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13496. # support --undefined. This deserves some investigation. FIXME
  13497. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13498. else
  13499. ld_shlibs_CXX=no
  13500. fi
  13501. ;;
  13502. chorus*)
  13503. case $cc_basename in
  13504. *)
  13505. # FIXME: insert proper C++ library support
  13506. ld_shlibs_CXX=no
  13507. ;;
  13508. esac
  13509. ;;
  13510. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13511. case $GXX,$cc_basename in
  13512. ,cl* | no,cl* | ,icl* | no,icl*)
  13513. # Native MSVC or ICC
  13514. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13515. # no search path for DLLs.
  13516. hardcode_libdir_flag_spec_CXX=' '
  13517. allow_undefined_flag_CXX=unsupported
  13518. always_export_symbols_CXX=yes
  13519. file_list_spec_CXX='@'
  13520. # Tell ltmain to make .lib files, not .a files.
  13521. libext=lib
  13522. # Tell ltmain to make .dll files, not .so files.
  13523. shrext_cmds=.dll
  13524. # FIXME: Setting linknames here is a bad hack.
  13525. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13526. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13527. cp "$export_symbols" "$output_objdir/$soname.def";
  13528. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13529. else
  13530. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13531. fi~
  13532. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13533. linknames='
  13534. # The linker will not automatically build a static lib if we build a DLL.
  13535. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13536. enable_shared_with_static_runtimes_CXX=yes
  13537. # Don't use ranlib
  13538. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13539. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13540. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13541. case $lt_outputfile in
  13542. *.exe|*.EXE) ;;
  13543. *)
  13544. lt_outputfile=$lt_outputfile.exe
  13545. lt_tool_outputfile=$lt_tool_outputfile.exe
  13546. ;;
  13547. esac~
  13548. func_to_tool_file "$lt_outputfile"~
  13549. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13550. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13551. $RM "$lt_outputfile.manifest";
  13552. fi'
  13553. ;;
  13554. *)
  13555. # g++
  13556. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13557. # as there is no search path for DLLs.
  13558. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13559. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13560. allow_undefined_flag_CXX=unsupported
  13561. always_export_symbols_CXX=no
  13562. enable_shared_with_static_runtimes_CXX=yes
  13563. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13564. 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'
  13565. # If the export-symbols file already is a .def file, use it as
  13566. # is; otherwise, prepend EXPORTS...
  13567. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13568. cp $export_symbols $output_objdir/$soname.def;
  13569. else
  13570. echo EXPORTS > $output_objdir/$soname.def;
  13571. cat $export_symbols >> $output_objdir/$soname.def;
  13572. fi~
  13573. $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'
  13574. else
  13575. ld_shlibs_CXX=no
  13576. fi
  13577. ;;
  13578. esac
  13579. ;;
  13580. darwin* | rhapsody*)
  13581. archive_cmds_need_lc_CXX=no
  13582. hardcode_direct_CXX=no
  13583. hardcode_automatic_CXX=yes
  13584. hardcode_shlibpath_var_CXX=unsupported
  13585. if test yes = "$lt_cv_ld_force_load"; then
  13586. 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\"`'
  13587. else
  13588. whole_archive_flag_spec_CXX=''
  13589. fi
  13590. link_all_deplibs_CXX=yes
  13591. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13592. case $cc_basename in
  13593. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13594. *) _lt_dar_can_shared=$GCC ;;
  13595. esac
  13596. if test yes = "$_lt_dar_can_shared"; then
  13597. output_verbose_link_cmd=func_echo_all
  13598. 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"
  13599. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13600. 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"
  13601. 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"
  13602. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13603. 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"
  13604. 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"
  13605. fi
  13606. else
  13607. ld_shlibs_CXX=no
  13608. fi
  13609. ;;
  13610. os2*)
  13611. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13612. hardcode_minus_L_CXX=yes
  13613. allow_undefined_flag_CXX=unsupported
  13614. shrext_cmds=.dll
  13615. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13616. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13617. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13618. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13619. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13620. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13621. emximp -o $lib $output_objdir/$libname.def'
  13622. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13623. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13624. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13625. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13626. prefix_cmds="$SED"~
  13627. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13628. prefix_cmds="$prefix_cmds -e 1d";
  13629. fi~
  13630. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13631. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13632. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13633. emximp -o $lib $output_objdir/$libname.def'
  13634. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13635. enable_shared_with_static_runtimes_CXX=yes
  13636. file_list_spec_CXX='@'
  13637. ;;
  13638. dgux*)
  13639. case $cc_basename in
  13640. ec++*)
  13641. # FIXME: insert proper C++ library support
  13642. ld_shlibs_CXX=no
  13643. ;;
  13644. ghcx*)
  13645. # Green Hills C++ Compiler
  13646. # FIXME: insert proper C++ library support
  13647. ld_shlibs_CXX=no
  13648. ;;
  13649. *)
  13650. # FIXME: insert proper C++ library support
  13651. ld_shlibs_CXX=no
  13652. ;;
  13653. esac
  13654. ;;
  13655. freebsd2.*)
  13656. # C++ shared libraries reported to be fairly broken before
  13657. # switch to ELF
  13658. ld_shlibs_CXX=no
  13659. ;;
  13660. freebsd-elf*)
  13661. archive_cmds_need_lc_CXX=no
  13662. ;;
  13663. freebsd* | dragonfly* | midnightbsd*)
  13664. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13665. # conventions
  13666. ld_shlibs_CXX=yes
  13667. ;;
  13668. haiku*)
  13669. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13670. link_all_deplibs_CXX=yes
  13671. ;;
  13672. hpux9*)
  13673. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13674. hardcode_libdir_separator_CXX=:
  13675. export_dynamic_flag_spec_CXX='$wl-E'
  13676. hardcode_direct_CXX=yes
  13677. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13678. # but as the default
  13679. # location of the library.
  13680. case $cc_basename in
  13681. CC*)
  13682. # FIXME: insert proper C++ library support
  13683. ld_shlibs_CXX=no
  13684. ;;
  13685. aCC*)
  13686. 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'
  13687. # Commands to make compiler produce verbose output that lists
  13688. # what "hidden" libraries, object files and flags are used when
  13689. # linking a shared library.
  13690. #
  13691. # There doesn't appear to be a way to prevent this compiler from
  13692. # explicitly linking system object files so we need to strip them
  13693. # from the output so that they don't get included in the library
  13694. # dependencies.
  13695. 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"'
  13696. ;;
  13697. *)
  13698. if test yes = "$GXX"; then
  13699. 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'
  13700. else
  13701. # FIXME: insert proper C++ library support
  13702. ld_shlibs_CXX=no
  13703. fi
  13704. ;;
  13705. esac
  13706. ;;
  13707. hpux10*|hpux11*)
  13708. if test no = "$with_gnu_ld"; then
  13709. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13710. hardcode_libdir_separator_CXX=:
  13711. case $host_cpu in
  13712. hppa*64*|ia64*)
  13713. ;;
  13714. *)
  13715. export_dynamic_flag_spec_CXX='$wl-E'
  13716. ;;
  13717. esac
  13718. fi
  13719. case $host_cpu in
  13720. hppa*64*|ia64*)
  13721. hardcode_direct_CXX=no
  13722. hardcode_shlibpath_var_CXX=no
  13723. ;;
  13724. *)
  13725. hardcode_direct_CXX=yes
  13726. hardcode_direct_absolute_CXX=yes
  13727. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13728. # but as the default
  13729. # location of the library.
  13730. ;;
  13731. esac
  13732. case $cc_basename in
  13733. CC*)
  13734. # FIXME: insert proper C++ library support
  13735. ld_shlibs_CXX=no
  13736. ;;
  13737. aCC*)
  13738. case $host_cpu in
  13739. hppa*64*)
  13740. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13741. ;;
  13742. ia64*)
  13743. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13744. ;;
  13745. *)
  13746. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13747. ;;
  13748. esac
  13749. # Commands to make compiler produce verbose output that lists
  13750. # what "hidden" libraries, object files and flags are used when
  13751. # linking a shared library.
  13752. #
  13753. # There doesn't appear to be a way to prevent this compiler from
  13754. # explicitly linking system object files so we need to strip them
  13755. # from the output so that they don't get included in the library
  13756. # dependencies.
  13757. 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"'
  13758. ;;
  13759. *)
  13760. if test yes = "$GXX"; then
  13761. if test no = "$with_gnu_ld"; then
  13762. case $host_cpu in
  13763. hppa*64*)
  13764. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13765. ;;
  13766. ia64*)
  13767. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13768. ;;
  13769. *)
  13770. 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'
  13771. ;;
  13772. esac
  13773. fi
  13774. else
  13775. # FIXME: insert proper C++ library support
  13776. ld_shlibs_CXX=no
  13777. fi
  13778. ;;
  13779. esac
  13780. ;;
  13781. interix[3-9]*)
  13782. hardcode_direct_CXX=no
  13783. hardcode_shlibpath_var_CXX=no
  13784. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13785. export_dynamic_flag_spec_CXX='$wl-E'
  13786. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13787. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13788. # default) and relocated if they conflict, which is a slow very memory
  13789. # consuming and fragmenting process. To avoid this, we pick a random,
  13790. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13791. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13792. 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'
  13793. 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'
  13794. ;;
  13795. irix5* | irix6*)
  13796. case $cc_basename in
  13797. CC*)
  13798. # SGI C++
  13799. 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'
  13800. # Archives containing C++ object files must be created using
  13801. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13802. # necessary to make sure instantiated templates are included
  13803. # in the archive.
  13804. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13805. ;;
  13806. *)
  13807. if test yes = "$GXX"; then
  13808. if test no = "$with_gnu_ld"; then
  13809. 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'
  13810. else
  13811. 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'
  13812. fi
  13813. fi
  13814. link_all_deplibs_CXX=yes
  13815. ;;
  13816. esac
  13817. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13818. hardcode_libdir_separator_CXX=:
  13819. inherit_rpath_CXX=yes
  13820. ;;
  13821. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13822. case $cc_basename in
  13823. KCC*)
  13824. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13825. # KCC will only create a shared library if the output file
  13826. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13827. # to its proper name (with version) after linking.
  13828. 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'
  13829. 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'
  13830. # Commands to make compiler produce verbose output that lists
  13831. # what "hidden" libraries, object files and flags are used when
  13832. # linking a shared library.
  13833. #
  13834. # There doesn't appear to be a way to prevent this compiler from
  13835. # explicitly linking system object files so we need to strip them
  13836. # from the output so that they don't get included in the library
  13837. # dependencies.
  13838. 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"'
  13839. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13840. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13841. # Archives containing C++ object files must be created using
  13842. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13843. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13844. ;;
  13845. icpc* | ecpc* )
  13846. # Intel C++
  13847. with_gnu_ld=yes
  13848. # version 8.0 and above of icpc choke on multiply defined symbols
  13849. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13850. # earlier do not add the objects themselves.
  13851. case `$CC -V 2>&1` in
  13852. *"Version 7."*)
  13853. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13854. 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'
  13855. ;;
  13856. *) # Version 8.0 or newer
  13857. tmp_idyn=
  13858. case $host_cpu in
  13859. ia64*) tmp_idyn=' -i_dynamic';;
  13860. esac
  13861. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13862. 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'
  13863. ;;
  13864. esac
  13865. archive_cmds_need_lc_CXX=no
  13866. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13867. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13868. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13869. ;;
  13870. pgCC* | pgcpp*)
  13871. # Portland Group C++ compiler
  13872. case `$CC -V` in
  13873. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13874. prelink_cmds_CXX='tpldir=Template.dir~
  13875. rm -rf $tpldir~
  13876. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13877. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13878. old_archive_cmds_CXX='tpldir=Template.dir~
  13879. rm -rf $tpldir~
  13880. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13881. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13882. $RANLIB $oldlib'
  13883. archive_cmds_CXX='tpldir=Template.dir~
  13884. rm -rf $tpldir~
  13885. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13886. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13887. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13888. rm -rf $tpldir~
  13889. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13890. $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'
  13891. ;;
  13892. *) # Version 6 and above use weak symbols
  13893. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13894. 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'
  13895. ;;
  13896. esac
  13897. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13898. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13899. 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'
  13900. ;;
  13901. cxx*)
  13902. # Compaq C++
  13903. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13904. 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'
  13905. runpath_var=LD_RUN_PATH
  13906. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13907. hardcode_libdir_separator_CXX=:
  13908. # Commands to make compiler produce verbose output that lists
  13909. # what "hidden" libraries, object files and flags are used when
  13910. # linking a shared library.
  13911. #
  13912. # There doesn't appear to be a way to prevent this compiler from
  13913. # explicitly linking system object files so we need to strip them
  13914. # from the output so that they don't get included in the library
  13915. # dependencies.
  13916. 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'
  13917. ;;
  13918. xl* | mpixl* | bgxl*)
  13919. # IBM XL 8.0 on PPC, with GNU ld
  13920. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13921. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13922. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13923. if test yes = "$supports_anon_versioning"; then
  13924. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13925. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13926. echo "local: *; };" >> $output_objdir/$libname.ver~
  13927. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13928. fi
  13929. ;;
  13930. *)
  13931. case `$CC -V 2>&1 | $SED 5q` in
  13932. *Sun\ C*)
  13933. # Sun C++ 5.9
  13934. no_undefined_flag_CXX=' -zdefs'
  13935. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13936. 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'
  13937. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13938. 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'
  13939. compiler_needs_object_CXX=yes
  13940. # Not sure whether something based on
  13941. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13942. # would be better.
  13943. output_verbose_link_cmd='func_echo_all'
  13944. # Archives containing C++ object files must be created using
  13945. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13946. # necessary to make sure instantiated templates are included
  13947. # in the archive.
  13948. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13949. ;;
  13950. esac
  13951. ;;
  13952. esac
  13953. ;;
  13954. lynxos*)
  13955. # FIXME: insert proper C++ library support
  13956. ld_shlibs_CXX=no
  13957. ;;
  13958. m88k*)
  13959. # FIXME: insert proper C++ library support
  13960. ld_shlibs_CXX=no
  13961. ;;
  13962. mvs*)
  13963. case $cc_basename in
  13964. cxx*)
  13965. # FIXME: insert proper C++ library support
  13966. ld_shlibs_CXX=no
  13967. ;;
  13968. *)
  13969. # FIXME: insert proper C++ library support
  13970. ld_shlibs_CXX=no
  13971. ;;
  13972. esac
  13973. ;;
  13974. netbsd*)
  13975. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13976. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13977. wlarc=
  13978. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13979. hardcode_direct_CXX=yes
  13980. hardcode_shlibpath_var_CXX=no
  13981. fi
  13982. # Workaround some broken pre-1.5 toolchains
  13983. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13984. ;;
  13985. *nto* | *qnx*)
  13986. ld_shlibs_CXX=yes
  13987. ;;
  13988. openbsd*)
  13989. if test -f /usr/libexec/ld.so; then
  13990. hardcode_direct_CXX=yes
  13991. hardcode_shlibpath_var_CXX=no
  13992. hardcode_direct_absolute_CXX=yes
  13993. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13994. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13995. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13996. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13997. export_dynamic_flag_spec_CXX='$wl-E'
  13998. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13999. fi
  14000. output_verbose_link_cmd=func_echo_all
  14001. else
  14002. ld_shlibs_CXX=no
  14003. fi
  14004. ;;
  14005. osf3* | osf4* | osf5*)
  14006. case $cc_basename in
  14007. KCC*)
  14008. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14009. # KCC will only create a shared library if the output file
  14010. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14011. # to its proper name (with version) after linking.
  14012. 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'
  14013. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14014. hardcode_libdir_separator_CXX=:
  14015. # Archives containing C++ object files must be created using
  14016. # the KAI C++ compiler.
  14017. case $host in
  14018. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14019. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14020. esac
  14021. ;;
  14022. RCC*)
  14023. # Rational C++ 2.4.1
  14024. # FIXME: insert proper C++ library support
  14025. ld_shlibs_CXX=no
  14026. ;;
  14027. cxx*)
  14028. case $host in
  14029. osf3*)
  14030. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14031. 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'
  14032. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14033. ;;
  14034. *)
  14035. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14036. 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'
  14037. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14038. echo "-hidden">> $lib.exp~
  14039. $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~
  14040. $RM $lib.exp'
  14041. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14042. ;;
  14043. esac
  14044. hardcode_libdir_separator_CXX=:
  14045. # Commands to make compiler produce verbose output that lists
  14046. # what "hidden" libraries, object files and flags are used when
  14047. # linking a shared library.
  14048. #
  14049. # There doesn't appear to be a way to prevent this compiler from
  14050. # explicitly linking system object files so we need to strip them
  14051. # from the output so that they don't get included in the library
  14052. # dependencies.
  14053. 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"'
  14054. ;;
  14055. *)
  14056. if test yes,no = "$GXX,$with_gnu_ld"; then
  14057. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14058. case $host in
  14059. osf3*)
  14060. 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'
  14061. ;;
  14062. *)
  14063. 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'
  14064. ;;
  14065. esac
  14066. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14067. hardcode_libdir_separator_CXX=:
  14068. # Commands to make compiler produce verbose output that lists
  14069. # what "hidden" libraries, object files and flags are used when
  14070. # linking a shared library.
  14071. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  14072. else
  14073. # FIXME: insert proper C++ library support
  14074. ld_shlibs_CXX=no
  14075. fi
  14076. ;;
  14077. esac
  14078. ;;
  14079. psos*)
  14080. # FIXME: insert proper C++ library support
  14081. ld_shlibs_CXX=no
  14082. ;;
  14083. sunos4*)
  14084. case $cc_basename in
  14085. CC*)
  14086. # Sun C++ 4.x
  14087. # FIXME: insert proper C++ library support
  14088. ld_shlibs_CXX=no
  14089. ;;
  14090. lcc*)
  14091. # Lucid
  14092. # FIXME: insert proper C++ library support
  14093. ld_shlibs_CXX=no
  14094. ;;
  14095. *)
  14096. # FIXME: insert proper C++ library support
  14097. ld_shlibs_CXX=no
  14098. ;;
  14099. esac
  14100. ;;
  14101. solaris*)
  14102. case $cc_basename in
  14103. CC* | sunCC*)
  14104. # Sun C++ 4.2, 5.x and Centerline C++
  14105. archive_cmds_need_lc_CXX=yes
  14106. no_undefined_flag_CXX=' -zdefs'
  14107. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14108. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14109. $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'
  14110. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14111. hardcode_shlibpath_var_CXX=no
  14112. case $host_os in
  14113. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14114. *)
  14115. # The compiler driver will combine and reorder linker options,
  14116. # but understands '-z linker_flag'.
  14117. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14118. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14119. ;;
  14120. esac
  14121. link_all_deplibs_CXX=yes
  14122. output_verbose_link_cmd='func_echo_all'
  14123. # Archives containing C++ object files must be created using
  14124. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14125. # necessary to make sure instantiated templates are included
  14126. # in the archive.
  14127. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14128. ;;
  14129. gcx*)
  14130. # Green Hills C++ Compiler
  14131. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14132. # The C++ compiler must be used to create the archive.
  14133. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14134. ;;
  14135. *)
  14136. # GNU C++ compiler with Solaris linker
  14137. if test yes,no = "$GXX,$with_gnu_ld"; then
  14138. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  14139. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14140. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14141. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14142. $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'
  14143. # Commands to make compiler produce verbose output that lists
  14144. # what "hidden" libraries, object files and flags are used when
  14145. # linking a shared library.
  14146. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  14147. else
  14148. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  14149. # platform.
  14150. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14151. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14152. $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'
  14153. # Commands to make compiler produce verbose output that lists
  14154. # what "hidden" libraries, object files and flags are used when
  14155. # linking a shared library.
  14156. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  14157. fi
  14158. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  14159. case $host_os in
  14160. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14161. *)
  14162. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  14163. ;;
  14164. esac
  14165. fi
  14166. ;;
  14167. esac
  14168. ;;
  14169. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14170. no_undefined_flag_CXX='$wl-z,text'
  14171. archive_cmds_need_lc_CXX=no
  14172. hardcode_shlibpath_var_CXX=no
  14173. runpath_var='LD_RUN_PATH'
  14174. case $cc_basename in
  14175. CC*)
  14176. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14177. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14178. ;;
  14179. *)
  14180. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14181. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14182. ;;
  14183. esac
  14184. ;;
  14185. sysv5* | sco3.2v5* | sco5v6*)
  14186. # Note: We CANNOT use -z defs as we might desire, because we do not
  14187. # link with -lc, and that would cause any symbols used from libc to
  14188. # always be unresolved, which means just about no library would
  14189. # ever link correctly. If we're not using GNU ld we use -z text
  14190. # though, which does catch some bad symbols but isn't as heavy-handed
  14191. # as -z defs.
  14192. no_undefined_flag_CXX='$wl-z,text'
  14193. allow_undefined_flag_CXX='$wl-z,nodefs'
  14194. archive_cmds_need_lc_CXX=no
  14195. hardcode_shlibpath_var_CXX=no
  14196. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  14197. hardcode_libdir_separator_CXX=':'
  14198. link_all_deplibs_CXX=yes
  14199. export_dynamic_flag_spec_CXX='$wl-Bexport'
  14200. runpath_var='LD_RUN_PATH'
  14201. case $cc_basename in
  14202. CC*)
  14203. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14204. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14205. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14206. '"$old_archive_cmds_CXX"
  14207. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14208. '"$reload_cmds_CXX"
  14209. ;;
  14210. *)
  14211. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14212. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14213. ;;
  14214. esac
  14215. ;;
  14216. tandem*)
  14217. case $cc_basename in
  14218. NCC*)
  14219. # NonStop-UX NCC 3.20
  14220. # FIXME: insert proper C++ library support
  14221. ld_shlibs_CXX=no
  14222. ;;
  14223. *)
  14224. # FIXME: insert proper C++ library support
  14225. ld_shlibs_CXX=no
  14226. ;;
  14227. esac
  14228. ;;
  14229. vxworks*)
  14230. # FIXME: insert proper C++ library support
  14231. ld_shlibs_CXX=no
  14232. ;;
  14233. *)
  14234. # FIXME: insert proper C++ library support
  14235. ld_shlibs_CXX=no
  14236. ;;
  14237. esac
  14238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14239. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14240. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14241. GCC_CXX=$GXX
  14242. LD_CXX=$LD
  14243. ## CAVEAT EMPTOR:
  14244. ## There is no encapsulation within the following macros, do not change
  14245. ## the running order or otherwise move them around unless you know exactly
  14246. ## what you are doing...
  14247. # Dependencies to place before and after the object being linked:
  14248. predep_objects_CXX=
  14249. postdep_objects_CXX=
  14250. predeps_CXX=
  14251. postdeps_CXX=
  14252. compiler_lib_search_path_CXX=
  14253. cat > conftest.$ac_ext <<_LT_EOF
  14254. class Foo
  14255. {
  14256. public:
  14257. Foo (void) { a = 0; }
  14258. private:
  14259. int a;
  14260. };
  14261. _LT_EOF
  14262. _lt_libdeps_save_CFLAGS=$CFLAGS
  14263. case "$CC $CFLAGS " in #(
  14264. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14265. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14266. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14267. esac
  14268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14269. (eval $ac_compile) 2>&5
  14270. ac_status=$?
  14271. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14272. test $ac_status = 0; }; then
  14273. # Parse the compiler output and extract the necessary
  14274. # objects, libraries and library flags.
  14275. # Sentinel used to keep track of whether or not we are before
  14276. # the conftest object file.
  14277. pre_test_object_deps_done=no
  14278. for p in `eval "$output_verbose_link_cmd"`; do
  14279. case $prev$p in
  14280. -L* | -R* | -l*)
  14281. # Some compilers place space between "-{L,R,l}" and the path.
  14282. # Remove the space.
  14283. if test x-L = x"$p" ||
  14284. test x-R = x"$p" ||
  14285. test x-l = x"$p"; then
  14286. prev=$p
  14287. continue
  14288. fi
  14289. # Expand the sysroot to ease extracting the directories later.
  14290. if test -z "$prev"; then
  14291. case $p in
  14292. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14293. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14294. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14295. esac
  14296. fi
  14297. case $p in
  14298. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14299. esac
  14300. if test no = "$pre_test_object_deps_done"; then
  14301. case $prev in
  14302. -L | -R)
  14303. # Internal compiler library paths should come after those
  14304. # provided the user. The postdeps already come after the
  14305. # user supplied libs so there is no need to process them.
  14306. if test -z "$compiler_lib_search_path_CXX"; then
  14307. compiler_lib_search_path_CXX=$prev$p
  14308. else
  14309. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14310. fi
  14311. ;;
  14312. # The "-l" case would never come before the object being
  14313. # linked, so don't bother handling this case.
  14314. esac
  14315. else
  14316. if test -z "$postdeps_CXX"; then
  14317. postdeps_CXX=$prev$p
  14318. else
  14319. postdeps_CXX="${postdeps_CXX} $prev$p"
  14320. fi
  14321. fi
  14322. prev=
  14323. ;;
  14324. *.lto.$objext) ;; # Ignore GCC LTO objects
  14325. *.$objext)
  14326. # This assumes that the test object file only shows up
  14327. # once in the compiler output.
  14328. if test "$p" = "conftest.$objext"; then
  14329. pre_test_object_deps_done=yes
  14330. continue
  14331. fi
  14332. if test no = "$pre_test_object_deps_done"; then
  14333. if test -z "$predep_objects_CXX"; then
  14334. predep_objects_CXX=$p
  14335. else
  14336. predep_objects_CXX="$predep_objects_CXX $p"
  14337. fi
  14338. else
  14339. if test -z "$postdep_objects_CXX"; then
  14340. postdep_objects_CXX=$p
  14341. else
  14342. postdep_objects_CXX="$postdep_objects_CXX $p"
  14343. fi
  14344. fi
  14345. ;;
  14346. *) ;; # Ignore the rest.
  14347. esac
  14348. done
  14349. # Clean up.
  14350. rm -f a.out a.exe
  14351. else
  14352. echo "libtool.m4: error: problem compiling CXX test program"
  14353. fi
  14354. $RM -f confest.$objext
  14355. CFLAGS=$_lt_libdeps_save_CFLAGS
  14356. # PORTME: override above test on systems where it is broken
  14357. case $host_os in
  14358. interix[3-9]*)
  14359. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14360. # hack all around it, let's just trust "g++" to DTRT.
  14361. predep_objects_CXX=
  14362. postdep_objects_CXX=
  14363. postdeps_CXX=
  14364. ;;
  14365. esac
  14366. case " $postdeps_CXX " in
  14367. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14368. esac
  14369. compiler_lib_search_dirs_CXX=
  14370. if test -n "${compiler_lib_search_path_CXX}"; then
  14371. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14372. fi
  14373. lt_prog_compiler_wl_CXX=
  14374. lt_prog_compiler_pic_CXX=
  14375. lt_prog_compiler_static_CXX=
  14376. # C++ specific cases for pic, static, wl, etc.
  14377. if test yes = "$GXX"; then
  14378. lt_prog_compiler_wl_CXX='-Wl,'
  14379. lt_prog_compiler_static_CXX='-static'
  14380. case $host_os in
  14381. aix*)
  14382. # All AIX code is PIC.
  14383. if test ia64 = "$host_cpu"; then
  14384. # AIX 5 now supports IA64 processor
  14385. lt_prog_compiler_static_CXX='-Bstatic'
  14386. fi
  14387. lt_prog_compiler_pic_CXX='-fPIC'
  14388. ;;
  14389. amigaos*)
  14390. case $host_cpu in
  14391. powerpc)
  14392. # see comment about AmigaOS4 .so support
  14393. lt_prog_compiler_pic_CXX='-fPIC'
  14394. ;;
  14395. m68k)
  14396. # FIXME: we need at least 68020 code to build shared libraries, but
  14397. # adding the '-m68020' flag to GCC prevents building anything better,
  14398. # like '-m68040'.
  14399. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14400. ;;
  14401. esac
  14402. ;;
  14403. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14404. # PIC is the default for these OSes.
  14405. ;;
  14406. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14407. # This hack is so that the source file can tell whether it is being
  14408. # built for inclusion in a dll (and should export symbols for example).
  14409. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14410. # (--disable-auto-import) libraries
  14411. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14412. case $host_os in
  14413. os2*)
  14414. lt_prog_compiler_static_CXX='$wl-static'
  14415. ;;
  14416. esac
  14417. ;;
  14418. darwin* | rhapsody*)
  14419. # PIC is the default on this platform
  14420. # Common symbols not allowed in MH_DYLIB files
  14421. lt_prog_compiler_pic_CXX='-fno-common'
  14422. ;;
  14423. *djgpp*)
  14424. # DJGPP does not support shared libraries at all
  14425. lt_prog_compiler_pic_CXX=
  14426. ;;
  14427. haiku*)
  14428. # PIC is the default for Haiku.
  14429. # The "-static" flag exists, but is broken.
  14430. lt_prog_compiler_static_CXX=
  14431. ;;
  14432. interix[3-9]*)
  14433. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14434. # Instead, we relocate shared libraries at runtime.
  14435. ;;
  14436. sysv4*MP*)
  14437. if test -d /usr/nec; then
  14438. lt_prog_compiler_pic_CXX=-Kconform_pic
  14439. fi
  14440. ;;
  14441. hpux*)
  14442. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14443. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14444. # sets the default TLS model and affects inlining.
  14445. case $host_cpu in
  14446. hppa*64*)
  14447. ;;
  14448. *)
  14449. lt_prog_compiler_pic_CXX='-fPIC'
  14450. ;;
  14451. esac
  14452. ;;
  14453. *qnx* | *nto*)
  14454. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14455. # it will coredump.
  14456. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14457. ;;
  14458. *)
  14459. lt_prog_compiler_pic_CXX='-fPIC'
  14460. ;;
  14461. esac
  14462. else
  14463. case $host_os in
  14464. aix[4-9]*)
  14465. # All AIX code is PIC.
  14466. if test ia64 = "$host_cpu"; then
  14467. # AIX 5 now supports IA64 processor
  14468. lt_prog_compiler_static_CXX='-Bstatic'
  14469. else
  14470. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14471. fi
  14472. ;;
  14473. chorus*)
  14474. case $cc_basename in
  14475. cxch68*)
  14476. # Green Hills C++ Compiler
  14477. # _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"
  14478. ;;
  14479. esac
  14480. ;;
  14481. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14482. # This hack is so that the source file can tell whether it is being
  14483. # built for inclusion in a dll (and should export symbols for example).
  14484. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14485. ;;
  14486. dgux*)
  14487. case $cc_basename in
  14488. ec++*)
  14489. lt_prog_compiler_pic_CXX='-KPIC'
  14490. ;;
  14491. ghcx*)
  14492. # Green Hills C++ Compiler
  14493. lt_prog_compiler_pic_CXX='-pic'
  14494. ;;
  14495. *)
  14496. ;;
  14497. esac
  14498. ;;
  14499. freebsd* | dragonfly* | midnightbsd*)
  14500. # FreeBSD uses GNU C++
  14501. ;;
  14502. hpux9* | hpux10* | hpux11*)
  14503. case $cc_basename in
  14504. CC*)
  14505. lt_prog_compiler_wl_CXX='-Wl,'
  14506. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14507. if test ia64 != "$host_cpu"; then
  14508. lt_prog_compiler_pic_CXX='+Z'
  14509. fi
  14510. ;;
  14511. aCC*)
  14512. lt_prog_compiler_wl_CXX='-Wl,'
  14513. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14514. case $host_cpu in
  14515. hppa*64*|ia64*)
  14516. # +Z the default
  14517. ;;
  14518. *)
  14519. lt_prog_compiler_pic_CXX='+Z'
  14520. ;;
  14521. esac
  14522. ;;
  14523. *)
  14524. ;;
  14525. esac
  14526. ;;
  14527. interix*)
  14528. # This is c89, which is MS Visual C++ (no shared libs)
  14529. # Anyone wants to do a port?
  14530. ;;
  14531. irix5* | irix6* | nonstopux*)
  14532. case $cc_basename in
  14533. CC*)
  14534. lt_prog_compiler_wl_CXX='-Wl,'
  14535. lt_prog_compiler_static_CXX='-non_shared'
  14536. # CC pic flag -KPIC is the default.
  14537. ;;
  14538. *)
  14539. ;;
  14540. esac
  14541. ;;
  14542. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14543. case $cc_basename in
  14544. KCC*)
  14545. # KAI C++ Compiler
  14546. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14547. lt_prog_compiler_pic_CXX='-fPIC'
  14548. ;;
  14549. ecpc* )
  14550. # old Intel C++ for x86_64, which still supported -KPIC.
  14551. lt_prog_compiler_wl_CXX='-Wl,'
  14552. lt_prog_compiler_pic_CXX='-KPIC'
  14553. lt_prog_compiler_static_CXX='-static'
  14554. ;;
  14555. icpc* )
  14556. # Intel C++, used to be incompatible with GCC.
  14557. # ICC 10 doesn't accept -KPIC any more.
  14558. lt_prog_compiler_wl_CXX='-Wl,'
  14559. lt_prog_compiler_pic_CXX='-fPIC'
  14560. lt_prog_compiler_static_CXX='-static'
  14561. ;;
  14562. pgCC* | pgcpp*)
  14563. # Portland Group C++ compiler
  14564. lt_prog_compiler_wl_CXX='-Wl,'
  14565. lt_prog_compiler_pic_CXX='-fpic'
  14566. lt_prog_compiler_static_CXX='-Bstatic'
  14567. ;;
  14568. cxx*)
  14569. # Compaq C++
  14570. # Make sure the PIC flag is empty. It appears that all Alpha
  14571. # Linux and Compaq Tru64 Unix objects are PIC.
  14572. lt_prog_compiler_pic_CXX=
  14573. lt_prog_compiler_static_CXX='-non_shared'
  14574. ;;
  14575. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14576. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14577. lt_prog_compiler_wl_CXX='-Wl,'
  14578. lt_prog_compiler_pic_CXX='-qpic'
  14579. lt_prog_compiler_static_CXX='-qstaticlink'
  14580. ;;
  14581. *)
  14582. case `$CC -V 2>&1 | $SED 5q` in
  14583. *Sun\ C*)
  14584. # Sun C++ 5.9
  14585. lt_prog_compiler_pic_CXX='-KPIC'
  14586. lt_prog_compiler_static_CXX='-Bstatic'
  14587. lt_prog_compiler_wl_CXX='-Qoption ld '
  14588. ;;
  14589. esac
  14590. ;;
  14591. esac
  14592. ;;
  14593. lynxos*)
  14594. ;;
  14595. m88k*)
  14596. ;;
  14597. mvs*)
  14598. case $cc_basename in
  14599. cxx*)
  14600. lt_prog_compiler_pic_CXX='-W c,exportall'
  14601. ;;
  14602. *)
  14603. ;;
  14604. esac
  14605. ;;
  14606. netbsd*)
  14607. ;;
  14608. *qnx* | *nto*)
  14609. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14610. # it will coredump.
  14611. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14612. ;;
  14613. osf3* | osf4* | osf5*)
  14614. case $cc_basename in
  14615. KCC*)
  14616. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14617. ;;
  14618. RCC*)
  14619. # Rational C++ 2.4.1
  14620. lt_prog_compiler_pic_CXX='-pic'
  14621. ;;
  14622. cxx*)
  14623. # Digital/Compaq C++
  14624. lt_prog_compiler_wl_CXX='-Wl,'
  14625. # Make sure the PIC flag is empty. It appears that all Alpha
  14626. # Linux and Compaq Tru64 Unix objects are PIC.
  14627. lt_prog_compiler_pic_CXX=
  14628. lt_prog_compiler_static_CXX='-non_shared'
  14629. ;;
  14630. *)
  14631. ;;
  14632. esac
  14633. ;;
  14634. psos*)
  14635. ;;
  14636. solaris*)
  14637. case $cc_basename in
  14638. CC* | sunCC*)
  14639. # Sun C++ 4.2, 5.x and Centerline C++
  14640. lt_prog_compiler_pic_CXX='-KPIC'
  14641. lt_prog_compiler_static_CXX='-Bstatic'
  14642. lt_prog_compiler_wl_CXX='-Qoption ld '
  14643. ;;
  14644. gcx*)
  14645. # Green Hills C++ Compiler
  14646. lt_prog_compiler_pic_CXX='-PIC'
  14647. ;;
  14648. *)
  14649. ;;
  14650. esac
  14651. ;;
  14652. sunos4*)
  14653. case $cc_basename in
  14654. CC*)
  14655. # Sun C++ 4.x
  14656. lt_prog_compiler_pic_CXX='-pic'
  14657. lt_prog_compiler_static_CXX='-Bstatic'
  14658. ;;
  14659. lcc*)
  14660. # Lucid
  14661. lt_prog_compiler_pic_CXX='-pic'
  14662. ;;
  14663. *)
  14664. ;;
  14665. esac
  14666. ;;
  14667. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14668. case $cc_basename in
  14669. CC*)
  14670. lt_prog_compiler_wl_CXX='-Wl,'
  14671. lt_prog_compiler_pic_CXX='-KPIC'
  14672. lt_prog_compiler_static_CXX='-Bstatic'
  14673. ;;
  14674. esac
  14675. ;;
  14676. tandem*)
  14677. case $cc_basename in
  14678. NCC*)
  14679. # NonStop-UX NCC 3.20
  14680. lt_prog_compiler_pic_CXX='-KPIC'
  14681. ;;
  14682. *)
  14683. ;;
  14684. esac
  14685. ;;
  14686. vxworks*)
  14687. ;;
  14688. *)
  14689. lt_prog_compiler_can_build_shared_CXX=no
  14690. ;;
  14691. esac
  14692. fi
  14693. case $host_os in
  14694. # For platforms that do not support PIC, -DPIC is meaningless:
  14695. *djgpp*)
  14696. lt_prog_compiler_pic_CXX=
  14697. ;;
  14698. *)
  14699. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14700. ;;
  14701. esac
  14702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14703. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14704. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14705. then :
  14706. printf %s "(cached) " >&6
  14707. else $as_nop
  14708. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14709. fi
  14710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14711. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14712. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14713. #
  14714. # Check to make sure the PIC flag actually works.
  14715. #
  14716. if test -n "$lt_prog_compiler_pic_CXX"; then
  14717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14718. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14719. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14720. then :
  14721. printf %s "(cached) " >&6
  14722. else $as_nop
  14723. lt_cv_prog_compiler_pic_works_CXX=no
  14724. ac_outfile=conftest.$ac_objext
  14725. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14726. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14727. # Insert the option either (1) after the last *FLAGS variable, or
  14728. # (2) before a word containing "conftest.", or (3) at the end.
  14729. # Note that $ac_compile itself does not contain backslashes and begins
  14730. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14731. # The option is referenced via a variable to avoid confusing sed.
  14732. lt_compile=`echo "$ac_compile" | $SED \
  14733. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14734. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14735. -e 's:$: $lt_compiler_flag:'`
  14736. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14737. (eval "$lt_compile" 2>conftest.err)
  14738. ac_status=$?
  14739. cat conftest.err >&5
  14740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14741. if (exit $ac_status) && test -s "$ac_outfile"; then
  14742. # The compiler can only warn and ignore the option if not recognized
  14743. # So say no if there are warnings other than the usual output.
  14744. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14745. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14746. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14747. lt_cv_prog_compiler_pic_works_CXX=yes
  14748. fi
  14749. fi
  14750. $RM conftest*
  14751. fi
  14752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14753. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14754. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14755. case $lt_prog_compiler_pic_CXX in
  14756. "" | " "*) ;;
  14757. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14758. esac
  14759. else
  14760. lt_prog_compiler_pic_CXX=
  14761. lt_prog_compiler_can_build_shared_CXX=no
  14762. fi
  14763. fi
  14764. #
  14765. # Check to make sure the static flag actually works.
  14766. #
  14767. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14769. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14770. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14771. then :
  14772. printf %s "(cached) " >&6
  14773. else $as_nop
  14774. lt_cv_prog_compiler_static_works_CXX=no
  14775. save_LDFLAGS=$LDFLAGS
  14776. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14777. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14778. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14779. # The linker can only warn and ignore the option if not recognized
  14780. # So say no if there are warnings
  14781. if test -s conftest.err; then
  14782. # Append any errors to the config.log.
  14783. cat conftest.err 1>&5
  14784. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14785. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14786. if diff conftest.exp conftest.er2 >/dev/null; then
  14787. lt_cv_prog_compiler_static_works_CXX=yes
  14788. fi
  14789. else
  14790. lt_cv_prog_compiler_static_works_CXX=yes
  14791. fi
  14792. fi
  14793. $RM -r conftest*
  14794. LDFLAGS=$save_LDFLAGS
  14795. fi
  14796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14797. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14798. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14799. :
  14800. else
  14801. lt_prog_compiler_static_CXX=
  14802. fi
  14803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14804. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14805. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14806. then :
  14807. printf %s "(cached) " >&6
  14808. else $as_nop
  14809. lt_cv_prog_compiler_c_o_CXX=no
  14810. $RM -r conftest 2>/dev/null
  14811. mkdir conftest
  14812. cd conftest
  14813. mkdir out
  14814. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14815. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14816. # Insert the option either (1) after the last *FLAGS variable, or
  14817. # (2) before a word containing "conftest.", or (3) at the end.
  14818. # Note that $ac_compile itself does not contain backslashes and begins
  14819. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14820. lt_compile=`echo "$ac_compile" | $SED \
  14821. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14822. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14823. -e 's:$: $lt_compiler_flag:'`
  14824. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14825. (eval "$lt_compile" 2>out/conftest.err)
  14826. ac_status=$?
  14827. cat out/conftest.err >&5
  14828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14829. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14830. then
  14831. # The compiler can only warn and ignore the option if not recognized
  14832. # So say no if there are warnings
  14833. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14834. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14835. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14836. lt_cv_prog_compiler_c_o_CXX=yes
  14837. fi
  14838. fi
  14839. chmod u+w . 2>&5
  14840. $RM conftest*
  14841. # SGI C++ compiler will create directory out/ii_files/ for
  14842. # template instantiation
  14843. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14844. $RM out/* && rmdir out
  14845. cd ..
  14846. $RM -r conftest
  14847. $RM conftest*
  14848. fi
  14849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14850. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14852. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14853. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14854. then :
  14855. printf %s "(cached) " >&6
  14856. else $as_nop
  14857. lt_cv_prog_compiler_c_o_CXX=no
  14858. $RM -r conftest 2>/dev/null
  14859. mkdir conftest
  14860. cd conftest
  14861. mkdir out
  14862. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14863. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14864. # Insert the option either (1) after the last *FLAGS variable, or
  14865. # (2) before a word containing "conftest.", or (3) at the end.
  14866. # Note that $ac_compile itself does not contain backslashes and begins
  14867. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14868. lt_compile=`echo "$ac_compile" | $SED \
  14869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14871. -e 's:$: $lt_compiler_flag:'`
  14872. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14873. (eval "$lt_compile" 2>out/conftest.err)
  14874. ac_status=$?
  14875. cat out/conftest.err >&5
  14876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14877. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14878. then
  14879. # The compiler can only warn and ignore the option if not recognized
  14880. # So say no if there are warnings
  14881. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14882. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14883. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14884. lt_cv_prog_compiler_c_o_CXX=yes
  14885. fi
  14886. fi
  14887. chmod u+w . 2>&5
  14888. $RM conftest*
  14889. # SGI C++ compiler will create directory out/ii_files/ for
  14890. # template instantiation
  14891. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14892. $RM out/* && rmdir out
  14893. cd ..
  14894. $RM -r conftest
  14895. $RM conftest*
  14896. fi
  14897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14898. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14899. hard_links=nottested
  14900. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14901. # do not overwrite the value of need_locks provided by the user
  14902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14903. printf %s "checking if we can lock with hard links... " >&6; }
  14904. hard_links=yes
  14905. $RM conftest*
  14906. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14907. touch conftest.a
  14908. ln conftest.a conftest.b 2>&5 || hard_links=no
  14909. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14911. printf "%s\n" "$hard_links" >&6; }
  14912. if test no = "$hard_links"; then
  14913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14914. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14915. need_locks=warn
  14916. fi
  14917. else
  14918. need_locks=no
  14919. fi
  14920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14921. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14922. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14923. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14924. case $host_os in
  14925. aix[4-9]*)
  14926. # If we're using GNU nm, then we don't want the "-C" option.
  14927. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14928. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14929. # weak defined symbols like other global defined symbols, whereas
  14930. # GNU nm marks them as "W".
  14931. # While the 'weak' keyword is ignored in the Export File, we need
  14932. # it in the Import File for the 'aix-soname' feature, so we have
  14933. # to replace the "-B" option with "-P" for AIX nm.
  14934. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14935. 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'
  14936. else
  14937. 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'
  14938. fi
  14939. ;;
  14940. pw32*)
  14941. export_symbols_cmds_CXX=$ltdll_cmds
  14942. ;;
  14943. cygwin* | mingw* | windows* | cegcc*)
  14944. case $cc_basename in
  14945. cl* | icl*)
  14946. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14947. ;;
  14948. *)
  14949. 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'
  14950. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14951. ;;
  14952. esac
  14953. ;;
  14954. *)
  14955. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14956. ;;
  14957. esac
  14958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14959. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14960. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14961. with_gnu_ld_CXX=$with_gnu_ld
  14962. #
  14963. # Do we need to explicitly link libc?
  14964. #
  14965. case "x$archive_cmds_need_lc_CXX" in
  14966. x|xyes)
  14967. # Assume -lc should be added
  14968. archive_cmds_need_lc_CXX=yes
  14969. if test yes,yes = "$GCC,$enable_shared"; then
  14970. case $archive_cmds_CXX in
  14971. *'~'*)
  14972. # FIXME: we may have to deal with multi-command sequences.
  14973. ;;
  14974. '$CC '*)
  14975. # Test whether the compiler implicitly links with -lc since on some
  14976. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14977. # to ld, don't add -lc before -lgcc.
  14978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14979. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14980. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14981. then :
  14982. printf %s "(cached) " >&6
  14983. else $as_nop
  14984. $RM conftest*
  14985. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14986. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14987. (eval $ac_compile) 2>&5
  14988. ac_status=$?
  14989. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14990. test $ac_status = 0; } 2>conftest.err; then
  14991. soname=conftest
  14992. lib=conftest
  14993. libobjs=conftest.$ac_objext
  14994. deplibs=
  14995. wl=$lt_prog_compiler_wl_CXX
  14996. pic_flag=$lt_prog_compiler_pic_CXX
  14997. compiler_flags=-v
  14998. linker_flags=-v
  14999. verstring=
  15000. output_objdir=.
  15001. libname=conftest
  15002. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15003. allow_undefined_flag_CXX=
  15004. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15005. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15006. ac_status=$?
  15007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15008. test $ac_status = 0; }
  15009. then
  15010. lt_cv_archive_cmds_need_lc_CXX=no
  15011. else
  15012. lt_cv_archive_cmds_need_lc_CXX=yes
  15013. fi
  15014. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15015. else
  15016. cat conftest.err 1>&5
  15017. fi
  15018. $RM conftest*
  15019. fi
  15020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15021. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15022. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15023. ;;
  15024. esac
  15025. fi
  15026. ;;
  15027. esac
  15028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15029. printf %s "checking dynamic linker characteristics... " >&6; }
  15030. library_names_spec=
  15031. libname_spec='lib$name'
  15032. soname_spec=
  15033. shrext_cmds=.so
  15034. postinstall_cmds=
  15035. postuninstall_cmds=
  15036. finish_cmds=
  15037. finish_eval=
  15038. shlibpath_var=
  15039. shlibpath_overrides_runpath=unknown
  15040. version_type=none
  15041. dynamic_linker="$host_os ld.so"
  15042. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15043. need_lib_prefix=unknown
  15044. hardcode_into_libs=no
  15045. # when you set need_version to no, make sure it does not cause -set_version
  15046. # flags to be left without arguments
  15047. need_version=unknown
  15048. case $host_os in
  15049. aix3*)
  15050. version_type=linux # correct to gnu/linux during the next big refactor
  15051. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  15052. shlibpath_var=LIBPATH
  15053. # AIX 3 has no versioning support, so we append a major version to the name.
  15054. soname_spec='$libname$release$shared_ext$major'
  15055. ;;
  15056. aix[4-9]*)
  15057. version_type=linux # correct to gnu/linux during the next big refactor
  15058. need_lib_prefix=no
  15059. need_version=no
  15060. hardcode_into_libs=yes
  15061. if test ia64 = "$host_cpu"; then
  15062. # AIX 5 supports IA64
  15063. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  15064. shlibpath_var=LD_LIBRARY_PATH
  15065. else
  15066. # With GCC up to 2.95.x, collect2 would create an import file
  15067. # for dependence libraries. The import file would start with
  15068. # the line '#! .'. This would cause the generated library to
  15069. # depend on '.', always an invalid library. This was fixed in
  15070. # development snapshots of GCC prior to 3.0.
  15071. case $host_os in
  15072. aix4 | aix4.[01] | aix4.[01].*)
  15073. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15074. echo ' yes '
  15075. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  15076. :
  15077. else
  15078. can_build_shared=no
  15079. fi
  15080. ;;
  15081. esac
  15082. # Using Import Files as archive members, it is possible to support
  15083. # filename-based versioning of shared library archives on AIX. While
  15084. # this would work for both with and without runtime linking, it will
  15085. # prevent static linking of such archives. So we do filename-based
  15086. # shared library versioning with .so extension only, which is used
  15087. # when both runtime linking and shared linking is enabled.
  15088. # Unfortunately, runtime linking may impact performance, so we do
  15089. # not want this to be the default eventually. Also, we use the
  15090. # versioned .so libs for executables only if there is the -brtl
  15091. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  15092. # To allow for filename-based versioning support, we need to create
  15093. # libNAME.so.V as an archive file, containing:
  15094. # *) an Import File, referring to the versioned filename of the
  15095. # archive as well as the shared archive member, telling the
  15096. # bitwidth (32 or 64) of that shared object, and providing the
  15097. # list of exported symbols of that shared object, eventually
  15098. # decorated with the 'weak' keyword
  15099. # *) the shared object with the F_LOADONLY flag set, to really avoid
  15100. # it being seen by the linker.
  15101. # At run time we better use the real file rather than another symlink,
  15102. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  15103. case $with_aix_soname,$aix_use_runtimelinking in
  15104. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  15105. # soname into executable. Probably we can add versioning support to
  15106. # collect2, so additional links can be useful in future.
  15107. aix,yes) # traditional libtool
  15108. dynamic_linker='AIX unversionable lib.so'
  15109. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15110. # instead of lib<name>.a to let people know that these are not
  15111. # typical AIX shared libraries.
  15112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15113. ;;
  15114. aix,no) # traditional AIX only
  15115. dynamic_linker='AIX lib.a(lib.so.V)'
  15116. # We preserve .a as extension for shared libraries through AIX4.2
  15117. # and later when we are not doing run time linking.
  15118. library_names_spec='$libname$release.a $libname.a'
  15119. soname_spec='$libname$release$shared_ext$major'
  15120. ;;
  15121. svr4,*) # full svr4 only
  15122. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  15123. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15124. # We do not specify a path in Import Files, so LIBPATH fires.
  15125. shlibpath_overrides_runpath=yes
  15126. ;;
  15127. *,yes) # both, prefer svr4
  15128. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  15129. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15130. # unpreferred sharedlib libNAME.a needs extra handling
  15131. 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"'
  15132. 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"'
  15133. # We do not specify a path in Import Files, so LIBPATH fires.
  15134. shlibpath_overrides_runpath=yes
  15135. ;;
  15136. *,no) # both, prefer aix
  15137. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  15138. library_names_spec='$libname$release.a $libname.a'
  15139. soname_spec='$libname$release$shared_ext$major'
  15140. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  15141. 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)'
  15142. 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"'
  15143. ;;
  15144. esac
  15145. shlibpath_var=LIBPATH
  15146. fi
  15147. ;;
  15148. amigaos*)
  15149. case $host_cpu in
  15150. powerpc)
  15151. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15152. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15153. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15154. ;;
  15155. m68k)
  15156. library_names_spec='$libname.ixlibrary $libname.a'
  15157. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15158. 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'
  15159. ;;
  15160. esac
  15161. ;;
  15162. beos*)
  15163. library_names_spec='$libname$shared_ext'
  15164. dynamic_linker="$host_os ld.so"
  15165. shlibpath_var=LIBRARY_PATH
  15166. ;;
  15167. bsdi[45]*)
  15168. version_type=linux # correct to gnu/linux during the next big refactor
  15169. need_version=no
  15170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15171. soname_spec='$libname$release$shared_ext$major'
  15172. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15173. shlibpath_var=LD_LIBRARY_PATH
  15174. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15175. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15176. # the default ld.so.conf also contains /usr/contrib/lib and
  15177. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15178. # libtool to hard-code these into programs
  15179. ;;
  15180. cygwin* | mingw* | windows* | pw32* | cegcc*)
  15181. version_type=windows
  15182. shrext_cmds=.dll
  15183. need_version=no
  15184. need_lib_prefix=no
  15185. case $GCC,$cc_basename in
  15186. yes,*)
  15187. # gcc
  15188. library_names_spec='$libname.dll.a'
  15189. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15190. # If user builds GCC with mulitlibs enabled,
  15191. # it should just install on $(libdir)
  15192. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  15193. if test yes = $multilib; then
  15194. postinstall_cmds='base_file=`basename \$file`~
  15195. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15196. dldir=$destdir/`dirname \$dlpath`~
  15197. $install_prog $dir/$dlname $destdir/$dlname~
  15198. chmod a+x $destdir/$dlname~
  15199. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15200. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  15201. fi'
  15202. else
  15203. postinstall_cmds='base_file=`basename \$file`~
  15204. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15205. dldir=$destdir/`dirname \$dlpath`~
  15206. test -d \$dldir || mkdir -p \$dldir~
  15207. $install_prog $dir/$dlname \$dldir/$dlname~
  15208. chmod a+x \$dldir/$dlname~
  15209. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15210. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15211. fi'
  15212. fi
  15213. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15214. dlpath=$dir/\$dldll~
  15215. $RM \$dlpath'
  15216. shlibpath_overrides_runpath=yes
  15217. case $host_os in
  15218. cygwin*)
  15219. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15220. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15221. ;;
  15222. mingw* | windows* | cegcc*)
  15223. # MinGW DLLs use traditional 'lib' prefix
  15224. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15225. ;;
  15226. pw32*)
  15227. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15228. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15229. ;;
  15230. esac
  15231. dynamic_linker='Win32 ld.exe'
  15232. ;;
  15233. *,cl* | *,icl*)
  15234. # Native MSVC or ICC
  15235. libname_spec='$name'
  15236. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15237. library_names_spec='$libname.dll.lib'
  15238. case $build_os in
  15239. mingw* | windows*)
  15240. sys_lib_search_path_spec=
  15241. lt_save_ifs=$IFS
  15242. IFS=';'
  15243. for lt_path in $LIB
  15244. do
  15245. IFS=$lt_save_ifs
  15246. # Let DOS variable expansion print the short 8.3 style file name.
  15247. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15248. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15249. done
  15250. IFS=$lt_save_ifs
  15251. # Convert to MSYS style.
  15252. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15253. ;;
  15254. cygwin*)
  15255. # Convert to unix form, then to dos form, then back to unix form
  15256. # but this time dos style (no spaces!) so that the unix form looks
  15257. # like /cygdrive/c/PROGRA~1:/cygdr...
  15258. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15259. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15260. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15261. ;;
  15262. *)
  15263. sys_lib_search_path_spec=$LIB
  15264. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15265. # It is most probably a Windows format PATH.
  15266. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15267. else
  15268. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15269. fi
  15270. # FIXME: find the short name or the path components, as spaces are
  15271. # common. (e.g. "Program Files" -> "PROGRA~1")
  15272. ;;
  15273. esac
  15274. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15275. postinstall_cmds='base_file=`basename \$file`~
  15276. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15277. dldir=$destdir/`dirname \$dlpath`~
  15278. test -d \$dldir || mkdir -p \$dldir~
  15279. $install_prog $dir/$dlname \$dldir/$dlname'
  15280. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15281. dlpath=$dir/\$dldll~
  15282. $RM \$dlpath'
  15283. shlibpath_overrides_runpath=yes
  15284. dynamic_linker='Win32 link.exe'
  15285. ;;
  15286. *)
  15287. # Assume MSVC and ICC wrapper
  15288. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15289. dynamic_linker='Win32 ld.exe'
  15290. ;;
  15291. esac
  15292. # FIXME: first we should search . and the directory the executable is in
  15293. shlibpath_var=PATH
  15294. ;;
  15295. darwin* | rhapsody*)
  15296. dynamic_linker="$host_os dyld"
  15297. version_type=darwin
  15298. need_lib_prefix=no
  15299. need_version=no
  15300. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  15301. soname_spec='$libname$release$major$shared_ext'
  15302. shlibpath_overrides_runpath=yes
  15303. shlibpath_var=DYLD_LIBRARY_PATH
  15304. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  15305. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15306. ;;
  15307. dgux*)
  15308. version_type=linux # correct to gnu/linux during the next big refactor
  15309. need_lib_prefix=no
  15310. need_version=no
  15311. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15312. soname_spec='$libname$release$shared_ext$major'
  15313. shlibpath_var=LD_LIBRARY_PATH
  15314. ;;
  15315. freebsd* | dragonfly* | midnightbsd*)
  15316. # DragonFly does not have aout. When/if they implement a new
  15317. # versioning mechanism, adjust this.
  15318. if test -x /usr/bin/objformat; then
  15319. objformat=`/usr/bin/objformat`
  15320. else
  15321. case $host_os in
  15322. freebsd[23].*) objformat=aout ;;
  15323. *) objformat=elf ;;
  15324. esac
  15325. fi
  15326. # Handle Gentoo/FreeBSD as it was Linux
  15327. case $host_vendor in
  15328. gentoo)
  15329. version_type=linux ;;
  15330. *)
  15331. version_type=freebsd-$objformat ;;
  15332. esac
  15333. case $version_type in
  15334. freebsd-elf*)
  15335. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15336. soname_spec='$libname$release$shared_ext$major'
  15337. need_version=no
  15338. need_lib_prefix=no
  15339. ;;
  15340. freebsd-*)
  15341. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15342. need_version=yes
  15343. ;;
  15344. linux)
  15345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15346. soname_spec='${libname}${release}${shared_ext}$major'
  15347. need_lib_prefix=no
  15348. need_version=no
  15349. ;;
  15350. esac
  15351. case $host_cpu in
  15352. powerpc64)
  15353. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  15354. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  15355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15356. /* end confdefs.h. */
  15357. int test_pointer_size[sizeof (void *) - 5];
  15358. _ACEOF
  15359. if ac_fn_cxx_try_compile "$LINENO"
  15360. then :
  15361. shlibpath_var=LD_LIBRARY_PATH
  15362. else $as_nop
  15363. shlibpath_var=LD_32_LIBRARY_PATH
  15364. fi
  15365. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15366. ;;
  15367. *)
  15368. shlibpath_var=LD_LIBRARY_PATH
  15369. ;;
  15370. esac
  15371. case $host_os in
  15372. freebsd2.*)
  15373. shlibpath_overrides_runpath=yes
  15374. ;;
  15375. freebsd3.[01]* | freebsdelf3.[01]*)
  15376. shlibpath_overrides_runpath=yes
  15377. hardcode_into_libs=yes
  15378. ;;
  15379. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15380. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15381. shlibpath_overrides_runpath=no
  15382. hardcode_into_libs=yes
  15383. ;;
  15384. *) # from 4.6 on, and DragonFly
  15385. shlibpath_overrides_runpath=yes
  15386. hardcode_into_libs=yes
  15387. ;;
  15388. esac
  15389. ;;
  15390. haiku*)
  15391. version_type=linux # correct to gnu/linux during the next big refactor
  15392. need_lib_prefix=no
  15393. need_version=no
  15394. dynamic_linker="$host_os runtime_loader"
  15395. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15396. soname_spec='$libname$release$shared_ext$major'
  15397. shlibpath_var=LIBRARY_PATH
  15398. shlibpath_overrides_runpath=no
  15399. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15400. hardcode_into_libs=yes
  15401. ;;
  15402. hpux9* | hpux10* | hpux11*)
  15403. # Give a soname corresponding to the major version so that dld.sl refuses to
  15404. # link against other versions.
  15405. version_type=sunos
  15406. need_lib_prefix=no
  15407. need_version=no
  15408. case $host_cpu in
  15409. ia64*)
  15410. shrext_cmds='.so'
  15411. hardcode_into_libs=yes
  15412. dynamic_linker="$host_os dld.so"
  15413. shlibpath_var=LD_LIBRARY_PATH
  15414. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15415. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15416. soname_spec='$libname$release$shared_ext$major'
  15417. if test 32 = "$HPUX_IA64_MODE"; then
  15418. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15419. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15420. else
  15421. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15422. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15423. fi
  15424. ;;
  15425. hppa*64*)
  15426. shrext_cmds='.sl'
  15427. hardcode_into_libs=yes
  15428. dynamic_linker="$host_os dld.sl"
  15429. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15430. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15432. soname_spec='$libname$release$shared_ext$major'
  15433. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15434. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15435. ;;
  15436. *)
  15437. shrext_cmds='.sl'
  15438. dynamic_linker="$host_os dld.sl"
  15439. shlibpath_var=SHLIB_PATH
  15440. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15442. soname_spec='$libname$release$shared_ext$major'
  15443. ;;
  15444. esac
  15445. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15446. postinstall_cmds='chmod 555 $lib'
  15447. # or fails outright, so override atomically:
  15448. install_override_mode=555
  15449. ;;
  15450. interix[3-9]*)
  15451. version_type=linux # correct to gnu/linux during the next big refactor
  15452. need_lib_prefix=no
  15453. need_version=no
  15454. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15455. soname_spec='$libname$release$shared_ext$major'
  15456. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15457. shlibpath_var=LD_LIBRARY_PATH
  15458. shlibpath_overrides_runpath=no
  15459. hardcode_into_libs=yes
  15460. ;;
  15461. irix5* | irix6* | nonstopux*)
  15462. case $host_os in
  15463. nonstopux*) version_type=nonstopux ;;
  15464. *)
  15465. if test yes = "$lt_cv_prog_gnu_ld"; then
  15466. version_type=linux # correct to gnu/linux during the next big refactor
  15467. else
  15468. version_type=irix
  15469. fi ;;
  15470. esac
  15471. need_lib_prefix=no
  15472. need_version=no
  15473. soname_spec='$libname$release$shared_ext$major'
  15474. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15475. case $host_os in
  15476. irix5* | nonstopux*)
  15477. libsuff= shlibsuff=
  15478. ;;
  15479. *)
  15480. case $LD in # libtool.m4 will add one of these switches to LD
  15481. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15482. libsuff= shlibsuff= libmagic=32-bit;;
  15483. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15484. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15485. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15486. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15487. *) libsuff= shlibsuff= libmagic=never-match;;
  15488. esac
  15489. ;;
  15490. esac
  15491. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15492. shlibpath_overrides_runpath=no
  15493. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15494. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15495. hardcode_into_libs=yes
  15496. ;;
  15497. # No shared lib support for Linux oldld, aout, or coff.
  15498. linux*oldld* | linux*aout* | linux*coff*)
  15499. dynamic_linker=no
  15500. ;;
  15501. linux*android*)
  15502. version_type=none # Android doesn't support versioned libraries.
  15503. need_lib_prefix=no
  15504. need_version=no
  15505. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  15506. soname_spec='$libname$release$shared_ext'
  15507. finish_cmds=
  15508. shlibpath_var=LD_LIBRARY_PATH
  15509. shlibpath_overrides_runpath=yes
  15510. # This implies no fast_install, which is unacceptable.
  15511. # Some rework will be needed to allow for fast_install
  15512. # before this can be enabled.
  15513. hardcode_into_libs=yes
  15514. dynamic_linker='Android linker'
  15515. # -rpath works at least for libraries that are not overridden by
  15516. # libraries installed in system locations.
  15517. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15518. ;;
  15519. # This must be glibc/ELF.
  15520. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15521. version_type=linux # correct to gnu/linux during the next big refactor
  15522. need_lib_prefix=no
  15523. need_version=no
  15524. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15525. soname_spec='$libname$release$shared_ext$major'
  15526. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15527. shlibpath_var=LD_LIBRARY_PATH
  15528. shlibpath_overrides_runpath=no
  15529. # Some binutils ld are patched to set DT_RUNPATH
  15530. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15531. then :
  15532. printf %s "(cached) " >&6
  15533. else $as_nop
  15534. lt_cv_shlibpath_overrides_runpath=no
  15535. save_LDFLAGS=$LDFLAGS
  15536. save_libdir=$libdir
  15537. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15538. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15540. /* end confdefs.h. */
  15541. int
  15542. main (void)
  15543. {
  15544. ;
  15545. return 0;
  15546. }
  15547. _ACEOF
  15548. if ac_fn_cxx_try_link "$LINENO"
  15549. then :
  15550. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15551. then :
  15552. lt_cv_shlibpath_overrides_runpath=yes
  15553. fi
  15554. fi
  15555. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15556. conftest$ac_exeext conftest.$ac_ext
  15557. LDFLAGS=$save_LDFLAGS
  15558. libdir=$save_libdir
  15559. fi
  15560. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15561. # This implies no fast_install, which is unacceptable.
  15562. # Some rework will be needed to allow for fast_install
  15563. # before this can be enabled.
  15564. hardcode_into_libs=yes
  15565. # Ideally, we could use ldconfig to report *all* directories which are
  15566. # searched for libraries, however this is still not possible. Aside from not
  15567. # being certain /sbin/ldconfig is available, command
  15568. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15569. # even though it is searched at run-time. Try to do the best guess by
  15570. # appending ld.so.conf contents (and includes) to the search path.
  15571. if test -f /etc/ld.so.conf; then
  15572. 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' ' '`
  15573. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15574. fi
  15575. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15576. # powerpc, because MkLinux only supported shared libraries with the
  15577. # GNU dynamic linker. Since this was broken with cross compilers,
  15578. # most powerpc-linux boxes support dynamic linking these days and
  15579. # people can always --disable-shared, the test was removed, and we
  15580. # assume the GNU/Linux dynamic linker is in use.
  15581. dynamic_linker='GNU/Linux ld.so'
  15582. ;;
  15583. netbsd*)
  15584. version_type=sunos
  15585. need_lib_prefix=no
  15586. need_version=no
  15587. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15588. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15589. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15590. dynamic_linker='NetBSD (a.out) ld.so'
  15591. else
  15592. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15593. soname_spec='$libname$release$shared_ext$major'
  15594. dynamic_linker='NetBSD ld.elf_so'
  15595. fi
  15596. shlibpath_var=LD_LIBRARY_PATH
  15597. shlibpath_overrides_runpath=yes
  15598. hardcode_into_libs=yes
  15599. ;;
  15600. newsos6)
  15601. version_type=linux # correct to gnu/linux during the next big refactor
  15602. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15603. shlibpath_var=LD_LIBRARY_PATH
  15604. shlibpath_overrides_runpath=yes
  15605. ;;
  15606. *nto* | *qnx*)
  15607. version_type=qnx
  15608. need_lib_prefix=no
  15609. need_version=no
  15610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15611. soname_spec='$libname$release$shared_ext$major'
  15612. shlibpath_var=LD_LIBRARY_PATH
  15613. shlibpath_overrides_runpath=no
  15614. hardcode_into_libs=yes
  15615. dynamic_linker='ldqnx.so'
  15616. ;;
  15617. openbsd*)
  15618. version_type=sunos
  15619. sys_lib_dlsearch_path_spec=/usr/lib
  15620. need_lib_prefix=no
  15621. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15622. need_version=no
  15623. else
  15624. need_version=yes
  15625. fi
  15626. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15627. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15628. shlibpath_var=LD_LIBRARY_PATH
  15629. shlibpath_overrides_runpath=yes
  15630. ;;
  15631. os2*)
  15632. libname_spec='$name'
  15633. version_type=windows
  15634. shrext_cmds=.dll
  15635. need_version=no
  15636. need_lib_prefix=no
  15637. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15638. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15639. v=$($ECHO $release$versuffix | tr -d .-);
  15640. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15641. $ECHO $n$v`$shared_ext'
  15642. library_names_spec='${libname}_dll.$libext'
  15643. dynamic_linker='OS/2 ld.exe'
  15644. shlibpath_var=BEGINLIBPATH
  15645. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15646. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15647. postinstall_cmds='base_file=`basename \$file`~
  15648. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15649. dldir=$destdir/`dirname \$dlpath`~
  15650. test -d \$dldir || mkdir -p \$dldir~
  15651. $install_prog $dir/$dlname \$dldir/$dlname~
  15652. chmod a+x \$dldir/$dlname~
  15653. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15654. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15655. fi'
  15656. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15657. dlpath=$dir/\$dldll~
  15658. $RM \$dlpath'
  15659. ;;
  15660. osf3* | osf4* | osf5*)
  15661. version_type=osf
  15662. need_lib_prefix=no
  15663. need_version=no
  15664. soname_spec='$libname$release$shared_ext$major'
  15665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15666. shlibpath_var=LD_LIBRARY_PATH
  15667. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15668. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15669. ;;
  15670. rdos*)
  15671. dynamic_linker=no
  15672. ;;
  15673. solaris*)
  15674. version_type=linux # correct to gnu/linux during the next big refactor
  15675. need_lib_prefix=no
  15676. need_version=no
  15677. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15678. soname_spec='$libname$release$shared_ext$major'
  15679. shlibpath_var=LD_LIBRARY_PATH
  15680. shlibpath_overrides_runpath=yes
  15681. hardcode_into_libs=yes
  15682. # ldd complains unless libraries are executable
  15683. postinstall_cmds='chmod +x $lib'
  15684. ;;
  15685. sunos4*)
  15686. version_type=sunos
  15687. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15688. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15689. shlibpath_var=LD_LIBRARY_PATH
  15690. shlibpath_overrides_runpath=yes
  15691. if test yes = "$with_gnu_ld"; then
  15692. need_lib_prefix=no
  15693. fi
  15694. need_version=yes
  15695. ;;
  15696. sysv4 | sysv4.3*)
  15697. version_type=linux # correct to gnu/linux during the next big refactor
  15698. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15699. soname_spec='$libname$release$shared_ext$major'
  15700. shlibpath_var=LD_LIBRARY_PATH
  15701. case $host_vendor in
  15702. sni)
  15703. shlibpath_overrides_runpath=no
  15704. need_lib_prefix=no
  15705. runpath_var=LD_RUN_PATH
  15706. ;;
  15707. siemens)
  15708. need_lib_prefix=no
  15709. ;;
  15710. motorola)
  15711. need_lib_prefix=no
  15712. need_version=no
  15713. shlibpath_overrides_runpath=no
  15714. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15715. ;;
  15716. esac
  15717. ;;
  15718. sysv4*MP*)
  15719. if test -d /usr/nec; then
  15720. version_type=linux # correct to gnu/linux during the next big refactor
  15721. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15722. soname_spec='$libname$shared_ext.$major'
  15723. shlibpath_var=LD_LIBRARY_PATH
  15724. fi
  15725. ;;
  15726. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15727. version_type=sco
  15728. need_lib_prefix=no
  15729. need_version=no
  15730. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15731. soname_spec='$libname$release$shared_ext$major'
  15732. shlibpath_var=LD_LIBRARY_PATH
  15733. shlibpath_overrides_runpath=yes
  15734. hardcode_into_libs=yes
  15735. if test yes = "$with_gnu_ld"; then
  15736. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15737. else
  15738. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15739. case $host_os in
  15740. sco3.2v5*)
  15741. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15742. ;;
  15743. esac
  15744. fi
  15745. sys_lib_dlsearch_path_spec='/usr/lib'
  15746. ;;
  15747. tpf*)
  15748. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15749. version_type=linux # correct to gnu/linux during the next big refactor
  15750. need_lib_prefix=no
  15751. need_version=no
  15752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15753. shlibpath_var=LD_LIBRARY_PATH
  15754. shlibpath_overrides_runpath=no
  15755. hardcode_into_libs=yes
  15756. ;;
  15757. uts4*)
  15758. version_type=linux # correct to gnu/linux during the next big refactor
  15759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15760. soname_spec='$libname$release$shared_ext$major'
  15761. shlibpath_var=LD_LIBRARY_PATH
  15762. ;;
  15763. *)
  15764. dynamic_linker=no
  15765. ;;
  15766. esac
  15767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15768. printf "%s\n" "$dynamic_linker" >&6; }
  15769. test no = "$dynamic_linker" && can_build_shared=no
  15770. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15771. if test yes = "$GCC"; then
  15772. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15773. fi
  15774. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15775. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15776. fi
  15777. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15778. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15779. fi
  15780. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15781. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15782. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15783. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15784. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15785. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15787. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15788. hardcode_action_CXX=
  15789. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15790. test -n "$runpath_var_CXX" ||
  15791. test yes = "$hardcode_automatic_CXX"; then
  15792. # We can hardcode non-existent directories.
  15793. if test no != "$hardcode_direct_CXX" &&
  15794. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15795. # have to relink, otherwise we might link with an installed library
  15796. # when we should be linking with a yet-to-be-installed one
  15797. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15798. test no != "$hardcode_minus_L_CXX"; then
  15799. # Linking always hardcodes the temporary library directory.
  15800. hardcode_action_CXX=relink
  15801. else
  15802. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15803. hardcode_action_CXX=immediate
  15804. fi
  15805. else
  15806. # We cannot hardcode anything, or else we can only hardcode existing
  15807. # directories.
  15808. hardcode_action_CXX=unsupported
  15809. fi
  15810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15811. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15812. if test relink = "$hardcode_action_CXX" ||
  15813. test yes = "$inherit_rpath_CXX"; then
  15814. # Fast installation is not supported
  15815. enable_fast_install=no
  15816. elif test yes = "$shlibpath_overrides_runpath" ||
  15817. test no = "$enable_shared"; then
  15818. # Fast installation is not necessary
  15819. enable_fast_install=needless
  15820. fi
  15821. fi # test -n "$compiler"
  15822. CC=$lt_save_CC
  15823. CFLAGS=$lt_save_CFLAGS
  15824. LDCXX=$LD
  15825. LD=$lt_save_LD
  15826. GCC=$lt_save_GCC
  15827. with_gnu_ld=$lt_save_with_gnu_ld
  15828. lt_cv_path_LDCXX=$lt_cv_path_LD
  15829. lt_cv_path_LD=$lt_save_path_LD
  15830. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15831. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15832. fi # test yes != "$_lt_caught_CXX_error"
  15833. ac_ext=cpp
  15834. ac_cpp='$CXXCPP $CPPFLAGS'
  15835. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15836. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15837. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15838. if test "$GCC" = yes
  15839. then :
  15840. for flag in -Wall -Wextra; do
  15841. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15843. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15844. if eval test \${$as_CACHEVAR+y}
  15845. then :
  15846. printf %s "(cached) " >&6
  15847. else $as_nop
  15848. ax_check_save_flags=$CXXFLAGS
  15849. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15851. /* end confdefs.h. */
  15852. int main(void) { return 0; }
  15853. _ACEOF
  15854. if ac_fn_cxx_try_compile "$LINENO"
  15855. then :
  15856. eval "$as_CACHEVAR=yes"
  15857. else $as_nop
  15858. eval "$as_CACHEVAR=no"
  15859. fi
  15860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15861. CXXFLAGS=$ax_check_save_flags
  15862. fi
  15863. eval ac_res=\$$as_CACHEVAR
  15864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15865. printf "%s\n" "$ac_res" >&6; }
  15866. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15867. then :
  15868. if test ${AM_CXXFLAGS+y}
  15869. then :
  15870. case " $AM_CXXFLAGS " in #(
  15871. *" $flag "*) :
  15872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15873. (: AM_CXXFLAGS already contains $flag) 2>&5
  15874. ac_status=$?
  15875. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15876. test $ac_status = 0; } ;; #(
  15877. *) :
  15878. as_fn_append AM_CXXFLAGS " $flag"
  15879. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15880. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15881. ac_status=$?
  15882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15883. test $ac_status = 0; }
  15884. ;;
  15885. esac
  15886. else $as_nop
  15887. AM_CXXFLAGS=$flag
  15888. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15889. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15890. ac_status=$?
  15891. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15892. test $ac_status = 0; }
  15893. fi
  15894. else $as_nop
  15895. :
  15896. fi
  15897. done
  15898. for flag in -fexceptions; do
  15899. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15901. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15902. if eval test \${$as_CACHEVAR+y}
  15903. then :
  15904. printf %s "(cached) " >&6
  15905. else $as_nop
  15906. ax_check_save_flags=$CXXFLAGS
  15907. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15909. /* end confdefs.h. */
  15910. int main(void) { return 0; }
  15911. _ACEOF
  15912. if ac_fn_cxx_try_compile "$LINENO"
  15913. then :
  15914. eval "$as_CACHEVAR=yes"
  15915. else $as_nop
  15916. eval "$as_CACHEVAR=no"
  15917. fi
  15918. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15919. CXXFLAGS=$ax_check_save_flags
  15920. fi
  15921. eval ac_res=\$$as_CACHEVAR
  15922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15923. printf "%s\n" "$ac_res" >&6; }
  15924. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15925. then :
  15926. if test ${AM_CXXFLAGS+y}
  15927. then :
  15928. case " $AM_CXXFLAGS " in #(
  15929. *" $flag "*) :
  15930. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15931. (: AM_CXXFLAGS already contains $flag) 2>&5
  15932. ac_status=$?
  15933. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15934. test $ac_status = 0; } ;; #(
  15935. *) :
  15936. as_fn_append AM_CXXFLAGS " $flag"
  15937. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15938. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15939. ac_status=$?
  15940. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15941. test $ac_status = 0; }
  15942. ;;
  15943. esac
  15944. else $as_nop
  15945. AM_CXXFLAGS=$flag
  15946. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15947. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15948. ac_status=$?
  15949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15950. test $ac_status = 0; }
  15951. fi
  15952. else $as_nop
  15953. :
  15954. fi
  15955. done
  15956. for flag in -fno-strict-aliasing; do
  15957. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15959. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15960. if eval test \${$as_CACHEVAR+y}
  15961. then :
  15962. printf %s "(cached) " >&6
  15963. else $as_nop
  15964. ax_check_save_flags=$CXXFLAGS
  15965. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15967. /* end confdefs.h. */
  15968. int main(void) { return 0; }
  15969. _ACEOF
  15970. if ac_fn_cxx_try_compile "$LINENO"
  15971. then :
  15972. eval "$as_CACHEVAR=yes"
  15973. else $as_nop
  15974. eval "$as_CACHEVAR=no"
  15975. fi
  15976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15977. CXXFLAGS=$ax_check_save_flags
  15978. fi
  15979. eval ac_res=\$$as_CACHEVAR
  15980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15981. printf "%s\n" "$ac_res" >&6; }
  15982. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15983. then :
  15984. if test ${AM_CXXFLAGS+y}
  15985. then :
  15986. case " $AM_CXXFLAGS " in #(
  15987. *" $flag "*) :
  15988. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15989. (: AM_CXXFLAGS already contains $flag) 2>&5
  15990. ac_status=$?
  15991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15992. test $ac_status = 0; } ;; #(
  15993. *) :
  15994. as_fn_append AM_CXXFLAGS " $flag"
  15995. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15996. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15997. ac_status=$?
  15998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15999. test $ac_status = 0; }
  16000. ;;
  16001. esac
  16002. else $as_nop
  16003. AM_CXXFLAGS=$flag
  16004. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16005. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16006. ac_status=$?
  16007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16008. test $ac_status = 0; }
  16009. fi
  16010. else $as_nop
  16011. :
  16012. fi
  16013. done
  16014. fi
  16015. ac_ext=c
  16016. ac_cpp='$CPP $CPPFLAGS'
  16017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16020. if test "$GCC" = yes
  16021. then :
  16022. for flag in -fno-strict-aliasing; do
  16023. as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  16024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  16025. printf %s "checking whether the linker accepts $flag... " >&6; }
  16026. if eval test \${$as_CACHEVAR+y}
  16027. then :
  16028. printf %s "(cached) " >&6
  16029. else $as_nop
  16030. ax_check_save_flags=$LDFLAGS
  16031. LDFLAGS="$LDFLAGS $flag"
  16032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16033. /* end confdefs.h. */
  16034. int
  16035. main (void)
  16036. {
  16037. ;
  16038. return 0;
  16039. }
  16040. _ACEOF
  16041. if ac_fn_c_try_link "$LINENO"
  16042. then :
  16043. eval "$as_CACHEVAR=yes"
  16044. else $as_nop
  16045. eval "$as_CACHEVAR=no"
  16046. fi
  16047. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16048. conftest$ac_exeext conftest.$ac_ext
  16049. LDFLAGS=$ax_check_save_flags
  16050. fi
  16051. eval ac_res=\$$as_CACHEVAR
  16052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16053. printf "%s\n" "$ac_res" >&6; }
  16054. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  16055. then :
  16056. if test ${AM_LDFLAGS+y}
  16057. then :
  16058. case " $AM_LDFLAGS " in #(
  16059. *" $flag "*) :
  16060. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  16061. (: AM_LDFLAGS already contains $flag) 2>&5
  16062. ac_status=$?
  16063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16064. test $ac_status = 0; } ;; #(
  16065. *) :
  16066. as_fn_append AM_LDFLAGS " $flag"
  16067. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  16068. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  16069. ac_status=$?
  16070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16071. test $ac_status = 0; }
  16072. ;;
  16073. esac
  16074. else $as_nop
  16075. AM_LDFLAGS=$flag
  16076. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  16077. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  16078. ac_status=$?
  16079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16080. test $ac_status = 0; }
  16081. fi
  16082. else $as_nop
  16083. :
  16084. fi
  16085. done
  16086. fi
  16087. case "$LD" in #(
  16088. *clang*) :
  16089. case "${host_os}" in #(
  16090. *linux*) :
  16091. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  16092. *) :
  16093. ;;
  16094. esac ;; #(
  16095. *) :
  16096. ;;
  16097. esac
  16098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  16099. printf %s "checking whether compiler supports visibility... " >&6; }
  16100. if test ${expatcfg_cv_compiler_supports_visibility+y}
  16101. then :
  16102. printf %s "(cached) " >&6
  16103. else $as_nop
  16104. expatcfg_cv_compiler_supports_visibility=no
  16105. OLDFLAGS=$CFLAGS
  16106. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  16107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16108. /* end confdefs.h. */
  16109. void __attribute__((visibility("default"))) foo(void);
  16110. void foo(void) {}
  16111. _ACEOF
  16112. if ac_fn_c_try_compile "$LINENO"
  16113. then :
  16114. expatcfg_cv_compiler_supports_visibility=yes
  16115. fi
  16116. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16117. CFLAGS=$OLDFLAGS
  16118. fi
  16119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  16120. printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
  16121. if test "$expatcfg_cv_compiler_supports_visibility" = yes
  16122. then :
  16123. if test ${AM_CFLAGS+y}
  16124. then :
  16125. case " $AM_CFLAGS " in #(
  16126. *" -fvisibility=hidden "*) :
  16127. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  16128. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  16129. ac_status=$?
  16130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16131. test $ac_status = 0; } ;; #(
  16132. *) :
  16133. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  16134. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  16135. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  16136. ac_status=$?
  16137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16138. test $ac_status = 0; }
  16139. ;;
  16140. esac
  16141. else $as_nop
  16142. AM_CFLAGS=-fvisibility=hidden
  16143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  16144. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  16145. ac_status=$?
  16146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16147. test $ac_status = 0; }
  16148. fi
  16149. if test "${enable_shared}" = yes
  16150. then :
  16151. if test ${AM_CPPFLAGS+y}
  16152. then :
  16153. case " $AM_CPPFLAGS " in #(
  16154. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  16155. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  16156. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  16157. ac_status=$?
  16158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16159. test $ac_status = 0; } ;; #(
  16160. *) :
  16161. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  16162. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  16163. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  16164. ac_status=$?
  16165. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16166. test $ac_status = 0; }
  16167. ;;
  16168. esac
  16169. else $as_nop
  16170. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  16171. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  16172. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  16173. ac_status=$?
  16174. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16175. test $ac_status = 0; }
  16176. fi
  16177. fi
  16178. fi
  16179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16180. printf %s "checking whether byte ordering is bigendian... " >&6; }
  16181. if test ${ac_cv_c_bigendian+y}
  16182. then :
  16183. printf %s "(cached) " >&6
  16184. else $as_nop
  16185. ac_cv_c_bigendian=unknown
  16186. # See if we're dealing with a universal compiler.
  16187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16188. /* end confdefs.h. */
  16189. #ifndef __APPLE_CC__
  16190. not a universal capable compiler
  16191. #endif
  16192. typedef int dummy;
  16193. _ACEOF
  16194. if ac_fn_c_try_compile "$LINENO"
  16195. then :
  16196. # Check for potential -arch flags. It is not universal unless
  16197. # there are at least two -arch flags with different values.
  16198. ac_arch=
  16199. ac_prev=
  16200. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16201. if test -n "$ac_prev"; then
  16202. case $ac_word in
  16203. i?86 | x86_64 | ppc | ppc64)
  16204. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16205. ac_arch=$ac_word
  16206. else
  16207. ac_cv_c_bigendian=universal
  16208. break
  16209. fi
  16210. ;;
  16211. esac
  16212. ac_prev=
  16213. elif test "x$ac_word" = "x-arch"; then
  16214. ac_prev=arch
  16215. fi
  16216. done
  16217. fi
  16218. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16219. if test $ac_cv_c_bigendian = unknown; then
  16220. # See if sys/param.h defines the BYTE_ORDER macro.
  16221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16222. /* end confdefs.h. */
  16223. #include <sys/types.h>
  16224. #include <sys/param.h>
  16225. int
  16226. main (void)
  16227. {
  16228. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16229. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16230. && LITTLE_ENDIAN)
  16231. bogus endian macros
  16232. #endif
  16233. ;
  16234. return 0;
  16235. }
  16236. _ACEOF
  16237. if ac_fn_c_try_compile "$LINENO"
  16238. then :
  16239. # It does; now see whether it defined to BIG_ENDIAN or not.
  16240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16241. /* end confdefs.h. */
  16242. #include <sys/types.h>
  16243. #include <sys/param.h>
  16244. int
  16245. main (void)
  16246. {
  16247. #if BYTE_ORDER != BIG_ENDIAN
  16248. not big endian
  16249. #endif
  16250. ;
  16251. return 0;
  16252. }
  16253. _ACEOF
  16254. if ac_fn_c_try_compile "$LINENO"
  16255. then :
  16256. ac_cv_c_bigendian=yes
  16257. else $as_nop
  16258. ac_cv_c_bigendian=no
  16259. fi
  16260. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16261. fi
  16262. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16263. fi
  16264. if test $ac_cv_c_bigendian = unknown; then
  16265. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16267. /* end confdefs.h. */
  16268. #include <limits.h>
  16269. int
  16270. main (void)
  16271. {
  16272. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16273. bogus endian macros
  16274. #endif
  16275. ;
  16276. return 0;
  16277. }
  16278. _ACEOF
  16279. if ac_fn_c_try_compile "$LINENO"
  16280. then :
  16281. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16283. /* end confdefs.h. */
  16284. #include <limits.h>
  16285. int
  16286. main (void)
  16287. {
  16288. #ifndef _BIG_ENDIAN
  16289. not big endian
  16290. #endif
  16291. ;
  16292. return 0;
  16293. }
  16294. _ACEOF
  16295. if ac_fn_c_try_compile "$LINENO"
  16296. then :
  16297. ac_cv_c_bigendian=yes
  16298. else $as_nop
  16299. ac_cv_c_bigendian=no
  16300. fi
  16301. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16304. fi
  16305. if test $ac_cv_c_bigendian = unknown; then
  16306. # Compile a test program.
  16307. if test "$cross_compiling" = yes
  16308. then :
  16309. # Try to guess by grepping values from an object file.
  16310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16311. /* end confdefs.h. */
  16312. unsigned short int ascii_mm[] =
  16313. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16314. unsigned short int ascii_ii[] =
  16315. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16316. int use_ascii (int i) {
  16317. return ascii_mm[i] + ascii_ii[i];
  16318. }
  16319. unsigned short int ebcdic_ii[] =
  16320. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16321. unsigned short int ebcdic_mm[] =
  16322. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16323. int use_ebcdic (int i) {
  16324. return ebcdic_mm[i] + ebcdic_ii[i];
  16325. }
  16326. int
  16327. main (int argc, char **argv)
  16328. {
  16329. /* Intimidate the compiler so that it does not
  16330. optimize the arrays away. */
  16331. char *p = argv[0];
  16332. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  16333. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  16334. return use_ascii (argc) == use_ebcdic (*p);
  16335. }
  16336. _ACEOF
  16337. if ac_fn_c_try_link "$LINENO"
  16338. then :
  16339. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  16340. ac_cv_c_bigendian=yes
  16341. fi
  16342. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  16343. if test "$ac_cv_c_bigendian" = unknown; then
  16344. ac_cv_c_bigendian=no
  16345. else
  16346. # finding both strings is unlikely to happen, but who knows?
  16347. ac_cv_c_bigendian=unknown
  16348. fi
  16349. fi
  16350. fi
  16351. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16352. conftest$ac_exeext conftest.$ac_ext
  16353. else $as_nop
  16354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16355. /* end confdefs.h. */
  16356. $ac_includes_default
  16357. int
  16358. main (void)
  16359. {
  16360. /* Are we little or big endian? From Harbison&Steele. */
  16361. union
  16362. {
  16363. long int l;
  16364. char c[sizeof (long int)];
  16365. } u;
  16366. u.l = 1;
  16367. return u.c[sizeof (long int) - 1] == 1;
  16368. ;
  16369. return 0;
  16370. }
  16371. _ACEOF
  16372. if ac_fn_c_try_run "$LINENO"
  16373. then :
  16374. ac_cv_c_bigendian=no
  16375. else $as_nop
  16376. ac_cv_c_bigendian=yes
  16377. fi
  16378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16380. fi
  16381. fi
  16382. fi
  16383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16384. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  16385. case $ac_cv_c_bigendian in #(
  16386. yes)
  16387. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16388. BYTEORDER=4321;; #(
  16389. no)
  16390. BYTEORDER=1234 ;; #(
  16391. universal)
  16392. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16393. ;; #(
  16394. *)
  16395. as_fn_error $? "unknown endianness
  16396. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16397. esac
  16398. printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
  16399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16400. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16401. if test ${ac_cv_c_const+y}
  16402. then :
  16403. printf %s "(cached) " >&6
  16404. else $as_nop
  16405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16406. /* end confdefs.h. */
  16407. int
  16408. main (void)
  16409. {
  16410. #ifndef __cplusplus
  16411. /* Ultrix mips cc rejects this sort of thing. */
  16412. typedef int charset[2];
  16413. const charset cs = { 0, 0 };
  16414. /* SunOS 4.1.1 cc rejects this. */
  16415. char const *const *pcpcc;
  16416. char **ppc;
  16417. /* NEC SVR4.0.2 mips cc rejects this. */
  16418. struct point {int x, y;};
  16419. static struct point const zero = {0,0};
  16420. /* IBM XL C 1.02.0.0 rejects this.
  16421. It does not let you subtract one const X* pointer from another in
  16422. an arm of an if-expression whose if-part is not a constant
  16423. expression */
  16424. const char *g = "string";
  16425. pcpcc = &g + (g ? g-g : 0);
  16426. /* HPUX 7.0 cc rejects these. */
  16427. ++pcpcc;
  16428. ppc = (char**) pcpcc;
  16429. pcpcc = (char const *const *) ppc;
  16430. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16431. char tx;
  16432. char *t = &tx;
  16433. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16434. *t++ = 0;
  16435. if (s) return 0;
  16436. }
  16437. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16438. int x[] = {25, 17};
  16439. const int *foo = &x[0];
  16440. ++foo;
  16441. }
  16442. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16443. typedef const int *iptr;
  16444. iptr p = 0;
  16445. ++p;
  16446. }
  16447. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16448. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16449. struct s { int j; const int *ap[3]; } bx;
  16450. struct s *b = &bx; b->j = 5;
  16451. }
  16452. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16453. const int foo = 10;
  16454. if (!foo) return 0;
  16455. }
  16456. return !cs[0] && !zero.x;
  16457. #endif
  16458. ;
  16459. return 0;
  16460. }
  16461. _ACEOF
  16462. if ac_fn_c_try_compile "$LINENO"
  16463. then :
  16464. ac_cv_c_const=yes
  16465. else $as_nop
  16466. ac_cv_c_const=no
  16467. fi
  16468. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16469. fi
  16470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16471. printf "%s\n" "$ac_cv_c_const" >&6; }
  16472. if test $ac_cv_c_const = no; then
  16473. printf "%s\n" "#define const /**/" >>confdefs.h
  16474. fi
  16475. # Check whether --with-xmlwf was given.
  16476. if test ${with_xmlwf+y}
  16477. then :
  16478. withval=$with_xmlwf;
  16479. else $as_nop
  16480. with_xmlwf=yes
  16481. fi
  16482. if test x${with_xmlwf} = xyes; then
  16483. WITH_XMLWF_TRUE=
  16484. WITH_XMLWF_FALSE='#'
  16485. else
  16486. WITH_XMLWF_TRUE='#'
  16487. WITH_XMLWF_FALSE=
  16488. fi
  16489. # Check whether --with-examples was given.
  16490. if test ${with_examples+y}
  16491. then :
  16492. withval=$with_examples;
  16493. else $as_nop
  16494. with_examples=yes
  16495. fi
  16496. if test x${with_examples} = xyes; then
  16497. WITH_EXAMPLES_TRUE=
  16498. WITH_EXAMPLES_FALSE='#'
  16499. else
  16500. WITH_EXAMPLES_TRUE='#'
  16501. WITH_EXAMPLES_FALSE=
  16502. fi
  16503. # Check whether --with-tests was given.
  16504. if test ${with_tests+y}
  16505. then :
  16506. withval=$with_tests;
  16507. else $as_nop
  16508. with_tests=yes
  16509. fi
  16510. if test x${with_tests} = xyes; then
  16511. WITH_TESTS_TRUE=
  16512. WITH_TESTS_FALSE='#'
  16513. else
  16514. WITH_TESTS_TRUE='#'
  16515. WITH_TESTS_FALSE=
  16516. fi
  16517. if test x${with_tests} = xyes
  16518. then :
  16519. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  16520. ac_ext=cpp
  16521. ac_cpp='$CXXCPP $CPPFLAGS'
  16522. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16523. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16524. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16525. ac_success=no
  16526. if test x$ac_success = xno; then
  16527. for alternative in ${ax_cxx_compile_alternatives}; do
  16528. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
  16529. if test x"$switch" = xMSVC; then
  16530. switch=-std:c++${alternative}
  16531. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | $as_tr_sh`
  16532. else
  16533. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  16534. fi
  16535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  16536. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  16537. if eval test \${$cachevar+y}
  16538. then :
  16539. printf %s "(cached) " >&6
  16540. else $as_nop
  16541. ac_save_CXX="$CXX"
  16542. CXX="$CXX $switch"
  16543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16544. /* end confdefs.h. */
  16545. // If the compiler admits that it is not ready for C++11, why torture it?
  16546. // Hopefully, this will speed up the test.
  16547. #ifndef __cplusplus
  16548. #error "This is not a C++ compiler"
  16549. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  16550. // only set it correctly if /Zc:__cplusplus is specified as well as a
  16551. // /std:c++NN switch:
  16552. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  16553. #elif __cplusplus < 201103L && !defined _MSC_VER
  16554. #error "This is not a C++11 compiler"
  16555. #else
  16556. namespace cxx11
  16557. {
  16558. namespace test_static_assert
  16559. {
  16560. template <typename T>
  16561. struct check
  16562. {
  16563. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  16564. };
  16565. }
  16566. namespace test_final_override
  16567. {
  16568. struct Base
  16569. {
  16570. virtual ~Base() {}
  16571. virtual void f() {}
  16572. };
  16573. struct Derived : public Base
  16574. {
  16575. virtual ~Derived() override {}
  16576. virtual void f() override {}
  16577. };
  16578. }
  16579. namespace test_double_right_angle_brackets
  16580. {
  16581. template < typename T >
  16582. struct check {};
  16583. typedef check<void> single_type;
  16584. typedef check<check<void>> double_type;
  16585. typedef check<check<check<void>>> triple_type;
  16586. typedef check<check<check<check<void>>>> quadruple_type;
  16587. }
  16588. namespace test_decltype
  16589. {
  16590. int
  16591. f()
  16592. {
  16593. int a = 1;
  16594. decltype(a) b = 2;
  16595. return a + b;
  16596. }
  16597. }
  16598. namespace test_type_deduction
  16599. {
  16600. template < typename T1, typename T2 >
  16601. struct is_same
  16602. {
  16603. static const bool value = false;
  16604. };
  16605. template < typename T >
  16606. struct is_same<T, T>
  16607. {
  16608. static const bool value = true;
  16609. };
  16610. template < typename T1, typename T2 >
  16611. auto
  16612. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  16613. {
  16614. return a1 + a2;
  16615. }
  16616. int
  16617. test(const int c, volatile int v)
  16618. {
  16619. static_assert(is_same<int, decltype(0)>::value == true, "");
  16620. static_assert(is_same<int, decltype(c)>::value == false, "");
  16621. static_assert(is_same<int, decltype(v)>::value == false, "");
  16622. auto ac = c;
  16623. auto av = v;
  16624. auto sumi = ac + av + 'x';
  16625. auto sumf = ac + av + 1.0;
  16626. static_assert(is_same<int, decltype(ac)>::value == true, "");
  16627. static_assert(is_same<int, decltype(av)>::value == true, "");
  16628. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  16629. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  16630. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  16631. return (sumf > 0.0) ? sumi : add(c, v);
  16632. }
  16633. }
  16634. namespace test_noexcept
  16635. {
  16636. int f() { return 0; }
  16637. int g() noexcept { return 0; }
  16638. static_assert(noexcept(f()) == false, "");
  16639. static_assert(noexcept(g()) == true, "");
  16640. }
  16641. namespace test_constexpr
  16642. {
  16643. template < typename CharT >
  16644. unsigned long constexpr
  16645. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  16646. {
  16647. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  16648. }
  16649. template < typename CharT >
  16650. unsigned long constexpr
  16651. strlen_c(const CharT *const s) noexcept
  16652. {
  16653. return strlen_c_r(s, 0UL);
  16654. }
  16655. static_assert(strlen_c("") == 0UL, "");
  16656. static_assert(strlen_c("1") == 1UL, "");
  16657. static_assert(strlen_c("example") == 7UL, "");
  16658. static_assert(strlen_c("another\0example") == 7UL, "");
  16659. }
  16660. namespace test_rvalue_references
  16661. {
  16662. template < int N >
  16663. struct answer
  16664. {
  16665. static constexpr int value = N;
  16666. };
  16667. answer<1> f(int&) { return answer<1>(); }
  16668. answer<2> f(const int&) { return answer<2>(); }
  16669. answer<3> f(int&&) { return answer<3>(); }
  16670. void
  16671. test()
  16672. {
  16673. int i = 0;
  16674. const int c = 0;
  16675. static_assert(decltype(f(i))::value == 1, "");
  16676. static_assert(decltype(f(c))::value == 2, "");
  16677. static_assert(decltype(f(0))::value == 3, "");
  16678. }
  16679. }
  16680. namespace test_uniform_initialization
  16681. {
  16682. struct test
  16683. {
  16684. static const int zero {};
  16685. static const int one {1};
  16686. };
  16687. static_assert(test::zero == 0, "");
  16688. static_assert(test::one == 1, "");
  16689. }
  16690. namespace test_lambdas
  16691. {
  16692. void
  16693. test1()
  16694. {
  16695. auto lambda1 = [](){};
  16696. auto lambda2 = lambda1;
  16697. lambda1();
  16698. lambda2();
  16699. }
  16700. int
  16701. test2()
  16702. {
  16703. auto a = [](int i, int j){ return i + j; }(1, 2);
  16704. auto b = []() -> int { return '0'; }();
  16705. auto c = [=](){ return a + b; }();
  16706. auto d = [&](){ return c; }();
  16707. auto e = [a, &b](int x) mutable {
  16708. const auto identity = [](int y){ return y; };
  16709. for (auto i = 0; i < a; ++i)
  16710. a += b--;
  16711. return x + identity(a + b);
  16712. }(0);
  16713. return a + b + c + d + e;
  16714. }
  16715. int
  16716. test3()
  16717. {
  16718. const auto nullary = [](){ return 0; };
  16719. const auto unary = [](int x){ return x; };
  16720. using nullary_t = decltype(nullary);
  16721. using unary_t = decltype(unary);
  16722. const auto higher1st = [](nullary_t f){ return f(); };
  16723. const auto higher2nd = [unary](nullary_t f1){
  16724. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  16725. };
  16726. return higher1st(nullary) + higher2nd(nullary)(unary);
  16727. }
  16728. }
  16729. namespace test_variadic_templates
  16730. {
  16731. template <int...>
  16732. struct sum;
  16733. template <int N0, int... N1toN>
  16734. struct sum<N0, N1toN...>
  16735. {
  16736. static constexpr auto value = N0 + sum<N1toN...>::value;
  16737. };
  16738. template <>
  16739. struct sum<>
  16740. {
  16741. static constexpr auto value = 0;
  16742. };
  16743. static_assert(sum<>::value == 0, "");
  16744. static_assert(sum<1>::value == 1, "");
  16745. static_assert(sum<23>::value == 23, "");
  16746. static_assert(sum<1, 2>::value == 3, "");
  16747. static_assert(sum<5, 5, 11>::value == 21, "");
  16748. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  16749. }
  16750. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  16751. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  16752. // because of this.
  16753. namespace test_template_alias_sfinae
  16754. {
  16755. struct foo {};
  16756. template<typename T>
  16757. using member = typename T::member_type;
  16758. template<typename T>
  16759. void func(...) {}
  16760. template<typename T>
  16761. void func(member<T>*) {}
  16762. void test();
  16763. void test() { func<foo>(0); }
  16764. }
  16765. } // namespace cxx11
  16766. #endif // __cplusplus >= 201103L
  16767. _ACEOF
  16768. if ac_fn_cxx_try_compile "$LINENO"
  16769. then :
  16770. eval $cachevar=yes
  16771. else $as_nop
  16772. eval $cachevar=no
  16773. fi
  16774. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16775. CXX="$ac_save_CXX"
  16776. fi
  16777. eval ac_res=\$$cachevar
  16778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16779. printf "%s\n" "$ac_res" >&6; }
  16780. if eval test x\$$cachevar = xyes; then
  16781. CXX="$CXX $switch"
  16782. if test -n "$CXXCPP" ; then
  16783. CXXCPP="$CXXCPP $switch"
  16784. fi
  16785. ac_success=yes
  16786. break
  16787. fi
  16788. done
  16789. if test x$ac_success = xyes; then
  16790. break
  16791. fi
  16792. done
  16793. fi
  16794. ac_ext=c
  16795. ac_cpp='$CPP $CPPFLAGS'
  16796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16799. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  16800. if test x$ac_success = xno; then
  16801. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  16802. fi
  16803. fi
  16804. if test x$ac_success = xno; then
  16805. HAVE_CXX11=0
  16806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  16807. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  16808. else
  16809. HAVE_CXX11=1
  16810. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  16811. fi
  16812. fi
  16813. EXPATCFG_ON_MINGW=no
  16814. case "${host_os}" in #(
  16815. mingw*) :
  16816. EXPATCFG_ON_MINGW=yes
  16817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  16818. printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
  16819. *) :
  16820. ;;
  16821. esac
  16822. if test x${EXPATCFG_ON_MINGW} = xyes; then
  16823. MINGW_TRUE=
  16824. MINGW_FALSE='#'
  16825. else
  16826. MINGW_TRUE='#'
  16827. MINGW_FALSE=
  16828. fi
  16829. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  16830. UNICODE_TRUE=
  16831. UNICODE_FALSE='#'
  16832. else
  16833. UNICODE_TRUE='#'
  16834. UNICODE_FALSE=
  16835. fi
  16836. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
  16837. _INTERNAL_UNICODE_WCHAR_T_TRUE=
  16838. _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
  16839. else
  16840. _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
  16841. _INTERNAL_UNICODE_WCHAR_T_FALSE=
  16842. fi
  16843. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
  16844. _INTERNAL_MIN_SIZE_TRUE=
  16845. _INTERNAL_MIN_SIZE_FALSE='#'
  16846. else
  16847. _INTERNAL_MIN_SIZE_TRUE='#'
  16848. _INTERNAL_MIN_SIZE_FALSE=
  16849. fi
  16850. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
  16851. _INTERNAL_LARGE_SIZE_TRUE=
  16852. _INTERNAL_LARGE_SIZE_FALSE='#'
  16853. else
  16854. _INTERNAL_LARGE_SIZE_TRUE='#'
  16855. _INTERNAL_LARGE_SIZE_FALSE=
  16856. fi
  16857. LIBM=
  16858. case $host in
  16859. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-mingw* | *-*-pw32* | *-*-darwin*)
  16860. # These system don't have libm, or don't need it
  16861. ;;
  16862. *-ncr-sysv4.3*)
  16863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  16864. printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
  16865. if test ${ac_cv_lib_mw__mwvalidcheckl+y}
  16866. then :
  16867. printf %s "(cached) " >&6
  16868. else $as_nop
  16869. ac_check_lib_save_LIBS=$LIBS
  16870. LIBS="-lmw $LIBS"
  16871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16872. /* end confdefs.h. */
  16873. /* Override any GCC internal prototype to avoid an error.
  16874. Use char because int might match the return type of a GCC
  16875. builtin and then its argument prototype would still apply.
  16876. The 'extern "C"' is for builds by C++ compilers;
  16877. although this is not generally supported in C code supporting it here
  16878. has little cost and some practical benefit (sr 110532). */
  16879. #ifdef __cplusplus
  16880. extern "C"
  16881. #endif
  16882. char _mwvalidcheckl (void);
  16883. int
  16884. main (void)
  16885. {
  16886. return _mwvalidcheckl ();
  16887. ;
  16888. return 0;
  16889. }
  16890. _ACEOF
  16891. if ac_fn_c_try_link "$LINENO"
  16892. then :
  16893. ac_cv_lib_mw__mwvalidcheckl=yes
  16894. else $as_nop
  16895. ac_cv_lib_mw__mwvalidcheckl=no
  16896. fi
  16897. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16898. conftest$ac_exeext conftest.$ac_ext
  16899. LIBS=$ac_check_lib_save_LIBS
  16900. fi
  16901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  16902. printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  16903. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
  16904. then :
  16905. LIBM=-lmw
  16906. fi
  16907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16908. printf %s "checking for cos in -lm... " >&6; }
  16909. if test ${ac_cv_lib_m_cos+y}
  16910. then :
  16911. printf %s "(cached) " >&6
  16912. else $as_nop
  16913. ac_check_lib_save_LIBS=$LIBS
  16914. LIBS="-lm $LIBS"
  16915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16916. /* end confdefs.h. */
  16917. /* Override any GCC internal prototype to avoid an error.
  16918. Use char because int might match the return type of a GCC
  16919. builtin and then its argument prototype would still apply.
  16920. The 'extern "C"' is for builds by C++ compilers;
  16921. although this is not generally supported in C code supporting it here
  16922. has little cost and some practical benefit (sr 110532). */
  16923. #ifdef __cplusplus
  16924. extern "C"
  16925. #endif
  16926. char cos (void);
  16927. int
  16928. main (void)
  16929. {
  16930. return cos ();
  16931. ;
  16932. return 0;
  16933. }
  16934. _ACEOF
  16935. if ac_fn_c_try_link "$LINENO"
  16936. then :
  16937. ac_cv_lib_m_cos=yes
  16938. else $as_nop
  16939. ac_cv_lib_m_cos=no
  16940. fi
  16941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16942. conftest$ac_exeext conftest.$ac_ext
  16943. LIBS=$ac_check_lib_save_LIBS
  16944. fi
  16945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16946. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16947. if test "x$ac_cv_lib_m_cos" = xyes
  16948. then :
  16949. LIBM="$LIBM -lm"
  16950. fi
  16951. ;;
  16952. *)
  16953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16954. printf %s "checking for cos in -lm... " >&6; }
  16955. if test ${ac_cv_lib_m_cos+y}
  16956. then :
  16957. printf %s "(cached) " >&6
  16958. else $as_nop
  16959. ac_check_lib_save_LIBS=$LIBS
  16960. LIBS="-lm $LIBS"
  16961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16962. /* end confdefs.h. */
  16963. /* Override any GCC internal prototype to avoid an error.
  16964. Use char because int might match the return type of a GCC
  16965. builtin and then its argument prototype would still apply.
  16966. The 'extern "C"' is for builds by C++ compilers;
  16967. although this is not generally supported in C code supporting it here
  16968. has little cost and some practical benefit (sr 110532). */
  16969. #ifdef __cplusplus
  16970. extern "C"
  16971. #endif
  16972. char cos (void);
  16973. int
  16974. main (void)
  16975. {
  16976. return cos ();
  16977. ;
  16978. return 0;
  16979. }
  16980. _ACEOF
  16981. if ac_fn_c_try_link "$LINENO"
  16982. then :
  16983. ac_cv_lib_m_cos=yes
  16984. else $as_nop
  16985. ac_cv_lib_m_cos=no
  16986. fi
  16987. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16988. conftest$ac_exeext conftest.$ac_ext
  16989. LIBS=$ac_check_lib_save_LIBS
  16990. fi
  16991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16992. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16993. if test "x$ac_cv_lib_m_cos" = xyes
  16994. then :
  16995. LIBM=-lm
  16996. fi
  16997. ;;
  16998. esac
  16999. # Check whether --with-libbsd was given.
  17000. if test ${with_libbsd+y}
  17001. then :
  17002. withval=$with_libbsd;
  17003. else $as_nop
  17004. with_libbsd=no
  17005. fi
  17006. if test "x${with_libbsd}" != xno
  17007. then :
  17008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  17009. printf %s "checking for arc4random_buf in -lbsd... " >&6; }
  17010. if test ${ac_cv_lib_bsd_arc4random_buf+y}
  17011. then :
  17012. printf %s "(cached) " >&6
  17013. else $as_nop
  17014. ac_check_lib_save_LIBS=$LIBS
  17015. LIBS="-lbsd $LIBS"
  17016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17017. /* end confdefs.h. */
  17018. /* Override any GCC internal prototype to avoid an error.
  17019. Use char because int might match the return type of a GCC
  17020. builtin and then its argument prototype would still apply.
  17021. The 'extern "C"' is for builds by C++ compilers;
  17022. although this is not generally supported in C code supporting it here
  17023. has little cost and some practical benefit (sr 110532). */
  17024. #ifdef __cplusplus
  17025. extern "C"
  17026. #endif
  17027. char arc4random_buf (void);
  17028. int
  17029. main (void)
  17030. {
  17031. return arc4random_buf ();
  17032. ;
  17033. return 0;
  17034. }
  17035. _ACEOF
  17036. if ac_fn_c_try_link "$LINENO"
  17037. then :
  17038. ac_cv_lib_bsd_arc4random_buf=yes
  17039. else $as_nop
  17040. ac_cv_lib_bsd_arc4random_buf=no
  17041. fi
  17042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17043. conftest$ac_exeext conftest.$ac_ext
  17044. LIBS=$ac_check_lib_save_LIBS
  17045. fi
  17046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  17047. printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  17048. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
  17049. then :
  17050. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  17051. LIBS="-lbsd $LIBS"
  17052. else $as_nop
  17053. if test "x${with_libbsd}" = xyes
  17054. then :
  17055. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  17056. fi
  17057. fi
  17058. fi
  17059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD, libbsd or glibc 2.36+)" >&5
  17060. printf %s "checking for arc4random_buf (BSD, libbsd or glibc 2.36+)... " >&6; }
  17061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17062. /* end confdefs.h. */
  17063. #if defined(HAVE_LIBBSD)
  17064. # include <bsd/stdlib.h>
  17065. #else
  17066. # include <stdlib.h> /* for arc4random_buf on BSD */
  17067. #endif
  17068. int main(void) {
  17069. char dummy[123]; // double brackets for m4
  17070. arc4random_buf(dummy, 0U);
  17071. return 0;
  17072. }
  17073. _ACEOF
  17074. if ac_fn_c_try_link "$LINENO"
  17075. then :
  17076. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  17077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17078. printf "%s\n" "yes" >&6; }
  17079. else $as_nop
  17080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17081. printf "%s\n" "no" >&6; }
  17082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)" >&5
  17083. printf %s "checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)... " >&6; }
  17084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17085. /* end confdefs.h. */
  17086. #if defined(HAVE_LIBBSD)
  17087. # include <bsd/stdlib.h>
  17088. #else
  17089. # include <stdlib.h>
  17090. #endif
  17091. int main(void) {
  17092. arc4random();
  17093. return 0;
  17094. }
  17095. _ACEOF
  17096. if ac_fn_c_try_link "$LINENO"
  17097. then :
  17098. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  17099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17100. printf "%s\n" "yes" >&6; }
  17101. else $as_nop
  17102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17103. printf "%s\n" "no" >&6; }
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. fi
  17108. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17109. conftest$ac_exeext conftest.$ac_ext
  17110. # Check whether --with-getrandom was given.
  17111. if test ${with_getrandom+y}
  17112. then :
  17113. withval=$with_getrandom;
  17114. else $as_nop
  17115. with_getrandom=check
  17116. fi
  17117. if test "x$with_getrandom" != xno
  17118. then :
  17119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  17120. printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  17121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17122. /* end confdefs.h. */
  17123. #include <stdlib.h> /* for NULL */
  17124. #include <sys/random.h>
  17125. int main(void) {
  17126. return getrandom(NULL, 0U, 0U);
  17127. }
  17128. _ACEOF
  17129. if ac_fn_c_try_link "$LINENO"
  17130. then :
  17131. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  17132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17133. printf "%s\n" "yes" >&6; }
  17134. else $as_nop
  17135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17136. printf "%s\n" "no" >&6; }
  17137. if test "x$with_getrandom" = xyes
  17138. then :
  17139. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  17140. fi
  17141. fi
  17142. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17143. conftest$ac_exeext conftest.$ac_ext
  17144. fi
  17145. # Check whether --with-sys_getrandom was given.
  17146. if test ${with_sys_getrandom+y}
  17147. then :
  17148. withval=$with_sys_getrandom;
  17149. else $as_nop
  17150. with_sys_getrandom=check
  17151. fi
  17152. if test "x$with_sys_getrandom" != xno
  17153. then :
  17154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  17155. printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  17156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17157. /* end confdefs.h. */
  17158. #define _GNU_SOURCE
  17159. #include <stdlib.h> /* for NULL */
  17160. #include <unistd.h> /* for syscall */
  17161. #include <sys/syscall.h> /* for SYS_getrandom */
  17162. int main(void) {
  17163. syscall(SYS_getrandom, NULL, 0, 0);
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_link "$LINENO"
  17168. then :
  17169. printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  17170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17171. printf "%s\n" "yes" >&6; }
  17172. else $as_nop
  17173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17174. printf "%s\n" "no" >&6; }
  17175. if test "x$with_sys_getrandom" = xyes
  17176. then :
  17177. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  17178. fi
  17179. fi
  17180. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17181. conftest$ac_exeext conftest.$ac_ext
  17182. fi
  17183. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  17184. if test "x$ac_cv_header_fcntl_h" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  17189. if test "x$ac_cv_header_unistd_h" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  17194. if test "x$ac_cv_type_off_t" = xyes
  17195. then :
  17196. else $as_nop
  17197. printf "%s\n" "#define off_t long int" >>confdefs.h
  17198. fi
  17199. ac_func=
  17200. for ac_item in $ac_func_c_list
  17201. do
  17202. if test $ac_func; then
  17203. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  17204. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  17205. echo "#define $ac_item 1" >> confdefs.h
  17206. fi
  17207. ac_func=
  17208. else
  17209. ac_func=$ac_item
  17210. fi
  17211. done
  17212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17213. printf %s "checking for working mmap... " >&6; }
  17214. if test ${ac_cv_func_mmap_fixed_mapped+y}
  17215. then :
  17216. printf %s "(cached) " >&6
  17217. else $as_nop
  17218. if test "$cross_compiling" = yes
  17219. then :
  17220. case "$host_os" in # ((
  17221. # Guess yes on platforms where we know the result.
  17222. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  17223. # If we don't know, assume the worst.
  17224. *) ac_cv_func_mmap_fixed_mapped=no ;;
  17225. esac
  17226. else $as_nop
  17227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17228. /* end confdefs.h. */
  17229. $ac_includes_default
  17230. /* malloc might have been renamed as rpl_malloc. */
  17231. #undef malloc
  17232. /* Thanks to Mike Haertel and Jim Avera for this test.
  17233. Here is a matrix of mmap possibilities:
  17234. mmap private not fixed
  17235. mmap private fixed at somewhere currently unmapped
  17236. mmap private fixed at somewhere already mapped
  17237. mmap shared not fixed
  17238. mmap shared fixed at somewhere currently unmapped
  17239. mmap shared fixed at somewhere already mapped
  17240. For private mappings, we should verify that changes cannot be read()
  17241. back from the file, nor mmap's back from the file at a different
  17242. address. (There have been systems where private was not correctly
  17243. implemented like the infamous i386 svr4.0, and systems where the
  17244. VM page cache was not coherent with the file system buffer cache
  17245. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17246. For shared mappings, we should conversely verify that changes get
  17247. propagated back to all the places they're supposed to be.
  17248. Grep wants private fixed already mapped.
  17249. The main things grep needs to know about mmap are:
  17250. * does it exist and is it safe to write into the mmap'd area
  17251. * how to use it (BSD variants) */
  17252. #include <fcntl.h>
  17253. #include <sys/mman.h>
  17254. /* This mess was copied from the GNU getpagesize.h. */
  17255. #ifndef HAVE_GETPAGESIZE
  17256. # ifdef _SC_PAGESIZE
  17257. # define getpagesize() sysconf(_SC_PAGESIZE)
  17258. # else /* no _SC_PAGESIZE */
  17259. # ifdef HAVE_SYS_PARAM_H
  17260. # include <sys/param.h>
  17261. # ifdef EXEC_PAGESIZE
  17262. # define getpagesize() EXEC_PAGESIZE
  17263. # else /* no EXEC_PAGESIZE */
  17264. # ifdef NBPG
  17265. # define getpagesize() NBPG * CLSIZE
  17266. # ifndef CLSIZE
  17267. # define CLSIZE 1
  17268. # endif /* no CLSIZE */
  17269. # else /* no NBPG */
  17270. # ifdef NBPC
  17271. # define getpagesize() NBPC
  17272. # else /* no NBPC */
  17273. # ifdef PAGESIZE
  17274. # define getpagesize() PAGESIZE
  17275. # endif /* PAGESIZE */
  17276. # endif /* no NBPC */
  17277. # endif /* no NBPG */
  17278. # endif /* no EXEC_PAGESIZE */
  17279. # else /* no HAVE_SYS_PARAM_H */
  17280. # define getpagesize() 8192 /* punt totally */
  17281. # endif /* no HAVE_SYS_PARAM_H */
  17282. # endif /* no _SC_PAGESIZE */
  17283. #endif /* no HAVE_GETPAGESIZE */
  17284. int
  17285. main (void)
  17286. {
  17287. char *data, *data2, *data3;
  17288. const char *cdata2;
  17289. int i, pagesize;
  17290. int fd, fd2;
  17291. pagesize = getpagesize ();
  17292. /* First, make a file with some known garbage in it. */
  17293. data = (char *) malloc (pagesize);
  17294. if (!data)
  17295. return 1;
  17296. for (i = 0; i < pagesize; ++i)
  17297. *(data + i) = rand ();
  17298. umask (0);
  17299. fd = creat ("conftest.mmap", 0600);
  17300. if (fd < 0)
  17301. return 2;
  17302. if (write (fd, data, pagesize) != pagesize)
  17303. return 3;
  17304. close (fd);
  17305. /* Next, check that the tail of a page is zero-filled. File must have
  17306. non-zero length, otherwise we risk SIGBUS for entire page. */
  17307. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17308. if (fd2 < 0)
  17309. return 4;
  17310. cdata2 = "";
  17311. if (write (fd2, cdata2, 1) != 1)
  17312. return 5;
  17313. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17314. if (data2 == MAP_FAILED)
  17315. return 6;
  17316. for (i = 0; i < pagesize; ++i)
  17317. if (*(data2 + i))
  17318. return 7;
  17319. close (fd2);
  17320. if (munmap (data2, pagesize))
  17321. return 8;
  17322. /* Next, try to mmap the file at a fixed address which already has
  17323. something else allocated at it. If we can, also make sure that
  17324. we see the same garbage. */
  17325. fd = open ("conftest.mmap", O_RDWR);
  17326. if (fd < 0)
  17327. return 9;
  17328. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17329. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17330. return 10;
  17331. for (i = 0; i < pagesize; ++i)
  17332. if (*(data + i) != *(data2 + i))
  17333. return 11;
  17334. /* Finally, make sure that changes to the mapped area do not
  17335. percolate back to the file as seen by read(). (This is a bug on
  17336. some variants of i386 svr4.0.) */
  17337. for (i = 0; i < pagesize; ++i)
  17338. *(data2 + i) = *(data2 + i) + 1;
  17339. data3 = (char *) malloc (pagesize);
  17340. if (!data3)
  17341. return 12;
  17342. if (read (fd, data3, pagesize) != pagesize)
  17343. return 13;
  17344. for (i = 0; i < pagesize; ++i)
  17345. if (*(data + i) != *(data3 + i))
  17346. return 14;
  17347. close (fd);
  17348. free (data);
  17349. free (data3);
  17350. return 0;
  17351. }
  17352. _ACEOF
  17353. if ac_fn_c_try_run "$LINENO"
  17354. then :
  17355. ac_cv_func_mmap_fixed_mapped=yes
  17356. else $as_nop
  17357. ac_cv_func_mmap_fixed_mapped=no
  17358. fi
  17359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17361. fi
  17362. fi
  17363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17364. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17365. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17366. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  17367. fi
  17368. rm -f conftest.mmap conftest.txt
  17369. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
  17370. then :
  17371. FILEMAP=unixfilemap
  17372. else $as_nop
  17373. FILEMAP=readfilemap
  17374. fi
  17375. printf "%s\n" "#define XML_NS 1" >>confdefs.h
  17376. printf "%s\n" "#define XML_GE 1" >>confdefs.h
  17377. printf "%s\n" "#define XML_DTD 1" >>confdefs.h
  17378. printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
  17379. # Check whether --enable-xml-attr-info was given.
  17380. if test ${enable_xml_attr_info+y}
  17381. then :
  17382. enableval=$enable_xml_attr_info;
  17383. else $as_nop
  17384. enable_xml_attr_info=no
  17385. fi
  17386. if test "x${enable_xml_attr_info}" = "xyes"
  17387. then :
  17388. printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
  17389. fi
  17390. # Check whether --enable-xml-context was given.
  17391. if test ${enable_xml_context+y}
  17392. then :
  17393. enableval=$enable_xml_context; enable_xml_context=${enableval}
  17394. fi
  17395. if test "x${enable_xml_context}" != "xno"
  17396. then :
  17397. if test "x${enable_xml_context}" = "xyes" \
  17398. -o "x${enable_xml_context}" = "x"
  17399. then :
  17400. enable_xml_context=1024
  17401. fi
  17402. else $as_nop
  17403. enable_xml_context=0
  17404. fi
  17405. printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
  17406. # Check whether --with-docbook was given.
  17407. if test ${with_docbook+y}
  17408. then :
  17409. withval=$with_docbook;
  17410. else $as_nop
  17411. with_docbook=check
  17412. fi
  17413. if test "x$with_docbook" != xno
  17414. then :
  17415. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  17416. do
  17417. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17418. set dummy $ac_prog; ac_word=$2
  17419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17420. printf %s "checking for $ac_word... " >&6; }
  17421. if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
  17422. then :
  17423. printf %s "(cached) " >&6
  17424. else $as_nop
  17425. if test -n "$DOCBOOK_TO_MAN"; then
  17426. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  17427. else
  17428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17429. for as_dir in $PATH
  17430. do
  17431. IFS=$as_save_IFS
  17432. case $as_dir in #(((
  17433. '') as_dir=./ ;;
  17434. */) ;;
  17435. *) as_dir=$as_dir/ ;;
  17436. esac
  17437. for ac_exec_ext in '' $ac_executable_extensions; do
  17438. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17439. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  17440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17441. break 2
  17442. fi
  17443. done
  17444. done
  17445. IFS=$as_save_IFS
  17446. fi
  17447. fi
  17448. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  17449. if test -n "$DOCBOOK_TO_MAN"; then
  17450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  17451. printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
  17452. else
  17453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17454. printf "%s\n" "no" >&6; }
  17455. fi
  17456. test -n "$DOCBOOK_TO_MAN" && break
  17457. done
  17458. fi
  17459. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
  17460. then :
  17461. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  17462. fi
  17463. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
  17464. then :
  17465. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
  17466. then :
  17467. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  17468. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  17469. configure to command docbook2x-man of docbook2X.
  17470. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  17471. You can also configure using --without-docbook if you can do without a man
  17472. page for xmlwf." "$LINENO" 5
  17473. fi
  17474. fi
  17475. if test -f "${srcdir}"/doc/xmlwf.1
  17476. then :
  17477. if true; then
  17478. WITH_MANPAGE_TRUE=
  17479. WITH_MANPAGE_FALSE='#'
  17480. else
  17481. WITH_MANPAGE_TRUE='#'
  17482. WITH_MANPAGE_FALSE=
  17483. fi
  17484. if test "x$with_docbook" = xno -o "x${DOCBOOK_TO_MAN}" = x
  17485. then :
  17486. if true; then
  17487. WITH_PREBUILT_MANPAGE_TRUE=
  17488. WITH_PREBUILT_MANPAGE_FALSE='#'
  17489. else
  17490. WITH_PREBUILT_MANPAGE_TRUE='#'
  17491. WITH_PREBUILT_MANPAGE_FALSE=
  17492. fi
  17493. if false; then
  17494. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17495. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17496. else
  17497. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17498. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17499. fi
  17500. else $as_nop
  17501. if false; then
  17502. WITH_PREBUILT_MANPAGE_TRUE=
  17503. WITH_PREBUILT_MANPAGE_FALSE='#'
  17504. else
  17505. WITH_PREBUILT_MANPAGE_TRUE='#'
  17506. WITH_PREBUILT_MANPAGE_FALSE=
  17507. fi
  17508. if true; then
  17509. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17510. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17511. else
  17512. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17513. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17514. fi
  17515. fi
  17516. else $as_nop
  17517. if test "x$with_docbook" != xno -a "x${DOCBOOK_TO_MAN}" != x
  17518. then :
  17519. if true; then
  17520. WITH_MANPAGE_TRUE=
  17521. WITH_MANPAGE_FALSE='#'
  17522. else
  17523. WITH_MANPAGE_TRUE='#'
  17524. WITH_MANPAGE_FALSE=
  17525. fi
  17526. if true; then
  17527. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17528. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17529. else
  17530. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17531. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17532. fi
  17533. else $as_nop
  17534. if false; then
  17535. WITH_MANPAGE_TRUE=
  17536. WITH_MANPAGE_FALSE='#'
  17537. else
  17538. WITH_MANPAGE_TRUE='#'
  17539. WITH_MANPAGE_FALSE=
  17540. fi
  17541. if false; then
  17542. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  17543. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  17544. else
  17545. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  17546. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  17547. fi
  17548. fi
  17549. if false; then
  17550. WITH_PREBUILT_MANPAGE_TRUE=
  17551. WITH_PREBUILT_MANPAGE_FALSE='#'
  17552. else
  17553. WITH_PREBUILT_MANPAGE_TRUE='#'
  17554. WITH_PREBUILT_MANPAGE_FALSE=
  17555. fi
  17556. fi
  17557. if test "x${enable_xml_attr_info}" = xyes
  17558. then :
  17559. EXPAT_ATTR_INFO=ON
  17560. else $as_nop
  17561. EXPAT_ATTR_INFO=OFF
  17562. fi
  17563. EXPAT_DTD=ON
  17564. if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
  17565. then :
  17566. EXPAT_LARGE_SIZE=ON
  17567. else $as_nop
  17568. EXPAT_LARGE_SIZE=OFF
  17569. fi
  17570. if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
  17571. then :
  17572. EXPAT_MIN_SIZE=ON
  17573. else $as_nop
  17574. EXPAT_MIN_SIZE=OFF
  17575. fi
  17576. EXPAT_NS=ON
  17577. if test "x${enable_xml_context}" != xno
  17578. then :
  17579. EXPAT_CONTEXT_BYTES=${enable_xml_context}
  17580. else $as_nop
  17581. EXPAT_CONTEXT_BYTES=OFF
  17582. fi
  17583. if test "x${UNICODE_TRUE}" = x
  17584. then :
  17585. if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
  17586. then :
  17587. EXPAT_CHAR_TYPE=wchar_t
  17588. else $as_nop
  17589. EXPAT_CHAR_TYPE=ushort
  17590. fi
  17591. else $as_nop
  17592. EXPAT_CHAR_TYPE=char
  17593. fi
  17594. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  17595. LIBDIR_BASENAME="$(basename "${libdir}")"
  17596. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  17597. SO_MINOR="${LIBAGE}"
  17598. SO_PATCH="${LIBREVISION}"
  17599. if ac_fn_c_compute_int "$LINENO" "sizeof(void *)" "SIZEOF_VOID_P" ""
  17600. then :
  17601. fi
  17602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library name prefix" >&5
  17603. printf %s "checking for shared library name prefix... " >&6; }
  17604. case "${host_os}" in #(
  17605. cygwin*) :
  17606. CMAKE_SHARED_LIBRARY_PREFIX=cyg ;; #(
  17607. *) :
  17608. CMAKE_SHARED_LIBRARY_PREFIX=lib ;;
  17609. esac
  17610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CMAKE_SHARED_LIBRARY_PREFIX}" >&5
  17611. printf "%s\n" "${CMAKE_SHARED_LIBRARY_PREFIX}" >&6; }
  17612. case "${host_os}" in #(
  17613. darwin*) :
  17614. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in ;; #(
  17615. mingw*|cygwin*) :
  17616. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in ;; #(
  17617. *) :
  17618. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in ;;
  17619. esac
  17620. ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat-config-version.cmake cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE} doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
  17621. ac_config_files="$ac_config_files run.sh"
  17622. cat >confcache <<\_ACEOF
  17623. # This file is a shell script that caches the results of configure
  17624. # tests run on this system so they can be shared between configure
  17625. # scripts and configure runs, see configure's option --config-cache.
  17626. # It is not useful on other systems. If it contains results you don't
  17627. # want to keep, you may remove or edit it.
  17628. #
  17629. # config.status only pays attention to the cache file if you give it
  17630. # the --recheck option to rerun configure.
  17631. #
  17632. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17633. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17634. # following values.
  17635. _ACEOF
  17636. # The following way of writing the cache mishandles newlines in values,
  17637. # but we know of no workaround that is simple, portable, and efficient.
  17638. # So, we kill variables containing newlines.
  17639. # Ultrix sh set writes to stderr and can't be redirected directly,
  17640. # and sets the high bit in the cache file unless we assign to the vars.
  17641. (
  17642. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17643. eval ac_val=\$$ac_var
  17644. case $ac_val in #(
  17645. *${as_nl}*)
  17646. case $ac_var in #(
  17647. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17648. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17649. esac
  17650. case $ac_var in #(
  17651. _ | IFS | as_nl) ;; #(
  17652. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17653. *) { eval $ac_var=; unset $ac_var;} ;;
  17654. esac ;;
  17655. esac
  17656. done
  17657. (set) 2>&1 |
  17658. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17659. *${as_nl}ac_space=\ *)
  17660. # `set' does not quote correctly, so add quotes: double-quote
  17661. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17662. sed -n \
  17663. "s/'/'\\\\''/g;
  17664. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17665. ;; #(
  17666. *)
  17667. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17668. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17669. ;;
  17670. esac |
  17671. sort
  17672. ) |
  17673. sed '
  17674. /^ac_cv_env_/b end
  17675. t clear
  17676. :clear
  17677. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  17678. t end
  17679. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17680. :end' >>confcache
  17681. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17682. if test -w "$cache_file"; then
  17683. if test "x$cache_file" != "x/dev/null"; then
  17684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17685. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  17686. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17687. cat confcache >"$cache_file"
  17688. else
  17689. case $cache_file in #(
  17690. */* | ?:*)
  17691. mv -f confcache "$cache_file"$$ &&
  17692. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17693. *)
  17694. mv -f confcache "$cache_file" ;;
  17695. esac
  17696. fi
  17697. fi
  17698. else
  17699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17700. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  17701. fi
  17702. fi
  17703. rm -f confcache
  17704. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17705. # Let make expand exec_prefix.
  17706. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17707. DEFS=-DHAVE_CONFIG_H
  17708. ac_libobjs=
  17709. ac_ltlibobjs=
  17710. U=
  17711. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17712. # 1. Remove the extension, and $U if already installed.
  17713. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17714. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  17715. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17716. # will be set to the directory where LIBOBJS objects are built.
  17717. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17718. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17719. done
  17720. LIBOBJS=$ac_libobjs
  17721. LTLIBOBJS=$ac_ltlibobjs
  17722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17723. printf %s "checking that generated files are newer than configure... " >&6; }
  17724. if test -n "$am_sleep_pid"; then
  17725. # Hide warnings about reused PIDs.
  17726. wait $am_sleep_pid 2>/dev/null
  17727. fi
  17728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17729. printf "%s\n" "done" >&6; }
  17730. if test -n "$EXEEXT"; then
  17731. am__EXEEXT_TRUE=
  17732. am__EXEEXT_FALSE='#'
  17733. else
  17734. am__EXEEXT_TRUE='#'
  17735. am__EXEEXT_FALSE=
  17736. fi
  17737. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17738. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17740. fi
  17741. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17742. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17744. fi
  17745. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17746. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17748. fi
  17749. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17750. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17752. fi
  17753. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  17754. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  17755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17756. fi
  17757. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  17758. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  17759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17760. fi
  17761. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  17762. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  17763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17764. fi
  17765. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17766. as_fn_error $? "conditional \"MINGW\" was never defined.
  17767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17768. fi
  17769. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  17770. as_fn_error $? "conditional \"UNICODE\" was never defined.
  17771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17772. fi
  17773. if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
  17774. as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
  17775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17776. fi
  17777. if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
  17778. as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
  17779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17780. fi
  17781. if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
  17782. as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
  17783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17784. fi
  17785. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17786. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17788. fi
  17789. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17790. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17791. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17792. fi
  17793. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17794. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17796. fi
  17797. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17798. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17800. fi
  17801. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17802. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17804. fi
  17805. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17806. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17807. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17808. fi
  17809. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17810. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17812. fi
  17813. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  17814. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  17815. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17816. fi
  17817. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  17818. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  17819. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17820. fi
  17821. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  17822. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  17823. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17824. fi
  17825. : "${CONFIG_STATUS=./config.status}"
  17826. ac_write_fail=0
  17827. ac_clean_files_save=$ac_clean_files
  17828. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17830. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  17831. as_write_fail=0
  17832. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17833. #! $SHELL
  17834. # Generated by $as_me.
  17835. # Run this file to recreate the current configuration.
  17836. # Compiler output produced by configure, useful for debugging
  17837. # configure, is in config.log if it exists.
  17838. debug=false
  17839. ac_cs_recheck=false
  17840. ac_cs_silent=false
  17841. SHELL=\${CONFIG_SHELL-$SHELL}
  17842. export SHELL
  17843. _ASEOF
  17844. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17845. ## -------------------- ##
  17846. ## M4sh Initialization. ##
  17847. ## -------------------- ##
  17848. # Be more Bourne compatible
  17849. DUALCASE=1; export DUALCASE # for MKS sh
  17850. as_nop=:
  17851. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  17852. then :
  17853. emulate sh
  17854. NULLCMD=:
  17855. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17856. # is contrary to our usage. Disable this feature.
  17857. alias -g '${1+"$@"}'='"$@"'
  17858. setopt NO_GLOB_SUBST
  17859. else $as_nop
  17860. case `(set -o) 2>/dev/null` in #(
  17861. *posix*) :
  17862. set -o posix ;; #(
  17863. *) :
  17864. ;;
  17865. esac
  17866. fi
  17867. # Reset variables that may have inherited troublesome values from
  17868. # the environment.
  17869. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  17870. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  17871. # side effect of setting IFS to empty, thus disabling word splitting.)
  17872. # Quoting is to prevent editors from complaining about space-tab.
  17873. as_nl='
  17874. '
  17875. export as_nl
  17876. IFS=" "" $as_nl"
  17877. PS1='$ '
  17878. PS2='> '
  17879. PS4='+ '
  17880. # Ensure predictable behavior from utilities with locale-dependent output.
  17881. LC_ALL=C
  17882. export LC_ALL
  17883. LANGUAGE=C
  17884. export LANGUAGE
  17885. # We cannot yet rely on "unset" to work, but we need these variables
  17886. # to be unset--not just set to an empty or harmless value--now, to
  17887. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  17888. # also avoids known problems related to "unset" and subshell syntax
  17889. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  17890. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  17891. do eval test \${$as_var+y} \
  17892. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17893. done
  17894. # Ensure that fds 0, 1, and 2 are open.
  17895. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  17896. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  17897. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  17898. # The user is always right.
  17899. if ${PATH_SEPARATOR+false} :; then
  17900. PATH_SEPARATOR=:
  17901. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17902. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17903. PATH_SEPARATOR=';'
  17904. }
  17905. fi
  17906. # Find who we are. Look in the path if we contain no directory separator.
  17907. as_myself=
  17908. case $0 in #((
  17909. *[\\/]* ) as_myself=$0 ;;
  17910. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17911. for as_dir in $PATH
  17912. do
  17913. IFS=$as_save_IFS
  17914. case $as_dir in #(((
  17915. '') as_dir=./ ;;
  17916. */) ;;
  17917. *) as_dir=$as_dir/ ;;
  17918. esac
  17919. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  17920. done
  17921. IFS=$as_save_IFS
  17922. ;;
  17923. esac
  17924. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17925. # in which case we are not to be found in the path.
  17926. if test "x$as_myself" = x; then
  17927. as_myself=$0
  17928. fi
  17929. if test ! -f "$as_myself"; then
  17930. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17931. exit 1
  17932. fi
  17933. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17934. # ----------------------------------------
  17935. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17936. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17937. # script with STATUS, using 1 if that was 0.
  17938. as_fn_error ()
  17939. {
  17940. as_status=$1; test $as_status -eq 0 && as_status=1
  17941. if test "$4"; then
  17942. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17943. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17944. fi
  17945. printf "%s\n" "$as_me: error: $2" >&2
  17946. as_fn_exit $as_status
  17947. } # as_fn_error
  17948. # as_fn_set_status STATUS
  17949. # -----------------------
  17950. # Set $? to STATUS, without forking.
  17951. as_fn_set_status ()
  17952. {
  17953. return $1
  17954. } # as_fn_set_status
  17955. # as_fn_exit STATUS
  17956. # -----------------
  17957. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17958. as_fn_exit ()
  17959. {
  17960. set +e
  17961. as_fn_set_status $1
  17962. exit $1
  17963. } # as_fn_exit
  17964. # as_fn_unset VAR
  17965. # ---------------
  17966. # Portably unset VAR.
  17967. as_fn_unset ()
  17968. {
  17969. { eval $1=; unset $1;}
  17970. }
  17971. as_unset=as_fn_unset
  17972. # as_fn_append VAR VALUE
  17973. # ----------------------
  17974. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17975. # advantage of any shell optimizations that allow amortized linear growth over
  17976. # repeated appends, instead of the typical quadratic growth present in naive
  17977. # implementations.
  17978. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  17979. then :
  17980. eval 'as_fn_append ()
  17981. {
  17982. eval $1+=\$2
  17983. }'
  17984. else $as_nop
  17985. as_fn_append ()
  17986. {
  17987. eval $1=\$$1\$2
  17988. }
  17989. fi # as_fn_append
  17990. # as_fn_arith ARG...
  17991. # ------------------
  17992. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17993. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17994. # must be portable across $(()) and expr.
  17995. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  17996. then :
  17997. eval 'as_fn_arith ()
  17998. {
  17999. as_val=$(( $* ))
  18000. }'
  18001. else $as_nop
  18002. as_fn_arith ()
  18003. {
  18004. as_val=`expr "$@" || test $? -eq 1`
  18005. }
  18006. fi # as_fn_arith
  18007. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18008. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18009. as_expr=expr
  18010. else
  18011. as_expr=false
  18012. fi
  18013. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18014. as_basename=basename
  18015. else
  18016. as_basename=false
  18017. fi
  18018. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18019. as_dirname=dirname
  18020. else
  18021. as_dirname=false
  18022. fi
  18023. as_me=`$as_basename -- "$0" ||
  18024. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18025. X"$0" : 'X\(//\)$' \| \
  18026. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18027. printf "%s\n" X/"$0" |
  18028. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18029. s//\1/
  18030. q
  18031. }
  18032. /^X\/\(\/\/\)$/{
  18033. s//\1/
  18034. q
  18035. }
  18036. /^X\/\(\/\).*/{
  18037. s//\1/
  18038. q
  18039. }
  18040. s/.*/./; q'`
  18041. # Avoid depending upon Character Ranges.
  18042. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18043. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18044. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18045. as_cr_digits='0123456789'
  18046. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18047. # Determine whether it's possible to make 'echo' print without a newline.
  18048. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  18049. # for compatibility with existing Makefiles.
  18050. ECHO_C= ECHO_N= ECHO_T=
  18051. case `echo -n x` in #(((((
  18052. -n*)
  18053. case `echo 'xy\c'` in
  18054. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18055. xy) ECHO_C='\c';;
  18056. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18057. ECHO_T=' ';;
  18058. esac;;
  18059. *)
  18060. ECHO_N='-n';;
  18061. esac
  18062. # For backward compatibility with old third-party macros, we provide
  18063. # the shell variables $as_echo and $as_echo_n. New code should use
  18064. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  18065. as_echo='printf %s\n'
  18066. as_echo_n='printf %s'
  18067. rm -f conf$$ conf$$.exe conf$$.file
  18068. if test -d conf$$.dir; then
  18069. rm -f conf$$.dir/conf$$.file
  18070. else
  18071. rm -f conf$$.dir
  18072. mkdir conf$$.dir 2>/dev/null
  18073. fi
  18074. if (echo >conf$$.file) 2>/dev/null; then
  18075. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18076. as_ln_s='ln -s'
  18077. # ... but there are two gotchas:
  18078. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18079. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18080. # In both cases, we have to default to `cp -pR'.
  18081. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18082. as_ln_s='cp -pR'
  18083. elif ln conf$$.file conf$$ 2>/dev/null; then
  18084. as_ln_s=ln
  18085. else
  18086. as_ln_s='cp -pR'
  18087. fi
  18088. else
  18089. as_ln_s='cp -pR'
  18090. fi
  18091. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18092. rmdir conf$$.dir 2>/dev/null
  18093. # as_fn_mkdir_p
  18094. # -------------
  18095. # Create "$as_dir" as a directory, including parents if necessary.
  18096. as_fn_mkdir_p ()
  18097. {
  18098. case $as_dir in #(
  18099. -*) as_dir=./$as_dir;;
  18100. esac
  18101. test -d "$as_dir" || eval $as_mkdir_p || {
  18102. as_dirs=
  18103. while :; do
  18104. case $as_dir in #(
  18105. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18106. *) as_qdir=$as_dir;;
  18107. esac
  18108. as_dirs="'$as_qdir' $as_dirs"
  18109. as_dir=`$as_dirname -- "$as_dir" ||
  18110. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18111. X"$as_dir" : 'X\(//\)[^/]' \| \
  18112. X"$as_dir" : 'X\(//\)$' \| \
  18113. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18114. printf "%s\n" X"$as_dir" |
  18115. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18116. s//\1/
  18117. q
  18118. }
  18119. /^X\(\/\/\)[^/].*/{
  18120. s//\1/
  18121. q
  18122. }
  18123. /^X\(\/\/\)$/{
  18124. s//\1/
  18125. q
  18126. }
  18127. /^X\(\/\).*/{
  18128. s//\1/
  18129. q
  18130. }
  18131. s/.*/./; q'`
  18132. test -d "$as_dir" && break
  18133. done
  18134. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18135. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18136. } # as_fn_mkdir_p
  18137. if mkdir -p . 2>/dev/null; then
  18138. as_mkdir_p='mkdir -p "$as_dir"'
  18139. else
  18140. test -d ./-p && rmdir ./-p
  18141. as_mkdir_p=false
  18142. fi
  18143. # as_fn_executable_p FILE
  18144. # -----------------------
  18145. # Test if FILE is an executable regular file.
  18146. as_fn_executable_p ()
  18147. {
  18148. test -f "$1" && test -x "$1"
  18149. } # as_fn_executable_p
  18150. as_test_x='test -x'
  18151. as_executable_p=as_fn_executable_p
  18152. # Sed expression to map a string onto a valid CPP name.
  18153. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18154. # Sed expression to map a string onto a valid variable name.
  18155. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18156. exec 6>&1
  18157. ## ----------------------------------- ##
  18158. ## Main body of $CONFIG_STATUS script. ##
  18159. ## ----------------------------------- ##
  18160. _ASEOF
  18161. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18163. # Save the log message, to keep $0 and so on meaningful, and to
  18164. # report actual input values of CONFIG_FILES etc. instead of their
  18165. # values after options handling.
  18166. ac_log="
  18167. This file was extended by expat $as_me 2.6.4, which was
  18168. generated by GNU Autoconf 2.71. Invocation command line was
  18169. CONFIG_FILES = $CONFIG_FILES
  18170. CONFIG_HEADERS = $CONFIG_HEADERS
  18171. CONFIG_LINKS = $CONFIG_LINKS
  18172. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18173. $ $0 $@
  18174. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18175. "
  18176. _ACEOF
  18177. case $ac_config_files in *"
  18178. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18179. esac
  18180. case $ac_config_headers in *"
  18181. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18182. esac
  18183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18184. # Files that config.status was made for.
  18185. config_files="$ac_config_files"
  18186. config_headers="$ac_config_headers"
  18187. config_commands="$ac_config_commands"
  18188. _ACEOF
  18189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18190. ac_cs_usage="\
  18191. \`$as_me' instantiates files and other configuration actions
  18192. from templates according to the current configuration. Unless the files
  18193. and actions are specified as TAGs, all are instantiated by default.
  18194. Usage: $0 [OPTION]... [TAG]...
  18195. -h, --help print this help, then exit
  18196. -V, --version print version number and configuration settings, then exit
  18197. --config print configuration, then exit
  18198. -q, --quiet, --silent
  18199. do not print progress messages
  18200. -d, --debug don't remove temporary files
  18201. --recheck update $as_me by reconfiguring in the same conditions
  18202. --file=FILE[:TEMPLATE]
  18203. instantiate the configuration file FILE
  18204. --header=FILE[:TEMPLATE]
  18205. instantiate the configuration header FILE
  18206. Configuration files:
  18207. $config_files
  18208. Configuration headers:
  18209. $config_headers
  18210. Configuration commands:
  18211. $config_commands
  18212. Report bugs to <https://github.com/libexpat/libexpat/issues>."
  18213. _ACEOF
  18214. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  18215. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  18216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18217. ac_cs_config='$ac_cs_config_escaped'
  18218. ac_cs_version="\\
  18219. expat config.status 2.6.4
  18220. configured by $0, generated by GNU Autoconf 2.71,
  18221. with options \\"\$ac_cs_config\\"
  18222. Copyright (C) 2021 Free Software Foundation, Inc.
  18223. This config.status script is free software; the Free Software Foundation
  18224. gives unlimited permission to copy, distribute and modify it."
  18225. ac_pwd='$ac_pwd'
  18226. srcdir='$srcdir'
  18227. INSTALL='$INSTALL'
  18228. MKDIR_P='$MKDIR_P'
  18229. AWK='$AWK'
  18230. test -n "\$AWK" || AWK=awk
  18231. _ACEOF
  18232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18233. # The default lists apply if the user does not specify any file.
  18234. ac_need_defaults=:
  18235. while test $# != 0
  18236. do
  18237. case $1 in
  18238. --*=?*)
  18239. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18240. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18241. ac_shift=:
  18242. ;;
  18243. --*=)
  18244. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18245. ac_optarg=
  18246. ac_shift=:
  18247. ;;
  18248. *)
  18249. ac_option=$1
  18250. ac_optarg=$2
  18251. ac_shift=shift
  18252. ;;
  18253. esac
  18254. case $ac_option in
  18255. # Handling of the options.
  18256. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18257. ac_cs_recheck=: ;;
  18258. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18259. printf "%s\n" "$ac_cs_version"; exit ;;
  18260. --config | --confi | --conf | --con | --co | --c )
  18261. printf "%s\n" "$ac_cs_config"; exit ;;
  18262. --debug | --debu | --deb | --de | --d | -d )
  18263. debug=: ;;
  18264. --file | --fil | --fi | --f )
  18265. $ac_shift
  18266. case $ac_optarg in
  18267. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18268. '') as_fn_error $? "missing file argument" ;;
  18269. esac
  18270. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18271. ac_need_defaults=false;;
  18272. --header | --heade | --head | --hea )
  18273. $ac_shift
  18274. case $ac_optarg in
  18275. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18276. esac
  18277. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18278. ac_need_defaults=false;;
  18279. --he | --h)
  18280. # Conflict between --help and --header
  18281. as_fn_error $? "ambiguous option: \`$1'
  18282. Try \`$0 --help' for more information.";;
  18283. --help | --hel | -h )
  18284. printf "%s\n" "$ac_cs_usage"; exit ;;
  18285. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18286. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18287. ac_cs_silent=: ;;
  18288. # This is an error.
  18289. -*) as_fn_error $? "unrecognized option: \`$1'
  18290. Try \`$0 --help' for more information." ;;
  18291. *) as_fn_append ac_config_targets " $1"
  18292. ac_need_defaults=false ;;
  18293. esac
  18294. shift
  18295. done
  18296. ac_configure_extra_args=
  18297. if $ac_cs_silent; then
  18298. exec 6>/dev/null
  18299. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18300. fi
  18301. _ACEOF
  18302. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18303. if \$ac_cs_recheck; then
  18304. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18305. shift
  18306. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  18307. CONFIG_SHELL='$SHELL'
  18308. export CONFIG_SHELL
  18309. exec "\$@"
  18310. fi
  18311. _ACEOF
  18312. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18313. exec 5>>config.log
  18314. {
  18315. echo
  18316. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18317. ## Running $as_me. ##
  18318. _ASBOX
  18319. printf "%s\n" "$ac_log"
  18320. } >&5
  18321. _ACEOF
  18322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18323. #
  18324. # INIT-COMMANDS
  18325. #
  18326. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18327. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18328. # if CDPATH is set.
  18329. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18330. sed_quote_subst='$sed_quote_subst'
  18331. double_quote_subst='$double_quote_subst'
  18332. delay_variable_subst='$delay_variable_subst'
  18333. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18334. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18335. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18336. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18337. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18338. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18339. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18340. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18341. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18342. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18343. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18344. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18345. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18346. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18347. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18348. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18349. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18350. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18351. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18352. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18353. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18354. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18355. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18356. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18357. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18358. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18359. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18360. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18361. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18362. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18363. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18364. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18365. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18366. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18367. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18368. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18369. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18370. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  18371. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18372. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18373. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18374. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18375. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18376. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18377. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  18378. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18379. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18380. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18381. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18382. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18383. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18384. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18385. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18386. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18387. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18388. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18389. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18390. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18391. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18392. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18393. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18394. 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"`'
  18395. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18396. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18397. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18398. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18399. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18400. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18401. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18402. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18403. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18404. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18405. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18406. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18407. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18408. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18409. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18410. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18411. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18412. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18413. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18414. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18415. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18416. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18417. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18418. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18419. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18420. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18421. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18422. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18423. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18424. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18425. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18426. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18427. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18428. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18429. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18430. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18431. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18432. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18433. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18434. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18435. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18436. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18437. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18438. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18439. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18440. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18441. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18442. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18443. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18444. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18445. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18446. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18447. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18448. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18449. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18450. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18451. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18452. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18453. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18454. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18455. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18456. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18457. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18458. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18459. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18460. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18461. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18462. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18463. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18464. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18465. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18466. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18467. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18468. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18469. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18470. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18471. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18472. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18473. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18474. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18475. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18476. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18477. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18478. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18479. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18480. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18481. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18482. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18483. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18484. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18485. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18486. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18487. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18488. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18489. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18490. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18491. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18492. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18493. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18494. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18495. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18496. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18497. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18498. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18499. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18500. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18501. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18502. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18503. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18504. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18505. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18506. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18507. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18508. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18509. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18510. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18511. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18512. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18513. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18514. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18515. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18516. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18517. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18518. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18519. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18520. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18521. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18522. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18523. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18524. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18525. LTCC='$LTCC'
  18526. LTCFLAGS='$LTCFLAGS'
  18527. compiler='$compiler_DEFAULT'
  18528. # A function that is used when there is no print builtin or printf.
  18529. func_fallback_echo ()
  18530. {
  18531. eval 'cat <<_LTECHO_EOF
  18532. \$1
  18533. _LTECHO_EOF'
  18534. }
  18535. # Quote evaled strings.
  18536. for var in AS \
  18537. DLLTOOL \
  18538. OBJDUMP \
  18539. SHELL \
  18540. ECHO \
  18541. PATH_SEPARATOR \
  18542. SED \
  18543. GREP \
  18544. EGREP \
  18545. FGREP \
  18546. LD \
  18547. NM \
  18548. LN_S \
  18549. lt_SP2NL \
  18550. lt_NL2SP \
  18551. reload_flag \
  18552. FILECMD \
  18553. deplibs_check_method \
  18554. file_magic_cmd \
  18555. file_magic_glob \
  18556. want_nocaseglob \
  18557. sharedlib_from_linklib_cmd \
  18558. AR \
  18559. archiver_list_spec \
  18560. STRIP \
  18561. RANLIB \
  18562. CC \
  18563. CFLAGS \
  18564. compiler \
  18565. lt_cv_sys_global_symbol_pipe \
  18566. lt_cv_sys_global_symbol_to_cdecl \
  18567. lt_cv_sys_global_symbol_to_import \
  18568. lt_cv_sys_global_symbol_to_c_name_address \
  18569. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18570. lt_cv_nm_interface \
  18571. nm_file_list_spec \
  18572. lt_cv_truncate_bin \
  18573. lt_prog_compiler_no_builtin_flag \
  18574. lt_prog_compiler_pic \
  18575. lt_prog_compiler_wl \
  18576. lt_prog_compiler_static \
  18577. lt_cv_prog_compiler_c_o \
  18578. need_locks \
  18579. MANIFEST_TOOL \
  18580. DSYMUTIL \
  18581. NMEDIT \
  18582. LIPO \
  18583. OTOOL \
  18584. OTOOL64 \
  18585. shrext_cmds \
  18586. export_dynamic_flag_spec \
  18587. whole_archive_flag_spec \
  18588. compiler_needs_object \
  18589. with_gnu_ld \
  18590. allow_undefined_flag \
  18591. no_undefined_flag \
  18592. hardcode_libdir_flag_spec \
  18593. hardcode_libdir_separator \
  18594. exclude_expsyms \
  18595. include_expsyms \
  18596. file_list_spec \
  18597. variables_saved_for_relink \
  18598. libname_spec \
  18599. library_names_spec \
  18600. soname_spec \
  18601. install_override_mode \
  18602. finish_eval \
  18603. old_striplib \
  18604. striplib \
  18605. compiler_lib_search_dirs \
  18606. predep_objects \
  18607. postdep_objects \
  18608. predeps \
  18609. postdeps \
  18610. compiler_lib_search_path \
  18611. LD_CXX \
  18612. reload_flag_CXX \
  18613. compiler_CXX \
  18614. lt_prog_compiler_no_builtin_flag_CXX \
  18615. lt_prog_compiler_pic_CXX \
  18616. lt_prog_compiler_wl_CXX \
  18617. lt_prog_compiler_static_CXX \
  18618. lt_cv_prog_compiler_c_o_CXX \
  18619. export_dynamic_flag_spec_CXX \
  18620. whole_archive_flag_spec_CXX \
  18621. compiler_needs_object_CXX \
  18622. with_gnu_ld_CXX \
  18623. allow_undefined_flag_CXX \
  18624. no_undefined_flag_CXX \
  18625. hardcode_libdir_flag_spec_CXX \
  18626. hardcode_libdir_separator_CXX \
  18627. exclude_expsyms_CXX \
  18628. include_expsyms_CXX \
  18629. file_list_spec_CXX \
  18630. compiler_lib_search_dirs_CXX \
  18631. predep_objects_CXX \
  18632. postdep_objects_CXX \
  18633. predeps_CXX \
  18634. postdeps_CXX \
  18635. compiler_lib_search_path_CXX; do
  18636. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18637. *[\\\\\\\`\\"\\\$]*)
  18638. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18639. ;;
  18640. *)
  18641. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18642. ;;
  18643. esac
  18644. done
  18645. # Double-quote double-evaled strings.
  18646. for var in reload_cmds \
  18647. old_postinstall_cmds \
  18648. old_postuninstall_cmds \
  18649. old_archive_cmds \
  18650. extract_expsyms_cmds \
  18651. old_archive_from_new_cmds \
  18652. old_archive_from_expsyms_cmds \
  18653. archive_cmds \
  18654. archive_expsym_cmds \
  18655. module_cmds \
  18656. module_expsym_cmds \
  18657. export_symbols_cmds \
  18658. prelink_cmds \
  18659. postlink_cmds \
  18660. postinstall_cmds \
  18661. postuninstall_cmds \
  18662. finish_cmds \
  18663. sys_lib_search_path_spec \
  18664. configure_time_dlsearch_path \
  18665. configure_time_lt_sys_library_path \
  18666. reload_cmds_CXX \
  18667. old_archive_cmds_CXX \
  18668. old_archive_from_new_cmds_CXX \
  18669. old_archive_from_expsyms_cmds_CXX \
  18670. archive_cmds_CXX \
  18671. archive_expsym_cmds_CXX \
  18672. module_cmds_CXX \
  18673. module_expsym_cmds_CXX \
  18674. export_symbols_cmds_CXX \
  18675. prelink_cmds_CXX \
  18676. postlink_cmds_CXX; do
  18677. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18678. *[\\\\\\\`\\"\\\$]*)
  18679. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18680. ;;
  18681. *)
  18682. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18683. ;;
  18684. esac
  18685. done
  18686. ac_aux_dir='$ac_aux_dir'
  18687. # See if we are running on zsh, and set the options that allow our
  18688. # commands through without removal of \ escapes INIT.
  18689. if test -n "\${ZSH_VERSION+set}"; then
  18690. setopt NO_GLOB_SUBST
  18691. fi
  18692. PACKAGE='$PACKAGE'
  18693. VERSION='$VERSION'
  18694. RM='$RM'
  18695. ofile='$ofile'
  18696. _ACEOF
  18697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18698. # Handling of arguments.
  18699. for ac_config_target in $ac_config_targets
  18700. do
  18701. case $ac_config_target in
  18702. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  18703. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18704. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18705. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18706. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  18707. "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
  18708. "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
  18709. "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
  18710. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18711. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  18712. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  18713. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18714. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  18715. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  18716. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  18717. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18718. esac
  18719. done
  18720. # If the user did not use the arguments to specify the items to instantiate,
  18721. # then the envvar interface is used. Set only those that are not.
  18722. # We use the long form for the default assignment because of an extremely
  18723. # bizarre bug on SunOS 4.1.3.
  18724. if $ac_need_defaults; then
  18725. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  18726. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  18727. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  18728. fi
  18729. # Have a temporary directory for convenience. Make it in the build tree
  18730. # simply because there is no reason against having it here, and in addition,
  18731. # creating and moving files from /tmp can sometimes cause problems.
  18732. # Hook for its removal unless debugging.
  18733. # Note that there is a small window in which the directory will not be cleaned:
  18734. # after its creation but before its name has been assigned to `$tmp'.
  18735. $debug ||
  18736. {
  18737. tmp= ac_tmp=
  18738. trap 'exit_status=$?
  18739. : "${ac_tmp:=$tmp}"
  18740. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18741. ' 0
  18742. trap 'as_fn_exit 1' 1 2 13 15
  18743. }
  18744. # Create a (secure) tmp directory for tmp files.
  18745. {
  18746. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18747. test -d "$tmp"
  18748. } ||
  18749. {
  18750. tmp=./conf$$-$RANDOM
  18751. (umask 077 && mkdir "$tmp")
  18752. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18753. ac_tmp=$tmp
  18754. # Set up the scripts for CONFIG_FILES section.
  18755. # No need to generate them if there are no CONFIG_FILES.
  18756. # This happens for instance with `./config.status config.h'.
  18757. if test -n "$CONFIG_FILES"; then
  18758. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  18759. ac_cs_awk_getline=:
  18760. ac_cs_awk_pipe_init=
  18761. ac_cs_awk_read_file='
  18762. while ((getline aline < (F[key])) > 0)
  18763. print(aline)
  18764. close(F[key])'
  18765. ac_cs_awk_pipe_fini=
  18766. else
  18767. ac_cs_awk_getline=false
  18768. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  18769. ac_cs_awk_read_file='
  18770. print "|#_!!_#|"
  18771. print "cat " F[key] " &&"
  18772. '$ac_cs_awk_pipe_init
  18773. # The final `:' finishes the AND list.
  18774. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  18775. fi
  18776. ac_cr=`echo X | tr X '\015'`
  18777. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18778. # But we know of no other shell where ac_cr would be empty at this
  18779. # point, so we can use a bashism as a fallback.
  18780. if test "x$ac_cr" = x; then
  18781. eval ac_cr=\$\'\\r\'
  18782. fi
  18783. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18784. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18785. ac_cs_awk_cr='\\r'
  18786. else
  18787. ac_cs_awk_cr=$ac_cr
  18788. fi
  18789. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18790. _ACEOF
  18791. # Create commands to substitute file output variables.
  18792. {
  18793. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  18794. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  18795. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  18796. echo "_ACAWK" &&
  18797. echo "_ACEOF"
  18798. } >conf$$files.sh &&
  18799. . ./conf$$files.sh ||
  18800. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18801. rm -f conf$$files.sh
  18802. {
  18803. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18804. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18805. echo "_ACEOF"
  18806. } >conf$$subs.sh ||
  18807. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18808. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18809. ac_delim='%!_!# '
  18810. for ac_last_try in false false false false false :; do
  18811. . ./conf$$subs.sh ||
  18812. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18813. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18814. if test $ac_delim_n = $ac_delim_num; then
  18815. break
  18816. elif $ac_last_try; then
  18817. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18818. else
  18819. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18820. fi
  18821. done
  18822. rm -f conf$$subs.sh
  18823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18824. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18825. _ACEOF
  18826. sed -n '
  18827. h
  18828. s/^/S["/; s/!.*/"]=/
  18829. p
  18830. g
  18831. s/^[^!]*!//
  18832. :repl
  18833. t repl
  18834. s/'"$ac_delim"'$//
  18835. t delim
  18836. :nl
  18837. h
  18838. s/\(.\{148\}\)..*/\1/
  18839. t more1
  18840. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18841. p
  18842. n
  18843. b repl
  18844. :more1
  18845. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18846. p
  18847. g
  18848. s/.\{148\}//
  18849. t nl
  18850. :delim
  18851. h
  18852. s/\(.\{148\}\)..*/\1/
  18853. t more2
  18854. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18855. p
  18856. b
  18857. :more2
  18858. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18859. p
  18860. g
  18861. s/.\{148\}//
  18862. t delim
  18863. ' <conf$$subs.awk | sed '
  18864. /^[^""]/{
  18865. N
  18866. s/\n//
  18867. }
  18868. ' >>$CONFIG_STATUS || ac_write_fail=1
  18869. rm -f conf$$subs.awk
  18870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18871. _ACAWK
  18872. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18873. for (key in S) S_is_set[key] = 1
  18874. FS = ""
  18875. \$ac_cs_awk_pipe_init
  18876. }
  18877. {
  18878. line = $ 0
  18879. nfields = split(line, field, "@")
  18880. substed = 0
  18881. len = length(field[1])
  18882. for (i = 2; i < nfields; i++) {
  18883. key = field[i]
  18884. keylen = length(key)
  18885. if (S_is_set[key]) {
  18886. value = S[key]
  18887. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18888. len += length(value) + length(field[++i])
  18889. substed = 1
  18890. } else
  18891. len += 1 + keylen
  18892. }
  18893. if (nfields == 3 && !substed) {
  18894. key = field[2]
  18895. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  18896. \$ac_cs_awk_read_file
  18897. next
  18898. }
  18899. }
  18900. print line
  18901. }
  18902. \$ac_cs_awk_pipe_fini
  18903. _ACAWK
  18904. _ACEOF
  18905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18906. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18907. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18908. else
  18909. cat
  18910. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18911. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18912. _ACEOF
  18913. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18914. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18915. # trailing colons and then remove the whole line if VPATH becomes empty
  18916. # (actually we leave an empty line to preserve line numbers).
  18917. if test "x$srcdir" = x.; then
  18918. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18919. h
  18920. s///
  18921. s/^/:/
  18922. s/[ ]*$/:/
  18923. s/:\$(srcdir):/:/g
  18924. s/:\${srcdir}:/:/g
  18925. s/:@srcdir@:/:/g
  18926. s/^:*//
  18927. s/:*$//
  18928. x
  18929. s/\(=[ ]*\).*/\1/
  18930. G
  18931. s/\n//
  18932. s/^[^=]*=[ ]*$//
  18933. }'
  18934. fi
  18935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18936. fi # test -n "$CONFIG_FILES"
  18937. # Set up the scripts for CONFIG_HEADERS section.
  18938. # No need to generate them if there are no CONFIG_HEADERS.
  18939. # This happens for instance with `./config.status Makefile'.
  18940. if test -n "$CONFIG_HEADERS"; then
  18941. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18942. BEGIN {
  18943. _ACEOF
  18944. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18945. # here-document in config.status, that substitutes the proper values into
  18946. # config.h.in to produce config.h.
  18947. # Create a delimiter string that does not exist in confdefs.h, to ease
  18948. # handling of long lines.
  18949. ac_delim='%!_!# '
  18950. for ac_last_try in false false :; do
  18951. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18952. if test -z "$ac_tt"; then
  18953. break
  18954. elif $ac_last_try; then
  18955. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18956. else
  18957. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18958. fi
  18959. done
  18960. # For the awk script, D is an array of macro values keyed by name,
  18961. # likewise P contains macro parameters if any. Preserve backslash
  18962. # newline sequences.
  18963. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18964. sed -n '
  18965. s/.\{148\}/&'"$ac_delim"'/g
  18966. t rset
  18967. :rset
  18968. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18969. t def
  18970. d
  18971. :def
  18972. s/\\$//
  18973. t bsnl
  18974. s/["\\]/\\&/g
  18975. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18976. D["\1"]=" \3"/p
  18977. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18978. d
  18979. :bsnl
  18980. s/["\\]/\\&/g
  18981. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18982. D["\1"]=" \3\\\\\\n"\\/p
  18983. t cont
  18984. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18985. t cont
  18986. d
  18987. :cont
  18988. n
  18989. s/.\{148\}/&'"$ac_delim"'/g
  18990. t clear
  18991. :clear
  18992. s/\\$//
  18993. t bsnlc
  18994. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18995. d
  18996. :bsnlc
  18997. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18998. b cont
  18999. ' <confdefs.h | sed '
  19000. s/'"$ac_delim"'/"\\\
  19001. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19003. for (key in D) D_is_set[key] = 1
  19004. FS = ""
  19005. }
  19006. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19007. line = \$ 0
  19008. split(line, arg, " ")
  19009. if (arg[1] == "#") {
  19010. defundef = arg[2]
  19011. mac1 = arg[3]
  19012. } else {
  19013. defundef = substr(arg[1], 2)
  19014. mac1 = arg[2]
  19015. }
  19016. split(mac1, mac2, "(") #)
  19017. macro = mac2[1]
  19018. prefix = substr(line, 1, index(line, defundef) - 1)
  19019. if (D_is_set[macro]) {
  19020. # Preserve the white space surrounding the "#".
  19021. print prefix "define", macro P[macro] D[macro]
  19022. next
  19023. } else {
  19024. # Replace #undef with comments. This is necessary, for example,
  19025. # in the case of _POSIX_SOURCE, which is predefined and required
  19026. # on some systems where configure will not decide to define it.
  19027. if (defundef == "undef") {
  19028. print "/*", prefix defundef, macro, "*/"
  19029. next
  19030. }
  19031. }
  19032. }
  19033. { print }
  19034. _ACAWK
  19035. _ACEOF
  19036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19037. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19038. fi # test -n "$CONFIG_HEADERS"
  19039. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19040. shift
  19041. for ac_tag
  19042. do
  19043. case $ac_tag in
  19044. :[FHLC]) ac_mode=$ac_tag; continue;;
  19045. esac
  19046. case $ac_mode$ac_tag in
  19047. :[FHL]*:*);;
  19048. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19049. :[FH]-) ac_tag=-:-;;
  19050. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19051. esac
  19052. ac_save_IFS=$IFS
  19053. IFS=:
  19054. set x $ac_tag
  19055. IFS=$ac_save_IFS
  19056. shift
  19057. ac_file=$1
  19058. shift
  19059. case $ac_mode in
  19060. :L) ac_source=$1;;
  19061. :[FH])
  19062. ac_file_inputs=
  19063. for ac_f
  19064. do
  19065. case $ac_f in
  19066. -) ac_f="$ac_tmp/stdin";;
  19067. *) # Look for the file first in the build tree, then in the source tree
  19068. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19069. # because $ac_f cannot contain `:'.
  19070. test -f "$ac_f" ||
  19071. case $ac_f in
  19072. [\\/$]*) false;;
  19073. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19074. esac ||
  19075. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19076. esac
  19077. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19078. as_fn_append ac_file_inputs " '$ac_f'"
  19079. done
  19080. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19081. # use $as_me), people would be surprised to read:
  19082. # /* config.h. Generated by config.status. */
  19083. configure_input='Generated from '`
  19084. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19085. `' by configure.'
  19086. if test x"$ac_file" != x-; then
  19087. configure_input="$ac_file. $configure_input"
  19088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19089. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  19090. fi
  19091. # Neutralize special characters interpreted by sed in replacement strings.
  19092. case $configure_input in #(
  19093. *\&* | *\|* | *\\* )
  19094. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  19095. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19096. *) ac_sed_conf_input=$configure_input;;
  19097. esac
  19098. case $ac_tag in
  19099. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19100. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19101. esac
  19102. ;;
  19103. esac
  19104. ac_dir=`$as_dirname -- "$ac_file" ||
  19105. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19106. X"$ac_file" : 'X\(//\)[^/]' \| \
  19107. X"$ac_file" : 'X\(//\)$' \| \
  19108. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19109. printf "%s\n" X"$ac_file" |
  19110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19111. s//\1/
  19112. q
  19113. }
  19114. /^X\(\/\/\)[^/].*/{
  19115. s//\1/
  19116. q
  19117. }
  19118. /^X\(\/\/\)$/{
  19119. s//\1/
  19120. q
  19121. }
  19122. /^X\(\/\).*/{
  19123. s//\1/
  19124. q
  19125. }
  19126. s/.*/./; q'`
  19127. as_dir="$ac_dir"; as_fn_mkdir_p
  19128. ac_builddir=.
  19129. case "$ac_dir" in
  19130. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19131. *)
  19132. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  19133. # A ".." for each directory in $ac_dir_suffix.
  19134. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19135. case $ac_top_builddir_sub in
  19136. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19137. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19138. esac ;;
  19139. esac
  19140. ac_abs_top_builddir=$ac_pwd
  19141. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19142. # for backward compatibility:
  19143. ac_top_builddir=$ac_top_build_prefix
  19144. case $srcdir in
  19145. .) # We are building in place.
  19146. ac_srcdir=.
  19147. ac_top_srcdir=$ac_top_builddir_sub
  19148. ac_abs_top_srcdir=$ac_pwd ;;
  19149. [\\/]* | ?:[\\/]* ) # Absolute name.
  19150. ac_srcdir=$srcdir$ac_dir_suffix;
  19151. ac_top_srcdir=$srcdir
  19152. ac_abs_top_srcdir=$srcdir ;;
  19153. *) # Relative name.
  19154. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19155. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19156. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19157. esac
  19158. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19159. case $ac_mode in
  19160. :F)
  19161. #
  19162. # CONFIG_FILE
  19163. #
  19164. case $INSTALL in
  19165. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19166. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19167. esac
  19168. ac_MKDIR_P=$MKDIR_P
  19169. case $MKDIR_P in
  19170. [\\/$]* | ?:[\\/]* ) ;;
  19171. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19172. esac
  19173. _ACEOF
  19174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19175. # If the template does not know about datarootdir, expand it.
  19176. # FIXME: This hack should be removed a few years after 2.60.
  19177. ac_datarootdir_hack=; ac_datarootdir_seen=
  19178. ac_sed_dataroot='
  19179. /datarootdir/ {
  19180. p
  19181. q
  19182. }
  19183. /@datadir@/p
  19184. /@docdir@/p
  19185. /@infodir@/p
  19186. /@localedir@/p
  19187. /@mandir@/p'
  19188. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19189. *datarootdir*) ac_datarootdir_seen=yes;;
  19190. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19192. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19193. _ACEOF
  19194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19195. ac_datarootdir_hack='
  19196. s&@datadir@&$datadir&g
  19197. s&@docdir@&$docdir&g
  19198. s&@infodir@&$infodir&g
  19199. s&@localedir@&$localedir&g
  19200. s&@mandir@&$mandir&g
  19201. s&\\\${datarootdir}&$datarootdir&g' ;;
  19202. esac
  19203. _ACEOF
  19204. # Neutralize VPATH when `$srcdir' = `.'.
  19205. # Shell code in configure.ac might set extrasub.
  19206. # FIXME: do we really want to maintain this feature?
  19207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19208. ac_sed_extra="$ac_vpsub
  19209. $extrasub
  19210. _ACEOF
  19211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19212. :t
  19213. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19214. s|@configure_input@|$ac_sed_conf_input|;t t
  19215. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19216. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19217. s&@srcdir@&$ac_srcdir&;t t
  19218. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19219. s&@top_srcdir@&$ac_top_srcdir&;t t
  19220. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19221. s&@builddir@&$ac_builddir&;t t
  19222. s&@abs_builddir@&$ac_abs_builddir&;t t
  19223. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19224. s&@INSTALL@&$ac_INSTALL&;t t
  19225. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19226. $ac_datarootdir_hack
  19227. "
  19228. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  19229. if $ac_cs_awk_getline; then
  19230. $AWK -f "$ac_tmp/subs.awk"
  19231. else
  19232. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  19233. fi \
  19234. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19235. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19236. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19237. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19238. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19240. which seems to be undefined. Please make sure it is defined" >&5
  19241. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19242. which seems to be undefined. Please make sure it is defined" >&2;}
  19243. rm -f "$ac_tmp/stdin"
  19244. case $ac_file in
  19245. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19246. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19247. esac \
  19248. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19249. ;;
  19250. :H)
  19251. #
  19252. # CONFIG_HEADER
  19253. #
  19254. if test x"$ac_file" != x-; then
  19255. {
  19256. printf "%s\n" "/* $configure_input */" >&1 \
  19257. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19258. } >"$ac_tmp/config.h" \
  19259. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19260. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19262. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  19263. else
  19264. rm -f "$ac_file"
  19265. mv "$ac_tmp/config.h" "$ac_file" \
  19266. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19267. fi
  19268. else
  19269. printf "%s\n" "/* $configure_input */" >&1 \
  19270. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19271. || as_fn_error $? "could not create -" "$LINENO" 5
  19272. fi
  19273. # Compute "$ac_file"'s index in $config_headers.
  19274. _am_arg="$ac_file"
  19275. _am_stamp_count=1
  19276. for _am_header in $config_headers :; do
  19277. case $_am_header in
  19278. $_am_arg | $_am_arg:* )
  19279. break ;;
  19280. * )
  19281. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19282. esac
  19283. done
  19284. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19285. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19286. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19287. X"$_am_arg" : 'X\(//\)$' \| \
  19288. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19289. printf "%s\n" X"$_am_arg" |
  19290. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19291. s//\1/
  19292. q
  19293. }
  19294. /^X\(\/\/\)[^/].*/{
  19295. s//\1/
  19296. q
  19297. }
  19298. /^X\(\/\/\)$/{
  19299. s//\1/
  19300. q
  19301. }
  19302. /^X\(\/\).*/{
  19303. s//\1/
  19304. q
  19305. }
  19306. s/.*/./; q'`/stamp-h$_am_stamp_count
  19307. ;;
  19308. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19309. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  19310. ;;
  19311. esac
  19312. case $ac_file$ac_mode in
  19313. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19314. # Older Autoconf quotes --file arguments for eval, but not when files
  19315. # are listed without --file. Let's play safe and only enable the eval
  19316. # if we detect the quoting.
  19317. # TODO: see whether this extra hack can be removed once we start
  19318. # requiring Autoconf 2.70 or later.
  19319. case $CONFIG_FILES in #(
  19320. *\'*) :
  19321. eval set x "$CONFIG_FILES" ;; #(
  19322. *) :
  19323. set x $CONFIG_FILES ;; #(
  19324. *) :
  19325. ;;
  19326. esac
  19327. shift
  19328. # Used to flag and report bootstrapping failures.
  19329. am_rc=0
  19330. for am_mf
  19331. do
  19332. # Strip MF so we end up with the name of the file.
  19333. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  19334. # Check whether this is an Automake generated Makefile which includes
  19335. # dependency-tracking related rules and includes.
  19336. # Grep'ing the whole file directly is not great: AIX grep has a line
  19337. # limit of 2048, but all sed's we know have understand at least 4000.
  19338. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  19339. || continue
  19340. am_dirpart=`$as_dirname -- "$am_mf" ||
  19341. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19342. X"$am_mf" : 'X\(//\)[^/]' \| \
  19343. X"$am_mf" : 'X\(//\)$' \| \
  19344. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19345. printf "%s\n" X"$am_mf" |
  19346. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19347. s//\1/
  19348. q
  19349. }
  19350. /^X\(\/\/\)[^/].*/{
  19351. s//\1/
  19352. q
  19353. }
  19354. /^X\(\/\/\)$/{
  19355. s//\1/
  19356. q
  19357. }
  19358. /^X\(\/\).*/{
  19359. s//\1/
  19360. q
  19361. }
  19362. s/.*/./; q'`
  19363. am_filepart=`$as_basename -- "$am_mf" ||
  19364. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19365. X"$am_mf" : 'X\(//\)$' \| \
  19366. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19367. printf "%s\n" X/"$am_mf" |
  19368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19369. s//\1/
  19370. q
  19371. }
  19372. /^X\/\(\/\/\)$/{
  19373. s//\1/
  19374. q
  19375. }
  19376. /^X\/\(\/\).*/{
  19377. s//\1/
  19378. q
  19379. }
  19380. s/.*/./; q'`
  19381. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19382. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19383. | $MAKE -f - am--depfiles" >&5
  19384. (cd "$am_dirpart" \
  19385. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19386. | $MAKE -f - am--depfiles) >&5 2>&5
  19387. ac_status=$?
  19388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19389. (exit $ac_status); } || am_rc=$?
  19390. done
  19391. if test $am_rc -ne 0; then
  19392. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19393. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  19394. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19395. for automatic dependency tracking. If GNU make was not used, consider
  19396. re-running the configure script with MAKE=\"gmake\" (or whatever is
  19397. necessary). You can also try re-running configure with the
  19398. '--disable-dependency-tracking' option to at least be able to build
  19399. the package (albeit without support for automatic dependency tracking).
  19400. See \`config.log' for more details" "$LINENO" 5; }
  19401. fi
  19402. { am_dirpart=; unset am_dirpart;}
  19403. { am_filepart=; unset am_filepart;}
  19404. { am_mf=; unset am_mf;}
  19405. { am_rc=; unset am_rc;}
  19406. rm -f conftest-deps.mk
  19407. }
  19408. ;;
  19409. "libtool":C)
  19410. # See if we are running on zsh, and set the options that allow our
  19411. # commands through without removal of \ escapes.
  19412. if test -n "${ZSH_VERSION+set}"; then
  19413. setopt NO_GLOB_SUBST
  19414. fi
  19415. cfgfile=${ofile}T
  19416. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19417. $RM "$cfgfile"
  19418. cat <<_LT_EOF >> "$cfgfile"
  19419. #! $SHELL
  19420. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19421. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19422. # Provide generalized library-building support services.
  19423. # Written by Gordon Matzigkeit, 1996
  19424. # Copyright (C) 2024 Free Software Foundation, Inc.
  19425. # This is free software; see the source for copying conditions. There is NO
  19426. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19427. # GNU Libtool is free software; you can redistribute it and/or modify
  19428. # it under the terms of the GNU General Public License as published by
  19429. # the Free Software Foundation; either version 2 of the License, or
  19430. # (at your option) any later version.
  19431. #
  19432. # As a special exception to the GNU General Public License, if you
  19433. # distribute this file as part of a program or library that is built
  19434. # using GNU Libtool, you may include this file under the same
  19435. # distribution terms that you use for the rest of that program.
  19436. #
  19437. # GNU Libtool is distributed in the hope that it will be useful, but
  19438. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19439. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19440. # GNU General Public License for more details.
  19441. #
  19442. # You should have received a copy of the GNU General Public License
  19443. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19444. # The names of the tagged configurations supported by this script.
  19445. available_tags='CXX '
  19446. # Configured defaults for sys_lib_dlsearch_path munging.
  19447. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19448. # ### BEGIN LIBTOOL CONFIG
  19449. # Which release of libtool.m4 was used?
  19450. macro_version=$macro_version
  19451. macro_revision=$macro_revision
  19452. # Assembler program.
  19453. AS=$lt_AS
  19454. # DLL creation program.
  19455. DLLTOOL=$lt_DLLTOOL
  19456. # Object dumper program.
  19457. OBJDUMP=$lt_OBJDUMP
  19458. # Whether or not to build shared libraries.
  19459. build_libtool_libs=$enable_shared
  19460. # Whether or not to build static libraries.
  19461. build_old_libs=$enable_static
  19462. # What type of objects to build.
  19463. pic_mode=$pic_mode
  19464. # Whether or not to optimize for fast installation.
  19465. fast_install=$enable_fast_install
  19466. # Shared archive member basename,for filename based shared library versioning on AIX.
  19467. shared_archive_member_spec=$shared_archive_member_spec
  19468. # Shell to use when invoking shell scripts.
  19469. SHELL=$lt_SHELL
  19470. # An echo program that protects backslashes.
  19471. ECHO=$lt_ECHO
  19472. # The PATH separator for the build system.
  19473. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19474. # The host system.
  19475. host_alias=$host_alias
  19476. host=$host
  19477. host_os=$host_os
  19478. # The build system.
  19479. build_alias=$build_alias
  19480. build=$build
  19481. build_os=$build_os
  19482. # A sed program that does not truncate output.
  19483. SED=$lt_SED
  19484. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19485. Xsed="\$SED -e 1s/^X//"
  19486. # A grep program that handles long lines.
  19487. GREP=$lt_GREP
  19488. # An ERE matcher.
  19489. EGREP=$lt_EGREP
  19490. # A literal string matcher.
  19491. FGREP=$lt_FGREP
  19492. # A BSD- or MS-compatible name lister.
  19493. NM=$lt_NM
  19494. # Whether we need soft or hard links.
  19495. LN_S=$lt_LN_S
  19496. # What is the maximum length of a command?
  19497. max_cmd_len=$max_cmd_len
  19498. # Object file suffix (normally "o").
  19499. objext=$ac_objext
  19500. # Executable file suffix (normally "").
  19501. exeext=$exeext
  19502. # whether the shell understands "unset".
  19503. lt_unset=$lt_unset
  19504. # turn spaces into newlines.
  19505. SP2NL=$lt_lt_SP2NL
  19506. # turn newlines into spaces.
  19507. NL2SP=$lt_lt_NL2SP
  19508. # convert \$build file names to \$host format.
  19509. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19510. # convert \$build files to toolchain format.
  19511. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19512. # A file(cmd) program that detects file types.
  19513. FILECMD=$lt_FILECMD
  19514. # Method to check whether dependent libraries are shared objects.
  19515. deplibs_check_method=$lt_deplibs_check_method
  19516. # Command to use when deplibs_check_method = "file_magic".
  19517. file_magic_cmd=$lt_file_magic_cmd
  19518. # How to find potential files when deplibs_check_method = "file_magic".
  19519. file_magic_glob=$lt_file_magic_glob
  19520. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19521. want_nocaseglob=$lt_want_nocaseglob
  19522. # Command to associate shared and link libraries.
  19523. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19524. # The archiver.
  19525. AR=$lt_AR
  19526. # Flags to create an archive (by configure).
  19527. lt_ar_flags=$lt_ar_flags
  19528. # Flags to create an archive.
  19529. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  19530. # How to feed a file listing to the archiver.
  19531. archiver_list_spec=$lt_archiver_list_spec
  19532. # A symbol stripping program.
  19533. STRIP=$lt_STRIP
  19534. # Commands used to install an old-style archive.
  19535. RANLIB=$lt_RANLIB
  19536. old_postinstall_cmds=$lt_old_postinstall_cmds
  19537. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19538. # Whether to use a lock for old archive extraction.
  19539. lock_old_archive_extraction=$lock_old_archive_extraction
  19540. # A C compiler.
  19541. LTCC=$lt_CC
  19542. # LTCC compiler flags.
  19543. LTCFLAGS=$lt_CFLAGS
  19544. # Take the output of nm and produce a listing of raw symbols and C names.
  19545. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19546. # Transform the output of nm in a proper C declaration.
  19547. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19548. # Transform the output of nm into a list of symbols to manually relocate.
  19549. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19550. # Transform the output of nm in a C name address pair.
  19551. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19552. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19553. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19554. # The name lister interface.
  19555. nm_interface=$lt_lt_cv_nm_interface
  19556. # Specify filename containing input files for \$NM.
  19557. nm_file_list_spec=$lt_nm_file_list_spec
  19558. # The root where to search for dependent libraries,and where our libraries should be installed.
  19559. lt_sysroot=$lt_sysroot
  19560. # Command to truncate a binary pipe.
  19561. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19562. # The name of the directory that contains temporary libtool files.
  19563. objdir=$objdir
  19564. # Used to examine libraries when file_magic_cmd begins with "file".
  19565. MAGIC_CMD=$MAGIC_CMD
  19566. # Must we lock files when doing compilation?
  19567. need_locks=$lt_need_locks
  19568. # Manifest tool.
  19569. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19570. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19571. DSYMUTIL=$lt_DSYMUTIL
  19572. # Tool to change global to local symbols on Mac OS X.
  19573. NMEDIT=$lt_NMEDIT
  19574. # Tool to manipulate fat objects and archives on Mac OS X.
  19575. LIPO=$lt_LIPO
  19576. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19577. OTOOL=$lt_OTOOL
  19578. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19579. OTOOL64=$lt_OTOOL64
  19580. # Old archive suffix (normally "a").
  19581. libext=$libext
  19582. # Shared library suffix (normally ".so").
  19583. shrext_cmds=$lt_shrext_cmds
  19584. # The commands to extract the exported symbol list from a shared archive.
  19585. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19586. # Variables whose values should be saved in libtool wrapper scripts and
  19587. # restored at link time.
  19588. variables_saved_for_relink=$lt_variables_saved_for_relink
  19589. # Do we need the "lib" prefix for modules?
  19590. need_lib_prefix=$need_lib_prefix
  19591. # Do we need a version for libraries?
  19592. need_version=$need_version
  19593. # Library versioning type.
  19594. version_type=$version_type
  19595. # Shared library runtime path variable.
  19596. runpath_var=$runpath_var
  19597. # Shared library path variable.
  19598. shlibpath_var=$shlibpath_var
  19599. # Is shlibpath searched before the hard-coded library search path?
  19600. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19601. # Format of library name prefix.
  19602. libname_spec=$lt_libname_spec
  19603. # List of archive names. First name is the real one, the rest are links.
  19604. # The last name is the one that the linker finds with -lNAME
  19605. library_names_spec=$lt_library_names_spec
  19606. # The coded name of the library, if different from the real name.
  19607. soname_spec=$lt_soname_spec
  19608. # Permission mode override for installation of shared libraries.
  19609. install_override_mode=$lt_install_override_mode
  19610. # Command to use after installation of a shared archive.
  19611. postinstall_cmds=$lt_postinstall_cmds
  19612. # Command to use after uninstallation of a shared archive.
  19613. postuninstall_cmds=$lt_postuninstall_cmds
  19614. # Commands used to finish a libtool library installation in a directory.
  19615. finish_cmds=$lt_finish_cmds
  19616. # As "finish_cmds", except a single script fragment to be evaled but
  19617. # not shown.
  19618. finish_eval=$lt_finish_eval
  19619. # Whether we should hardcode library paths into libraries.
  19620. hardcode_into_libs=$hardcode_into_libs
  19621. # Compile-time system search path for libraries.
  19622. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19623. # Detected run-time system search path for libraries.
  19624. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19625. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19626. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19627. # Whether dlopen is supported.
  19628. dlopen_support=$enable_dlopen
  19629. # Whether dlopen of programs is supported.
  19630. dlopen_self=$enable_dlopen_self
  19631. # Whether dlopen of statically linked programs is supported.
  19632. dlopen_self_static=$enable_dlopen_self_static
  19633. # Commands to strip libraries.
  19634. old_striplib=$lt_old_striplib
  19635. striplib=$lt_striplib
  19636. # The linker used to build libraries.
  19637. LD=$lt_LD
  19638. # How to create reloadable object files.
  19639. reload_flag=$lt_reload_flag
  19640. reload_cmds=$lt_reload_cmds
  19641. # Commands used to build an old-style archive.
  19642. old_archive_cmds=$lt_old_archive_cmds
  19643. # A language specific compiler.
  19644. CC=$lt_compiler
  19645. # Is the compiler the GNU compiler?
  19646. with_gcc=$GCC
  19647. # Compiler flag to turn off builtin functions.
  19648. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19649. # Additional compiler flags for building library objects.
  19650. pic_flag=$lt_lt_prog_compiler_pic
  19651. # How to pass a linker flag through the compiler.
  19652. wl=$lt_lt_prog_compiler_wl
  19653. # Compiler flag to prevent dynamic linking.
  19654. link_static_flag=$lt_lt_prog_compiler_static
  19655. # Does compiler simultaneously support -c and -o options?
  19656. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19657. # Whether or not to add -lc for building shared libraries.
  19658. build_libtool_need_lc=$archive_cmds_need_lc
  19659. # Whether or not to disallow shared libs when runtime libs are static.
  19660. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19661. # Compiler flag to allow reflexive dlopens.
  19662. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19663. # Compiler flag to generate shared objects directly from archives.
  19664. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19665. # Whether the compiler copes with passing no objects directly.
  19666. compiler_needs_object=$lt_compiler_needs_object
  19667. # Create an old-style archive from a shared archive.
  19668. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19669. # Create a temporary old-style archive to link instead of a shared archive.
  19670. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19671. # Commands used to build a shared archive.
  19672. archive_cmds=$lt_archive_cmds
  19673. archive_expsym_cmds=$lt_archive_expsym_cmds
  19674. # Commands used to build a loadable module if different from building
  19675. # a shared archive.
  19676. module_cmds=$lt_module_cmds
  19677. module_expsym_cmds=$lt_module_expsym_cmds
  19678. # Whether we are building with GNU ld or not.
  19679. with_gnu_ld=$lt_with_gnu_ld
  19680. # Flag that allows shared libraries with undefined symbols to be built.
  19681. allow_undefined_flag=$lt_allow_undefined_flag
  19682. # Flag that enforces no undefined symbols.
  19683. no_undefined_flag=$lt_no_undefined_flag
  19684. # Flag to hardcode \$libdir into a binary during linking.
  19685. # This must work even if \$libdir does not exist
  19686. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19687. # Whether we need a single "-rpath" flag with a separated argument.
  19688. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19689. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19690. # DIR into the resulting binary.
  19691. hardcode_direct=$hardcode_direct
  19692. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19693. # DIR into the resulting binary and the resulting library dependency is
  19694. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  19695. # library is relocated.
  19696. hardcode_direct_absolute=$hardcode_direct_absolute
  19697. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19698. # into the resulting binary.
  19699. hardcode_minus_L=$hardcode_minus_L
  19700. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19701. # into the resulting binary.
  19702. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19703. # Set to "yes" if building a shared library automatically hardcodes DIR
  19704. # into the library and all subsequent libraries and executables linked
  19705. # against it.
  19706. hardcode_automatic=$hardcode_automatic
  19707. # Set to yes if linker adds runtime paths of dependent libraries
  19708. # to runtime path list.
  19709. inherit_rpath=$inherit_rpath
  19710. # Whether libtool must link a program against all its dependency libraries.
  19711. link_all_deplibs=$link_all_deplibs
  19712. # Set to "yes" if exported symbols are required.
  19713. always_export_symbols=$always_export_symbols
  19714. # The commands to list exported symbols.
  19715. export_symbols_cmds=$lt_export_symbols_cmds
  19716. # Symbols that should not be listed in the preloaded symbols.
  19717. exclude_expsyms=$lt_exclude_expsyms
  19718. # Symbols that must always be exported.
  19719. include_expsyms=$lt_include_expsyms
  19720. # Commands necessary for linking programs (against libraries) with templates.
  19721. prelink_cmds=$lt_prelink_cmds
  19722. # Commands necessary for finishing linking programs.
  19723. postlink_cmds=$lt_postlink_cmds
  19724. # Specify filename containing input files.
  19725. file_list_spec=$lt_file_list_spec
  19726. # How to hardcode a shared library path into an executable.
  19727. hardcode_action=$hardcode_action
  19728. # The directories searched by this compiler when creating a shared library.
  19729. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19730. # Dependencies to place before and after the objects being linked to
  19731. # create a shared library.
  19732. predep_objects=$lt_predep_objects
  19733. postdep_objects=$lt_postdep_objects
  19734. predeps=$lt_predeps
  19735. postdeps=$lt_postdeps
  19736. # The library search path used internally by the compiler when linking
  19737. # a shared library.
  19738. compiler_lib_search_path=$lt_compiler_lib_search_path
  19739. # ### END LIBTOOL CONFIG
  19740. _LT_EOF
  19741. cat <<'_LT_EOF' >> "$cfgfile"
  19742. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19743. # func_munge_path_list VARIABLE PATH
  19744. # -----------------------------------
  19745. # VARIABLE is name of variable containing _space_ separated list of
  19746. # directories to be munged by the contents of PATH, which is string
  19747. # having a format:
  19748. # "DIR[:DIR]:"
  19749. # string "DIR[ DIR]" will be prepended to VARIABLE
  19750. # ":DIR[:DIR]"
  19751. # string "DIR[ DIR]" will be appended to VARIABLE
  19752. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19753. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19754. # "DIRA[ DIRA]" will be appended to VARIABLE
  19755. # "DIR[:DIR]"
  19756. # VARIABLE will be replaced by "DIR[ DIR]"
  19757. func_munge_path_list ()
  19758. {
  19759. case x$2 in
  19760. x)
  19761. ;;
  19762. *:)
  19763. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19764. ;;
  19765. x:*)
  19766. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19767. ;;
  19768. *::*)
  19769. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19770. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19771. ;;
  19772. *)
  19773. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19774. ;;
  19775. esac
  19776. }
  19777. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19778. func_cc_basename ()
  19779. {
  19780. for cc_temp in $*""; do
  19781. case $cc_temp in
  19782. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19783. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19784. \-*) ;;
  19785. *) break;;
  19786. esac
  19787. done
  19788. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19789. }
  19790. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19791. _LT_EOF
  19792. case $host_os in
  19793. aix3*)
  19794. cat <<\_LT_EOF >> "$cfgfile"
  19795. # AIX sometimes has problems with the GCC collect2 program. For some
  19796. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19797. # vanish in a puff of smoke.
  19798. if test set != "${COLLECT_NAMES+set}"; then
  19799. COLLECT_NAMES=
  19800. export COLLECT_NAMES
  19801. fi
  19802. _LT_EOF
  19803. ;;
  19804. esac
  19805. ltmain=$ac_aux_dir/ltmain.sh
  19806. # We use sed instead of cat because bash on DJGPP gets confused if
  19807. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19808. # text mode, it properly converts lines to CR/LF. This bash problem
  19809. # is reportedly fixed, but why not run on old versions too?
  19810. $SED '$q' "$ltmain" >> "$cfgfile" \
  19811. || (rm -f "$cfgfile"; exit 1)
  19812. mv -f "$cfgfile" "$ofile" ||
  19813. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19814. chmod +x "$ofile"
  19815. cat <<_LT_EOF >> "$ofile"
  19816. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19817. # The linker used to build libraries.
  19818. LD=$lt_LD_CXX
  19819. # How to create reloadable object files.
  19820. reload_flag=$lt_reload_flag_CXX
  19821. reload_cmds=$lt_reload_cmds_CXX
  19822. # Commands used to build an old-style archive.
  19823. old_archive_cmds=$lt_old_archive_cmds_CXX
  19824. # A language specific compiler.
  19825. CC=$lt_compiler_CXX
  19826. # Is the compiler the GNU compiler?
  19827. with_gcc=$GCC_CXX
  19828. # Compiler flag to turn off builtin functions.
  19829. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19830. # Additional compiler flags for building library objects.
  19831. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19832. # How to pass a linker flag through the compiler.
  19833. wl=$lt_lt_prog_compiler_wl_CXX
  19834. # Compiler flag to prevent dynamic linking.
  19835. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19836. # Does compiler simultaneously support -c and -o options?
  19837. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19838. # Whether or not to add -lc for building shared libraries.
  19839. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19840. # Whether or not to disallow shared libs when runtime libs are static.
  19841. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19842. # Compiler flag to allow reflexive dlopens.
  19843. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19844. # Compiler flag to generate shared objects directly from archives.
  19845. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19846. # Whether the compiler copes with passing no objects directly.
  19847. compiler_needs_object=$lt_compiler_needs_object_CXX
  19848. # Create an old-style archive from a shared archive.
  19849. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19850. # Create a temporary old-style archive to link instead of a shared archive.
  19851. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19852. # Commands used to build a shared archive.
  19853. archive_cmds=$lt_archive_cmds_CXX
  19854. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19855. # Commands used to build a loadable module if different from building
  19856. # a shared archive.
  19857. module_cmds=$lt_module_cmds_CXX
  19858. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19859. # Whether we are building with GNU ld or not.
  19860. with_gnu_ld=$lt_with_gnu_ld_CXX
  19861. # Flag that allows shared libraries with undefined symbols to be built.
  19862. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19863. # Flag that enforces no undefined symbols.
  19864. no_undefined_flag=$lt_no_undefined_flag_CXX
  19865. # Flag to hardcode \$libdir into a binary during linking.
  19866. # This must work even if \$libdir does not exist
  19867. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19868. # Whether we need a single "-rpath" flag with a separated argument.
  19869. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19870. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19871. # DIR into the resulting binary.
  19872. hardcode_direct=$hardcode_direct_CXX
  19873. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19874. # DIR into the resulting binary and the resulting library dependency is
  19875. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  19876. # library is relocated.
  19877. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19878. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19879. # into the resulting binary.
  19880. hardcode_minus_L=$hardcode_minus_L_CXX
  19881. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19882. # into the resulting binary.
  19883. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19884. # Set to "yes" if building a shared library automatically hardcodes DIR
  19885. # into the library and all subsequent libraries and executables linked
  19886. # against it.
  19887. hardcode_automatic=$hardcode_automatic_CXX
  19888. # Set to yes if linker adds runtime paths of dependent libraries
  19889. # to runtime path list.
  19890. inherit_rpath=$inherit_rpath_CXX
  19891. # Whether libtool must link a program against all its dependency libraries.
  19892. link_all_deplibs=$link_all_deplibs_CXX
  19893. # Set to "yes" if exported symbols are required.
  19894. always_export_symbols=$always_export_symbols_CXX
  19895. # The commands to list exported symbols.
  19896. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19897. # Symbols that should not be listed in the preloaded symbols.
  19898. exclude_expsyms=$lt_exclude_expsyms_CXX
  19899. # Symbols that must always be exported.
  19900. include_expsyms=$lt_include_expsyms_CXX
  19901. # Commands necessary for linking programs (against libraries) with templates.
  19902. prelink_cmds=$lt_prelink_cmds_CXX
  19903. # Commands necessary for finishing linking programs.
  19904. postlink_cmds=$lt_postlink_cmds_CXX
  19905. # Specify filename containing input files.
  19906. file_list_spec=$lt_file_list_spec_CXX
  19907. # How to hardcode a shared library path into an executable.
  19908. hardcode_action=$hardcode_action_CXX
  19909. # The directories searched by this compiler when creating a shared library.
  19910. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19911. # Dependencies to place before and after the objects being linked to
  19912. # create a shared library.
  19913. predep_objects=$lt_predep_objects_CXX
  19914. postdep_objects=$lt_postdep_objects_CXX
  19915. predeps=$lt_predeps_CXX
  19916. postdeps=$lt_postdeps_CXX
  19917. # The library search path used internally by the compiler when linking
  19918. # a shared library.
  19919. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19920. # ### END LIBTOOL TAG CONFIG: CXX
  19921. _LT_EOF
  19922. ;;
  19923. "run.sh":F) chmod +x run.sh ;;
  19924. esac
  19925. done # for ac_tag
  19926. as_fn_exit 0
  19927. _ACEOF
  19928. ac_clean_files=$ac_clean_files_save
  19929. test $ac_write_fail = 0 ||
  19930. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19931. # configure is writing to config.log, and then calls config.status.
  19932. # config.status does its own redirection, appending to config.log.
  19933. # Unfortunately, on DOS this fails, as config.log is still kept open
  19934. # by configure, so config.status won't be able to write to it; its
  19935. # output is simply discarded. So we exec the FD to /dev/null,
  19936. # effectively closing config.log, so it can be properly (re)opened and
  19937. # appended to by config.status. When coming back to configure, we
  19938. # need to make the FD available again.
  19939. if test "$no_create" != yes; then
  19940. ac_cs_success=:
  19941. ac_config_status_args=
  19942. test "$silent" = yes &&
  19943. ac_config_status_args="$ac_config_status_args --quiet"
  19944. exec 5>/dev/null
  19945. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19946. exec 5>>config.log
  19947. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19948. # would make configure fail if this is the last instruction.
  19949. $ac_cs_success || as_fn_exit 1
  19950. fi
  19951. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19953. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19954. fi
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
  19956. Automake flags (can be overridden by user flags):
  19957. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19958. AM_CFLAGS: ${AM_CFLAGS}
  19959. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19960. AM_LDFLAGS: ${AM_LDFLAGS}
  19961. User flags (override Automake flags on conflict):
  19962. CPPFLAGS: ${CPPFLAGS}
  19963. CFLAGS: ${CFLAGS}
  19964. CXXFLAGS: ${CXXFLAGS}
  19965. LDFLAGS: ${LDFLAGS}" >&5
  19966. printf "%s\n" "$as_me:
  19967. Automake flags (can be overridden by user flags):
  19968. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19969. AM_CFLAGS: ${AM_CFLAGS}
  19970. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19971. AM_LDFLAGS: ${AM_LDFLAGS}
  19972. User flags (override Automake flags on conflict):
  19973. CPPFLAGS: ${CPPFLAGS}
  19974. CFLAGS: ${CFLAGS}
  19975. CXXFLAGS: ${CXXFLAGS}
  19976. LDFLAGS: ${LDFLAGS}" >&6;}