configure 714 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for expat 2.7.0.
  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.7.0'
  567. PACKAGE_STRING='expat 2.7.0'
  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.7.0 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.7.0:";;
  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.7.0
  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.7.0, 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.7.0'
  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=1 # 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.4'
  4940. macro_revision='2.5.4'
  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* | ironclad*)
  5591. # Under GNU Hurd and Ironclad, this test is not required because there
  5592. # is 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. *-mlibc)
  6060. lt_cv_deplibs_check_method=pass_all
  6061. ;;
  6062. netbsd* | netbsdelf*-gnu)
  6063. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6064. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6065. else
  6066. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6067. fi
  6068. ;;
  6069. newos6*)
  6070. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6071. lt_cv_file_magic_cmd=$FILECMD
  6072. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6073. ;;
  6074. *nto* | *qnx*)
  6075. lt_cv_deplibs_check_method=pass_all
  6076. ;;
  6077. openbsd*)
  6078. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6079. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6080. else
  6081. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6082. fi
  6083. ;;
  6084. osf3* | osf4* | osf5*)
  6085. lt_cv_deplibs_check_method=pass_all
  6086. ;;
  6087. rdos*)
  6088. lt_cv_deplibs_check_method=pass_all
  6089. ;;
  6090. serenity*)
  6091. lt_cv_deplibs_check_method=pass_all
  6092. ;;
  6093. solaris*)
  6094. lt_cv_deplibs_check_method=pass_all
  6095. ;;
  6096. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6097. lt_cv_deplibs_check_method=pass_all
  6098. ;;
  6099. sysv4 | sysv4.3*)
  6100. case $host_vendor in
  6101. motorola)
  6102. 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]'
  6103. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6104. ;;
  6105. ncr)
  6106. lt_cv_deplibs_check_method=pass_all
  6107. ;;
  6108. sequent)
  6109. lt_cv_file_magic_cmd='/bin/file'
  6110. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6111. ;;
  6112. sni)
  6113. lt_cv_file_magic_cmd='/bin/file'
  6114. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6115. lt_cv_file_magic_test_file=/lib/libc.so
  6116. ;;
  6117. siemens)
  6118. lt_cv_deplibs_check_method=pass_all
  6119. ;;
  6120. pc)
  6121. lt_cv_deplibs_check_method=pass_all
  6122. ;;
  6123. esac
  6124. ;;
  6125. tpf*)
  6126. lt_cv_deplibs_check_method=pass_all
  6127. ;;
  6128. os2*)
  6129. lt_cv_deplibs_check_method=pass_all
  6130. ;;
  6131. esac
  6132. fi
  6133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6134. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6135. file_magic_glob=
  6136. want_nocaseglob=no
  6137. if test "$build" = "$host"; then
  6138. case $host_os in
  6139. mingw* | windows* | pw32*)
  6140. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6141. want_nocaseglob=yes
  6142. else
  6143. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6144. fi
  6145. ;;
  6146. esac
  6147. fi
  6148. file_magic_cmd=$lt_cv_file_magic_cmd
  6149. deplibs_check_method=$lt_cv_deplibs_check_method
  6150. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6151. if test -n "$ac_tool_prefix"; then
  6152. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6153. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. printf %s "checking for $ac_word... " >&6; }
  6156. if test ${ac_cv_prog_DLLTOOL+y}
  6157. then :
  6158. printf %s "(cached) " >&6
  6159. else $as_nop
  6160. if test -n "$DLLTOOL"; then
  6161. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6162. else
  6163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6164. for as_dir in $PATH
  6165. do
  6166. IFS=$as_save_IFS
  6167. case $as_dir in #(((
  6168. '') as_dir=./ ;;
  6169. */) ;;
  6170. *) as_dir=$as_dir/ ;;
  6171. esac
  6172. for ac_exec_ext in '' $ac_executable_extensions; do
  6173. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6174. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6176. break 2
  6177. fi
  6178. done
  6179. done
  6180. IFS=$as_save_IFS
  6181. fi
  6182. fi
  6183. DLLTOOL=$ac_cv_prog_DLLTOOL
  6184. if test -n "$DLLTOOL"; then
  6185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6186. printf "%s\n" "$DLLTOOL" >&6; }
  6187. else
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6189. printf "%s\n" "no" >&6; }
  6190. fi
  6191. fi
  6192. if test -z "$ac_cv_prog_DLLTOOL"; then
  6193. ac_ct_DLLTOOL=$DLLTOOL
  6194. # Extract the first word of "dlltool", so it can be a program name with args.
  6195. set dummy dlltool; ac_word=$2
  6196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6197. printf %s "checking for $ac_word... " >&6; }
  6198. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6199. then :
  6200. printf %s "(cached) " >&6
  6201. else $as_nop
  6202. if test -n "$ac_ct_DLLTOOL"; then
  6203. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6204. else
  6205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6206. for as_dir in $PATH
  6207. do
  6208. IFS=$as_save_IFS
  6209. case $as_dir in #(((
  6210. '') as_dir=./ ;;
  6211. */) ;;
  6212. *) as_dir=$as_dir/ ;;
  6213. esac
  6214. for ac_exec_ext in '' $ac_executable_extensions; do
  6215. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6216. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6217. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6218. break 2
  6219. fi
  6220. done
  6221. done
  6222. IFS=$as_save_IFS
  6223. fi
  6224. fi
  6225. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6226. if test -n "$ac_ct_DLLTOOL"; then
  6227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6228. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6229. else
  6230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6231. printf "%s\n" "no" >&6; }
  6232. fi
  6233. if test "x$ac_ct_DLLTOOL" = x; then
  6234. DLLTOOL="false"
  6235. else
  6236. case $cross_compiling:$ac_tool_warned in
  6237. yes:)
  6238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6239. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6240. ac_tool_warned=yes ;;
  6241. esac
  6242. DLLTOOL=$ac_ct_DLLTOOL
  6243. fi
  6244. else
  6245. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6246. fi
  6247. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6249. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6250. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6251. then :
  6252. printf %s "(cached) " >&6
  6253. else $as_nop
  6254. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6255. case $host_os in
  6256. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6257. # two different shell functions defined in ltmain.sh;
  6258. # decide which one to use based on capabilities of $DLLTOOL
  6259. case `$DLLTOOL --help 2>&1` in
  6260. *--identify-strict*)
  6261. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6262. ;;
  6263. *)
  6264. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6265. ;;
  6266. esac
  6267. ;;
  6268. *)
  6269. # fallback: assume linklib IS sharedlib
  6270. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6271. ;;
  6272. esac
  6273. fi
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6275. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6276. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6277. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6278. if test -n "$ac_tool_prefix"; then
  6279. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6280. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6282. printf %s "checking for $ac_word... " >&6; }
  6283. if test ${ac_cv_prog_RANLIB+y}
  6284. then :
  6285. printf %s "(cached) " >&6
  6286. else $as_nop
  6287. if test -n "$RANLIB"; then
  6288. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. case $as_dir in #(((
  6295. '') as_dir=./ ;;
  6296. */) ;;
  6297. *) as_dir=$as_dir/ ;;
  6298. esac
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6301. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6302. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. RANLIB=$ac_cv_prog_RANLIB
  6311. if test -n "$RANLIB"; then
  6312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6313. printf "%s\n" "$RANLIB" >&6; }
  6314. else
  6315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. printf "%s\n" "no" >&6; }
  6317. fi
  6318. fi
  6319. if test -z "$ac_cv_prog_RANLIB"; then
  6320. ac_ct_RANLIB=$RANLIB
  6321. # Extract the first word of "ranlib", so it can be a program name with args.
  6322. set dummy ranlib; ac_word=$2
  6323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6324. printf %s "checking for $ac_word... " >&6; }
  6325. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6326. then :
  6327. printf %s "(cached) " >&6
  6328. else $as_nop
  6329. if test -n "$ac_ct_RANLIB"; then
  6330. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6331. else
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. case $as_dir in #(((
  6337. '') as_dir=./ ;;
  6338. */) ;;
  6339. *) as_dir=$as_dir/ ;;
  6340. esac
  6341. for ac_exec_ext in '' $ac_executable_extensions; do
  6342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6343. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6345. break 2
  6346. fi
  6347. done
  6348. done
  6349. IFS=$as_save_IFS
  6350. fi
  6351. fi
  6352. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6353. if test -n "$ac_ct_RANLIB"; then
  6354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6355. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6356. else
  6357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6358. printf "%s\n" "no" >&6; }
  6359. fi
  6360. if test "x$ac_ct_RANLIB" = x; then
  6361. RANLIB=":"
  6362. else
  6363. case $cross_compiling:$ac_tool_warned in
  6364. yes:)
  6365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6366. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6367. ac_tool_warned=yes ;;
  6368. esac
  6369. RANLIB=$ac_ct_RANLIB
  6370. fi
  6371. else
  6372. RANLIB="$ac_cv_prog_RANLIB"
  6373. fi
  6374. if test -n "$ac_tool_prefix"; then
  6375. for ac_prog in ar
  6376. do
  6377. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6378. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6380. printf %s "checking for $ac_word... " >&6; }
  6381. if test ${ac_cv_prog_AR+y}
  6382. then :
  6383. printf %s "(cached) " >&6
  6384. else $as_nop
  6385. if test -n "$AR"; then
  6386. ac_cv_prog_AR="$AR" # Let the user override the test.
  6387. else
  6388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6389. for as_dir in $PATH
  6390. do
  6391. IFS=$as_save_IFS
  6392. case $as_dir in #(((
  6393. '') as_dir=./ ;;
  6394. */) ;;
  6395. *) as_dir=$as_dir/ ;;
  6396. esac
  6397. for ac_exec_ext in '' $ac_executable_extensions; do
  6398. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6399. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6401. break 2
  6402. fi
  6403. done
  6404. done
  6405. IFS=$as_save_IFS
  6406. fi
  6407. fi
  6408. AR=$ac_cv_prog_AR
  6409. if test -n "$AR"; then
  6410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6411. printf "%s\n" "$AR" >&6; }
  6412. else
  6413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6414. printf "%s\n" "no" >&6; }
  6415. fi
  6416. test -n "$AR" && break
  6417. done
  6418. fi
  6419. if test -z "$AR"; then
  6420. ac_ct_AR=$AR
  6421. for ac_prog in ar
  6422. do
  6423. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6424. set dummy $ac_prog; ac_word=$2
  6425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6426. printf %s "checking for $ac_word... " >&6; }
  6427. if test ${ac_cv_prog_ac_ct_AR+y}
  6428. then :
  6429. printf %s "(cached) " >&6
  6430. else $as_nop
  6431. if test -n "$ac_ct_AR"; then
  6432. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. case $as_dir in #(((
  6439. '') as_dir=./ ;;
  6440. */) ;;
  6441. *) as_dir=$as_dir/ ;;
  6442. esac
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6445. ac_cv_prog_ac_ct_AR="$ac_prog"
  6446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6447. break 2
  6448. fi
  6449. done
  6450. done
  6451. IFS=$as_save_IFS
  6452. fi
  6453. fi
  6454. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6455. if test -n "$ac_ct_AR"; then
  6456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6457. printf "%s\n" "$ac_ct_AR" >&6; }
  6458. else
  6459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6460. printf "%s\n" "no" >&6; }
  6461. fi
  6462. test -n "$ac_ct_AR" && break
  6463. done
  6464. if test "x$ac_ct_AR" = x; then
  6465. AR="false"
  6466. else
  6467. case $cross_compiling:$ac_tool_warned in
  6468. yes:)
  6469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6470. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6471. ac_tool_warned=yes ;;
  6472. esac
  6473. AR=$ac_ct_AR
  6474. fi
  6475. fi
  6476. : ${AR=ar}
  6477. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6478. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6479. # higher priority because that's what people were doing historically (setting
  6480. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6481. # variable obsoleted/removed.
  6482. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6483. lt_ar_flags=$AR_FLAGS
  6484. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6485. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6487. printf %s "checking for archiver @FILE support... " >&6; }
  6488. if test ${lt_cv_ar_at_file+y}
  6489. then :
  6490. printf %s "(cached) " >&6
  6491. else $as_nop
  6492. lt_cv_ar_at_file=no
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. int
  6496. main (void)
  6497. {
  6498. ;
  6499. return 0;
  6500. }
  6501. _ACEOF
  6502. if ac_fn_c_try_compile "$LINENO"
  6503. then :
  6504. echo conftest.$ac_objext > conftest.lst
  6505. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6506. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6507. (eval $lt_ar_try) 2>&5
  6508. ac_status=$?
  6509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }
  6511. if test 0 -eq "$ac_status"; then
  6512. # Ensure the archiver fails upon bogus file names.
  6513. rm -f conftest.$ac_objext libconftest.a
  6514. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6515. (eval $lt_ar_try) 2>&5
  6516. ac_status=$?
  6517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6518. test $ac_status = 0; }
  6519. if test 0 -ne "$ac_status"; then
  6520. lt_cv_ar_at_file=@
  6521. fi
  6522. fi
  6523. rm -f conftest.* libconftest.a
  6524. fi
  6525. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6526. fi
  6527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6528. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6529. if test no = "$lt_cv_ar_at_file"; then
  6530. archiver_list_spec=
  6531. else
  6532. archiver_list_spec=$lt_cv_ar_at_file
  6533. fi
  6534. if test -n "$ac_tool_prefix"; then
  6535. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6536. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6538. printf %s "checking for $ac_word... " >&6; }
  6539. if test ${ac_cv_prog_STRIP+y}
  6540. then :
  6541. printf %s "(cached) " >&6
  6542. else $as_nop
  6543. if test -n "$STRIP"; then
  6544. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6545. else
  6546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6547. for as_dir in $PATH
  6548. do
  6549. IFS=$as_save_IFS
  6550. case $as_dir in #(((
  6551. '') as_dir=./ ;;
  6552. */) ;;
  6553. *) as_dir=$as_dir/ ;;
  6554. esac
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6557. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564. fi
  6565. fi
  6566. STRIP=$ac_cv_prog_STRIP
  6567. if test -n "$STRIP"; then
  6568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6569. printf "%s\n" "$STRIP" >&6; }
  6570. else
  6571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6572. printf "%s\n" "no" >&6; }
  6573. fi
  6574. fi
  6575. if test -z "$ac_cv_prog_STRIP"; then
  6576. ac_ct_STRIP=$STRIP
  6577. # Extract the first word of "strip", so it can be a program name with args.
  6578. set dummy strip; ac_word=$2
  6579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6580. printf %s "checking for $ac_word... " >&6; }
  6581. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6582. then :
  6583. printf %s "(cached) " >&6
  6584. else $as_nop
  6585. if test -n "$ac_ct_STRIP"; then
  6586. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. case $as_dir in #(((
  6593. '') as_dir=./ ;;
  6594. */) ;;
  6595. *) as_dir=$as_dir/ ;;
  6596. esac
  6597. for ac_exec_ext in '' $ac_executable_extensions; do
  6598. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6599. ac_cv_prog_ac_ct_STRIP="strip"
  6600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6601. break 2
  6602. fi
  6603. done
  6604. done
  6605. IFS=$as_save_IFS
  6606. fi
  6607. fi
  6608. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6609. if test -n "$ac_ct_STRIP"; then
  6610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6611. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6612. else
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6614. printf "%s\n" "no" >&6; }
  6615. fi
  6616. if test "x$ac_ct_STRIP" = x; then
  6617. STRIP=":"
  6618. else
  6619. case $cross_compiling:$ac_tool_warned in
  6620. yes:)
  6621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6622. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6623. ac_tool_warned=yes ;;
  6624. esac
  6625. STRIP=$ac_ct_STRIP
  6626. fi
  6627. else
  6628. STRIP="$ac_cv_prog_STRIP"
  6629. fi
  6630. test -z "$STRIP" && STRIP=:
  6631. test -z "$RANLIB" && RANLIB=:
  6632. # Determine commands to create old-style static archives.
  6633. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6634. old_postinstall_cmds='chmod 644 $oldlib'
  6635. old_postuninstall_cmds=
  6636. if test -n "$RANLIB"; then
  6637. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6638. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6639. fi
  6640. case $host_os in
  6641. darwin*)
  6642. lock_old_archive_extraction=yes ;;
  6643. *)
  6644. lock_old_archive_extraction=no ;;
  6645. esac
  6646. # If no C compiler was specified, use CC.
  6647. LTCC=${LTCC-"$CC"}
  6648. # If no C compiler flags were specified, use CFLAGS.
  6649. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6650. # Allow CC to be a program name with arguments.
  6651. compiler=$CC
  6652. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6654. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6655. if test ${lt_cv_sys_global_symbol_pipe+y}
  6656. then :
  6657. printf %s "(cached) " >&6
  6658. else $as_nop
  6659. # These are sane defaults that work on at least a few old systems.
  6660. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6661. # Character class describing NM global symbol codes.
  6662. symcode='[BCDEGRST]'
  6663. # Regexp to match symbols that can be accessed directly from C.
  6664. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6665. # Define system-specific variables.
  6666. case $host_os in
  6667. aix*)
  6668. symcode='[BCDT]'
  6669. ;;
  6670. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6671. symcode='[ABCDGISTW]'
  6672. ;;
  6673. hpux*)
  6674. if test ia64 = "$host_cpu"; then
  6675. symcode='[ABCDEGRST]'
  6676. fi
  6677. ;;
  6678. irix* | nonstopux*)
  6679. symcode='[BCDEGRST]'
  6680. ;;
  6681. osf*)
  6682. symcode='[BCDEGQRST]'
  6683. ;;
  6684. solaris*)
  6685. symcode='[BCDRT]'
  6686. ;;
  6687. sco3.2v5*)
  6688. symcode='[DT]'
  6689. ;;
  6690. sysv4.2uw2*)
  6691. symcode='[DT]'
  6692. ;;
  6693. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6694. symcode='[ABDT]'
  6695. ;;
  6696. sysv4)
  6697. symcode='[DFNSTU]'
  6698. ;;
  6699. esac
  6700. # If we're using GNU nm, then use its standard symbol codes.
  6701. case `$NM -V 2>&1` in
  6702. *GNU* | *'with BFD'*)
  6703. symcode='[ABCDGIRSTW]' ;;
  6704. esac
  6705. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6706. # Gets list of data symbols to import.
  6707. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  6708. # Adjust the below global symbol transforms to fixup imported variables.
  6709. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6710. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6711. lt_c_name_lib_hook="\
  6712. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6713. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6714. else
  6715. # Disable hooks by default.
  6716. lt_cv_sys_global_symbol_to_import=
  6717. lt_cdecl_hook=
  6718. lt_c_name_hook=
  6719. lt_c_name_lib_hook=
  6720. fi
  6721. # Transform an extracted symbol line into a proper C declaration.
  6722. # Some systems (esp. on ia64) link data and code symbols differently,
  6723. # so use this general approach.
  6724. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  6725. $lt_cdecl_hook\
  6726. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6727. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6728. # Transform an extracted symbol line into symbol name and symbol address
  6729. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  6730. $lt_c_name_hook\
  6731. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6732. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6733. # Transform an extracted symbol line into symbol name with lib prefix and
  6734. # symbol address.
  6735. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  6736. $lt_c_name_lib_hook\
  6737. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6738. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6739. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6740. # Handle CRLF in mingw tool chain
  6741. opt_cr=
  6742. case $build_os in
  6743. mingw* | windows*)
  6744. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6745. ;;
  6746. esac
  6747. # Try without a prefix underscore, then with it.
  6748. for ac_symprfx in "" "_"; do
  6749. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6750. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6751. # Write the raw and C identifiers.
  6752. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6753. # Fake it for dumpbin and say T for any non-static function,
  6754. # D for any global variable and I for any imported variable.
  6755. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6756. # which start with @ or ?.
  6757. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6758. " {last_section=section; section=\$ 3};"\
  6759. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6760. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6761. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6762. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6763. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6764. " \$ 0!~/External *\|/{next};"\
  6765. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6766. " {if(hide[section]) next};"\
  6767. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6768. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6769. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6770. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6771. " ' prfx=^$ac_symprfx"
  6772. else
  6773. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6774. fi
  6775. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  6776. # Check to see that the pipe works correctly.
  6777. pipe_works=no
  6778. rm -f conftest*
  6779. cat > conftest.$ac_ext <<_LT_EOF
  6780. #ifdef __cplusplus
  6781. extern "C" {
  6782. #endif
  6783. char nm_test_var;
  6784. void nm_test_func(void);
  6785. void nm_test_func(void){}
  6786. #ifdef __cplusplus
  6787. }
  6788. #endif
  6789. int main(void){nm_test_var='a';nm_test_func();return(0);}
  6790. _LT_EOF
  6791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6792. (eval $ac_compile) 2>&5
  6793. ac_status=$?
  6794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6795. test $ac_status = 0; }; then
  6796. # Now try to grab the symbols.
  6797. nlist=conftest.nm
  6798. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6799. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6800. # Try sorting and uniquifying the output.
  6801. if sort "$nlist" | uniq > "$nlist"T; then
  6802. mv -f "$nlist"T "$nlist"
  6803. else
  6804. rm -f "$nlist"T
  6805. fi
  6806. # Make sure that we snagged all the symbols we need.
  6807. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6808. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6809. cat <<_LT_EOF > conftest.$ac_ext
  6810. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6811. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6812. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6813. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6814. # define LT_DLSYM_CONST
  6815. #elif defined __osf__
  6816. /* This system does not cope well with relocations in const data. */
  6817. # define LT_DLSYM_CONST
  6818. #else
  6819. # define LT_DLSYM_CONST const
  6820. #endif
  6821. #ifdef __cplusplus
  6822. extern "C" {
  6823. #endif
  6824. _LT_EOF
  6825. # Now generate the symbol file.
  6826. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6827. cat <<_LT_EOF >> conftest.$ac_ext
  6828. /* The mapping between symbol names and symbols. */
  6829. LT_DLSYM_CONST struct {
  6830. const char *name;
  6831. void *address;
  6832. }
  6833. lt__PROGRAM__LTX_preloaded_symbols[] =
  6834. {
  6835. { "@PROGRAM@", (void *) 0 },
  6836. _LT_EOF
  6837. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6838. cat <<\_LT_EOF >> conftest.$ac_ext
  6839. {0, (void *) 0}
  6840. };
  6841. /* This works around a problem in FreeBSD linker */
  6842. #ifdef FREEBSD_WORKAROUND
  6843. static const void *lt_preloaded_setup() {
  6844. return lt__PROGRAM__LTX_preloaded_symbols;
  6845. }
  6846. #endif
  6847. #ifdef __cplusplus
  6848. }
  6849. #endif
  6850. _LT_EOF
  6851. # Now try linking the two files.
  6852. mv conftest.$ac_objext conftstm.$ac_objext
  6853. lt_globsym_save_LIBS=$LIBS
  6854. lt_globsym_save_CFLAGS=$CFLAGS
  6855. LIBS=conftstm.$ac_objext
  6856. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6857. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6858. (eval $ac_link) 2>&5
  6859. ac_status=$?
  6860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6861. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6862. pipe_works=yes
  6863. fi
  6864. LIBS=$lt_globsym_save_LIBS
  6865. CFLAGS=$lt_globsym_save_CFLAGS
  6866. else
  6867. echo "cannot find nm_test_func in $nlist" >&5
  6868. fi
  6869. else
  6870. echo "cannot find nm_test_var in $nlist" >&5
  6871. fi
  6872. else
  6873. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6874. fi
  6875. else
  6876. echo "$progname: failed program was:" >&5
  6877. cat conftest.$ac_ext >&5
  6878. fi
  6879. rm -rf conftest* conftst*
  6880. # Do not use the global_symbol_pipe unless it works.
  6881. if test yes = "$pipe_works"; then
  6882. break
  6883. else
  6884. lt_cv_sys_global_symbol_pipe=
  6885. fi
  6886. done
  6887. fi
  6888. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6889. lt_cv_sys_global_symbol_to_cdecl=
  6890. fi
  6891. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6893. printf "%s\n" "failed" >&6; }
  6894. else
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6896. printf "%s\n" "ok" >&6; }
  6897. fi
  6898. # Response file support.
  6899. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6900. nm_file_list_spec='@'
  6901. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6902. nm_file_list_spec='@'
  6903. fi
  6904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6905. printf %s "checking for sysroot... " >&6; }
  6906. # Check whether --with-sysroot was given.
  6907. if test ${with_sysroot+y}
  6908. then :
  6909. withval=$with_sysroot;
  6910. else $as_nop
  6911. with_sysroot=no
  6912. fi
  6913. lt_sysroot=
  6914. case $with_sysroot in #(
  6915. yes)
  6916. if test yes = "$GCC"; then
  6917. # Trim trailing / since we'll always append absolute paths and we want
  6918. # to avoid //, if only for less confusing output for the user.
  6919. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  6920. fi
  6921. ;; #(
  6922. /*)
  6923. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  6924. ;; #(
  6925. no|'')
  6926. ;; #(
  6927. *)
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6929. printf "%s\n" "$with_sysroot" >&6; }
  6930. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6931. ;;
  6932. esac
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6934. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6936. printf %s "checking for a working dd... " >&6; }
  6937. if test ${ac_cv_path_lt_DD+y}
  6938. then :
  6939. printf %s "(cached) " >&6
  6940. else $as_nop
  6941. printf 0123456789abcdef0123456789abcdef >conftest.i
  6942. cat conftest.i conftest.i >conftest2.i
  6943. : ${lt_DD:=$DD}
  6944. if test -z "$lt_DD"; then
  6945. ac_path_lt_DD_found=false
  6946. # Loop through the user's path and test for each of PROGNAME-LIST
  6947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6948. for as_dir in $PATH
  6949. do
  6950. IFS=$as_save_IFS
  6951. case $as_dir in #(((
  6952. '') as_dir=./ ;;
  6953. */) ;;
  6954. *) as_dir=$as_dir/ ;;
  6955. esac
  6956. for ac_prog in dd
  6957. do
  6958. for ac_exec_ext in '' $ac_executable_extensions; do
  6959. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6960. as_fn_executable_p "$ac_path_lt_DD" || continue
  6961. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6962. cmp -s conftest.i conftest.out \
  6963. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6964. fi
  6965. $ac_path_lt_DD_found && break 3
  6966. done
  6967. done
  6968. done
  6969. IFS=$as_save_IFS
  6970. if test -z "$ac_cv_path_lt_DD"; then
  6971. :
  6972. fi
  6973. else
  6974. ac_cv_path_lt_DD=$lt_DD
  6975. fi
  6976. rm -f conftest.i conftest2.i conftest.out
  6977. fi
  6978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6979. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6981. printf %s "checking how to truncate binary pipes... " >&6; }
  6982. if test ${lt_cv_truncate_bin+y}
  6983. then :
  6984. printf %s "(cached) " >&6
  6985. else $as_nop
  6986. printf 0123456789abcdef0123456789abcdef >conftest.i
  6987. cat conftest.i conftest.i >conftest2.i
  6988. lt_cv_truncate_bin=
  6989. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6990. cmp -s conftest.i conftest.out \
  6991. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6992. fi
  6993. rm -f conftest.i conftest2.i conftest.out
  6994. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6995. fi
  6996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6997. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6998. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6999. func_cc_basename ()
  7000. {
  7001. for cc_temp in $*""; do
  7002. case $cc_temp in
  7003. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7004. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7005. \-*) ;;
  7006. *) break;;
  7007. esac
  7008. done
  7009. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7010. }
  7011. # Check whether --enable-libtool-lock was given.
  7012. if test ${enable_libtool_lock+y}
  7013. then :
  7014. enableval=$enable_libtool_lock;
  7015. fi
  7016. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7017. # Some flags need to be propagated to the compiler or linker for good
  7018. # libtool support.
  7019. case $host in
  7020. ia64-*-hpux*)
  7021. # Find out what ABI is being produced by ac_compile, and set mode
  7022. # options accordingly.
  7023. echo 'int i;' > conftest.$ac_ext
  7024. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7025. (eval $ac_compile) 2>&5
  7026. ac_status=$?
  7027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7028. test $ac_status = 0; }; then
  7029. case `$FILECMD conftest.$ac_objext` in
  7030. *ELF-32*)
  7031. HPUX_IA64_MODE=32
  7032. ;;
  7033. *ELF-64*)
  7034. HPUX_IA64_MODE=64
  7035. ;;
  7036. esac
  7037. fi
  7038. rm -rf conftest*
  7039. ;;
  7040. *-*-irix6*)
  7041. # Find out what ABI is being produced by ac_compile, and set linker
  7042. # options accordingly.
  7043. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7045. (eval $ac_compile) 2>&5
  7046. ac_status=$?
  7047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7048. test $ac_status = 0; }; then
  7049. if test yes = "$lt_cv_prog_gnu_ld"; then
  7050. case `$FILECMD conftest.$ac_objext` in
  7051. *32-bit*)
  7052. LD="${LD-ld} -melf32bsmip"
  7053. ;;
  7054. *N32*)
  7055. LD="${LD-ld} -melf32bmipn32"
  7056. ;;
  7057. *64-bit*)
  7058. LD="${LD-ld} -melf64bmip"
  7059. ;;
  7060. esac
  7061. else
  7062. case `$FILECMD conftest.$ac_objext` in
  7063. *32-bit*)
  7064. LD="${LD-ld} -32"
  7065. ;;
  7066. *N32*)
  7067. LD="${LD-ld} -n32"
  7068. ;;
  7069. *64-bit*)
  7070. LD="${LD-ld} -64"
  7071. ;;
  7072. esac
  7073. fi
  7074. fi
  7075. rm -rf conftest*
  7076. ;;
  7077. mips64*-*linux*)
  7078. # Find out what ABI is being produced by ac_compile, and set linker
  7079. # options accordingly.
  7080. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7082. (eval $ac_compile) 2>&5
  7083. ac_status=$?
  7084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7085. test $ac_status = 0; }; then
  7086. emul=elf
  7087. case `$FILECMD conftest.$ac_objext` in
  7088. *32-bit*)
  7089. emul="${emul}32"
  7090. ;;
  7091. *64-bit*)
  7092. emul="${emul}64"
  7093. ;;
  7094. esac
  7095. case `$FILECMD conftest.$ac_objext` in
  7096. *MSB*)
  7097. emul="${emul}btsmip"
  7098. ;;
  7099. *LSB*)
  7100. emul="${emul}ltsmip"
  7101. ;;
  7102. esac
  7103. case `$FILECMD conftest.$ac_objext` in
  7104. *N32*)
  7105. emul="${emul}n32"
  7106. ;;
  7107. esac
  7108. LD="${LD-ld} -m $emul"
  7109. fi
  7110. rm -rf conftest*
  7111. ;;
  7112. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7113. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  7114. # Find out what ABI is being produced by ac_compile, and set linker
  7115. # options accordingly. Note that the listed cases only cover the
  7116. # situations where additional linker options are needed (such as when
  7117. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7118. # vice versa); the common cases where no linker options are needed do
  7119. # not appear in the list.
  7120. echo 'int i;' > conftest.$ac_ext
  7121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7122. (eval $ac_compile) 2>&5
  7123. ac_status=$?
  7124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7125. test $ac_status = 0; }; then
  7126. case `$FILECMD conftest.o` in
  7127. *32-bit*)
  7128. case $host in
  7129. x86_64-*kfreebsd*-gnu)
  7130. LD="${LD-ld} -m elf_i386_fbsd"
  7131. ;;
  7132. x86_64-*linux*|x86_64-gnu*)
  7133. case `$FILECMD conftest.o` in
  7134. *x86-64*)
  7135. LD="${LD-ld} -m elf32_x86_64"
  7136. ;;
  7137. *)
  7138. LD="${LD-ld} -m elf_i386"
  7139. ;;
  7140. esac
  7141. ;;
  7142. powerpc64le-*linux*)
  7143. LD="${LD-ld} -m elf32lppclinux"
  7144. ;;
  7145. powerpc64-*linux*)
  7146. LD="${LD-ld} -m elf32ppclinux"
  7147. ;;
  7148. s390x-*linux*)
  7149. LD="${LD-ld} -m elf_s390"
  7150. ;;
  7151. sparc64-*linux*)
  7152. LD="${LD-ld} -m elf32_sparc"
  7153. ;;
  7154. esac
  7155. ;;
  7156. *64-bit*)
  7157. case $host in
  7158. x86_64-*kfreebsd*-gnu)
  7159. LD="${LD-ld} -m elf_x86_64_fbsd"
  7160. ;;
  7161. x86_64-*linux*|x86_64-gnu*)
  7162. LD="${LD-ld} -m elf_x86_64"
  7163. ;;
  7164. powerpcle-*linux*|powerpc64le-*linux*)
  7165. LD="${LD-ld} -m elf64lppc"
  7166. ;;
  7167. powerpc-*linux*|powerpc64-*linux*)
  7168. LD="${LD-ld} -m elf64ppc"
  7169. ;;
  7170. s390*-*linux*|s390*-*tpf*)
  7171. LD="${LD-ld} -m elf64_s390"
  7172. ;;
  7173. sparc*-*linux*)
  7174. LD="${LD-ld} -m elf64_sparc"
  7175. ;;
  7176. esac
  7177. ;;
  7178. esac
  7179. fi
  7180. rm -rf conftest*
  7181. ;;
  7182. *-*-sco3.2v5*)
  7183. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7184. SAVE_CFLAGS=$CFLAGS
  7185. CFLAGS="$CFLAGS -belf"
  7186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7187. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7188. if test ${lt_cv_cc_needs_belf+y}
  7189. then :
  7190. printf %s "(cached) " >&6
  7191. else $as_nop
  7192. ac_ext=c
  7193. ac_cpp='$CPP $CPPFLAGS'
  7194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7198. /* end confdefs.h. */
  7199. int
  7200. main (void)
  7201. {
  7202. ;
  7203. return 0;
  7204. }
  7205. _ACEOF
  7206. if ac_fn_c_try_link "$LINENO"
  7207. then :
  7208. lt_cv_cc_needs_belf=yes
  7209. else $as_nop
  7210. lt_cv_cc_needs_belf=no
  7211. fi
  7212. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7213. conftest$ac_exeext conftest.$ac_ext
  7214. ac_ext=c
  7215. ac_cpp='$CPP $CPPFLAGS'
  7216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7219. fi
  7220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7221. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7222. if test yes != "$lt_cv_cc_needs_belf"; then
  7223. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7224. CFLAGS=$SAVE_CFLAGS
  7225. fi
  7226. ;;
  7227. *-*solaris*)
  7228. # Find out what ABI is being produced by ac_compile, and set linker
  7229. # options accordingly.
  7230. echo 'int i;' > conftest.$ac_ext
  7231. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7232. (eval $ac_compile) 2>&5
  7233. ac_status=$?
  7234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7235. test $ac_status = 0; }; then
  7236. case `$FILECMD conftest.o` in
  7237. *64-bit*)
  7238. case $lt_cv_prog_gnu_ld in
  7239. yes*)
  7240. case $host in
  7241. i?86-*-solaris*|x86_64-*-solaris*)
  7242. LD="${LD-ld} -m elf_x86_64"
  7243. ;;
  7244. sparc*-*-solaris*)
  7245. LD="${LD-ld} -m elf64_sparc"
  7246. ;;
  7247. esac
  7248. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7249. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7250. LD=${LD-ld}_sol2
  7251. fi
  7252. ;;
  7253. *)
  7254. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7255. LD="${LD-ld} -64"
  7256. fi
  7257. ;;
  7258. esac
  7259. ;;
  7260. esac
  7261. fi
  7262. rm -rf conftest*
  7263. ;;
  7264. esac
  7265. need_locks=$enable_libtool_lock
  7266. if test -n "$ac_tool_prefix"; then
  7267. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7268. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. printf %s "checking for $ac_word... " >&6; }
  7271. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7272. then :
  7273. printf %s "(cached) " >&6
  7274. else $as_nop
  7275. if test -n "$MANIFEST_TOOL"; then
  7276. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7277. else
  7278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7279. for as_dir in $PATH
  7280. do
  7281. IFS=$as_save_IFS
  7282. case $as_dir in #(((
  7283. '') as_dir=./ ;;
  7284. */) ;;
  7285. *) as_dir=$as_dir/ ;;
  7286. esac
  7287. for ac_exec_ext in '' $ac_executable_extensions; do
  7288. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7289. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7290. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7291. break 2
  7292. fi
  7293. done
  7294. done
  7295. IFS=$as_save_IFS
  7296. fi
  7297. fi
  7298. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7299. if test -n "$MANIFEST_TOOL"; then
  7300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7301. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7302. else
  7303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7304. printf "%s\n" "no" >&6; }
  7305. fi
  7306. fi
  7307. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7308. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7309. # Extract the first word of "mt", so it can be a program name with args.
  7310. set dummy mt; ac_word=$2
  7311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7312. printf %s "checking for $ac_word... " >&6; }
  7313. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7314. then :
  7315. printf %s "(cached) " >&6
  7316. else $as_nop
  7317. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7318. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7319. else
  7320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7321. for as_dir in $PATH
  7322. do
  7323. IFS=$as_save_IFS
  7324. case $as_dir in #(((
  7325. '') as_dir=./ ;;
  7326. */) ;;
  7327. *) as_dir=$as_dir/ ;;
  7328. esac
  7329. for ac_exec_ext in '' $ac_executable_extensions; do
  7330. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7331. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7332. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7333. break 2
  7334. fi
  7335. done
  7336. done
  7337. IFS=$as_save_IFS
  7338. fi
  7339. fi
  7340. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7341. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7343. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7344. else
  7345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7346. printf "%s\n" "no" >&6; }
  7347. fi
  7348. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7349. MANIFEST_TOOL=":"
  7350. else
  7351. case $cross_compiling:$ac_tool_warned in
  7352. yes:)
  7353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7354. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7355. ac_tool_warned=yes ;;
  7356. esac
  7357. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7358. fi
  7359. else
  7360. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7361. fi
  7362. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7364. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7365. if test ${lt_cv_path_manifest_tool+y}
  7366. then :
  7367. printf %s "(cached) " >&6
  7368. else $as_nop
  7369. lt_cv_path_manifest_tool=no
  7370. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7371. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7372. cat conftest.err >&5
  7373. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7374. lt_cv_path_manifest_tool=yes
  7375. fi
  7376. rm -f conftest*
  7377. fi
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  7379. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  7380. if test yes != "$lt_cv_path_manifest_tool"; then
  7381. MANIFEST_TOOL=:
  7382. fi
  7383. case $host_os in
  7384. rhapsody* | darwin*)
  7385. if test -n "$ac_tool_prefix"; then
  7386. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7387. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7389. printf %s "checking for $ac_word... " >&6; }
  7390. if test ${ac_cv_prog_DSYMUTIL+y}
  7391. then :
  7392. printf %s "(cached) " >&6
  7393. else $as_nop
  7394. if test -n "$DSYMUTIL"; then
  7395. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7396. else
  7397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7398. for as_dir in $PATH
  7399. do
  7400. IFS=$as_save_IFS
  7401. case $as_dir in #(((
  7402. '') as_dir=./ ;;
  7403. */) ;;
  7404. *) as_dir=$as_dir/ ;;
  7405. esac
  7406. for ac_exec_ext in '' $ac_executable_extensions; do
  7407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7408. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7410. break 2
  7411. fi
  7412. done
  7413. done
  7414. IFS=$as_save_IFS
  7415. fi
  7416. fi
  7417. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7418. if test -n "$DSYMUTIL"; then
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7420. printf "%s\n" "$DSYMUTIL" >&6; }
  7421. else
  7422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7423. printf "%s\n" "no" >&6; }
  7424. fi
  7425. fi
  7426. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7427. ac_ct_DSYMUTIL=$DSYMUTIL
  7428. # Extract the first word of "dsymutil", so it can be a program name with args.
  7429. set dummy dsymutil; ac_word=$2
  7430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7431. printf %s "checking for $ac_word... " >&6; }
  7432. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7433. then :
  7434. printf %s "(cached) " >&6
  7435. else $as_nop
  7436. if test -n "$ac_ct_DSYMUTIL"; then
  7437. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7438. else
  7439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7440. for as_dir in $PATH
  7441. do
  7442. IFS=$as_save_IFS
  7443. case $as_dir in #(((
  7444. '') as_dir=./ ;;
  7445. */) ;;
  7446. *) as_dir=$as_dir/ ;;
  7447. esac
  7448. for ac_exec_ext in '' $ac_executable_extensions; do
  7449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7450. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7452. break 2
  7453. fi
  7454. done
  7455. done
  7456. IFS=$as_save_IFS
  7457. fi
  7458. fi
  7459. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7460. if test -n "$ac_ct_DSYMUTIL"; then
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7462. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7463. else
  7464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7465. printf "%s\n" "no" >&6; }
  7466. fi
  7467. if test "x$ac_ct_DSYMUTIL" = x; then
  7468. DSYMUTIL=":"
  7469. else
  7470. case $cross_compiling:$ac_tool_warned in
  7471. yes:)
  7472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7473. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7474. ac_tool_warned=yes ;;
  7475. esac
  7476. DSYMUTIL=$ac_ct_DSYMUTIL
  7477. fi
  7478. else
  7479. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7480. fi
  7481. if test -n "$ac_tool_prefix"; then
  7482. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7483. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7485. printf %s "checking for $ac_word... " >&6; }
  7486. if test ${ac_cv_prog_NMEDIT+y}
  7487. then :
  7488. printf %s "(cached) " >&6
  7489. else $as_nop
  7490. if test -n "$NMEDIT"; then
  7491. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7492. else
  7493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7494. for as_dir in $PATH
  7495. do
  7496. IFS=$as_save_IFS
  7497. case $as_dir in #(((
  7498. '') as_dir=./ ;;
  7499. */) ;;
  7500. *) as_dir=$as_dir/ ;;
  7501. esac
  7502. for ac_exec_ext in '' $ac_executable_extensions; do
  7503. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7504. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7506. break 2
  7507. fi
  7508. done
  7509. done
  7510. IFS=$as_save_IFS
  7511. fi
  7512. fi
  7513. NMEDIT=$ac_cv_prog_NMEDIT
  7514. if test -n "$NMEDIT"; then
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7516. printf "%s\n" "$NMEDIT" >&6; }
  7517. else
  7518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7519. printf "%s\n" "no" >&6; }
  7520. fi
  7521. fi
  7522. if test -z "$ac_cv_prog_NMEDIT"; then
  7523. ac_ct_NMEDIT=$NMEDIT
  7524. # Extract the first word of "nmedit", so it can be a program name with args.
  7525. set dummy nmedit; ac_word=$2
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7527. printf %s "checking for $ac_word... " >&6; }
  7528. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7529. then :
  7530. printf %s "(cached) " >&6
  7531. else $as_nop
  7532. if test -n "$ac_ct_NMEDIT"; then
  7533. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7534. else
  7535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7536. for as_dir in $PATH
  7537. do
  7538. IFS=$as_save_IFS
  7539. case $as_dir in #(((
  7540. '') as_dir=./ ;;
  7541. */) ;;
  7542. *) as_dir=$as_dir/ ;;
  7543. esac
  7544. for ac_exec_ext in '' $ac_executable_extensions; do
  7545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7546. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7548. break 2
  7549. fi
  7550. done
  7551. done
  7552. IFS=$as_save_IFS
  7553. fi
  7554. fi
  7555. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7556. if test -n "$ac_ct_NMEDIT"; then
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7558. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7559. else
  7560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7561. printf "%s\n" "no" >&6; }
  7562. fi
  7563. if test "x$ac_ct_NMEDIT" = x; then
  7564. NMEDIT=":"
  7565. else
  7566. case $cross_compiling:$ac_tool_warned in
  7567. yes:)
  7568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7569. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7570. ac_tool_warned=yes ;;
  7571. esac
  7572. NMEDIT=$ac_ct_NMEDIT
  7573. fi
  7574. else
  7575. NMEDIT="$ac_cv_prog_NMEDIT"
  7576. fi
  7577. if test -n "$ac_tool_prefix"; then
  7578. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7579. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7581. printf %s "checking for $ac_word... " >&6; }
  7582. if test ${ac_cv_prog_LIPO+y}
  7583. then :
  7584. printf %s "(cached) " >&6
  7585. else $as_nop
  7586. if test -n "$LIPO"; then
  7587. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7588. else
  7589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7590. for as_dir in $PATH
  7591. do
  7592. IFS=$as_save_IFS
  7593. case $as_dir in #(((
  7594. '') as_dir=./ ;;
  7595. */) ;;
  7596. *) as_dir=$as_dir/ ;;
  7597. esac
  7598. for ac_exec_ext in '' $ac_executable_extensions; do
  7599. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7600. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7602. break 2
  7603. fi
  7604. done
  7605. done
  7606. IFS=$as_save_IFS
  7607. fi
  7608. fi
  7609. LIPO=$ac_cv_prog_LIPO
  7610. if test -n "$LIPO"; then
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7612. printf "%s\n" "$LIPO" >&6; }
  7613. else
  7614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7615. printf "%s\n" "no" >&6; }
  7616. fi
  7617. fi
  7618. if test -z "$ac_cv_prog_LIPO"; then
  7619. ac_ct_LIPO=$LIPO
  7620. # Extract the first word of "lipo", so it can be a program name with args.
  7621. set dummy lipo; ac_word=$2
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7623. printf %s "checking for $ac_word... " >&6; }
  7624. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7625. then :
  7626. printf %s "(cached) " >&6
  7627. else $as_nop
  7628. if test -n "$ac_ct_LIPO"; then
  7629. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7630. else
  7631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7632. for as_dir in $PATH
  7633. do
  7634. IFS=$as_save_IFS
  7635. case $as_dir in #(((
  7636. '') as_dir=./ ;;
  7637. */) ;;
  7638. *) as_dir=$as_dir/ ;;
  7639. esac
  7640. for ac_exec_ext in '' $ac_executable_extensions; do
  7641. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7642. ac_cv_prog_ac_ct_LIPO="lipo"
  7643. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7644. break 2
  7645. fi
  7646. done
  7647. done
  7648. IFS=$as_save_IFS
  7649. fi
  7650. fi
  7651. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7652. if test -n "$ac_ct_LIPO"; then
  7653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7654. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7655. else
  7656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7657. printf "%s\n" "no" >&6; }
  7658. fi
  7659. if test "x$ac_ct_LIPO" = x; then
  7660. LIPO=":"
  7661. else
  7662. case $cross_compiling:$ac_tool_warned in
  7663. yes:)
  7664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7665. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7666. ac_tool_warned=yes ;;
  7667. esac
  7668. LIPO=$ac_ct_LIPO
  7669. fi
  7670. else
  7671. LIPO="$ac_cv_prog_LIPO"
  7672. fi
  7673. if test -n "$ac_tool_prefix"; then
  7674. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7675. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7677. printf %s "checking for $ac_word... " >&6; }
  7678. if test ${ac_cv_prog_OTOOL+y}
  7679. then :
  7680. printf %s "(cached) " >&6
  7681. else $as_nop
  7682. if test -n "$OTOOL"; then
  7683. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7684. else
  7685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7686. for as_dir in $PATH
  7687. do
  7688. IFS=$as_save_IFS
  7689. case $as_dir in #(((
  7690. '') as_dir=./ ;;
  7691. */) ;;
  7692. *) as_dir=$as_dir/ ;;
  7693. esac
  7694. for ac_exec_ext in '' $ac_executable_extensions; do
  7695. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7696. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7698. break 2
  7699. fi
  7700. done
  7701. done
  7702. IFS=$as_save_IFS
  7703. fi
  7704. fi
  7705. OTOOL=$ac_cv_prog_OTOOL
  7706. if test -n "$OTOOL"; then
  7707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7708. printf "%s\n" "$OTOOL" >&6; }
  7709. else
  7710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7711. printf "%s\n" "no" >&6; }
  7712. fi
  7713. fi
  7714. if test -z "$ac_cv_prog_OTOOL"; then
  7715. ac_ct_OTOOL=$OTOOL
  7716. # Extract the first word of "otool", so it can be a program name with args.
  7717. set dummy otool; ac_word=$2
  7718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7719. printf %s "checking for $ac_word... " >&6; }
  7720. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7721. then :
  7722. printf %s "(cached) " >&6
  7723. else $as_nop
  7724. if test -n "$ac_ct_OTOOL"; then
  7725. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7726. else
  7727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7728. for as_dir in $PATH
  7729. do
  7730. IFS=$as_save_IFS
  7731. case $as_dir in #(((
  7732. '') as_dir=./ ;;
  7733. */) ;;
  7734. *) as_dir=$as_dir/ ;;
  7735. esac
  7736. for ac_exec_ext in '' $ac_executable_extensions; do
  7737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7738. ac_cv_prog_ac_ct_OTOOL="otool"
  7739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7740. break 2
  7741. fi
  7742. done
  7743. done
  7744. IFS=$as_save_IFS
  7745. fi
  7746. fi
  7747. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7748. if test -n "$ac_ct_OTOOL"; then
  7749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7750. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7751. else
  7752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7753. printf "%s\n" "no" >&6; }
  7754. fi
  7755. if test "x$ac_ct_OTOOL" = x; then
  7756. OTOOL=":"
  7757. else
  7758. case $cross_compiling:$ac_tool_warned in
  7759. yes:)
  7760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7761. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7762. ac_tool_warned=yes ;;
  7763. esac
  7764. OTOOL=$ac_ct_OTOOL
  7765. fi
  7766. else
  7767. OTOOL="$ac_cv_prog_OTOOL"
  7768. fi
  7769. if test -n "$ac_tool_prefix"; then
  7770. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7771. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7773. printf %s "checking for $ac_word... " >&6; }
  7774. if test ${ac_cv_prog_OTOOL64+y}
  7775. then :
  7776. printf %s "(cached) " >&6
  7777. else $as_nop
  7778. if test -n "$OTOOL64"; then
  7779. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7780. else
  7781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7782. for as_dir in $PATH
  7783. do
  7784. IFS=$as_save_IFS
  7785. case $as_dir in #(((
  7786. '') as_dir=./ ;;
  7787. */) ;;
  7788. *) as_dir=$as_dir/ ;;
  7789. esac
  7790. for ac_exec_ext in '' $ac_executable_extensions; do
  7791. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7792. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7794. break 2
  7795. fi
  7796. done
  7797. done
  7798. IFS=$as_save_IFS
  7799. fi
  7800. fi
  7801. OTOOL64=$ac_cv_prog_OTOOL64
  7802. if test -n "$OTOOL64"; then
  7803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7804. printf "%s\n" "$OTOOL64" >&6; }
  7805. else
  7806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7807. printf "%s\n" "no" >&6; }
  7808. fi
  7809. fi
  7810. if test -z "$ac_cv_prog_OTOOL64"; then
  7811. ac_ct_OTOOL64=$OTOOL64
  7812. # Extract the first word of "otool64", so it can be a program name with args.
  7813. set dummy otool64; ac_word=$2
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7815. printf %s "checking for $ac_word... " >&6; }
  7816. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7817. then :
  7818. printf %s "(cached) " >&6
  7819. else $as_nop
  7820. if test -n "$ac_ct_OTOOL64"; then
  7821. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7822. else
  7823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7824. for as_dir in $PATH
  7825. do
  7826. IFS=$as_save_IFS
  7827. case $as_dir in #(((
  7828. '') as_dir=./ ;;
  7829. */) ;;
  7830. *) as_dir=$as_dir/ ;;
  7831. esac
  7832. for ac_exec_ext in '' $ac_executable_extensions; do
  7833. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7834. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7836. break 2
  7837. fi
  7838. done
  7839. done
  7840. IFS=$as_save_IFS
  7841. fi
  7842. fi
  7843. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7844. if test -n "$ac_ct_OTOOL64"; then
  7845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7846. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7847. else
  7848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7849. printf "%s\n" "no" >&6; }
  7850. fi
  7851. if test "x$ac_ct_OTOOL64" = x; then
  7852. OTOOL64=":"
  7853. else
  7854. case $cross_compiling:$ac_tool_warned in
  7855. yes:)
  7856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7857. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7858. ac_tool_warned=yes ;;
  7859. esac
  7860. OTOOL64=$ac_ct_OTOOL64
  7861. fi
  7862. else
  7863. OTOOL64="$ac_cv_prog_OTOOL64"
  7864. fi
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7866. printf %s "checking for -single_module linker flag... " >&6; }
  7867. if test ${lt_cv_apple_cc_single_mod+y}
  7868. then :
  7869. printf %s "(cached) " >&6
  7870. else $as_nop
  7871. lt_cv_apple_cc_single_mod=no
  7872. if test -z "$LT_MULTI_MODULE"; then
  7873. # By default we will add the -single_module flag. You can override
  7874. # by either setting the environment variable LT_MULTI_MODULE
  7875. # non-empty at configure time, or by adding -multi_module to the
  7876. # link flags.
  7877. rm -rf libconftest.dylib*
  7878. echo "int foo(void){return 1;}" > conftest.c
  7879. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7880. -dynamiclib -Wl,-single_module conftest.c" >&5
  7881. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7882. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7883. _lt_result=$?
  7884. # If there is a non-empty error log, and "single_module"
  7885. # appears in it, assume the flag caused a linker warning
  7886. if test -s conftest.err && $GREP single_module conftest.err; then
  7887. cat conftest.err >&5
  7888. # Otherwise, if the output was created with a 0 exit code from
  7889. # the compiler, it worked.
  7890. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7891. lt_cv_apple_cc_single_mod=yes
  7892. else
  7893. cat conftest.err >&5
  7894. fi
  7895. rm -rf libconftest.dylib*
  7896. rm -f conftest.*
  7897. fi
  7898. fi
  7899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7900. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7901. # Feature test to disable chained fixups since it is not
  7902. # compatible with '-undefined dynamic_lookup'
  7903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  7904. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  7905. if test ${lt_cv_support_no_fixup_chains+y}
  7906. then :
  7907. printf %s "(cached) " >&6
  7908. else $as_nop
  7909. save_LDFLAGS=$LDFLAGS
  7910. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  7911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7912. /* end confdefs.h. */
  7913. int
  7914. main (void)
  7915. {
  7916. ;
  7917. return 0;
  7918. }
  7919. _ACEOF
  7920. if ac_fn_c_try_link "$LINENO"
  7921. then :
  7922. lt_cv_support_no_fixup_chains=yes
  7923. else $as_nop
  7924. lt_cv_support_no_fixup_chains=no
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7927. conftest$ac_exeext conftest.$ac_ext
  7928. LDFLAGS=$save_LDFLAGS
  7929. fi
  7930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  7931. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  7932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7933. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7934. if test ${lt_cv_ld_exported_symbols_list+y}
  7935. then :
  7936. printf %s "(cached) " >&6
  7937. else $as_nop
  7938. lt_cv_ld_exported_symbols_list=no
  7939. save_LDFLAGS=$LDFLAGS
  7940. echo "_main" > conftest.sym
  7941. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7943. /* end confdefs.h. */
  7944. int
  7945. main (void)
  7946. {
  7947. ;
  7948. return 0;
  7949. }
  7950. _ACEOF
  7951. if ac_fn_c_try_link "$LINENO"
  7952. then :
  7953. lt_cv_ld_exported_symbols_list=yes
  7954. else $as_nop
  7955. lt_cv_ld_exported_symbols_list=no
  7956. fi
  7957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7958. conftest$ac_exeext conftest.$ac_ext
  7959. LDFLAGS=$save_LDFLAGS
  7960. fi
  7961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7962. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7964. printf %s "checking for -force_load linker flag... " >&6; }
  7965. if test ${lt_cv_ld_force_load+y}
  7966. then :
  7967. printf %s "(cached) " >&6
  7968. else $as_nop
  7969. lt_cv_ld_force_load=no
  7970. cat > conftest.c << _LT_EOF
  7971. int forced_loaded() { return 2;}
  7972. _LT_EOF
  7973. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7974. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7975. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7976. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7977. echo "$RANLIB libconftest.a" >&5
  7978. $RANLIB libconftest.a 2>&5
  7979. cat > conftest.c << _LT_EOF
  7980. int main(void) { return 0;}
  7981. _LT_EOF
  7982. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7983. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7984. _lt_result=$?
  7985. if test -s conftest.err && $GREP force_load conftest.err; then
  7986. cat conftest.err >&5
  7987. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7988. lt_cv_ld_force_load=yes
  7989. else
  7990. cat conftest.err >&5
  7991. fi
  7992. rm -f conftest.err libconftest.a conftest conftest.c
  7993. rm -rf conftest.dSYM
  7994. fi
  7995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7996. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7997. case $host_os in
  7998. rhapsody* | darwin1.[012])
  7999. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8000. darwin1.*)
  8001. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8002. darwin*)
  8003. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8004. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8005. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8006. *)
  8007. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  8008. if test yes = "$lt_cv_support_no_fixup_chains"; then
  8009. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  8010. fi
  8011. ;;
  8012. esac
  8013. ;;
  8014. esac
  8015. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8016. _lt_dar_single_mod='$single_module'
  8017. fi
  8018. _lt_dar_needs_single_mod=no
  8019. case $host_os in
  8020. rhapsody* | darwin1.*)
  8021. _lt_dar_needs_single_mod=yes ;;
  8022. darwin*)
  8023. # When targeting Mac OS X 10.4 (darwin 8) or later,
  8024. # -single_module is the default and -multi_module is unsupported.
  8025. # The toolchain on macOS 10.14 (darwin 18) and later cannot
  8026. # target any OS version that needs -single_module.
  8027. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8028. 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
  8029. _lt_dar_needs_single_mod=yes ;;
  8030. esac
  8031. ;;
  8032. esac
  8033. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8034. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8035. else
  8036. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8037. fi
  8038. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8039. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8040. else
  8041. _lt_dsymutil=
  8042. fi
  8043. ;;
  8044. esac
  8045. # func_munge_path_list VARIABLE PATH
  8046. # -----------------------------------
  8047. # VARIABLE is name of variable containing _space_ separated list of
  8048. # directories to be munged by the contents of PATH, which is string
  8049. # having a format:
  8050. # "DIR[:DIR]:"
  8051. # string "DIR[ DIR]" will be prepended to VARIABLE
  8052. # ":DIR[:DIR]"
  8053. # string "DIR[ DIR]" will be appended to VARIABLE
  8054. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8055. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8056. # "DIRA[ DIRA]" will be appended to VARIABLE
  8057. # "DIR[:DIR]"
  8058. # VARIABLE will be replaced by "DIR[ DIR]"
  8059. func_munge_path_list ()
  8060. {
  8061. case x$2 in
  8062. x)
  8063. ;;
  8064. *:)
  8065. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8066. ;;
  8067. x:*)
  8068. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8069. ;;
  8070. *::*)
  8071. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8072. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8073. ;;
  8074. *)
  8075. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8076. ;;
  8077. esac
  8078. }
  8079. ac_header= ac_cache=
  8080. for ac_item in $ac_header_c_list
  8081. do
  8082. if test $ac_cache; then
  8083. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8084. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8085. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8086. fi
  8087. ac_header= ac_cache=
  8088. elif test $ac_header; then
  8089. ac_cache=$ac_item
  8090. else
  8091. ac_header=$ac_item
  8092. fi
  8093. done
  8094. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8095. then :
  8096. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8097. fi
  8098. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8099. "
  8100. if test "x$ac_cv_header_dlfcn_h" = xyes
  8101. then :
  8102. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8103. fi
  8104. # Set options
  8105. enable_win32_dll=yes
  8106. case $host in
  8107. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  8108. if test -n "$ac_tool_prefix"; then
  8109. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8110. set dummy ${ac_tool_prefix}as; ac_word=$2
  8111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8112. printf %s "checking for $ac_word... " >&6; }
  8113. if test ${ac_cv_prog_AS+y}
  8114. then :
  8115. printf %s "(cached) " >&6
  8116. else $as_nop
  8117. if test -n "$AS"; then
  8118. ac_cv_prog_AS="$AS" # Let the user override the test.
  8119. else
  8120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8121. for as_dir in $PATH
  8122. do
  8123. IFS=$as_save_IFS
  8124. case $as_dir in #(((
  8125. '') as_dir=./ ;;
  8126. */) ;;
  8127. *) as_dir=$as_dir/ ;;
  8128. esac
  8129. for ac_exec_ext in '' $ac_executable_extensions; do
  8130. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8131. ac_cv_prog_AS="${ac_tool_prefix}as"
  8132. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8133. break 2
  8134. fi
  8135. done
  8136. done
  8137. IFS=$as_save_IFS
  8138. fi
  8139. fi
  8140. AS=$ac_cv_prog_AS
  8141. if test -n "$AS"; then
  8142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8143. printf "%s\n" "$AS" >&6; }
  8144. else
  8145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8146. printf "%s\n" "no" >&6; }
  8147. fi
  8148. fi
  8149. if test -z "$ac_cv_prog_AS"; then
  8150. ac_ct_AS=$AS
  8151. # Extract the first word of "as", so it can be a program name with args.
  8152. set dummy as; ac_word=$2
  8153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8154. printf %s "checking for $ac_word... " >&6; }
  8155. if test ${ac_cv_prog_ac_ct_AS+y}
  8156. then :
  8157. printf %s "(cached) " >&6
  8158. else $as_nop
  8159. if test -n "$ac_ct_AS"; then
  8160. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8161. else
  8162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8163. for as_dir in $PATH
  8164. do
  8165. IFS=$as_save_IFS
  8166. case $as_dir in #(((
  8167. '') as_dir=./ ;;
  8168. */) ;;
  8169. *) as_dir=$as_dir/ ;;
  8170. esac
  8171. for ac_exec_ext in '' $ac_executable_extensions; do
  8172. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8173. ac_cv_prog_ac_ct_AS="as"
  8174. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8175. break 2
  8176. fi
  8177. done
  8178. done
  8179. IFS=$as_save_IFS
  8180. fi
  8181. fi
  8182. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8183. if test -n "$ac_ct_AS"; then
  8184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8185. printf "%s\n" "$ac_ct_AS" >&6; }
  8186. else
  8187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8188. printf "%s\n" "no" >&6; }
  8189. fi
  8190. if test "x$ac_ct_AS" = x; then
  8191. AS="false"
  8192. else
  8193. case $cross_compiling:$ac_tool_warned in
  8194. yes:)
  8195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8196. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8197. ac_tool_warned=yes ;;
  8198. esac
  8199. AS=$ac_ct_AS
  8200. fi
  8201. else
  8202. AS="$ac_cv_prog_AS"
  8203. fi
  8204. if test -n "$ac_tool_prefix"; then
  8205. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8206. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8208. printf %s "checking for $ac_word... " >&6; }
  8209. if test ${ac_cv_prog_DLLTOOL+y}
  8210. then :
  8211. printf %s "(cached) " >&6
  8212. else $as_nop
  8213. if test -n "$DLLTOOL"; then
  8214. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8215. else
  8216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8217. for as_dir in $PATH
  8218. do
  8219. IFS=$as_save_IFS
  8220. case $as_dir in #(((
  8221. '') as_dir=./ ;;
  8222. */) ;;
  8223. *) as_dir=$as_dir/ ;;
  8224. esac
  8225. for ac_exec_ext in '' $ac_executable_extensions; do
  8226. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8227. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8228. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8229. break 2
  8230. fi
  8231. done
  8232. done
  8233. IFS=$as_save_IFS
  8234. fi
  8235. fi
  8236. DLLTOOL=$ac_cv_prog_DLLTOOL
  8237. if test -n "$DLLTOOL"; then
  8238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8239. printf "%s\n" "$DLLTOOL" >&6; }
  8240. else
  8241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8242. printf "%s\n" "no" >&6; }
  8243. fi
  8244. fi
  8245. if test -z "$ac_cv_prog_DLLTOOL"; then
  8246. ac_ct_DLLTOOL=$DLLTOOL
  8247. # Extract the first word of "dlltool", so it can be a program name with args.
  8248. set dummy dlltool; ac_word=$2
  8249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8250. printf %s "checking for $ac_word... " >&6; }
  8251. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8252. then :
  8253. printf %s "(cached) " >&6
  8254. else $as_nop
  8255. if test -n "$ac_ct_DLLTOOL"; then
  8256. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8257. else
  8258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8259. for as_dir in $PATH
  8260. do
  8261. IFS=$as_save_IFS
  8262. case $as_dir in #(((
  8263. '') as_dir=./ ;;
  8264. */) ;;
  8265. *) as_dir=$as_dir/ ;;
  8266. esac
  8267. for ac_exec_ext in '' $ac_executable_extensions; do
  8268. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8269. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8271. break 2
  8272. fi
  8273. done
  8274. done
  8275. IFS=$as_save_IFS
  8276. fi
  8277. fi
  8278. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8279. if test -n "$ac_ct_DLLTOOL"; then
  8280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8281. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8282. else
  8283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8284. printf "%s\n" "no" >&6; }
  8285. fi
  8286. if test "x$ac_ct_DLLTOOL" = x; then
  8287. DLLTOOL="false"
  8288. else
  8289. case $cross_compiling:$ac_tool_warned in
  8290. yes:)
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8292. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8293. ac_tool_warned=yes ;;
  8294. esac
  8295. DLLTOOL=$ac_ct_DLLTOOL
  8296. fi
  8297. else
  8298. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8299. fi
  8300. if test -n "$ac_tool_prefix"; then
  8301. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8302. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8304. printf %s "checking for $ac_word... " >&6; }
  8305. if test ${ac_cv_prog_OBJDUMP+y}
  8306. then :
  8307. printf %s "(cached) " >&6
  8308. else $as_nop
  8309. if test -n "$OBJDUMP"; then
  8310. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8311. else
  8312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8313. for as_dir in $PATH
  8314. do
  8315. IFS=$as_save_IFS
  8316. case $as_dir in #(((
  8317. '') as_dir=./ ;;
  8318. */) ;;
  8319. *) as_dir=$as_dir/ ;;
  8320. esac
  8321. for ac_exec_ext in '' $ac_executable_extensions; do
  8322. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8323. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8324. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8325. break 2
  8326. fi
  8327. done
  8328. done
  8329. IFS=$as_save_IFS
  8330. fi
  8331. fi
  8332. OBJDUMP=$ac_cv_prog_OBJDUMP
  8333. if test -n "$OBJDUMP"; then
  8334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8335. printf "%s\n" "$OBJDUMP" >&6; }
  8336. else
  8337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8338. printf "%s\n" "no" >&6; }
  8339. fi
  8340. fi
  8341. if test -z "$ac_cv_prog_OBJDUMP"; then
  8342. ac_ct_OBJDUMP=$OBJDUMP
  8343. # Extract the first word of "objdump", so it can be a program name with args.
  8344. set dummy objdump; ac_word=$2
  8345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8346. printf %s "checking for $ac_word... " >&6; }
  8347. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8348. then :
  8349. printf %s "(cached) " >&6
  8350. else $as_nop
  8351. if test -n "$ac_ct_OBJDUMP"; then
  8352. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8353. else
  8354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8355. for as_dir in $PATH
  8356. do
  8357. IFS=$as_save_IFS
  8358. case $as_dir in #(((
  8359. '') as_dir=./ ;;
  8360. */) ;;
  8361. *) as_dir=$as_dir/ ;;
  8362. esac
  8363. for ac_exec_ext in '' $ac_executable_extensions; do
  8364. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8365. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8366. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8367. break 2
  8368. fi
  8369. done
  8370. done
  8371. IFS=$as_save_IFS
  8372. fi
  8373. fi
  8374. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8375. if test -n "$ac_ct_OBJDUMP"; then
  8376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8377. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8378. else
  8379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8380. printf "%s\n" "no" >&6; }
  8381. fi
  8382. if test "x$ac_ct_OBJDUMP" = x; then
  8383. OBJDUMP="false"
  8384. else
  8385. case $cross_compiling:$ac_tool_warned in
  8386. yes:)
  8387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8388. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8389. ac_tool_warned=yes ;;
  8390. esac
  8391. OBJDUMP=$ac_ct_OBJDUMP
  8392. fi
  8393. else
  8394. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8395. fi
  8396. ;;
  8397. esac
  8398. test -z "$AS" && AS=as
  8399. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8400. test -z "$OBJDUMP" && OBJDUMP=objdump
  8401. enable_dlopen=no
  8402. # Check whether --enable-shared was given.
  8403. if test ${enable_shared+y}
  8404. then :
  8405. enableval=$enable_shared; p=${PACKAGE-default}
  8406. case $enableval in
  8407. yes) enable_shared=yes ;;
  8408. no) enable_shared=no ;;
  8409. *)
  8410. enable_shared=no
  8411. # Look at the argument we got. We use all the common list separators.
  8412. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8413. for pkg in $enableval; do
  8414. IFS=$lt_save_ifs
  8415. if test "X$pkg" = "X$p"; then
  8416. enable_shared=yes
  8417. fi
  8418. done
  8419. IFS=$lt_save_ifs
  8420. ;;
  8421. esac
  8422. else $as_nop
  8423. enable_shared=yes
  8424. fi
  8425. # Check whether --enable-static was given.
  8426. if test ${enable_static+y}
  8427. then :
  8428. enableval=$enable_static; p=${PACKAGE-default}
  8429. case $enableval in
  8430. yes) enable_static=yes ;;
  8431. no) enable_static=no ;;
  8432. *)
  8433. enable_static=no
  8434. # Look at the argument we got. We use all the common list separators.
  8435. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8436. for pkg in $enableval; do
  8437. IFS=$lt_save_ifs
  8438. if test "X$pkg" = "X$p"; then
  8439. enable_static=yes
  8440. fi
  8441. done
  8442. IFS=$lt_save_ifs
  8443. ;;
  8444. esac
  8445. else $as_nop
  8446. enable_static=yes
  8447. fi
  8448. # Check whether --enable-pic was given.
  8449. if test ${enable_pic+y}
  8450. then :
  8451. enableval=$enable_pic; lt_p=${PACKAGE-default}
  8452. case $enableval in
  8453. yes|no) pic_mode=$enableval ;;
  8454. *)
  8455. pic_mode=default
  8456. # Look at the argument we got. We use all the common list separators.
  8457. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8458. for lt_pkg in $enableval; do
  8459. IFS=$lt_save_ifs
  8460. if test "X$lt_pkg" = "X$lt_p"; then
  8461. pic_mode=yes
  8462. fi
  8463. done
  8464. IFS=$lt_save_ifs
  8465. ;;
  8466. esac
  8467. else $as_nop
  8468. # Check whether --with-pic was given.
  8469. if test ${with_pic+y}
  8470. then :
  8471. withval=$with_pic; lt_p=${PACKAGE-default}
  8472. case $withval in
  8473. yes|no) pic_mode=$withval ;;
  8474. *)
  8475. pic_mode=default
  8476. # Look at the argument we got. We use all the common list separators.
  8477. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8478. for lt_pkg in $withval; do
  8479. IFS=$lt_save_ifs
  8480. if test "X$lt_pkg" = "X$lt_p"; then
  8481. pic_mode=yes
  8482. fi
  8483. done
  8484. IFS=$lt_save_ifs
  8485. ;;
  8486. esac
  8487. else $as_nop
  8488. pic_mode=default
  8489. fi
  8490. fi
  8491. # Check whether --enable-fast-install was given.
  8492. if test ${enable_fast_install+y}
  8493. then :
  8494. enableval=$enable_fast_install; p=${PACKAGE-default}
  8495. case $enableval in
  8496. yes) enable_fast_install=yes ;;
  8497. no) enable_fast_install=no ;;
  8498. *)
  8499. enable_fast_install=no
  8500. # Look at the argument we got. We use all the common list separators.
  8501. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8502. for pkg in $enableval; do
  8503. IFS=$lt_save_ifs
  8504. if test "X$pkg" = "X$p"; then
  8505. enable_fast_install=yes
  8506. fi
  8507. done
  8508. IFS=$lt_save_ifs
  8509. ;;
  8510. esac
  8511. else $as_nop
  8512. enable_fast_install=yes
  8513. fi
  8514. shared_archive_member_spec=
  8515. case $host,$enable_shared in
  8516. power*-*-aix[5-9]*,yes)
  8517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8518. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8519. # Check whether --enable-aix-soname was given.
  8520. if test ${enable_aix_soname+y}
  8521. then :
  8522. enableval=$enable_aix_soname; case $enableval in
  8523. aix|svr4|both)
  8524. ;;
  8525. *)
  8526. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  8527. ;;
  8528. esac
  8529. lt_cv_with_aix_soname=$enable_aix_soname
  8530. else $as_nop
  8531. # Check whether --with-aix-soname was given.
  8532. if test ${with_aix_soname+y}
  8533. then :
  8534. withval=$with_aix_soname; case $withval in
  8535. aix|svr4|both)
  8536. ;;
  8537. *)
  8538. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8539. ;;
  8540. esac
  8541. lt_cv_with_aix_soname=$with_aix_soname
  8542. else $as_nop
  8543. if test ${lt_cv_with_aix_soname+y}
  8544. then :
  8545. printf %s "(cached) " >&6
  8546. else $as_nop
  8547. lt_cv_with_aix_soname=aix
  8548. fi
  8549. fi
  8550. enable_aix_soname=$lt_cv_with_aix_soname
  8551. fi
  8552. with_aix_soname=$enable_aix_soname
  8553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8554. printf "%s\n" "$with_aix_soname" >&6; }
  8555. if test aix != "$with_aix_soname"; then
  8556. # For the AIX way of multilib, we name the shared archive member
  8557. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8558. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8559. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8560. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8561. if test 64 = "${OBJECT_MODE-32}"; then
  8562. shared_archive_member_spec=shr_64
  8563. else
  8564. shared_archive_member_spec=shr
  8565. fi
  8566. fi
  8567. ;;
  8568. *)
  8569. with_aix_soname=aix
  8570. ;;
  8571. esac
  8572. # This can be used to rebuild libtool when needed
  8573. LIBTOOL_DEPS=$ltmain
  8574. # Always use our own libtool.
  8575. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8576. test -z "$LN_S" && LN_S="ln -s"
  8577. if test -n "${ZSH_VERSION+set}"; then
  8578. setopt NO_GLOB_SUBST
  8579. fi
  8580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8581. printf %s "checking for objdir... " >&6; }
  8582. if test ${lt_cv_objdir+y}
  8583. then :
  8584. printf %s "(cached) " >&6
  8585. else $as_nop
  8586. rm -f .libs 2>/dev/null
  8587. mkdir .libs 2>/dev/null
  8588. if test -d .libs; then
  8589. lt_cv_objdir=.libs
  8590. else
  8591. # MS-DOS does not allow filenames that begin with a dot.
  8592. lt_cv_objdir=_libs
  8593. fi
  8594. rmdir .libs 2>/dev/null
  8595. fi
  8596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8597. printf "%s\n" "$lt_cv_objdir" >&6; }
  8598. objdir=$lt_cv_objdir
  8599. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8600. case $host_os in
  8601. aix3*)
  8602. # AIX sometimes has problems with the GCC collect2 program. For some
  8603. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8604. # vanish in a puff of smoke.
  8605. if test set != "${COLLECT_NAMES+set}"; then
  8606. COLLECT_NAMES=
  8607. export COLLECT_NAMES
  8608. fi
  8609. ;;
  8610. esac
  8611. # Global variables:
  8612. ofile=libtool
  8613. can_build_shared=yes
  8614. # All known linkers require a '.a' archive for static linking (except MSVC and
  8615. # ICC, which need '.lib').
  8616. libext=a
  8617. with_gnu_ld=$lt_cv_prog_gnu_ld
  8618. old_CC=$CC
  8619. old_CFLAGS=$CFLAGS
  8620. # Set sane defaults for various variables
  8621. test -z "$CC" && CC=cc
  8622. test -z "$LTCC" && LTCC=$CC
  8623. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8624. test -z "$LD" && LD=ld
  8625. test -z "$ac_objext" && ac_objext=o
  8626. func_cc_basename $compiler
  8627. cc_basename=$func_cc_basename_result
  8628. # Only perform the check for file, if the check method requires it
  8629. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8630. case $deplibs_check_method in
  8631. file_magic*)
  8632. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8634. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8635. if test ${lt_cv_path_MAGIC_CMD+y}
  8636. then :
  8637. printf %s "(cached) " >&6
  8638. else $as_nop
  8639. case $MAGIC_CMD in
  8640. [\\/*] | ?:[\\/]*)
  8641. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8642. ;;
  8643. *)
  8644. lt_save_MAGIC_CMD=$MAGIC_CMD
  8645. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8646. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8647. for ac_dir in $ac_dummy; do
  8648. IFS=$lt_save_ifs
  8649. test -z "$ac_dir" && ac_dir=.
  8650. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8651. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8652. if test -n "$file_magic_test_file"; then
  8653. case $deplibs_check_method in
  8654. "file_magic "*)
  8655. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8656. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8657. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8658. $EGREP "$file_magic_regex" > /dev/null; then
  8659. :
  8660. else
  8661. cat <<_LT_EOF 1>&2
  8662. *** Warning: the command libtool uses to detect shared libraries,
  8663. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8664. *** The result is that libtool may fail to recognize shared libraries
  8665. *** as such. This will affect the creation of libtool libraries that
  8666. *** depend on shared libraries, but programs linked with such libtool
  8667. *** libraries will work regardless of this problem. Nevertheless, you
  8668. *** may want to report the problem to your system manager and/or to
  8669. *** [email protected]
  8670. _LT_EOF
  8671. fi ;;
  8672. esac
  8673. fi
  8674. break
  8675. fi
  8676. done
  8677. IFS=$lt_save_ifs
  8678. MAGIC_CMD=$lt_save_MAGIC_CMD
  8679. ;;
  8680. esac
  8681. fi
  8682. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8683. if test -n "$MAGIC_CMD"; then
  8684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8685. printf "%s\n" "$MAGIC_CMD" >&6; }
  8686. else
  8687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8688. printf "%s\n" "no" >&6; }
  8689. fi
  8690. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8691. if test -n "$ac_tool_prefix"; then
  8692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8693. printf %s "checking for file... " >&6; }
  8694. if test ${lt_cv_path_MAGIC_CMD+y}
  8695. then :
  8696. printf %s "(cached) " >&6
  8697. else $as_nop
  8698. case $MAGIC_CMD in
  8699. [\\/*] | ?:[\\/]*)
  8700. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8701. ;;
  8702. *)
  8703. lt_save_MAGIC_CMD=$MAGIC_CMD
  8704. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8705. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8706. for ac_dir in $ac_dummy; do
  8707. IFS=$lt_save_ifs
  8708. test -z "$ac_dir" && ac_dir=.
  8709. if test -f "$ac_dir/file"; then
  8710. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8711. if test -n "$file_magic_test_file"; then
  8712. case $deplibs_check_method in
  8713. "file_magic "*)
  8714. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8715. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8716. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8717. $EGREP "$file_magic_regex" > /dev/null; then
  8718. :
  8719. else
  8720. cat <<_LT_EOF 1>&2
  8721. *** Warning: the command libtool uses to detect shared libraries,
  8722. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8723. *** The result is that libtool may fail to recognize shared libraries
  8724. *** as such. This will affect the creation of libtool libraries that
  8725. *** depend on shared libraries, but programs linked with such libtool
  8726. *** libraries will work regardless of this problem. Nevertheless, you
  8727. *** may want to report the problem to your system manager and/or to
  8728. *** [email protected]
  8729. _LT_EOF
  8730. fi ;;
  8731. esac
  8732. fi
  8733. break
  8734. fi
  8735. done
  8736. IFS=$lt_save_ifs
  8737. MAGIC_CMD=$lt_save_MAGIC_CMD
  8738. ;;
  8739. esac
  8740. fi
  8741. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8742. if test -n "$MAGIC_CMD"; then
  8743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8744. printf "%s\n" "$MAGIC_CMD" >&6; }
  8745. else
  8746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8747. printf "%s\n" "no" >&6; }
  8748. fi
  8749. else
  8750. MAGIC_CMD=:
  8751. fi
  8752. fi
  8753. fi
  8754. ;;
  8755. esac
  8756. # Use C for the default configuration in the libtool script
  8757. lt_save_CC=$CC
  8758. ac_ext=c
  8759. ac_cpp='$CPP $CPPFLAGS'
  8760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8763. # Source file extension for C test sources.
  8764. ac_ext=c
  8765. # Object file extension for compiled C test sources.
  8766. objext=o
  8767. objext=$objext
  8768. # Code to be used in simple compile tests
  8769. lt_simple_compile_test_code="int some_variable = 0;"
  8770. # Code to be used in simple link tests
  8771. lt_simple_link_test_code='int main(void){return(0);}'
  8772. # If no C compiler was specified, use CC.
  8773. LTCC=${LTCC-"$CC"}
  8774. # If no C compiler flags were specified, use CFLAGS.
  8775. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8776. # Allow CC to be a program name with arguments.
  8777. compiler=$CC
  8778. # Save the default compiler, since it gets overwritten when the other
  8779. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8780. compiler_DEFAULT=$CC
  8781. # save warnings/boilerplate of simple test code
  8782. ac_outfile=conftest.$ac_objext
  8783. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8784. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8785. _lt_compiler_boilerplate=`cat conftest.err`
  8786. $RM conftest*
  8787. ac_outfile=conftest.$ac_objext
  8788. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8789. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8790. _lt_linker_boilerplate=`cat conftest.err`
  8791. $RM -r conftest*
  8792. ## CAVEAT EMPTOR:
  8793. ## There is no encapsulation within the following macros, do not change
  8794. ## the running order or otherwise move them around unless you know exactly
  8795. ## what you are doing...
  8796. if test -n "$compiler"; then
  8797. lt_prog_compiler_no_builtin_flag=
  8798. if test yes = "$GCC"; then
  8799. case $cc_basename in
  8800. nvcc*)
  8801. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8802. *)
  8803. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8804. esac
  8805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8806. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8807. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8808. then :
  8809. printf %s "(cached) " >&6
  8810. else $as_nop
  8811. lt_cv_prog_compiler_rtti_exceptions=no
  8812. ac_outfile=conftest.$ac_objext
  8813. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8814. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8815. # Insert the option either (1) after the last *FLAGS variable, or
  8816. # (2) before a word containing "conftest.", or (3) at the end.
  8817. # Note that $ac_compile itself does not contain backslashes and begins
  8818. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8819. # The option is referenced via a variable to avoid confusing sed.
  8820. lt_compile=`echo "$ac_compile" | $SED \
  8821. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8822. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8823. -e 's:$: $lt_compiler_flag:'`
  8824. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8825. (eval "$lt_compile" 2>conftest.err)
  8826. ac_status=$?
  8827. cat conftest.err >&5
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. if (exit $ac_status) && test -s "$ac_outfile"; then
  8830. # The compiler can only warn and ignore the option if not recognized
  8831. # So say no if there are warnings other than the usual output.
  8832. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8833. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8834. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8835. lt_cv_prog_compiler_rtti_exceptions=yes
  8836. fi
  8837. fi
  8838. $RM conftest*
  8839. fi
  8840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8841. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8842. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8843. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8844. else
  8845. :
  8846. fi
  8847. fi
  8848. lt_prog_compiler_wl=
  8849. lt_prog_compiler_pic=
  8850. lt_prog_compiler_static=
  8851. if test yes = "$GCC"; then
  8852. lt_prog_compiler_wl='-Wl,'
  8853. lt_prog_compiler_static='-static'
  8854. case $host_os in
  8855. aix*)
  8856. # All AIX code is PIC.
  8857. if test ia64 = "$host_cpu"; then
  8858. # AIX 5 now supports IA64 processor
  8859. lt_prog_compiler_static='-Bstatic'
  8860. fi
  8861. lt_prog_compiler_pic='-fPIC'
  8862. ;;
  8863. amigaos*)
  8864. case $host_cpu in
  8865. powerpc)
  8866. # see comment about AmigaOS4 .so support
  8867. lt_prog_compiler_pic='-fPIC'
  8868. ;;
  8869. m68k)
  8870. # FIXME: we need at least 68020 code to build shared libraries, but
  8871. # adding the '-m68020' flag to GCC prevents building anything better,
  8872. # like '-m68040'.
  8873. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8874. ;;
  8875. esac
  8876. ;;
  8877. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8878. # PIC is the default for these OSes.
  8879. ;;
  8880. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8881. # This hack is so that the source file can tell whether it is being
  8882. # built for inclusion in a dll (and should export symbols for example).
  8883. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8884. # (--disable-auto-import) libraries
  8885. lt_prog_compiler_pic='-DDLL_EXPORT'
  8886. case $host_os in
  8887. os2*)
  8888. lt_prog_compiler_static='$wl-static'
  8889. ;;
  8890. esac
  8891. ;;
  8892. darwin* | rhapsody*)
  8893. # PIC is the default on this platform
  8894. # Common symbols not allowed in MH_DYLIB files
  8895. lt_prog_compiler_pic='-fno-common'
  8896. ;;
  8897. haiku*)
  8898. # PIC is the default for Haiku.
  8899. # The "-static" flag exists, but is broken.
  8900. lt_prog_compiler_static=
  8901. ;;
  8902. hpux*)
  8903. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8904. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8905. # sets the default TLS model and affects inlining.
  8906. case $host_cpu in
  8907. hppa*64*)
  8908. # +Z the default
  8909. ;;
  8910. *)
  8911. lt_prog_compiler_pic='-fPIC'
  8912. ;;
  8913. esac
  8914. ;;
  8915. interix[3-9]*)
  8916. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8917. # Instead, we relocate shared libraries at runtime.
  8918. ;;
  8919. msdosdjgpp*)
  8920. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8921. # on systems that don't support them.
  8922. lt_prog_compiler_can_build_shared=no
  8923. enable_shared=no
  8924. ;;
  8925. *nto* | *qnx*)
  8926. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8927. # it will coredump.
  8928. lt_prog_compiler_pic='-fPIC -shared'
  8929. ;;
  8930. sysv4*MP*)
  8931. if test -d /usr/nec; then
  8932. lt_prog_compiler_pic=-Kconform_pic
  8933. fi
  8934. ;;
  8935. *)
  8936. lt_prog_compiler_pic='-fPIC'
  8937. ;;
  8938. esac
  8939. case $cc_basename in
  8940. nvcc*) # Cuda Compiler Driver 2.2
  8941. lt_prog_compiler_wl='-Xlinker '
  8942. if test -n "$lt_prog_compiler_pic"; then
  8943. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8944. fi
  8945. ;;
  8946. esac
  8947. else
  8948. # PORTME Check for flag to pass linker flags through the system compiler.
  8949. case $host_os in
  8950. aix*)
  8951. lt_prog_compiler_wl='-Wl,'
  8952. if test ia64 = "$host_cpu"; then
  8953. # AIX 5 now supports IA64 processor
  8954. lt_prog_compiler_static='-Bstatic'
  8955. else
  8956. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8957. fi
  8958. ;;
  8959. darwin* | rhapsody*)
  8960. # PIC is the default on this platform
  8961. # Common symbols not allowed in MH_DYLIB files
  8962. lt_prog_compiler_pic='-fno-common'
  8963. case $cc_basename in
  8964. nagfor*)
  8965. # NAG Fortran compiler
  8966. lt_prog_compiler_wl='-Wl,-Wl,,'
  8967. lt_prog_compiler_pic='-PIC'
  8968. lt_prog_compiler_static='-Bstatic'
  8969. ;;
  8970. esac
  8971. ;;
  8972. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8973. # This hack is so that the source file can tell whether it is being
  8974. # built for inclusion in a dll (and should export symbols for example).
  8975. lt_prog_compiler_pic='-DDLL_EXPORT'
  8976. case $host_os in
  8977. os2*)
  8978. lt_prog_compiler_static='$wl-static'
  8979. ;;
  8980. esac
  8981. ;;
  8982. hpux9* | hpux10* | hpux11*)
  8983. lt_prog_compiler_wl='-Wl,'
  8984. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8985. # not for PA HP-UX.
  8986. case $host_cpu in
  8987. hppa*64*|ia64*)
  8988. # +Z the default
  8989. ;;
  8990. *)
  8991. lt_prog_compiler_pic='+Z'
  8992. ;;
  8993. esac
  8994. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8995. lt_prog_compiler_static='$wl-a ${wl}archive'
  8996. ;;
  8997. irix5* | irix6* | nonstopux*)
  8998. lt_prog_compiler_wl='-Wl,'
  8999. # PIC (with -KPIC) is the default.
  9000. lt_prog_compiler_static='-non_shared'
  9001. ;;
  9002. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9003. case $cc_basename in
  9004. # old Intel for x86_64, which still supported -KPIC.
  9005. ecc*)
  9006. lt_prog_compiler_wl='-Wl,'
  9007. lt_prog_compiler_pic='-KPIC'
  9008. lt_prog_compiler_static='-static'
  9009. ;;
  9010. *flang* | ftn | f18* | f95*)
  9011. # Flang compiler.
  9012. lt_prog_compiler_wl='-Wl,'
  9013. lt_prog_compiler_pic='-fPIC'
  9014. lt_prog_compiler_static='-static'
  9015. ;;
  9016. # icc used to be incompatible with GCC.
  9017. # ICC 10 doesn't accept -KPIC any more.
  9018. icc* | ifort*)
  9019. lt_prog_compiler_wl='-Wl,'
  9020. lt_prog_compiler_pic='-fPIC'
  9021. lt_prog_compiler_static='-static'
  9022. ;;
  9023. # Lahey Fortran 8.1.
  9024. lf95*)
  9025. lt_prog_compiler_wl='-Wl,'
  9026. lt_prog_compiler_pic='--shared'
  9027. lt_prog_compiler_static='--static'
  9028. ;;
  9029. nagfor*)
  9030. # NAG Fortran compiler
  9031. lt_prog_compiler_wl='-Wl,-Wl,,'
  9032. lt_prog_compiler_pic='-PIC'
  9033. lt_prog_compiler_static='-Bstatic'
  9034. ;;
  9035. tcc*)
  9036. # Fabrice Bellard et al's Tiny C Compiler
  9037. lt_prog_compiler_wl='-Wl,'
  9038. lt_prog_compiler_pic='-fPIC'
  9039. lt_prog_compiler_static='-static'
  9040. ;;
  9041. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9042. # Portland Group compilers (*not* the Pentium gcc compiler,
  9043. # which looks to be a dead project)
  9044. lt_prog_compiler_wl='-Wl,'
  9045. lt_prog_compiler_pic='-fpic'
  9046. lt_prog_compiler_static='-Bstatic'
  9047. ;;
  9048. ccc*)
  9049. lt_prog_compiler_wl='-Wl,'
  9050. # All Alpha code is PIC.
  9051. lt_prog_compiler_static='-non_shared'
  9052. ;;
  9053. xl* | bgxl* | bgf* | mpixl*)
  9054. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9055. lt_prog_compiler_wl='-Wl,'
  9056. lt_prog_compiler_pic='-qpic'
  9057. lt_prog_compiler_static='-qstaticlink'
  9058. ;;
  9059. *)
  9060. case `$CC -V 2>&1 | $SED 5q` in
  9061. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9062. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9063. lt_prog_compiler_pic='-KPIC'
  9064. lt_prog_compiler_static='-Bstatic'
  9065. lt_prog_compiler_wl=''
  9066. ;;
  9067. *Sun\ F* | *Sun*Fortran*)
  9068. lt_prog_compiler_pic='-KPIC'
  9069. lt_prog_compiler_static='-Bstatic'
  9070. lt_prog_compiler_wl='-Qoption ld '
  9071. ;;
  9072. *Sun\ C*)
  9073. # Sun C 5.9
  9074. lt_prog_compiler_pic='-KPIC'
  9075. lt_prog_compiler_static='-Bstatic'
  9076. lt_prog_compiler_wl='-Wl,'
  9077. ;;
  9078. *Intel*\ [CF]*Compiler*)
  9079. lt_prog_compiler_wl='-Wl,'
  9080. lt_prog_compiler_pic='-fPIC'
  9081. lt_prog_compiler_static='-static'
  9082. ;;
  9083. *Portland\ Group*)
  9084. lt_prog_compiler_wl='-Wl,'
  9085. lt_prog_compiler_pic='-fpic'
  9086. lt_prog_compiler_static='-Bstatic'
  9087. ;;
  9088. esac
  9089. ;;
  9090. esac
  9091. ;;
  9092. newsos6)
  9093. lt_prog_compiler_pic='-KPIC'
  9094. lt_prog_compiler_static='-Bstatic'
  9095. ;;
  9096. *-mlibc)
  9097. lt_prog_compiler_wl='-Wl,'
  9098. lt_prog_compiler_pic='-fPIC'
  9099. lt_prog_compiler_static='-static'
  9100. ;;
  9101. *nto* | *qnx*)
  9102. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9103. # it will coredump.
  9104. lt_prog_compiler_pic='-fPIC -shared'
  9105. ;;
  9106. osf3* | osf4* | osf5*)
  9107. lt_prog_compiler_wl='-Wl,'
  9108. # All OSF/1 code is PIC.
  9109. lt_prog_compiler_static='-non_shared'
  9110. ;;
  9111. rdos*)
  9112. lt_prog_compiler_static='-non_shared'
  9113. ;;
  9114. serenity*)
  9115. ;;
  9116. solaris*)
  9117. lt_prog_compiler_pic='-KPIC'
  9118. lt_prog_compiler_static='-Bstatic'
  9119. case $cc_basename in
  9120. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9121. lt_prog_compiler_wl='-Qoption ld ';;
  9122. *)
  9123. lt_prog_compiler_wl='-Wl,';;
  9124. esac
  9125. ;;
  9126. sunos4*)
  9127. lt_prog_compiler_wl='-Qoption ld '
  9128. lt_prog_compiler_pic='-PIC'
  9129. lt_prog_compiler_static='-Bstatic'
  9130. ;;
  9131. sysv4 | sysv4.2uw2* | sysv4.3*)
  9132. lt_prog_compiler_wl='-Wl,'
  9133. lt_prog_compiler_pic='-KPIC'
  9134. lt_prog_compiler_static='-Bstatic'
  9135. ;;
  9136. sysv4*MP*)
  9137. if test -d /usr/nec; then
  9138. lt_prog_compiler_pic='-Kconform_pic'
  9139. lt_prog_compiler_static='-Bstatic'
  9140. fi
  9141. ;;
  9142. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9143. lt_prog_compiler_wl='-Wl,'
  9144. lt_prog_compiler_pic='-KPIC'
  9145. lt_prog_compiler_static='-Bstatic'
  9146. ;;
  9147. unicos*)
  9148. lt_prog_compiler_wl='-Wl,'
  9149. lt_prog_compiler_can_build_shared=no
  9150. ;;
  9151. uts4*)
  9152. lt_prog_compiler_pic='-pic'
  9153. lt_prog_compiler_static='-Bstatic'
  9154. ;;
  9155. *)
  9156. lt_prog_compiler_can_build_shared=no
  9157. ;;
  9158. esac
  9159. fi
  9160. case $host_os in
  9161. # For platforms that do not support PIC, -DPIC is meaningless:
  9162. *djgpp*)
  9163. lt_prog_compiler_pic=
  9164. ;;
  9165. *)
  9166. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9167. ;;
  9168. esac
  9169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9170. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9171. if test ${lt_cv_prog_compiler_pic+y}
  9172. then :
  9173. printf %s "(cached) " >&6
  9174. else $as_nop
  9175. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9176. fi
  9177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9178. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9179. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9180. #
  9181. # Check to make sure the PIC flag actually works.
  9182. #
  9183. if test -n "$lt_prog_compiler_pic"; then
  9184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9185. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9186. if test ${lt_cv_prog_compiler_pic_works+y}
  9187. then :
  9188. printf %s "(cached) " >&6
  9189. else $as_nop
  9190. lt_cv_prog_compiler_pic_works=no
  9191. ac_outfile=conftest.$ac_objext
  9192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9193. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9194. # Insert the option either (1) after the last *FLAGS variable, or
  9195. # (2) before a word containing "conftest.", or (3) at the end.
  9196. # Note that $ac_compile itself does not contain backslashes and begins
  9197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9198. # The option is referenced via a variable to avoid confusing sed.
  9199. lt_compile=`echo "$ac_compile" | $SED \
  9200. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9201. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9202. -e 's:$: $lt_compiler_flag:'`
  9203. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9204. (eval "$lt_compile" 2>conftest.err)
  9205. ac_status=$?
  9206. cat conftest.err >&5
  9207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9208. if (exit $ac_status) && test -s "$ac_outfile"; then
  9209. # The compiler can only warn and ignore the option if not recognized
  9210. # So say no if there are warnings other than the usual output.
  9211. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9213. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9214. lt_cv_prog_compiler_pic_works=yes
  9215. fi
  9216. fi
  9217. $RM conftest*
  9218. fi
  9219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9220. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9221. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9222. case $lt_prog_compiler_pic in
  9223. "" | " "*) ;;
  9224. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9225. esac
  9226. else
  9227. lt_prog_compiler_pic=
  9228. lt_prog_compiler_can_build_shared=no
  9229. fi
  9230. fi
  9231. #
  9232. # Check to make sure the static flag actually works.
  9233. #
  9234. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9236. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9237. if test ${lt_cv_prog_compiler_static_works+y}
  9238. then :
  9239. printf %s "(cached) " >&6
  9240. else $as_nop
  9241. lt_cv_prog_compiler_static_works=no
  9242. save_LDFLAGS=$LDFLAGS
  9243. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9244. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9245. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9246. # The linker can only warn and ignore the option if not recognized
  9247. # So say no if there are warnings
  9248. if test -s conftest.err; then
  9249. # Append any errors to the config.log.
  9250. cat conftest.err 1>&5
  9251. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9253. if diff conftest.exp conftest.er2 >/dev/null; then
  9254. lt_cv_prog_compiler_static_works=yes
  9255. fi
  9256. else
  9257. lt_cv_prog_compiler_static_works=yes
  9258. fi
  9259. fi
  9260. $RM -r conftest*
  9261. LDFLAGS=$save_LDFLAGS
  9262. fi
  9263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9264. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9265. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9266. :
  9267. else
  9268. lt_prog_compiler_static=
  9269. fi
  9270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9271. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9272. if test ${lt_cv_prog_compiler_c_o+y}
  9273. then :
  9274. printf %s "(cached) " >&6
  9275. else $as_nop
  9276. lt_cv_prog_compiler_c_o=no
  9277. $RM -r conftest 2>/dev/null
  9278. mkdir conftest
  9279. cd conftest
  9280. mkdir out
  9281. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9282. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9283. # Insert the option either (1) after the last *FLAGS variable, or
  9284. # (2) before a word containing "conftest.", or (3) at the end.
  9285. # Note that $ac_compile itself does not contain backslashes and begins
  9286. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9287. lt_compile=`echo "$ac_compile" | $SED \
  9288. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9289. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9290. -e 's:$: $lt_compiler_flag:'`
  9291. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9292. (eval "$lt_compile" 2>out/conftest.err)
  9293. ac_status=$?
  9294. cat out/conftest.err >&5
  9295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9296. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9297. then
  9298. # The compiler can only warn and ignore the option if not recognized
  9299. # So say no if there are warnings
  9300. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9301. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9302. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9303. lt_cv_prog_compiler_c_o=yes
  9304. fi
  9305. fi
  9306. chmod u+w . 2>&5
  9307. $RM conftest*
  9308. # SGI C++ compiler will create directory out/ii_files/ for
  9309. # template instantiation
  9310. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9311. $RM out/* && rmdir out
  9312. cd ..
  9313. $RM -r conftest
  9314. $RM conftest*
  9315. fi
  9316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9317. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9319. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9320. if test ${lt_cv_prog_compiler_c_o+y}
  9321. then :
  9322. printf %s "(cached) " >&6
  9323. else $as_nop
  9324. lt_cv_prog_compiler_c_o=no
  9325. $RM -r conftest 2>/dev/null
  9326. mkdir conftest
  9327. cd conftest
  9328. mkdir out
  9329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9331. # Insert the option either (1) after the last *FLAGS variable, or
  9332. # (2) before a word containing "conftest.", or (3) at the end.
  9333. # Note that $ac_compile itself does not contain backslashes and begins
  9334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9335. lt_compile=`echo "$ac_compile" | $SED \
  9336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9338. -e 's:$: $lt_compiler_flag:'`
  9339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9340. (eval "$lt_compile" 2>out/conftest.err)
  9341. ac_status=$?
  9342. cat out/conftest.err >&5
  9343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9345. then
  9346. # The compiler can only warn and ignore the option if not recognized
  9347. # So say no if there are warnings
  9348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9351. lt_cv_prog_compiler_c_o=yes
  9352. fi
  9353. fi
  9354. chmod u+w . 2>&5
  9355. $RM conftest*
  9356. # SGI C++ compiler will create directory out/ii_files/ for
  9357. # template instantiation
  9358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9359. $RM out/* && rmdir out
  9360. cd ..
  9361. $RM -r conftest
  9362. $RM conftest*
  9363. fi
  9364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9365. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9366. hard_links=nottested
  9367. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9368. # do not overwrite the value of need_locks provided by the user
  9369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9370. printf %s "checking if we can lock with hard links... " >&6; }
  9371. hard_links=yes
  9372. $RM conftest*
  9373. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9374. touch conftest.a
  9375. ln conftest.a conftest.b 2>&5 || hard_links=no
  9376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9378. printf "%s\n" "$hard_links" >&6; }
  9379. if test no = "$hard_links"; then
  9380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9381. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9382. need_locks=warn
  9383. fi
  9384. else
  9385. need_locks=no
  9386. fi
  9387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9388. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9389. runpath_var=
  9390. allow_undefined_flag=
  9391. always_export_symbols=no
  9392. archive_cmds=
  9393. archive_expsym_cmds=
  9394. compiler_needs_object=no
  9395. enable_shared_with_static_runtimes=no
  9396. export_dynamic_flag_spec=
  9397. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9398. hardcode_automatic=no
  9399. hardcode_direct=no
  9400. hardcode_direct_absolute=no
  9401. hardcode_libdir_flag_spec=
  9402. hardcode_libdir_separator=
  9403. hardcode_minus_L=no
  9404. hardcode_shlibpath_var=unsupported
  9405. inherit_rpath=no
  9406. link_all_deplibs=unknown
  9407. module_cmds=
  9408. module_expsym_cmds=
  9409. old_archive_from_new_cmds=
  9410. old_archive_from_expsyms_cmds=
  9411. thread_safe_flag_spec=
  9412. whole_archive_flag_spec=
  9413. # include_expsyms should be a list of space-separated symbols to be *always*
  9414. # included in the symbol list
  9415. include_expsyms=
  9416. # exclude_expsyms can be an extended regexp of symbols to exclude
  9417. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9418. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9419. # as well as any symbol that contains 'd'.
  9420. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9421. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9422. # platforms (ab)use it in PIC code, but their linkers get confused if
  9423. # the symbol is explicitly referenced. Since portable code cannot
  9424. # rely on this symbol name, it's probably fine to never include it in
  9425. # preloaded symbol tables.
  9426. # Exclude shared library initialization/finalization symbols.
  9427. extract_expsyms_cmds=
  9428. case $host_os in
  9429. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9430. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9431. # When not using gcc, we currently assume that we are using
  9432. # Microsoft Visual C++ or Intel C++ Compiler.
  9433. if test yes != "$GCC"; then
  9434. with_gnu_ld=no
  9435. fi
  9436. ;;
  9437. interix*)
  9438. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9439. with_gnu_ld=yes
  9440. ;;
  9441. esac
  9442. ld_shlibs=yes
  9443. # On some targets, GNU ld is compatible enough with the native linker
  9444. # that we're better off using the native interface for both.
  9445. lt_use_gnu_ld_interface=no
  9446. if test yes = "$with_gnu_ld"; then
  9447. case $host_os in
  9448. aix*)
  9449. # The AIX port of GNU ld has always aspired to compatibility
  9450. # with the native linker. However, as the warning in the GNU ld
  9451. # block says, versions before 2.19.5* couldn't really create working
  9452. # shared libraries, regardless of the interface used.
  9453. case `$LD -v 2>&1` in
  9454. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9455. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9456. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9457. *)
  9458. lt_use_gnu_ld_interface=yes
  9459. ;;
  9460. esac
  9461. ;;
  9462. *)
  9463. lt_use_gnu_ld_interface=yes
  9464. ;;
  9465. esac
  9466. fi
  9467. if test yes = "$lt_use_gnu_ld_interface"; then
  9468. # If archive_cmds runs LD, not CC, wlarc should be empty
  9469. wlarc='$wl'
  9470. # Set some defaults for GNU ld with shared library support. These
  9471. # are reset later if shared libraries are not supported. Putting them
  9472. # here allows them to be overridden if necessary.
  9473. runpath_var=LD_RUN_PATH
  9474. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9475. export_dynamic_flag_spec='$wl--export-dynamic'
  9476. # ancient GNU ld didn't support --whole-archive et. al.
  9477. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9478. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9479. else
  9480. whole_archive_flag_spec=
  9481. fi
  9482. supports_anon_versioning=no
  9483. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9484. *GNU\ gold*) supports_anon_versioning=yes ;;
  9485. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9486. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9487. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9488. *\ 2.11.*) ;; # other 2.11 versions
  9489. *) supports_anon_versioning=yes ;;
  9490. esac
  9491. # See if GNU ld supports shared libraries.
  9492. case $host_os in
  9493. aix[3-9]*)
  9494. # On AIX/PPC, the GNU linker is very broken
  9495. if test ia64 != "$host_cpu"; then
  9496. ld_shlibs=no
  9497. cat <<_LT_EOF 1>&2
  9498. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9499. *** to be unable to reliably create shared libraries on AIX.
  9500. *** Therefore, libtool is disabling shared libraries support. If you
  9501. *** really care for shared libraries, you may want to install binutils
  9502. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9503. *** You will then need to restart the configuration process.
  9504. _LT_EOF
  9505. fi
  9506. ;;
  9507. amigaos*)
  9508. case $host_cpu in
  9509. powerpc)
  9510. # see comment about AmigaOS4 .so support
  9511. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9512. archive_expsym_cmds=''
  9513. ;;
  9514. m68k)
  9515. 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)'
  9516. hardcode_libdir_flag_spec='-L$libdir'
  9517. hardcode_minus_L=yes
  9518. ;;
  9519. esac
  9520. ;;
  9521. beos*)
  9522. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9523. allow_undefined_flag=unsupported
  9524. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9525. # support --undefined. This deserves some investigation. FIXME
  9526. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9527. else
  9528. ld_shlibs=no
  9529. fi
  9530. ;;
  9531. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9532. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9533. # as there is no search path for DLLs.
  9534. hardcode_libdir_flag_spec='-L$libdir'
  9535. export_dynamic_flag_spec='$wl--export-all-symbols'
  9536. allow_undefined_flag=unsupported
  9537. always_export_symbols=no
  9538. enable_shared_with_static_runtimes=yes
  9539. 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'
  9540. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9541. file_list_spec='@'
  9542. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9543. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9544. # If the export-symbols file already is a .def file, use it as
  9545. # is; otherwise, prepend EXPORTS...
  9546. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9547. cp $export_symbols $output_objdir/$soname.def;
  9548. else
  9549. echo EXPORTS > $output_objdir/$soname.def;
  9550. cat $export_symbols >> $output_objdir/$soname.def;
  9551. fi~
  9552. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9553. else
  9554. ld_shlibs=no
  9555. fi
  9556. ;;
  9557. haiku*)
  9558. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9559. link_all_deplibs=no
  9560. ;;
  9561. os2*)
  9562. hardcode_libdir_flag_spec='-L$libdir'
  9563. hardcode_minus_L=yes
  9564. allow_undefined_flag=unsupported
  9565. shrext_cmds=.dll
  9566. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9567. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9568. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9569. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9570. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9571. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9572. emximp -o $lib $output_objdir/$libname.def'
  9573. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9574. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9575. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9576. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9577. prefix_cmds="$SED"~
  9578. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9579. prefix_cmds="$prefix_cmds -e 1d";
  9580. fi~
  9581. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9582. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9583. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9584. emximp -o $lib $output_objdir/$libname.def'
  9585. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9586. enable_shared_with_static_runtimes=yes
  9587. file_list_spec='@'
  9588. ;;
  9589. interix[3-9]*)
  9590. hardcode_direct=no
  9591. hardcode_shlibpath_var=no
  9592. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9593. export_dynamic_flag_spec='$wl-E'
  9594. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9595. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9596. # default) and relocated if they conflict, which is a slow very memory
  9597. # consuming and fragmenting process. To avoid this, we pick a random,
  9598. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9599. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9600. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9601. 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'
  9602. ;;
  9603. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9604. tmp_diet=no
  9605. if test linux-dietlibc = "$host_os"; then
  9606. case $cc_basename in
  9607. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9608. esac
  9609. fi
  9610. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9611. && test no = "$tmp_diet"
  9612. then
  9613. tmp_addflag=' $pic_flag'
  9614. tmp_sharedflag='-shared'
  9615. case $cc_basename,$host_cpu in
  9616. pgcc*) # Portland Group C compiler
  9617. 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'
  9618. tmp_addflag=' $pic_flag'
  9619. ;;
  9620. pgf77* | pgf90* | pgf95* | pgfortran*)
  9621. # Portland Group f77 and f90 compilers
  9622. 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'
  9623. tmp_addflag=' $pic_flag -Mnomain' ;;
  9624. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9625. tmp_addflag=' -i_dynamic' ;;
  9626. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9627. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9628. ifc* | ifort*) # Intel Fortran compiler
  9629. tmp_addflag=' -nofor_main' ;;
  9630. lf95*) # Lahey Fortran 8.1
  9631. whole_archive_flag_spec=
  9632. tmp_sharedflag='--shared' ;;
  9633. nagfor*) # NAGFOR 5.3
  9634. tmp_sharedflag='-Wl,-shared' ;;
  9635. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9636. tmp_sharedflag='-qmkshrobj'
  9637. tmp_addflag= ;;
  9638. nvcc*) # Cuda Compiler Driver 2.2
  9639. 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'
  9640. compiler_needs_object=yes
  9641. ;;
  9642. esac
  9643. case `$CC -V 2>&1 | $SED 5q` in
  9644. *Sun\ C*) # Sun C 5.9
  9645. 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'
  9646. compiler_needs_object=yes
  9647. tmp_sharedflag='-G' ;;
  9648. *Sun\ F*) # Sun Fortran 8.3
  9649. tmp_sharedflag='-G' ;;
  9650. esac
  9651. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9652. if test yes = "$supports_anon_versioning"; then
  9653. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9654. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9655. echo "local: *; };" >> $output_objdir/$libname.ver~
  9656. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9657. fi
  9658. case $cc_basename in
  9659. tcc*)
  9660. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9661. export_dynamic_flag_spec='-rdynamic'
  9662. ;;
  9663. xlf* | bgf* | bgxlf* | mpixlf*)
  9664. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9665. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9666. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9667. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9668. if test yes = "$supports_anon_versioning"; then
  9669. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9670. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9671. echo "local: *; };" >> $output_objdir/$libname.ver~
  9672. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9673. fi
  9674. ;;
  9675. esac
  9676. else
  9677. ld_shlibs=no
  9678. fi
  9679. ;;
  9680. *-mlibc)
  9681. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9682. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9683. ;;
  9684. netbsd* | netbsdelf*-gnu)
  9685. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9686. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9687. wlarc=
  9688. else
  9689. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9690. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9691. fi
  9692. ;;
  9693. solaris*)
  9694. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9695. ld_shlibs=no
  9696. cat <<_LT_EOF 1>&2
  9697. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9698. *** create shared libraries on Solaris systems. Therefore, libtool
  9699. *** is disabling shared libraries support. We urge you to upgrade GNU
  9700. *** binutils to release 2.9.1 or newer. Another option is to modify
  9701. *** your PATH or compiler configuration so that the native linker is
  9702. *** used, and then restart.
  9703. _LT_EOF
  9704. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9705. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9706. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9707. else
  9708. ld_shlibs=no
  9709. fi
  9710. ;;
  9711. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9712. case `$LD -v 2>&1` in
  9713. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9714. ld_shlibs=no
  9715. cat <<_LT_EOF 1>&2
  9716. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9717. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9718. *** is disabling shared libraries support. We urge you to upgrade GNU
  9719. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9720. *** your PATH or compiler configuration so that the native linker is
  9721. *** used, and then restart.
  9722. _LT_EOF
  9723. ;;
  9724. *)
  9725. # For security reasons, it is highly recommended that you always
  9726. # use absolute paths for naming shared libraries, and exclude the
  9727. # DT_RUNPATH tag from executables and libraries. But doing so
  9728. # requires that you compile everything twice, which is a pain.
  9729. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9730. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9731. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9732. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9733. else
  9734. ld_shlibs=no
  9735. fi
  9736. ;;
  9737. esac
  9738. ;;
  9739. sunos4*)
  9740. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9741. wlarc=
  9742. hardcode_direct=yes
  9743. hardcode_shlibpath_var=no
  9744. ;;
  9745. *)
  9746. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9747. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9748. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9749. else
  9750. ld_shlibs=no
  9751. fi
  9752. ;;
  9753. esac
  9754. if test no = "$ld_shlibs"; then
  9755. runpath_var=
  9756. hardcode_libdir_flag_spec=
  9757. export_dynamic_flag_spec=
  9758. whole_archive_flag_spec=
  9759. fi
  9760. else
  9761. # PORTME fill in a description of your system's linker (not GNU ld)
  9762. case $host_os in
  9763. aix3*)
  9764. allow_undefined_flag=unsupported
  9765. always_export_symbols=yes
  9766. 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'
  9767. # Note: this linker hardcodes the directories in LIBPATH if there
  9768. # are no directories specified by -L.
  9769. hardcode_minus_L=yes
  9770. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9771. # Neither direct hardcoding nor static linking is supported with a
  9772. # broken collect2.
  9773. hardcode_direct=unsupported
  9774. fi
  9775. ;;
  9776. aix[4-9]*)
  9777. if test ia64 = "$host_cpu"; then
  9778. # On IA64, the linker does run time linking by default, so we don't
  9779. # have to do anything special.
  9780. aix_use_runtimelinking=no
  9781. exp_sym_flag='-Bexport'
  9782. no_entry_flag=
  9783. else
  9784. # If we're using GNU nm, then we don't want the "-C" option.
  9785. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9786. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9787. # weak defined symbols like other global defined symbols, whereas
  9788. # GNU nm marks them as "W".
  9789. # While the 'weak' keyword is ignored in the Export File, we need
  9790. # it in the Import File for the 'aix-soname' feature, so we have
  9791. # to replace the "-B" option with "-P" for AIX nm.
  9792. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9793. 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'
  9794. else
  9795. 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'
  9796. fi
  9797. aix_use_runtimelinking=no
  9798. # Test if we are trying to use run time linking or normal
  9799. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9800. # have runtime linking enabled, and use it for executables.
  9801. # For shared libraries, we enable/disable runtime linking
  9802. # depending on the kind of the shared library created -
  9803. # when "with_aix_soname,aix_use_runtimelinking" is:
  9804. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9805. # "aix,yes" lib.so shared, rtl:yes, for executables
  9806. # lib.a static archive
  9807. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9808. # lib.a(lib.so.V) shared, rtl:no, for executables
  9809. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9810. # lib.a(lib.so.V) shared, rtl:no
  9811. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9812. # lib.a static archive
  9813. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9814. for ld_flag in $LDFLAGS; do
  9815. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9816. aix_use_runtimelinking=yes
  9817. break
  9818. fi
  9819. done
  9820. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9821. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9822. # so we don't have lib.a shared libs to link our executables.
  9823. # We have to force runtime linking in this case.
  9824. aix_use_runtimelinking=yes
  9825. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9826. fi
  9827. ;;
  9828. esac
  9829. exp_sym_flag='-bexport'
  9830. no_entry_flag='-bnoentry'
  9831. fi
  9832. # When large executables or shared objects are built, AIX ld can
  9833. # have problems creating the table of contents. If linking a library
  9834. # or program results in "error TOC overflow" add -mminimal-toc to
  9835. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9836. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9837. archive_cmds=''
  9838. hardcode_direct=yes
  9839. hardcode_direct_absolute=yes
  9840. hardcode_libdir_separator=':'
  9841. link_all_deplibs=yes
  9842. file_list_spec='$wl-f,'
  9843. case $with_aix_soname,$aix_use_runtimelinking in
  9844. aix,*) ;; # traditional, no import file
  9845. svr4,* | *,yes) # use import file
  9846. # The Import File defines what to hardcode.
  9847. hardcode_direct=no
  9848. hardcode_direct_absolute=no
  9849. ;;
  9850. esac
  9851. if test yes = "$GCC"; then
  9852. case $host_os in aix4.[012]|aix4.[012].*)
  9853. # We only want to do this on AIX 4.2 and lower, the check
  9854. # below for broken collect2 doesn't work under 4.3+
  9855. collect2name=`$CC -print-prog-name=collect2`
  9856. if test -f "$collect2name" &&
  9857. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9858. then
  9859. # We have reworked collect2
  9860. :
  9861. else
  9862. # We have old collect2
  9863. hardcode_direct=unsupported
  9864. # It fails to find uninstalled libraries when the uninstalled
  9865. # path is not listed in the libpath. Setting hardcode_minus_L
  9866. # to unsupported forces relinking
  9867. hardcode_minus_L=yes
  9868. hardcode_libdir_flag_spec='-L$libdir'
  9869. hardcode_libdir_separator=
  9870. fi
  9871. ;;
  9872. esac
  9873. shared_flag='-shared'
  9874. if test yes = "$aix_use_runtimelinking"; then
  9875. shared_flag="$shared_flag "'$wl-G'
  9876. fi
  9877. # Need to ensure runtime linking is disabled for the traditional
  9878. # shared library, or the linker may eventually find shared libraries
  9879. # /with/ Import File - we do not want to mix them.
  9880. shared_flag_aix='-shared'
  9881. shared_flag_svr4='-shared $wl-G'
  9882. else
  9883. # not using gcc
  9884. if test ia64 = "$host_cpu"; then
  9885. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9886. # chokes on -Wl,-G. The following line is correct:
  9887. shared_flag='-G'
  9888. else
  9889. if test yes = "$aix_use_runtimelinking"; then
  9890. shared_flag='$wl-G'
  9891. else
  9892. shared_flag='$wl-bM:SRE'
  9893. fi
  9894. shared_flag_aix='$wl-bM:SRE'
  9895. shared_flag_svr4='$wl-G'
  9896. fi
  9897. fi
  9898. export_dynamic_flag_spec='$wl-bexpall'
  9899. # It seems that -bexpall does not export symbols beginning with
  9900. # underscore (_), so it is better to generate a list of symbols to export.
  9901. always_export_symbols=yes
  9902. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9903. # Warning - without using the other runtime loading flags (-brtl),
  9904. # -berok will link without error, but may produce a broken library.
  9905. allow_undefined_flag='-berok'
  9906. # Determine the default libpath from the value encoded in an
  9907. # empty executable.
  9908. if test set = "${lt_cv_aix_libpath+set}"; then
  9909. aix_libpath=$lt_cv_aix_libpath
  9910. else
  9911. if test ${lt_cv_aix_libpath_+y}
  9912. then :
  9913. printf %s "(cached) " >&6
  9914. else $as_nop
  9915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9916. /* end confdefs.h. */
  9917. int
  9918. main (void)
  9919. {
  9920. ;
  9921. return 0;
  9922. }
  9923. _ACEOF
  9924. if ac_fn_c_try_link "$LINENO"
  9925. then :
  9926. lt_aix_libpath_sed='
  9927. /Import File Strings/,/^$/ {
  9928. /^0/ {
  9929. s/^0 *\([^ ]*\) *$/\1/
  9930. p
  9931. }
  9932. }'
  9933. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9934. # Check for a 64-bit object if we didn't find anything.
  9935. if test -z "$lt_cv_aix_libpath_"; then
  9936. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9937. fi
  9938. fi
  9939. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9940. conftest$ac_exeext conftest.$ac_ext
  9941. if test -z "$lt_cv_aix_libpath_"; then
  9942. lt_cv_aix_libpath_=/usr/lib:/lib
  9943. fi
  9944. fi
  9945. aix_libpath=$lt_cv_aix_libpath_
  9946. fi
  9947. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9948. 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
  9949. else
  9950. if test ia64 = "$host_cpu"; then
  9951. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9952. allow_undefined_flag="-z nodefs"
  9953. 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"
  9954. else
  9955. # Determine the default libpath from the value encoded in an
  9956. # empty executable.
  9957. if test set = "${lt_cv_aix_libpath+set}"; then
  9958. aix_libpath=$lt_cv_aix_libpath
  9959. else
  9960. if test ${lt_cv_aix_libpath_+y}
  9961. then :
  9962. printf %s "(cached) " >&6
  9963. else $as_nop
  9964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9965. /* end confdefs.h. */
  9966. int
  9967. main (void)
  9968. {
  9969. ;
  9970. return 0;
  9971. }
  9972. _ACEOF
  9973. if ac_fn_c_try_link "$LINENO"
  9974. then :
  9975. lt_aix_libpath_sed='
  9976. /Import File Strings/,/^$/ {
  9977. /^0/ {
  9978. s/^0 *\([^ ]*\) *$/\1/
  9979. p
  9980. }
  9981. }'
  9982. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9983. # Check for a 64-bit object if we didn't find anything.
  9984. if test -z "$lt_cv_aix_libpath_"; then
  9985. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9986. fi
  9987. fi
  9988. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9989. conftest$ac_exeext conftest.$ac_ext
  9990. if test -z "$lt_cv_aix_libpath_"; then
  9991. lt_cv_aix_libpath_=/usr/lib:/lib
  9992. fi
  9993. fi
  9994. aix_libpath=$lt_cv_aix_libpath_
  9995. fi
  9996. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9997. # Warning - without using the other run time loading flags,
  9998. # -berok will link without error, but may produce a broken library.
  9999. no_undefined_flag=' $wl-bernotok'
  10000. allow_undefined_flag=' $wl-berok'
  10001. if test yes = "$with_gnu_ld"; then
  10002. # We only use this code for GNU lds that support --whole-archive.
  10003. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10004. else
  10005. # Exported symbols can be pulled into shared objects from archives
  10006. whole_archive_flag_spec='$convenience'
  10007. fi
  10008. archive_cmds_need_lc=yes
  10009. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10010. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10011. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10012. if test svr4 != "$with_aix_soname"; then
  10013. # This is similar to how AIX traditionally builds its shared libraries.
  10014. 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'
  10015. fi
  10016. if test aix != "$with_aix_soname"; then
  10017. 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'
  10018. else
  10019. # used by -dlpreopen to get the symbols
  10020. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10021. fi
  10022. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10023. fi
  10024. fi
  10025. ;;
  10026. amigaos*)
  10027. case $host_cpu in
  10028. powerpc)
  10029. # see comment about AmigaOS4 .so support
  10030. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10031. archive_expsym_cmds=''
  10032. ;;
  10033. m68k)
  10034. 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)'
  10035. hardcode_libdir_flag_spec='-L$libdir'
  10036. hardcode_minus_L=yes
  10037. ;;
  10038. esac
  10039. ;;
  10040. bsdi[45]*)
  10041. export_dynamic_flag_spec=-rdynamic
  10042. ;;
  10043. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10044. # When not using gcc, we currently assume that we are using
  10045. # Microsoft Visual C++ or Intel C++ Compiler.
  10046. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10047. # no search path for DLLs.
  10048. case $cc_basename in
  10049. cl* | icl*)
  10050. # Native MSVC or ICC
  10051. hardcode_libdir_flag_spec=' '
  10052. allow_undefined_flag=unsupported
  10053. always_export_symbols=yes
  10054. file_list_spec='@'
  10055. # Tell ltmain to make .lib files, not .a files.
  10056. libext=lib
  10057. # Tell ltmain to make .dll files, not .so files.
  10058. shrext_cmds=.dll
  10059. # FIXME: Setting linknames here is a bad hack.
  10060. archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10061. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10062. cp "$export_symbols" "$output_objdir/$soname.def";
  10063. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10064. else
  10065. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10066. fi~
  10067. $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10068. linknames='
  10069. # The linker will not automatically build a static lib if we build a DLL.
  10070. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10071. enable_shared_with_static_runtimes=yes
  10072. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10073. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10074. # Don't use ranlib
  10075. old_postinstall_cmds='chmod 644 $oldlib'
  10076. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10077. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10078. case $lt_outputfile in
  10079. *.exe|*.EXE) ;;
  10080. *)
  10081. lt_outputfile=$lt_outputfile.exe
  10082. lt_tool_outputfile=$lt_tool_outputfile.exe
  10083. ;;
  10084. esac~
  10085. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10086. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10087. $RM "$lt_outputfile.manifest";
  10088. fi'
  10089. ;;
  10090. *)
  10091. # Assume MSVC and ICC wrapper
  10092. hardcode_libdir_flag_spec=' '
  10093. allow_undefined_flag=unsupported
  10094. # Tell ltmain to make .lib files, not .a files.
  10095. libext=lib
  10096. # Tell ltmain to make .dll files, not .so files.
  10097. shrext_cmds=.dll
  10098. # FIXME: Setting linknames here is a bad hack.
  10099. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10100. # The linker will automatically build a .lib file if we build a DLL.
  10101. old_archive_from_new_cmds='true'
  10102. # FIXME: Should let the user specify the lib program.
  10103. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10104. enable_shared_with_static_runtimes=yes
  10105. ;;
  10106. esac
  10107. ;;
  10108. darwin* | rhapsody*)
  10109. archive_cmds_need_lc=no
  10110. hardcode_direct=no
  10111. hardcode_automatic=yes
  10112. hardcode_shlibpath_var=unsupported
  10113. if test yes = "$lt_cv_ld_force_load"; then
  10114. 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\"`'
  10115. else
  10116. whole_archive_flag_spec=''
  10117. fi
  10118. link_all_deplibs=yes
  10119. allow_undefined_flag=$_lt_dar_allow_undefined
  10120. case $cc_basename in
  10121. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10122. *) _lt_dar_can_shared=$GCC ;;
  10123. esac
  10124. if test yes = "$_lt_dar_can_shared"; then
  10125. output_verbose_link_cmd=func_echo_all
  10126. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10127. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10128. 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"
  10129. 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"
  10130. else
  10131. ld_shlibs=no
  10132. fi
  10133. ;;
  10134. dgux*)
  10135. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10136. hardcode_libdir_flag_spec='-L$libdir'
  10137. hardcode_shlibpath_var=no
  10138. ;;
  10139. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10140. # support. Future versions do this automatically, but an explicit c++rt0.o
  10141. # does not break anything, and helps significantly (at the cost of a little
  10142. # extra space).
  10143. freebsd2.2*)
  10144. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10145. hardcode_libdir_flag_spec='-R$libdir'
  10146. hardcode_direct=yes
  10147. hardcode_shlibpath_var=no
  10148. ;;
  10149. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10150. freebsd2.*)
  10151. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10152. hardcode_direct=yes
  10153. hardcode_minus_L=yes
  10154. hardcode_shlibpath_var=no
  10155. ;;
  10156. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10157. freebsd* | dragonfly* | midnightbsd*)
  10158. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10159. hardcode_libdir_flag_spec='-R$libdir'
  10160. hardcode_direct=yes
  10161. hardcode_shlibpath_var=no
  10162. ;;
  10163. hpux9*)
  10164. if test yes = "$GCC"; then
  10165. 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'
  10166. else
  10167. 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'
  10168. fi
  10169. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10170. hardcode_libdir_separator=:
  10171. hardcode_direct=yes
  10172. # hardcode_minus_L: Not really in the search PATH,
  10173. # but as the default location of the library.
  10174. hardcode_minus_L=yes
  10175. export_dynamic_flag_spec='$wl-E'
  10176. ;;
  10177. hpux10*)
  10178. if test yes,no = "$GCC,$with_gnu_ld"; then
  10179. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10180. else
  10181. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10182. fi
  10183. if test no = "$with_gnu_ld"; then
  10184. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10185. hardcode_libdir_separator=:
  10186. hardcode_direct=yes
  10187. hardcode_direct_absolute=yes
  10188. export_dynamic_flag_spec='$wl-E'
  10189. # hardcode_minus_L: Not really in the search PATH,
  10190. # but as the default location of the library.
  10191. hardcode_minus_L=yes
  10192. fi
  10193. ;;
  10194. hpux11*)
  10195. if test yes,no = "$GCC,$with_gnu_ld"; then
  10196. case $host_cpu in
  10197. hppa*64*)
  10198. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10199. ;;
  10200. ia64*)
  10201. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10202. ;;
  10203. *)
  10204. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10205. ;;
  10206. esac
  10207. else
  10208. case $host_cpu in
  10209. hppa*64*)
  10210. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10211. ;;
  10212. ia64*)
  10213. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10214. ;;
  10215. *)
  10216. # Older versions of the 11.00 compiler do not understand -b yet
  10217. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10219. printf %s "checking if $CC understands -b... " >&6; }
  10220. if test ${lt_cv_prog_compiler__b+y}
  10221. then :
  10222. printf %s "(cached) " >&6
  10223. else $as_nop
  10224. lt_cv_prog_compiler__b=no
  10225. save_LDFLAGS=$LDFLAGS
  10226. LDFLAGS="$LDFLAGS -b"
  10227. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10228. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10229. # The linker can only warn and ignore the option if not recognized
  10230. # So say no if there are warnings
  10231. if test -s conftest.err; then
  10232. # Append any errors to the config.log.
  10233. cat conftest.err 1>&5
  10234. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10235. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10236. if diff conftest.exp conftest.er2 >/dev/null; then
  10237. lt_cv_prog_compiler__b=yes
  10238. fi
  10239. else
  10240. lt_cv_prog_compiler__b=yes
  10241. fi
  10242. fi
  10243. $RM -r conftest*
  10244. LDFLAGS=$save_LDFLAGS
  10245. fi
  10246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10247. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10248. if test yes = "$lt_cv_prog_compiler__b"; then
  10249. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10250. else
  10251. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10252. fi
  10253. ;;
  10254. esac
  10255. fi
  10256. if test no = "$with_gnu_ld"; then
  10257. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10258. hardcode_libdir_separator=:
  10259. case $host_cpu in
  10260. hppa*64*|ia64*)
  10261. hardcode_direct=no
  10262. hardcode_shlibpath_var=no
  10263. ;;
  10264. *)
  10265. hardcode_direct=yes
  10266. hardcode_direct_absolute=yes
  10267. export_dynamic_flag_spec='$wl-E'
  10268. # hardcode_minus_L: Not really in the search PATH,
  10269. # but as the default location of the library.
  10270. hardcode_minus_L=yes
  10271. ;;
  10272. esac
  10273. fi
  10274. ;;
  10275. irix5* | irix6* | nonstopux*)
  10276. if test yes = "$GCC"; then
  10277. 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'
  10278. # Try to use the -exported_symbol ld option, if it does not
  10279. # work, assume that -exports_file does not work either and
  10280. # implicitly export all symbols.
  10281. # This should be the same for all languages, so no per-tag cache variable.
  10282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10283. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10284. if test ${lt_cv_irix_exported_symbol+y}
  10285. then :
  10286. printf %s "(cached) " >&6
  10287. else $as_nop
  10288. save_LDFLAGS=$LDFLAGS
  10289. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10291. /* end confdefs.h. */
  10292. int foo (void) { return 0; }
  10293. _ACEOF
  10294. if ac_fn_c_try_link "$LINENO"
  10295. then :
  10296. lt_cv_irix_exported_symbol=yes
  10297. else $as_nop
  10298. lt_cv_irix_exported_symbol=no
  10299. fi
  10300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10301. conftest$ac_exeext conftest.$ac_ext
  10302. LDFLAGS=$save_LDFLAGS
  10303. fi
  10304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10305. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10306. if test yes = "$lt_cv_irix_exported_symbol"; then
  10307. 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'
  10308. fi
  10309. else
  10310. 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'
  10311. 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'
  10312. fi
  10313. archive_cmds_need_lc='no'
  10314. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10315. hardcode_libdir_separator=:
  10316. inherit_rpath=yes
  10317. link_all_deplibs=yes
  10318. ;;
  10319. linux*)
  10320. case $cc_basename in
  10321. tcc*)
  10322. # Fabrice Bellard et al's Tiny C Compiler
  10323. ld_shlibs=yes
  10324. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10325. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10326. ;;
  10327. esac
  10328. ;;
  10329. *-mlibc)
  10330. ;;
  10331. netbsd* | netbsdelf*-gnu)
  10332. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10333. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10334. else
  10335. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10336. fi
  10337. hardcode_libdir_flag_spec='-R$libdir'
  10338. hardcode_direct=yes
  10339. hardcode_shlibpath_var=no
  10340. ;;
  10341. newsos6)
  10342. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10343. hardcode_direct=yes
  10344. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10345. hardcode_libdir_separator=:
  10346. hardcode_shlibpath_var=no
  10347. ;;
  10348. *nto* | *qnx*)
  10349. ;;
  10350. openbsd*)
  10351. if test -f /usr/libexec/ld.so; then
  10352. hardcode_direct=yes
  10353. hardcode_shlibpath_var=no
  10354. hardcode_direct_absolute=yes
  10355. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10356. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10357. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10358. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10359. export_dynamic_flag_spec='$wl-E'
  10360. else
  10361. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10362. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10363. fi
  10364. else
  10365. ld_shlibs=no
  10366. fi
  10367. ;;
  10368. os2*)
  10369. hardcode_libdir_flag_spec='-L$libdir'
  10370. hardcode_minus_L=yes
  10371. allow_undefined_flag=unsupported
  10372. shrext_cmds=.dll
  10373. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10374. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10375. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10376. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10377. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10378. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10379. emximp -o $lib $output_objdir/$libname.def'
  10380. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10381. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10382. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10383. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10384. prefix_cmds="$SED"~
  10385. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10386. prefix_cmds="$prefix_cmds -e 1d";
  10387. fi~
  10388. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10389. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10390. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10391. emximp -o $lib $output_objdir/$libname.def'
  10392. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10393. enable_shared_with_static_runtimes=yes
  10394. file_list_spec='@'
  10395. ;;
  10396. osf3*)
  10397. if test yes = "$GCC"; then
  10398. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10399. 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'
  10400. else
  10401. allow_undefined_flag=' -expect_unresolved \*'
  10402. 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'
  10403. fi
  10404. archive_cmds_need_lc='no'
  10405. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10406. hardcode_libdir_separator=:
  10407. ;;
  10408. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10409. if test yes = "$GCC"; then
  10410. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10411. 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'
  10412. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10413. else
  10414. allow_undefined_flag=' -expect_unresolved \*'
  10415. 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'
  10416. 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~
  10417. $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'
  10418. # Both c and cxx compiler support -rpath directly
  10419. hardcode_libdir_flag_spec='-rpath $libdir'
  10420. fi
  10421. archive_cmds_need_lc='no'
  10422. hardcode_libdir_separator=:
  10423. ;;
  10424. serenity*)
  10425. ;;
  10426. solaris*)
  10427. no_undefined_flag=' -z defs'
  10428. if test yes = "$GCC"; then
  10429. wlarc='$wl'
  10430. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10431. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10432. $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'
  10433. else
  10434. case `$CC -V 2>&1` in
  10435. *"Compilers 5.0"*)
  10436. wlarc=''
  10437. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10438. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10439. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10440. ;;
  10441. *)
  10442. wlarc='$wl'
  10443. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10444. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10445. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10446. ;;
  10447. esac
  10448. fi
  10449. hardcode_libdir_flag_spec='-R$libdir'
  10450. hardcode_shlibpath_var=no
  10451. case $host_os in
  10452. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10453. *)
  10454. # The compiler driver will combine and reorder linker options,
  10455. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10456. # but is careful enough not to reorder.
  10457. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10458. if test yes = "$GCC"; then
  10459. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10460. else
  10461. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10462. fi
  10463. ;;
  10464. esac
  10465. link_all_deplibs=yes
  10466. ;;
  10467. sunos4*)
  10468. if test sequent = "$host_vendor"; then
  10469. # Use $CC to link under sequent, because it throws in some extra .o
  10470. # files that make .init and .fini sections work.
  10471. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10472. else
  10473. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10474. fi
  10475. hardcode_libdir_flag_spec='-L$libdir'
  10476. hardcode_direct=yes
  10477. hardcode_minus_L=yes
  10478. hardcode_shlibpath_var=no
  10479. ;;
  10480. sysv4)
  10481. case $host_vendor in
  10482. sni)
  10483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10484. hardcode_direct=yes # is this really true???
  10485. ;;
  10486. siemens)
  10487. ## LD is ld it makes a PLAMLIB
  10488. ## CC just makes a GrossModule.
  10489. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10490. reload_cmds='$CC -r -o $output$reload_objs'
  10491. hardcode_direct=no
  10492. ;;
  10493. motorola)
  10494. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10495. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10496. ;;
  10497. esac
  10498. runpath_var='LD_RUN_PATH'
  10499. hardcode_shlibpath_var=no
  10500. ;;
  10501. sysv4.3*)
  10502. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10503. hardcode_shlibpath_var=no
  10504. export_dynamic_flag_spec='-Bexport'
  10505. ;;
  10506. sysv4*MP*)
  10507. if test -d /usr/nec; then
  10508. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10509. hardcode_shlibpath_var=no
  10510. runpath_var=LD_RUN_PATH
  10511. hardcode_runpath_var=yes
  10512. ld_shlibs=yes
  10513. fi
  10514. ;;
  10515. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10516. no_undefined_flag='$wl-z,text'
  10517. archive_cmds_need_lc=no
  10518. hardcode_shlibpath_var=no
  10519. runpath_var='LD_RUN_PATH'
  10520. if test yes = "$GCC"; then
  10521. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10522. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10523. else
  10524. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10525. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10526. fi
  10527. ;;
  10528. sysv5* | sco3.2v5* | sco5v6*)
  10529. # Note: We CANNOT use -z defs as we might desire, because we do not
  10530. # link with -lc, and that would cause any symbols used from libc to
  10531. # always be unresolved, which means just about no library would
  10532. # ever link correctly. If we're not using GNU ld we use -z text
  10533. # though, which does catch some bad symbols but isn't as heavy-handed
  10534. # as -z defs.
  10535. no_undefined_flag='$wl-z,text'
  10536. allow_undefined_flag='$wl-z,nodefs'
  10537. archive_cmds_need_lc=no
  10538. hardcode_shlibpath_var=no
  10539. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10540. hardcode_libdir_separator=':'
  10541. link_all_deplibs=yes
  10542. export_dynamic_flag_spec='$wl-Bexport'
  10543. runpath_var='LD_RUN_PATH'
  10544. if test yes = "$GCC"; then
  10545. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10546. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10547. else
  10548. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10549. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10550. fi
  10551. ;;
  10552. uts4*)
  10553. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10554. hardcode_libdir_flag_spec='-L$libdir'
  10555. hardcode_shlibpath_var=no
  10556. ;;
  10557. *)
  10558. ld_shlibs=no
  10559. ;;
  10560. esac
  10561. if test sni = "$host_vendor"; then
  10562. case $host in
  10563. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10564. export_dynamic_flag_spec='$wl-Blargedynsym'
  10565. ;;
  10566. esac
  10567. fi
  10568. fi
  10569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10570. printf "%s\n" "$ld_shlibs" >&6; }
  10571. test no = "$ld_shlibs" && can_build_shared=no
  10572. with_gnu_ld=$with_gnu_ld
  10573. #
  10574. # Do we need to explicitly link libc?
  10575. #
  10576. case "x$archive_cmds_need_lc" in
  10577. x|xyes)
  10578. # Assume -lc should be added
  10579. archive_cmds_need_lc=yes
  10580. if test yes,yes = "$GCC,$enable_shared"; then
  10581. case $archive_cmds in
  10582. *'~'*)
  10583. # FIXME: we may have to deal with multi-command sequences.
  10584. ;;
  10585. '$CC '*)
  10586. # Test whether the compiler implicitly links with -lc since on some
  10587. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10588. # to ld, don't add -lc before -lgcc.
  10589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10590. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10591. if test ${lt_cv_archive_cmds_need_lc+y}
  10592. then :
  10593. printf %s "(cached) " >&6
  10594. else $as_nop
  10595. $RM conftest*
  10596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10597. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10598. (eval $ac_compile) 2>&5
  10599. ac_status=$?
  10600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10601. test $ac_status = 0; } 2>conftest.err; then
  10602. soname=conftest
  10603. lib=conftest
  10604. libobjs=conftest.$ac_objext
  10605. deplibs=
  10606. wl=$lt_prog_compiler_wl
  10607. pic_flag=$lt_prog_compiler_pic
  10608. compiler_flags=-v
  10609. linker_flags=-v
  10610. verstring=
  10611. output_objdir=.
  10612. libname=conftest
  10613. lt_save_allow_undefined_flag=$allow_undefined_flag
  10614. allow_undefined_flag=
  10615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10616. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10617. ac_status=$?
  10618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10619. test $ac_status = 0; }
  10620. then
  10621. lt_cv_archive_cmds_need_lc=no
  10622. else
  10623. lt_cv_archive_cmds_need_lc=yes
  10624. fi
  10625. allow_undefined_flag=$lt_save_allow_undefined_flag
  10626. else
  10627. cat conftest.err 1>&5
  10628. fi
  10629. $RM conftest*
  10630. fi
  10631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10632. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10633. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10634. ;;
  10635. esac
  10636. fi
  10637. ;;
  10638. esac
  10639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10640. printf %s "checking dynamic linker characteristics... " >&6; }
  10641. if test yes = "$GCC"; then
  10642. case $host_os in
  10643. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10644. *) lt_awk_arg='/^libraries:/' ;;
  10645. esac
  10646. case $host_os in
  10647. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10648. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10649. esac
  10650. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10651. case $lt_search_path_spec in
  10652. *\;*)
  10653. # if the path contains ";" then we assume it to be the separator
  10654. # otherwise default to the standard path separator (i.e. ":") - it is
  10655. # assumed that no part of a normal pathname contains ";" but that should
  10656. # okay in the real world where ";" in dirpaths is itself problematic.
  10657. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10658. ;;
  10659. *)
  10660. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10661. ;;
  10662. esac
  10663. # Ok, now we have the path, separated by spaces, we can step through it
  10664. # and add multilib dir if necessary...
  10665. lt_tmp_lt_search_path_spec=
  10666. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10667. # ...but if some path component already ends with the multilib dir we assume
  10668. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10669. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10670. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10671. lt_multi_os_dir=
  10672. ;;
  10673. esac
  10674. for lt_sys_path in $lt_search_path_spec; do
  10675. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10676. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10677. elif test -n "$lt_multi_os_dir"; then
  10678. test -d "$lt_sys_path" && \
  10679. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10680. fi
  10681. done
  10682. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10683. BEGIN {RS = " "; FS = "/|\n";} {
  10684. lt_foo = "";
  10685. lt_count = 0;
  10686. for (lt_i = NF; lt_i > 0; lt_i--) {
  10687. if ($lt_i != "" && $lt_i != ".") {
  10688. if ($lt_i == "..") {
  10689. lt_count++;
  10690. } else {
  10691. if (lt_count == 0) {
  10692. lt_foo = "/" $lt_i lt_foo;
  10693. } else {
  10694. lt_count--;
  10695. }
  10696. }
  10697. }
  10698. }
  10699. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10700. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10701. }'`
  10702. # AWK program above erroneously prepends '/' to C:/dos/paths
  10703. # for these hosts.
  10704. case $host_os in
  10705. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10706. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10707. esac
  10708. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10709. else
  10710. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10711. fi
  10712. library_names_spec=
  10713. libname_spec='lib$name'
  10714. soname_spec=
  10715. shrext_cmds=.so
  10716. postinstall_cmds=
  10717. postuninstall_cmds=
  10718. finish_cmds=
  10719. finish_eval=
  10720. shlibpath_var=
  10721. shlibpath_overrides_runpath=unknown
  10722. version_type=none
  10723. dynamic_linker="$host_os ld.so"
  10724. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10725. need_lib_prefix=unknown
  10726. hardcode_into_libs=no
  10727. # when you set need_version to no, make sure it does not cause -set_version
  10728. # flags to be left without arguments
  10729. need_version=unknown
  10730. case $host_os in
  10731. aix3*)
  10732. version_type=linux # correct to gnu/linux during the next big refactor
  10733. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10734. shlibpath_var=LIBPATH
  10735. # AIX 3 has no versioning support, so we append a major version to the name.
  10736. soname_spec='$libname$release$shared_ext$major'
  10737. ;;
  10738. aix[4-9]*)
  10739. version_type=linux # correct to gnu/linux during the next big refactor
  10740. need_lib_prefix=no
  10741. need_version=no
  10742. hardcode_into_libs=yes
  10743. if test ia64 = "$host_cpu"; then
  10744. # AIX 5 supports IA64
  10745. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10746. shlibpath_var=LD_LIBRARY_PATH
  10747. else
  10748. # With GCC up to 2.95.x, collect2 would create an import file
  10749. # for dependence libraries. The import file would start with
  10750. # the line '#! .'. This would cause the generated library to
  10751. # depend on '.', always an invalid library. This was fixed in
  10752. # development snapshots of GCC prior to 3.0.
  10753. case $host_os in
  10754. aix4 | aix4.[01] | aix4.[01].*)
  10755. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10756. echo ' yes '
  10757. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10758. :
  10759. else
  10760. can_build_shared=no
  10761. fi
  10762. ;;
  10763. esac
  10764. # Using Import Files as archive members, it is possible to support
  10765. # filename-based versioning of shared library archives on AIX. While
  10766. # this would work for both with and without runtime linking, it will
  10767. # prevent static linking of such archives. So we do filename-based
  10768. # shared library versioning with .so extension only, which is used
  10769. # when both runtime linking and shared linking is enabled.
  10770. # Unfortunately, runtime linking may impact performance, so we do
  10771. # not want this to be the default eventually. Also, we use the
  10772. # versioned .so libs for executables only if there is the -brtl
  10773. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  10774. # To allow for filename-based versioning support, we need to create
  10775. # libNAME.so.V as an archive file, containing:
  10776. # *) an Import File, referring to the versioned filename of the
  10777. # archive as well as the shared archive member, telling the
  10778. # bitwidth (32 or 64) of that shared object, and providing the
  10779. # list of exported symbols of that shared object, eventually
  10780. # decorated with the 'weak' keyword
  10781. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10782. # it being seen by the linker.
  10783. # At run time we better use the real file rather than another symlink,
  10784. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10785. case $with_aix_soname,$aix_use_runtimelinking in
  10786. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10787. # soname into executable. Probably we can add versioning support to
  10788. # collect2, so additional links can be useful in future.
  10789. aix,yes) # traditional libtool
  10790. dynamic_linker='AIX unversionable lib.so'
  10791. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10792. # instead of lib<name>.a to let people know that these are not
  10793. # typical AIX shared libraries.
  10794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10795. ;;
  10796. aix,no) # traditional AIX only
  10797. dynamic_linker='AIX lib.a(lib.so.V)'
  10798. # We preserve .a as extension for shared libraries through AIX4.2
  10799. # and later when we are not doing run time linking.
  10800. library_names_spec='$libname$release.a $libname.a'
  10801. soname_spec='$libname$release$shared_ext$major'
  10802. ;;
  10803. svr4,*) # full svr4 only
  10804. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10805. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10806. # We do not specify a path in Import Files, so LIBPATH fires.
  10807. shlibpath_overrides_runpath=yes
  10808. ;;
  10809. *,yes) # both, prefer svr4
  10810. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10811. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10812. # unpreferred sharedlib libNAME.a needs extra handling
  10813. 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"'
  10814. 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"'
  10815. # We do not specify a path in Import Files, so LIBPATH fires.
  10816. shlibpath_overrides_runpath=yes
  10817. ;;
  10818. *,no) # both, prefer aix
  10819. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10820. library_names_spec='$libname$release.a $libname.a'
  10821. soname_spec='$libname$release$shared_ext$major'
  10822. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10823. 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)'
  10824. 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"'
  10825. ;;
  10826. esac
  10827. shlibpath_var=LIBPATH
  10828. fi
  10829. ;;
  10830. amigaos*)
  10831. case $host_cpu in
  10832. powerpc)
  10833. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10834. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10836. ;;
  10837. m68k)
  10838. library_names_spec='$libname.ixlibrary $libname.a'
  10839. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10840. 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'
  10841. ;;
  10842. esac
  10843. ;;
  10844. beos*)
  10845. library_names_spec='$libname$shared_ext'
  10846. dynamic_linker="$host_os ld.so"
  10847. shlibpath_var=LIBRARY_PATH
  10848. ;;
  10849. bsdi[45]*)
  10850. version_type=linux # correct to gnu/linux during the next big refactor
  10851. need_version=no
  10852. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10853. soname_spec='$libname$release$shared_ext$major'
  10854. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10855. shlibpath_var=LD_LIBRARY_PATH
  10856. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10857. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10858. # the default ld.so.conf also contains /usr/contrib/lib and
  10859. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10860. # libtool to hard-code these into programs
  10861. ;;
  10862. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10863. version_type=windows
  10864. shrext_cmds=.dll
  10865. need_version=no
  10866. need_lib_prefix=no
  10867. case $GCC,$cc_basename in
  10868. yes,*)
  10869. # gcc
  10870. library_names_spec='$libname.dll.a'
  10871. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10872. # If user builds GCC with multilib enabled,
  10873. # it should just install on $(libdir)
  10874. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  10875. if test xyes = x"$multilib"; then
  10876. postinstall_cmds='base_file=`basename \$file`~
  10877. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10878. dldir=$destdir/`dirname \$dlpath`~
  10879. $install_prog $dir/$dlname $destdir/$dlname~
  10880. chmod a+x $destdir/$dlname~
  10881. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10882. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  10883. fi'
  10884. else
  10885. postinstall_cmds='base_file=`basename \$file`~
  10886. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10887. dldir=$destdir/`dirname \$dlpath`~
  10888. test -d \$dldir || mkdir -p \$dldir~
  10889. $install_prog $dir/$dlname \$dldir/$dlname~
  10890. chmod a+x \$dldir/$dlname~
  10891. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10892. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10893. fi'
  10894. fi
  10895. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10896. dlpath=$dir/\$dldll~
  10897. $RM \$dlpath'
  10898. shlibpath_overrides_runpath=yes
  10899. case $host_os in
  10900. cygwin*)
  10901. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10902. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10903. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10904. ;;
  10905. mingw* | windows* | cegcc*)
  10906. # MinGW DLLs use traditional 'lib' prefix
  10907. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10908. ;;
  10909. pw32*)
  10910. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10911. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10912. ;;
  10913. esac
  10914. dynamic_linker='Win32 ld.exe'
  10915. ;;
  10916. *,cl* | *,icl*)
  10917. # Native MSVC or ICC
  10918. libname_spec='$name'
  10919. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10920. library_names_spec='$libname.dll.lib'
  10921. case $build_os in
  10922. mingw* | windows*)
  10923. sys_lib_search_path_spec=
  10924. lt_save_ifs=$IFS
  10925. IFS=';'
  10926. for lt_path in $LIB
  10927. do
  10928. IFS=$lt_save_ifs
  10929. # Let DOS variable expansion print the short 8.3 style file name.
  10930. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10931. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10932. done
  10933. IFS=$lt_save_ifs
  10934. # Convert to MSYS style.
  10935. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10936. ;;
  10937. cygwin*)
  10938. # Convert to unix form, then to dos form, then back to unix form
  10939. # but this time dos style (no spaces!) so that the unix form looks
  10940. # like /cygdrive/c/PROGRA~1:/cygdr...
  10941. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10942. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10943. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10944. ;;
  10945. *)
  10946. sys_lib_search_path_spec=$LIB
  10947. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10948. # It is most probably a Windows format PATH.
  10949. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10950. else
  10951. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10952. fi
  10953. # FIXME: find the short name or the path components, as spaces are
  10954. # common. (e.g. "Program Files" -> "PROGRA~1")
  10955. ;;
  10956. esac
  10957. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10958. postinstall_cmds='base_file=`basename \$file`~
  10959. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10960. dldir=$destdir/`dirname \$dlpath`~
  10961. test -d \$dldir || mkdir -p \$dldir~
  10962. $install_prog $dir/$dlname \$dldir/$dlname'
  10963. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10964. dlpath=$dir/\$dldll~
  10965. $RM \$dlpath'
  10966. shlibpath_overrides_runpath=yes
  10967. dynamic_linker='Win32 link.exe'
  10968. ;;
  10969. *)
  10970. # Assume MSVC and ICC wrapper
  10971. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10972. dynamic_linker='Win32 ld.exe'
  10973. ;;
  10974. esac
  10975. # FIXME: first we should search . and the directory the executable is in
  10976. shlibpath_var=PATH
  10977. ;;
  10978. darwin* | rhapsody*)
  10979. dynamic_linker="$host_os dyld"
  10980. version_type=darwin
  10981. need_lib_prefix=no
  10982. need_version=no
  10983. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  10984. soname_spec='$libname$release$major$shared_ext'
  10985. shlibpath_overrides_runpath=yes
  10986. shlibpath_var=DYLD_LIBRARY_PATH
  10987. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  10988. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10989. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10990. ;;
  10991. dgux*)
  10992. version_type=linux # correct to gnu/linux during the next big refactor
  10993. need_lib_prefix=no
  10994. need_version=no
  10995. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10996. soname_spec='$libname$release$shared_ext$major'
  10997. shlibpath_var=LD_LIBRARY_PATH
  10998. ;;
  10999. freebsd* | dragonfly* | midnightbsd*)
  11000. # DragonFly does not have aout. When/if they implement a new
  11001. # versioning mechanism, adjust this.
  11002. if test -x /usr/bin/objformat; then
  11003. objformat=`/usr/bin/objformat`
  11004. else
  11005. case $host_os in
  11006. freebsd[23].*) objformat=aout ;;
  11007. *) objformat=elf ;;
  11008. esac
  11009. fi
  11010. # Handle Gentoo/FreeBSD as it was Linux
  11011. case $host_vendor in
  11012. gentoo)
  11013. version_type=linux ;;
  11014. *)
  11015. version_type=freebsd-$objformat ;;
  11016. esac
  11017. case $version_type in
  11018. freebsd-elf*)
  11019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11020. soname_spec='$libname$release$shared_ext$major'
  11021. need_version=no
  11022. need_lib_prefix=no
  11023. ;;
  11024. freebsd-*)
  11025. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11026. need_version=yes
  11027. ;;
  11028. linux)
  11029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11030. soname_spec='${libname}${release}${shared_ext}$major'
  11031. need_lib_prefix=no
  11032. need_version=no
  11033. ;;
  11034. esac
  11035. case $host_cpu in
  11036. powerpc64)
  11037. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  11038. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  11039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11040. /* end confdefs.h. */
  11041. int test_pointer_size[sizeof (void *) - 5];
  11042. _ACEOF
  11043. if ac_fn_c_try_compile "$LINENO"
  11044. then :
  11045. shlibpath_var=LD_LIBRARY_PATH
  11046. else $as_nop
  11047. shlibpath_var=LD_32_LIBRARY_PATH
  11048. fi
  11049. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11050. ;;
  11051. *)
  11052. shlibpath_var=LD_LIBRARY_PATH
  11053. ;;
  11054. esac
  11055. case $host_os in
  11056. freebsd2.*)
  11057. shlibpath_overrides_runpath=yes
  11058. ;;
  11059. freebsd3.[01]* | freebsdelf3.[01]*)
  11060. shlibpath_overrides_runpath=yes
  11061. hardcode_into_libs=yes
  11062. ;;
  11063. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11064. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11065. shlibpath_overrides_runpath=no
  11066. hardcode_into_libs=yes
  11067. ;;
  11068. *) # from 4.6 on, and DragonFly
  11069. shlibpath_overrides_runpath=yes
  11070. hardcode_into_libs=yes
  11071. ;;
  11072. esac
  11073. ;;
  11074. haiku*)
  11075. version_type=linux # correct to gnu/linux during the next big refactor
  11076. need_lib_prefix=no
  11077. need_version=no
  11078. dynamic_linker="$host_os runtime_loader"
  11079. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11080. soname_spec='$libname$release$shared_ext$major'
  11081. shlibpath_var=LIBRARY_PATH
  11082. shlibpath_overrides_runpath=no
  11083. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  11084. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  11085. hardcode_into_libs=no
  11086. ;;
  11087. hpux9* | hpux10* | hpux11*)
  11088. # Give a soname corresponding to the major version so that dld.sl refuses to
  11089. # link against other versions.
  11090. version_type=sunos
  11091. need_lib_prefix=no
  11092. need_version=no
  11093. case $host_cpu in
  11094. ia64*)
  11095. shrext_cmds='.so'
  11096. hardcode_into_libs=yes
  11097. dynamic_linker="$host_os dld.so"
  11098. shlibpath_var=LD_LIBRARY_PATH
  11099. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11101. soname_spec='$libname$release$shared_ext$major'
  11102. if test 32 = "$HPUX_IA64_MODE"; then
  11103. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11104. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11105. else
  11106. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11107. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11108. fi
  11109. ;;
  11110. hppa*64*)
  11111. shrext_cmds='.sl'
  11112. hardcode_into_libs=yes
  11113. dynamic_linker="$host_os dld.sl"
  11114. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11115. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11117. soname_spec='$libname$release$shared_ext$major'
  11118. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11119. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11120. ;;
  11121. *)
  11122. shrext_cmds='.sl'
  11123. dynamic_linker="$host_os dld.sl"
  11124. shlibpath_var=SHLIB_PATH
  11125. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11127. soname_spec='$libname$release$shared_ext$major'
  11128. ;;
  11129. esac
  11130. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11131. postinstall_cmds='chmod 555 $lib'
  11132. # or fails outright, so override atomically:
  11133. install_override_mode=555
  11134. ;;
  11135. interix[3-9]*)
  11136. version_type=linux # correct to gnu/linux during the next big refactor
  11137. need_lib_prefix=no
  11138. need_version=no
  11139. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11140. soname_spec='$libname$release$shared_ext$major'
  11141. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11142. shlibpath_var=LD_LIBRARY_PATH
  11143. shlibpath_overrides_runpath=no
  11144. hardcode_into_libs=yes
  11145. ;;
  11146. irix5* | irix6* | nonstopux*)
  11147. case $host_os in
  11148. nonstopux*) version_type=nonstopux ;;
  11149. *)
  11150. if test yes = "$lt_cv_prog_gnu_ld"; then
  11151. version_type=linux # correct to gnu/linux during the next big refactor
  11152. else
  11153. version_type=irix
  11154. fi ;;
  11155. esac
  11156. need_lib_prefix=no
  11157. need_version=no
  11158. soname_spec='$libname$release$shared_ext$major'
  11159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11160. case $host_os in
  11161. irix5* | nonstopux*)
  11162. libsuff= shlibsuff=
  11163. ;;
  11164. *)
  11165. case $LD in # libtool.m4 will add one of these switches to LD
  11166. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11167. libsuff= shlibsuff= libmagic=32-bit;;
  11168. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11169. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11170. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11171. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11172. *) libsuff= shlibsuff= libmagic=never-match;;
  11173. esac
  11174. ;;
  11175. esac
  11176. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11177. shlibpath_overrides_runpath=no
  11178. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11179. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11180. hardcode_into_libs=yes
  11181. ;;
  11182. # No shared lib support for Linux oldld, aout, or coff.
  11183. linux*oldld* | linux*aout* | linux*coff*)
  11184. dynamic_linker=no
  11185. ;;
  11186. linux*android*)
  11187. version_type=none # Android doesn't support versioned libraries.
  11188. need_lib_prefix=no
  11189. need_version=no
  11190. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  11191. soname_spec='$libname$release$shared_ext'
  11192. finish_cmds=
  11193. shlibpath_var=LD_LIBRARY_PATH
  11194. shlibpath_overrides_runpath=yes
  11195. # This implies no fast_install, which is unacceptable.
  11196. # Some rework will be needed to allow for fast_install
  11197. # before this can be enabled.
  11198. hardcode_into_libs=yes
  11199. dynamic_linker='Android linker'
  11200. # -rpath works at least for libraries that are not overridden by
  11201. # libraries installed in system locations.
  11202. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11203. ;;
  11204. # This must be glibc/ELF.
  11205. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11206. version_type=linux # correct to gnu/linux during the next big refactor
  11207. need_lib_prefix=no
  11208. need_version=no
  11209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11210. soname_spec='$libname$release$shared_ext$major'
  11211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11212. shlibpath_var=LD_LIBRARY_PATH
  11213. shlibpath_overrides_runpath=no
  11214. # Some binutils ld are patched to set DT_RUNPATH
  11215. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11216. then :
  11217. printf %s "(cached) " >&6
  11218. else $as_nop
  11219. lt_cv_shlibpath_overrides_runpath=no
  11220. save_LDFLAGS=$LDFLAGS
  11221. save_libdir=$libdir
  11222. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11223. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11225. /* end confdefs.h. */
  11226. int
  11227. main (void)
  11228. {
  11229. ;
  11230. return 0;
  11231. }
  11232. _ACEOF
  11233. if ac_fn_c_try_link "$LINENO"
  11234. then :
  11235. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11236. then :
  11237. lt_cv_shlibpath_overrides_runpath=yes
  11238. fi
  11239. fi
  11240. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11241. conftest$ac_exeext conftest.$ac_ext
  11242. LDFLAGS=$save_LDFLAGS
  11243. libdir=$save_libdir
  11244. fi
  11245. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11246. # This implies no fast_install, which is unacceptable.
  11247. # Some rework will be needed to allow for fast_install
  11248. # before this can be enabled.
  11249. hardcode_into_libs=yes
  11250. # Ideally, we could use ldconfig to report *all* directories which are
  11251. # searched for libraries, however this is still not possible. Aside from not
  11252. # being certain /sbin/ldconfig is available, command
  11253. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11254. # even though it is searched at run-time. Try to do the best guess by
  11255. # appending ld.so.conf contents (and includes) to the search path.
  11256. if test -f /etc/ld.so.conf; then
  11257. 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' ' '`
  11258. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11259. fi
  11260. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11261. # powerpc, because MkLinux only supported shared libraries with the
  11262. # GNU dynamic linker. Since this was broken with cross compilers,
  11263. # most powerpc-linux boxes support dynamic linking these days and
  11264. # people can always --disable-shared, the test was removed, and we
  11265. # assume the GNU/Linux dynamic linker is in use.
  11266. dynamic_linker='GNU/Linux ld.so'
  11267. ;;
  11268. netbsdelf*-gnu)
  11269. version_type=linux
  11270. need_lib_prefix=no
  11271. need_version=no
  11272. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11273. soname_spec='$libname$release$shared_ext$major'
  11274. shlibpath_var=LD_LIBRARY_PATH
  11275. shlibpath_overrides_runpath=no
  11276. hardcode_into_libs=yes
  11277. dynamic_linker='NetBSD ld.elf_so'
  11278. ;;
  11279. netbsd*)
  11280. version_type=sunos
  11281. need_lib_prefix=no
  11282. need_version=no
  11283. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11284. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11285. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11286. dynamic_linker='NetBSD (a.out) ld.so'
  11287. else
  11288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11289. soname_spec='$libname$release$shared_ext$major'
  11290. dynamic_linker='NetBSD ld.elf_so'
  11291. fi
  11292. shlibpath_var=LD_LIBRARY_PATH
  11293. shlibpath_overrides_runpath=yes
  11294. hardcode_into_libs=yes
  11295. ;;
  11296. *-mlibc)
  11297. version_type=linux # correct to gnu/linux during the next big refactor
  11298. need_lib_prefix=no
  11299. need_version=no
  11300. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11301. soname_spec='$libname$release$shared_ext$major'
  11302. dynamic_linker='mlibc ld.so'
  11303. shlibpath_var=LD_LIBRARY_PATH
  11304. shlibpath_overrides_runpath=no
  11305. hardcode_into_libs=yes
  11306. ;;
  11307. newsos6)
  11308. version_type=linux # correct to gnu/linux during the next big refactor
  11309. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11310. shlibpath_var=LD_LIBRARY_PATH
  11311. shlibpath_overrides_runpath=yes
  11312. ;;
  11313. *nto* | *qnx*)
  11314. version_type=qnx
  11315. need_lib_prefix=no
  11316. need_version=no
  11317. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11318. soname_spec='$libname$release$shared_ext$major'
  11319. shlibpath_var=LD_LIBRARY_PATH
  11320. shlibpath_overrides_runpath=no
  11321. hardcode_into_libs=yes
  11322. dynamic_linker='ldqnx.so'
  11323. ;;
  11324. openbsd*)
  11325. version_type=sunos
  11326. sys_lib_dlsearch_path_spec=/usr/lib
  11327. need_lib_prefix=no
  11328. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11329. need_version=no
  11330. else
  11331. need_version=yes
  11332. fi
  11333. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11334. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11335. shlibpath_var=LD_LIBRARY_PATH
  11336. shlibpath_overrides_runpath=yes
  11337. ;;
  11338. os2*)
  11339. libname_spec='$name'
  11340. version_type=windows
  11341. shrext_cmds=.dll
  11342. need_version=no
  11343. need_lib_prefix=no
  11344. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11345. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11346. v=$($ECHO $release$versuffix | tr -d .-);
  11347. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11348. $ECHO $n$v`$shared_ext'
  11349. library_names_spec='${libname}_dll.$libext'
  11350. dynamic_linker='OS/2 ld.exe'
  11351. shlibpath_var=BEGINLIBPATH
  11352. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11353. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11354. postinstall_cmds='base_file=`basename \$file`~
  11355. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11356. dldir=$destdir/`dirname \$dlpath`~
  11357. test -d \$dldir || mkdir -p \$dldir~
  11358. $install_prog $dir/$dlname \$dldir/$dlname~
  11359. chmod a+x \$dldir/$dlname~
  11360. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11361. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11362. fi'
  11363. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11364. dlpath=$dir/\$dldll~
  11365. $RM \$dlpath'
  11366. ;;
  11367. osf3* | osf4* | osf5*)
  11368. version_type=osf
  11369. need_lib_prefix=no
  11370. need_version=no
  11371. soname_spec='$libname$release$shared_ext$major'
  11372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11373. shlibpath_var=LD_LIBRARY_PATH
  11374. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11375. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11376. ;;
  11377. rdos*)
  11378. dynamic_linker=no
  11379. ;;
  11380. serenity*)
  11381. version_type=linux # correct to gnu/linux during the next big refactor
  11382. need_lib_prefix=no
  11383. need_version=no
  11384. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11385. soname_spec='$libname$release$shared_ext$major'
  11386. shlibpath_var=LD_LIBRARY_PATH
  11387. shlibpath_overrides_runpath=no
  11388. dynamic_linker='SerenityOS LibELF'
  11389. ;;
  11390. solaris*)
  11391. version_type=linux # correct to gnu/linux during the next big refactor
  11392. need_lib_prefix=no
  11393. need_version=no
  11394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11395. soname_spec='$libname$release$shared_ext$major'
  11396. shlibpath_var=LD_LIBRARY_PATH
  11397. shlibpath_overrides_runpath=yes
  11398. hardcode_into_libs=yes
  11399. # ldd complains unless libraries are executable
  11400. postinstall_cmds='chmod +x $lib'
  11401. ;;
  11402. sunos4*)
  11403. version_type=sunos
  11404. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11405. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11406. shlibpath_var=LD_LIBRARY_PATH
  11407. shlibpath_overrides_runpath=yes
  11408. if test yes = "$with_gnu_ld"; then
  11409. need_lib_prefix=no
  11410. fi
  11411. need_version=yes
  11412. ;;
  11413. sysv4 | sysv4.3*)
  11414. version_type=linux # correct to gnu/linux during the next big refactor
  11415. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11416. soname_spec='$libname$release$shared_ext$major'
  11417. shlibpath_var=LD_LIBRARY_PATH
  11418. case $host_vendor in
  11419. sni)
  11420. shlibpath_overrides_runpath=no
  11421. need_lib_prefix=no
  11422. runpath_var=LD_RUN_PATH
  11423. ;;
  11424. siemens)
  11425. need_lib_prefix=no
  11426. ;;
  11427. motorola)
  11428. need_lib_prefix=no
  11429. need_version=no
  11430. shlibpath_overrides_runpath=no
  11431. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11432. ;;
  11433. esac
  11434. ;;
  11435. sysv4*MP*)
  11436. if test -d /usr/nec; then
  11437. version_type=linux # correct to gnu/linux during the next big refactor
  11438. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11439. soname_spec='$libname$shared_ext.$major'
  11440. shlibpath_var=LD_LIBRARY_PATH
  11441. fi
  11442. ;;
  11443. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11444. version_type=sco
  11445. need_lib_prefix=no
  11446. need_version=no
  11447. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11448. soname_spec='$libname$release$shared_ext$major'
  11449. shlibpath_var=LD_LIBRARY_PATH
  11450. shlibpath_overrides_runpath=yes
  11451. hardcode_into_libs=yes
  11452. if test yes = "$with_gnu_ld"; then
  11453. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11454. else
  11455. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11456. case $host_os in
  11457. sco3.2v5*)
  11458. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11459. ;;
  11460. esac
  11461. fi
  11462. sys_lib_dlsearch_path_spec='/usr/lib'
  11463. ;;
  11464. tpf*)
  11465. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11466. version_type=linux # correct to gnu/linux during the next big refactor
  11467. need_lib_prefix=no
  11468. need_version=no
  11469. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11470. shlibpath_var=LD_LIBRARY_PATH
  11471. shlibpath_overrides_runpath=no
  11472. hardcode_into_libs=yes
  11473. ;;
  11474. uts4*)
  11475. version_type=linux # correct to gnu/linux during the next big refactor
  11476. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11477. soname_spec='$libname$release$shared_ext$major'
  11478. shlibpath_var=LD_LIBRARY_PATH
  11479. ;;
  11480. emscripten*)
  11481. version_type=none
  11482. need_lib_prefix=no
  11483. need_version=no
  11484. library_names_spec='$libname$release$shared_ext'
  11485. soname_spec='$libname$release$shared_ext'
  11486. finish_cmds=
  11487. dynamic_linker="Emscripten linker"
  11488. lt_prog_compiler_wl=
  11489. lt_prog_compiler_pic=
  11490. lt_prog_compiler_static=
  11491. if test yes = "$GCC"; then
  11492. lt_prog_compiler_wl='-Wl,'
  11493. lt_prog_compiler_static='-static'
  11494. case $host_os in
  11495. aix*)
  11496. # All AIX code is PIC.
  11497. if test ia64 = "$host_cpu"; then
  11498. # AIX 5 now supports IA64 processor
  11499. lt_prog_compiler_static='-Bstatic'
  11500. fi
  11501. lt_prog_compiler_pic='-fPIC'
  11502. ;;
  11503. amigaos*)
  11504. case $host_cpu in
  11505. powerpc)
  11506. # see comment about AmigaOS4 .so support
  11507. lt_prog_compiler_pic='-fPIC'
  11508. ;;
  11509. m68k)
  11510. # FIXME: we need at least 68020 code to build shared libraries, but
  11511. # adding the '-m68020' flag to GCC prevents building anything better,
  11512. # like '-m68040'.
  11513. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11514. ;;
  11515. esac
  11516. ;;
  11517. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11518. # PIC is the default for these OSes.
  11519. ;;
  11520. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  11521. # This hack is so that the source file can tell whether it is being
  11522. # built for inclusion in a dll (and should export symbols for example).
  11523. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11524. # (--disable-auto-import) libraries
  11525. lt_prog_compiler_pic='-DDLL_EXPORT'
  11526. case $host_os in
  11527. os2*)
  11528. lt_prog_compiler_static='$wl-static'
  11529. ;;
  11530. esac
  11531. ;;
  11532. darwin* | rhapsody*)
  11533. # PIC is the default on this platform
  11534. # Common symbols not allowed in MH_DYLIB files
  11535. lt_prog_compiler_pic='-fno-common'
  11536. ;;
  11537. haiku*)
  11538. # PIC is the default for Haiku.
  11539. # The "-static" flag exists, but is broken.
  11540. lt_prog_compiler_static=
  11541. ;;
  11542. hpux*)
  11543. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11544. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11545. # sets the default TLS model and affects inlining.
  11546. case $host_cpu in
  11547. hppa*64*)
  11548. # +Z the default
  11549. ;;
  11550. *)
  11551. lt_prog_compiler_pic='-fPIC'
  11552. ;;
  11553. esac
  11554. ;;
  11555. interix[3-9]*)
  11556. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11557. # Instead, we relocate shared libraries at runtime.
  11558. ;;
  11559. msdosdjgpp*)
  11560. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11561. # on systems that don't support them.
  11562. lt_prog_compiler_can_build_shared=no
  11563. enable_shared=no
  11564. ;;
  11565. *nto* | *qnx*)
  11566. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11567. # it will coredump.
  11568. lt_prog_compiler_pic='-fPIC -shared'
  11569. ;;
  11570. sysv4*MP*)
  11571. if test -d /usr/nec; then
  11572. lt_prog_compiler_pic=-Kconform_pic
  11573. fi
  11574. ;;
  11575. *)
  11576. lt_prog_compiler_pic='-fPIC'
  11577. ;;
  11578. esac
  11579. case $cc_basename in
  11580. nvcc*) # Cuda Compiler Driver 2.2
  11581. lt_prog_compiler_wl='-Xlinker '
  11582. if test -n "$lt_prog_compiler_pic"; then
  11583. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  11584. fi
  11585. ;;
  11586. esac
  11587. else
  11588. # PORTME Check for flag to pass linker flags through the system compiler.
  11589. case $host_os in
  11590. aix*)
  11591. lt_prog_compiler_wl='-Wl,'
  11592. if test ia64 = "$host_cpu"; then
  11593. # AIX 5 now supports IA64 processor
  11594. lt_prog_compiler_static='-Bstatic'
  11595. else
  11596. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11597. fi
  11598. ;;
  11599. darwin* | rhapsody*)
  11600. # PIC is the default on this platform
  11601. # Common symbols not allowed in MH_DYLIB files
  11602. lt_prog_compiler_pic='-fno-common'
  11603. case $cc_basename in
  11604. nagfor*)
  11605. # NAG Fortran compiler
  11606. lt_prog_compiler_wl='-Wl,-Wl,,'
  11607. lt_prog_compiler_pic='-PIC'
  11608. lt_prog_compiler_static='-Bstatic'
  11609. ;;
  11610. esac
  11611. ;;
  11612. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  11613. # This hack is so that the source file can tell whether it is being
  11614. # built for inclusion in a dll (and should export symbols for example).
  11615. lt_prog_compiler_pic='-DDLL_EXPORT'
  11616. case $host_os in
  11617. os2*)
  11618. lt_prog_compiler_static='$wl-static'
  11619. ;;
  11620. esac
  11621. ;;
  11622. hpux9* | hpux10* | hpux11*)
  11623. lt_prog_compiler_wl='-Wl,'
  11624. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11625. # not for PA HP-UX.
  11626. case $host_cpu in
  11627. hppa*64*|ia64*)
  11628. # +Z the default
  11629. ;;
  11630. *)
  11631. lt_prog_compiler_pic='+Z'
  11632. ;;
  11633. esac
  11634. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11635. lt_prog_compiler_static='$wl-a ${wl}archive'
  11636. ;;
  11637. irix5* | irix6* | nonstopux*)
  11638. lt_prog_compiler_wl='-Wl,'
  11639. # PIC (with -KPIC) is the default.
  11640. lt_prog_compiler_static='-non_shared'
  11641. ;;
  11642. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11643. case $cc_basename in
  11644. # old Intel for x86_64, which still supported -KPIC.
  11645. ecc*)
  11646. lt_prog_compiler_wl='-Wl,'
  11647. lt_prog_compiler_pic='-KPIC'
  11648. lt_prog_compiler_static='-static'
  11649. ;;
  11650. *flang* | ftn | f18* | f95*)
  11651. # Flang compiler.
  11652. lt_prog_compiler_wl='-Wl,'
  11653. lt_prog_compiler_pic='-fPIC'
  11654. lt_prog_compiler_static='-static'
  11655. ;;
  11656. # icc used to be incompatible with GCC.
  11657. # ICC 10 doesn't accept -KPIC any more.
  11658. icc* | ifort*)
  11659. lt_prog_compiler_wl='-Wl,'
  11660. lt_prog_compiler_pic='-fPIC'
  11661. lt_prog_compiler_static='-static'
  11662. ;;
  11663. # Lahey Fortran 8.1.
  11664. lf95*)
  11665. lt_prog_compiler_wl='-Wl,'
  11666. lt_prog_compiler_pic='--shared'
  11667. lt_prog_compiler_static='--static'
  11668. ;;
  11669. nagfor*)
  11670. # NAG Fortran compiler
  11671. lt_prog_compiler_wl='-Wl,-Wl,,'
  11672. lt_prog_compiler_pic='-PIC'
  11673. lt_prog_compiler_static='-Bstatic'
  11674. ;;
  11675. tcc*)
  11676. # Fabrice Bellard et al's Tiny C Compiler
  11677. lt_prog_compiler_wl='-Wl,'
  11678. lt_prog_compiler_pic='-fPIC'
  11679. lt_prog_compiler_static='-static'
  11680. ;;
  11681. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  11682. # Portland Group compilers (*not* the Pentium gcc compiler,
  11683. # which looks to be a dead project)
  11684. lt_prog_compiler_wl='-Wl,'
  11685. lt_prog_compiler_pic='-fpic'
  11686. lt_prog_compiler_static='-Bstatic'
  11687. ;;
  11688. ccc*)
  11689. lt_prog_compiler_wl='-Wl,'
  11690. # All Alpha code is PIC.
  11691. lt_prog_compiler_static='-non_shared'
  11692. ;;
  11693. xl* | bgxl* | bgf* | mpixl*)
  11694. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  11695. lt_prog_compiler_wl='-Wl,'
  11696. lt_prog_compiler_pic='-qpic'
  11697. lt_prog_compiler_static='-qstaticlink'
  11698. ;;
  11699. *)
  11700. case `$CC -V 2>&1 | $SED 5q` in
  11701. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  11702. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11703. lt_prog_compiler_pic='-KPIC'
  11704. lt_prog_compiler_static='-Bstatic'
  11705. lt_prog_compiler_wl=''
  11706. ;;
  11707. *Sun\ F* | *Sun*Fortran*)
  11708. lt_prog_compiler_pic='-KPIC'
  11709. lt_prog_compiler_static='-Bstatic'
  11710. lt_prog_compiler_wl='-Qoption ld '
  11711. ;;
  11712. *Sun\ C*)
  11713. # Sun C 5.9
  11714. lt_prog_compiler_pic='-KPIC'
  11715. lt_prog_compiler_static='-Bstatic'
  11716. lt_prog_compiler_wl='-Wl,'
  11717. ;;
  11718. *Intel*\ [CF]*Compiler*)
  11719. lt_prog_compiler_wl='-Wl,'
  11720. lt_prog_compiler_pic='-fPIC'
  11721. lt_prog_compiler_static='-static'
  11722. ;;
  11723. *Portland\ Group*)
  11724. lt_prog_compiler_wl='-Wl,'
  11725. lt_prog_compiler_pic='-fpic'
  11726. lt_prog_compiler_static='-Bstatic'
  11727. ;;
  11728. esac
  11729. ;;
  11730. esac
  11731. ;;
  11732. newsos6)
  11733. lt_prog_compiler_pic='-KPIC'
  11734. lt_prog_compiler_static='-Bstatic'
  11735. ;;
  11736. *-mlibc)
  11737. lt_prog_compiler_wl='-Wl,'
  11738. lt_prog_compiler_pic='-fPIC'
  11739. lt_prog_compiler_static='-static'
  11740. ;;
  11741. *nto* | *qnx*)
  11742. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11743. # it will coredump.
  11744. lt_prog_compiler_pic='-fPIC -shared'
  11745. ;;
  11746. osf3* | osf4* | osf5*)
  11747. lt_prog_compiler_wl='-Wl,'
  11748. # All OSF/1 code is PIC.
  11749. lt_prog_compiler_static='-non_shared'
  11750. ;;
  11751. rdos*)
  11752. lt_prog_compiler_static='-non_shared'
  11753. ;;
  11754. serenity*)
  11755. ;;
  11756. solaris*)
  11757. lt_prog_compiler_pic='-KPIC'
  11758. lt_prog_compiler_static='-Bstatic'
  11759. case $cc_basename in
  11760. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  11761. lt_prog_compiler_wl='-Qoption ld ';;
  11762. *)
  11763. lt_prog_compiler_wl='-Wl,';;
  11764. esac
  11765. ;;
  11766. sunos4*)
  11767. lt_prog_compiler_wl='-Qoption ld '
  11768. lt_prog_compiler_pic='-PIC'
  11769. lt_prog_compiler_static='-Bstatic'
  11770. ;;
  11771. sysv4 | sysv4.2uw2* | sysv4.3*)
  11772. lt_prog_compiler_wl='-Wl,'
  11773. lt_prog_compiler_pic='-KPIC'
  11774. lt_prog_compiler_static='-Bstatic'
  11775. ;;
  11776. sysv4*MP*)
  11777. if test -d /usr/nec; then
  11778. lt_prog_compiler_pic='-Kconform_pic'
  11779. lt_prog_compiler_static='-Bstatic'
  11780. fi
  11781. ;;
  11782. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11783. lt_prog_compiler_wl='-Wl,'
  11784. lt_prog_compiler_pic='-KPIC'
  11785. lt_prog_compiler_static='-Bstatic'
  11786. ;;
  11787. unicos*)
  11788. lt_prog_compiler_wl='-Wl,'
  11789. lt_prog_compiler_can_build_shared=no
  11790. ;;
  11791. uts4*)
  11792. lt_prog_compiler_pic='-pic'
  11793. lt_prog_compiler_static='-Bstatic'
  11794. ;;
  11795. *)
  11796. lt_prog_compiler_can_build_shared=no
  11797. ;;
  11798. esac
  11799. fi
  11800. case $host_os in
  11801. # For platforms that do not support PIC, -DPIC is meaningless:
  11802. *djgpp*)
  11803. lt_prog_compiler_pic=
  11804. ;;
  11805. *)
  11806. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11807. ;;
  11808. esac
  11809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11810. printf %s "checking for $compiler option to produce PIC... " >&6; }
  11811. if test ${lt_cv_prog_compiler_pic+y}
  11812. then :
  11813. printf %s "(cached) " >&6
  11814. else $as_nop
  11815. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11816. fi
  11817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11818. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  11819. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11820. #
  11821. # Check to make sure the PIC flag actually works.
  11822. #
  11823. if test -n "$lt_prog_compiler_pic"; then
  11824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11825. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11826. if test ${lt_cv_prog_compiler_pic_works+y}
  11827. then :
  11828. printf %s "(cached) " >&6
  11829. else $as_nop
  11830. lt_cv_prog_compiler_pic_works=no
  11831. ac_outfile=conftest.$ac_objext
  11832. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11833. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  11834. # Insert the option either (1) after the last *FLAGS variable, or
  11835. # (2) before a word containing "conftest.", or (3) at the end.
  11836. # Note that $ac_compile itself does not contain backslashes and begins
  11837. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11838. # The option is referenced via a variable to avoid confusing sed.
  11839. lt_compile=`echo "$ac_compile" | $SED \
  11840. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11841. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11842. -e 's:$: $lt_compiler_flag:'`
  11843. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11844. (eval "$lt_compile" 2>conftest.err)
  11845. ac_status=$?
  11846. cat conftest.err >&5
  11847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11848. if (exit $ac_status) && test -s "$ac_outfile"; then
  11849. # The compiler can only warn and ignore the option if not recognized
  11850. # So say no if there are warnings other than the usual output.
  11851. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11852. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11853. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11854. lt_cv_prog_compiler_pic_works=yes
  11855. fi
  11856. fi
  11857. $RM conftest*
  11858. fi
  11859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11860. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  11861. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11862. case $lt_prog_compiler_pic in
  11863. "" | " "*) ;;
  11864. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11865. esac
  11866. else
  11867. lt_prog_compiler_pic=
  11868. lt_prog_compiler_can_build_shared=no
  11869. fi
  11870. fi
  11871. #
  11872. # Check to make sure the static flag actually works.
  11873. #
  11874. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11876. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11877. if test ${lt_cv_prog_compiler_static_works+y}
  11878. then :
  11879. printf %s "(cached) " >&6
  11880. else $as_nop
  11881. lt_cv_prog_compiler_static_works=no
  11882. save_LDFLAGS=$LDFLAGS
  11883. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11884. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11885. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11886. # The linker can only warn and ignore the option if not recognized
  11887. # So say no if there are warnings
  11888. if test -s conftest.err; then
  11889. # Append any errors to the config.log.
  11890. cat conftest.err 1>&5
  11891. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11892. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11893. if diff conftest.exp conftest.er2 >/dev/null; then
  11894. lt_cv_prog_compiler_static_works=yes
  11895. fi
  11896. else
  11897. lt_cv_prog_compiler_static_works=yes
  11898. fi
  11899. fi
  11900. $RM -r conftest*
  11901. LDFLAGS=$save_LDFLAGS
  11902. fi
  11903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11904. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  11905. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11906. :
  11907. else
  11908. lt_prog_compiler_static=
  11909. fi
  11910. ='-fPIC'
  11911. archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  11912. archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  11913. archive_cmds_need_lc=no
  11914. no_undefined_flag=
  11915. ;;
  11916. *)
  11917. dynamic_linker=no
  11918. ;;
  11919. esac
  11920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11921. printf "%s\n" "$dynamic_linker" >&6; }
  11922. test no = "$dynamic_linker" && can_build_shared=no
  11923. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11924. if test yes = "$GCC"; then
  11925. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11926. fi
  11927. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11928. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11929. fi
  11930. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11931. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11932. fi
  11933. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11934. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11935. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11936. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11937. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11938. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11940. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11941. hardcode_action=
  11942. if test -n "$hardcode_libdir_flag_spec" ||
  11943. test -n "$runpath_var" ||
  11944. test yes = "$hardcode_automatic"; then
  11945. # We can hardcode non-existent directories.
  11946. if test no != "$hardcode_direct" &&
  11947. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11948. # have to relink, otherwise we might link with an installed library
  11949. # when we should be linking with a yet-to-be-installed one
  11950. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11951. test no != "$hardcode_minus_L"; then
  11952. # Linking always hardcodes the temporary library directory.
  11953. hardcode_action=relink
  11954. else
  11955. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11956. hardcode_action=immediate
  11957. fi
  11958. else
  11959. # We cannot hardcode anything, or else we can only hardcode existing
  11960. # directories.
  11961. hardcode_action=unsupported
  11962. fi
  11963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11964. printf "%s\n" "$hardcode_action" >&6; }
  11965. if test relink = "$hardcode_action" ||
  11966. test yes = "$inherit_rpath"; then
  11967. # Fast installation is not supported
  11968. enable_fast_install=no
  11969. elif test yes = "$shlibpath_overrides_runpath" ||
  11970. test no = "$enable_shared"; then
  11971. # Fast installation is not necessary
  11972. enable_fast_install=needless
  11973. fi
  11974. if test yes != "$enable_dlopen"; then
  11975. enable_dlopen=unknown
  11976. enable_dlopen_self=unknown
  11977. enable_dlopen_self_static=unknown
  11978. else
  11979. lt_cv_dlopen=no
  11980. lt_cv_dlopen_libs=
  11981. case $host_os in
  11982. beos*)
  11983. lt_cv_dlopen=load_add_on
  11984. lt_cv_dlopen_libs=
  11985. lt_cv_dlopen_self=yes
  11986. ;;
  11987. mingw* | windows* | pw32* | cegcc*)
  11988. lt_cv_dlopen=LoadLibrary
  11989. lt_cv_dlopen_libs=
  11990. ;;
  11991. cygwin*)
  11992. lt_cv_dlopen=dlopen
  11993. lt_cv_dlopen_libs=
  11994. ;;
  11995. darwin*)
  11996. # if libdl is installed we need to link against it
  11997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11998. printf %s "checking for dlopen in -ldl... " >&6; }
  11999. if test ${ac_cv_lib_dl_dlopen+y}
  12000. then :
  12001. printf %s "(cached) " >&6
  12002. else $as_nop
  12003. ac_check_lib_save_LIBS=$LIBS
  12004. LIBS="-ldl $LIBS"
  12005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12006. /* end confdefs.h. */
  12007. /* Override any GCC internal prototype to avoid an error.
  12008. Use char because int might match the return type of a GCC
  12009. builtin and then its argument prototype would still apply.
  12010. The 'extern "C"' is for builds by C++ compilers;
  12011. although this is not generally supported in C code supporting it here
  12012. has little cost and some practical benefit (sr 110532). */
  12013. #ifdef __cplusplus
  12014. extern "C"
  12015. #endif
  12016. char dlopen (void);
  12017. int
  12018. main (void)
  12019. {
  12020. return dlopen ();
  12021. ;
  12022. return 0;
  12023. }
  12024. _ACEOF
  12025. if ac_fn_c_try_link "$LINENO"
  12026. then :
  12027. ac_cv_lib_dl_dlopen=yes
  12028. else $as_nop
  12029. ac_cv_lib_dl_dlopen=no
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12032. conftest$ac_exeext conftest.$ac_ext
  12033. LIBS=$ac_check_lib_save_LIBS
  12034. fi
  12035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12036. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12037. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12038. then :
  12039. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12040. else $as_nop
  12041. lt_cv_dlopen=dyld
  12042. lt_cv_dlopen_libs=
  12043. lt_cv_dlopen_self=yes
  12044. fi
  12045. ;;
  12046. tpf*)
  12047. # Don't try to run any link tests for TPF. We know it's impossible
  12048. # because TPF is a cross-compiler, and we know how we open DSOs.
  12049. lt_cv_dlopen=dlopen
  12050. lt_cv_dlopen_libs=
  12051. lt_cv_dlopen_self=no
  12052. ;;
  12053. *)
  12054. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12055. if test "x$ac_cv_func_shl_load" = xyes
  12056. then :
  12057. lt_cv_dlopen=shl_load
  12058. else $as_nop
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12060. printf %s "checking for shl_load in -ldld... " >&6; }
  12061. if test ${ac_cv_lib_dld_shl_load+y}
  12062. then :
  12063. printf %s "(cached) " >&6
  12064. else $as_nop
  12065. ac_check_lib_save_LIBS=$LIBS
  12066. LIBS="-ldld $LIBS"
  12067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12068. /* end confdefs.h. */
  12069. /* Override any GCC internal prototype to avoid an error.
  12070. Use char because int might match the return type of a GCC
  12071. builtin and then its argument prototype would still apply.
  12072. The 'extern "C"' is for builds by C++ compilers;
  12073. although this is not generally supported in C code supporting it here
  12074. has little cost and some practical benefit (sr 110532). */
  12075. #ifdef __cplusplus
  12076. extern "C"
  12077. #endif
  12078. char shl_load (void);
  12079. int
  12080. main (void)
  12081. {
  12082. return shl_load ();
  12083. ;
  12084. return 0;
  12085. }
  12086. _ACEOF
  12087. if ac_fn_c_try_link "$LINENO"
  12088. then :
  12089. ac_cv_lib_dld_shl_load=yes
  12090. else $as_nop
  12091. ac_cv_lib_dld_shl_load=no
  12092. fi
  12093. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12094. conftest$ac_exeext conftest.$ac_ext
  12095. LIBS=$ac_check_lib_save_LIBS
  12096. fi
  12097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12098. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  12099. if test "x$ac_cv_lib_dld_shl_load" = xyes
  12100. then :
  12101. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12102. else $as_nop
  12103. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12104. if test "x$ac_cv_func_dlopen" = xyes
  12105. then :
  12106. lt_cv_dlopen=dlopen
  12107. else $as_nop
  12108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12109. printf %s "checking for dlopen in -ldl... " >&6; }
  12110. if test ${ac_cv_lib_dl_dlopen+y}
  12111. then :
  12112. printf %s "(cached) " >&6
  12113. else $as_nop
  12114. ac_check_lib_save_LIBS=$LIBS
  12115. LIBS="-ldl $LIBS"
  12116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12117. /* end confdefs.h. */
  12118. /* Override any GCC internal prototype to avoid an error.
  12119. Use char because int might match the return type of a GCC
  12120. builtin and then its argument prototype would still apply.
  12121. The 'extern "C"' is for builds by C++ compilers;
  12122. although this is not generally supported in C code supporting it here
  12123. has little cost and some practical benefit (sr 110532). */
  12124. #ifdef __cplusplus
  12125. extern "C"
  12126. #endif
  12127. char dlopen (void);
  12128. int
  12129. main (void)
  12130. {
  12131. return dlopen ();
  12132. ;
  12133. return 0;
  12134. }
  12135. _ACEOF
  12136. if ac_fn_c_try_link "$LINENO"
  12137. then :
  12138. ac_cv_lib_dl_dlopen=yes
  12139. else $as_nop
  12140. ac_cv_lib_dl_dlopen=no
  12141. fi
  12142. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12143. conftest$ac_exeext conftest.$ac_ext
  12144. LIBS=$ac_check_lib_save_LIBS
  12145. fi
  12146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12147. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12148. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12149. then :
  12150. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12151. else $as_nop
  12152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12153. printf %s "checking for dlopen in -lsvld... " >&6; }
  12154. if test ${ac_cv_lib_svld_dlopen+y}
  12155. then :
  12156. printf %s "(cached) " >&6
  12157. else $as_nop
  12158. ac_check_lib_save_LIBS=$LIBS
  12159. LIBS="-lsvld $LIBS"
  12160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12161. /* end confdefs.h. */
  12162. /* Override any GCC internal prototype to avoid an error.
  12163. Use char because int might match the return type of a GCC
  12164. builtin and then its argument prototype would still apply.
  12165. The 'extern "C"' is for builds by C++ compilers;
  12166. although this is not generally supported in C code supporting it here
  12167. has little cost and some practical benefit (sr 110532). */
  12168. #ifdef __cplusplus
  12169. extern "C"
  12170. #endif
  12171. char dlopen (void);
  12172. int
  12173. main (void)
  12174. {
  12175. return dlopen ();
  12176. ;
  12177. return 0;
  12178. }
  12179. _ACEOF
  12180. if ac_fn_c_try_link "$LINENO"
  12181. then :
  12182. ac_cv_lib_svld_dlopen=yes
  12183. else $as_nop
  12184. ac_cv_lib_svld_dlopen=no
  12185. fi
  12186. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12187. conftest$ac_exeext conftest.$ac_ext
  12188. LIBS=$ac_check_lib_save_LIBS
  12189. fi
  12190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12191. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  12192. if test "x$ac_cv_lib_svld_dlopen" = xyes
  12193. then :
  12194. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12195. else $as_nop
  12196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12197. printf %s "checking for dld_link in -ldld... " >&6; }
  12198. if test ${ac_cv_lib_dld_dld_link+y}
  12199. then :
  12200. printf %s "(cached) " >&6
  12201. else $as_nop
  12202. ac_check_lib_save_LIBS=$LIBS
  12203. LIBS="-ldld $LIBS"
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h. */
  12206. /* Override any GCC internal prototype to avoid an error.
  12207. Use char because int might match the return type of a GCC
  12208. builtin and then its argument prototype would still apply.
  12209. The 'extern "C"' is for builds by C++ compilers;
  12210. although this is not generally supported in C code supporting it here
  12211. has little cost and some practical benefit (sr 110532). */
  12212. #ifdef __cplusplus
  12213. extern "C"
  12214. #endif
  12215. char dld_link (void);
  12216. int
  12217. main (void)
  12218. {
  12219. return dld_link ();
  12220. ;
  12221. return 0;
  12222. }
  12223. _ACEOF
  12224. if ac_fn_c_try_link "$LINENO"
  12225. then :
  12226. ac_cv_lib_dld_dld_link=yes
  12227. else $as_nop
  12228. ac_cv_lib_dld_dld_link=no
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12231. conftest$ac_exeext conftest.$ac_ext
  12232. LIBS=$ac_check_lib_save_LIBS
  12233. fi
  12234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12235. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  12236. if test "x$ac_cv_lib_dld_dld_link" = xyes
  12237. then :
  12238. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12239. fi
  12240. fi
  12241. fi
  12242. fi
  12243. fi
  12244. fi
  12245. ;;
  12246. esac
  12247. if test no = "$lt_cv_dlopen"; then
  12248. enable_dlopen=no
  12249. else
  12250. enable_dlopen=yes
  12251. fi
  12252. case $lt_cv_dlopen in
  12253. dlopen)
  12254. save_CPPFLAGS=$CPPFLAGS
  12255. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12256. save_LDFLAGS=$LDFLAGS
  12257. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12258. save_LIBS=$LIBS
  12259. LIBS="$lt_cv_dlopen_libs $LIBS"
  12260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12261. printf %s "checking whether a program can dlopen itself... " >&6; }
  12262. if test ${lt_cv_dlopen_self+y}
  12263. then :
  12264. printf %s "(cached) " >&6
  12265. else $as_nop
  12266. if test yes = "$cross_compiling"; then :
  12267. lt_cv_dlopen_self=cross
  12268. else
  12269. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12270. lt_status=$lt_dlunknown
  12271. cat > conftest.$ac_ext <<_LT_EOF
  12272. #line $LINENO "configure"
  12273. #include "confdefs.h"
  12274. #if HAVE_DLFCN_H
  12275. #include <dlfcn.h>
  12276. #endif
  12277. #include <stdio.h>
  12278. #ifdef RTLD_GLOBAL
  12279. # define LT_DLGLOBAL RTLD_GLOBAL
  12280. #else
  12281. # ifdef DL_GLOBAL
  12282. # define LT_DLGLOBAL DL_GLOBAL
  12283. # else
  12284. # define LT_DLGLOBAL 0
  12285. # endif
  12286. #endif
  12287. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12288. find out it does not work in some platform. */
  12289. #ifndef LT_DLLAZY_OR_NOW
  12290. # ifdef RTLD_LAZY
  12291. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12292. # else
  12293. # ifdef DL_LAZY
  12294. # define LT_DLLAZY_OR_NOW DL_LAZY
  12295. # else
  12296. # ifdef RTLD_NOW
  12297. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12298. # else
  12299. # ifdef DL_NOW
  12300. # define LT_DLLAZY_OR_NOW DL_NOW
  12301. # else
  12302. # define LT_DLLAZY_OR_NOW 0
  12303. # endif
  12304. # endif
  12305. # endif
  12306. # endif
  12307. #endif
  12308. /* When -fvisibility=hidden is used, assume the code has been annotated
  12309. correspondingly for the symbols needed. */
  12310. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12311. int fnord (void) __attribute__((visibility("default")));
  12312. #endif
  12313. int fnord (void) { return 42; }
  12314. int main (void)
  12315. {
  12316. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12317. int status = $lt_dlunknown;
  12318. if (self)
  12319. {
  12320. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12321. else
  12322. {
  12323. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12324. else puts (dlerror ());
  12325. }
  12326. /* dlclose (self); */
  12327. }
  12328. else
  12329. puts (dlerror ());
  12330. return status;
  12331. }
  12332. _LT_EOF
  12333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12334. (eval $ac_link) 2>&5
  12335. ac_status=$?
  12336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12337. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12338. (./conftest; exit; ) >&5 2>/dev/null
  12339. lt_status=$?
  12340. case x$lt_status in
  12341. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12342. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12343. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12344. esac
  12345. else :
  12346. # compilation failed
  12347. lt_cv_dlopen_self=no
  12348. fi
  12349. fi
  12350. rm -fr conftest*
  12351. fi
  12352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12353. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  12354. if test yes = "$lt_cv_dlopen_self"; then
  12355. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12357. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  12358. if test ${lt_cv_dlopen_self_static+y}
  12359. then :
  12360. printf %s "(cached) " >&6
  12361. else $as_nop
  12362. if test yes = "$cross_compiling"; then :
  12363. lt_cv_dlopen_self_static=cross
  12364. else
  12365. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12366. lt_status=$lt_dlunknown
  12367. cat > conftest.$ac_ext <<_LT_EOF
  12368. #line $LINENO "configure"
  12369. #include "confdefs.h"
  12370. #if HAVE_DLFCN_H
  12371. #include <dlfcn.h>
  12372. #endif
  12373. #include <stdio.h>
  12374. #ifdef RTLD_GLOBAL
  12375. # define LT_DLGLOBAL RTLD_GLOBAL
  12376. #else
  12377. # ifdef DL_GLOBAL
  12378. # define LT_DLGLOBAL DL_GLOBAL
  12379. # else
  12380. # define LT_DLGLOBAL 0
  12381. # endif
  12382. #endif
  12383. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12384. find out it does not work in some platform. */
  12385. #ifndef LT_DLLAZY_OR_NOW
  12386. # ifdef RTLD_LAZY
  12387. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12388. # else
  12389. # ifdef DL_LAZY
  12390. # define LT_DLLAZY_OR_NOW DL_LAZY
  12391. # else
  12392. # ifdef RTLD_NOW
  12393. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12394. # else
  12395. # ifdef DL_NOW
  12396. # define LT_DLLAZY_OR_NOW DL_NOW
  12397. # else
  12398. # define LT_DLLAZY_OR_NOW 0
  12399. # endif
  12400. # endif
  12401. # endif
  12402. # endif
  12403. #endif
  12404. /* When -fvisibility=hidden is used, assume the code has been annotated
  12405. correspondingly for the symbols needed. */
  12406. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12407. int fnord (void) __attribute__((visibility("default")));
  12408. #endif
  12409. int fnord (void) { return 42; }
  12410. int main (void)
  12411. {
  12412. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12413. int status = $lt_dlunknown;
  12414. if (self)
  12415. {
  12416. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12417. else
  12418. {
  12419. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12420. else puts (dlerror ());
  12421. }
  12422. /* dlclose (self); */
  12423. }
  12424. else
  12425. puts (dlerror ());
  12426. return status;
  12427. }
  12428. _LT_EOF
  12429. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12430. (eval $ac_link) 2>&5
  12431. ac_status=$?
  12432. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12433. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12434. (./conftest; exit; ) >&5 2>/dev/null
  12435. lt_status=$?
  12436. case x$lt_status in
  12437. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12438. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12439. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12440. esac
  12441. else :
  12442. # compilation failed
  12443. lt_cv_dlopen_self_static=no
  12444. fi
  12445. fi
  12446. rm -fr conftest*
  12447. fi
  12448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12449. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  12450. fi
  12451. CPPFLAGS=$save_CPPFLAGS
  12452. LDFLAGS=$save_LDFLAGS
  12453. LIBS=$save_LIBS
  12454. ;;
  12455. esac
  12456. case $lt_cv_dlopen_self in
  12457. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12458. *) enable_dlopen_self=unknown ;;
  12459. esac
  12460. case $lt_cv_dlopen_self_static in
  12461. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12462. *) enable_dlopen_self_static=unknown ;;
  12463. esac
  12464. fi
  12465. striplib=
  12466. old_striplib=
  12467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12468. printf %s "checking whether stripping libraries is possible... " >&6; }
  12469. if test -z "$STRIP"; then
  12470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12471. printf "%s\n" "no" >&6; }
  12472. else
  12473. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12474. old_striplib="$STRIP --strip-debug"
  12475. striplib="$STRIP --strip-unneeded"
  12476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12477. printf "%s\n" "yes" >&6; }
  12478. else
  12479. case $host_os in
  12480. darwin*)
  12481. # FIXME - insert some real tests, host_os isn't really good enough
  12482. striplib="$STRIP -x"
  12483. old_striplib="$STRIP -S"
  12484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12485. printf "%s\n" "yes" >&6; }
  12486. ;;
  12487. freebsd*)
  12488. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  12489. old_striplib="$STRIP --strip-debug"
  12490. striplib="$STRIP --strip-unneeded"
  12491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12492. printf "%s\n" "yes" >&6; }
  12493. else
  12494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12495. printf "%s\n" "no" >&6; }
  12496. fi
  12497. ;;
  12498. *)
  12499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12500. printf "%s\n" "no" >&6; }
  12501. ;;
  12502. esac
  12503. fi
  12504. fi
  12505. # Report what library types will actually be built
  12506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12507. printf %s "checking if libtool supports shared libraries... " >&6; }
  12508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12509. printf "%s\n" "$can_build_shared" >&6; }
  12510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12511. printf %s "checking whether to build shared libraries... " >&6; }
  12512. test no = "$can_build_shared" && enable_shared=no
  12513. # On AIX, shared libraries and static libraries use the same namespace, and
  12514. # are all built from PIC.
  12515. case $host_os in
  12516. aix3*)
  12517. test yes = "$enable_shared" && enable_static=no
  12518. if test -n "$RANLIB"; then
  12519. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12520. postinstall_cmds='$RANLIB $lib'
  12521. fi
  12522. ;;
  12523. aix[4-9]*)
  12524. if test ia64 != "$host_cpu"; then
  12525. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12526. yes,aix,yes) ;; # shared object as lib.so file only
  12527. yes,svr4,*) ;; # shared object as lib.so archive member only
  12528. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12529. esac
  12530. fi
  12531. ;;
  12532. esac
  12533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12534. printf "%s\n" "$enable_shared" >&6; }
  12535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12536. printf %s "checking whether to build static libraries... " >&6; }
  12537. # Make sure either enable_shared or enable_static is yes.
  12538. test yes = "$enable_shared" || enable_static=yes
  12539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12540. printf "%s\n" "$enable_static" >&6; }
  12541. fi
  12542. ac_ext=c
  12543. ac_cpp='$CPP $CPPFLAGS'
  12544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12547. CC=$lt_save_CC
  12548. ac_config_commands="$ac_config_commands libtool"
  12549. # Only expand once:
  12550. ac_ext=c
  12551. ac_cpp='$CPP $CPPFLAGS'
  12552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12555. if test "${ac_cv_prog_cc_c99}" = no
  12556. then :
  12557. as_fn_error $? "Expat requires a C99 compiler." "$LINENO" 5
  12558. fi
  12559. if test "$GCC" = yes
  12560. then :
  12561. for flag in -Wall -Wextra; do
  12562. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12564. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12565. if eval test \${$as_CACHEVAR+y}
  12566. then :
  12567. printf %s "(cached) " >&6
  12568. else $as_nop
  12569. ax_check_save_flags=$CFLAGS
  12570. CFLAGS="$CFLAGS -Werror $flag"
  12571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12572. /* end confdefs.h. */
  12573. int main(void) { return 0; }
  12574. _ACEOF
  12575. if ac_fn_c_try_compile "$LINENO"
  12576. then :
  12577. eval "$as_CACHEVAR=yes"
  12578. else $as_nop
  12579. eval "$as_CACHEVAR=no"
  12580. fi
  12581. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12582. CFLAGS=$ax_check_save_flags
  12583. fi
  12584. eval ac_res=\$$as_CACHEVAR
  12585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12586. printf "%s\n" "$ac_res" >&6; }
  12587. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12588. then :
  12589. if test ${AM_CFLAGS+y}
  12590. then :
  12591. case " $AM_CFLAGS " in #(
  12592. *" $flag "*) :
  12593. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12594. (: AM_CFLAGS already contains $flag) 2>&5
  12595. ac_status=$?
  12596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12597. test $ac_status = 0; } ;; #(
  12598. *) :
  12599. as_fn_append AM_CFLAGS " $flag"
  12600. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12601. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12602. ac_status=$?
  12603. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12604. test $ac_status = 0; }
  12605. ;;
  12606. esac
  12607. else $as_nop
  12608. AM_CFLAGS=$flag
  12609. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12610. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12611. ac_status=$?
  12612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12613. test $ac_status = 0; }
  12614. fi
  12615. else $as_nop
  12616. :
  12617. fi
  12618. done
  12619. for flag in -fexceptions; do
  12620. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12622. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12623. if eval test \${$as_CACHEVAR+y}
  12624. then :
  12625. printf %s "(cached) " >&6
  12626. else $as_nop
  12627. ax_check_save_flags=$CFLAGS
  12628. CFLAGS="$CFLAGS -Werror $flag"
  12629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12630. /* end confdefs.h. */
  12631. int main(void) { return 0; }
  12632. _ACEOF
  12633. if ac_fn_c_try_compile "$LINENO"
  12634. then :
  12635. eval "$as_CACHEVAR=yes"
  12636. else $as_nop
  12637. eval "$as_CACHEVAR=no"
  12638. fi
  12639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12640. CFLAGS=$ax_check_save_flags
  12641. fi
  12642. eval ac_res=\$$as_CACHEVAR
  12643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12644. printf "%s\n" "$ac_res" >&6; }
  12645. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12646. then :
  12647. if test ${AM_CFLAGS+y}
  12648. then :
  12649. case " $AM_CFLAGS " in #(
  12650. *" $flag "*) :
  12651. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12652. (: AM_CFLAGS already contains $flag) 2>&5
  12653. ac_status=$?
  12654. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12655. test $ac_status = 0; } ;; #(
  12656. *) :
  12657. as_fn_append AM_CFLAGS " $flag"
  12658. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12659. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12660. ac_status=$?
  12661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12662. test $ac_status = 0; }
  12663. ;;
  12664. esac
  12665. else $as_nop
  12666. AM_CFLAGS=$flag
  12667. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12668. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12669. ac_status=$?
  12670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12671. test $ac_status = 0; }
  12672. fi
  12673. else $as_nop
  12674. :
  12675. fi
  12676. done
  12677. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  12678. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12680. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12681. if eval test \${$as_CACHEVAR+y}
  12682. then :
  12683. printf %s "(cached) " >&6
  12684. else $as_nop
  12685. ax_check_save_flags=$CFLAGS
  12686. CFLAGS="$CFLAGS -Werror $flag"
  12687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12688. /* end confdefs.h. */
  12689. int main(void) { return 0; }
  12690. _ACEOF
  12691. if ac_fn_c_try_compile "$LINENO"
  12692. then :
  12693. eval "$as_CACHEVAR=yes"
  12694. else $as_nop
  12695. eval "$as_CACHEVAR=no"
  12696. fi
  12697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12698. CFLAGS=$ax_check_save_flags
  12699. fi
  12700. eval ac_res=\$$as_CACHEVAR
  12701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12702. printf "%s\n" "$ac_res" >&6; }
  12703. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12704. then :
  12705. if test ${AM_CFLAGS+y}
  12706. then :
  12707. case " $AM_CFLAGS " in #(
  12708. *" $flag "*) :
  12709. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12710. (: AM_CFLAGS already contains $flag) 2>&5
  12711. ac_status=$?
  12712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12713. test $ac_status = 0; } ;; #(
  12714. *) :
  12715. as_fn_append AM_CFLAGS " $flag"
  12716. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12717. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12718. ac_status=$?
  12719. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12720. test $ac_status = 0; }
  12721. ;;
  12722. esac
  12723. else $as_nop
  12724. AM_CFLAGS=$flag
  12725. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12726. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12727. ac_status=$?
  12728. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12729. test $ac_status = 0; }
  12730. fi
  12731. else $as_nop
  12732. :
  12733. fi
  12734. done
  12735. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  12736. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12738. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12739. if eval test \${$as_CACHEVAR+y}
  12740. then :
  12741. printf %s "(cached) " >&6
  12742. else $as_nop
  12743. ax_check_save_flags=$CFLAGS
  12744. CFLAGS="$CFLAGS -Werror $flag"
  12745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12746. /* end confdefs.h. */
  12747. int main(void) { return 0; }
  12748. _ACEOF
  12749. if ac_fn_c_try_compile "$LINENO"
  12750. then :
  12751. eval "$as_CACHEVAR=yes"
  12752. else $as_nop
  12753. eval "$as_CACHEVAR=no"
  12754. fi
  12755. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12756. CFLAGS=$ax_check_save_flags
  12757. fi
  12758. eval ac_res=\$$as_CACHEVAR
  12759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12760. printf "%s\n" "$ac_res" >&6; }
  12761. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12762. then :
  12763. if test ${AM_CFLAGS+y}
  12764. then :
  12765. case " $AM_CFLAGS " in #(
  12766. *" $flag "*) :
  12767. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12768. (: AM_CFLAGS already contains $flag) 2>&5
  12769. ac_status=$?
  12770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12771. test $ac_status = 0; } ;; #(
  12772. *) :
  12773. as_fn_append AM_CFLAGS " $flag"
  12774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12775. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12776. ac_status=$?
  12777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12778. test $ac_status = 0; }
  12779. ;;
  12780. esac
  12781. else $as_nop
  12782. AM_CFLAGS=$flag
  12783. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12784. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12785. ac_status=$?
  12786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12787. test $ac_status = 0; }
  12788. fi
  12789. else $as_nop
  12790. :
  12791. fi
  12792. done
  12793. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  12794. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12796. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12797. if eval test \${$as_CACHEVAR+y}
  12798. then :
  12799. printf %s "(cached) " >&6
  12800. else $as_nop
  12801. ax_check_save_flags=$CFLAGS
  12802. CFLAGS="$CFLAGS -Werror $flag"
  12803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12804. /* end confdefs.h. */
  12805. int main(void) { return 0; }
  12806. _ACEOF
  12807. if ac_fn_c_try_compile "$LINENO"
  12808. then :
  12809. eval "$as_CACHEVAR=yes"
  12810. else $as_nop
  12811. eval "$as_CACHEVAR=no"
  12812. fi
  12813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12814. CFLAGS=$ax_check_save_flags
  12815. fi
  12816. eval ac_res=\$$as_CACHEVAR
  12817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12818. printf "%s\n" "$ac_res" >&6; }
  12819. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12820. then :
  12821. if test ${AM_CFLAGS+y}
  12822. then :
  12823. case " $AM_CFLAGS " in #(
  12824. *" $flag "*) :
  12825. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12826. (: AM_CFLAGS already contains $flag) 2>&5
  12827. ac_status=$?
  12828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12829. test $ac_status = 0; } ;; #(
  12830. *) :
  12831. as_fn_append AM_CFLAGS " $flag"
  12832. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12833. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12834. ac_status=$?
  12835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12836. test $ac_status = 0; }
  12837. ;;
  12838. esac
  12839. else $as_nop
  12840. AM_CFLAGS=$flag
  12841. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12842. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12843. ac_status=$?
  12844. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12845. test $ac_status = 0; }
  12846. fi
  12847. else $as_nop
  12848. :
  12849. fi
  12850. done
  12851. for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
  12852. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12854. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12855. if eval test \${$as_CACHEVAR+y}
  12856. then :
  12857. printf %s "(cached) " >&6
  12858. else $as_nop
  12859. ax_check_save_flags=$CFLAGS
  12860. CFLAGS="$CFLAGS -Werror $flag"
  12861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12862. /* end confdefs.h. */
  12863. int main(void) { return 0; }
  12864. _ACEOF
  12865. if ac_fn_c_try_compile "$LINENO"
  12866. then :
  12867. eval "$as_CACHEVAR=yes"
  12868. else $as_nop
  12869. eval "$as_CACHEVAR=no"
  12870. fi
  12871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12872. CFLAGS=$ax_check_save_flags
  12873. fi
  12874. eval ac_res=\$$as_CACHEVAR
  12875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12876. printf "%s\n" "$ac_res" >&6; }
  12877. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12878. then :
  12879. if test ${AM_CFLAGS+y}
  12880. then :
  12881. case " $AM_CFLAGS " in #(
  12882. *" $flag "*) :
  12883. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12884. (: AM_CFLAGS already contains $flag) 2>&5
  12885. ac_status=$?
  12886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12887. test $ac_status = 0; } ;; #(
  12888. *) :
  12889. as_fn_append AM_CFLAGS " $flag"
  12890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12891. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12892. ac_status=$?
  12893. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12894. test $ac_status = 0; }
  12895. ;;
  12896. esac
  12897. else $as_nop
  12898. AM_CFLAGS=$flag
  12899. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12900. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12901. ac_status=$?
  12902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12903. test $ac_status = 0; }
  12904. fi
  12905. else $as_nop
  12906. :
  12907. fi
  12908. done
  12909. fi
  12910. ac_ext=cpp
  12911. ac_cpp='$CXXCPP $CPPFLAGS'
  12912. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12913. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12914. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12915. ac_ext=cpp
  12916. ac_cpp='$CXXCPP $CPPFLAGS'
  12917. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12918. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12919. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12920. if test -z "$CXX"; then
  12921. if test -n "$CCC"; then
  12922. CXX=$CCC
  12923. else
  12924. if test -n "$ac_tool_prefix"; then
  12925. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12926. do
  12927. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12928. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12930. printf %s "checking for $ac_word... " >&6; }
  12931. if test ${ac_cv_prog_CXX+y}
  12932. then :
  12933. printf %s "(cached) " >&6
  12934. else $as_nop
  12935. if test -n "$CXX"; then
  12936. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12937. else
  12938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12939. for as_dir in $PATH
  12940. do
  12941. IFS=$as_save_IFS
  12942. case $as_dir in #(((
  12943. '') as_dir=./ ;;
  12944. */) ;;
  12945. *) as_dir=$as_dir/ ;;
  12946. esac
  12947. for ac_exec_ext in '' $ac_executable_extensions; do
  12948. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12949. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12951. break 2
  12952. fi
  12953. done
  12954. done
  12955. IFS=$as_save_IFS
  12956. fi
  12957. fi
  12958. CXX=$ac_cv_prog_CXX
  12959. if test -n "$CXX"; then
  12960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12961. printf "%s\n" "$CXX" >&6; }
  12962. else
  12963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12964. printf "%s\n" "no" >&6; }
  12965. fi
  12966. test -n "$CXX" && break
  12967. done
  12968. fi
  12969. if test -z "$CXX"; then
  12970. ac_ct_CXX=$CXX
  12971. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12972. do
  12973. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12974. set dummy $ac_prog; ac_word=$2
  12975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12976. printf %s "checking for $ac_word... " >&6; }
  12977. if test ${ac_cv_prog_ac_ct_CXX+y}
  12978. then :
  12979. printf %s "(cached) " >&6
  12980. else $as_nop
  12981. if test -n "$ac_ct_CXX"; then
  12982. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12983. else
  12984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12985. for as_dir in $PATH
  12986. do
  12987. IFS=$as_save_IFS
  12988. case $as_dir in #(((
  12989. '') as_dir=./ ;;
  12990. */) ;;
  12991. *) as_dir=$as_dir/ ;;
  12992. esac
  12993. for ac_exec_ext in '' $ac_executable_extensions; do
  12994. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12995. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12997. break 2
  12998. fi
  12999. done
  13000. done
  13001. IFS=$as_save_IFS
  13002. fi
  13003. fi
  13004. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13005. if test -n "$ac_ct_CXX"; then
  13006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13007. printf "%s\n" "$ac_ct_CXX" >&6; }
  13008. else
  13009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13010. printf "%s\n" "no" >&6; }
  13011. fi
  13012. test -n "$ac_ct_CXX" && break
  13013. done
  13014. if test "x$ac_ct_CXX" = x; then
  13015. CXX="g++"
  13016. else
  13017. case $cross_compiling:$ac_tool_warned in
  13018. yes:)
  13019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13020. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13021. ac_tool_warned=yes ;;
  13022. esac
  13023. CXX=$ac_ct_CXX
  13024. fi
  13025. fi
  13026. fi
  13027. fi
  13028. # Provide some information about the compiler.
  13029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13030. set X $ac_compile
  13031. ac_compiler=$2
  13032. for ac_option in --version -v -V -qversion; do
  13033. { { ac_try="$ac_compiler $ac_option >&5"
  13034. case "(($ac_try" in
  13035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13036. *) ac_try_echo=$ac_try;;
  13037. esac
  13038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13039. printf "%s\n" "$ac_try_echo"; } >&5
  13040. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13041. ac_status=$?
  13042. if test -s conftest.err; then
  13043. sed '10a\
  13044. ... rest of stderr output deleted ...
  13045. 10q' conftest.err >conftest.er1
  13046. cat conftest.er1 >&5
  13047. fi
  13048. rm -f conftest.er1 conftest.err
  13049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13050. test $ac_status = 0; }
  13051. done
  13052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  13053. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  13054. if test ${ac_cv_cxx_compiler_gnu+y}
  13055. then :
  13056. printf %s "(cached) " >&6
  13057. else $as_nop
  13058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13059. /* end confdefs.h. */
  13060. int
  13061. main (void)
  13062. {
  13063. #ifndef __GNUC__
  13064. choke me
  13065. #endif
  13066. ;
  13067. return 0;
  13068. }
  13069. _ACEOF
  13070. if ac_fn_cxx_try_compile "$LINENO"
  13071. then :
  13072. ac_compiler_gnu=yes
  13073. else $as_nop
  13074. ac_compiler_gnu=no
  13075. fi
  13076. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13077. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13078. fi
  13079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13080. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  13081. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13082. if test $ac_compiler_gnu = yes; then
  13083. GXX=yes
  13084. else
  13085. GXX=
  13086. fi
  13087. ac_test_CXXFLAGS=${CXXFLAGS+y}
  13088. ac_save_CXXFLAGS=$CXXFLAGS
  13089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13090. printf %s "checking whether $CXX accepts -g... " >&6; }
  13091. if test ${ac_cv_prog_cxx_g+y}
  13092. then :
  13093. printf %s "(cached) " >&6
  13094. else $as_nop
  13095. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13096. ac_cxx_werror_flag=yes
  13097. ac_cv_prog_cxx_g=no
  13098. CXXFLAGS="-g"
  13099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13100. /* end confdefs.h. */
  13101. int
  13102. main (void)
  13103. {
  13104. ;
  13105. return 0;
  13106. }
  13107. _ACEOF
  13108. if ac_fn_cxx_try_compile "$LINENO"
  13109. then :
  13110. ac_cv_prog_cxx_g=yes
  13111. else $as_nop
  13112. CXXFLAGS=""
  13113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13114. /* end confdefs.h. */
  13115. int
  13116. main (void)
  13117. {
  13118. ;
  13119. return 0;
  13120. }
  13121. _ACEOF
  13122. if ac_fn_cxx_try_compile "$LINENO"
  13123. then :
  13124. else $as_nop
  13125. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13126. CXXFLAGS="-g"
  13127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13128. /* end confdefs.h. */
  13129. int
  13130. main (void)
  13131. {
  13132. ;
  13133. return 0;
  13134. }
  13135. _ACEOF
  13136. if ac_fn_cxx_try_compile "$LINENO"
  13137. then :
  13138. ac_cv_prog_cxx_g=yes
  13139. fi
  13140. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13141. fi
  13142. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13143. fi
  13144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13145. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13146. fi
  13147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13148. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  13149. if test $ac_test_CXXFLAGS; then
  13150. CXXFLAGS=$ac_save_CXXFLAGS
  13151. elif test $ac_cv_prog_cxx_g = yes; then
  13152. if test "$GXX" = yes; then
  13153. CXXFLAGS="-g -O2"
  13154. else
  13155. CXXFLAGS="-g"
  13156. fi
  13157. else
  13158. if test "$GXX" = yes; then
  13159. CXXFLAGS="-O2"
  13160. else
  13161. CXXFLAGS=
  13162. fi
  13163. fi
  13164. ac_prog_cxx_stdcxx=no
  13165. if test x$ac_prog_cxx_stdcxx = xno
  13166. then :
  13167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  13168. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  13169. if test ${ac_cv_prog_cxx_cxx11+y}
  13170. then :
  13171. printf %s "(cached) " >&6
  13172. else $as_nop
  13173. ac_cv_prog_cxx_cxx11=no
  13174. ac_save_CXX=$CXX
  13175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13176. /* end confdefs.h. */
  13177. $ac_cxx_conftest_cxx11_program
  13178. _ACEOF
  13179. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  13180. do
  13181. CXX="$ac_save_CXX $ac_arg"
  13182. if ac_fn_cxx_try_compile "$LINENO"
  13183. then :
  13184. ac_cv_prog_cxx_cxx11=$ac_arg
  13185. fi
  13186. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13187. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  13188. done
  13189. rm -f conftest.$ac_ext
  13190. CXX=$ac_save_CXX
  13191. fi
  13192. if test "x$ac_cv_prog_cxx_cxx11" = xno
  13193. then :
  13194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13195. printf "%s\n" "unsupported" >&6; }
  13196. else $as_nop
  13197. if test "x$ac_cv_prog_cxx_cxx11" = x
  13198. then :
  13199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13200. printf "%s\n" "none needed" >&6; }
  13201. else $as_nop
  13202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  13203. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  13204. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  13205. fi
  13206. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  13207. ac_prog_cxx_stdcxx=cxx11
  13208. fi
  13209. fi
  13210. if test x$ac_prog_cxx_stdcxx = xno
  13211. then :
  13212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  13213. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  13214. if test ${ac_cv_prog_cxx_cxx98+y}
  13215. then :
  13216. printf %s "(cached) " >&6
  13217. else $as_nop
  13218. ac_cv_prog_cxx_cxx98=no
  13219. ac_save_CXX=$CXX
  13220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13221. /* end confdefs.h. */
  13222. $ac_cxx_conftest_cxx98_program
  13223. _ACEOF
  13224. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  13225. do
  13226. CXX="$ac_save_CXX $ac_arg"
  13227. if ac_fn_cxx_try_compile "$LINENO"
  13228. then :
  13229. ac_cv_prog_cxx_cxx98=$ac_arg
  13230. fi
  13231. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13232. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  13233. done
  13234. rm -f conftest.$ac_ext
  13235. CXX=$ac_save_CXX
  13236. fi
  13237. if test "x$ac_cv_prog_cxx_cxx98" = xno
  13238. then :
  13239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13240. printf "%s\n" "unsupported" >&6; }
  13241. else $as_nop
  13242. if test "x$ac_cv_prog_cxx_cxx98" = x
  13243. then :
  13244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13245. printf "%s\n" "none needed" >&6; }
  13246. else $as_nop
  13247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  13248. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  13249. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  13250. fi
  13251. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  13252. ac_prog_cxx_stdcxx=cxx98
  13253. fi
  13254. fi
  13255. ac_ext=cpp
  13256. ac_cpp='$CXXCPP $CPPFLAGS'
  13257. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13258. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13259. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13260. depcc="$CXX" am_compiler_list=
  13261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13262. printf %s "checking dependency style of $depcc... " >&6; }
  13263. if test ${am_cv_CXX_dependencies_compiler_type+y}
  13264. then :
  13265. printf %s "(cached) " >&6
  13266. else $as_nop
  13267. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13268. # We make a subdir and do the tests there. Otherwise we can end up
  13269. # making bogus files that we don't know about and never remove. For
  13270. # instance it was reported that on HP-UX the gcc test will end up
  13271. # making a dummy file named 'D' -- because '-MD' means "put the output
  13272. # in D".
  13273. rm -rf conftest.dir
  13274. mkdir conftest.dir
  13275. # Copy depcomp to subdir because otherwise we won't find it if we're
  13276. # using a relative directory.
  13277. cp "$am_depcomp" conftest.dir
  13278. cd conftest.dir
  13279. # We will build objects and dependencies in a subdirectory because
  13280. # it helps to detect inapplicable dependency modes. For instance
  13281. # both Tru64's cc and ICC support -MD to output dependencies as a
  13282. # side effect of compilation, but ICC will put the dependencies in
  13283. # the current directory while Tru64 will put them in the object
  13284. # directory.
  13285. mkdir sub
  13286. am_cv_CXX_dependencies_compiler_type=none
  13287. if test "$am_compiler_list" = ""; then
  13288. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13289. fi
  13290. am__universal=false
  13291. case " $depcc " in #(
  13292. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13293. esac
  13294. for depmode in $am_compiler_list; do
  13295. # Setup a source with many dependencies, because some compilers
  13296. # like to wrap large dependency lists on column 80 (with \), and
  13297. # we should not choose a depcomp mode which is confused by this.
  13298. #
  13299. # We need to recreate these files for each test, as the compiler may
  13300. # overwrite some of them when testing with obscure command lines.
  13301. # This happens at least with the AIX C compiler.
  13302. : > sub/conftest.c
  13303. for i in 1 2 3 4 5 6; do
  13304. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13305. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13306. # Solaris 10 /bin/sh.
  13307. echo '/* dummy */' > sub/conftst$i.h
  13308. done
  13309. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13310. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13311. # mode. It turns out that the SunPro C++ compiler does not properly
  13312. # handle '-M -o', and we need to detect this. Also, some Intel
  13313. # versions had trouble with output in subdirs.
  13314. am__obj=sub/conftest.${OBJEXT-o}
  13315. am__minus_obj="-o $am__obj"
  13316. case $depmode in
  13317. gcc)
  13318. # This depmode causes a compiler race in universal mode.
  13319. test "$am__universal" = false || continue
  13320. ;;
  13321. nosideeffect)
  13322. # After this tag, mechanisms are not by side-effect, so they'll
  13323. # only be used when explicitly requested.
  13324. if test "x$enable_dependency_tracking" = xyes; then
  13325. continue
  13326. else
  13327. break
  13328. fi
  13329. ;;
  13330. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13331. # This compiler won't grok '-c -o', but also, the minuso test has
  13332. # not run yet. These depmodes are late enough in the game, and
  13333. # so weak that their functioning should not be impacted.
  13334. am__obj=conftest.${OBJEXT-o}
  13335. am__minus_obj=
  13336. ;;
  13337. none) break ;;
  13338. esac
  13339. if depmode=$depmode \
  13340. source=sub/conftest.c object=$am__obj \
  13341. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13342. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13343. >/dev/null 2>conftest.err &&
  13344. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13345. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13346. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13347. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13348. # icc doesn't choke on unknown options, it will just issue warnings
  13349. # or remarks (even with -Werror). So we grep stderr for any message
  13350. # that says an option was ignored or not supported.
  13351. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13352. # icc: Command line warning: ignoring option '-M'; no argument required
  13353. # The diagnosis changed in icc 8.0:
  13354. # icc: Command line remark: option '-MP' not supported
  13355. if (grep 'ignoring option' conftest.err ||
  13356. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13357. am_cv_CXX_dependencies_compiler_type=$depmode
  13358. break
  13359. fi
  13360. fi
  13361. done
  13362. cd ..
  13363. rm -rf conftest.dir
  13364. else
  13365. am_cv_CXX_dependencies_compiler_type=none
  13366. fi
  13367. fi
  13368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13369. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13370. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13371. if
  13372. test "x$enable_dependency_tracking" != xno \
  13373. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13374. am__fastdepCXX_TRUE=
  13375. am__fastdepCXX_FALSE='#'
  13376. else
  13377. am__fastdepCXX_TRUE='#'
  13378. am__fastdepCXX_FALSE=
  13379. fi
  13380. func_stripname_cnf ()
  13381. {
  13382. case $2 in
  13383. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  13384. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  13385. esac
  13386. } # func_stripname_cnf
  13387. if test -n "$CXX" && ( test no != "$CXX" &&
  13388. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  13389. (test g++ != "$CXX"))); then
  13390. ac_ext=cpp
  13391. ac_cpp='$CXXCPP $CPPFLAGS'
  13392. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13393. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13394. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13396. printf %s "checking how to run the C++ preprocessor... " >&6; }
  13397. if test -z "$CXXCPP"; then
  13398. if test ${ac_cv_prog_CXXCPP+y}
  13399. then :
  13400. printf %s "(cached) " >&6
  13401. else $as_nop
  13402. # Double quotes because $CXX needs to be expanded
  13403. for CXXCPP in "$CXX -E" cpp /lib/cpp
  13404. do
  13405. ac_preproc_ok=false
  13406. for ac_cxx_preproc_warn_flag in '' yes
  13407. do
  13408. # Use a header file that comes with gcc, so configuring glibc
  13409. # with a fresh cross-compiler works.
  13410. # On the NeXT, cc -E runs the code through the compiler's parser,
  13411. # not just through cpp. "Syntax error" is here to catch this case.
  13412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13413. /* end confdefs.h. */
  13414. #include <limits.h>
  13415. Syntax error
  13416. _ACEOF
  13417. if ac_fn_cxx_try_cpp "$LINENO"
  13418. then :
  13419. else $as_nop
  13420. # Broken: fails on valid input.
  13421. continue
  13422. fi
  13423. rm -f conftest.err conftest.i conftest.$ac_ext
  13424. # OK, works on sane cases. Now check whether nonexistent headers
  13425. # can be detected and how.
  13426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13427. /* end confdefs.h. */
  13428. #include <ac_nonexistent.h>
  13429. _ACEOF
  13430. if ac_fn_cxx_try_cpp "$LINENO"
  13431. then :
  13432. # Broken: success on invalid input.
  13433. continue
  13434. else $as_nop
  13435. # Passes both tests.
  13436. ac_preproc_ok=:
  13437. break
  13438. fi
  13439. rm -f conftest.err conftest.i conftest.$ac_ext
  13440. done
  13441. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13442. rm -f conftest.i conftest.err conftest.$ac_ext
  13443. if $ac_preproc_ok
  13444. then :
  13445. break
  13446. fi
  13447. done
  13448. ac_cv_prog_CXXCPP=$CXXCPP
  13449. fi
  13450. CXXCPP=$ac_cv_prog_CXXCPP
  13451. else
  13452. ac_cv_prog_CXXCPP=$CXXCPP
  13453. fi
  13454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13455. printf "%s\n" "$CXXCPP" >&6; }
  13456. ac_preproc_ok=false
  13457. for ac_cxx_preproc_warn_flag in '' yes
  13458. do
  13459. # Use a header file that comes with gcc, so configuring glibc
  13460. # with a fresh cross-compiler works.
  13461. # On the NeXT, cc -E runs the code through the compiler's parser,
  13462. # not just through cpp. "Syntax error" is here to catch this case.
  13463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13464. /* end confdefs.h. */
  13465. #include <limits.h>
  13466. Syntax error
  13467. _ACEOF
  13468. if ac_fn_cxx_try_cpp "$LINENO"
  13469. then :
  13470. else $as_nop
  13471. # Broken: fails on valid input.
  13472. continue
  13473. fi
  13474. rm -f conftest.err conftest.i conftest.$ac_ext
  13475. # OK, works on sane cases. Now check whether nonexistent headers
  13476. # can be detected and how.
  13477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13478. /* end confdefs.h. */
  13479. #include <ac_nonexistent.h>
  13480. _ACEOF
  13481. if ac_fn_cxx_try_cpp "$LINENO"
  13482. then :
  13483. # Broken: success on invalid input.
  13484. continue
  13485. else $as_nop
  13486. # Passes both tests.
  13487. ac_preproc_ok=:
  13488. break
  13489. fi
  13490. rm -f conftest.err conftest.i conftest.$ac_ext
  13491. done
  13492. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13493. rm -f conftest.i conftest.err conftest.$ac_ext
  13494. if $ac_preproc_ok
  13495. then :
  13496. else $as_nop
  13497. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13498. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  13499. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13500. See \`config.log' for more details" "$LINENO" 5; }
  13501. fi
  13502. ac_ext=cpp
  13503. ac_cpp='$CXXCPP $CPPFLAGS'
  13504. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13505. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13506. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13507. else
  13508. _lt_caught_CXX_error=yes
  13509. fi
  13510. ac_ext=cpp
  13511. ac_cpp='$CXXCPP $CPPFLAGS'
  13512. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13513. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13514. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13515. archive_cmds_need_lc_CXX=no
  13516. allow_undefined_flag_CXX=
  13517. always_export_symbols_CXX=no
  13518. archive_expsym_cmds_CXX=
  13519. compiler_needs_object_CXX=no
  13520. export_dynamic_flag_spec_CXX=
  13521. hardcode_direct_CXX=no
  13522. hardcode_direct_absolute_CXX=no
  13523. hardcode_libdir_flag_spec_CXX=
  13524. hardcode_libdir_separator_CXX=
  13525. hardcode_minus_L_CXX=no
  13526. hardcode_shlibpath_var_CXX=unsupported
  13527. hardcode_automatic_CXX=no
  13528. inherit_rpath_CXX=no
  13529. module_cmds_CXX=
  13530. module_expsym_cmds_CXX=
  13531. link_all_deplibs_CXX=unknown
  13532. old_archive_cmds_CXX=$old_archive_cmds
  13533. reload_flag_CXX=$reload_flag
  13534. reload_cmds_CXX=$reload_cmds
  13535. no_undefined_flag_CXX=
  13536. whole_archive_flag_spec_CXX=
  13537. enable_shared_with_static_runtimes_CXX=no
  13538. # Source file extension for C++ test sources.
  13539. ac_ext=cpp
  13540. # Object file extension for compiled C++ test sources.
  13541. objext=o
  13542. objext_CXX=$objext
  13543. # No sense in running all these tests if we already determined that
  13544. # the CXX compiler isn't working. Some variables (like enable_shared)
  13545. # are currently assumed to apply to all compilers on this platform,
  13546. # and will be corrupted by setting them based on a non-working compiler.
  13547. if test yes != "$_lt_caught_CXX_error"; then
  13548. # Code to be used in simple compile tests
  13549. lt_simple_compile_test_code="int some_variable = 0;"
  13550. # Code to be used in simple link tests
  13551. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13552. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13553. # If no C compiler was specified, use CC.
  13554. LTCC=${LTCC-"$CC"}
  13555. # If no C compiler flags were specified, use CFLAGS.
  13556. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13557. # Allow CC to be a program name with arguments.
  13558. compiler=$CC
  13559. # save warnings/boilerplate of simple test code
  13560. ac_outfile=conftest.$ac_objext
  13561. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13562. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13563. _lt_compiler_boilerplate=`cat conftest.err`
  13564. $RM conftest*
  13565. ac_outfile=conftest.$ac_objext
  13566. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13567. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13568. _lt_linker_boilerplate=`cat conftest.err`
  13569. $RM -r conftest*
  13570. # Allow CC to be a program name with arguments.
  13571. lt_save_CC=$CC
  13572. lt_save_CFLAGS=$CFLAGS
  13573. lt_save_LD=$LD
  13574. lt_save_GCC=$GCC
  13575. GCC=$GXX
  13576. lt_save_with_gnu_ld=$with_gnu_ld
  13577. lt_save_path_LD=$lt_cv_path_LD
  13578. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13579. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13580. else
  13581. $as_unset lt_cv_prog_gnu_ld
  13582. fi
  13583. if test -n "${lt_cv_path_LDCXX+set}"; then
  13584. lt_cv_path_LD=$lt_cv_path_LDCXX
  13585. else
  13586. $as_unset lt_cv_path_LD
  13587. fi
  13588. test -z "${LDCXX+set}" || LD=$LDCXX
  13589. CC=${CXX-"c++"}
  13590. CFLAGS=$CXXFLAGS
  13591. compiler=$CC
  13592. compiler_CXX=$CC
  13593. func_cc_basename $compiler
  13594. cc_basename=$func_cc_basename_result
  13595. if test -n "$compiler"; then
  13596. # We don't want -fno-exception when compiling C++ code, so set the
  13597. # no_builtin_flag separately
  13598. if test yes = "$GXX"; then
  13599. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13600. else
  13601. lt_prog_compiler_no_builtin_flag_CXX=
  13602. fi
  13603. if test yes = "$GXX"; then
  13604. # Set up default GNU C++ configuration
  13605. # Check whether --with-gnu-ld was given.
  13606. if test ${with_gnu_ld+y}
  13607. then :
  13608. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  13609. else $as_nop
  13610. with_gnu_ld=no
  13611. fi
  13612. ac_prog=ld
  13613. if test yes = "$GCC"; then
  13614. # Check if gcc -print-prog-name=ld gives a path.
  13615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13616. printf %s "checking for ld used by $CC... " >&6; }
  13617. case $host in
  13618. *-*-mingw* | *-*-windows*)
  13619. # gcc leaves a trailing carriage return, which upsets mingw
  13620. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13621. *)
  13622. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13623. esac
  13624. case $ac_prog in
  13625. # Accept absolute paths.
  13626. [\\/]* | ?:[\\/]*)
  13627. re_direlt='/[^/][^/]*/\.\./'
  13628. # Canonicalize the pathname of ld
  13629. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13630. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13631. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13632. done
  13633. test -z "$LD" && LD=$ac_prog
  13634. ;;
  13635. "")
  13636. # If it fails, then pretend we aren't using GCC.
  13637. ac_prog=ld
  13638. ;;
  13639. *)
  13640. # If it is relative, then search for the first ld in PATH.
  13641. with_gnu_ld=unknown
  13642. ;;
  13643. esac
  13644. elif test yes = "$with_gnu_ld"; then
  13645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13646. printf %s "checking for GNU ld... " >&6; }
  13647. else
  13648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13649. printf %s "checking for non-GNU ld... " >&6; }
  13650. fi
  13651. if test ${lt_cv_path_LD+y}
  13652. then :
  13653. printf %s "(cached) " >&6
  13654. else $as_nop
  13655. if test -z "$LD"; then
  13656. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  13657. for ac_dir in $PATH; do
  13658. IFS=$lt_save_ifs
  13659. test -z "$ac_dir" && ac_dir=.
  13660. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13661. lt_cv_path_LD=$ac_dir/$ac_prog
  13662. # Check to see if the program is GNU ld. I'd rather use --version,
  13663. # but apparently some variants of GNU ld only accept -v.
  13664. # Break only if it was the GNU/non-GNU ld that we prefer.
  13665. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13666. *GNU* | *'with BFD'*)
  13667. test no != "$with_gnu_ld" && break
  13668. ;;
  13669. *)
  13670. test yes != "$with_gnu_ld" && break
  13671. ;;
  13672. esac
  13673. fi
  13674. done
  13675. IFS=$lt_save_ifs
  13676. else
  13677. lt_cv_path_LD=$LD # Let the user override the test with a path.
  13678. fi
  13679. fi
  13680. LD=$lt_cv_path_LD
  13681. if test -n "$LD"; then
  13682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13683. printf "%s\n" "$LD" >&6; }
  13684. else
  13685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13686. printf "%s\n" "no" >&6; }
  13687. fi
  13688. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13690. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  13691. if test ${lt_cv_prog_gnu_ld+y}
  13692. then :
  13693. printf %s "(cached) " >&6
  13694. else $as_nop
  13695. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13696. case `$LD -v 2>&1 </dev/null` in
  13697. *GNU* | *'with BFD'*)
  13698. lt_cv_prog_gnu_ld=yes
  13699. ;;
  13700. *)
  13701. lt_cv_prog_gnu_ld=no
  13702. ;;
  13703. esac
  13704. fi
  13705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13706. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  13707. with_gnu_ld=$lt_cv_prog_gnu_ld
  13708. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13709. # archiving commands below assume that GNU ld is being used.
  13710. if test yes = "$with_gnu_ld"; then
  13711. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13712. 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'
  13713. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13714. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13715. # If archive_cmds runs LD, not CC, wlarc should be empty
  13716. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13717. # investigate it a little bit more. (MM)
  13718. wlarc='$wl'
  13719. # ancient GNU ld didn't support --whole-archive et. al.
  13720. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  13721. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13722. else
  13723. whole_archive_flag_spec_CXX=
  13724. fi
  13725. else
  13726. with_gnu_ld=no
  13727. wlarc=
  13728. # A generic and very simple default shared library creation
  13729. # command for GNU C++ for the case where it uses the native
  13730. # linker, instead of GNU ld. If possible, this setting should
  13731. # overridden to take advantage of the native linker features on
  13732. # the platform it is being used on.
  13733. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13734. fi
  13735. # Commands to make compiler produce verbose output that lists
  13736. # what "hidden" libraries, object files and flags are used when
  13737. # linking a shared library.
  13738. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  13739. else
  13740. GXX=no
  13741. with_gnu_ld=no
  13742. wlarc=
  13743. fi
  13744. # PORTME: fill in a description of your system's C++ link characteristics
  13745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13746. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13747. ld_shlibs_CXX=yes
  13748. case $host_os in
  13749. aix3*)
  13750. # FIXME: insert proper C++ library support
  13751. ld_shlibs_CXX=no
  13752. ;;
  13753. aix[4-9]*)
  13754. if test ia64 = "$host_cpu"; then
  13755. # On IA64, the linker does run time linking by default, so we don't
  13756. # have to do anything special.
  13757. aix_use_runtimelinking=no
  13758. exp_sym_flag='-Bexport'
  13759. no_entry_flag=
  13760. else
  13761. aix_use_runtimelinking=no
  13762. # Test if we are trying to use run time linking or normal
  13763. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13764. # have runtime linking enabled, and use it for executables.
  13765. # For shared libraries, we enable/disable runtime linking
  13766. # depending on the kind of the shared library created -
  13767. # when "with_aix_soname,aix_use_runtimelinking" is:
  13768. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13769. # "aix,yes" lib.so shared, rtl:yes, for executables
  13770. # lib.a static archive
  13771. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13772. # lib.a(lib.so.V) shared, rtl:no, for executables
  13773. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13774. # lib.a(lib.so.V) shared, rtl:no
  13775. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13776. # lib.a static archive
  13777. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13778. for ld_flag in $LDFLAGS; do
  13779. case $ld_flag in
  13780. *-brtl*)
  13781. aix_use_runtimelinking=yes
  13782. break
  13783. ;;
  13784. esac
  13785. done
  13786. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13787. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13788. # so we don't have lib.a shared libs to link our executables.
  13789. # We have to force runtime linking in this case.
  13790. aix_use_runtimelinking=yes
  13791. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13792. fi
  13793. ;;
  13794. esac
  13795. exp_sym_flag='-bexport'
  13796. no_entry_flag='-bnoentry'
  13797. fi
  13798. # When large executables or shared objects are built, AIX ld can
  13799. # have problems creating the table of contents. If linking a library
  13800. # or program results in "error TOC overflow" add -mminimal-toc to
  13801. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13802. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13803. archive_cmds_CXX=''
  13804. hardcode_direct_CXX=yes
  13805. hardcode_direct_absolute_CXX=yes
  13806. hardcode_libdir_separator_CXX=':'
  13807. link_all_deplibs_CXX=yes
  13808. file_list_spec_CXX='$wl-f,'
  13809. case $with_aix_soname,$aix_use_runtimelinking in
  13810. aix,*) ;; # no import file
  13811. svr4,* | *,yes) # use import file
  13812. # The Import File defines what to hardcode.
  13813. hardcode_direct_CXX=no
  13814. hardcode_direct_absolute_CXX=no
  13815. ;;
  13816. esac
  13817. if test yes = "$GXX"; then
  13818. case $host_os in aix4.[012]|aix4.[012].*)
  13819. # We only want to do this on AIX 4.2 and lower, the check
  13820. # below for broken collect2 doesn't work under 4.3+
  13821. collect2name=`$CC -print-prog-name=collect2`
  13822. if test -f "$collect2name" &&
  13823. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13824. then
  13825. # We have reworked collect2
  13826. :
  13827. else
  13828. # We have old collect2
  13829. hardcode_direct_CXX=unsupported
  13830. # It fails to find uninstalled libraries when the uninstalled
  13831. # path is not listed in the libpath. Setting hardcode_minus_L
  13832. # to unsupported forces relinking
  13833. hardcode_minus_L_CXX=yes
  13834. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13835. hardcode_libdir_separator_CXX=
  13836. fi
  13837. esac
  13838. shared_flag='-shared'
  13839. if test yes = "$aix_use_runtimelinking"; then
  13840. shared_flag=$shared_flag' $wl-G'
  13841. fi
  13842. # Need to ensure runtime linking is disabled for the traditional
  13843. # shared library, or the linker may eventually find shared libraries
  13844. # /with/ Import File - we do not want to mix them.
  13845. shared_flag_aix='-shared'
  13846. shared_flag_svr4='-shared $wl-G'
  13847. else
  13848. # not using gcc
  13849. if test ia64 = "$host_cpu"; then
  13850. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13851. # chokes on -Wl,-G. The following line is correct:
  13852. shared_flag='-G'
  13853. else
  13854. if test yes = "$aix_use_runtimelinking"; then
  13855. shared_flag='$wl-G'
  13856. else
  13857. shared_flag='$wl-bM:SRE'
  13858. fi
  13859. shared_flag_aix='$wl-bM:SRE'
  13860. shared_flag_svr4='$wl-G'
  13861. fi
  13862. fi
  13863. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13864. # It seems that -bexpall does not export symbols beginning with
  13865. # underscore (_), so it is better to generate a list of symbols to
  13866. # export.
  13867. always_export_symbols_CXX=yes
  13868. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13869. # Warning - without using the other runtime loading flags (-brtl),
  13870. # -berok will link without error, but may produce a broken library.
  13871. # The "-G" linker flag allows undefined symbols.
  13872. no_undefined_flag_CXX='-bernotok'
  13873. # Determine the default libpath from the value encoded in an empty
  13874. # executable.
  13875. if test set = "${lt_cv_aix_libpath+set}"; then
  13876. aix_libpath=$lt_cv_aix_libpath
  13877. else
  13878. if test ${lt_cv_aix_libpath__CXX+y}
  13879. then :
  13880. printf %s "(cached) " >&6
  13881. else $as_nop
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. int
  13885. main (void)
  13886. {
  13887. ;
  13888. return 0;
  13889. }
  13890. _ACEOF
  13891. if ac_fn_cxx_try_link "$LINENO"
  13892. then :
  13893. lt_aix_libpath_sed='
  13894. /Import File Strings/,/^$/ {
  13895. /^0/ {
  13896. s/^0 *\([^ ]*\) *$/\1/
  13897. p
  13898. }
  13899. }'
  13900. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13901. # Check for a 64-bit object if we didn't find anything.
  13902. if test -z "$lt_cv_aix_libpath__CXX"; then
  13903. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13904. fi
  13905. fi
  13906. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13907. conftest$ac_exeext conftest.$ac_ext
  13908. if test -z "$lt_cv_aix_libpath__CXX"; then
  13909. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13910. fi
  13911. fi
  13912. aix_libpath=$lt_cv_aix_libpath__CXX
  13913. fi
  13914. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13915. 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
  13916. else
  13917. if test ia64 = "$host_cpu"; then
  13918. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13919. allow_undefined_flag_CXX="-z nodefs"
  13920. 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"
  13921. else
  13922. # Determine the default libpath from the value encoded in an
  13923. # empty executable.
  13924. if test set = "${lt_cv_aix_libpath+set}"; then
  13925. aix_libpath=$lt_cv_aix_libpath
  13926. else
  13927. if test ${lt_cv_aix_libpath__CXX+y}
  13928. then :
  13929. printf %s "(cached) " >&6
  13930. else $as_nop
  13931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13932. /* end confdefs.h. */
  13933. int
  13934. main (void)
  13935. {
  13936. ;
  13937. return 0;
  13938. }
  13939. _ACEOF
  13940. if ac_fn_cxx_try_link "$LINENO"
  13941. then :
  13942. lt_aix_libpath_sed='
  13943. /Import File Strings/,/^$/ {
  13944. /^0/ {
  13945. s/^0 *\([^ ]*\) *$/\1/
  13946. p
  13947. }
  13948. }'
  13949. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13950. # Check for a 64-bit object if we didn't find anything.
  13951. if test -z "$lt_cv_aix_libpath__CXX"; then
  13952. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13953. fi
  13954. fi
  13955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13956. conftest$ac_exeext conftest.$ac_ext
  13957. if test -z "$lt_cv_aix_libpath__CXX"; then
  13958. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13959. fi
  13960. fi
  13961. aix_libpath=$lt_cv_aix_libpath__CXX
  13962. fi
  13963. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13964. # Warning - without using the other run time loading flags,
  13965. # -berok will link without error, but may produce a broken library.
  13966. no_undefined_flag_CXX=' $wl-bernotok'
  13967. allow_undefined_flag_CXX=' $wl-berok'
  13968. if test yes = "$with_gnu_ld"; then
  13969. # We only use this code for GNU lds that support --whole-archive.
  13970. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13971. else
  13972. # Exported symbols can be pulled into shared objects from archives
  13973. whole_archive_flag_spec_CXX='$convenience'
  13974. fi
  13975. archive_cmds_need_lc_CXX=yes
  13976. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13977. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13978. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13979. if test svr4 != "$with_aix_soname"; then
  13980. # This is similar to how AIX traditionally builds its shared
  13981. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13982. 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'
  13983. fi
  13984. if test aix != "$with_aix_soname"; then
  13985. 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'
  13986. else
  13987. # used by -dlpreopen to get the symbols
  13988. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13989. fi
  13990. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13991. fi
  13992. fi
  13993. ;;
  13994. beos*)
  13995. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13996. allow_undefined_flag_CXX=unsupported
  13997. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13998. # support --undefined. This deserves some investigation. FIXME
  13999. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14000. else
  14001. ld_shlibs_CXX=no
  14002. fi
  14003. ;;
  14004. chorus*)
  14005. case $cc_basename in
  14006. *)
  14007. # FIXME: insert proper C++ library support
  14008. ld_shlibs_CXX=no
  14009. ;;
  14010. esac
  14011. ;;
  14012. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14013. case $GXX,$cc_basename in
  14014. ,cl* | no,cl* | ,icl* | no,icl*)
  14015. # Native MSVC or ICC
  14016. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14017. # no search path for DLLs.
  14018. hardcode_libdir_flag_spec_CXX=' '
  14019. allow_undefined_flag_CXX=unsupported
  14020. always_export_symbols_CXX=yes
  14021. file_list_spec_CXX='@'
  14022. # Tell ltmain to make .lib files, not .a files.
  14023. libext=lib
  14024. # Tell ltmain to make .dll files, not .so files.
  14025. shrext_cmds=.dll
  14026. # FIXME: Setting linknames here is a bad hack.
  14027. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  14028. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  14029. cp "$export_symbols" "$output_objdir/$soname.def";
  14030. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  14031. else
  14032. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  14033. fi~
  14034. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  14035. linknames='
  14036. # The linker will not automatically build a static lib if we build a DLL.
  14037. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  14038. enable_shared_with_static_runtimes_CXX=yes
  14039. # Don't use ranlib
  14040. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  14041. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  14042. lt_tool_outputfile="@TOOL_OUTPUT@"~
  14043. case $lt_outputfile in
  14044. *.exe|*.EXE) ;;
  14045. *)
  14046. lt_outputfile=$lt_outputfile.exe
  14047. lt_tool_outputfile=$lt_tool_outputfile.exe
  14048. ;;
  14049. esac~
  14050. func_to_tool_file "$lt_outputfile"~
  14051. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  14052. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  14053. $RM "$lt_outputfile.manifest";
  14054. fi'
  14055. ;;
  14056. *)
  14057. # g++
  14058. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  14059. # as there is no search path for DLLs.
  14060. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14061. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  14062. allow_undefined_flag_CXX=unsupported
  14063. always_export_symbols_CXX=no
  14064. enable_shared_with_static_runtimes_CXX=yes
  14065. file_list_spec_CXX='@'
  14066. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  14067. 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'
  14068. # If the export-symbols file already is a .def file, use it as
  14069. # is; otherwise, prepend EXPORTS...
  14070. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  14071. cp $export_symbols $output_objdir/$soname.def;
  14072. else
  14073. echo EXPORTS > $output_objdir/$soname.def;
  14074. cat $export_symbols >> $output_objdir/$soname.def;
  14075. fi~
  14076. $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'
  14077. else
  14078. ld_shlibs_CXX=no
  14079. fi
  14080. ;;
  14081. esac
  14082. ;;
  14083. darwin* | rhapsody*)
  14084. archive_cmds_need_lc_CXX=no
  14085. hardcode_direct_CXX=no
  14086. hardcode_automatic_CXX=yes
  14087. hardcode_shlibpath_var_CXX=unsupported
  14088. if test yes = "$lt_cv_ld_force_load"; then
  14089. 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\"`'
  14090. else
  14091. whole_archive_flag_spec_CXX=''
  14092. fi
  14093. link_all_deplibs_CXX=yes
  14094. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  14095. case $cc_basename in
  14096. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  14097. *) _lt_dar_can_shared=$GCC ;;
  14098. esac
  14099. if test yes = "$_lt_dar_can_shared"; then
  14100. output_verbose_link_cmd=func_echo_all
  14101. 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"
  14102. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  14103. 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"
  14104. 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"
  14105. if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
  14106. 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"
  14107. 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"
  14108. fi
  14109. else
  14110. ld_shlibs_CXX=no
  14111. fi
  14112. ;;
  14113. os2*)
  14114. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14115. hardcode_minus_L_CXX=yes
  14116. allow_undefined_flag_CXX=unsupported
  14117. shrext_cmds=.dll
  14118. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14119. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14120. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14121. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14122. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  14123. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14124. emximp -o $lib $output_objdir/$libname.def'
  14125. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14126. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14127. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14128. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14129. prefix_cmds="$SED"~
  14130. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  14131. prefix_cmds="$prefix_cmds -e 1d";
  14132. fi~
  14133. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  14134. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  14135. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14136. emximp -o $lib $output_objdir/$libname.def'
  14137. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  14138. enable_shared_with_static_runtimes_CXX=yes
  14139. file_list_spec_CXX='@'
  14140. ;;
  14141. dgux*)
  14142. case $cc_basename in
  14143. ec++*)
  14144. # FIXME: insert proper C++ library support
  14145. ld_shlibs_CXX=no
  14146. ;;
  14147. ghcx*)
  14148. # Green Hills C++ Compiler
  14149. # FIXME: insert proper C++ library support
  14150. ld_shlibs_CXX=no
  14151. ;;
  14152. *)
  14153. # FIXME: insert proper C++ library support
  14154. ld_shlibs_CXX=no
  14155. ;;
  14156. esac
  14157. ;;
  14158. freebsd2.*)
  14159. # C++ shared libraries reported to be fairly broken before
  14160. # switch to ELF
  14161. ld_shlibs_CXX=no
  14162. ;;
  14163. freebsd-elf*)
  14164. archive_cmds_need_lc_CXX=no
  14165. ;;
  14166. freebsd* | dragonfly* | midnightbsd*)
  14167. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14168. # conventions
  14169. ld_shlibs_CXX=yes
  14170. ;;
  14171. haiku*)
  14172. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14173. link_all_deplibs_CXX=no
  14174. ;;
  14175. hpux9*)
  14176. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14177. hardcode_libdir_separator_CXX=:
  14178. export_dynamic_flag_spec_CXX='$wl-E'
  14179. hardcode_direct_CXX=yes
  14180. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14181. # but as the default
  14182. # location of the library.
  14183. case $cc_basename in
  14184. CC*)
  14185. # FIXME: insert proper C++ library support
  14186. ld_shlibs_CXX=no
  14187. ;;
  14188. aCC*)
  14189. 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'
  14190. # Commands to make compiler produce verbose output that lists
  14191. # what "hidden" libraries, object files and flags are used when
  14192. # linking a shared library.
  14193. #
  14194. # There doesn't appear to be a way to prevent this compiler from
  14195. # explicitly linking system object files so we need to strip them
  14196. # from the output so that they don't get included in the library
  14197. # dependencies.
  14198. 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"'
  14199. ;;
  14200. *)
  14201. if test yes = "$GXX"; then
  14202. 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'
  14203. else
  14204. # FIXME: insert proper C++ library support
  14205. ld_shlibs_CXX=no
  14206. fi
  14207. ;;
  14208. esac
  14209. ;;
  14210. hpux10*|hpux11*)
  14211. if test no = "$with_gnu_ld"; then
  14212. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14213. hardcode_libdir_separator_CXX=:
  14214. case $host_cpu in
  14215. hppa*64*|ia64*)
  14216. ;;
  14217. *)
  14218. export_dynamic_flag_spec_CXX='$wl-E'
  14219. ;;
  14220. esac
  14221. fi
  14222. case $host_cpu in
  14223. hppa*64*|ia64*)
  14224. hardcode_direct_CXX=no
  14225. hardcode_shlibpath_var_CXX=no
  14226. ;;
  14227. *)
  14228. hardcode_direct_CXX=yes
  14229. hardcode_direct_absolute_CXX=yes
  14230. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14231. # but as the default
  14232. # location of the library.
  14233. ;;
  14234. esac
  14235. case $cc_basename in
  14236. CC*)
  14237. # FIXME: insert proper C++ library support
  14238. ld_shlibs_CXX=no
  14239. ;;
  14240. aCC*)
  14241. case $host_cpu in
  14242. hppa*64*)
  14243. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14244. ;;
  14245. ia64*)
  14246. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14247. ;;
  14248. *)
  14249. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14250. ;;
  14251. esac
  14252. # Commands to make compiler produce verbose output that lists
  14253. # what "hidden" libraries, object files and flags are used when
  14254. # linking a shared library.
  14255. #
  14256. # There doesn't appear to be a way to prevent this compiler from
  14257. # explicitly linking system object files so we need to strip them
  14258. # from the output so that they don't get included in the library
  14259. # dependencies.
  14260. 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"'
  14261. ;;
  14262. *)
  14263. if test yes = "$GXX"; then
  14264. if test no = "$with_gnu_ld"; then
  14265. case $host_cpu in
  14266. hppa*64*)
  14267. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14268. ;;
  14269. ia64*)
  14270. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14271. ;;
  14272. *)
  14273. 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'
  14274. ;;
  14275. esac
  14276. fi
  14277. else
  14278. # FIXME: insert proper C++ library support
  14279. ld_shlibs_CXX=no
  14280. fi
  14281. ;;
  14282. esac
  14283. ;;
  14284. interix[3-9]*)
  14285. hardcode_direct_CXX=no
  14286. hardcode_shlibpath_var_CXX=no
  14287. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14288. export_dynamic_flag_spec_CXX='$wl-E'
  14289. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14290. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14291. # default) and relocated if they conflict, which is a slow very memory
  14292. # consuming and fragmenting process. To avoid this, we pick a random,
  14293. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14294. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14295. 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'
  14296. 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'
  14297. ;;
  14298. irix5* | irix6*)
  14299. case $cc_basename in
  14300. CC*)
  14301. # SGI C++
  14302. 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'
  14303. # Archives containing C++ object files must be created using
  14304. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14305. # necessary to make sure instantiated templates are included
  14306. # in the archive.
  14307. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14308. ;;
  14309. *)
  14310. if test yes = "$GXX"; then
  14311. if test no = "$with_gnu_ld"; then
  14312. 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'
  14313. else
  14314. 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'
  14315. fi
  14316. fi
  14317. link_all_deplibs_CXX=yes
  14318. ;;
  14319. esac
  14320. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14321. hardcode_libdir_separator_CXX=:
  14322. inherit_rpath_CXX=yes
  14323. ;;
  14324. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14325. case $cc_basename in
  14326. KCC*)
  14327. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14328. # KCC will only create a shared library if the output file
  14329. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14330. # to its proper name (with version) after linking.
  14331. 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'
  14332. 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'
  14333. # Commands to make compiler produce verbose output that lists
  14334. # what "hidden" libraries, object files and flags are used when
  14335. # linking a shared library.
  14336. #
  14337. # There doesn't appear to be a way to prevent this compiler from
  14338. # explicitly linking system object files so we need to strip them
  14339. # from the output so that they don't get included in the library
  14340. # dependencies.
  14341. 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"'
  14342. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14343. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14344. # Archives containing C++ object files must be created using
  14345. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14346. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14347. ;;
  14348. icpc* | ecpc* )
  14349. # Intel C++
  14350. with_gnu_ld=yes
  14351. # version 8.0 and above of icpc choke on multiply defined symbols
  14352. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14353. # earlier do not add the objects themselves.
  14354. case `$CC -V 2>&1` in
  14355. *"Version 7."*)
  14356. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14357. 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'
  14358. ;;
  14359. *) # Version 8.0 or newer
  14360. tmp_idyn=
  14361. case $host_cpu in
  14362. ia64*) tmp_idyn=' -i_dynamic';;
  14363. esac
  14364. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14365. 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'
  14366. ;;
  14367. esac
  14368. archive_cmds_need_lc_CXX=no
  14369. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14370. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14371. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  14372. ;;
  14373. pgCC* | pgcpp*)
  14374. # Portland Group C++ compiler
  14375. case `$CC -V` in
  14376. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14377. prelink_cmds_CXX='tpldir=Template.dir~
  14378. rm -rf $tpldir~
  14379. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14380. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14381. old_archive_cmds_CXX='tpldir=Template.dir~
  14382. rm -rf $tpldir~
  14383. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14384. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14385. $RANLIB $oldlib'
  14386. archive_cmds_CXX='tpldir=Template.dir~
  14387. rm -rf $tpldir~
  14388. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14389. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14390. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14391. rm -rf $tpldir~
  14392. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14393. $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'
  14394. ;;
  14395. *) # Version 6 and above use weak symbols
  14396. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14397. 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'
  14398. ;;
  14399. esac
  14400. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  14401. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14402. 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'
  14403. ;;
  14404. cxx*)
  14405. # Compaq C++
  14406. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14407. 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'
  14408. runpath_var=LD_RUN_PATH
  14409. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14410. hardcode_libdir_separator_CXX=:
  14411. # Commands to make compiler produce verbose output that lists
  14412. # what "hidden" libraries, object files and flags are used when
  14413. # linking a shared library.
  14414. #
  14415. # There doesn't appear to be a way to prevent this compiler from
  14416. # explicitly linking system object files so we need to strip them
  14417. # from the output so that they don't get included in the library
  14418. # dependencies.
  14419. 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'
  14420. ;;
  14421. xl* | mpixl* | bgxl*)
  14422. # IBM XL 8.0 on PPC, with GNU ld
  14423. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14424. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14425. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14426. if test yes = "$supports_anon_versioning"; then
  14427. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14428. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14429. echo "local: *; };" >> $output_objdir/$libname.ver~
  14430. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  14431. fi
  14432. ;;
  14433. *)
  14434. case `$CC -V 2>&1 | $SED 5q` in
  14435. *Sun\ C*)
  14436. # Sun C++ 5.9
  14437. no_undefined_flag_CXX=' -zdefs'
  14438. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14439. 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'
  14440. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14441. 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'
  14442. compiler_needs_object_CXX=yes
  14443. # Not sure whether something based on
  14444. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14445. # would be better.
  14446. output_verbose_link_cmd='func_echo_all'
  14447. # Archives containing C++ object files must be created using
  14448. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14449. # necessary to make sure instantiated templates are included
  14450. # in the archive.
  14451. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14452. ;;
  14453. esac
  14454. ;;
  14455. esac
  14456. ;;
  14457. lynxos*)
  14458. # FIXME: insert proper C++ library support
  14459. ld_shlibs_CXX=no
  14460. ;;
  14461. m88k*)
  14462. # FIXME: insert proper C++ library support
  14463. ld_shlibs_CXX=no
  14464. ;;
  14465. mvs*)
  14466. case $cc_basename in
  14467. cxx*)
  14468. # FIXME: insert proper C++ library support
  14469. ld_shlibs_CXX=no
  14470. ;;
  14471. *)
  14472. # FIXME: insert proper C++ library support
  14473. ld_shlibs_CXX=no
  14474. ;;
  14475. esac
  14476. ;;
  14477. *-mlibc)
  14478. ld_shlibs_CXX=yes
  14479. ;;
  14480. netbsd*)
  14481. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14482. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14483. wlarc=
  14484. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14485. hardcode_direct_CXX=yes
  14486. hardcode_shlibpath_var_CXX=no
  14487. fi
  14488. # Workaround some broken pre-1.5 toolchains
  14489. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14490. ;;
  14491. *nto* | *qnx*)
  14492. ld_shlibs_CXX=yes
  14493. ;;
  14494. openbsd*)
  14495. if test -f /usr/libexec/ld.so; then
  14496. hardcode_direct_CXX=yes
  14497. hardcode_shlibpath_var_CXX=no
  14498. hardcode_direct_absolute_CXX=yes
  14499. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14500. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14501. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  14502. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  14503. export_dynamic_flag_spec_CXX='$wl-E'
  14504. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14505. fi
  14506. output_verbose_link_cmd=func_echo_all
  14507. else
  14508. ld_shlibs_CXX=no
  14509. fi
  14510. ;;
  14511. osf3* | osf4* | osf5*)
  14512. case $cc_basename in
  14513. KCC*)
  14514. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14515. # KCC will only create a shared library if the output file
  14516. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14517. # to its proper name (with version) after linking.
  14518. 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'
  14519. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14520. hardcode_libdir_separator_CXX=:
  14521. # Archives containing C++ object files must be created using
  14522. # the KAI C++ compiler.
  14523. case $host in
  14524. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14525. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14526. esac
  14527. ;;
  14528. RCC*)
  14529. # Rational C++ 2.4.1
  14530. # FIXME: insert proper C++ library support
  14531. ld_shlibs_CXX=no
  14532. ;;
  14533. cxx*)
  14534. case $host in
  14535. osf3*)
  14536. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14537. 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'
  14538. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14539. ;;
  14540. *)
  14541. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14542. 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'
  14543. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14544. echo "-hidden">> $lib.exp~
  14545. $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~
  14546. $RM $lib.exp'
  14547. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14548. ;;
  14549. esac
  14550. hardcode_libdir_separator_CXX=:
  14551. # Commands to make compiler produce verbose output that lists
  14552. # what "hidden" libraries, object files and flags are used when
  14553. # linking a shared library.
  14554. #
  14555. # There doesn't appear to be a way to prevent this compiler from
  14556. # explicitly linking system object files so we need to strip them
  14557. # from the output so that they don't get included in the library
  14558. # dependencies.
  14559. 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"'
  14560. ;;
  14561. *)
  14562. if test yes,no = "$GXX,$with_gnu_ld"; then
  14563. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14564. case $host in
  14565. osf3*)
  14566. 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'
  14567. ;;
  14568. *)
  14569. 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'
  14570. ;;
  14571. esac
  14572. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14573. hardcode_libdir_separator_CXX=:
  14574. # Commands to make compiler produce verbose output that lists
  14575. # what "hidden" libraries, object files and flags are used when
  14576. # linking a shared library.
  14577. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  14578. else
  14579. # FIXME: insert proper C++ library support
  14580. ld_shlibs_CXX=no
  14581. fi
  14582. ;;
  14583. esac
  14584. ;;
  14585. psos*)
  14586. # FIXME: insert proper C++ library support
  14587. ld_shlibs_CXX=no
  14588. ;;
  14589. serenity*)
  14590. ;;
  14591. sunos4*)
  14592. case $cc_basename in
  14593. CC*)
  14594. # Sun C++ 4.x
  14595. # FIXME: insert proper C++ library support
  14596. ld_shlibs_CXX=no
  14597. ;;
  14598. lcc*)
  14599. # Lucid
  14600. # FIXME: insert proper C++ library support
  14601. ld_shlibs_CXX=no
  14602. ;;
  14603. *)
  14604. # FIXME: insert proper C++ library support
  14605. ld_shlibs_CXX=no
  14606. ;;
  14607. esac
  14608. ;;
  14609. solaris*)
  14610. case $cc_basename in
  14611. CC* | sunCC*)
  14612. # Sun C++ 4.2, 5.x and Centerline C++
  14613. archive_cmds_need_lc_CXX=yes
  14614. no_undefined_flag_CXX=' -zdefs'
  14615. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14616. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14617. $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'
  14618. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14619. hardcode_shlibpath_var_CXX=no
  14620. case $host_os in
  14621. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14622. *)
  14623. # The compiler driver will combine and reorder linker options,
  14624. # but understands '-z linker_flag'.
  14625. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14626. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14627. ;;
  14628. esac
  14629. link_all_deplibs_CXX=yes
  14630. output_verbose_link_cmd='func_echo_all'
  14631. # Archives containing C++ object files must be created using
  14632. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14633. # necessary to make sure instantiated templates are included
  14634. # in the archive.
  14635. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14636. ;;
  14637. gcx*)
  14638. # Green Hills C++ Compiler
  14639. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14640. # The C++ compiler must be used to create the archive.
  14641. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14642. ;;
  14643. *)
  14644. # GNU C++ compiler with Solaris linker
  14645. if test yes,no = "$GXX,$with_gnu_ld"; then
  14646. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  14647. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14648. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14649. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14650. $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'
  14651. # Commands to make compiler produce verbose output that lists
  14652. # what "hidden" libraries, object files and flags are used when
  14653. # linking a shared library.
  14654. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  14655. else
  14656. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  14657. # platform.
  14658. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14659. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14660. $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'
  14661. # Commands to make compiler produce verbose output that lists
  14662. # what "hidden" libraries, object files and flags are used when
  14663. # linking a shared library.
  14664. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  14665. fi
  14666. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  14667. case $host_os in
  14668. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14669. *)
  14670. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  14671. ;;
  14672. esac
  14673. fi
  14674. ;;
  14675. esac
  14676. ;;
  14677. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14678. no_undefined_flag_CXX='$wl-z,text'
  14679. archive_cmds_need_lc_CXX=no
  14680. hardcode_shlibpath_var_CXX=no
  14681. runpath_var='LD_RUN_PATH'
  14682. case $cc_basename in
  14683. CC*)
  14684. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14685. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14686. ;;
  14687. *)
  14688. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14689. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14690. ;;
  14691. esac
  14692. ;;
  14693. sysv5* | sco3.2v5* | sco5v6*)
  14694. # Note: We CANNOT use -z defs as we might desire, because we do not
  14695. # link with -lc, and that would cause any symbols used from libc to
  14696. # always be unresolved, which means just about no library would
  14697. # ever link correctly. If we're not using GNU ld we use -z text
  14698. # though, which does catch some bad symbols but isn't as heavy-handed
  14699. # as -z defs.
  14700. no_undefined_flag_CXX='$wl-z,text'
  14701. allow_undefined_flag_CXX='$wl-z,nodefs'
  14702. archive_cmds_need_lc_CXX=no
  14703. hardcode_shlibpath_var_CXX=no
  14704. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  14705. hardcode_libdir_separator_CXX=':'
  14706. link_all_deplibs_CXX=yes
  14707. export_dynamic_flag_spec_CXX='$wl-Bexport'
  14708. runpath_var='LD_RUN_PATH'
  14709. case $cc_basename in
  14710. CC*)
  14711. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14712. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14713. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14714. '"$old_archive_cmds_CXX"
  14715. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14716. '"$reload_cmds_CXX"
  14717. ;;
  14718. *)
  14719. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14720. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14721. ;;
  14722. esac
  14723. ;;
  14724. tandem*)
  14725. case $cc_basename in
  14726. NCC*)
  14727. # NonStop-UX NCC 3.20
  14728. # FIXME: insert proper C++ library support
  14729. ld_shlibs_CXX=no
  14730. ;;
  14731. *)
  14732. # FIXME: insert proper C++ library support
  14733. ld_shlibs_CXX=no
  14734. ;;
  14735. esac
  14736. ;;
  14737. vxworks*)
  14738. # FIXME: insert proper C++ library support
  14739. ld_shlibs_CXX=no
  14740. ;;
  14741. *)
  14742. # FIXME: insert proper C++ library support
  14743. ld_shlibs_CXX=no
  14744. ;;
  14745. esac
  14746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14747. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14748. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14749. GCC_CXX=$GXX
  14750. LD_CXX=$LD
  14751. ## CAVEAT EMPTOR:
  14752. ## There is no encapsulation within the following macros, do not change
  14753. ## the running order or otherwise move them around unless you know exactly
  14754. ## what you are doing...
  14755. # Dependencies to place before and after the object being linked:
  14756. predep_objects_CXX=
  14757. postdep_objects_CXX=
  14758. predeps_CXX=
  14759. postdeps_CXX=
  14760. compiler_lib_search_path_CXX=
  14761. cat > conftest.$ac_ext <<_LT_EOF
  14762. class Foo
  14763. {
  14764. public:
  14765. Foo (void) { a = 0; }
  14766. private:
  14767. int a;
  14768. };
  14769. _LT_EOF
  14770. _lt_libdeps_save_CFLAGS=$CFLAGS
  14771. case "$CC $CFLAGS " in #(
  14772. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14773. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14774. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14775. esac
  14776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14777. (eval $ac_compile) 2>&5
  14778. ac_status=$?
  14779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14780. test $ac_status = 0; }; then
  14781. # Parse the compiler output and extract the necessary
  14782. # objects, libraries and library flags.
  14783. # Sentinel used to keep track of whether or not we are before
  14784. # the conftest object file.
  14785. pre_test_object_deps_done=no
  14786. for p in `eval "$output_verbose_link_cmd"`; do
  14787. case $prev$p in
  14788. -L* | -R* | -l*)
  14789. # Some compilers place space between "-{L,R,l}" and the path.
  14790. # Remove the space.
  14791. if test x-L = x"$p" ||
  14792. test x-R = x"$p" ||
  14793. test x-l = x"$p"; then
  14794. prev=$p
  14795. continue
  14796. fi
  14797. # Expand the sysroot to ease extracting the directories later.
  14798. if test -z "$prev"; then
  14799. case $p in
  14800. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14801. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14802. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14803. esac
  14804. fi
  14805. case $p in
  14806. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14807. esac
  14808. if test no = "$pre_test_object_deps_done"; then
  14809. case $prev in
  14810. -L | -R)
  14811. # Internal compiler library paths should come after those
  14812. # provided the user. The postdeps already come after the
  14813. # user supplied libs so there is no need to process them.
  14814. if test -z "$compiler_lib_search_path_CXX"; then
  14815. compiler_lib_search_path_CXX=$prev$p
  14816. else
  14817. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14818. fi
  14819. ;;
  14820. # The "-l" case would never come before the object being
  14821. # linked, so don't bother handling this case.
  14822. esac
  14823. else
  14824. if test -z "$postdeps_CXX"; then
  14825. postdeps_CXX=$prev$p
  14826. else
  14827. postdeps_CXX="${postdeps_CXX} $prev$p"
  14828. fi
  14829. fi
  14830. prev=
  14831. ;;
  14832. *.lto.$objext) ;; # Ignore GCC LTO objects
  14833. *.$objext)
  14834. # This assumes that the test object file only shows up
  14835. # once in the compiler output.
  14836. if test "$p" = "conftest.$objext"; then
  14837. pre_test_object_deps_done=yes
  14838. continue
  14839. fi
  14840. if test no = "$pre_test_object_deps_done"; then
  14841. if test -z "$predep_objects_CXX"; then
  14842. predep_objects_CXX=$p
  14843. else
  14844. predep_objects_CXX="$predep_objects_CXX $p"
  14845. fi
  14846. else
  14847. if test -z "$postdep_objects_CXX"; then
  14848. postdep_objects_CXX=$p
  14849. else
  14850. postdep_objects_CXX="$postdep_objects_CXX $p"
  14851. fi
  14852. fi
  14853. ;;
  14854. *) ;; # Ignore the rest.
  14855. esac
  14856. done
  14857. # Clean up.
  14858. rm -f a.out a.exe
  14859. else
  14860. echo "libtool.m4: error: problem compiling CXX test program"
  14861. fi
  14862. $RM -f confest.$objext
  14863. CFLAGS=$_lt_libdeps_save_CFLAGS
  14864. # PORTME: override above test on systems where it is broken
  14865. case $host_os in
  14866. interix[3-9]*)
  14867. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14868. # hack all around it, let's just trust "g++" to DTRT.
  14869. predep_objects_CXX=
  14870. postdep_objects_CXX=
  14871. postdeps_CXX=
  14872. ;;
  14873. esac
  14874. case " $postdeps_CXX " in
  14875. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14876. esac
  14877. compiler_lib_search_dirs_CXX=
  14878. if test -n "${compiler_lib_search_path_CXX}"; then
  14879. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14880. fi
  14881. lt_prog_compiler_wl_CXX=
  14882. lt_prog_compiler_pic_CXX=
  14883. lt_prog_compiler_static_CXX=
  14884. # C++ specific cases for pic, static, wl, etc.
  14885. if test yes = "$GXX"; then
  14886. lt_prog_compiler_wl_CXX='-Wl,'
  14887. lt_prog_compiler_static_CXX='-static'
  14888. case $host_os in
  14889. aix*)
  14890. # All AIX code is PIC.
  14891. if test ia64 = "$host_cpu"; then
  14892. # AIX 5 now supports IA64 processor
  14893. lt_prog_compiler_static_CXX='-Bstatic'
  14894. fi
  14895. lt_prog_compiler_pic_CXX='-fPIC'
  14896. ;;
  14897. amigaos*)
  14898. case $host_cpu in
  14899. powerpc)
  14900. # see comment about AmigaOS4 .so support
  14901. lt_prog_compiler_pic_CXX='-fPIC'
  14902. ;;
  14903. m68k)
  14904. # FIXME: we need at least 68020 code to build shared libraries, but
  14905. # adding the '-m68020' flag to GCC prevents building anything better,
  14906. # like '-m68040'.
  14907. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14908. ;;
  14909. esac
  14910. ;;
  14911. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14912. # PIC is the default for these OSes.
  14913. ;;
  14914. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14915. # This hack is so that the source file can tell whether it is being
  14916. # built for inclusion in a dll (and should export symbols for example).
  14917. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14918. # (--disable-auto-import) libraries
  14919. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14920. case $host_os in
  14921. os2*)
  14922. lt_prog_compiler_static_CXX='$wl-static'
  14923. ;;
  14924. esac
  14925. ;;
  14926. darwin* | rhapsody*)
  14927. # PIC is the default on this platform
  14928. # Common symbols not allowed in MH_DYLIB files
  14929. lt_prog_compiler_pic_CXX='-fno-common'
  14930. ;;
  14931. *djgpp*)
  14932. # DJGPP does not support shared libraries at all
  14933. lt_prog_compiler_pic_CXX=
  14934. ;;
  14935. haiku*)
  14936. # PIC is the default for Haiku.
  14937. # The "-static" flag exists, but is broken.
  14938. lt_prog_compiler_static_CXX=
  14939. ;;
  14940. interix[3-9]*)
  14941. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14942. # Instead, we relocate shared libraries at runtime.
  14943. ;;
  14944. sysv4*MP*)
  14945. if test -d /usr/nec; then
  14946. lt_prog_compiler_pic_CXX=-Kconform_pic
  14947. fi
  14948. ;;
  14949. hpux*)
  14950. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14951. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14952. # sets the default TLS model and affects inlining.
  14953. case $host_cpu in
  14954. hppa*64*)
  14955. ;;
  14956. *)
  14957. lt_prog_compiler_pic_CXX='-fPIC'
  14958. ;;
  14959. esac
  14960. ;;
  14961. *qnx* | *nto*)
  14962. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14963. # it will coredump.
  14964. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14965. ;;
  14966. *)
  14967. lt_prog_compiler_pic_CXX='-fPIC'
  14968. ;;
  14969. esac
  14970. else
  14971. case $host_os in
  14972. aix[4-9]*)
  14973. # All AIX code is PIC.
  14974. if test ia64 = "$host_cpu"; then
  14975. # AIX 5 now supports IA64 processor
  14976. lt_prog_compiler_static_CXX='-Bstatic'
  14977. else
  14978. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14979. fi
  14980. ;;
  14981. chorus*)
  14982. case $cc_basename in
  14983. cxch68*)
  14984. # Green Hills C++ Compiler
  14985. # _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"
  14986. ;;
  14987. esac
  14988. ;;
  14989. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14990. # This hack is so that the source file can tell whether it is being
  14991. # built for inclusion in a dll (and should export symbols for example).
  14992. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14993. ;;
  14994. dgux*)
  14995. case $cc_basename in
  14996. ec++*)
  14997. lt_prog_compiler_pic_CXX='-KPIC'
  14998. ;;
  14999. ghcx*)
  15000. # Green Hills C++ Compiler
  15001. lt_prog_compiler_pic_CXX='-pic'
  15002. ;;
  15003. *)
  15004. ;;
  15005. esac
  15006. ;;
  15007. freebsd* | dragonfly* | midnightbsd*)
  15008. # FreeBSD uses GNU C++
  15009. ;;
  15010. hpux9* | hpux10* | hpux11*)
  15011. case $cc_basename in
  15012. CC*)
  15013. lt_prog_compiler_wl_CXX='-Wl,'
  15014. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  15015. if test ia64 != "$host_cpu"; then
  15016. lt_prog_compiler_pic_CXX='+Z'
  15017. fi
  15018. ;;
  15019. aCC*)
  15020. lt_prog_compiler_wl_CXX='-Wl,'
  15021. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  15022. case $host_cpu in
  15023. hppa*64*|ia64*)
  15024. # +Z the default
  15025. ;;
  15026. *)
  15027. lt_prog_compiler_pic_CXX='+Z'
  15028. ;;
  15029. esac
  15030. ;;
  15031. *)
  15032. ;;
  15033. esac
  15034. ;;
  15035. interix*)
  15036. # This is c89, which is MS Visual C++ (no shared libs)
  15037. # Anyone wants to do a port?
  15038. ;;
  15039. irix5* | irix6* | nonstopux*)
  15040. case $cc_basename in
  15041. CC*)
  15042. lt_prog_compiler_wl_CXX='-Wl,'
  15043. lt_prog_compiler_static_CXX='-non_shared'
  15044. # CC pic flag -KPIC is the default.
  15045. ;;
  15046. *)
  15047. ;;
  15048. esac
  15049. ;;
  15050. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15051. case $cc_basename in
  15052. KCC*)
  15053. # KAI C++ Compiler
  15054. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15055. lt_prog_compiler_pic_CXX='-fPIC'
  15056. ;;
  15057. ecpc* )
  15058. # old Intel C++ for x86_64, which still supported -KPIC.
  15059. lt_prog_compiler_wl_CXX='-Wl,'
  15060. lt_prog_compiler_pic_CXX='-KPIC'
  15061. lt_prog_compiler_static_CXX='-static'
  15062. ;;
  15063. icpc* )
  15064. # Intel C++, used to be incompatible with GCC.
  15065. # ICC 10 doesn't accept -KPIC any more.
  15066. lt_prog_compiler_wl_CXX='-Wl,'
  15067. lt_prog_compiler_pic_CXX='-fPIC'
  15068. lt_prog_compiler_static_CXX='-static'
  15069. ;;
  15070. pgCC* | pgcpp*)
  15071. # Portland Group C++ compiler
  15072. lt_prog_compiler_wl_CXX='-Wl,'
  15073. lt_prog_compiler_pic_CXX='-fpic'
  15074. lt_prog_compiler_static_CXX='-Bstatic'
  15075. ;;
  15076. cxx*)
  15077. # Compaq C++
  15078. # Make sure the PIC flag is empty. It appears that all Alpha
  15079. # Linux and Compaq Tru64 Unix objects are PIC.
  15080. lt_prog_compiler_pic_CXX=
  15081. lt_prog_compiler_static_CXX='-non_shared'
  15082. ;;
  15083. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  15084. # IBM XL 8.0, 9.0 on PPC and BlueGene
  15085. lt_prog_compiler_wl_CXX='-Wl,'
  15086. lt_prog_compiler_pic_CXX='-qpic'
  15087. lt_prog_compiler_static_CXX='-qstaticlink'
  15088. ;;
  15089. *)
  15090. case `$CC -V 2>&1 | $SED 5q` in
  15091. *Sun\ C*)
  15092. # Sun C++ 5.9
  15093. lt_prog_compiler_pic_CXX='-KPIC'
  15094. lt_prog_compiler_static_CXX='-Bstatic'
  15095. lt_prog_compiler_wl_CXX='-Qoption ld '
  15096. ;;
  15097. esac
  15098. ;;
  15099. esac
  15100. ;;
  15101. lynxos*)
  15102. ;;
  15103. m88k*)
  15104. ;;
  15105. mvs*)
  15106. case $cc_basename in
  15107. cxx*)
  15108. lt_prog_compiler_pic_CXX='-W c,exportall'
  15109. ;;
  15110. *)
  15111. ;;
  15112. esac
  15113. ;;
  15114. netbsd* | netbsdelf*-gnu)
  15115. ;;
  15116. *-mlibc)
  15117. ;;
  15118. *qnx* | *nto*)
  15119. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15120. # it will coredump.
  15121. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15122. ;;
  15123. osf3* | osf4* | osf5*)
  15124. case $cc_basename in
  15125. KCC*)
  15126. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15127. ;;
  15128. RCC*)
  15129. # Rational C++ 2.4.1
  15130. lt_prog_compiler_pic_CXX='-pic'
  15131. ;;
  15132. cxx*)
  15133. # Digital/Compaq C++
  15134. lt_prog_compiler_wl_CXX='-Wl,'
  15135. # Make sure the PIC flag is empty. It appears that all Alpha
  15136. # Linux and Compaq Tru64 Unix objects are PIC.
  15137. lt_prog_compiler_pic_CXX=
  15138. lt_prog_compiler_static_CXX='-non_shared'
  15139. ;;
  15140. *)
  15141. ;;
  15142. esac
  15143. ;;
  15144. psos*)
  15145. ;;
  15146. serenity*)
  15147. ;;
  15148. solaris*)
  15149. case $cc_basename in
  15150. CC* | sunCC*)
  15151. # Sun C++ 4.2, 5.x and Centerline C++
  15152. lt_prog_compiler_pic_CXX='-KPIC'
  15153. lt_prog_compiler_static_CXX='-Bstatic'
  15154. lt_prog_compiler_wl_CXX='-Qoption ld '
  15155. ;;
  15156. gcx*)
  15157. # Green Hills C++ Compiler
  15158. lt_prog_compiler_pic_CXX='-PIC'
  15159. ;;
  15160. *)
  15161. ;;
  15162. esac
  15163. ;;
  15164. sunos4*)
  15165. case $cc_basename in
  15166. CC*)
  15167. # Sun C++ 4.x
  15168. lt_prog_compiler_pic_CXX='-pic'
  15169. lt_prog_compiler_static_CXX='-Bstatic'
  15170. ;;
  15171. lcc*)
  15172. # Lucid
  15173. lt_prog_compiler_pic_CXX='-pic'
  15174. ;;
  15175. *)
  15176. ;;
  15177. esac
  15178. ;;
  15179. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15180. case $cc_basename in
  15181. CC*)
  15182. lt_prog_compiler_wl_CXX='-Wl,'
  15183. lt_prog_compiler_pic_CXX='-KPIC'
  15184. lt_prog_compiler_static_CXX='-Bstatic'
  15185. ;;
  15186. esac
  15187. ;;
  15188. tandem*)
  15189. case $cc_basename in
  15190. NCC*)
  15191. # NonStop-UX NCC 3.20
  15192. lt_prog_compiler_pic_CXX='-KPIC'
  15193. ;;
  15194. *)
  15195. ;;
  15196. esac
  15197. ;;
  15198. vxworks*)
  15199. ;;
  15200. *)
  15201. lt_prog_compiler_can_build_shared_CXX=no
  15202. ;;
  15203. esac
  15204. fi
  15205. case $host_os in
  15206. # For platforms that do not support PIC, -DPIC is meaningless:
  15207. *djgpp*)
  15208. lt_prog_compiler_pic_CXX=
  15209. ;;
  15210. *)
  15211. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  15212. ;;
  15213. esac
  15214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15215. printf %s "checking for $compiler option to produce PIC... " >&6; }
  15216. if test ${lt_cv_prog_compiler_pic_CXX+y}
  15217. then :
  15218. printf %s "(cached) " >&6
  15219. else $as_nop
  15220. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  15221. fi
  15222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  15223. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  15224. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  15225. #
  15226. # Check to make sure the PIC flag actually works.
  15227. #
  15228. if test -n "$lt_prog_compiler_pic_CXX"; then
  15229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  15230. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  15231. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  15232. then :
  15233. printf %s "(cached) " >&6
  15234. else $as_nop
  15235. lt_cv_prog_compiler_pic_works_CXX=no
  15236. ac_outfile=conftest.$ac_objext
  15237. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15238. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15239. # Insert the option either (1) after the last *FLAGS variable, or
  15240. # (2) before a word containing "conftest.", or (3) at the end.
  15241. # Note that $ac_compile itself does not contain backslashes and begins
  15242. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15243. # The option is referenced via a variable to avoid confusing sed.
  15244. lt_compile=`echo "$ac_compile" | $SED \
  15245. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15246. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15247. -e 's:$: $lt_compiler_flag:'`
  15248. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15249. (eval "$lt_compile" 2>conftest.err)
  15250. ac_status=$?
  15251. cat conftest.err >&5
  15252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15253. if (exit $ac_status) && test -s "$ac_outfile"; then
  15254. # The compiler can only warn and ignore the option if not recognized
  15255. # So say no if there are warnings other than the usual output.
  15256. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15257. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15258. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15259. lt_cv_prog_compiler_pic_works_CXX=yes
  15260. fi
  15261. fi
  15262. $RM conftest*
  15263. fi
  15264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  15265. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15266. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  15267. case $lt_prog_compiler_pic_CXX in
  15268. "" | " "*) ;;
  15269. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15270. esac
  15271. else
  15272. lt_prog_compiler_pic_CXX=
  15273. lt_prog_compiler_can_build_shared_CXX=no
  15274. fi
  15275. fi
  15276. #
  15277. # Check to make sure the static flag actually works.
  15278. #
  15279. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15281. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15282. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  15283. then :
  15284. printf %s "(cached) " >&6
  15285. else $as_nop
  15286. lt_cv_prog_compiler_static_works_CXX=no
  15287. save_LDFLAGS=$LDFLAGS
  15288. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15289. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15290. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15291. # The linker can only warn and ignore the option if not recognized
  15292. # So say no if there are warnings
  15293. if test -s conftest.err; then
  15294. # Append any errors to the config.log.
  15295. cat conftest.err 1>&5
  15296. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15297. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15298. if diff conftest.exp conftest.er2 >/dev/null; then
  15299. lt_cv_prog_compiler_static_works_CXX=yes
  15300. fi
  15301. else
  15302. lt_cv_prog_compiler_static_works_CXX=yes
  15303. fi
  15304. fi
  15305. $RM -r conftest*
  15306. LDFLAGS=$save_LDFLAGS
  15307. fi
  15308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15309. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15310. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  15311. :
  15312. else
  15313. lt_prog_compiler_static_CXX=
  15314. fi
  15315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15316. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15317. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15318. then :
  15319. printf %s "(cached) " >&6
  15320. else $as_nop
  15321. lt_cv_prog_compiler_c_o_CXX=no
  15322. $RM -r conftest 2>/dev/null
  15323. mkdir conftest
  15324. cd conftest
  15325. mkdir out
  15326. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15327. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15328. # Insert the option either (1) after the last *FLAGS variable, or
  15329. # (2) before a word containing "conftest.", or (3) at the end.
  15330. # Note that $ac_compile itself does not contain backslashes and begins
  15331. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15332. lt_compile=`echo "$ac_compile" | $SED \
  15333. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15334. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15335. -e 's:$: $lt_compiler_flag:'`
  15336. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15337. (eval "$lt_compile" 2>out/conftest.err)
  15338. ac_status=$?
  15339. cat out/conftest.err >&5
  15340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15341. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15342. then
  15343. # The compiler can only warn and ignore the option if not recognized
  15344. # So say no if there are warnings
  15345. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15346. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15347. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15348. lt_cv_prog_compiler_c_o_CXX=yes
  15349. fi
  15350. fi
  15351. chmod u+w . 2>&5
  15352. $RM conftest*
  15353. # SGI C++ compiler will create directory out/ii_files/ for
  15354. # template instantiation
  15355. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15356. $RM out/* && rmdir out
  15357. cd ..
  15358. $RM -r conftest
  15359. $RM conftest*
  15360. fi
  15361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15362. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15364. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15365. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15366. then :
  15367. printf %s "(cached) " >&6
  15368. else $as_nop
  15369. lt_cv_prog_compiler_c_o_CXX=no
  15370. $RM -r conftest 2>/dev/null
  15371. mkdir conftest
  15372. cd conftest
  15373. mkdir out
  15374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15375. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15376. # Insert the option either (1) after the last *FLAGS variable, or
  15377. # (2) before a word containing "conftest.", or (3) at the end.
  15378. # Note that $ac_compile itself does not contain backslashes and begins
  15379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15380. lt_compile=`echo "$ac_compile" | $SED \
  15381. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15383. -e 's:$: $lt_compiler_flag:'`
  15384. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15385. (eval "$lt_compile" 2>out/conftest.err)
  15386. ac_status=$?
  15387. cat out/conftest.err >&5
  15388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15389. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15390. then
  15391. # The compiler can only warn and ignore the option if not recognized
  15392. # So say no if there are warnings
  15393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15394. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15395. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15396. lt_cv_prog_compiler_c_o_CXX=yes
  15397. fi
  15398. fi
  15399. chmod u+w . 2>&5
  15400. $RM conftest*
  15401. # SGI C++ compiler will create directory out/ii_files/ for
  15402. # template instantiation
  15403. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15404. $RM out/* && rmdir out
  15405. cd ..
  15406. $RM -r conftest
  15407. $RM conftest*
  15408. fi
  15409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15410. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15411. hard_links=nottested
  15412. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  15413. # do not overwrite the value of need_locks provided by the user
  15414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15415. printf %s "checking if we can lock with hard links... " >&6; }
  15416. hard_links=yes
  15417. $RM conftest*
  15418. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15419. touch conftest.a
  15420. ln conftest.a conftest.b 2>&5 || hard_links=no
  15421. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15423. printf "%s\n" "$hard_links" >&6; }
  15424. if test no = "$hard_links"; then
  15425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  15426. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  15427. need_locks=warn
  15428. fi
  15429. else
  15430. need_locks=no
  15431. fi
  15432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15433. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15434. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15435. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15436. case $host_os in
  15437. aix[4-9]*)
  15438. # If we're using GNU nm, then we don't want the "-C" option.
  15439. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  15440. # Without the "-l" option, or with the "-B" option, AIX nm treats
  15441. # weak defined symbols like other global defined symbols, whereas
  15442. # GNU nm marks them as "W".
  15443. # While the 'weak' keyword is ignored in the Export File, we need
  15444. # it in the Import File for the 'aix-soname' feature, so we have
  15445. # to replace the "-B" option with "-P" for AIX nm.
  15446. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15447. 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'
  15448. else
  15449. 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'
  15450. fi
  15451. ;;
  15452. pw32*)
  15453. export_symbols_cmds_CXX=$ltdll_cmds
  15454. ;;
  15455. cygwin* | mingw* | windows* | cegcc*)
  15456. case $cc_basename in
  15457. cl* | icl*)
  15458. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15459. ;;
  15460. *)
  15461. 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'
  15462. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15463. ;;
  15464. esac
  15465. ;;
  15466. *)
  15467. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15468. ;;
  15469. esac
  15470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15471. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  15472. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15473. with_gnu_ld_CXX=$with_gnu_ld
  15474. #
  15475. # Do we need to explicitly link libc?
  15476. #
  15477. case "x$archive_cmds_need_lc_CXX" in
  15478. x|xyes)
  15479. # Assume -lc should be added
  15480. archive_cmds_need_lc_CXX=yes
  15481. if test yes,yes = "$GCC,$enable_shared"; then
  15482. case $archive_cmds_CXX in
  15483. *'~'*)
  15484. # FIXME: we may have to deal with multi-command sequences.
  15485. ;;
  15486. '$CC '*)
  15487. # Test whether the compiler implicitly links with -lc since on some
  15488. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15489. # to ld, don't add -lc before -lgcc.
  15490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15491. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  15492. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  15493. then :
  15494. printf %s "(cached) " >&6
  15495. else $as_nop
  15496. $RM conftest*
  15497. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15498. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15499. (eval $ac_compile) 2>&5
  15500. ac_status=$?
  15501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15502. test $ac_status = 0; } 2>conftest.err; then
  15503. soname=conftest
  15504. lib=conftest
  15505. libobjs=conftest.$ac_objext
  15506. deplibs=
  15507. wl=$lt_prog_compiler_wl_CXX
  15508. pic_flag=$lt_prog_compiler_pic_CXX
  15509. compiler_flags=-v
  15510. linker_flags=-v
  15511. verstring=
  15512. output_objdir=.
  15513. libname=conftest
  15514. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15515. allow_undefined_flag_CXX=
  15516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15517. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15518. ac_status=$?
  15519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15520. test $ac_status = 0; }
  15521. then
  15522. lt_cv_archive_cmds_need_lc_CXX=no
  15523. else
  15524. lt_cv_archive_cmds_need_lc_CXX=yes
  15525. fi
  15526. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15527. else
  15528. cat conftest.err 1>&5
  15529. fi
  15530. $RM conftest*
  15531. fi
  15532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15533. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15534. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15535. ;;
  15536. esac
  15537. fi
  15538. ;;
  15539. esac
  15540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15541. printf %s "checking dynamic linker characteristics... " >&6; }
  15542. library_names_spec=
  15543. libname_spec='lib$name'
  15544. soname_spec=
  15545. shrext_cmds=.so
  15546. postinstall_cmds=
  15547. postuninstall_cmds=
  15548. finish_cmds=
  15549. finish_eval=
  15550. shlibpath_var=
  15551. shlibpath_overrides_runpath=unknown
  15552. version_type=none
  15553. dynamic_linker="$host_os ld.so"
  15554. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15555. need_lib_prefix=unknown
  15556. hardcode_into_libs=no
  15557. # when you set need_version to no, make sure it does not cause -set_version
  15558. # flags to be left without arguments
  15559. need_version=unknown
  15560. case $host_os in
  15561. aix3*)
  15562. version_type=linux # correct to gnu/linux during the next big refactor
  15563. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  15564. shlibpath_var=LIBPATH
  15565. # AIX 3 has no versioning support, so we append a major version to the name.
  15566. soname_spec='$libname$release$shared_ext$major'
  15567. ;;
  15568. aix[4-9]*)
  15569. version_type=linux # correct to gnu/linux during the next big refactor
  15570. need_lib_prefix=no
  15571. need_version=no
  15572. hardcode_into_libs=yes
  15573. if test ia64 = "$host_cpu"; then
  15574. # AIX 5 supports IA64
  15575. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  15576. shlibpath_var=LD_LIBRARY_PATH
  15577. else
  15578. # With GCC up to 2.95.x, collect2 would create an import file
  15579. # for dependence libraries. The import file would start with
  15580. # the line '#! .'. This would cause the generated library to
  15581. # depend on '.', always an invalid library. This was fixed in
  15582. # development snapshots of GCC prior to 3.0.
  15583. case $host_os in
  15584. aix4 | aix4.[01] | aix4.[01].*)
  15585. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15586. echo ' yes '
  15587. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  15588. :
  15589. else
  15590. can_build_shared=no
  15591. fi
  15592. ;;
  15593. esac
  15594. # Using Import Files as archive members, it is possible to support
  15595. # filename-based versioning of shared library archives on AIX. While
  15596. # this would work for both with and without runtime linking, it will
  15597. # prevent static linking of such archives. So we do filename-based
  15598. # shared library versioning with .so extension only, which is used
  15599. # when both runtime linking and shared linking is enabled.
  15600. # Unfortunately, runtime linking may impact performance, so we do
  15601. # not want this to be the default eventually. Also, we use the
  15602. # versioned .so libs for executables only if there is the -brtl
  15603. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  15604. # To allow for filename-based versioning support, we need to create
  15605. # libNAME.so.V as an archive file, containing:
  15606. # *) an Import File, referring to the versioned filename of the
  15607. # archive as well as the shared archive member, telling the
  15608. # bitwidth (32 or 64) of that shared object, and providing the
  15609. # list of exported symbols of that shared object, eventually
  15610. # decorated with the 'weak' keyword
  15611. # *) the shared object with the F_LOADONLY flag set, to really avoid
  15612. # it being seen by the linker.
  15613. # At run time we better use the real file rather than another symlink,
  15614. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  15615. case $with_aix_soname,$aix_use_runtimelinking in
  15616. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  15617. # soname into executable. Probably we can add versioning support to
  15618. # collect2, so additional links can be useful in future.
  15619. aix,yes) # traditional libtool
  15620. dynamic_linker='AIX unversionable lib.so'
  15621. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15622. # instead of lib<name>.a to let people know that these are not
  15623. # typical AIX shared libraries.
  15624. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15625. ;;
  15626. aix,no) # traditional AIX only
  15627. dynamic_linker='AIX lib.a(lib.so.V)'
  15628. # We preserve .a as extension for shared libraries through AIX4.2
  15629. # and later when we are not doing run time linking.
  15630. library_names_spec='$libname$release.a $libname.a'
  15631. soname_spec='$libname$release$shared_ext$major'
  15632. ;;
  15633. svr4,*) # full svr4 only
  15634. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  15635. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15636. # We do not specify a path in Import Files, so LIBPATH fires.
  15637. shlibpath_overrides_runpath=yes
  15638. ;;
  15639. *,yes) # both, prefer svr4
  15640. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  15641. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15642. # unpreferred sharedlib libNAME.a needs extra handling
  15643. 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"'
  15644. 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"'
  15645. # We do not specify a path in Import Files, so LIBPATH fires.
  15646. shlibpath_overrides_runpath=yes
  15647. ;;
  15648. *,no) # both, prefer aix
  15649. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  15650. library_names_spec='$libname$release.a $libname.a'
  15651. soname_spec='$libname$release$shared_ext$major'
  15652. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  15653. 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)'
  15654. 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"'
  15655. ;;
  15656. esac
  15657. shlibpath_var=LIBPATH
  15658. fi
  15659. ;;
  15660. amigaos*)
  15661. case $host_cpu in
  15662. powerpc)
  15663. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15664. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15666. ;;
  15667. m68k)
  15668. library_names_spec='$libname.ixlibrary $libname.a'
  15669. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15670. 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'
  15671. ;;
  15672. esac
  15673. ;;
  15674. beos*)
  15675. library_names_spec='$libname$shared_ext'
  15676. dynamic_linker="$host_os ld.so"
  15677. shlibpath_var=LIBRARY_PATH
  15678. ;;
  15679. bsdi[45]*)
  15680. version_type=linux # correct to gnu/linux during the next big refactor
  15681. need_version=no
  15682. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15683. soname_spec='$libname$release$shared_ext$major'
  15684. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15685. shlibpath_var=LD_LIBRARY_PATH
  15686. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15687. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15688. # the default ld.so.conf also contains /usr/contrib/lib and
  15689. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15690. # libtool to hard-code these into programs
  15691. ;;
  15692. cygwin* | mingw* | windows* | pw32* | cegcc*)
  15693. version_type=windows
  15694. shrext_cmds=.dll
  15695. need_version=no
  15696. need_lib_prefix=no
  15697. case $GCC,$cc_basename in
  15698. yes,*)
  15699. # gcc
  15700. library_names_spec='$libname.dll.a'
  15701. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15702. # If user builds GCC with multilib enabled,
  15703. # it should just install on $(libdir)
  15704. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  15705. if test xyes = x"$multilib"; then
  15706. postinstall_cmds='base_file=`basename \$file`~
  15707. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15708. dldir=$destdir/`dirname \$dlpath`~
  15709. $install_prog $dir/$dlname $destdir/$dlname~
  15710. chmod a+x $destdir/$dlname~
  15711. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15712. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  15713. fi'
  15714. else
  15715. postinstall_cmds='base_file=`basename \$file`~
  15716. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15717. dldir=$destdir/`dirname \$dlpath`~
  15718. test -d \$dldir || mkdir -p \$dldir~
  15719. $install_prog $dir/$dlname \$dldir/$dlname~
  15720. chmod a+x \$dldir/$dlname~
  15721. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15722. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15723. fi'
  15724. fi
  15725. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15726. dlpath=$dir/\$dldll~
  15727. $RM \$dlpath'
  15728. shlibpath_overrides_runpath=yes
  15729. case $host_os in
  15730. cygwin*)
  15731. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15732. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15733. ;;
  15734. mingw* | windows* | cegcc*)
  15735. # MinGW DLLs use traditional 'lib' prefix
  15736. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15737. ;;
  15738. pw32*)
  15739. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15740. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15741. ;;
  15742. esac
  15743. dynamic_linker='Win32 ld.exe'
  15744. ;;
  15745. *,cl* | *,icl*)
  15746. # Native MSVC or ICC
  15747. libname_spec='$name'
  15748. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15749. library_names_spec='$libname.dll.lib'
  15750. case $build_os in
  15751. mingw* | windows*)
  15752. sys_lib_search_path_spec=
  15753. lt_save_ifs=$IFS
  15754. IFS=';'
  15755. for lt_path in $LIB
  15756. do
  15757. IFS=$lt_save_ifs
  15758. # Let DOS variable expansion print the short 8.3 style file name.
  15759. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15760. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15761. done
  15762. IFS=$lt_save_ifs
  15763. # Convert to MSYS style.
  15764. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15765. ;;
  15766. cygwin*)
  15767. # Convert to unix form, then to dos form, then back to unix form
  15768. # but this time dos style (no spaces!) so that the unix form looks
  15769. # like /cygdrive/c/PROGRA~1:/cygdr...
  15770. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15771. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15772. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15773. ;;
  15774. *)
  15775. sys_lib_search_path_spec=$LIB
  15776. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15777. # It is most probably a Windows format PATH.
  15778. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15779. else
  15780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15781. fi
  15782. # FIXME: find the short name or the path components, as spaces are
  15783. # common. (e.g. "Program Files" -> "PROGRA~1")
  15784. ;;
  15785. esac
  15786. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15787. postinstall_cmds='base_file=`basename \$file`~
  15788. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15789. dldir=$destdir/`dirname \$dlpath`~
  15790. test -d \$dldir || mkdir -p \$dldir~
  15791. $install_prog $dir/$dlname \$dldir/$dlname'
  15792. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15793. dlpath=$dir/\$dldll~
  15794. $RM \$dlpath'
  15795. shlibpath_overrides_runpath=yes
  15796. dynamic_linker='Win32 link.exe'
  15797. ;;
  15798. *)
  15799. # Assume MSVC and ICC wrapper
  15800. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15801. dynamic_linker='Win32 ld.exe'
  15802. ;;
  15803. esac
  15804. # FIXME: first we should search . and the directory the executable is in
  15805. shlibpath_var=PATH
  15806. ;;
  15807. darwin* | rhapsody*)
  15808. dynamic_linker="$host_os dyld"
  15809. version_type=darwin
  15810. need_lib_prefix=no
  15811. need_version=no
  15812. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  15813. soname_spec='$libname$release$major$shared_ext'
  15814. shlibpath_overrides_runpath=yes
  15815. shlibpath_var=DYLD_LIBRARY_PATH
  15816. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  15817. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15818. ;;
  15819. dgux*)
  15820. version_type=linux # correct to gnu/linux during the next big refactor
  15821. need_lib_prefix=no
  15822. need_version=no
  15823. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15824. soname_spec='$libname$release$shared_ext$major'
  15825. shlibpath_var=LD_LIBRARY_PATH
  15826. ;;
  15827. freebsd* | dragonfly* | midnightbsd*)
  15828. # DragonFly does not have aout. When/if they implement a new
  15829. # versioning mechanism, adjust this.
  15830. if test -x /usr/bin/objformat; then
  15831. objformat=`/usr/bin/objformat`
  15832. else
  15833. case $host_os in
  15834. freebsd[23].*) objformat=aout ;;
  15835. *) objformat=elf ;;
  15836. esac
  15837. fi
  15838. # Handle Gentoo/FreeBSD as it was Linux
  15839. case $host_vendor in
  15840. gentoo)
  15841. version_type=linux ;;
  15842. *)
  15843. version_type=freebsd-$objformat ;;
  15844. esac
  15845. case $version_type in
  15846. freebsd-elf*)
  15847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15848. soname_spec='$libname$release$shared_ext$major'
  15849. need_version=no
  15850. need_lib_prefix=no
  15851. ;;
  15852. freebsd-*)
  15853. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15854. need_version=yes
  15855. ;;
  15856. linux)
  15857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15858. soname_spec='${libname}${release}${shared_ext}$major'
  15859. need_lib_prefix=no
  15860. need_version=no
  15861. ;;
  15862. esac
  15863. case $host_cpu in
  15864. powerpc64)
  15865. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  15866. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  15867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15868. /* end confdefs.h. */
  15869. int test_pointer_size[sizeof (void *) - 5];
  15870. _ACEOF
  15871. if ac_fn_cxx_try_compile "$LINENO"
  15872. then :
  15873. shlibpath_var=LD_LIBRARY_PATH
  15874. else $as_nop
  15875. shlibpath_var=LD_32_LIBRARY_PATH
  15876. fi
  15877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15878. ;;
  15879. *)
  15880. shlibpath_var=LD_LIBRARY_PATH
  15881. ;;
  15882. esac
  15883. case $host_os in
  15884. freebsd2.*)
  15885. shlibpath_overrides_runpath=yes
  15886. ;;
  15887. freebsd3.[01]* | freebsdelf3.[01]*)
  15888. shlibpath_overrides_runpath=yes
  15889. hardcode_into_libs=yes
  15890. ;;
  15891. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15892. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15893. shlibpath_overrides_runpath=no
  15894. hardcode_into_libs=yes
  15895. ;;
  15896. *) # from 4.6 on, and DragonFly
  15897. shlibpath_overrides_runpath=yes
  15898. hardcode_into_libs=yes
  15899. ;;
  15900. esac
  15901. ;;
  15902. haiku*)
  15903. version_type=linux # correct to gnu/linux during the next big refactor
  15904. need_lib_prefix=no
  15905. need_version=no
  15906. dynamic_linker="$host_os runtime_loader"
  15907. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15908. soname_spec='$libname$release$shared_ext$major'
  15909. shlibpath_var=LIBRARY_PATH
  15910. shlibpath_overrides_runpath=no
  15911. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  15912. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  15913. hardcode_into_libs=no
  15914. ;;
  15915. hpux9* | hpux10* | hpux11*)
  15916. # Give a soname corresponding to the major version so that dld.sl refuses to
  15917. # link against other versions.
  15918. version_type=sunos
  15919. need_lib_prefix=no
  15920. need_version=no
  15921. case $host_cpu in
  15922. ia64*)
  15923. shrext_cmds='.so'
  15924. hardcode_into_libs=yes
  15925. dynamic_linker="$host_os dld.so"
  15926. shlibpath_var=LD_LIBRARY_PATH
  15927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15929. soname_spec='$libname$release$shared_ext$major'
  15930. if test 32 = "$HPUX_IA64_MODE"; then
  15931. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15932. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15933. else
  15934. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15935. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15936. fi
  15937. ;;
  15938. hppa*64*)
  15939. shrext_cmds='.sl'
  15940. hardcode_into_libs=yes
  15941. dynamic_linker="$host_os dld.sl"
  15942. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15945. soname_spec='$libname$release$shared_ext$major'
  15946. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15948. ;;
  15949. *)
  15950. shrext_cmds='.sl'
  15951. dynamic_linker="$host_os dld.sl"
  15952. shlibpath_var=SHLIB_PATH
  15953. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15954. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15955. soname_spec='$libname$release$shared_ext$major'
  15956. ;;
  15957. esac
  15958. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15959. postinstall_cmds='chmod 555 $lib'
  15960. # or fails outright, so override atomically:
  15961. install_override_mode=555
  15962. ;;
  15963. interix[3-9]*)
  15964. version_type=linux # correct to gnu/linux during the next big refactor
  15965. need_lib_prefix=no
  15966. need_version=no
  15967. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15968. soname_spec='$libname$release$shared_ext$major'
  15969. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15970. shlibpath_var=LD_LIBRARY_PATH
  15971. shlibpath_overrides_runpath=no
  15972. hardcode_into_libs=yes
  15973. ;;
  15974. irix5* | irix6* | nonstopux*)
  15975. case $host_os in
  15976. nonstopux*) version_type=nonstopux ;;
  15977. *)
  15978. if test yes = "$lt_cv_prog_gnu_ld"; then
  15979. version_type=linux # correct to gnu/linux during the next big refactor
  15980. else
  15981. version_type=irix
  15982. fi ;;
  15983. esac
  15984. need_lib_prefix=no
  15985. need_version=no
  15986. soname_spec='$libname$release$shared_ext$major'
  15987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15988. case $host_os in
  15989. irix5* | nonstopux*)
  15990. libsuff= shlibsuff=
  15991. ;;
  15992. *)
  15993. case $LD in # libtool.m4 will add one of these switches to LD
  15994. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15995. libsuff= shlibsuff= libmagic=32-bit;;
  15996. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15997. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15998. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15999. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16000. *) libsuff= shlibsuff= libmagic=never-match;;
  16001. esac
  16002. ;;
  16003. esac
  16004. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16005. shlibpath_overrides_runpath=no
  16006. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  16007. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  16008. hardcode_into_libs=yes
  16009. ;;
  16010. # No shared lib support for Linux oldld, aout, or coff.
  16011. linux*oldld* | linux*aout* | linux*coff*)
  16012. dynamic_linker=no
  16013. ;;
  16014. linux*android*)
  16015. version_type=none # Android doesn't support versioned libraries.
  16016. need_lib_prefix=no
  16017. need_version=no
  16018. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  16019. soname_spec='$libname$release$shared_ext'
  16020. finish_cmds=
  16021. shlibpath_var=LD_LIBRARY_PATH
  16022. shlibpath_overrides_runpath=yes
  16023. # This implies no fast_install, which is unacceptable.
  16024. # Some rework will be needed to allow for fast_install
  16025. # before this can be enabled.
  16026. hardcode_into_libs=yes
  16027. dynamic_linker='Android linker'
  16028. # -rpath works at least for libraries that are not overridden by
  16029. # libraries installed in system locations.
  16030. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  16031. ;;
  16032. # This must be glibc/ELF.
  16033. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16034. version_type=linux # correct to gnu/linux during the next big refactor
  16035. need_lib_prefix=no
  16036. need_version=no
  16037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16038. soname_spec='$libname$release$shared_ext$major'
  16039. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16040. shlibpath_var=LD_LIBRARY_PATH
  16041. shlibpath_overrides_runpath=no
  16042. # Some binutils ld are patched to set DT_RUNPATH
  16043. if test ${lt_cv_shlibpath_overrides_runpath+y}
  16044. then :
  16045. printf %s "(cached) " >&6
  16046. else $as_nop
  16047. lt_cv_shlibpath_overrides_runpath=no
  16048. save_LDFLAGS=$LDFLAGS
  16049. save_libdir=$libdir
  16050. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  16051. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  16052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16053. /* end confdefs.h. */
  16054. int
  16055. main (void)
  16056. {
  16057. ;
  16058. return 0;
  16059. }
  16060. _ACEOF
  16061. if ac_fn_cxx_try_link "$LINENO"
  16062. then :
  16063. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  16064. then :
  16065. lt_cv_shlibpath_overrides_runpath=yes
  16066. fi
  16067. fi
  16068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16069. conftest$ac_exeext conftest.$ac_ext
  16070. LDFLAGS=$save_LDFLAGS
  16071. libdir=$save_libdir
  16072. fi
  16073. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  16074. # This implies no fast_install, which is unacceptable.
  16075. # Some rework will be needed to allow for fast_install
  16076. # before this can be enabled.
  16077. hardcode_into_libs=yes
  16078. # Ideally, we could use ldconfig to report *all* directories which are
  16079. # searched for libraries, however this is still not possible. Aside from not
  16080. # being certain /sbin/ldconfig is available, command
  16081. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  16082. # even though it is searched at run-time. Try to do the best guess by
  16083. # appending ld.so.conf contents (and includes) to the search path.
  16084. if test -f /etc/ld.so.conf; then
  16085. 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' ' '`
  16086. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16087. fi
  16088. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16089. # powerpc, because MkLinux only supported shared libraries with the
  16090. # GNU dynamic linker. Since this was broken with cross compilers,
  16091. # most powerpc-linux boxes support dynamic linking these days and
  16092. # people can always --disable-shared, the test was removed, and we
  16093. # assume the GNU/Linux dynamic linker is in use.
  16094. dynamic_linker='GNU/Linux ld.so'
  16095. ;;
  16096. netbsdelf*-gnu)
  16097. version_type=linux
  16098. need_lib_prefix=no
  16099. need_version=no
  16100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16101. soname_spec='$libname$release$shared_ext$major'
  16102. shlibpath_var=LD_LIBRARY_PATH
  16103. shlibpath_overrides_runpath=no
  16104. hardcode_into_libs=yes
  16105. dynamic_linker='NetBSD ld.elf_so'
  16106. ;;
  16107. netbsd*)
  16108. version_type=sunos
  16109. need_lib_prefix=no
  16110. need_version=no
  16111. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16112. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16114. dynamic_linker='NetBSD (a.out) ld.so'
  16115. else
  16116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16117. soname_spec='$libname$release$shared_ext$major'
  16118. dynamic_linker='NetBSD ld.elf_so'
  16119. fi
  16120. shlibpath_var=LD_LIBRARY_PATH
  16121. shlibpath_overrides_runpath=yes
  16122. hardcode_into_libs=yes
  16123. ;;
  16124. *-mlibc)
  16125. version_type=linux # correct to gnu/linux during the next big refactor
  16126. need_lib_prefix=no
  16127. need_version=no
  16128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16129. soname_spec='$libname$release$shared_ext$major'
  16130. dynamic_linker='mlibc ld.so'
  16131. shlibpath_var=LD_LIBRARY_PATH
  16132. shlibpath_overrides_runpath=no
  16133. hardcode_into_libs=yes
  16134. ;;
  16135. newsos6)
  16136. version_type=linux # correct to gnu/linux during the next big refactor
  16137. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16138. shlibpath_var=LD_LIBRARY_PATH
  16139. shlibpath_overrides_runpath=yes
  16140. ;;
  16141. *nto* | *qnx*)
  16142. version_type=qnx
  16143. need_lib_prefix=no
  16144. need_version=no
  16145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16146. soname_spec='$libname$release$shared_ext$major'
  16147. shlibpath_var=LD_LIBRARY_PATH
  16148. shlibpath_overrides_runpath=no
  16149. hardcode_into_libs=yes
  16150. dynamic_linker='ldqnx.so'
  16151. ;;
  16152. openbsd*)
  16153. version_type=sunos
  16154. sys_lib_dlsearch_path_spec=/usr/lib
  16155. need_lib_prefix=no
  16156. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  16157. need_version=no
  16158. else
  16159. need_version=yes
  16160. fi
  16161. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16162. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16163. shlibpath_var=LD_LIBRARY_PATH
  16164. shlibpath_overrides_runpath=yes
  16165. ;;
  16166. os2*)
  16167. libname_spec='$name'
  16168. version_type=windows
  16169. shrext_cmds=.dll
  16170. need_version=no
  16171. need_lib_prefix=no
  16172. # OS/2 can only load a DLL with a base name of 8 characters or less.
  16173. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  16174. v=$($ECHO $release$versuffix | tr -d .-);
  16175. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  16176. $ECHO $n$v`$shared_ext'
  16177. library_names_spec='${libname}_dll.$libext'
  16178. dynamic_linker='OS/2 ld.exe'
  16179. shlibpath_var=BEGINLIBPATH
  16180. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16182. postinstall_cmds='base_file=`basename \$file`~
  16183. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  16184. dldir=$destdir/`dirname \$dlpath`~
  16185. test -d \$dldir || mkdir -p \$dldir~
  16186. $install_prog $dir/$dlname \$dldir/$dlname~
  16187. chmod a+x \$dldir/$dlname~
  16188. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16189. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16190. fi'
  16191. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  16192. dlpath=$dir/\$dldll~
  16193. $RM \$dlpath'
  16194. ;;
  16195. osf3* | osf4* | osf5*)
  16196. version_type=osf
  16197. need_lib_prefix=no
  16198. need_version=no
  16199. soname_spec='$libname$release$shared_ext$major'
  16200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16201. shlibpath_var=LD_LIBRARY_PATH
  16202. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16203. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16204. ;;
  16205. rdos*)
  16206. dynamic_linker=no
  16207. ;;
  16208. serenity*)
  16209. version_type=linux # correct to gnu/linux during the next big refactor
  16210. need_lib_prefix=no
  16211. need_version=no
  16212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16213. soname_spec='$libname$release$shared_ext$major'
  16214. shlibpath_var=LD_LIBRARY_PATH
  16215. shlibpath_overrides_runpath=no
  16216. dynamic_linker='SerenityOS LibELF'
  16217. ;;
  16218. solaris*)
  16219. version_type=linux # correct to gnu/linux during the next big refactor
  16220. need_lib_prefix=no
  16221. need_version=no
  16222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16223. soname_spec='$libname$release$shared_ext$major'
  16224. shlibpath_var=LD_LIBRARY_PATH
  16225. shlibpath_overrides_runpath=yes
  16226. hardcode_into_libs=yes
  16227. # ldd complains unless libraries are executable
  16228. postinstall_cmds='chmod +x $lib'
  16229. ;;
  16230. sunos4*)
  16231. version_type=sunos
  16232. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16233. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16234. shlibpath_var=LD_LIBRARY_PATH
  16235. shlibpath_overrides_runpath=yes
  16236. if test yes = "$with_gnu_ld"; then
  16237. need_lib_prefix=no
  16238. fi
  16239. need_version=yes
  16240. ;;
  16241. sysv4 | sysv4.3*)
  16242. version_type=linux # correct to gnu/linux during the next big refactor
  16243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16244. soname_spec='$libname$release$shared_ext$major'
  16245. shlibpath_var=LD_LIBRARY_PATH
  16246. case $host_vendor in
  16247. sni)
  16248. shlibpath_overrides_runpath=no
  16249. need_lib_prefix=no
  16250. runpath_var=LD_RUN_PATH
  16251. ;;
  16252. siemens)
  16253. need_lib_prefix=no
  16254. ;;
  16255. motorola)
  16256. need_lib_prefix=no
  16257. need_version=no
  16258. shlibpath_overrides_runpath=no
  16259. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16260. ;;
  16261. esac
  16262. ;;
  16263. sysv4*MP*)
  16264. if test -d /usr/nec; then
  16265. version_type=linux # correct to gnu/linux during the next big refactor
  16266. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  16267. soname_spec='$libname$shared_ext.$major'
  16268. shlibpath_var=LD_LIBRARY_PATH
  16269. fi
  16270. ;;
  16271. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16272. version_type=sco
  16273. need_lib_prefix=no
  16274. need_version=no
  16275. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  16276. soname_spec='$libname$release$shared_ext$major'
  16277. shlibpath_var=LD_LIBRARY_PATH
  16278. shlibpath_overrides_runpath=yes
  16279. hardcode_into_libs=yes
  16280. if test yes = "$with_gnu_ld"; then
  16281. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16282. else
  16283. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16284. case $host_os in
  16285. sco3.2v5*)
  16286. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16287. ;;
  16288. esac
  16289. fi
  16290. sys_lib_dlsearch_path_spec='/usr/lib'
  16291. ;;
  16292. tpf*)
  16293. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16294. version_type=linux # correct to gnu/linux during the next big refactor
  16295. need_lib_prefix=no
  16296. need_version=no
  16297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16298. shlibpath_var=LD_LIBRARY_PATH
  16299. shlibpath_overrides_runpath=no
  16300. hardcode_into_libs=yes
  16301. ;;
  16302. uts4*)
  16303. version_type=linux # correct to gnu/linux during the next big refactor
  16304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16305. soname_spec='$libname$release$shared_ext$major'
  16306. shlibpath_var=LD_LIBRARY_PATH
  16307. ;;
  16308. emscripten*)
  16309. version_type=none
  16310. need_lib_prefix=no
  16311. need_version=no
  16312. library_names_spec='$libname$release$shared_ext'
  16313. soname_spec='$libname$release$shared_ext'
  16314. finish_cmds=
  16315. dynamic_linker="Emscripten linker"
  16316. lt_prog_compiler_wl_CXX=
  16317. lt_prog_compiler_pic_CXX=
  16318. lt_prog_compiler_static_CXX=
  16319. # C++ specific cases for pic, static, wl, etc.
  16320. if test yes = "$GXX"; then
  16321. lt_prog_compiler_wl_CXX='-Wl,'
  16322. lt_prog_compiler_static_CXX='-static'
  16323. case $host_os in
  16324. aix*)
  16325. # All AIX code is PIC.
  16326. if test ia64 = "$host_cpu"; then
  16327. # AIX 5 now supports IA64 processor
  16328. lt_prog_compiler_static_CXX='-Bstatic'
  16329. fi
  16330. lt_prog_compiler_pic_CXX='-fPIC'
  16331. ;;
  16332. amigaos*)
  16333. case $host_cpu in
  16334. powerpc)
  16335. # see comment about AmigaOS4 .so support
  16336. lt_prog_compiler_pic_CXX='-fPIC'
  16337. ;;
  16338. m68k)
  16339. # FIXME: we need at least 68020 code to build shared libraries, but
  16340. # adding the '-m68020' flag to GCC prevents building anything better,
  16341. # like '-m68040'.
  16342. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16343. ;;
  16344. esac
  16345. ;;
  16346. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16347. # PIC is the default for these OSes.
  16348. ;;
  16349. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  16350. # This hack is so that the source file can tell whether it is being
  16351. # built for inclusion in a dll (and should export symbols for example).
  16352. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16353. # (--disable-auto-import) libraries
  16354. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16355. case $host_os in
  16356. os2*)
  16357. lt_prog_compiler_static_CXX='$wl-static'
  16358. ;;
  16359. esac
  16360. ;;
  16361. darwin* | rhapsody*)
  16362. # PIC is the default on this platform
  16363. # Common symbols not allowed in MH_DYLIB files
  16364. lt_prog_compiler_pic_CXX='-fno-common'
  16365. ;;
  16366. *djgpp*)
  16367. # DJGPP does not support shared libraries at all
  16368. lt_prog_compiler_pic_CXX=
  16369. ;;
  16370. haiku*)
  16371. # PIC is the default for Haiku.
  16372. # The "-static" flag exists, but is broken.
  16373. lt_prog_compiler_static_CXX=
  16374. ;;
  16375. interix[3-9]*)
  16376. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16377. # Instead, we relocate shared libraries at runtime.
  16378. ;;
  16379. sysv4*MP*)
  16380. if test -d /usr/nec; then
  16381. lt_prog_compiler_pic_CXX=-Kconform_pic
  16382. fi
  16383. ;;
  16384. hpux*)
  16385. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16386. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  16387. # sets the default TLS model and affects inlining.
  16388. case $host_cpu in
  16389. hppa*64*)
  16390. ;;
  16391. *)
  16392. lt_prog_compiler_pic_CXX='-fPIC'
  16393. ;;
  16394. esac
  16395. ;;
  16396. *qnx* | *nto*)
  16397. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16398. # it will coredump.
  16399. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16400. ;;
  16401. *)
  16402. lt_prog_compiler_pic_CXX='-fPIC'
  16403. ;;
  16404. esac
  16405. else
  16406. case $host_os in
  16407. aix[4-9]*)
  16408. # All AIX code is PIC.
  16409. if test ia64 = "$host_cpu"; then
  16410. # AIX 5 now supports IA64 processor
  16411. lt_prog_compiler_static_CXX='-Bstatic'
  16412. else
  16413. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  16414. fi
  16415. ;;
  16416. chorus*)
  16417. case $cc_basename in
  16418. cxch68*)
  16419. # Green Hills C++ Compiler
  16420. # _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"
  16421. ;;
  16422. esac
  16423. ;;
  16424. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  16425. # This hack is so that the source file can tell whether it is being
  16426. # built for inclusion in a dll (and should export symbols for example).
  16427. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16428. ;;
  16429. dgux*)
  16430. case $cc_basename in
  16431. ec++*)
  16432. lt_prog_compiler_pic_CXX='-KPIC'
  16433. ;;
  16434. ghcx*)
  16435. # Green Hills C++ Compiler
  16436. lt_prog_compiler_pic_CXX='-pic'
  16437. ;;
  16438. *)
  16439. ;;
  16440. esac
  16441. ;;
  16442. freebsd* | dragonfly* | midnightbsd*)
  16443. # FreeBSD uses GNU C++
  16444. ;;
  16445. hpux9* | hpux10* | hpux11*)
  16446. case $cc_basename in
  16447. CC*)
  16448. lt_prog_compiler_wl_CXX='-Wl,'
  16449. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16450. if test ia64 != "$host_cpu"; then
  16451. lt_prog_compiler_pic_CXX='+Z'
  16452. fi
  16453. ;;
  16454. aCC*)
  16455. lt_prog_compiler_wl_CXX='-Wl,'
  16456. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16457. case $host_cpu in
  16458. hppa*64*|ia64*)
  16459. # +Z the default
  16460. ;;
  16461. *)
  16462. lt_prog_compiler_pic_CXX='+Z'
  16463. ;;
  16464. esac
  16465. ;;
  16466. *)
  16467. ;;
  16468. esac
  16469. ;;
  16470. interix*)
  16471. # This is c89, which is MS Visual C++ (no shared libs)
  16472. # Anyone wants to do a port?
  16473. ;;
  16474. irix5* | irix6* | nonstopux*)
  16475. case $cc_basename in
  16476. CC*)
  16477. lt_prog_compiler_wl_CXX='-Wl,'
  16478. lt_prog_compiler_static_CXX='-non_shared'
  16479. # CC pic flag -KPIC is the default.
  16480. ;;
  16481. *)
  16482. ;;
  16483. esac
  16484. ;;
  16485. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16486. case $cc_basename in
  16487. KCC*)
  16488. # KAI C++ Compiler
  16489. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16490. lt_prog_compiler_pic_CXX='-fPIC'
  16491. ;;
  16492. ecpc* )
  16493. # old Intel C++ for x86_64, which still supported -KPIC.
  16494. lt_prog_compiler_wl_CXX='-Wl,'
  16495. lt_prog_compiler_pic_CXX='-KPIC'
  16496. lt_prog_compiler_static_CXX='-static'
  16497. ;;
  16498. icpc* )
  16499. # Intel C++, used to be incompatible with GCC.
  16500. # ICC 10 doesn't accept -KPIC any more.
  16501. lt_prog_compiler_wl_CXX='-Wl,'
  16502. lt_prog_compiler_pic_CXX='-fPIC'
  16503. lt_prog_compiler_static_CXX='-static'
  16504. ;;
  16505. pgCC* | pgcpp*)
  16506. # Portland Group C++ compiler
  16507. lt_prog_compiler_wl_CXX='-Wl,'
  16508. lt_prog_compiler_pic_CXX='-fpic'
  16509. lt_prog_compiler_static_CXX='-Bstatic'
  16510. ;;
  16511. cxx*)
  16512. # Compaq C++
  16513. # Make sure the PIC flag is empty. It appears that all Alpha
  16514. # Linux and Compaq Tru64 Unix objects are PIC.
  16515. lt_prog_compiler_pic_CXX=
  16516. lt_prog_compiler_static_CXX='-non_shared'
  16517. ;;
  16518. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  16519. # IBM XL 8.0, 9.0 on PPC and BlueGene
  16520. lt_prog_compiler_wl_CXX='-Wl,'
  16521. lt_prog_compiler_pic_CXX='-qpic'
  16522. lt_prog_compiler_static_CXX='-qstaticlink'
  16523. ;;
  16524. *)
  16525. case `$CC -V 2>&1 | $SED 5q` in
  16526. *Sun\ C*)
  16527. # Sun C++ 5.9
  16528. lt_prog_compiler_pic_CXX='-KPIC'
  16529. lt_prog_compiler_static_CXX='-Bstatic'
  16530. lt_prog_compiler_wl_CXX='-Qoption ld '
  16531. ;;
  16532. esac
  16533. ;;
  16534. esac
  16535. ;;
  16536. lynxos*)
  16537. ;;
  16538. m88k*)
  16539. ;;
  16540. mvs*)
  16541. case $cc_basename in
  16542. cxx*)
  16543. lt_prog_compiler_pic_CXX='-W c,exportall'
  16544. ;;
  16545. *)
  16546. ;;
  16547. esac
  16548. ;;
  16549. netbsd* | netbsdelf*-gnu)
  16550. ;;
  16551. *-mlibc)
  16552. ;;
  16553. *qnx* | *nto*)
  16554. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16555. # it will coredump.
  16556. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16557. ;;
  16558. osf3* | osf4* | osf5*)
  16559. case $cc_basename in
  16560. KCC*)
  16561. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16562. ;;
  16563. RCC*)
  16564. # Rational C++ 2.4.1
  16565. lt_prog_compiler_pic_CXX='-pic'
  16566. ;;
  16567. cxx*)
  16568. # Digital/Compaq C++
  16569. lt_prog_compiler_wl_CXX='-Wl,'
  16570. # Make sure the PIC flag is empty. It appears that all Alpha
  16571. # Linux and Compaq Tru64 Unix objects are PIC.
  16572. lt_prog_compiler_pic_CXX=
  16573. lt_prog_compiler_static_CXX='-non_shared'
  16574. ;;
  16575. *)
  16576. ;;
  16577. esac
  16578. ;;
  16579. psos*)
  16580. ;;
  16581. serenity*)
  16582. ;;
  16583. solaris*)
  16584. case $cc_basename in
  16585. CC* | sunCC*)
  16586. # Sun C++ 4.2, 5.x and Centerline C++
  16587. lt_prog_compiler_pic_CXX='-KPIC'
  16588. lt_prog_compiler_static_CXX='-Bstatic'
  16589. lt_prog_compiler_wl_CXX='-Qoption ld '
  16590. ;;
  16591. gcx*)
  16592. # Green Hills C++ Compiler
  16593. lt_prog_compiler_pic_CXX='-PIC'
  16594. ;;
  16595. *)
  16596. ;;
  16597. esac
  16598. ;;
  16599. sunos4*)
  16600. case $cc_basename in
  16601. CC*)
  16602. # Sun C++ 4.x
  16603. lt_prog_compiler_pic_CXX='-pic'
  16604. lt_prog_compiler_static_CXX='-Bstatic'
  16605. ;;
  16606. lcc*)
  16607. # Lucid
  16608. lt_prog_compiler_pic_CXX='-pic'
  16609. ;;
  16610. *)
  16611. ;;
  16612. esac
  16613. ;;
  16614. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16615. case $cc_basename in
  16616. CC*)
  16617. lt_prog_compiler_wl_CXX='-Wl,'
  16618. lt_prog_compiler_pic_CXX='-KPIC'
  16619. lt_prog_compiler_static_CXX='-Bstatic'
  16620. ;;
  16621. esac
  16622. ;;
  16623. tandem*)
  16624. case $cc_basename in
  16625. NCC*)
  16626. # NonStop-UX NCC 3.20
  16627. lt_prog_compiler_pic_CXX='-KPIC'
  16628. ;;
  16629. *)
  16630. ;;
  16631. esac
  16632. ;;
  16633. vxworks*)
  16634. ;;
  16635. *)
  16636. lt_prog_compiler_can_build_shared_CXX=no
  16637. ;;
  16638. esac
  16639. fi
  16640. case $host_os in
  16641. # For platforms that do not support PIC, -DPIC is meaningless:
  16642. *djgpp*)
  16643. lt_prog_compiler_pic_CXX=
  16644. ;;
  16645. *)
  16646. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  16647. ;;
  16648. esac
  16649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  16650. printf %s "checking for $compiler option to produce PIC... " >&6; }
  16651. if test ${lt_cv_prog_compiler_pic_CXX+y}
  16652. then :
  16653. printf %s "(cached) " >&6
  16654. else $as_nop
  16655. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  16656. fi
  16657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  16658. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  16659. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  16660. #
  16661. # Check to make sure the PIC flag actually works.
  16662. #
  16663. if test -n "$lt_prog_compiler_pic_CXX"; then
  16664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  16665. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  16666. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  16667. then :
  16668. printf %s "(cached) " >&6
  16669. else $as_nop
  16670. lt_cv_prog_compiler_pic_works_CXX=no
  16671. ac_outfile=conftest.$ac_objext
  16672. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16673. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  16674. # Insert the option either (1) after the last *FLAGS variable, or
  16675. # (2) before a word containing "conftest.", or (3) at the end.
  16676. # Note that $ac_compile itself does not contain backslashes and begins
  16677. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16678. # The option is referenced via a variable to avoid confusing sed.
  16679. lt_compile=`echo "$ac_compile" | $SED \
  16680. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16681. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16682. -e 's:$: $lt_compiler_flag:'`
  16683. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16684. (eval "$lt_compile" 2>conftest.err)
  16685. ac_status=$?
  16686. cat conftest.err >&5
  16687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16688. if (exit $ac_status) && test -s "$ac_outfile"; then
  16689. # The compiler can only warn and ignore the option if not recognized
  16690. # So say no if there are warnings other than the usual output.
  16691. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  16692. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16693. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16694. lt_cv_prog_compiler_pic_works_CXX=yes
  16695. fi
  16696. fi
  16697. $RM conftest*
  16698. fi
  16699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  16700. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  16701. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  16702. case $lt_prog_compiler_pic_CXX in
  16703. "" | " "*) ;;
  16704. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  16705. esac
  16706. else
  16707. lt_prog_compiler_pic_CXX=
  16708. lt_prog_compiler_can_build_shared_CXX=no
  16709. fi
  16710. fi
  16711. #
  16712. # Check to make sure the static flag actually works.
  16713. #
  16714. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  16715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16716. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  16717. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  16718. then :
  16719. printf %s "(cached) " >&6
  16720. else $as_nop
  16721. lt_cv_prog_compiler_static_works_CXX=no
  16722. save_LDFLAGS=$LDFLAGS
  16723. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16724. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  16725. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16726. # The linker can only warn and ignore the option if not recognized
  16727. # So say no if there are warnings
  16728. if test -s conftest.err; then
  16729. # Append any errors to the config.log.
  16730. cat conftest.err 1>&5
  16731. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  16732. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16733. if diff conftest.exp conftest.er2 >/dev/null; then
  16734. lt_cv_prog_compiler_static_works_CXX=yes
  16735. fi
  16736. else
  16737. lt_cv_prog_compiler_static_works_CXX=yes
  16738. fi
  16739. fi
  16740. $RM -r conftest*
  16741. LDFLAGS=$save_LDFLAGS
  16742. fi
  16743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  16744. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  16745. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  16746. :
  16747. else
  16748. lt_prog_compiler_static_CXX=
  16749. fi
  16750. ='-fPIC'
  16751. archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  16752. archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  16753. archive_cmds_need_lc_CXX=no
  16754. no_undefined_flag_CXX=
  16755. ;;
  16756. *)
  16757. dynamic_linker=no
  16758. ;;
  16759. esac
  16760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16761. printf "%s\n" "$dynamic_linker" >&6; }
  16762. test no = "$dynamic_linker" && can_build_shared=no
  16763. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16764. if test yes = "$GCC"; then
  16765. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16766. fi
  16767. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  16768. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  16769. fi
  16770. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  16771. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  16772. fi
  16773. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  16774. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  16775. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  16776. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  16777. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  16778. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  16779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16780. printf %s "checking how to hardcode library paths into programs... " >&6; }
  16781. hardcode_action_CXX=
  16782. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16783. test -n "$runpath_var_CXX" ||
  16784. test yes = "$hardcode_automatic_CXX"; then
  16785. # We can hardcode non-existent directories.
  16786. if test no != "$hardcode_direct_CXX" &&
  16787. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16788. # have to relink, otherwise we might link with an installed library
  16789. # when we should be linking with a yet-to-be-installed one
  16790. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  16791. test no != "$hardcode_minus_L_CXX"; then
  16792. # Linking always hardcodes the temporary library directory.
  16793. hardcode_action_CXX=relink
  16794. else
  16795. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16796. hardcode_action_CXX=immediate
  16797. fi
  16798. else
  16799. # We cannot hardcode anything, or else we can only hardcode existing
  16800. # directories.
  16801. hardcode_action_CXX=unsupported
  16802. fi
  16803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16804. printf "%s\n" "$hardcode_action_CXX" >&6; }
  16805. if test relink = "$hardcode_action_CXX" ||
  16806. test yes = "$inherit_rpath_CXX"; then
  16807. # Fast installation is not supported
  16808. enable_fast_install=no
  16809. elif test yes = "$shlibpath_overrides_runpath" ||
  16810. test no = "$enable_shared"; then
  16811. # Fast installation is not necessary
  16812. enable_fast_install=needless
  16813. fi
  16814. fi # test -n "$compiler"
  16815. CC=$lt_save_CC
  16816. CFLAGS=$lt_save_CFLAGS
  16817. LDCXX=$LD
  16818. LD=$lt_save_LD
  16819. GCC=$lt_save_GCC
  16820. with_gnu_ld=$lt_save_with_gnu_ld
  16821. lt_cv_path_LDCXX=$lt_cv_path_LD
  16822. lt_cv_path_LD=$lt_save_path_LD
  16823. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16824. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16825. fi # test yes != "$_lt_caught_CXX_error"
  16826. ac_ext=cpp
  16827. ac_cpp='$CXXCPP $CPPFLAGS'
  16828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16831. if test "$GCC" = yes
  16832. then :
  16833. for flag in -Wall -Wextra; do
  16834. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  16835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  16836. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  16837. if eval test \${$as_CACHEVAR+y}
  16838. then :
  16839. printf %s "(cached) " >&6
  16840. else $as_nop
  16841. ax_check_save_flags=$CXXFLAGS
  16842. CXXFLAGS="$CXXFLAGS -Werror $flag"
  16843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16844. /* end confdefs.h. */
  16845. int main(void) { return 0; }
  16846. _ACEOF
  16847. if ac_fn_cxx_try_compile "$LINENO"
  16848. then :
  16849. eval "$as_CACHEVAR=yes"
  16850. else $as_nop
  16851. eval "$as_CACHEVAR=no"
  16852. fi
  16853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16854. CXXFLAGS=$ax_check_save_flags
  16855. fi
  16856. eval ac_res=\$$as_CACHEVAR
  16857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16858. printf "%s\n" "$ac_res" >&6; }
  16859. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  16860. then :
  16861. if test ${AM_CXXFLAGS+y}
  16862. then :
  16863. case " $AM_CXXFLAGS " in #(
  16864. *" $flag "*) :
  16865. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  16866. (: AM_CXXFLAGS already contains $flag) 2>&5
  16867. ac_status=$?
  16868. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16869. test $ac_status = 0; } ;; #(
  16870. *) :
  16871. as_fn_append AM_CXXFLAGS " $flag"
  16872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16873. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16874. ac_status=$?
  16875. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16876. test $ac_status = 0; }
  16877. ;;
  16878. esac
  16879. else $as_nop
  16880. AM_CXXFLAGS=$flag
  16881. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16882. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16883. ac_status=$?
  16884. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16885. test $ac_status = 0; }
  16886. fi
  16887. else $as_nop
  16888. :
  16889. fi
  16890. done
  16891. for flag in -fexceptions; do
  16892. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  16893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  16894. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  16895. if eval test \${$as_CACHEVAR+y}
  16896. then :
  16897. printf %s "(cached) " >&6
  16898. else $as_nop
  16899. ax_check_save_flags=$CXXFLAGS
  16900. CXXFLAGS="$CXXFLAGS -Werror $flag"
  16901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16902. /* end confdefs.h. */
  16903. int main(void) { return 0; }
  16904. _ACEOF
  16905. if ac_fn_cxx_try_compile "$LINENO"
  16906. then :
  16907. eval "$as_CACHEVAR=yes"
  16908. else $as_nop
  16909. eval "$as_CACHEVAR=no"
  16910. fi
  16911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16912. CXXFLAGS=$ax_check_save_flags
  16913. fi
  16914. eval ac_res=\$$as_CACHEVAR
  16915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16916. printf "%s\n" "$ac_res" >&6; }
  16917. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  16918. then :
  16919. if test ${AM_CXXFLAGS+y}
  16920. then :
  16921. case " $AM_CXXFLAGS " in #(
  16922. *" $flag "*) :
  16923. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  16924. (: AM_CXXFLAGS already contains $flag) 2>&5
  16925. ac_status=$?
  16926. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16927. test $ac_status = 0; } ;; #(
  16928. *) :
  16929. as_fn_append AM_CXXFLAGS " $flag"
  16930. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16931. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16932. ac_status=$?
  16933. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16934. test $ac_status = 0; }
  16935. ;;
  16936. esac
  16937. else $as_nop
  16938. AM_CXXFLAGS=$flag
  16939. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16940. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16941. ac_status=$?
  16942. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16943. test $ac_status = 0; }
  16944. fi
  16945. else $as_nop
  16946. :
  16947. fi
  16948. done
  16949. for flag in -fno-strict-aliasing; do
  16950. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  16951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  16952. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  16953. if eval test \${$as_CACHEVAR+y}
  16954. then :
  16955. printf %s "(cached) " >&6
  16956. else $as_nop
  16957. ax_check_save_flags=$CXXFLAGS
  16958. CXXFLAGS="$CXXFLAGS -Werror $flag"
  16959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16960. /* end confdefs.h. */
  16961. int main(void) { return 0; }
  16962. _ACEOF
  16963. if ac_fn_cxx_try_compile "$LINENO"
  16964. then :
  16965. eval "$as_CACHEVAR=yes"
  16966. else $as_nop
  16967. eval "$as_CACHEVAR=no"
  16968. fi
  16969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16970. CXXFLAGS=$ax_check_save_flags
  16971. fi
  16972. eval ac_res=\$$as_CACHEVAR
  16973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16974. printf "%s\n" "$ac_res" >&6; }
  16975. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  16976. then :
  16977. if test ${AM_CXXFLAGS+y}
  16978. then :
  16979. case " $AM_CXXFLAGS " in #(
  16980. *" $flag "*) :
  16981. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  16982. (: AM_CXXFLAGS already contains $flag) 2>&5
  16983. ac_status=$?
  16984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16985. test $ac_status = 0; } ;; #(
  16986. *) :
  16987. as_fn_append AM_CXXFLAGS " $flag"
  16988. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16989. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16990. ac_status=$?
  16991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16992. test $ac_status = 0; }
  16993. ;;
  16994. esac
  16995. else $as_nop
  16996. AM_CXXFLAGS=$flag
  16997. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  16998. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  16999. ac_status=$?
  17000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17001. test $ac_status = 0; }
  17002. fi
  17003. else $as_nop
  17004. :
  17005. fi
  17006. done
  17007. fi
  17008. ac_ext=c
  17009. ac_cpp='$CPP $CPPFLAGS'
  17010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17013. if test "$GCC" = yes
  17014. then :
  17015. for flag in -fno-strict-aliasing; do
  17016. as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  17017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  17018. printf %s "checking whether the linker accepts $flag... " >&6; }
  17019. if eval test \${$as_CACHEVAR+y}
  17020. then :
  17021. printf %s "(cached) " >&6
  17022. else $as_nop
  17023. ax_check_save_flags=$LDFLAGS
  17024. LDFLAGS="$LDFLAGS $flag"
  17025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17026. /* end confdefs.h. */
  17027. int
  17028. main (void)
  17029. {
  17030. ;
  17031. return 0;
  17032. }
  17033. _ACEOF
  17034. if ac_fn_c_try_link "$LINENO"
  17035. then :
  17036. eval "$as_CACHEVAR=yes"
  17037. else $as_nop
  17038. eval "$as_CACHEVAR=no"
  17039. fi
  17040. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17041. conftest$ac_exeext conftest.$ac_ext
  17042. LDFLAGS=$ax_check_save_flags
  17043. fi
  17044. eval ac_res=\$$as_CACHEVAR
  17045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17046. printf "%s\n" "$ac_res" >&6; }
  17047. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  17048. then :
  17049. if test ${AM_LDFLAGS+y}
  17050. then :
  17051. case " $AM_LDFLAGS " in #(
  17052. *" $flag "*) :
  17053. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  17054. (: AM_LDFLAGS already contains $flag) 2>&5
  17055. ac_status=$?
  17056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17057. test $ac_status = 0; } ;; #(
  17058. *) :
  17059. as_fn_append AM_LDFLAGS " $flag"
  17060. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  17061. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  17062. ac_status=$?
  17063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17064. test $ac_status = 0; }
  17065. ;;
  17066. esac
  17067. else $as_nop
  17068. AM_LDFLAGS=$flag
  17069. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  17070. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  17071. ac_status=$?
  17072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17073. test $ac_status = 0; }
  17074. fi
  17075. else $as_nop
  17076. :
  17077. fi
  17078. done
  17079. fi
  17080. case "$LD" in #(
  17081. *clang*) :
  17082. case "${host_os}" in #(
  17083. *linux*) :
  17084. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  17085. *) :
  17086. ;;
  17087. esac ;; #(
  17088. *) :
  17089. ;;
  17090. esac
  17091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  17092. printf %s "checking whether compiler supports visibility... " >&6; }
  17093. if test ${expatcfg_cv_compiler_supports_visibility+y}
  17094. then :
  17095. printf %s "(cached) " >&6
  17096. else $as_nop
  17097. expatcfg_cv_compiler_supports_visibility=no
  17098. OLDFLAGS=$CFLAGS
  17099. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  17100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17101. /* end confdefs.h. */
  17102. void __attribute__((visibility("default"))) foo(void);
  17103. void foo(void) {}
  17104. _ACEOF
  17105. if ac_fn_c_try_compile "$LINENO"
  17106. then :
  17107. expatcfg_cv_compiler_supports_visibility=yes
  17108. fi
  17109. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17110. CFLAGS=$OLDFLAGS
  17111. fi
  17112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  17113. printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
  17114. if test "$expatcfg_cv_compiler_supports_visibility" = yes
  17115. then :
  17116. if test ${AM_CFLAGS+y}
  17117. then :
  17118. case " $AM_CFLAGS " in #(
  17119. *" -fvisibility=hidden "*) :
  17120. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  17121. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  17122. ac_status=$?
  17123. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17124. test $ac_status = 0; } ;; #(
  17125. *) :
  17126. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  17127. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  17128. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  17129. ac_status=$?
  17130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17131. test $ac_status = 0; }
  17132. ;;
  17133. esac
  17134. else $as_nop
  17135. AM_CFLAGS=-fvisibility=hidden
  17136. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  17137. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  17138. ac_status=$?
  17139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17140. test $ac_status = 0; }
  17141. fi
  17142. if test "${enable_shared}" = yes
  17143. then :
  17144. if test ${AM_CPPFLAGS+y}
  17145. then :
  17146. case " $AM_CPPFLAGS " in #(
  17147. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  17148. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  17149. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  17150. ac_status=$?
  17151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17152. test $ac_status = 0; } ;; #(
  17153. *) :
  17154. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  17155. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  17156. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  17157. ac_status=$?
  17158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17159. test $ac_status = 0; }
  17160. ;;
  17161. esac
  17162. else $as_nop
  17163. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  17164. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  17165. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  17166. ac_status=$?
  17167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17168. test $ac_status = 0; }
  17169. fi
  17170. fi
  17171. fi
  17172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17173. printf %s "checking whether byte ordering is bigendian... " >&6; }
  17174. if test ${ac_cv_c_bigendian+y}
  17175. then :
  17176. printf %s "(cached) " >&6
  17177. else $as_nop
  17178. ac_cv_c_bigendian=unknown
  17179. # See if we're dealing with a universal compiler.
  17180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17181. /* end confdefs.h. */
  17182. #ifndef __APPLE_CC__
  17183. not a universal capable compiler
  17184. #endif
  17185. typedef int dummy;
  17186. _ACEOF
  17187. if ac_fn_c_try_compile "$LINENO"
  17188. then :
  17189. # Check for potential -arch flags. It is not universal unless
  17190. # there are at least two -arch flags with different values.
  17191. ac_arch=
  17192. ac_prev=
  17193. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17194. if test -n "$ac_prev"; then
  17195. case $ac_word in
  17196. i?86 | x86_64 | ppc | ppc64)
  17197. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17198. ac_arch=$ac_word
  17199. else
  17200. ac_cv_c_bigendian=universal
  17201. break
  17202. fi
  17203. ;;
  17204. esac
  17205. ac_prev=
  17206. elif test "x$ac_word" = "x-arch"; then
  17207. ac_prev=arch
  17208. fi
  17209. done
  17210. fi
  17211. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17212. if test $ac_cv_c_bigendian = unknown; then
  17213. # See if sys/param.h defines the BYTE_ORDER macro.
  17214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17215. /* end confdefs.h. */
  17216. #include <sys/types.h>
  17217. #include <sys/param.h>
  17218. int
  17219. main (void)
  17220. {
  17221. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17222. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17223. && LITTLE_ENDIAN)
  17224. bogus endian macros
  17225. #endif
  17226. ;
  17227. return 0;
  17228. }
  17229. _ACEOF
  17230. if ac_fn_c_try_compile "$LINENO"
  17231. then :
  17232. # It does; now see whether it defined to BIG_ENDIAN or not.
  17233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17234. /* end confdefs.h. */
  17235. #include <sys/types.h>
  17236. #include <sys/param.h>
  17237. int
  17238. main (void)
  17239. {
  17240. #if BYTE_ORDER != BIG_ENDIAN
  17241. not big endian
  17242. #endif
  17243. ;
  17244. return 0;
  17245. }
  17246. _ACEOF
  17247. if ac_fn_c_try_compile "$LINENO"
  17248. then :
  17249. ac_cv_c_bigendian=yes
  17250. else $as_nop
  17251. ac_cv_c_bigendian=no
  17252. fi
  17253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17254. fi
  17255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17256. fi
  17257. if test $ac_cv_c_bigendian = unknown; then
  17258. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17260. /* end confdefs.h. */
  17261. #include <limits.h>
  17262. int
  17263. main (void)
  17264. {
  17265. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17266. bogus endian macros
  17267. #endif
  17268. ;
  17269. return 0;
  17270. }
  17271. _ACEOF
  17272. if ac_fn_c_try_compile "$LINENO"
  17273. then :
  17274. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17276. /* end confdefs.h. */
  17277. #include <limits.h>
  17278. int
  17279. main (void)
  17280. {
  17281. #ifndef _BIG_ENDIAN
  17282. not big endian
  17283. #endif
  17284. ;
  17285. return 0;
  17286. }
  17287. _ACEOF
  17288. if ac_fn_c_try_compile "$LINENO"
  17289. then :
  17290. ac_cv_c_bigendian=yes
  17291. else $as_nop
  17292. ac_cv_c_bigendian=no
  17293. fi
  17294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17295. fi
  17296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17297. fi
  17298. if test $ac_cv_c_bigendian = unknown; then
  17299. # Compile a test program.
  17300. if test "$cross_compiling" = yes
  17301. then :
  17302. # Try to guess by grepping values from an object file.
  17303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17304. /* end confdefs.h. */
  17305. unsigned short int ascii_mm[] =
  17306. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17307. unsigned short int ascii_ii[] =
  17308. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17309. int use_ascii (int i) {
  17310. return ascii_mm[i] + ascii_ii[i];
  17311. }
  17312. unsigned short int ebcdic_ii[] =
  17313. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17314. unsigned short int ebcdic_mm[] =
  17315. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17316. int use_ebcdic (int i) {
  17317. return ebcdic_mm[i] + ebcdic_ii[i];
  17318. }
  17319. int
  17320. main (int argc, char **argv)
  17321. {
  17322. /* Intimidate the compiler so that it does not
  17323. optimize the arrays away. */
  17324. char *p = argv[0];
  17325. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  17326. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  17327. return use_ascii (argc) == use_ebcdic (*p);
  17328. }
  17329. _ACEOF
  17330. if ac_fn_c_try_link "$LINENO"
  17331. then :
  17332. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  17333. ac_cv_c_bigendian=yes
  17334. fi
  17335. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  17336. if test "$ac_cv_c_bigendian" = unknown; then
  17337. ac_cv_c_bigendian=no
  17338. else
  17339. # finding both strings is unlikely to happen, but who knows?
  17340. ac_cv_c_bigendian=unknown
  17341. fi
  17342. fi
  17343. fi
  17344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17345. conftest$ac_exeext conftest.$ac_ext
  17346. else $as_nop
  17347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17348. /* end confdefs.h. */
  17349. $ac_includes_default
  17350. int
  17351. main (void)
  17352. {
  17353. /* Are we little or big endian? From Harbison&Steele. */
  17354. union
  17355. {
  17356. long int l;
  17357. char c[sizeof (long int)];
  17358. } u;
  17359. u.l = 1;
  17360. return u.c[sizeof (long int) - 1] == 1;
  17361. ;
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. if ac_fn_c_try_run "$LINENO"
  17366. then :
  17367. ac_cv_c_bigendian=no
  17368. else $as_nop
  17369. ac_cv_c_bigendian=yes
  17370. fi
  17371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17372. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17373. fi
  17374. fi
  17375. fi
  17376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  17377. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  17378. case $ac_cv_c_bigendian in #(
  17379. yes)
  17380. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  17381. BYTEORDER=4321;; #(
  17382. no)
  17383. BYTEORDER=1234 ;; #(
  17384. universal)
  17385. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  17386. ;; #(
  17387. *)
  17388. as_fn_error $? "unknown endianness
  17389. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  17390. esac
  17391. printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
  17392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  17393. printf %s "checking for an ANSI C-conforming const... " >&6; }
  17394. if test ${ac_cv_c_const+y}
  17395. then :
  17396. printf %s "(cached) " >&6
  17397. else $as_nop
  17398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17399. /* end confdefs.h. */
  17400. int
  17401. main (void)
  17402. {
  17403. #ifndef __cplusplus
  17404. /* Ultrix mips cc rejects this sort of thing. */
  17405. typedef int charset[2];
  17406. const charset cs = { 0, 0 };
  17407. /* SunOS 4.1.1 cc rejects this. */
  17408. char const *const *pcpcc;
  17409. char **ppc;
  17410. /* NEC SVR4.0.2 mips cc rejects this. */
  17411. struct point {int x, y;};
  17412. static struct point const zero = {0,0};
  17413. /* IBM XL C 1.02.0.0 rejects this.
  17414. It does not let you subtract one const X* pointer from another in
  17415. an arm of an if-expression whose if-part is not a constant
  17416. expression */
  17417. const char *g = "string";
  17418. pcpcc = &g + (g ? g-g : 0);
  17419. /* HPUX 7.0 cc rejects these. */
  17420. ++pcpcc;
  17421. ppc = (char**) pcpcc;
  17422. pcpcc = (char const *const *) ppc;
  17423. { /* SCO 3.2v4 cc rejects this sort of thing. */
  17424. char tx;
  17425. char *t = &tx;
  17426. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17427. *t++ = 0;
  17428. if (s) return 0;
  17429. }
  17430. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17431. int x[] = {25, 17};
  17432. const int *foo = &x[0];
  17433. ++foo;
  17434. }
  17435. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17436. typedef const int *iptr;
  17437. iptr p = 0;
  17438. ++p;
  17439. }
  17440. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  17441. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17442. struct s { int j; const int *ap[3]; } bx;
  17443. struct s *b = &bx; b->j = 5;
  17444. }
  17445. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17446. const int foo = 10;
  17447. if (!foo) return 0;
  17448. }
  17449. return !cs[0] && !zero.x;
  17450. #endif
  17451. ;
  17452. return 0;
  17453. }
  17454. _ACEOF
  17455. if ac_fn_c_try_compile "$LINENO"
  17456. then :
  17457. ac_cv_c_const=yes
  17458. else $as_nop
  17459. ac_cv_c_const=no
  17460. fi
  17461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17462. fi
  17463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  17464. printf "%s\n" "$ac_cv_c_const" >&6; }
  17465. if test $ac_cv_c_const = no; then
  17466. printf "%s\n" "#define const /**/" >>confdefs.h
  17467. fi
  17468. # Check whether --with-xmlwf was given.
  17469. if test ${with_xmlwf+y}
  17470. then :
  17471. withval=$with_xmlwf;
  17472. else $as_nop
  17473. with_xmlwf=yes
  17474. fi
  17475. if test x${with_xmlwf} = xyes; then
  17476. WITH_XMLWF_TRUE=
  17477. WITH_XMLWF_FALSE='#'
  17478. else
  17479. WITH_XMLWF_TRUE='#'
  17480. WITH_XMLWF_FALSE=
  17481. fi
  17482. # Check whether --with-examples was given.
  17483. if test ${with_examples+y}
  17484. then :
  17485. withval=$with_examples;
  17486. else $as_nop
  17487. with_examples=yes
  17488. fi
  17489. if test x${with_examples} = xyes; then
  17490. WITH_EXAMPLES_TRUE=
  17491. WITH_EXAMPLES_FALSE='#'
  17492. else
  17493. WITH_EXAMPLES_TRUE='#'
  17494. WITH_EXAMPLES_FALSE=
  17495. fi
  17496. # Check whether --with-tests was given.
  17497. if test ${with_tests+y}
  17498. then :
  17499. withval=$with_tests;
  17500. else $as_nop
  17501. with_tests=yes
  17502. fi
  17503. if test x${with_tests} = xyes; then
  17504. WITH_TESTS_TRUE=
  17505. WITH_TESTS_FALSE='#'
  17506. else
  17507. WITH_TESTS_TRUE='#'
  17508. WITH_TESTS_FALSE=
  17509. fi
  17510. if test x${with_tests} = xyes
  17511. then :
  17512. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  17513. ac_ext=cpp
  17514. ac_cpp='$CXXCPP $CPPFLAGS'
  17515. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17516. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17517. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17518. ac_success=no
  17519. if test x$ac_success = xno; then
  17520. for alternative in ${ax_cxx_compile_alternatives}; do
  17521. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
  17522. if test x"$switch" = xMSVC; then
  17523. switch=-std:c++${alternative}
  17524. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | $as_tr_sh`
  17525. else
  17526. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  17527. fi
  17528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  17529. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  17530. if eval test \${$cachevar+y}
  17531. then :
  17532. printf %s "(cached) " >&6
  17533. else $as_nop
  17534. ac_save_CXX="$CXX"
  17535. CXX="$CXX $switch"
  17536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17537. /* end confdefs.h. */
  17538. // If the compiler admits that it is not ready for C++11, why torture it?
  17539. // Hopefully, this will speed up the test.
  17540. #ifndef __cplusplus
  17541. #error "This is not a C++ compiler"
  17542. // MSVC always sets __cplusplus to 199711L in older versions; newer versions
  17543. // only set it correctly if /Zc:__cplusplus is specified as well as a
  17544. // /std:c++NN switch:
  17545. // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
  17546. #elif __cplusplus < 201103L && !defined _MSC_VER
  17547. #error "This is not a C++11 compiler"
  17548. #else
  17549. namespace cxx11
  17550. {
  17551. namespace test_static_assert
  17552. {
  17553. template <typename T>
  17554. struct check
  17555. {
  17556. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  17557. };
  17558. }
  17559. namespace test_final_override
  17560. {
  17561. struct Base
  17562. {
  17563. virtual ~Base() {}
  17564. virtual void f() {}
  17565. };
  17566. struct Derived : public Base
  17567. {
  17568. virtual ~Derived() override {}
  17569. virtual void f() override {}
  17570. };
  17571. }
  17572. namespace test_double_right_angle_brackets
  17573. {
  17574. template < typename T >
  17575. struct check {};
  17576. typedef check<void> single_type;
  17577. typedef check<check<void>> double_type;
  17578. typedef check<check<check<void>>> triple_type;
  17579. typedef check<check<check<check<void>>>> quadruple_type;
  17580. }
  17581. namespace test_decltype
  17582. {
  17583. int
  17584. f()
  17585. {
  17586. int a = 1;
  17587. decltype(a) b = 2;
  17588. return a + b;
  17589. }
  17590. }
  17591. namespace test_type_deduction
  17592. {
  17593. template < typename T1, typename T2 >
  17594. struct is_same
  17595. {
  17596. static const bool value = false;
  17597. };
  17598. template < typename T >
  17599. struct is_same<T, T>
  17600. {
  17601. static const bool value = true;
  17602. };
  17603. template < typename T1, typename T2 >
  17604. auto
  17605. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  17606. {
  17607. return a1 + a2;
  17608. }
  17609. int
  17610. test(const int c, volatile int v)
  17611. {
  17612. static_assert(is_same<int, decltype(0)>::value == true, "");
  17613. static_assert(is_same<int, decltype(c)>::value == false, "");
  17614. static_assert(is_same<int, decltype(v)>::value == false, "");
  17615. auto ac = c;
  17616. auto av = v;
  17617. auto sumi = ac + av + 'x';
  17618. auto sumf = ac + av + 1.0;
  17619. static_assert(is_same<int, decltype(ac)>::value == true, "");
  17620. static_assert(is_same<int, decltype(av)>::value == true, "");
  17621. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  17622. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  17623. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  17624. return (sumf > 0.0) ? sumi : add(c, v);
  17625. }
  17626. }
  17627. namespace test_noexcept
  17628. {
  17629. int f() { return 0; }
  17630. int g() noexcept { return 0; }
  17631. static_assert(noexcept(f()) == false, "");
  17632. static_assert(noexcept(g()) == true, "");
  17633. }
  17634. namespace test_constexpr
  17635. {
  17636. template < typename CharT >
  17637. unsigned long constexpr
  17638. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  17639. {
  17640. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  17641. }
  17642. template < typename CharT >
  17643. unsigned long constexpr
  17644. strlen_c(const CharT *const s) noexcept
  17645. {
  17646. return strlen_c_r(s, 0UL);
  17647. }
  17648. static_assert(strlen_c("") == 0UL, "");
  17649. static_assert(strlen_c("1") == 1UL, "");
  17650. static_assert(strlen_c("example") == 7UL, "");
  17651. static_assert(strlen_c("another\0example") == 7UL, "");
  17652. }
  17653. namespace test_rvalue_references
  17654. {
  17655. template < int N >
  17656. struct answer
  17657. {
  17658. static constexpr int value = N;
  17659. };
  17660. answer<1> f(int&) { return answer<1>(); }
  17661. answer<2> f(const int&) { return answer<2>(); }
  17662. answer<3> f(int&&) { return answer<3>(); }
  17663. void
  17664. test()
  17665. {
  17666. int i = 0;
  17667. const int c = 0;
  17668. static_assert(decltype(f(i))::value == 1, "");
  17669. static_assert(decltype(f(c))::value == 2, "");
  17670. static_assert(decltype(f(0))::value == 3, "");
  17671. }
  17672. }
  17673. namespace test_uniform_initialization
  17674. {
  17675. struct test
  17676. {
  17677. static const int zero {};
  17678. static const int one {1};
  17679. };
  17680. static_assert(test::zero == 0, "");
  17681. static_assert(test::one == 1, "");
  17682. }
  17683. namespace test_lambdas
  17684. {
  17685. void
  17686. test1()
  17687. {
  17688. auto lambda1 = [](){};
  17689. auto lambda2 = lambda1;
  17690. lambda1();
  17691. lambda2();
  17692. }
  17693. int
  17694. test2()
  17695. {
  17696. auto a = [](int i, int j){ return i + j; }(1, 2);
  17697. auto b = []() -> int { return '0'; }();
  17698. auto c = [=](){ return a + b; }();
  17699. auto d = [&](){ return c; }();
  17700. auto e = [a, &b](int x) mutable {
  17701. const auto identity = [](int y){ return y; };
  17702. for (auto i = 0; i < a; ++i)
  17703. a += b--;
  17704. return x + identity(a + b);
  17705. }(0);
  17706. return a + b + c + d + e;
  17707. }
  17708. int
  17709. test3()
  17710. {
  17711. const auto nullary = [](){ return 0; };
  17712. const auto unary = [](int x){ return x; };
  17713. using nullary_t = decltype(nullary);
  17714. using unary_t = decltype(unary);
  17715. const auto higher1st = [](nullary_t f){ return f(); };
  17716. const auto higher2nd = [unary](nullary_t f1){
  17717. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  17718. };
  17719. return higher1st(nullary) + higher2nd(nullary)(unary);
  17720. }
  17721. }
  17722. namespace test_variadic_templates
  17723. {
  17724. template <int...>
  17725. struct sum;
  17726. template <int N0, int... N1toN>
  17727. struct sum<N0, N1toN...>
  17728. {
  17729. static constexpr auto value = N0 + sum<N1toN...>::value;
  17730. };
  17731. template <>
  17732. struct sum<>
  17733. {
  17734. static constexpr auto value = 0;
  17735. };
  17736. static_assert(sum<>::value == 0, "");
  17737. static_assert(sum<1>::value == 1, "");
  17738. static_assert(sum<23>::value == 23, "");
  17739. static_assert(sum<1, 2>::value == 3, "");
  17740. static_assert(sum<5, 5, 11>::value == 21, "");
  17741. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  17742. }
  17743. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  17744. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  17745. // because of this.
  17746. namespace test_template_alias_sfinae
  17747. {
  17748. struct foo {};
  17749. template<typename T>
  17750. using member = typename T::member_type;
  17751. template<typename T>
  17752. void func(...) {}
  17753. template<typename T>
  17754. void func(member<T>*) {}
  17755. void test();
  17756. void test() { func<foo>(0); }
  17757. }
  17758. } // namespace cxx11
  17759. #endif // __cplusplus >= 201103L
  17760. _ACEOF
  17761. if ac_fn_cxx_try_compile "$LINENO"
  17762. then :
  17763. eval $cachevar=yes
  17764. else $as_nop
  17765. eval $cachevar=no
  17766. fi
  17767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17768. CXX="$ac_save_CXX"
  17769. fi
  17770. eval ac_res=\$$cachevar
  17771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17772. printf "%s\n" "$ac_res" >&6; }
  17773. if eval test x\$$cachevar = xyes; then
  17774. CXX="$CXX $switch"
  17775. if test -n "$CXXCPP" ; then
  17776. CXXCPP="$CXXCPP $switch"
  17777. fi
  17778. ac_success=yes
  17779. break
  17780. fi
  17781. done
  17782. if test x$ac_success = xyes; then
  17783. break
  17784. fi
  17785. done
  17786. fi
  17787. ac_ext=c
  17788. ac_cpp='$CPP $CPPFLAGS'
  17789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17792. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  17793. if test x$ac_success = xno; then
  17794. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  17795. fi
  17796. fi
  17797. if test x$ac_success = xno; then
  17798. HAVE_CXX11=0
  17799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  17800. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  17801. else
  17802. HAVE_CXX11=1
  17803. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  17804. fi
  17805. fi
  17806. EXPATCFG_ON_MINGW=no
  17807. case "${host_os}" in #(
  17808. mingw*) :
  17809. EXPATCFG_ON_MINGW=yes
  17810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  17811. printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
  17812. *) :
  17813. ;;
  17814. esac
  17815. if test x${EXPATCFG_ON_MINGW} = xyes; then
  17816. MINGW_TRUE=
  17817. MINGW_FALSE='#'
  17818. else
  17819. MINGW_TRUE='#'
  17820. MINGW_FALSE=
  17821. fi
  17822. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  17823. UNICODE_TRUE=
  17824. UNICODE_FALSE='#'
  17825. else
  17826. UNICODE_TRUE='#'
  17827. UNICODE_FALSE=
  17828. fi
  17829. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
  17830. _INTERNAL_UNICODE_WCHAR_T_TRUE=
  17831. _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
  17832. else
  17833. _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
  17834. _INTERNAL_UNICODE_WCHAR_T_FALSE=
  17835. fi
  17836. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
  17837. _INTERNAL_MIN_SIZE_TRUE=
  17838. _INTERNAL_MIN_SIZE_FALSE='#'
  17839. else
  17840. _INTERNAL_MIN_SIZE_TRUE='#'
  17841. _INTERNAL_MIN_SIZE_FALSE=
  17842. fi
  17843. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
  17844. _INTERNAL_LARGE_SIZE_TRUE=
  17845. _INTERNAL_LARGE_SIZE_FALSE='#'
  17846. else
  17847. _INTERNAL_LARGE_SIZE_TRUE='#'
  17848. _INTERNAL_LARGE_SIZE_FALSE=
  17849. fi
  17850. LIBM=
  17851. case $host in
  17852. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-mingw* | *-*-pw32* | *-*-darwin*)
  17853. # These system don't have libm, or don't need it
  17854. ;;
  17855. *-ncr-sysv4.3*)
  17856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  17857. printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
  17858. if test ${ac_cv_lib_mw__mwvalidcheckl+y}
  17859. then :
  17860. printf %s "(cached) " >&6
  17861. else $as_nop
  17862. ac_check_lib_save_LIBS=$LIBS
  17863. LIBS="-lmw $LIBS"
  17864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17865. /* end confdefs.h. */
  17866. /* Override any GCC internal prototype to avoid an error.
  17867. Use char because int might match the return type of a GCC
  17868. builtin and then its argument prototype would still apply.
  17869. The 'extern "C"' is for builds by C++ compilers;
  17870. although this is not generally supported in C code supporting it here
  17871. has little cost and some practical benefit (sr 110532). */
  17872. #ifdef __cplusplus
  17873. extern "C"
  17874. #endif
  17875. char _mwvalidcheckl (void);
  17876. int
  17877. main (void)
  17878. {
  17879. return _mwvalidcheckl ();
  17880. ;
  17881. return 0;
  17882. }
  17883. _ACEOF
  17884. if ac_fn_c_try_link "$LINENO"
  17885. then :
  17886. ac_cv_lib_mw__mwvalidcheckl=yes
  17887. else $as_nop
  17888. ac_cv_lib_mw__mwvalidcheckl=no
  17889. fi
  17890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17891. conftest$ac_exeext conftest.$ac_ext
  17892. LIBS=$ac_check_lib_save_LIBS
  17893. fi
  17894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  17895. printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  17896. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
  17897. then :
  17898. LIBM=-lmw
  17899. fi
  17900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  17901. printf %s "checking for cos in -lm... " >&6; }
  17902. if test ${ac_cv_lib_m_cos+y}
  17903. then :
  17904. printf %s "(cached) " >&6
  17905. else $as_nop
  17906. ac_check_lib_save_LIBS=$LIBS
  17907. LIBS="-lm $LIBS"
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. /* Override any GCC internal prototype to avoid an error.
  17911. Use char because int might match the return type of a GCC
  17912. builtin and then its argument prototype would still apply.
  17913. The 'extern "C"' is for builds by C++ compilers;
  17914. although this is not generally supported in C code supporting it here
  17915. has little cost and some practical benefit (sr 110532). */
  17916. #ifdef __cplusplus
  17917. extern "C"
  17918. #endif
  17919. char cos (void);
  17920. int
  17921. main (void)
  17922. {
  17923. return cos ();
  17924. ;
  17925. return 0;
  17926. }
  17927. _ACEOF
  17928. if ac_fn_c_try_link "$LINENO"
  17929. then :
  17930. ac_cv_lib_m_cos=yes
  17931. else $as_nop
  17932. ac_cv_lib_m_cos=no
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17935. conftest$ac_exeext conftest.$ac_ext
  17936. LIBS=$ac_check_lib_save_LIBS
  17937. fi
  17938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  17939. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  17940. if test "x$ac_cv_lib_m_cos" = xyes
  17941. then :
  17942. LIBM="$LIBM -lm"
  17943. fi
  17944. ;;
  17945. *)
  17946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  17947. printf %s "checking for cos in -lm... " >&6; }
  17948. if test ${ac_cv_lib_m_cos+y}
  17949. then :
  17950. printf %s "(cached) " >&6
  17951. else $as_nop
  17952. ac_check_lib_save_LIBS=$LIBS
  17953. LIBS="-lm $LIBS"
  17954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17955. /* end confdefs.h. */
  17956. /* Override any GCC internal prototype to avoid an error.
  17957. Use char because int might match the return type of a GCC
  17958. builtin and then its argument prototype would still apply.
  17959. The 'extern "C"' is for builds by C++ compilers;
  17960. although this is not generally supported in C code supporting it here
  17961. has little cost and some practical benefit (sr 110532). */
  17962. #ifdef __cplusplus
  17963. extern "C"
  17964. #endif
  17965. char cos (void);
  17966. int
  17967. main (void)
  17968. {
  17969. return cos ();
  17970. ;
  17971. return 0;
  17972. }
  17973. _ACEOF
  17974. if ac_fn_c_try_link "$LINENO"
  17975. then :
  17976. ac_cv_lib_m_cos=yes
  17977. else $as_nop
  17978. ac_cv_lib_m_cos=no
  17979. fi
  17980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17981. conftest$ac_exeext conftest.$ac_ext
  17982. LIBS=$ac_check_lib_save_LIBS
  17983. fi
  17984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  17985. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  17986. if test "x$ac_cv_lib_m_cos" = xyes
  17987. then :
  17988. LIBM=-lm
  17989. fi
  17990. ;;
  17991. esac
  17992. # Check whether --with-libbsd was given.
  17993. if test ${with_libbsd+y}
  17994. then :
  17995. withval=$with_libbsd;
  17996. else $as_nop
  17997. with_libbsd=no
  17998. fi
  17999. if test "x${with_libbsd}" != xno
  18000. then :
  18001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  18002. printf %s "checking for arc4random_buf in -lbsd... " >&6; }
  18003. if test ${ac_cv_lib_bsd_arc4random_buf+y}
  18004. then :
  18005. printf %s "(cached) " >&6
  18006. else $as_nop
  18007. ac_check_lib_save_LIBS=$LIBS
  18008. LIBS="-lbsd $LIBS"
  18009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18010. /* end confdefs.h. */
  18011. /* Override any GCC internal prototype to avoid an error.
  18012. Use char because int might match the return type of a GCC
  18013. builtin and then its argument prototype would still apply.
  18014. The 'extern "C"' is for builds by C++ compilers;
  18015. although this is not generally supported in C code supporting it here
  18016. has little cost and some practical benefit (sr 110532). */
  18017. #ifdef __cplusplus
  18018. extern "C"
  18019. #endif
  18020. char arc4random_buf (void);
  18021. int
  18022. main (void)
  18023. {
  18024. return arc4random_buf ();
  18025. ;
  18026. return 0;
  18027. }
  18028. _ACEOF
  18029. if ac_fn_c_try_link "$LINENO"
  18030. then :
  18031. ac_cv_lib_bsd_arc4random_buf=yes
  18032. else $as_nop
  18033. ac_cv_lib_bsd_arc4random_buf=no
  18034. fi
  18035. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18036. conftest$ac_exeext conftest.$ac_ext
  18037. LIBS=$ac_check_lib_save_LIBS
  18038. fi
  18039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  18040. printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  18041. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
  18042. then :
  18043. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  18044. LIBS="-lbsd $LIBS"
  18045. else $as_nop
  18046. if test "x${with_libbsd}" = xyes
  18047. then :
  18048. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  18049. fi
  18050. fi
  18051. fi
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD, libbsd or glibc 2.36+)" >&5
  18053. printf %s "checking for arc4random_buf (BSD, libbsd or glibc 2.36+)... " >&6; }
  18054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18055. /* end confdefs.h. */
  18056. #if defined(HAVE_LIBBSD)
  18057. # include <bsd/stdlib.h>
  18058. #else
  18059. # include <stdlib.h> /* for arc4random_buf on BSD */
  18060. #endif
  18061. int main(void) {
  18062. char dummy[123]; // double brackets for m4
  18063. arc4random_buf(dummy, 0U);
  18064. return 0;
  18065. }
  18066. _ACEOF
  18067. if ac_fn_c_try_link "$LINENO"
  18068. then :
  18069. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  18070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18071. printf "%s\n" "yes" >&6; }
  18072. else $as_nop
  18073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18074. printf "%s\n" "no" >&6; }
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)" >&5
  18076. printf %s "checking for arc4random (BSD, macOS, libbsd or glibc 2.36+)... " >&6; }
  18077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18078. /* end confdefs.h. */
  18079. #if defined(HAVE_LIBBSD)
  18080. # include <bsd/stdlib.h>
  18081. #else
  18082. # include <stdlib.h>
  18083. #endif
  18084. int main(void) {
  18085. arc4random();
  18086. return 0;
  18087. }
  18088. _ACEOF
  18089. if ac_fn_c_try_link "$LINENO"
  18090. then :
  18091. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  18092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18093. printf "%s\n" "yes" >&6; }
  18094. else $as_nop
  18095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18096. printf "%s\n" "no" >&6; }
  18097. fi
  18098. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18099. conftest$ac_exeext conftest.$ac_ext
  18100. fi
  18101. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18102. conftest$ac_exeext conftest.$ac_ext
  18103. # Check whether --with-getrandom was given.
  18104. if test ${with_getrandom+y}
  18105. then :
  18106. withval=$with_getrandom;
  18107. else $as_nop
  18108. with_getrandom=check
  18109. fi
  18110. if test "x$with_getrandom" != xno
  18111. then :
  18112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  18113. printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  18114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18115. /* end confdefs.h. */
  18116. #include <stdlib.h> /* for NULL */
  18117. #include <sys/random.h>
  18118. int main(void) {
  18119. return getrandom(NULL, 0U, 0U);
  18120. }
  18121. _ACEOF
  18122. if ac_fn_c_try_link "$LINENO"
  18123. then :
  18124. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  18125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18126. printf "%s\n" "yes" >&6; }
  18127. else $as_nop
  18128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18129. printf "%s\n" "no" >&6; }
  18130. if test "x$with_getrandom" = xyes
  18131. then :
  18132. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  18133. fi
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18136. conftest$ac_exeext conftest.$ac_ext
  18137. fi
  18138. # Check whether --with-sys_getrandom was given.
  18139. if test ${with_sys_getrandom+y}
  18140. then :
  18141. withval=$with_sys_getrandom;
  18142. else $as_nop
  18143. with_sys_getrandom=check
  18144. fi
  18145. if test "x$with_sys_getrandom" != xno
  18146. then :
  18147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  18148. printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  18149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18150. /* end confdefs.h. */
  18151. #define _GNU_SOURCE
  18152. #include <stdlib.h> /* for NULL */
  18153. #include <unistd.h> /* for syscall */
  18154. #include <sys/syscall.h> /* for SYS_getrandom */
  18155. int main(void) {
  18156. syscall(SYS_getrandom, NULL, 0, 0);
  18157. return 0;
  18158. }
  18159. _ACEOF
  18160. if ac_fn_c_try_link "$LINENO"
  18161. then :
  18162. printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  18163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18164. printf "%s\n" "yes" >&6; }
  18165. else $as_nop
  18166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18167. printf "%s\n" "no" >&6; }
  18168. if test "x$with_sys_getrandom" = xyes
  18169. then :
  18170. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  18171. fi
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18174. conftest$ac_exeext conftest.$ac_ext
  18175. fi
  18176. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  18177. if test "x$ac_cv_header_fcntl_h" = xyes
  18178. then :
  18179. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  18180. fi
  18181. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  18182. if test "x$ac_cv_header_unistd_h" = xyes
  18183. then :
  18184. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  18185. fi
  18186. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  18187. if test "x$ac_cv_type_off_t" = xyes
  18188. then :
  18189. else $as_nop
  18190. printf "%s\n" "#define off_t long int" >>confdefs.h
  18191. fi
  18192. ac_func=
  18193. for ac_item in $ac_func_c_list
  18194. do
  18195. if test $ac_func; then
  18196. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  18197. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  18198. echo "#define $ac_item 1" >> confdefs.h
  18199. fi
  18200. ac_func=
  18201. else
  18202. ac_func=$ac_item
  18203. fi
  18204. done
  18205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  18206. printf %s "checking for working mmap... " >&6; }
  18207. if test ${ac_cv_func_mmap_fixed_mapped+y}
  18208. then :
  18209. printf %s "(cached) " >&6
  18210. else $as_nop
  18211. if test "$cross_compiling" = yes
  18212. then :
  18213. case "$host_os" in # ((
  18214. # Guess yes on platforms where we know the result.
  18215. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  18216. # If we don't know, assume the worst.
  18217. *) ac_cv_func_mmap_fixed_mapped=no ;;
  18218. esac
  18219. else $as_nop
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. $ac_includes_default
  18223. /* malloc might have been renamed as rpl_malloc. */
  18224. #undef malloc
  18225. /* Thanks to Mike Haertel and Jim Avera for this test.
  18226. Here is a matrix of mmap possibilities:
  18227. mmap private not fixed
  18228. mmap private fixed at somewhere currently unmapped
  18229. mmap private fixed at somewhere already mapped
  18230. mmap shared not fixed
  18231. mmap shared fixed at somewhere currently unmapped
  18232. mmap shared fixed at somewhere already mapped
  18233. For private mappings, we should verify that changes cannot be read()
  18234. back from the file, nor mmap's back from the file at a different
  18235. address. (There have been systems where private was not correctly
  18236. implemented like the infamous i386 svr4.0, and systems where the
  18237. VM page cache was not coherent with the file system buffer cache
  18238. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18239. For shared mappings, we should conversely verify that changes get
  18240. propagated back to all the places they're supposed to be.
  18241. Grep wants private fixed already mapped.
  18242. The main things grep needs to know about mmap are:
  18243. * does it exist and is it safe to write into the mmap'd area
  18244. * how to use it (BSD variants) */
  18245. #include <fcntl.h>
  18246. #include <sys/mman.h>
  18247. /* This mess was copied from the GNU getpagesize.h. */
  18248. #ifndef HAVE_GETPAGESIZE
  18249. # ifdef _SC_PAGESIZE
  18250. # define getpagesize() sysconf(_SC_PAGESIZE)
  18251. # else /* no _SC_PAGESIZE */
  18252. # ifdef HAVE_SYS_PARAM_H
  18253. # include <sys/param.h>
  18254. # ifdef EXEC_PAGESIZE
  18255. # define getpagesize() EXEC_PAGESIZE
  18256. # else /* no EXEC_PAGESIZE */
  18257. # ifdef NBPG
  18258. # define getpagesize() NBPG * CLSIZE
  18259. # ifndef CLSIZE
  18260. # define CLSIZE 1
  18261. # endif /* no CLSIZE */
  18262. # else /* no NBPG */
  18263. # ifdef NBPC
  18264. # define getpagesize() NBPC
  18265. # else /* no NBPC */
  18266. # ifdef PAGESIZE
  18267. # define getpagesize() PAGESIZE
  18268. # endif /* PAGESIZE */
  18269. # endif /* no NBPC */
  18270. # endif /* no NBPG */
  18271. # endif /* no EXEC_PAGESIZE */
  18272. # else /* no HAVE_SYS_PARAM_H */
  18273. # define getpagesize() 8192 /* punt totally */
  18274. # endif /* no HAVE_SYS_PARAM_H */
  18275. # endif /* no _SC_PAGESIZE */
  18276. #endif /* no HAVE_GETPAGESIZE */
  18277. int
  18278. main (void)
  18279. {
  18280. char *data, *data2, *data3;
  18281. const char *cdata2;
  18282. int i, pagesize;
  18283. int fd, fd2;
  18284. pagesize = getpagesize ();
  18285. /* First, make a file with some known garbage in it. */
  18286. data = (char *) malloc (pagesize);
  18287. if (!data)
  18288. return 1;
  18289. for (i = 0; i < pagesize; ++i)
  18290. *(data + i) = rand ();
  18291. umask (0);
  18292. fd = creat ("conftest.mmap", 0600);
  18293. if (fd < 0)
  18294. return 2;
  18295. if (write (fd, data, pagesize) != pagesize)
  18296. return 3;
  18297. close (fd);
  18298. /* Next, check that the tail of a page is zero-filled. File must have
  18299. non-zero length, otherwise we risk SIGBUS for entire page. */
  18300. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  18301. if (fd2 < 0)
  18302. return 4;
  18303. cdata2 = "";
  18304. if (write (fd2, cdata2, 1) != 1)
  18305. return 5;
  18306. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  18307. if (data2 == MAP_FAILED)
  18308. return 6;
  18309. for (i = 0; i < pagesize; ++i)
  18310. if (*(data2 + i))
  18311. return 7;
  18312. close (fd2);
  18313. if (munmap (data2, pagesize))
  18314. return 8;
  18315. /* Next, try to mmap the file at a fixed address which already has
  18316. something else allocated at it. If we can, also make sure that
  18317. we see the same garbage. */
  18318. fd = open ("conftest.mmap", O_RDWR);
  18319. if (fd < 0)
  18320. return 9;
  18321. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18322. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18323. return 10;
  18324. for (i = 0; i < pagesize; ++i)
  18325. if (*(data + i) != *(data2 + i))
  18326. return 11;
  18327. /* Finally, make sure that changes to the mapped area do not
  18328. percolate back to the file as seen by read(). (This is a bug on
  18329. some variants of i386 svr4.0.) */
  18330. for (i = 0; i < pagesize; ++i)
  18331. *(data2 + i) = *(data2 + i) + 1;
  18332. data3 = (char *) malloc (pagesize);
  18333. if (!data3)
  18334. return 12;
  18335. if (read (fd, data3, pagesize) != pagesize)
  18336. return 13;
  18337. for (i = 0; i < pagesize; ++i)
  18338. if (*(data + i) != *(data3 + i))
  18339. return 14;
  18340. close (fd);
  18341. free (data);
  18342. free (data3);
  18343. return 0;
  18344. }
  18345. _ACEOF
  18346. if ac_fn_c_try_run "$LINENO"
  18347. then :
  18348. ac_cv_func_mmap_fixed_mapped=yes
  18349. else $as_nop
  18350. ac_cv_func_mmap_fixed_mapped=no
  18351. fi
  18352. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18353. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18354. fi
  18355. fi
  18356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18357. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18358. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18359. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  18360. fi
  18361. rm -f conftest.mmap conftest.txt
  18362. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
  18363. then :
  18364. FILEMAP=unixfilemap
  18365. else $as_nop
  18366. FILEMAP=readfilemap
  18367. fi
  18368. printf "%s\n" "#define XML_NS 1" >>confdefs.h
  18369. printf "%s\n" "#define XML_GE 1" >>confdefs.h
  18370. printf "%s\n" "#define XML_DTD 1" >>confdefs.h
  18371. printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
  18372. # Check whether --enable-xml-attr-info was given.
  18373. if test ${enable_xml_attr_info+y}
  18374. then :
  18375. enableval=$enable_xml_attr_info;
  18376. else $as_nop
  18377. enable_xml_attr_info=no
  18378. fi
  18379. if test "x${enable_xml_attr_info}" = "xyes"
  18380. then :
  18381. printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
  18382. fi
  18383. # Check whether --enable-xml-context was given.
  18384. if test ${enable_xml_context+y}
  18385. then :
  18386. enableval=$enable_xml_context; enable_xml_context=${enableval}
  18387. fi
  18388. if test "x${enable_xml_context}" != "xno"
  18389. then :
  18390. if test "x${enable_xml_context}" = "xyes" \
  18391. -o "x${enable_xml_context}" = "x"
  18392. then :
  18393. enable_xml_context=1024
  18394. fi
  18395. else $as_nop
  18396. enable_xml_context=0
  18397. fi
  18398. printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
  18399. # Check whether --with-docbook was given.
  18400. if test ${with_docbook+y}
  18401. then :
  18402. withval=$with_docbook;
  18403. else $as_nop
  18404. with_docbook=check
  18405. fi
  18406. if test "x$with_docbook" != xno
  18407. then :
  18408. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  18409. do
  18410. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18411. set dummy $ac_prog; ac_word=$2
  18412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18413. printf %s "checking for $ac_word... " >&6; }
  18414. if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
  18415. then :
  18416. printf %s "(cached) " >&6
  18417. else $as_nop
  18418. if test -n "$DOCBOOK_TO_MAN"; then
  18419. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  18420. else
  18421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18422. for as_dir in $PATH
  18423. do
  18424. IFS=$as_save_IFS
  18425. case $as_dir in #(((
  18426. '') as_dir=./ ;;
  18427. */) ;;
  18428. *) as_dir=$as_dir/ ;;
  18429. esac
  18430. for ac_exec_ext in '' $ac_executable_extensions; do
  18431. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18432. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  18433. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18434. break 2
  18435. fi
  18436. done
  18437. done
  18438. IFS=$as_save_IFS
  18439. fi
  18440. fi
  18441. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  18442. if test -n "$DOCBOOK_TO_MAN"; then
  18443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  18444. printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
  18445. else
  18446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18447. printf "%s\n" "no" >&6; }
  18448. fi
  18449. test -n "$DOCBOOK_TO_MAN" && break
  18450. done
  18451. fi
  18452. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
  18453. then :
  18454. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  18455. fi
  18456. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
  18457. then :
  18458. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
  18459. then :
  18460. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  18461. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  18462. configure to command docbook2x-man of docbook2X.
  18463. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  18464. You can also configure using --without-docbook if you can do without a man
  18465. page for xmlwf." "$LINENO" 5
  18466. fi
  18467. fi
  18468. if test -f "${srcdir}"/doc/xmlwf.1
  18469. then :
  18470. if true; then
  18471. WITH_MANPAGE_TRUE=
  18472. WITH_MANPAGE_FALSE='#'
  18473. else
  18474. WITH_MANPAGE_TRUE='#'
  18475. WITH_MANPAGE_FALSE=
  18476. fi
  18477. if test "x$with_docbook" = xno -o "x${DOCBOOK_TO_MAN}" = x
  18478. then :
  18479. if true; then
  18480. WITH_PREBUILT_MANPAGE_TRUE=
  18481. WITH_PREBUILT_MANPAGE_FALSE='#'
  18482. else
  18483. WITH_PREBUILT_MANPAGE_TRUE='#'
  18484. WITH_PREBUILT_MANPAGE_FALSE=
  18485. fi
  18486. if false; then
  18487. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  18488. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  18489. else
  18490. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  18491. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  18492. fi
  18493. else $as_nop
  18494. if false; then
  18495. WITH_PREBUILT_MANPAGE_TRUE=
  18496. WITH_PREBUILT_MANPAGE_FALSE='#'
  18497. else
  18498. WITH_PREBUILT_MANPAGE_TRUE='#'
  18499. WITH_PREBUILT_MANPAGE_FALSE=
  18500. fi
  18501. if true; then
  18502. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  18503. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  18504. else
  18505. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  18506. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  18507. fi
  18508. fi
  18509. else $as_nop
  18510. if test "x$with_docbook" != xno -a "x${DOCBOOK_TO_MAN}" != x
  18511. then :
  18512. if true; then
  18513. WITH_MANPAGE_TRUE=
  18514. WITH_MANPAGE_FALSE='#'
  18515. else
  18516. WITH_MANPAGE_TRUE='#'
  18517. WITH_MANPAGE_FALSE=
  18518. fi
  18519. if true; then
  18520. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  18521. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  18522. else
  18523. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  18524. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  18525. fi
  18526. else $as_nop
  18527. if false; then
  18528. WITH_MANPAGE_TRUE=
  18529. WITH_MANPAGE_FALSE='#'
  18530. else
  18531. WITH_MANPAGE_TRUE='#'
  18532. WITH_MANPAGE_FALSE=
  18533. fi
  18534. if false; then
  18535. WITH_DISTRIBUTABLE_MANPAGE_TRUE=
  18536. WITH_DISTRIBUTABLE_MANPAGE_FALSE='#'
  18537. else
  18538. WITH_DISTRIBUTABLE_MANPAGE_TRUE='#'
  18539. WITH_DISTRIBUTABLE_MANPAGE_FALSE=
  18540. fi
  18541. fi
  18542. if false; then
  18543. WITH_PREBUILT_MANPAGE_TRUE=
  18544. WITH_PREBUILT_MANPAGE_FALSE='#'
  18545. else
  18546. WITH_PREBUILT_MANPAGE_TRUE='#'
  18547. WITH_PREBUILT_MANPAGE_FALSE=
  18548. fi
  18549. fi
  18550. if test "x${enable_xml_attr_info}" = xyes
  18551. then :
  18552. EXPAT_ATTR_INFO=ON
  18553. else $as_nop
  18554. EXPAT_ATTR_INFO=OFF
  18555. fi
  18556. EXPAT_DTD=ON
  18557. if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
  18558. then :
  18559. EXPAT_LARGE_SIZE=ON
  18560. else $as_nop
  18561. EXPAT_LARGE_SIZE=OFF
  18562. fi
  18563. if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
  18564. then :
  18565. EXPAT_MIN_SIZE=ON
  18566. else $as_nop
  18567. EXPAT_MIN_SIZE=OFF
  18568. fi
  18569. EXPAT_NS=ON
  18570. if test "x${enable_xml_context}" != xno
  18571. then :
  18572. EXPAT_CONTEXT_BYTES=${enable_xml_context}
  18573. else $as_nop
  18574. EXPAT_CONTEXT_BYTES=OFF
  18575. fi
  18576. if test "x${UNICODE_TRUE}" = x
  18577. then :
  18578. if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
  18579. then :
  18580. EXPAT_CHAR_TYPE=wchar_t
  18581. else $as_nop
  18582. EXPAT_CHAR_TYPE=ushort
  18583. fi
  18584. else $as_nop
  18585. EXPAT_CHAR_TYPE=char
  18586. fi
  18587. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  18588. LIBDIR_BASENAME="$(basename "${libdir}")"
  18589. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  18590. SO_MINOR="${LIBAGE}"
  18591. SO_PATCH="${LIBREVISION}"
  18592. if ac_fn_c_compute_int "$LINENO" "sizeof(void *)" "SIZEOF_VOID_P" ""
  18593. then :
  18594. fi
  18595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library name prefix" >&5
  18596. printf %s "checking for shared library name prefix... " >&6; }
  18597. case "${host_os}" in #(
  18598. cygwin*) :
  18599. CMAKE_SHARED_LIBRARY_PREFIX=cyg ;; #(
  18600. *) :
  18601. CMAKE_SHARED_LIBRARY_PREFIX=lib ;;
  18602. esac
  18603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CMAKE_SHARED_LIBRARY_PREFIX}" >&5
  18604. printf "%s\n" "${CMAKE_SHARED_LIBRARY_PREFIX}" >&6; }
  18605. case "${host_os}" in #(
  18606. darwin*) :
  18607. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in ;; #(
  18608. mingw*|cygwin*) :
  18609. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in ;; #(
  18610. *) :
  18611. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in ;;
  18612. esac
  18613. 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"
  18614. ac_config_files="$ac_config_files run.sh"
  18615. cat >confcache <<\_ACEOF
  18616. # This file is a shell script that caches the results of configure
  18617. # tests run on this system so they can be shared between configure
  18618. # scripts and configure runs, see configure's option --config-cache.
  18619. # It is not useful on other systems. If it contains results you don't
  18620. # want to keep, you may remove or edit it.
  18621. #
  18622. # config.status only pays attention to the cache file if you give it
  18623. # the --recheck option to rerun configure.
  18624. #
  18625. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18626. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18627. # following values.
  18628. _ACEOF
  18629. # The following way of writing the cache mishandles newlines in values,
  18630. # but we know of no workaround that is simple, portable, and efficient.
  18631. # So, we kill variables containing newlines.
  18632. # Ultrix sh set writes to stderr and can't be redirected directly,
  18633. # and sets the high bit in the cache file unless we assign to the vars.
  18634. (
  18635. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18636. eval ac_val=\$$ac_var
  18637. case $ac_val in #(
  18638. *${as_nl}*)
  18639. case $ac_var in #(
  18640. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18641. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18642. esac
  18643. case $ac_var in #(
  18644. _ | IFS | as_nl) ;; #(
  18645. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18646. *) { eval $ac_var=; unset $ac_var;} ;;
  18647. esac ;;
  18648. esac
  18649. done
  18650. (set) 2>&1 |
  18651. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18652. *${as_nl}ac_space=\ *)
  18653. # `set' does not quote correctly, so add quotes: double-quote
  18654. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18655. sed -n \
  18656. "s/'/'\\\\''/g;
  18657. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18658. ;; #(
  18659. *)
  18660. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18661. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18662. ;;
  18663. esac |
  18664. sort
  18665. ) |
  18666. sed '
  18667. /^ac_cv_env_/b end
  18668. t clear
  18669. :clear
  18670. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  18671. t end
  18672. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18673. :end' >>confcache
  18674. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18675. if test -w "$cache_file"; then
  18676. if test "x$cache_file" != "x/dev/null"; then
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18678. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  18679. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18680. cat confcache >"$cache_file"
  18681. else
  18682. case $cache_file in #(
  18683. */* | ?:*)
  18684. mv -f confcache "$cache_file"$$ &&
  18685. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18686. *)
  18687. mv -f confcache "$cache_file" ;;
  18688. esac
  18689. fi
  18690. fi
  18691. else
  18692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18693. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  18694. fi
  18695. fi
  18696. rm -f confcache
  18697. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18698. # Let make expand exec_prefix.
  18699. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18700. DEFS=-DHAVE_CONFIG_H
  18701. ac_libobjs=
  18702. ac_ltlibobjs=
  18703. U=
  18704. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18705. # 1. Remove the extension, and $U if already installed.
  18706. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18707. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  18708. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18709. # will be set to the directory where LIBOBJS objects are built.
  18710. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18711. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18712. done
  18713. LIBOBJS=$ac_libobjs
  18714. LTLIBOBJS=$ac_ltlibobjs
  18715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18716. printf %s "checking that generated files are newer than configure... " >&6; }
  18717. if test -n "$am_sleep_pid"; then
  18718. # Hide warnings about reused PIDs.
  18719. wait $am_sleep_pid 2>/dev/null
  18720. fi
  18721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18722. printf "%s\n" "done" >&6; }
  18723. if test -n "$EXEEXT"; then
  18724. am__EXEEXT_TRUE=
  18725. am__EXEEXT_FALSE='#'
  18726. else
  18727. am__EXEEXT_TRUE='#'
  18728. am__EXEEXT_FALSE=
  18729. fi
  18730. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18731. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18732. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18733. fi
  18734. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18735. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18736. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18737. fi
  18738. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18739. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18740. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18741. fi
  18742. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18743. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18744. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18745. fi
  18746. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  18747. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  18748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18749. fi
  18750. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  18751. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  18752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18753. fi
  18754. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  18755. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  18756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18757. fi
  18758. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  18759. as_fn_error $? "conditional \"MINGW\" was never defined.
  18760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18761. fi
  18762. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  18763. as_fn_error $? "conditional \"UNICODE\" was never defined.
  18764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18765. fi
  18766. if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
  18767. as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
  18768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18769. fi
  18770. if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
  18771. as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
  18772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18773. fi
  18774. if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
  18775. as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
  18776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18777. fi
  18778. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  18779. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  18780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18781. fi
  18782. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  18783. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  18784. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18785. fi
  18786. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  18787. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  18788. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18789. fi
  18790. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  18791. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  18792. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18793. fi
  18794. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  18795. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  18796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18797. fi
  18798. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  18799. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  18800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18801. fi
  18802. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  18803. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  18804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18805. fi
  18806. if test -z "${WITH_MANPAGE_TRUE}" && test -z "${WITH_MANPAGE_FALSE}"; then
  18807. as_fn_error $? "conditional \"WITH_MANPAGE\" was never defined.
  18808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18809. fi
  18810. if test -z "${WITH_DISTRIBUTABLE_MANPAGE_TRUE}" && test -z "${WITH_DISTRIBUTABLE_MANPAGE_FALSE}"; then
  18811. as_fn_error $? "conditional \"WITH_DISTRIBUTABLE_MANPAGE\" was never defined.
  18812. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18813. fi
  18814. if test -z "${WITH_PREBUILT_MANPAGE_TRUE}" && test -z "${WITH_PREBUILT_MANPAGE_FALSE}"; then
  18815. as_fn_error $? "conditional \"WITH_PREBUILT_MANPAGE\" was never defined.
  18816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18817. fi
  18818. : "${CONFIG_STATUS=./config.status}"
  18819. ac_write_fail=0
  18820. ac_clean_files_save=$ac_clean_files
  18821. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18823. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  18824. as_write_fail=0
  18825. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18826. #! $SHELL
  18827. # Generated by $as_me.
  18828. # Run this file to recreate the current configuration.
  18829. # Compiler output produced by configure, useful for debugging
  18830. # configure, is in config.log if it exists.
  18831. debug=false
  18832. ac_cs_recheck=false
  18833. ac_cs_silent=false
  18834. SHELL=\${CONFIG_SHELL-$SHELL}
  18835. export SHELL
  18836. _ASEOF
  18837. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18838. ## -------------------- ##
  18839. ## M4sh Initialization. ##
  18840. ## -------------------- ##
  18841. # Be more Bourne compatible
  18842. DUALCASE=1; export DUALCASE # for MKS sh
  18843. as_nop=:
  18844. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18845. then :
  18846. emulate sh
  18847. NULLCMD=:
  18848. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18849. # is contrary to our usage. Disable this feature.
  18850. alias -g '${1+"$@"}'='"$@"'
  18851. setopt NO_GLOB_SUBST
  18852. else $as_nop
  18853. case `(set -o) 2>/dev/null` in #(
  18854. *posix*) :
  18855. set -o posix ;; #(
  18856. *) :
  18857. ;;
  18858. esac
  18859. fi
  18860. # Reset variables that may have inherited troublesome values from
  18861. # the environment.
  18862. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  18863. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  18864. # side effect of setting IFS to empty, thus disabling word splitting.)
  18865. # Quoting is to prevent editors from complaining about space-tab.
  18866. as_nl='
  18867. '
  18868. export as_nl
  18869. IFS=" "" $as_nl"
  18870. PS1='$ '
  18871. PS2='> '
  18872. PS4='+ '
  18873. # Ensure predictable behavior from utilities with locale-dependent output.
  18874. LC_ALL=C
  18875. export LC_ALL
  18876. LANGUAGE=C
  18877. export LANGUAGE
  18878. # We cannot yet rely on "unset" to work, but we need these variables
  18879. # to be unset--not just set to an empty or harmless value--now, to
  18880. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  18881. # also avoids known problems related to "unset" and subshell syntax
  18882. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  18883. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  18884. do eval test \${$as_var+y} \
  18885. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18886. done
  18887. # Ensure that fds 0, 1, and 2 are open.
  18888. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  18889. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  18890. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  18891. # The user is always right.
  18892. if ${PATH_SEPARATOR+false} :; then
  18893. PATH_SEPARATOR=:
  18894. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18895. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18896. PATH_SEPARATOR=';'
  18897. }
  18898. fi
  18899. # Find who we are. Look in the path if we contain no directory separator.
  18900. as_myself=
  18901. case $0 in #((
  18902. *[\\/]* ) as_myself=$0 ;;
  18903. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18904. for as_dir in $PATH
  18905. do
  18906. IFS=$as_save_IFS
  18907. case $as_dir in #(((
  18908. '') as_dir=./ ;;
  18909. */) ;;
  18910. *) as_dir=$as_dir/ ;;
  18911. esac
  18912. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  18913. done
  18914. IFS=$as_save_IFS
  18915. ;;
  18916. esac
  18917. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18918. # in which case we are not to be found in the path.
  18919. if test "x$as_myself" = x; then
  18920. as_myself=$0
  18921. fi
  18922. if test ! -f "$as_myself"; then
  18923. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18924. exit 1
  18925. fi
  18926. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18927. # ----------------------------------------
  18928. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18929. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18930. # script with STATUS, using 1 if that was 0.
  18931. as_fn_error ()
  18932. {
  18933. as_status=$1; test $as_status -eq 0 && as_status=1
  18934. if test "$4"; then
  18935. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18937. fi
  18938. printf "%s\n" "$as_me: error: $2" >&2
  18939. as_fn_exit $as_status
  18940. } # as_fn_error
  18941. # as_fn_set_status STATUS
  18942. # -----------------------
  18943. # Set $? to STATUS, without forking.
  18944. as_fn_set_status ()
  18945. {
  18946. return $1
  18947. } # as_fn_set_status
  18948. # as_fn_exit STATUS
  18949. # -----------------
  18950. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18951. as_fn_exit ()
  18952. {
  18953. set +e
  18954. as_fn_set_status $1
  18955. exit $1
  18956. } # as_fn_exit
  18957. # as_fn_unset VAR
  18958. # ---------------
  18959. # Portably unset VAR.
  18960. as_fn_unset ()
  18961. {
  18962. { eval $1=; unset $1;}
  18963. }
  18964. as_unset=as_fn_unset
  18965. # as_fn_append VAR VALUE
  18966. # ----------------------
  18967. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18968. # advantage of any shell optimizations that allow amortized linear growth over
  18969. # repeated appends, instead of the typical quadratic growth present in naive
  18970. # implementations.
  18971. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  18972. then :
  18973. eval 'as_fn_append ()
  18974. {
  18975. eval $1+=\$2
  18976. }'
  18977. else $as_nop
  18978. as_fn_append ()
  18979. {
  18980. eval $1=\$$1\$2
  18981. }
  18982. fi # as_fn_append
  18983. # as_fn_arith ARG...
  18984. # ------------------
  18985. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18986. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18987. # must be portable across $(()) and expr.
  18988. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  18989. then :
  18990. eval 'as_fn_arith ()
  18991. {
  18992. as_val=$(( $* ))
  18993. }'
  18994. else $as_nop
  18995. as_fn_arith ()
  18996. {
  18997. as_val=`expr "$@" || test $? -eq 1`
  18998. }
  18999. fi # as_fn_arith
  19000. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19001. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19002. as_expr=expr
  19003. else
  19004. as_expr=false
  19005. fi
  19006. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19007. as_basename=basename
  19008. else
  19009. as_basename=false
  19010. fi
  19011. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19012. as_dirname=dirname
  19013. else
  19014. as_dirname=false
  19015. fi
  19016. as_me=`$as_basename -- "$0" ||
  19017. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19018. X"$0" : 'X\(//\)$' \| \
  19019. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19020. printf "%s\n" X/"$0" |
  19021. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19022. s//\1/
  19023. q
  19024. }
  19025. /^X\/\(\/\/\)$/{
  19026. s//\1/
  19027. q
  19028. }
  19029. /^X\/\(\/\).*/{
  19030. s//\1/
  19031. q
  19032. }
  19033. s/.*/./; q'`
  19034. # Avoid depending upon Character Ranges.
  19035. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19036. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19037. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19038. as_cr_digits='0123456789'
  19039. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19040. # Determine whether it's possible to make 'echo' print without a newline.
  19041. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  19042. # for compatibility with existing Makefiles.
  19043. ECHO_C= ECHO_N= ECHO_T=
  19044. case `echo -n x` in #(((((
  19045. -n*)
  19046. case `echo 'xy\c'` in
  19047. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19048. xy) ECHO_C='\c';;
  19049. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19050. ECHO_T=' ';;
  19051. esac;;
  19052. *)
  19053. ECHO_N='-n';;
  19054. esac
  19055. # For backward compatibility with old third-party macros, we provide
  19056. # the shell variables $as_echo and $as_echo_n. New code should use
  19057. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  19058. as_echo='printf %s\n'
  19059. as_echo_n='printf %s'
  19060. rm -f conf$$ conf$$.exe conf$$.file
  19061. if test -d conf$$.dir; then
  19062. rm -f conf$$.dir/conf$$.file
  19063. else
  19064. rm -f conf$$.dir
  19065. mkdir conf$$.dir 2>/dev/null
  19066. fi
  19067. if (echo >conf$$.file) 2>/dev/null; then
  19068. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19069. as_ln_s='ln -s'
  19070. # ... but there are two gotchas:
  19071. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19072. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19073. # In both cases, we have to default to `cp -pR'.
  19074. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19075. as_ln_s='cp -pR'
  19076. elif ln conf$$.file conf$$ 2>/dev/null; then
  19077. as_ln_s=ln
  19078. else
  19079. as_ln_s='cp -pR'
  19080. fi
  19081. else
  19082. as_ln_s='cp -pR'
  19083. fi
  19084. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19085. rmdir conf$$.dir 2>/dev/null
  19086. # as_fn_mkdir_p
  19087. # -------------
  19088. # Create "$as_dir" as a directory, including parents if necessary.
  19089. as_fn_mkdir_p ()
  19090. {
  19091. case $as_dir in #(
  19092. -*) as_dir=./$as_dir;;
  19093. esac
  19094. test -d "$as_dir" || eval $as_mkdir_p || {
  19095. as_dirs=
  19096. while :; do
  19097. case $as_dir in #(
  19098. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19099. *) as_qdir=$as_dir;;
  19100. esac
  19101. as_dirs="'$as_qdir' $as_dirs"
  19102. as_dir=`$as_dirname -- "$as_dir" ||
  19103. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19104. X"$as_dir" : 'X\(//\)[^/]' \| \
  19105. X"$as_dir" : 'X\(//\)$' \| \
  19106. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19107. printf "%s\n" X"$as_dir" |
  19108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19109. s//\1/
  19110. q
  19111. }
  19112. /^X\(\/\/\)[^/].*/{
  19113. s//\1/
  19114. q
  19115. }
  19116. /^X\(\/\/\)$/{
  19117. s//\1/
  19118. q
  19119. }
  19120. /^X\(\/\).*/{
  19121. s//\1/
  19122. q
  19123. }
  19124. s/.*/./; q'`
  19125. test -d "$as_dir" && break
  19126. done
  19127. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19128. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19129. } # as_fn_mkdir_p
  19130. if mkdir -p . 2>/dev/null; then
  19131. as_mkdir_p='mkdir -p "$as_dir"'
  19132. else
  19133. test -d ./-p && rmdir ./-p
  19134. as_mkdir_p=false
  19135. fi
  19136. # as_fn_executable_p FILE
  19137. # -----------------------
  19138. # Test if FILE is an executable regular file.
  19139. as_fn_executable_p ()
  19140. {
  19141. test -f "$1" && test -x "$1"
  19142. } # as_fn_executable_p
  19143. as_test_x='test -x'
  19144. as_executable_p=as_fn_executable_p
  19145. # Sed expression to map a string onto a valid CPP name.
  19146. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19147. # Sed expression to map a string onto a valid variable name.
  19148. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19149. exec 6>&1
  19150. ## ----------------------------------- ##
  19151. ## Main body of $CONFIG_STATUS script. ##
  19152. ## ----------------------------------- ##
  19153. _ASEOF
  19154. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19156. # Save the log message, to keep $0 and so on meaningful, and to
  19157. # report actual input values of CONFIG_FILES etc. instead of their
  19158. # values after options handling.
  19159. ac_log="
  19160. This file was extended by expat $as_me 2.7.0, which was
  19161. generated by GNU Autoconf 2.71. Invocation command line was
  19162. CONFIG_FILES = $CONFIG_FILES
  19163. CONFIG_HEADERS = $CONFIG_HEADERS
  19164. CONFIG_LINKS = $CONFIG_LINKS
  19165. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19166. $ $0 $@
  19167. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19168. "
  19169. _ACEOF
  19170. case $ac_config_files in *"
  19171. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19172. esac
  19173. case $ac_config_headers in *"
  19174. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19175. esac
  19176. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19177. # Files that config.status was made for.
  19178. config_files="$ac_config_files"
  19179. config_headers="$ac_config_headers"
  19180. config_commands="$ac_config_commands"
  19181. _ACEOF
  19182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19183. ac_cs_usage="\
  19184. \`$as_me' instantiates files and other configuration actions
  19185. from templates according to the current configuration. Unless the files
  19186. and actions are specified as TAGs, all are instantiated by default.
  19187. Usage: $0 [OPTION]... [TAG]...
  19188. -h, --help print this help, then exit
  19189. -V, --version print version number and configuration settings, then exit
  19190. --config print configuration, then exit
  19191. -q, --quiet, --silent
  19192. do not print progress messages
  19193. -d, --debug don't remove temporary files
  19194. --recheck update $as_me by reconfiguring in the same conditions
  19195. --file=FILE[:TEMPLATE]
  19196. instantiate the configuration file FILE
  19197. --header=FILE[:TEMPLATE]
  19198. instantiate the configuration header FILE
  19199. Configuration files:
  19200. $config_files
  19201. Configuration headers:
  19202. $config_headers
  19203. Configuration commands:
  19204. $config_commands
  19205. Report bugs to <https://github.com/libexpat/libexpat/issues>."
  19206. _ACEOF
  19207. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  19208. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  19209. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19210. ac_cs_config='$ac_cs_config_escaped'
  19211. ac_cs_version="\\
  19212. expat config.status 2.7.0
  19213. configured by $0, generated by GNU Autoconf 2.71,
  19214. with options \\"\$ac_cs_config\\"
  19215. Copyright (C) 2021 Free Software Foundation, Inc.
  19216. This config.status script is free software; the Free Software Foundation
  19217. gives unlimited permission to copy, distribute and modify it."
  19218. ac_pwd='$ac_pwd'
  19219. srcdir='$srcdir'
  19220. INSTALL='$INSTALL'
  19221. MKDIR_P='$MKDIR_P'
  19222. AWK='$AWK'
  19223. test -n "\$AWK" || AWK=awk
  19224. _ACEOF
  19225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19226. # The default lists apply if the user does not specify any file.
  19227. ac_need_defaults=:
  19228. while test $# != 0
  19229. do
  19230. case $1 in
  19231. --*=?*)
  19232. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19233. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19234. ac_shift=:
  19235. ;;
  19236. --*=)
  19237. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19238. ac_optarg=
  19239. ac_shift=:
  19240. ;;
  19241. *)
  19242. ac_option=$1
  19243. ac_optarg=$2
  19244. ac_shift=shift
  19245. ;;
  19246. esac
  19247. case $ac_option in
  19248. # Handling of the options.
  19249. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19250. ac_cs_recheck=: ;;
  19251. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19252. printf "%s\n" "$ac_cs_version"; exit ;;
  19253. --config | --confi | --conf | --con | --co | --c )
  19254. printf "%s\n" "$ac_cs_config"; exit ;;
  19255. --debug | --debu | --deb | --de | --d | -d )
  19256. debug=: ;;
  19257. --file | --fil | --fi | --f )
  19258. $ac_shift
  19259. case $ac_optarg in
  19260. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19261. '') as_fn_error $? "missing file argument" ;;
  19262. esac
  19263. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19264. ac_need_defaults=false;;
  19265. --header | --heade | --head | --hea )
  19266. $ac_shift
  19267. case $ac_optarg in
  19268. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19269. esac
  19270. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19271. ac_need_defaults=false;;
  19272. --he | --h)
  19273. # Conflict between --help and --header
  19274. as_fn_error $? "ambiguous option: \`$1'
  19275. Try \`$0 --help' for more information.";;
  19276. --help | --hel | -h )
  19277. printf "%s\n" "$ac_cs_usage"; exit ;;
  19278. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19279. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19280. ac_cs_silent=: ;;
  19281. # This is an error.
  19282. -*) as_fn_error $? "unrecognized option: \`$1'
  19283. Try \`$0 --help' for more information." ;;
  19284. *) as_fn_append ac_config_targets " $1"
  19285. ac_need_defaults=false ;;
  19286. esac
  19287. shift
  19288. done
  19289. ac_configure_extra_args=
  19290. if $ac_cs_silent; then
  19291. exec 6>/dev/null
  19292. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19293. fi
  19294. _ACEOF
  19295. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19296. if \$ac_cs_recheck; then
  19297. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19298. shift
  19299. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  19300. CONFIG_SHELL='$SHELL'
  19301. export CONFIG_SHELL
  19302. exec "\$@"
  19303. fi
  19304. _ACEOF
  19305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19306. exec 5>>config.log
  19307. {
  19308. echo
  19309. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19310. ## Running $as_me. ##
  19311. _ASBOX
  19312. printf "%s\n" "$ac_log"
  19313. } >&5
  19314. _ACEOF
  19315. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19316. #
  19317. # INIT-COMMANDS
  19318. #
  19319. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  19320. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19321. # if CDPATH is set.
  19322. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19323. sed_quote_subst='$sed_quote_subst'
  19324. double_quote_subst='$double_quote_subst'
  19325. delay_variable_subst='$delay_variable_subst'
  19326. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19327. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19328. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  19329. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19330. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19331. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19332. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19333. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19334. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19335. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  19336. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19337. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19338. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19339. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19340. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19341. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19342. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19343. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19344. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19345. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19346. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19347. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19348. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19349. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19350. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19351. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19352. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19353. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19354. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19355. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19356. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19357. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19358. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19359. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19360. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19361. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19362. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19363. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  19364. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19365. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19366. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19367. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19368. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19369. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19370. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  19371. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19372. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19373. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19374. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19375. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19376. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19377. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19378. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19379. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19380. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19381. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19382. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19383. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19384. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19385. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  19386. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19387. 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"`'
  19388. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  19389. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19390. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19391. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  19392. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19393. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19394. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19395. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19396. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19397. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19398. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19399. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19400. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19401. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19402. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19403. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19404. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19405. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19406. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19407. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19408. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19409. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19410. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19411. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19412. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19413. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19414. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19415. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19416. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19417. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19418. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19419. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19420. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19421. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19422. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19423. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19424. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19425. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19426. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19427. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19428. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19429. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19430. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19431. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19432. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19433. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19434. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19435. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19436. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19437. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19438. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19439. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19440. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19441. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19442. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19443. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19444. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19445. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19446. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19447. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19448. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19449. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19450. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19451. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19452. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19453. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19454. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19455. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19456. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  19457. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  19458. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19459. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19460. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19461. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19462. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19463. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19464. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19465. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19466. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19467. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19468. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19469. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19470. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19471. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19472. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19473. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19474. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19475. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19476. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19477. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19478. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19479. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19480. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19481. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19482. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19483. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19484. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19485. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19486. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19487. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19488. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19489. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19490. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19491. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19492. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19493. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19494. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19495. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19496. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19497. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19498. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19499. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19500. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19501. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19502. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19503. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19504. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19505. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19506. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19507. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19508. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19509. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19510. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19511. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19512. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19513. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19514. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19515. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19516. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19517. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19518. LTCC='$LTCC'
  19519. LTCFLAGS='$LTCFLAGS'
  19520. compiler='$compiler_DEFAULT'
  19521. # A function that is used when there is no print builtin or printf.
  19522. func_fallback_echo ()
  19523. {
  19524. eval 'cat <<_LTECHO_EOF
  19525. \$1
  19526. _LTECHO_EOF'
  19527. }
  19528. # Quote evaled strings.
  19529. for var in AS \
  19530. DLLTOOL \
  19531. OBJDUMP \
  19532. SHELL \
  19533. ECHO \
  19534. PATH_SEPARATOR \
  19535. SED \
  19536. GREP \
  19537. EGREP \
  19538. FGREP \
  19539. LD \
  19540. NM \
  19541. LN_S \
  19542. lt_SP2NL \
  19543. lt_NL2SP \
  19544. reload_flag \
  19545. FILECMD \
  19546. deplibs_check_method \
  19547. file_magic_cmd \
  19548. file_magic_glob \
  19549. want_nocaseglob \
  19550. sharedlib_from_linklib_cmd \
  19551. AR \
  19552. archiver_list_spec \
  19553. STRIP \
  19554. RANLIB \
  19555. CC \
  19556. CFLAGS \
  19557. compiler \
  19558. lt_cv_sys_global_symbol_pipe \
  19559. lt_cv_sys_global_symbol_to_cdecl \
  19560. lt_cv_sys_global_symbol_to_import \
  19561. lt_cv_sys_global_symbol_to_c_name_address \
  19562. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19563. lt_cv_nm_interface \
  19564. nm_file_list_spec \
  19565. lt_cv_truncate_bin \
  19566. lt_prog_compiler_no_builtin_flag \
  19567. lt_prog_compiler_pic \
  19568. lt_prog_compiler_wl \
  19569. lt_prog_compiler_static \
  19570. lt_cv_prog_compiler_c_o \
  19571. need_locks \
  19572. MANIFEST_TOOL \
  19573. DSYMUTIL \
  19574. NMEDIT \
  19575. LIPO \
  19576. OTOOL \
  19577. OTOOL64 \
  19578. shrext_cmds \
  19579. export_dynamic_flag_spec \
  19580. whole_archive_flag_spec \
  19581. compiler_needs_object \
  19582. with_gnu_ld \
  19583. allow_undefined_flag \
  19584. no_undefined_flag \
  19585. hardcode_libdir_flag_spec \
  19586. hardcode_libdir_separator \
  19587. exclude_expsyms \
  19588. include_expsyms \
  19589. file_list_spec \
  19590. variables_saved_for_relink \
  19591. libname_spec \
  19592. library_names_spec \
  19593. soname_spec \
  19594. install_override_mode \
  19595. finish_eval \
  19596. old_striplib \
  19597. striplib \
  19598. compiler_lib_search_dirs \
  19599. predep_objects \
  19600. postdep_objects \
  19601. predeps \
  19602. postdeps \
  19603. compiler_lib_search_path \
  19604. LD_CXX \
  19605. reload_flag_CXX \
  19606. compiler_CXX \
  19607. lt_prog_compiler_no_builtin_flag_CXX \
  19608. lt_prog_compiler_pic_CXX \
  19609. lt_prog_compiler_wl_CXX \
  19610. lt_prog_compiler_static_CXX \
  19611. lt_cv_prog_compiler_c_o_CXX \
  19612. export_dynamic_flag_spec_CXX \
  19613. whole_archive_flag_spec_CXX \
  19614. compiler_needs_object_CXX \
  19615. with_gnu_ld_CXX \
  19616. allow_undefined_flag_CXX \
  19617. no_undefined_flag_CXX \
  19618. hardcode_libdir_flag_spec_CXX \
  19619. hardcode_libdir_separator_CXX \
  19620. exclude_expsyms_CXX \
  19621. include_expsyms_CXX \
  19622. file_list_spec_CXX \
  19623. compiler_lib_search_dirs_CXX \
  19624. predep_objects_CXX \
  19625. postdep_objects_CXX \
  19626. predeps_CXX \
  19627. postdeps_CXX \
  19628. compiler_lib_search_path_CXX; do
  19629. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19630. *[\\\\\\\`\\"\\\$]*)
  19631. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19632. ;;
  19633. *)
  19634. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19635. ;;
  19636. esac
  19637. done
  19638. # Double-quote double-evaled strings.
  19639. for var in reload_cmds \
  19640. old_postinstall_cmds \
  19641. old_postuninstall_cmds \
  19642. old_archive_cmds \
  19643. extract_expsyms_cmds \
  19644. old_archive_from_new_cmds \
  19645. old_archive_from_expsyms_cmds \
  19646. archive_cmds \
  19647. archive_expsym_cmds \
  19648. module_cmds \
  19649. module_expsym_cmds \
  19650. export_symbols_cmds \
  19651. prelink_cmds \
  19652. postlink_cmds \
  19653. postinstall_cmds \
  19654. postuninstall_cmds \
  19655. finish_cmds \
  19656. sys_lib_search_path_spec \
  19657. configure_time_dlsearch_path \
  19658. configure_time_lt_sys_library_path \
  19659. reload_cmds_CXX \
  19660. old_archive_cmds_CXX \
  19661. old_archive_from_new_cmds_CXX \
  19662. old_archive_from_expsyms_cmds_CXX \
  19663. archive_cmds_CXX \
  19664. archive_expsym_cmds_CXX \
  19665. module_cmds_CXX \
  19666. module_expsym_cmds_CXX \
  19667. export_symbols_cmds_CXX \
  19668. prelink_cmds_CXX \
  19669. postlink_cmds_CXX; do
  19670. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19671. *[\\\\\\\`\\"\\\$]*)
  19672. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19673. ;;
  19674. *)
  19675. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19676. ;;
  19677. esac
  19678. done
  19679. ac_aux_dir='$ac_aux_dir'
  19680. # See if we are running on zsh, and set the options that allow our
  19681. # commands through without removal of \ escapes INIT.
  19682. if test -n "\${ZSH_VERSION+set}"; then
  19683. setopt NO_GLOB_SUBST
  19684. fi
  19685. PACKAGE='$PACKAGE'
  19686. VERSION='$VERSION'
  19687. RM='$RM'
  19688. ofile='$ofile'
  19689. _ACEOF
  19690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19691. # Handling of arguments.
  19692. for ac_config_target in $ac_config_targets
  19693. do
  19694. case $ac_config_target in
  19695. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  19696. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19697. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19698. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19699. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  19700. "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
  19701. "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
  19702. "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
  19703. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19704. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  19705. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19706. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  19707. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  19708. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  19709. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  19710. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19711. esac
  19712. done
  19713. # If the user did not use the arguments to specify the items to instantiate,
  19714. # then the envvar interface is used. Set only those that are not.
  19715. # We use the long form for the default assignment because of an extremely
  19716. # bizarre bug on SunOS 4.1.3.
  19717. if $ac_need_defaults; then
  19718. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  19719. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  19720. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  19721. fi
  19722. # Have a temporary directory for convenience. Make it in the build tree
  19723. # simply because there is no reason against having it here, and in addition,
  19724. # creating and moving files from /tmp can sometimes cause problems.
  19725. # Hook for its removal unless debugging.
  19726. # Note that there is a small window in which the directory will not be cleaned:
  19727. # after its creation but before its name has been assigned to `$tmp'.
  19728. $debug ||
  19729. {
  19730. tmp= ac_tmp=
  19731. trap 'exit_status=$?
  19732. : "${ac_tmp:=$tmp}"
  19733. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19734. ' 0
  19735. trap 'as_fn_exit 1' 1 2 13 15
  19736. }
  19737. # Create a (secure) tmp directory for tmp files.
  19738. {
  19739. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19740. test -d "$tmp"
  19741. } ||
  19742. {
  19743. tmp=./conf$$-$RANDOM
  19744. (umask 077 && mkdir "$tmp")
  19745. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19746. ac_tmp=$tmp
  19747. # Set up the scripts for CONFIG_FILES section.
  19748. # No need to generate them if there are no CONFIG_FILES.
  19749. # This happens for instance with `./config.status config.h'.
  19750. if test -n "$CONFIG_FILES"; then
  19751. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  19752. ac_cs_awk_getline=:
  19753. ac_cs_awk_pipe_init=
  19754. ac_cs_awk_read_file='
  19755. while ((getline aline < (F[key])) > 0)
  19756. print(aline)
  19757. close(F[key])'
  19758. ac_cs_awk_pipe_fini=
  19759. else
  19760. ac_cs_awk_getline=false
  19761. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  19762. ac_cs_awk_read_file='
  19763. print "|#_!!_#|"
  19764. print "cat " F[key] " &&"
  19765. '$ac_cs_awk_pipe_init
  19766. # The final `:' finishes the AND list.
  19767. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  19768. fi
  19769. ac_cr=`echo X | tr X '\015'`
  19770. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19771. # But we know of no other shell where ac_cr would be empty at this
  19772. # point, so we can use a bashism as a fallback.
  19773. if test "x$ac_cr" = x; then
  19774. eval ac_cr=\$\'\\r\'
  19775. fi
  19776. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19777. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19778. ac_cs_awk_cr='\\r'
  19779. else
  19780. ac_cs_awk_cr=$ac_cr
  19781. fi
  19782. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19783. _ACEOF
  19784. # Create commands to substitute file output variables.
  19785. {
  19786. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  19787. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  19788. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  19789. echo "_ACAWK" &&
  19790. echo "_ACEOF"
  19791. } >conf$$files.sh &&
  19792. . ./conf$$files.sh ||
  19793. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19794. rm -f conf$$files.sh
  19795. {
  19796. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19797. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19798. echo "_ACEOF"
  19799. } >conf$$subs.sh ||
  19800. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19801. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19802. ac_delim='%!_!# '
  19803. for ac_last_try in false false false false false :; do
  19804. . ./conf$$subs.sh ||
  19805. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19806. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19807. if test $ac_delim_n = $ac_delim_num; then
  19808. break
  19809. elif $ac_last_try; then
  19810. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19811. else
  19812. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19813. fi
  19814. done
  19815. rm -f conf$$subs.sh
  19816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19817. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19818. _ACEOF
  19819. sed -n '
  19820. h
  19821. s/^/S["/; s/!.*/"]=/
  19822. p
  19823. g
  19824. s/^[^!]*!//
  19825. :repl
  19826. t repl
  19827. s/'"$ac_delim"'$//
  19828. t delim
  19829. :nl
  19830. h
  19831. s/\(.\{148\}\)..*/\1/
  19832. t more1
  19833. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19834. p
  19835. n
  19836. b repl
  19837. :more1
  19838. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19839. p
  19840. g
  19841. s/.\{148\}//
  19842. t nl
  19843. :delim
  19844. h
  19845. s/\(.\{148\}\)..*/\1/
  19846. t more2
  19847. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19848. p
  19849. b
  19850. :more2
  19851. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19852. p
  19853. g
  19854. s/.\{148\}//
  19855. t delim
  19856. ' <conf$$subs.awk | sed '
  19857. /^[^""]/{
  19858. N
  19859. s/\n//
  19860. }
  19861. ' >>$CONFIG_STATUS || ac_write_fail=1
  19862. rm -f conf$$subs.awk
  19863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19864. _ACAWK
  19865. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19866. for (key in S) S_is_set[key] = 1
  19867. FS = ""
  19868. \$ac_cs_awk_pipe_init
  19869. }
  19870. {
  19871. line = $ 0
  19872. nfields = split(line, field, "@")
  19873. substed = 0
  19874. len = length(field[1])
  19875. for (i = 2; i < nfields; i++) {
  19876. key = field[i]
  19877. keylen = length(key)
  19878. if (S_is_set[key]) {
  19879. value = S[key]
  19880. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19881. len += length(value) + length(field[++i])
  19882. substed = 1
  19883. } else
  19884. len += 1 + keylen
  19885. }
  19886. if (nfields == 3 && !substed) {
  19887. key = field[2]
  19888. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  19889. \$ac_cs_awk_read_file
  19890. next
  19891. }
  19892. }
  19893. print line
  19894. }
  19895. \$ac_cs_awk_pipe_fini
  19896. _ACAWK
  19897. _ACEOF
  19898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19899. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19900. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19901. else
  19902. cat
  19903. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19904. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19905. _ACEOF
  19906. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19907. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19908. # trailing colons and then remove the whole line if VPATH becomes empty
  19909. # (actually we leave an empty line to preserve line numbers).
  19910. if test "x$srcdir" = x.; then
  19911. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19912. h
  19913. s///
  19914. s/^/:/
  19915. s/[ ]*$/:/
  19916. s/:\$(srcdir):/:/g
  19917. s/:\${srcdir}:/:/g
  19918. s/:@srcdir@:/:/g
  19919. s/^:*//
  19920. s/:*$//
  19921. x
  19922. s/\(=[ ]*\).*/\1/
  19923. G
  19924. s/\n//
  19925. s/^[^=]*=[ ]*$//
  19926. }'
  19927. fi
  19928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19929. fi # test -n "$CONFIG_FILES"
  19930. # Set up the scripts for CONFIG_HEADERS section.
  19931. # No need to generate them if there are no CONFIG_HEADERS.
  19932. # This happens for instance with `./config.status Makefile'.
  19933. if test -n "$CONFIG_HEADERS"; then
  19934. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19935. BEGIN {
  19936. _ACEOF
  19937. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19938. # here-document in config.status, that substitutes the proper values into
  19939. # config.h.in to produce config.h.
  19940. # Create a delimiter string that does not exist in confdefs.h, to ease
  19941. # handling of long lines.
  19942. ac_delim='%!_!# '
  19943. for ac_last_try in false false :; do
  19944. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19945. if test -z "$ac_tt"; then
  19946. break
  19947. elif $ac_last_try; then
  19948. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19949. else
  19950. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19951. fi
  19952. done
  19953. # For the awk script, D is an array of macro values keyed by name,
  19954. # likewise P contains macro parameters if any. Preserve backslash
  19955. # newline sequences.
  19956. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19957. sed -n '
  19958. s/.\{148\}/&'"$ac_delim"'/g
  19959. t rset
  19960. :rset
  19961. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19962. t def
  19963. d
  19964. :def
  19965. s/\\$//
  19966. t bsnl
  19967. s/["\\]/\\&/g
  19968. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19969. D["\1"]=" \3"/p
  19970. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19971. d
  19972. :bsnl
  19973. s/["\\]/\\&/g
  19974. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19975. D["\1"]=" \3\\\\\\n"\\/p
  19976. t cont
  19977. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19978. t cont
  19979. d
  19980. :cont
  19981. n
  19982. s/.\{148\}/&'"$ac_delim"'/g
  19983. t clear
  19984. :clear
  19985. s/\\$//
  19986. t bsnlc
  19987. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19988. d
  19989. :bsnlc
  19990. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19991. b cont
  19992. ' <confdefs.h | sed '
  19993. s/'"$ac_delim"'/"\\\
  19994. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19996. for (key in D) D_is_set[key] = 1
  19997. FS = ""
  19998. }
  19999. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20000. line = \$ 0
  20001. split(line, arg, " ")
  20002. if (arg[1] == "#") {
  20003. defundef = arg[2]
  20004. mac1 = arg[3]
  20005. } else {
  20006. defundef = substr(arg[1], 2)
  20007. mac1 = arg[2]
  20008. }
  20009. split(mac1, mac2, "(") #)
  20010. macro = mac2[1]
  20011. prefix = substr(line, 1, index(line, defundef) - 1)
  20012. if (D_is_set[macro]) {
  20013. # Preserve the white space surrounding the "#".
  20014. print prefix "define", macro P[macro] D[macro]
  20015. next
  20016. } else {
  20017. # Replace #undef with comments. This is necessary, for example,
  20018. # in the case of _POSIX_SOURCE, which is predefined and required
  20019. # on some systems where configure will not decide to define it.
  20020. if (defundef == "undef") {
  20021. print "/*", prefix defundef, macro, "*/"
  20022. next
  20023. }
  20024. }
  20025. }
  20026. { print }
  20027. _ACAWK
  20028. _ACEOF
  20029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20030. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20031. fi # test -n "$CONFIG_HEADERS"
  20032. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20033. shift
  20034. for ac_tag
  20035. do
  20036. case $ac_tag in
  20037. :[FHLC]) ac_mode=$ac_tag; continue;;
  20038. esac
  20039. case $ac_mode$ac_tag in
  20040. :[FHL]*:*);;
  20041. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20042. :[FH]-) ac_tag=-:-;;
  20043. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20044. esac
  20045. ac_save_IFS=$IFS
  20046. IFS=:
  20047. set x $ac_tag
  20048. IFS=$ac_save_IFS
  20049. shift
  20050. ac_file=$1
  20051. shift
  20052. case $ac_mode in
  20053. :L) ac_source=$1;;
  20054. :[FH])
  20055. ac_file_inputs=
  20056. for ac_f
  20057. do
  20058. case $ac_f in
  20059. -) ac_f="$ac_tmp/stdin";;
  20060. *) # Look for the file first in the build tree, then in the source tree
  20061. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20062. # because $ac_f cannot contain `:'.
  20063. test -f "$ac_f" ||
  20064. case $ac_f in
  20065. [\\/$]*) false;;
  20066. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20067. esac ||
  20068. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20069. esac
  20070. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20071. as_fn_append ac_file_inputs " '$ac_f'"
  20072. done
  20073. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20074. # use $as_me), people would be surprised to read:
  20075. # /* config.h. Generated by config.status. */
  20076. configure_input='Generated from '`
  20077. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20078. `' by configure.'
  20079. if test x"$ac_file" != x-; then
  20080. configure_input="$ac_file. $configure_input"
  20081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20082. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  20083. fi
  20084. # Neutralize special characters interpreted by sed in replacement strings.
  20085. case $configure_input in #(
  20086. *\&* | *\|* | *\\* )
  20087. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  20088. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20089. *) ac_sed_conf_input=$configure_input;;
  20090. esac
  20091. case $ac_tag in
  20092. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20093. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20094. esac
  20095. ;;
  20096. esac
  20097. ac_dir=`$as_dirname -- "$ac_file" ||
  20098. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20099. X"$ac_file" : 'X\(//\)[^/]' \| \
  20100. X"$ac_file" : 'X\(//\)$' \| \
  20101. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20102. printf "%s\n" X"$ac_file" |
  20103. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20104. s//\1/
  20105. q
  20106. }
  20107. /^X\(\/\/\)[^/].*/{
  20108. s//\1/
  20109. q
  20110. }
  20111. /^X\(\/\/\)$/{
  20112. s//\1/
  20113. q
  20114. }
  20115. /^X\(\/\).*/{
  20116. s//\1/
  20117. q
  20118. }
  20119. s/.*/./; q'`
  20120. as_dir="$ac_dir"; as_fn_mkdir_p
  20121. ac_builddir=.
  20122. case "$ac_dir" in
  20123. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20124. *)
  20125. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  20126. # A ".." for each directory in $ac_dir_suffix.
  20127. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20128. case $ac_top_builddir_sub in
  20129. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20130. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20131. esac ;;
  20132. esac
  20133. ac_abs_top_builddir=$ac_pwd
  20134. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20135. # for backward compatibility:
  20136. ac_top_builddir=$ac_top_build_prefix
  20137. case $srcdir in
  20138. .) # We are building in place.
  20139. ac_srcdir=.
  20140. ac_top_srcdir=$ac_top_builddir_sub
  20141. ac_abs_top_srcdir=$ac_pwd ;;
  20142. [\\/]* | ?:[\\/]* ) # Absolute name.
  20143. ac_srcdir=$srcdir$ac_dir_suffix;
  20144. ac_top_srcdir=$srcdir
  20145. ac_abs_top_srcdir=$srcdir ;;
  20146. *) # Relative name.
  20147. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20148. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20149. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20150. esac
  20151. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20152. case $ac_mode in
  20153. :F)
  20154. #
  20155. # CONFIG_FILE
  20156. #
  20157. case $INSTALL in
  20158. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20159. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20160. esac
  20161. ac_MKDIR_P=$MKDIR_P
  20162. case $MKDIR_P in
  20163. [\\/$]* | ?:[\\/]* ) ;;
  20164. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20165. esac
  20166. _ACEOF
  20167. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20168. # If the template does not know about datarootdir, expand it.
  20169. # FIXME: This hack should be removed a few years after 2.60.
  20170. ac_datarootdir_hack=; ac_datarootdir_seen=
  20171. ac_sed_dataroot='
  20172. /datarootdir/ {
  20173. p
  20174. q
  20175. }
  20176. /@datadir@/p
  20177. /@docdir@/p
  20178. /@infodir@/p
  20179. /@localedir@/p
  20180. /@mandir@/p'
  20181. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20182. *datarootdir*) ac_datarootdir_seen=yes;;
  20183. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20185. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20186. _ACEOF
  20187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20188. ac_datarootdir_hack='
  20189. s&@datadir@&$datadir&g
  20190. s&@docdir@&$docdir&g
  20191. s&@infodir@&$infodir&g
  20192. s&@localedir@&$localedir&g
  20193. s&@mandir@&$mandir&g
  20194. s&\\\${datarootdir}&$datarootdir&g' ;;
  20195. esac
  20196. _ACEOF
  20197. # Neutralize VPATH when `$srcdir' = `.'.
  20198. # Shell code in configure.ac might set extrasub.
  20199. # FIXME: do we really want to maintain this feature?
  20200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20201. ac_sed_extra="$ac_vpsub
  20202. $extrasub
  20203. _ACEOF
  20204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20205. :t
  20206. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20207. s|@configure_input@|$ac_sed_conf_input|;t t
  20208. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20209. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20210. s&@srcdir@&$ac_srcdir&;t t
  20211. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20212. s&@top_srcdir@&$ac_top_srcdir&;t t
  20213. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20214. s&@builddir@&$ac_builddir&;t t
  20215. s&@abs_builddir@&$ac_abs_builddir&;t t
  20216. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20217. s&@INSTALL@&$ac_INSTALL&;t t
  20218. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20219. $ac_datarootdir_hack
  20220. "
  20221. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  20222. if $ac_cs_awk_getline; then
  20223. $AWK -f "$ac_tmp/subs.awk"
  20224. else
  20225. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  20226. fi \
  20227. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20228. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20229. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20230. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20231. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20233. which seems to be undefined. Please make sure it is defined" >&5
  20234. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20235. which seems to be undefined. Please make sure it is defined" >&2;}
  20236. rm -f "$ac_tmp/stdin"
  20237. case $ac_file in
  20238. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20239. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20240. esac \
  20241. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20242. ;;
  20243. :H)
  20244. #
  20245. # CONFIG_HEADER
  20246. #
  20247. if test x"$ac_file" != x-; then
  20248. {
  20249. printf "%s\n" "/* $configure_input */" >&1 \
  20250. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20251. } >"$ac_tmp/config.h" \
  20252. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20253. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20255. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  20256. else
  20257. rm -f "$ac_file"
  20258. mv "$ac_tmp/config.h" "$ac_file" \
  20259. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20260. fi
  20261. else
  20262. printf "%s\n" "/* $configure_input */" >&1 \
  20263. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20264. || as_fn_error $? "could not create -" "$LINENO" 5
  20265. fi
  20266. # Compute "$ac_file"'s index in $config_headers.
  20267. _am_arg="$ac_file"
  20268. _am_stamp_count=1
  20269. for _am_header in $config_headers :; do
  20270. case $_am_header in
  20271. $_am_arg | $_am_arg:* )
  20272. break ;;
  20273. * )
  20274. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20275. esac
  20276. done
  20277. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20278. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20279. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20280. X"$_am_arg" : 'X\(//\)$' \| \
  20281. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20282. printf "%s\n" X"$_am_arg" |
  20283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20284. s//\1/
  20285. q
  20286. }
  20287. /^X\(\/\/\)[^/].*/{
  20288. s//\1/
  20289. q
  20290. }
  20291. /^X\(\/\/\)$/{
  20292. s//\1/
  20293. q
  20294. }
  20295. /^X\(\/\).*/{
  20296. s//\1/
  20297. q
  20298. }
  20299. s/.*/./; q'`/stamp-h$_am_stamp_count
  20300. ;;
  20301. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20302. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  20303. ;;
  20304. esac
  20305. case $ac_file$ac_mode in
  20306. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20307. # Older Autoconf quotes --file arguments for eval, but not when files
  20308. # are listed without --file. Let's play safe and only enable the eval
  20309. # if we detect the quoting.
  20310. # TODO: see whether this extra hack can be removed once we start
  20311. # requiring Autoconf 2.70 or later.
  20312. case $CONFIG_FILES in #(
  20313. *\'*) :
  20314. eval set x "$CONFIG_FILES" ;; #(
  20315. *) :
  20316. set x $CONFIG_FILES ;; #(
  20317. *) :
  20318. ;;
  20319. esac
  20320. shift
  20321. # Used to flag and report bootstrapping failures.
  20322. am_rc=0
  20323. for am_mf
  20324. do
  20325. # Strip MF so we end up with the name of the file.
  20326. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  20327. # Check whether this is an Automake generated Makefile which includes
  20328. # dependency-tracking related rules and includes.
  20329. # Grep'ing the whole file directly is not great: AIX grep has a line
  20330. # limit of 2048, but all sed's we know have understand at least 4000.
  20331. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  20332. || continue
  20333. am_dirpart=`$as_dirname -- "$am_mf" ||
  20334. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20335. X"$am_mf" : 'X\(//\)[^/]' \| \
  20336. X"$am_mf" : 'X\(//\)$' \| \
  20337. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  20338. printf "%s\n" X"$am_mf" |
  20339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20340. s//\1/
  20341. q
  20342. }
  20343. /^X\(\/\/\)[^/].*/{
  20344. s//\1/
  20345. q
  20346. }
  20347. /^X\(\/\/\)$/{
  20348. s//\1/
  20349. q
  20350. }
  20351. /^X\(\/\).*/{
  20352. s//\1/
  20353. q
  20354. }
  20355. s/.*/./; q'`
  20356. am_filepart=`$as_basename -- "$am_mf" ||
  20357. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  20358. X"$am_mf" : 'X\(//\)$' \| \
  20359. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  20360. printf "%s\n" X/"$am_mf" |
  20361. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20362. s//\1/
  20363. q
  20364. }
  20365. /^X\/\(\/\/\)$/{
  20366. s//\1/
  20367. q
  20368. }
  20369. /^X\/\(\/\).*/{
  20370. s//\1/
  20371. q
  20372. }
  20373. s/.*/./; q'`
  20374. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  20375. && sed -e '/# am--include-marker/d' "$am_filepart" \
  20376. | $MAKE -f - am--depfiles" >&5
  20377. (cd "$am_dirpart" \
  20378. && sed -e '/# am--include-marker/d' "$am_filepart" \
  20379. | $MAKE -f - am--depfiles) >&5 2>&5
  20380. ac_status=$?
  20381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20382. (exit $ac_status); } || am_rc=$?
  20383. done
  20384. if test $am_rc -ne 0; then
  20385. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20386. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20387. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  20388. for automatic dependency tracking. If GNU make was not used, consider
  20389. re-running the configure script with MAKE=\"gmake\" (or whatever is
  20390. necessary). You can also try re-running configure with the
  20391. '--disable-dependency-tracking' option to at least be able to build
  20392. the package (albeit without support for automatic dependency tracking).
  20393. See \`config.log' for more details" "$LINENO" 5; }
  20394. fi
  20395. { am_dirpart=; unset am_dirpart;}
  20396. { am_filepart=; unset am_filepart;}
  20397. { am_mf=; unset am_mf;}
  20398. { am_rc=; unset am_rc;}
  20399. rm -f conftest-deps.mk
  20400. }
  20401. ;;
  20402. "libtool":C)
  20403. # See if we are running on zsh, and set the options that allow our
  20404. # commands through without removal of \ escapes.
  20405. if test -n "${ZSH_VERSION+set}"; then
  20406. setopt NO_GLOB_SUBST
  20407. fi
  20408. cfgfile=${ofile}T
  20409. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20410. $RM "$cfgfile"
  20411. cat <<_LT_EOF >> "$cfgfile"
  20412. #! $SHELL
  20413. # Generated automatically by $as_me ($PACKAGE) $VERSION
  20414. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20415. # Provide generalized library-building support services.
  20416. # Written by Gordon Matzigkeit, 1996
  20417. # Copyright (C) 2024 Free Software Foundation, Inc.
  20418. # This is free software; see the source for copying conditions. There is NO
  20419. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20420. # GNU Libtool is free software; you can redistribute it and/or modify
  20421. # it under the terms of the GNU General Public License as published by
  20422. # the Free Software Foundation; either version 2 of the License, or
  20423. # (at your option) any later version.
  20424. #
  20425. # As a special exception to the GNU General Public License, if you
  20426. # distribute this file as part of a program or library that is built
  20427. # using GNU Libtool, you may include this file under the same
  20428. # distribution terms that you use for the rest of that program.
  20429. #
  20430. # GNU Libtool is distributed in the hope that it will be useful, but
  20431. # WITHOUT ANY WARRANTY; without even the implied warranty of
  20432. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20433. # GNU General Public License for more details.
  20434. #
  20435. # You should have received a copy of the GNU General Public License
  20436. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20437. # The names of the tagged configurations supported by this script.
  20438. available_tags='CXX '
  20439. # Configured defaults for sys_lib_dlsearch_path munging.
  20440. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  20441. # ### BEGIN LIBTOOL CONFIG
  20442. # Which release of libtool.m4 was used?
  20443. macro_version=$macro_version
  20444. macro_revision=$macro_revision
  20445. # Assembler program.
  20446. AS=$lt_AS
  20447. # DLL creation program.
  20448. DLLTOOL=$lt_DLLTOOL
  20449. # Object dumper program.
  20450. OBJDUMP=$lt_OBJDUMP
  20451. # Whether or not to build shared libraries.
  20452. build_libtool_libs=$enable_shared
  20453. # Whether or not to build static libraries.
  20454. build_old_libs=$enable_static
  20455. # What type of objects to build.
  20456. pic_mode=$pic_mode
  20457. # Whether or not to optimize for fast installation.
  20458. fast_install=$enable_fast_install
  20459. # Shared archive member basename,for filename based shared library versioning on AIX.
  20460. shared_archive_member_spec=$shared_archive_member_spec
  20461. # Shell to use when invoking shell scripts.
  20462. SHELL=$lt_SHELL
  20463. # An echo program that protects backslashes.
  20464. ECHO=$lt_ECHO
  20465. # The PATH separator for the build system.
  20466. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20467. # The host system.
  20468. host_alias=$host_alias
  20469. host=$host
  20470. host_os=$host_os
  20471. # The build system.
  20472. build_alias=$build_alias
  20473. build=$build
  20474. build_os=$build_os
  20475. # A sed program that does not truncate output.
  20476. SED=$lt_SED
  20477. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20478. Xsed="\$SED -e 1s/^X//"
  20479. # A grep program that handles long lines.
  20480. GREP=$lt_GREP
  20481. # An ERE matcher.
  20482. EGREP=$lt_EGREP
  20483. # A literal string matcher.
  20484. FGREP=$lt_FGREP
  20485. # A BSD- or MS-compatible name lister.
  20486. NM=$lt_NM
  20487. # Whether we need soft or hard links.
  20488. LN_S=$lt_LN_S
  20489. # What is the maximum length of a command?
  20490. max_cmd_len=$max_cmd_len
  20491. # Object file suffix (normally "o").
  20492. objext=$ac_objext
  20493. # Executable file suffix (normally "").
  20494. exeext=$exeext
  20495. # whether the shell understands "unset".
  20496. lt_unset=$lt_unset
  20497. # turn spaces into newlines.
  20498. SP2NL=$lt_lt_SP2NL
  20499. # turn newlines into spaces.
  20500. NL2SP=$lt_lt_NL2SP
  20501. # convert \$build file names to \$host format.
  20502. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20503. # convert \$build files to toolchain format.
  20504. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20505. # A file(cmd) program that detects file types.
  20506. FILECMD=$lt_FILECMD
  20507. # Method to check whether dependent libraries are shared objects.
  20508. deplibs_check_method=$lt_deplibs_check_method
  20509. # Command to use when deplibs_check_method = "file_magic".
  20510. file_magic_cmd=$lt_file_magic_cmd
  20511. # How to find potential files when deplibs_check_method = "file_magic".
  20512. file_magic_glob=$lt_file_magic_glob
  20513. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20514. want_nocaseglob=$lt_want_nocaseglob
  20515. # Command to associate shared and link libraries.
  20516. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20517. # The archiver.
  20518. AR=$lt_AR
  20519. # Flags to create an archive (by configure).
  20520. lt_ar_flags=$lt_ar_flags
  20521. # Flags to create an archive.
  20522. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  20523. # How to feed a file listing to the archiver.
  20524. archiver_list_spec=$lt_archiver_list_spec
  20525. # A symbol stripping program.
  20526. STRIP=$lt_STRIP
  20527. # Commands used to install an old-style archive.
  20528. RANLIB=$lt_RANLIB
  20529. old_postinstall_cmds=$lt_old_postinstall_cmds
  20530. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20531. # Whether to use a lock for old archive extraction.
  20532. lock_old_archive_extraction=$lock_old_archive_extraction
  20533. # A C compiler.
  20534. LTCC=$lt_CC
  20535. # LTCC compiler flags.
  20536. LTCFLAGS=$lt_CFLAGS
  20537. # Take the output of nm and produce a listing of raw symbols and C names.
  20538. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20539. # Transform the output of nm in a proper C declaration.
  20540. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20541. # Transform the output of nm into a list of symbols to manually relocate.
  20542. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  20543. # Transform the output of nm in a C name address pair.
  20544. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20545. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20546. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20547. # The name lister interface.
  20548. nm_interface=$lt_lt_cv_nm_interface
  20549. # Specify filename containing input files for \$NM.
  20550. nm_file_list_spec=$lt_nm_file_list_spec
  20551. # The root where to search for dependent libraries,and where our libraries should be installed.
  20552. lt_sysroot=$lt_sysroot
  20553. # Command to truncate a binary pipe.
  20554. lt_truncate_bin=$lt_lt_cv_truncate_bin
  20555. # The name of the directory that contains temporary libtool files.
  20556. objdir=$objdir
  20557. # Used to examine libraries when file_magic_cmd begins with "file".
  20558. MAGIC_CMD=$MAGIC_CMD
  20559. # Must we lock files when doing compilation?
  20560. need_locks=$lt_need_locks
  20561. # Manifest tool.
  20562. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20563. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20564. DSYMUTIL=$lt_DSYMUTIL
  20565. # Tool to change global to local symbols on Mac OS X.
  20566. NMEDIT=$lt_NMEDIT
  20567. # Tool to manipulate fat objects and archives on Mac OS X.
  20568. LIPO=$lt_LIPO
  20569. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20570. OTOOL=$lt_OTOOL
  20571. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20572. OTOOL64=$lt_OTOOL64
  20573. # Old archive suffix (normally "a").
  20574. libext=$libext
  20575. # Shared library suffix (normally ".so").
  20576. shrext_cmds=$lt_shrext_cmds
  20577. # The commands to extract the exported symbol list from a shared archive.
  20578. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20579. # Variables whose values should be saved in libtool wrapper scripts and
  20580. # restored at link time.
  20581. variables_saved_for_relink=$lt_variables_saved_for_relink
  20582. # Do we need the "lib" prefix for modules?
  20583. need_lib_prefix=$need_lib_prefix
  20584. # Do we need a version for libraries?
  20585. need_version=$need_version
  20586. # Library versioning type.
  20587. version_type=$version_type
  20588. # Shared library runtime path variable.
  20589. runpath_var=$runpath_var
  20590. # Shared library path variable.
  20591. shlibpath_var=$shlibpath_var
  20592. # Is shlibpath searched before the hard-coded library search path?
  20593. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20594. # Format of library name prefix.
  20595. libname_spec=$lt_libname_spec
  20596. # List of archive names. First name is the real one, the rest are links.
  20597. # The last name is the one that the linker finds with -lNAME
  20598. library_names_spec=$lt_library_names_spec
  20599. # The coded name of the library, if different from the real name.
  20600. soname_spec=$lt_soname_spec
  20601. # Permission mode override for installation of shared libraries.
  20602. install_override_mode=$lt_install_override_mode
  20603. # Command to use after installation of a shared archive.
  20604. postinstall_cmds=$lt_postinstall_cmds
  20605. # Command to use after uninstallation of a shared archive.
  20606. postuninstall_cmds=$lt_postuninstall_cmds
  20607. # Commands used to finish a libtool library installation in a directory.
  20608. finish_cmds=$lt_finish_cmds
  20609. # As "finish_cmds", except a single script fragment to be evaled but
  20610. # not shown.
  20611. finish_eval=$lt_finish_eval
  20612. # Whether we should hardcode library paths into libraries.
  20613. hardcode_into_libs=$hardcode_into_libs
  20614. # Compile-time system search path for libraries.
  20615. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20616. # Detected run-time system search path for libraries.
  20617. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  20618. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  20619. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  20620. # Whether dlopen is supported.
  20621. dlopen_support=$enable_dlopen
  20622. # Whether dlopen of programs is supported.
  20623. dlopen_self=$enable_dlopen_self
  20624. # Whether dlopen of statically linked programs is supported.
  20625. dlopen_self_static=$enable_dlopen_self_static
  20626. # Commands to strip libraries.
  20627. old_striplib=$lt_old_striplib
  20628. striplib=$lt_striplib
  20629. # The linker used to build libraries.
  20630. LD=$lt_LD
  20631. # How to create reloadable object files.
  20632. reload_flag=$lt_reload_flag
  20633. reload_cmds=$lt_reload_cmds
  20634. # Commands used to build an old-style archive.
  20635. old_archive_cmds=$lt_old_archive_cmds
  20636. # A language specific compiler.
  20637. CC=$lt_compiler
  20638. # Is the compiler the GNU compiler?
  20639. with_gcc=$GCC
  20640. # Compiler flag to turn off builtin functions.
  20641. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20642. # Additional compiler flags for building library objects.
  20643. pic_flag=$lt_lt_prog_compiler_pic
  20644. # How to pass a linker flag through the compiler.
  20645. wl=$lt_lt_prog_compiler_wl
  20646. # Compiler flag to prevent dynamic linking.
  20647. link_static_flag=$lt_lt_prog_compiler_static
  20648. # Does compiler simultaneously support -c and -o options?
  20649. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20650. # Whether or not to add -lc for building shared libraries.
  20651. build_libtool_need_lc=$archive_cmds_need_lc
  20652. # Whether or not to disallow shared libs when runtime libs are static.
  20653. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20654. # Compiler flag to allow reflexive dlopens.
  20655. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20656. # Compiler flag to generate shared objects directly from archives.
  20657. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20658. # Whether the compiler copes with passing no objects directly.
  20659. compiler_needs_object=$lt_compiler_needs_object
  20660. # Create an old-style archive from a shared archive.
  20661. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20662. # Create a temporary old-style archive to link instead of a shared archive.
  20663. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20664. # Commands used to build a shared archive.
  20665. archive_cmds=$lt_archive_cmds
  20666. archive_expsym_cmds=$lt_archive_expsym_cmds
  20667. # Commands used to build a loadable module if different from building
  20668. # a shared archive.
  20669. module_cmds=$lt_module_cmds
  20670. module_expsym_cmds=$lt_module_expsym_cmds
  20671. # Whether we are building with GNU ld or not.
  20672. with_gnu_ld=$lt_with_gnu_ld
  20673. # Flag that allows shared libraries with undefined symbols to be built.
  20674. allow_undefined_flag=$lt_allow_undefined_flag
  20675. # Flag that enforces no undefined symbols.
  20676. no_undefined_flag=$lt_no_undefined_flag
  20677. # Flag to hardcode \$libdir into a binary during linking.
  20678. # This must work even if \$libdir does not exist
  20679. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20680. # Whether we need a single "-rpath" flag with a separated argument.
  20681. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20682. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20683. # DIR into the resulting binary.
  20684. hardcode_direct=$hardcode_direct
  20685. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20686. # DIR into the resulting binary and the resulting library dependency is
  20687. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  20688. # library is relocated.
  20689. hardcode_direct_absolute=$hardcode_direct_absolute
  20690. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20691. # into the resulting binary.
  20692. hardcode_minus_L=$hardcode_minus_L
  20693. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20694. # into the resulting binary.
  20695. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20696. # Set to "yes" if building a shared library automatically hardcodes DIR
  20697. # into the library and all subsequent libraries and executables linked
  20698. # against it.
  20699. hardcode_automatic=$hardcode_automatic
  20700. # Set to yes if linker adds runtime paths of dependent libraries
  20701. # to runtime path list.
  20702. inherit_rpath=$inherit_rpath
  20703. # Whether libtool must link a program against all its dependency libraries.
  20704. link_all_deplibs=$link_all_deplibs
  20705. # Set to "yes" if exported symbols are required.
  20706. always_export_symbols=$always_export_symbols
  20707. # The commands to list exported symbols.
  20708. export_symbols_cmds=$lt_export_symbols_cmds
  20709. # Symbols that should not be listed in the preloaded symbols.
  20710. exclude_expsyms=$lt_exclude_expsyms
  20711. # Symbols that must always be exported.
  20712. include_expsyms=$lt_include_expsyms
  20713. # Commands necessary for linking programs (against libraries) with templates.
  20714. prelink_cmds=$lt_prelink_cmds
  20715. # Commands necessary for finishing linking programs.
  20716. postlink_cmds=$lt_postlink_cmds
  20717. # Specify filename containing input files.
  20718. file_list_spec=$lt_file_list_spec
  20719. # How to hardcode a shared library path into an executable.
  20720. hardcode_action=$hardcode_action
  20721. # The directories searched by this compiler when creating a shared library.
  20722. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20723. # Dependencies to place before and after the objects being linked to
  20724. # create a shared library.
  20725. predep_objects=$lt_predep_objects
  20726. postdep_objects=$lt_postdep_objects
  20727. predeps=$lt_predeps
  20728. postdeps=$lt_postdeps
  20729. # The library search path used internally by the compiler when linking
  20730. # a shared library.
  20731. compiler_lib_search_path=$lt_compiler_lib_search_path
  20732. # ### END LIBTOOL CONFIG
  20733. _LT_EOF
  20734. cat <<'_LT_EOF' >> "$cfgfile"
  20735. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  20736. # func_munge_path_list VARIABLE PATH
  20737. # -----------------------------------
  20738. # VARIABLE is name of variable containing _space_ separated list of
  20739. # directories to be munged by the contents of PATH, which is string
  20740. # having a format:
  20741. # "DIR[:DIR]:"
  20742. # string "DIR[ DIR]" will be prepended to VARIABLE
  20743. # ":DIR[:DIR]"
  20744. # string "DIR[ DIR]" will be appended to VARIABLE
  20745. # "DIRP[:DIRP]::[DIRA:]DIRA"
  20746. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  20747. # "DIRA[ DIRA]" will be appended to VARIABLE
  20748. # "DIR[:DIR]"
  20749. # VARIABLE will be replaced by "DIR[ DIR]"
  20750. func_munge_path_list ()
  20751. {
  20752. case x$2 in
  20753. x)
  20754. ;;
  20755. *:)
  20756. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  20757. ;;
  20758. x:*)
  20759. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  20760. ;;
  20761. *::*)
  20762. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  20763. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  20764. ;;
  20765. *)
  20766. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  20767. ;;
  20768. esac
  20769. }
  20770. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  20771. func_cc_basename ()
  20772. {
  20773. for cc_temp in $*""; do
  20774. case $cc_temp in
  20775. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20776. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20777. \-*) ;;
  20778. *) break;;
  20779. esac
  20780. done
  20781. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  20782. }
  20783. # ### END FUNCTIONS SHARED WITH CONFIGURE
  20784. _LT_EOF
  20785. case $host_os in
  20786. aix3*)
  20787. cat <<\_LT_EOF >> "$cfgfile"
  20788. # AIX sometimes has problems with the GCC collect2 program. For some
  20789. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20790. # vanish in a puff of smoke.
  20791. if test set != "${COLLECT_NAMES+set}"; then
  20792. COLLECT_NAMES=
  20793. export COLLECT_NAMES
  20794. fi
  20795. _LT_EOF
  20796. ;;
  20797. esac
  20798. ltmain=$ac_aux_dir/ltmain.sh
  20799. # We use sed instead of cat because bash on DJGPP gets confused if
  20800. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20801. # text mode, it properly converts lines to CR/LF. This bash problem
  20802. # is reportedly fixed, but why not run on old versions too?
  20803. $SED '$q' "$ltmain" >> "$cfgfile" \
  20804. || (rm -f "$cfgfile"; exit 1)
  20805. mv -f "$cfgfile" "$ofile" ||
  20806. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20807. chmod +x "$ofile"
  20808. cat <<_LT_EOF >> "$ofile"
  20809. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20810. # The linker used to build libraries.
  20811. LD=$lt_LD_CXX
  20812. # How to create reloadable object files.
  20813. reload_flag=$lt_reload_flag_CXX
  20814. reload_cmds=$lt_reload_cmds_CXX
  20815. # Commands used to build an old-style archive.
  20816. old_archive_cmds=$lt_old_archive_cmds_CXX
  20817. # A language specific compiler.
  20818. CC=$lt_compiler_CXX
  20819. # Is the compiler the GNU compiler?
  20820. with_gcc=$GCC_CXX
  20821. # Compiler flag to turn off builtin functions.
  20822. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20823. # Additional compiler flags for building library objects.
  20824. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20825. # How to pass a linker flag through the compiler.
  20826. wl=$lt_lt_prog_compiler_wl_CXX
  20827. # Compiler flag to prevent dynamic linking.
  20828. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20829. # Does compiler simultaneously support -c and -o options?
  20830. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20831. # Whether or not to add -lc for building shared libraries.
  20832. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20833. # Whether or not to disallow shared libs when runtime libs are static.
  20834. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20835. # Compiler flag to allow reflexive dlopens.
  20836. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20837. # Compiler flag to generate shared objects directly from archives.
  20838. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20839. # Whether the compiler copes with passing no objects directly.
  20840. compiler_needs_object=$lt_compiler_needs_object_CXX
  20841. # Create an old-style archive from a shared archive.
  20842. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20843. # Create a temporary old-style archive to link instead of a shared archive.
  20844. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20845. # Commands used to build a shared archive.
  20846. archive_cmds=$lt_archive_cmds_CXX
  20847. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20848. # Commands used to build a loadable module if different from building
  20849. # a shared archive.
  20850. module_cmds=$lt_module_cmds_CXX
  20851. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20852. # Whether we are building with GNU ld or not.
  20853. with_gnu_ld=$lt_with_gnu_ld_CXX
  20854. # Flag that allows shared libraries with undefined symbols to be built.
  20855. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20856. # Flag that enforces no undefined symbols.
  20857. no_undefined_flag=$lt_no_undefined_flag_CXX
  20858. # Flag to hardcode \$libdir into a binary during linking.
  20859. # This must work even if \$libdir does not exist
  20860. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20861. # Whether we need a single "-rpath" flag with a separated argument.
  20862. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20863. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20864. # DIR into the resulting binary.
  20865. hardcode_direct=$hardcode_direct_CXX
  20866. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20867. # DIR into the resulting binary and the resulting library dependency is
  20868. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  20869. # library is relocated.
  20870. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20871. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20872. # into the resulting binary.
  20873. hardcode_minus_L=$hardcode_minus_L_CXX
  20874. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20875. # into the resulting binary.
  20876. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20877. # Set to "yes" if building a shared library automatically hardcodes DIR
  20878. # into the library and all subsequent libraries and executables linked
  20879. # against it.
  20880. hardcode_automatic=$hardcode_automatic_CXX
  20881. # Set to yes if linker adds runtime paths of dependent libraries
  20882. # to runtime path list.
  20883. inherit_rpath=$inherit_rpath_CXX
  20884. # Whether libtool must link a program against all its dependency libraries.
  20885. link_all_deplibs=$link_all_deplibs_CXX
  20886. # Set to "yes" if exported symbols are required.
  20887. always_export_symbols=$always_export_symbols_CXX
  20888. # The commands to list exported symbols.
  20889. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20890. # Symbols that should not be listed in the preloaded symbols.
  20891. exclude_expsyms=$lt_exclude_expsyms_CXX
  20892. # Symbols that must always be exported.
  20893. include_expsyms=$lt_include_expsyms_CXX
  20894. # Commands necessary for linking programs (against libraries) with templates.
  20895. prelink_cmds=$lt_prelink_cmds_CXX
  20896. # Commands necessary for finishing linking programs.
  20897. postlink_cmds=$lt_postlink_cmds_CXX
  20898. # Specify filename containing input files.
  20899. file_list_spec=$lt_file_list_spec_CXX
  20900. # How to hardcode a shared library path into an executable.
  20901. hardcode_action=$hardcode_action_CXX
  20902. # The directories searched by this compiler when creating a shared library.
  20903. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20904. # Dependencies to place before and after the objects being linked to
  20905. # create a shared library.
  20906. predep_objects=$lt_predep_objects_CXX
  20907. postdep_objects=$lt_postdep_objects_CXX
  20908. predeps=$lt_predeps_CXX
  20909. postdeps=$lt_postdeps_CXX
  20910. # The library search path used internally by the compiler when linking
  20911. # a shared library.
  20912. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20913. # ### END LIBTOOL TAG CONFIG: CXX
  20914. _LT_EOF
  20915. ;;
  20916. "run.sh":F) chmod +x run.sh ;;
  20917. esac
  20918. done # for ac_tag
  20919. as_fn_exit 0
  20920. _ACEOF
  20921. ac_clean_files=$ac_clean_files_save
  20922. test $ac_write_fail = 0 ||
  20923. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20924. # configure is writing to config.log, and then calls config.status.
  20925. # config.status does its own redirection, appending to config.log.
  20926. # Unfortunately, on DOS this fails, as config.log is still kept open
  20927. # by configure, so config.status won't be able to write to it; its
  20928. # output is simply discarded. So we exec the FD to /dev/null,
  20929. # effectively closing config.log, so it can be properly (re)opened and
  20930. # appended to by config.status. When coming back to configure, we
  20931. # need to make the FD available again.
  20932. if test "$no_create" != yes; then
  20933. ac_cs_success=:
  20934. ac_config_status_args=
  20935. test "$silent" = yes &&
  20936. ac_config_status_args="$ac_config_status_args --quiet"
  20937. exec 5>/dev/null
  20938. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20939. exec 5>>config.log
  20940. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20941. # would make configure fail if this is the last instruction.
  20942. $ac_cs_success || as_fn_exit 1
  20943. fi
  20944. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20946. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20947. fi
  20948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
  20949. Automake flags (can be overridden by user flags):
  20950. AM_CPPFLAGS: ${AM_CPPFLAGS}
  20951. AM_CFLAGS: ${AM_CFLAGS}
  20952. AM_CXXFLAGS: ${AM_CXXFLAGS}
  20953. AM_LDFLAGS: ${AM_LDFLAGS}
  20954. User flags (override Automake flags on conflict):
  20955. CPPFLAGS: ${CPPFLAGS}
  20956. CFLAGS: ${CFLAGS}
  20957. CXXFLAGS: ${CXXFLAGS}
  20958. LDFLAGS: ${LDFLAGS}" >&5
  20959. printf "%s\n" "$as_me:
  20960. Automake flags (can be overridden by user flags):
  20961. AM_CPPFLAGS: ${AM_CPPFLAGS}
  20962. AM_CFLAGS: ${AM_CFLAGS}
  20963. AM_CXXFLAGS: ${AM_CXXFLAGS}
  20964. AM_LDFLAGS: ${AM_LDFLAGS}
  20965. User flags (override Automake flags on conflict):
  20966. CPPFLAGS: ${CPPFLAGS}
  20967. CFLAGS: ${CFLAGS}
  20968. CXXFLAGS: ${CXXFLAGS}
  20969. LDFLAGS: ${LDFLAGS}" >&6;}