configure 552 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for expat 2.1.0.
  4. #
  5. # Report bugs to <expat-bugs@libexpat.org>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  231. $0: expat-bugs@libexpat.org about your system, including
  232. $0: any error possibly output before this message. Then
  233. $0: install a modern shell, or manually run the script
  234. $0: under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='expat'
  523. PACKAGE_TARNAME='expat'
  524. PACKAGE_VERSION='2.1.0'
  525. PACKAGE_STRING='expat 2.1.0'
  526. PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
  527. PACKAGE_URL=''
  528. ac_unique_file="Makefile.in"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. ac_header_list=
  565. ac_subst_vars='LTLIBOBJS
  566. LIBOBJS
  567. FILEMAP
  568. INSTALL_DATA
  569. INSTALL_SCRIPT
  570. INSTALL_PROGRAM
  571. CXXCPP
  572. ac_ct_CXX
  573. CXXFLAGS
  574. CXX
  575. LIBAGE
  576. LIBREVISION
  577. LIBCURRENT
  578. CPP
  579. OTOOL64
  580. OTOOL
  581. LIPO
  582. NMEDIT
  583. DSYMUTIL
  584. MANIFEST_TOOL
  585. AWK
  586. RANLIB
  587. STRIP
  588. ac_ct_AR
  589. AR
  590. LN_S
  591. NM
  592. ac_ct_DUMPBIN
  593. DUMPBIN
  594. LD
  595. FGREP
  596. EGREP
  597. GREP
  598. SED
  599. OBJEXT
  600. EXEEXT
  601. ac_ct_CC
  602. CPPFLAGS
  603. LDFLAGS
  604. CFLAGS
  605. CC
  606. LIBTOOL
  607. OBJDUMP
  608. DLLTOOL
  609. AS
  610. host_os
  611. host_vendor
  612. host_cpu
  613. host
  614. build_os
  615. build_vendor
  616. build_cpu
  617. build
  618. target_alias
  619. host_alias
  620. build_alias
  621. LIBS
  622. ECHO_T
  623. ECHO_N
  624. ECHO_C
  625. DEFS
  626. mandir
  627. localedir
  628. libdir
  629. psdir
  630. pdfdir
  631. dvidir
  632. htmldir
  633. infodir
  634. docdir
  635. oldincludedir
  636. includedir
  637. localstatedir
  638. sharedstatedir
  639. sysconfdir
  640. datadir
  641. datarootdir
  642. libexecdir
  643. sbindir
  644. bindir
  645. program_transform_name
  646. prefix
  647. exec_prefix
  648. PACKAGE_URL
  649. PACKAGE_BUGREPORT
  650. PACKAGE_STRING
  651. PACKAGE_VERSION
  652. PACKAGE_TARNAME
  653. PACKAGE_NAME
  654. PATH_SEPARATOR
  655. SHELL'
  656. ac_subst_files=''
  657. ac_user_opts='
  658. enable_option_checking
  659. enable_shared
  660. enable_static
  661. with_pic
  662. enable_fast_install
  663. with_gnu_ld
  664. with_sysroot
  665. enable_libtool_lock
  666. '
  667. ac_precious_vars='build_alias
  668. host_alias
  669. target_alias
  670. CC
  671. CFLAGS
  672. LDFLAGS
  673. LIBS
  674. CPPFLAGS
  675. CPP
  676. CXX
  677. CXXFLAGS
  678. CCC
  679. CXXCPP'
  680. # Initialize some variables set by options.
  681. ac_init_help=
  682. ac_init_version=false
  683. ac_unrecognized_opts=
  684. ac_unrecognized_sep=
  685. # The variables have the same names as the options, with
  686. # dashes changed to underlines.
  687. cache_file=/dev/null
  688. exec_prefix=NONE
  689. no_create=
  690. no_recursion=
  691. prefix=NONE
  692. program_prefix=NONE
  693. program_suffix=NONE
  694. program_transform_name=s,x,x,
  695. silent=
  696. site=
  697. srcdir=
  698. verbose=
  699. x_includes=NONE
  700. x_libraries=NONE
  701. # Installation directory options.
  702. # These are left unexpanded so users can "make install exec_prefix=/foo"
  703. # and all the variables that are supposed to be based on exec_prefix
  704. # by default will actually change.
  705. # Use braces instead of parens because sh, perl, etc. also accept them.
  706. # (The list follows the same order as the GNU Coding Standards.)
  707. bindir='${exec_prefix}/bin'
  708. sbindir='${exec_prefix}/sbin'
  709. libexecdir='${exec_prefix}/libexec'
  710. datarootdir='${prefix}/share'
  711. datadir='${datarootdir}'
  712. sysconfdir='${prefix}/etc'
  713. sharedstatedir='${prefix}/com'
  714. localstatedir='${prefix}/var'
  715. includedir='${prefix}/include'
  716. oldincludedir='/usr/include'
  717. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  718. infodir='${datarootdir}/info'
  719. htmldir='${docdir}'
  720. dvidir='${docdir}'
  721. pdfdir='${docdir}'
  722. psdir='${docdir}'
  723. libdir='${exec_prefix}/lib'
  724. localedir='${datarootdir}/locale'
  725. mandir='${datarootdir}/man'
  726. ac_prev=
  727. ac_dashdash=
  728. for ac_option
  729. do
  730. # If the previous option needs an argument, assign it.
  731. if test -n "$ac_prev"; then
  732. eval $ac_prev=\$ac_option
  733. ac_prev=
  734. continue
  735. fi
  736. case $ac_option in
  737. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  738. *=) ac_optarg= ;;
  739. *) ac_optarg=yes ;;
  740. esac
  741. # Accept the important Cygnus configure options, so we can diagnose typos.
  742. case $ac_dashdash$ac_option in
  743. --)
  744. ac_dashdash=yes ;;
  745. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  746. ac_prev=bindir ;;
  747. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  748. bindir=$ac_optarg ;;
  749. -build | --build | --buil | --bui | --bu)
  750. ac_prev=build_alias ;;
  751. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  752. build_alias=$ac_optarg ;;
  753. -cache-file | --cache-file | --cache-fil | --cache-fi \
  754. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  755. ac_prev=cache_file ;;
  756. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  757. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  758. cache_file=$ac_optarg ;;
  759. --config-cache | -C)
  760. cache_file=config.cache ;;
  761. -datadir | --datadir | --datadi | --datad)
  762. ac_prev=datadir ;;
  763. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  764. datadir=$ac_optarg ;;
  765. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  766. | --dataroo | --dataro | --datar)
  767. ac_prev=datarootdir ;;
  768. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  769. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  770. datarootdir=$ac_optarg ;;
  771. -disable-* | --disable-*)
  772. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  773. # Reject names that are not valid shell variable names.
  774. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  775. as_fn_error $? "invalid feature name: $ac_useropt"
  776. ac_useropt_orig=$ac_useropt
  777. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  778. case $ac_user_opts in
  779. *"
  780. "enable_$ac_useropt"
  781. "*) ;;
  782. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  783. ac_unrecognized_sep=', ';;
  784. esac
  785. eval enable_$ac_useropt=no ;;
  786. -docdir | --docdir | --docdi | --doc | --do)
  787. ac_prev=docdir ;;
  788. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  789. docdir=$ac_optarg ;;
  790. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  791. ac_prev=dvidir ;;
  792. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  793. dvidir=$ac_optarg ;;
  794. -enable-* | --enable-*)
  795. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  796. # Reject names that are not valid shell variable names.
  797. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  798. as_fn_error $? "invalid feature name: $ac_useropt"
  799. ac_useropt_orig=$ac_useropt
  800. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  801. case $ac_user_opts in
  802. *"
  803. "enable_$ac_useropt"
  804. "*) ;;
  805. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  806. ac_unrecognized_sep=', ';;
  807. esac
  808. eval enable_$ac_useropt=\$ac_optarg ;;
  809. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  810. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  811. | --exec | --exe | --ex)
  812. ac_prev=exec_prefix ;;
  813. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  814. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  815. | --exec=* | --exe=* | --ex=*)
  816. exec_prefix=$ac_optarg ;;
  817. -gas | --gas | --ga | --g)
  818. # Obsolete; use --with-gas.
  819. with_gas=yes ;;
  820. -help | --help | --hel | --he | -h)
  821. ac_init_help=long ;;
  822. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  823. ac_init_help=recursive ;;
  824. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  825. ac_init_help=short ;;
  826. -host | --host | --hos | --ho)
  827. ac_prev=host_alias ;;
  828. -host=* | --host=* | --hos=* | --ho=*)
  829. host_alias=$ac_optarg ;;
  830. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  831. ac_prev=htmldir ;;
  832. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  833. | --ht=*)
  834. htmldir=$ac_optarg ;;
  835. -includedir | --includedir | --includedi | --included | --include \
  836. | --includ | --inclu | --incl | --inc)
  837. ac_prev=includedir ;;
  838. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  839. | --includ=* | --inclu=* | --incl=* | --inc=*)
  840. includedir=$ac_optarg ;;
  841. -infodir | --infodir | --infodi | --infod | --info | --inf)
  842. ac_prev=infodir ;;
  843. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  844. infodir=$ac_optarg ;;
  845. -libdir | --libdir | --libdi | --libd)
  846. ac_prev=libdir ;;
  847. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  848. libdir=$ac_optarg ;;
  849. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  850. | --libexe | --libex | --libe)
  851. ac_prev=libexecdir ;;
  852. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  853. | --libexe=* | --libex=* | --libe=*)
  854. libexecdir=$ac_optarg ;;
  855. -localedir | --localedir | --localedi | --localed | --locale)
  856. ac_prev=localedir ;;
  857. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  858. localedir=$ac_optarg ;;
  859. -localstatedir | --localstatedir | --localstatedi | --localstated \
  860. | --localstate | --localstat | --localsta | --localst | --locals)
  861. ac_prev=localstatedir ;;
  862. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  863. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  864. localstatedir=$ac_optarg ;;
  865. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  866. ac_prev=mandir ;;
  867. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  868. mandir=$ac_optarg ;;
  869. -nfp | --nfp | --nf)
  870. # Obsolete; use --without-fp.
  871. with_fp=no ;;
  872. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  873. | --no-cr | --no-c | -n)
  874. no_create=yes ;;
  875. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  876. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  877. no_recursion=yes ;;
  878. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  879. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  880. | --oldin | --oldi | --old | --ol | --o)
  881. ac_prev=oldincludedir ;;
  882. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  883. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  884. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  885. oldincludedir=$ac_optarg ;;
  886. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  887. ac_prev=prefix ;;
  888. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  889. prefix=$ac_optarg ;;
  890. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  891. | --program-pre | --program-pr | --program-p)
  892. ac_prev=program_prefix ;;
  893. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  894. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  895. program_prefix=$ac_optarg ;;
  896. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  897. | --program-suf | --program-su | --program-s)
  898. ac_prev=program_suffix ;;
  899. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  900. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  901. program_suffix=$ac_optarg ;;
  902. -program-transform-name | --program-transform-name \
  903. | --program-transform-nam | --program-transform-na \
  904. | --program-transform-n | --program-transform- \
  905. | --program-transform | --program-transfor \
  906. | --program-transfo | --program-transf \
  907. | --program-trans | --program-tran \
  908. | --progr-tra | --program-tr | --program-t)
  909. ac_prev=program_transform_name ;;
  910. -program-transform-name=* | --program-transform-name=* \
  911. | --program-transform-nam=* | --program-transform-na=* \
  912. | --program-transform-n=* | --program-transform-=* \
  913. | --program-transform=* | --program-transfor=* \
  914. | --program-transfo=* | --program-transf=* \
  915. | --program-trans=* | --program-tran=* \
  916. | --progr-tra=* | --program-tr=* | --program-t=*)
  917. program_transform_name=$ac_optarg ;;
  918. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  919. ac_prev=pdfdir ;;
  920. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  921. pdfdir=$ac_optarg ;;
  922. -psdir | --psdir | --psdi | --psd | --ps)
  923. ac_prev=psdir ;;
  924. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  925. psdir=$ac_optarg ;;
  926. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  927. | -silent | --silent | --silen | --sile | --sil)
  928. silent=yes ;;
  929. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  930. ac_prev=sbindir ;;
  931. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  932. | --sbi=* | --sb=*)
  933. sbindir=$ac_optarg ;;
  934. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  935. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  936. | --sharedst | --shareds | --shared | --share | --shar \
  937. | --sha | --sh)
  938. ac_prev=sharedstatedir ;;
  939. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  940. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  941. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  942. | --sha=* | --sh=*)
  943. sharedstatedir=$ac_optarg ;;
  944. -site | --site | --sit)
  945. ac_prev=site ;;
  946. -site=* | --site=* | --sit=*)
  947. site=$ac_optarg ;;
  948. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  949. ac_prev=srcdir ;;
  950. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  951. srcdir=$ac_optarg ;;
  952. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  953. | --syscon | --sysco | --sysc | --sys | --sy)
  954. ac_prev=sysconfdir ;;
  955. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  956. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  957. sysconfdir=$ac_optarg ;;
  958. -target | --target | --targe | --targ | --tar | --ta | --t)
  959. ac_prev=target_alias ;;
  960. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  961. target_alias=$ac_optarg ;;
  962. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  963. verbose=yes ;;
  964. -version | --version | --versio | --versi | --vers | -V)
  965. ac_init_version=: ;;
  966. -with-* | --with-*)
  967. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  968. # Reject names that are not valid shell variable names.
  969. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  970. as_fn_error $? "invalid package name: $ac_useropt"
  971. ac_useropt_orig=$ac_useropt
  972. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  973. case $ac_user_opts in
  974. *"
  975. "with_$ac_useropt"
  976. "*) ;;
  977. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  978. ac_unrecognized_sep=', ';;
  979. esac
  980. eval with_$ac_useropt=\$ac_optarg ;;
  981. -without-* | --without-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error $? "invalid package name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "with_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval with_$ac_useropt=no ;;
  996. --x)
  997. # Obsolete; use --with-x.
  998. with_x=yes ;;
  999. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1000. | --x-incl | --x-inc | --x-in | --x-i)
  1001. ac_prev=x_includes ;;
  1002. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1003. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1004. x_includes=$ac_optarg ;;
  1005. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1006. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1007. ac_prev=x_libraries ;;
  1008. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1009. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1010. x_libraries=$ac_optarg ;;
  1011. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1012. Try \`$0 --help' for more information"
  1013. ;;
  1014. *=*)
  1015. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1016. # Reject names that are not valid shell variable names.
  1017. case $ac_envvar in #(
  1018. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1019. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1020. esac
  1021. eval $ac_envvar=\$ac_optarg
  1022. export $ac_envvar ;;
  1023. *)
  1024. # FIXME: should be removed in autoconf 3.0.
  1025. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1026. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1027. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1028. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1029. ;;
  1030. esac
  1031. done
  1032. if test -n "$ac_prev"; then
  1033. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1034. as_fn_error $? "missing argument to $ac_option"
  1035. fi
  1036. if test -n "$ac_unrecognized_opts"; then
  1037. case $enable_option_checking in
  1038. no) ;;
  1039. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1040. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1041. esac
  1042. fi
  1043. # Check all directory arguments for consistency.
  1044. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1045. datadir sysconfdir sharedstatedir localstatedir includedir \
  1046. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1047. libdir localedir mandir
  1048. do
  1049. eval ac_val=\$$ac_var
  1050. # Remove trailing slashes.
  1051. case $ac_val in
  1052. */ )
  1053. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1054. eval $ac_var=\$ac_val;;
  1055. esac
  1056. # Be sure to have absolute directory names.
  1057. case $ac_val in
  1058. [\\/$]* | ?:[\\/]* ) continue;;
  1059. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1060. esac
  1061. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1062. done
  1063. # There might be people who depend on the old broken behavior: `$host'
  1064. # used to hold the argument of --host etc.
  1065. # FIXME: To remove some day.
  1066. build=$build_alias
  1067. host=$host_alias
  1068. target=$target_alias
  1069. # FIXME: To remove some day.
  1070. if test "x$host_alias" != x; then
  1071. if test "x$build_alias" = x; then
  1072. cross_compiling=maybe
  1073. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1074. If a cross compiler is detected then cross compile mode will be used" >&2
  1075. elif test "x$build_alias" != "x$host_alias"; then
  1076. cross_compiling=yes
  1077. fi
  1078. fi
  1079. ac_tool_prefix=
  1080. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1081. test "$silent" = yes && exec 6>/dev/null
  1082. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1083. ac_ls_di=`ls -di .` &&
  1084. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1085. as_fn_error $? "working directory cannot be determined"
  1086. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1087. as_fn_error $? "pwd does not report name of working directory"
  1088. # Find the source files, if location was not specified.
  1089. if test -z "$srcdir"; then
  1090. ac_srcdir_defaulted=yes
  1091. # Try the directory containing this script, then the parent directory.
  1092. ac_confdir=`$as_dirname -- "$as_myself" ||
  1093. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1094. X"$as_myself" : 'X\(//\)[^/]' \| \
  1095. X"$as_myself" : 'X\(//\)$' \| \
  1096. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1097. $as_echo X"$as_myself" |
  1098. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\/\)[^/].*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)$/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\).*/{
  1111. s//\1/
  1112. q
  1113. }
  1114. s/.*/./; q'`
  1115. srcdir=$ac_confdir
  1116. if test ! -r "$srcdir/$ac_unique_file"; then
  1117. srcdir=..
  1118. fi
  1119. else
  1120. ac_srcdir_defaulted=no
  1121. fi
  1122. if test ! -r "$srcdir/$ac_unique_file"; then
  1123. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1124. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1125. fi
  1126. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1127. ac_abs_confdir=`(
  1128. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1129. pwd)`
  1130. # When building in place, set srcdir=.
  1131. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1132. srcdir=.
  1133. fi
  1134. # Remove unnecessary trailing slashes from srcdir.
  1135. # Double slashes in file names in object file debugging info
  1136. # mess up M-x gdb in Emacs.
  1137. case $srcdir in
  1138. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1139. esac
  1140. for ac_var in $ac_precious_vars; do
  1141. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1142. eval ac_env_${ac_var}_value=\$${ac_var}
  1143. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1145. done
  1146. #
  1147. # Report the --help message.
  1148. #
  1149. if test "$ac_init_help" = "long"; then
  1150. # Omit some internal or obsolete options to make the list less imposing.
  1151. # This message is too long to be a string in the A/UX 3.1 sh.
  1152. cat <<_ACEOF
  1153. \`configure' configures expat 2.1.0 to adapt to many kinds of systems.
  1154. Usage: $0 [OPTION]... [VAR=VALUE]...
  1155. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1156. VAR=VALUE. See below for descriptions of some of the useful variables.
  1157. Defaults for the options are specified in brackets.
  1158. Configuration:
  1159. -h, --help display this help and exit
  1160. --help=short display options specific to this package
  1161. --help=recursive display the short help of all the included packages
  1162. -V, --version display version information and exit
  1163. -q, --quiet, --silent do not print \`checking ...' messages
  1164. --cache-file=FILE cache test results in FILE [disabled]
  1165. -C, --config-cache alias for \`--cache-file=config.cache'
  1166. -n, --no-create do not create output files
  1167. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1168. Installation directories:
  1169. --prefix=PREFIX install architecture-independent files in PREFIX
  1170. [$ac_default_prefix]
  1171. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1172. [PREFIX]
  1173. By default, \`make install' will install all the files in
  1174. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1175. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1176. for instance \`--prefix=\$HOME'.
  1177. For better control, use the options below.
  1178. Fine tuning of the installation directories:
  1179. --bindir=DIR user executables [EPREFIX/bin]
  1180. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1181. --libexecdir=DIR program executables [EPREFIX/libexec]
  1182. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1183. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1184. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1185. --libdir=DIR object code libraries [EPREFIX/lib]
  1186. --includedir=DIR C header files [PREFIX/include]
  1187. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1188. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1189. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1190. --infodir=DIR info documentation [DATAROOTDIR/info]
  1191. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1192. --mandir=DIR man documentation [DATAROOTDIR/man]
  1193. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1194. --htmldir=DIR html documentation [DOCDIR]
  1195. --dvidir=DIR dvi documentation [DOCDIR]
  1196. --pdfdir=DIR pdf documentation [DOCDIR]
  1197. --psdir=DIR ps documentation [DOCDIR]
  1198. _ACEOF
  1199. cat <<\_ACEOF
  1200. System types:
  1201. --build=BUILD configure for building on BUILD [guessed]
  1202. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. case $ac_init_help in
  1207. short | recursive ) echo "Configuration of expat 2.1.0:";;
  1208. esac
  1209. cat <<\_ACEOF
  1210. Optional Features:
  1211. --disable-option-checking ignore unrecognized --enable/--with options
  1212. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1213. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1214. --enable-shared[=PKGS] build shared libraries [default=yes]
  1215. --enable-static[=PKGS] build static libraries [default=yes]
  1216. --enable-fast-install[=PKGS]
  1217. optimize for fast installation [default=yes]
  1218. --disable-libtool-lock avoid locking (might break parallel builds)
  1219. Optional Packages:
  1220. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1221. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1222. --with-pic try to use only PIC/non-PIC objects [default=use
  1223. both]
  1224. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1225. --with-sysroot=DIR Search for dependent libraries within DIR
  1226. (or the compiler's sysroot if not specified).
  1227. Some influential environment variables:
  1228. CC C compiler command
  1229. CFLAGS C compiler flags
  1230. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1231. nonstandard directory <lib dir>
  1232. LIBS libraries to pass to the linker, e.g. -l<library>
  1233. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1234. you have headers in a nonstandard directory <include dir>
  1235. CPP C preprocessor
  1236. CXX C++ compiler command
  1237. CXXFLAGS C++ compiler flags
  1238. CXXCPP C++ preprocessor
  1239. Use these variables to override the choices made by `configure' or to help
  1240. it to find libraries and programs with nonstandard names/locations.
  1241. Report bugs to <expat-bugs@libexpat.org>.
  1242. _ACEOF
  1243. ac_status=$?
  1244. fi
  1245. if test "$ac_init_help" = "recursive"; then
  1246. # If there are subdirs, report their specific --help.
  1247. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1248. test -d "$ac_dir" ||
  1249. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1250. continue
  1251. ac_builddir=.
  1252. case "$ac_dir" in
  1253. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1254. *)
  1255. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1256. # A ".." for each directory in $ac_dir_suffix.
  1257. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1258. case $ac_top_builddir_sub in
  1259. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1260. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1261. esac ;;
  1262. esac
  1263. ac_abs_top_builddir=$ac_pwd
  1264. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1265. # for backward compatibility:
  1266. ac_top_builddir=$ac_top_build_prefix
  1267. case $srcdir in
  1268. .) # We are building in place.
  1269. ac_srcdir=.
  1270. ac_top_srcdir=$ac_top_builddir_sub
  1271. ac_abs_top_srcdir=$ac_pwd ;;
  1272. [\\/]* | ?:[\\/]* ) # Absolute name.
  1273. ac_srcdir=$srcdir$ac_dir_suffix;
  1274. ac_top_srcdir=$srcdir
  1275. ac_abs_top_srcdir=$srcdir ;;
  1276. *) # Relative name.
  1277. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1278. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1279. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1280. esac
  1281. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1282. cd "$ac_dir" || { ac_status=$?; continue; }
  1283. # Check for guested configure.
  1284. if test -f "$ac_srcdir/configure.gnu"; then
  1285. echo &&
  1286. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1287. elif test -f "$ac_srcdir/configure"; then
  1288. echo &&
  1289. $SHELL "$ac_srcdir/configure" --help=recursive
  1290. else
  1291. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1292. fi || ac_status=$?
  1293. cd "$ac_pwd" || { ac_status=$?; break; }
  1294. done
  1295. fi
  1296. test -n "$ac_init_help" && exit $ac_status
  1297. if $ac_init_version; then
  1298. cat <<\_ACEOF
  1299. expat configure 2.1.0
  1300. generated by GNU Autoconf 2.68
  1301. Copyright (C) 2010 Free Software Foundation, Inc.
  1302. This configure script is free software; the Free Software Foundation
  1303. gives unlimited permission to copy, distribute and modify it.
  1304. _ACEOF
  1305. exit
  1306. fi
  1307. ## ------------------------ ##
  1308. ## Autoconf initialization. ##
  1309. ## ------------------------ ##
  1310. # ac_fn_c_try_compile LINENO
  1311. # --------------------------
  1312. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1313. ac_fn_c_try_compile ()
  1314. {
  1315. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1316. rm -f conftest.$ac_objext
  1317. if { { ac_try="$ac_compile"
  1318. case "(($ac_try" in
  1319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1320. *) ac_try_echo=$ac_try;;
  1321. esac
  1322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1323. $as_echo "$ac_try_echo"; } >&5
  1324. (eval "$ac_compile") 2>conftest.err
  1325. ac_status=$?
  1326. if test -s conftest.err; then
  1327. grep -v '^ *+' conftest.err >conftest.er1
  1328. cat conftest.er1 >&5
  1329. mv -f conftest.er1 conftest.err
  1330. fi
  1331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1332. test $ac_status = 0; } && {
  1333. test -z "$ac_c_werror_flag" ||
  1334. test ! -s conftest.err
  1335. } && test -s conftest.$ac_objext; then :
  1336. ac_retval=0
  1337. else
  1338. $as_echo "$as_me: failed program was:" >&5
  1339. sed 's/^/| /' conftest.$ac_ext >&5
  1340. ac_retval=1
  1341. fi
  1342. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1343. as_fn_set_status $ac_retval
  1344. } # ac_fn_c_try_compile
  1345. # ac_fn_c_try_link LINENO
  1346. # -----------------------
  1347. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1348. ac_fn_c_try_link ()
  1349. {
  1350. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1351. rm -f conftest.$ac_objext conftest$ac_exeext
  1352. if { { ac_try="$ac_link"
  1353. case "(($ac_try" in
  1354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1355. *) ac_try_echo=$ac_try;;
  1356. esac
  1357. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1358. $as_echo "$ac_try_echo"; } >&5
  1359. (eval "$ac_link") 2>conftest.err
  1360. ac_status=$?
  1361. if test -s conftest.err; then
  1362. grep -v '^ *+' conftest.err >conftest.er1
  1363. cat conftest.er1 >&5
  1364. mv -f conftest.er1 conftest.err
  1365. fi
  1366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1367. test $ac_status = 0; } && {
  1368. test -z "$ac_c_werror_flag" ||
  1369. test ! -s conftest.err
  1370. } && test -s conftest$ac_exeext && {
  1371. test "$cross_compiling" = yes ||
  1372. $as_test_x conftest$ac_exeext
  1373. }; then :
  1374. ac_retval=0
  1375. else
  1376. $as_echo "$as_me: failed program was:" >&5
  1377. sed 's/^/| /' conftest.$ac_ext >&5
  1378. ac_retval=1
  1379. fi
  1380. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1381. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1382. # interfere with the next link command; also delete a directory that is
  1383. # left behind by Apple's compiler. We do this before executing the actions.
  1384. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1385. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1386. as_fn_set_status $ac_retval
  1387. } # ac_fn_c_try_link
  1388. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1389. # -------------------------------------------------------
  1390. # Tests whether HEADER exists and can be compiled using the include files in
  1391. # INCLUDES, setting the cache variable VAR accordingly.
  1392. ac_fn_c_check_header_compile ()
  1393. {
  1394. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1396. $as_echo_n "checking for $2... " >&6; }
  1397. if eval \${$3+:} false; then :
  1398. $as_echo_n "(cached) " >&6
  1399. else
  1400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1401. /* end confdefs.h. */
  1402. $4
  1403. #include <$2>
  1404. _ACEOF
  1405. if ac_fn_c_try_compile "$LINENO"; then :
  1406. eval "$3=yes"
  1407. else
  1408. eval "$3=no"
  1409. fi
  1410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1411. fi
  1412. eval ac_res=\$$3
  1413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1414. $as_echo "$ac_res" >&6; }
  1415. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1416. } # ac_fn_c_check_header_compile
  1417. # ac_fn_c_try_cpp LINENO
  1418. # ----------------------
  1419. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1420. ac_fn_c_try_cpp ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } > conftest.i && {
  1439. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1440. test ! -s conftest.err
  1441. }; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=1
  1447. fi
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_c_try_cpp
  1451. # ac_fn_c_try_run LINENO
  1452. # ----------------------
  1453. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1454. # that executables *can* be run.
  1455. ac_fn_c_try_run ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if { { ac_try="$ac_link"
  1459. case "(($ac_try" in
  1460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1461. *) ac_try_echo=$ac_try;;
  1462. esac
  1463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1464. $as_echo "$ac_try_echo"; } >&5
  1465. (eval "$ac_link") 2>&5
  1466. ac_status=$?
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1469. { { case "(($ac_try" in
  1470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1471. *) ac_try_echo=$ac_try;;
  1472. esac
  1473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1474. $as_echo "$ac_try_echo"; } >&5
  1475. (eval "$ac_try") 2>&5
  1476. ac_status=$?
  1477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1478. test $ac_status = 0; }; }; then :
  1479. ac_retval=0
  1480. else
  1481. $as_echo "$as_me: program exited with status $ac_status" >&5
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=$ac_status
  1485. fi
  1486. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1487. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1488. as_fn_set_status $ac_retval
  1489. } # ac_fn_c_try_run
  1490. # ac_fn_c_check_func LINENO FUNC VAR
  1491. # ----------------------------------
  1492. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1493. ac_fn_c_check_func ()
  1494. {
  1495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1497. $as_echo_n "checking for $2... " >&6; }
  1498. if eval \${$3+:} false; then :
  1499. $as_echo_n "(cached) " >&6
  1500. else
  1501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1502. /* end confdefs.h. */
  1503. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1504. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1505. #define $2 innocuous_$2
  1506. /* System header to define __stub macros and hopefully few prototypes,
  1507. which can conflict with char $2 (); below.
  1508. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1509. <limits.h> exists even on freestanding compilers. */
  1510. #ifdef __STDC__
  1511. # include <limits.h>
  1512. #else
  1513. # include <assert.h>
  1514. #endif
  1515. #undef $2
  1516. /* Override any GCC internal prototype to avoid an error.
  1517. Use char because int might match the return type of a GCC
  1518. builtin and then its argument prototype would still apply. */
  1519. #ifdef __cplusplus
  1520. extern "C"
  1521. #endif
  1522. char $2 ();
  1523. /* The GNU C library defines this for functions which it implements
  1524. to always fail with ENOSYS. Some functions are actually named
  1525. something starting with __ and the normal name is an alias. */
  1526. #if defined __stub_$2 || defined __stub___$2
  1527. choke me
  1528. #endif
  1529. int
  1530. main ()
  1531. {
  1532. return $2 ();
  1533. ;
  1534. return 0;
  1535. }
  1536. _ACEOF
  1537. if ac_fn_c_try_link "$LINENO"; then :
  1538. eval "$3=yes"
  1539. else
  1540. eval "$3=no"
  1541. fi
  1542. rm -f core conftest.err conftest.$ac_objext \
  1543. conftest$ac_exeext conftest.$ac_ext
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. } # ac_fn_c_check_func
  1550. # ac_fn_cxx_try_compile LINENO
  1551. # ----------------------------
  1552. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_cxx_try_compile ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext
  1557. if { { ac_try="$ac_compile"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_compile") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_cxx_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest.$ac_objext; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1583. as_fn_set_status $ac_retval
  1584. } # ac_fn_cxx_try_compile
  1585. # ac_fn_cxx_try_cpp LINENO
  1586. # ------------------------
  1587. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1588. ac_fn_cxx_try_cpp ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } > conftest.i && {
  1607. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1608. test ! -s conftest.err
  1609. }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_cxx_try_cpp
  1619. # ac_fn_cxx_try_link LINENO
  1620. # -------------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_cxx_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_cxx_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. $as_test_x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_cxx_try_link
  1662. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1663. # -------------------------------------------
  1664. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1665. # variable VAR accordingly.
  1666. ac_fn_c_check_type ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. eval "$3=no"
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. $4
  1678. int
  1679. main ()
  1680. {
  1681. if (sizeof ($2))
  1682. return 0;
  1683. ;
  1684. return 0;
  1685. }
  1686. _ACEOF
  1687. if ac_fn_c_try_compile "$LINENO"; then :
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. $4
  1691. int
  1692. main ()
  1693. {
  1694. if (sizeof (($2)))
  1695. return 0;
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_compile "$LINENO"; then :
  1701. else
  1702. eval "$3=yes"
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. } # ac_fn_c_check_type
  1713. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1714. # -------------------------------------------------------
  1715. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1716. # the include files in INCLUDES and setting the cache variable VAR
  1717. # accordingly.
  1718. ac_fn_c_check_header_mongrel ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. if eval \${$3+:} false; then :
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725. $as_echo_n "(cached) " >&6
  1726. fi
  1727. eval ac_res=\$$3
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1729. $as_echo "$ac_res" >&6; }
  1730. else
  1731. # Is the header compilable?
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1733. $as_echo_n "checking $2 usability... " >&6; }
  1734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1735. /* end confdefs.h. */
  1736. $4
  1737. #include <$2>
  1738. _ACEOF
  1739. if ac_fn_c_try_compile "$LINENO"; then :
  1740. ac_header_compiler=yes
  1741. else
  1742. ac_header_compiler=no
  1743. fi
  1744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1746. $as_echo "$ac_header_compiler" >&6; }
  1747. # Is the header present?
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1749. $as_echo_n "checking $2 presence... " >&6; }
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. #include <$2>
  1753. _ACEOF
  1754. if ac_fn_c_try_cpp "$LINENO"; then :
  1755. ac_header_preproc=yes
  1756. else
  1757. ac_header_preproc=no
  1758. fi
  1759. rm -f conftest.err conftest.i conftest.$ac_ext
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1761. $as_echo "$ac_header_preproc" >&6; }
  1762. # So? What about this header?
  1763. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1764. yes:no: )
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1766. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1768. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1769. ;;
  1770. no:yes:* )
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1772. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1774. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1776. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1778. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1780. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1781. ( $as_echo "## -------------------------------------- ##
  1782. ## Report this to expat-bugs@libexpat.org ##
  1783. ## -------------------------------------- ##"
  1784. ) | sed "s/^/$as_me: WARNING: /" >&2
  1785. ;;
  1786. esac
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1788. $as_echo_n "checking for $2... " >&6; }
  1789. if eval \${$3+:} false; then :
  1790. $as_echo_n "(cached) " >&6
  1791. else
  1792. eval "$3=\$ac_header_compiler"
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. fi
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. } # ac_fn_c_check_header_mongrel
  1800. cat >config.log <<_ACEOF
  1801. This file contains any messages produced by compilers while
  1802. running configure, to aid debugging if configure makes a mistake.
  1803. It was created by expat $as_me 2.1.0, which was
  1804. generated by GNU Autoconf 2.68. Invocation command line was
  1805. $ $0 $@
  1806. _ACEOF
  1807. exec 5>>config.log
  1808. {
  1809. cat <<_ASUNAME
  1810. ## --------- ##
  1811. ## Platform. ##
  1812. ## --------- ##
  1813. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1814. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1815. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1816. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1817. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1818. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1819. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1820. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1821. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1822. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1823. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1824. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1825. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1826. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1827. _ASUNAME
  1828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1829. for as_dir in $PATH
  1830. do
  1831. IFS=$as_save_IFS
  1832. test -z "$as_dir" && as_dir=.
  1833. $as_echo "PATH: $as_dir"
  1834. done
  1835. IFS=$as_save_IFS
  1836. } >&5
  1837. cat >&5 <<_ACEOF
  1838. ## ----------- ##
  1839. ## Core tests. ##
  1840. ## ----------- ##
  1841. _ACEOF
  1842. # Keep a trace of the command line.
  1843. # Strip out --no-create and --no-recursion so they do not pile up.
  1844. # Strip out --silent because we don't want to record it for future runs.
  1845. # Also quote any args containing shell meta-characters.
  1846. # Make two passes to allow for proper duplicate-argument suppression.
  1847. ac_configure_args=
  1848. ac_configure_args0=
  1849. ac_configure_args1=
  1850. ac_must_keep_next=false
  1851. for ac_pass in 1 2
  1852. do
  1853. for ac_arg
  1854. do
  1855. case $ac_arg in
  1856. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1857. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1858. | -silent | --silent | --silen | --sile | --sil)
  1859. continue ;;
  1860. *\'*)
  1861. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1862. esac
  1863. case $ac_pass in
  1864. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1865. 2)
  1866. as_fn_append ac_configure_args1 " '$ac_arg'"
  1867. if test $ac_must_keep_next = true; then
  1868. ac_must_keep_next=false # Got value, back to normal.
  1869. else
  1870. case $ac_arg in
  1871. *=* | --config-cache | -C | -disable-* | --disable-* \
  1872. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1873. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1874. | -with-* | --with-* | -without-* | --without-* | --x)
  1875. case "$ac_configure_args0 " in
  1876. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1877. esac
  1878. ;;
  1879. -* ) ac_must_keep_next=true ;;
  1880. esac
  1881. fi
  1882. as_fn_append ac_configure_args " '$ac_arg'"
  1883. ;;
  1884. esac
  1885. done
  1886. done
  1887. { ac_configure_args0=; unset ac_configure_args0;}
  1888. { ac_configure_args1=; unset ac_configure_args1;}
  1889. # When interrupted or exit'd, cleanup temporary files, and complete
  1890. # config.log. We remove comments because anyway the quotes in there
  1891. # would cause problems or look ugly.
  1892. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1893. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1894. trap 'exit_status=$?
  1895. # Save into config.log some information that might help in debugging.
  1896. {
  1897. echo
  1898. $as_echo "## ---------------- ##
  1899. ## Cache variables. ##
  1900. ## ---------------- ##"
  1901. echo
  1902. # The following way of writing the cache mishandles newlines in values,
  1903. (
  1904. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1905. eval ac_val=\$$ac_var
  1906. case $ac_val in #(
  1907. *${as_nl}*)
  1908. case $ac_var in #(
  1909. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1910. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1911. esac
  1912. case $ac_var in #(
  1913. _ | IFS | as_nl) ;; #(
  1914. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1915. *) { eval $ac_var=; unset $ac_var;} ;;
  1916. esac ;;
  1917. esac
  1918. done
  1919. (set) 2>&1 |
  1920. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1921. *${as_nl}ac_space=\ *)
  1922. sed -n \
  1923. "s/'\''/'\''\\\\'\'''\''/g;
  1924. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1925. ;; #(
  1926. *)
  1927. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1928. ;;
  1929. esac |
  1930. sort
  1931. )
  1932. echo
  1933. $as_echo "## ----------------- ##
  1934. ## Output variables. ##
  1935. ## ----------------- ##"
  1936. echo
  1937. for ac_var in $ac_subst_vars
  1938. do
  1939. eval ac_val=\$$ac_var
  1940. case $ac_val in
  1941. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1942. esac
  1943. $as_echo "$ac_var='\''$ac_val'\''"
  1944. done | sort
  1945. echo
  1946. if test -n "$ac_subst_files"; then
  1947. $as_echo "## ------------------- ##
  1948. ## File substitutions. ##
  1949. ## ------------------- ##"
  1950. echo
  1951. for ac_var in $ac_subst_files
  1952. do
  1953. eval ac_val=\$$ac_var
  1954. case $ac_val in
  1955. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1956. esac
  1957. $as_echo "$ac_var='\''$ac_val'\''"
  1958. done | sort
  1959. echo
  1960. fi
  1961. if test -s confdefs.h; then
  1962. $as_echo "## ----------- ##
  1963. ## confdefs.h. ##
  1964. ## ----------- ##"
  1965. echo
  1966. cat confdefs.h
  1967. echo
  1968. fi
  1969. test "$ac_signal" != 0 &&
  1970. $as_echo "$as_me: caught signal $ac_signal"
  1971. $as_echo "$as_me: exit $exit_status"
  1972. } >&5
  1973. rm -f core *.core core.conftest.* &&
  1974. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1975. exit $exit_status
  1976. ' 0
  1977. for ac_signal in 1 2 13 15; do
  1978. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1979. done
  1980. ac_signal=0
  1981. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1982. rm -f -r conftest* confdefs.h
  1983. $as_echo "/* confdefs.h */" > confdefs.h
  1984. # Predefined preprocessor variables.
  1985. cat >>confdefs.h <<_ACEOF
  1986. #define PACKAGE_NAME "$PACKAGE_NAME"
  1987. _ACEOF
  1988. cat >>confdefs.h <<_ACEOF
  1989. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1990. _ACEOF
  1991. cat >>confdefs.h <<_ACEOF
  1992. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1993. _ACEOF
  1994. cat >>confdefs.h <<_ACEOF
  1995. #define PACKAGE_STRING "$PACKAGE_STRING"
  1996. _ACEOF
  1997. cat >>confdefs.h <<_ACEOF
  1998. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1999. _ACEOF
  2000. cat >>confdefs.h <<_ACEOF
  2001. #define PACKAGE_URL "$PACKAGE_URL"
  2002. _ACEOF
  2003. # Let the site file select an alternate cache file if it wants to.
  2004. # Prefer an explicitly selected file to automatically selected ones.
  2005. ac_site_file1=NONE
  2006. ac_site_file2=NONE
  2007. if test -n "$CONFIG_SITE"; then
  2008. # We do not want a PATH search for config.site.
  2009. case $CONFIG_SITE in #((
  2010. -*) ac_site_file1=./$CONFIG_SITE;;
  2011. */*) ac_site_file1=$CONFIG_SITE;;
  2012. *) ac_site_file1=./$CONFIG_SITE;;
  2013. esac
  2014. elif test "x$prefix" != xNONE; then
  2015. ac_site_file1=$prefix/share/config.site
  2016. ac_site_file2=$prefix/etc/config.site
  2017. else
  2018. ac_site_file1=$ac_default_prefix/share/config.site
  2019. ac_site_file2=$ac_default_prefix/etc/config.site
  2020. fi
  2021. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2022. do
  2023. test "x$ac_site_file" = xNONE && continue
  2024. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2026. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2027. sed 's/^/| /' "$ac_site_file" >&5
  2028. . "$ac_site_file" \
  2029. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2031. as_fn_error $? "failed to load site script $ac_site_file
  2032. See \`config.log' for more details" "$LINENO" 5; }
  2033. fi
  2034. done
  2035. if test -r "$cache_file"; then
  2036. # Some versions of bash will fail to source /dev/null (special files
  2037. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2038. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2040. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2041. case $cache_file in
  2042. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2043. *) . "./$cache_file";;
  2044. esac
  2045. fi
  2046. else
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2048. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2049. >$cache_file
  2050. fi
  2051. as_fn_append ac_header_list " stdlib.h"
  2052. as_fn_append ac_header_list " unistd.h"
  2053. as_fn_append ac_header_list " sys/param.h"
  2054. # Check that the precious variables saved in the cache have kept the same
  2055. # value.
  2056. ac_cache_corrupted=false
  2057. for ac_var in $ac_precious_vars; do
  2058. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2059. eval ac_new_set=\$ac_env_${ac_var}_set
  2060. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2061. eval ac_new_val=\$ac_env_${ac_var}_value
  2062. case $ac_old_set,$ac_new_set in
  2063. set,)
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2065. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2066. ac_cache_corrupted=: ;;
  2067. ,set)
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2069. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2070. ac_cache_corrupted=: ;;
  2071. ,);;
  2072. *)
  2073. if test "x$ac_old_val" != "x$ac_new_val"; then
  2074. # differences in whitespace do not lead to failure.
  2075. ac_old_val_w=`echo x $ac_old_val`
  2076. ac_new_val_w=`echo x $ac_new_val`
  2077. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2079. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2080. ac_cache_corrupted=:
  2081. else
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2083. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2084. eval $ac_var=\$ac_old_val
  2085. fi
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2087. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2089. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2090. fi;;
  2091. esac
  2092. # Pass precious variables to config.status.
  2093. if test "$ac_new_set" = set; then
  2094. case $ac_new_val in
  2095. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2096. *) ac_arg=$ac_var=$ac_new_val ;;
  2097. esac
  2098. case " $ac_configure_args " in
  2099. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2100. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2101. esac
  2102. fi
  2103. done
  2104. if $ac_cache_corrupted; then
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2108. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2109. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2110. fi
  2111. ## -------------------- ##
  2112. ## Main body of script. ##
  2113. ## -------------------- ##
  2114. ac_ext=c
  2115. ac_cpp='$CPP $CPPFLAGS'
  2116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2119. ac_aux_dir=
  2120. for ac_dir in conftools "$srcdir"/conftools; do
  2121. if test -f "$ac_dir/install-sh"; then
  2122. ac_aux_dir=$ac_dir
  2123. ac_install_sh="$ac_aux_dir/install-sh -c"
  2124. break
  2125. elif test -f "$ac_dir/install.sh"; then
  2126. ac_aux_dir=$ac_dir
  2127. ac_install_sh="$ac_aux_dir/install.sh -c"
  2128. break
  2129. elif test -f "$ac_dir/shtool"; then
  2130. ac_aux_dir=$ac_dir
  2131. ac_install_sh="$ac_aux_dir/shtool install -c"
  2132. break
  2133. fi
  2134. done
  2135. if test -z "$ac_aux_dir"; then
  2136. as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
  2137. fi
  2138. # These three variables are undocumented and unsupported,
  2139. # and are intended to be withdrawn in a future Autoconf release.
  2140. # They can cause serious problems if a builder's source tree is in a directory
  2141. # whose full name contains unusual characters.
  2142. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2143. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2144. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2145. LIBCURRENT=7
  2146. LIBREVISION=0
  2147. LIBAGE=6
  2148. ac_config_headers="$ac_config_headers expat_config.h"
  2149. # Make sure we can run config.sub.
  2150. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2151. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2153. $as_echo_n "checking build system type... " >&6; }
  2154. if ${ac_cv_build+:} false; then :
  2155. $as_echo_n "(cached) " >&6
  2156. else
  2157. ac_build_alias=$build_alias
  2158. test "x$ac_build_alias" = x &&
  2159. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2160. test "x$ac_build_alias" = x &&
  2161. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2162. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2163. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2164. fi
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2166. $as_echo "$ac_cv_build" >&6; }
  2167. case $ac_cv_build in
  2168. *-*-*) ;;
  2169. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2170. esac
  2171. build=$ac_cv_build
  2172. ac_save_IFS=$IFS; IFS='-'
  2173. set x $ac_cv_build
  2174. shift
  2175. build_cpu=$1
  2176. build_vendor=$2
  2177. shift; shift
  2178. # Remember, the first character of IFS is used to create $*,
  2179. # except with old shells:
  2180. build_os=$*
  2181. IFS=$ac_save_IFS
  2182. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2184. $as_echo_n "checking host system type... " >&6; }
  2185. if ${ac_cv_host+:} false; then :
  2186. $as_echo_n "(cached) " >&6
  2187. else
  2188. if test "x$host_alias" = x; then
  2189. ac_cv_host=$ac_cv_build
  2190. else
  2191. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2192. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2193. fi
  2194. fi
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2196. $as_echo "$ac_cv_host" >&6; }
  2197. case $ac_cv_host in
  2198. *-*-*) ;;
  2199. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2200. esac
  2201. host=$ac_cv_host
  2202. ac_save_IFS=$IFS; IFS='-'
  2203. set x $ac_cv_host
  2204. shift
  2205. host_cpu=$1
  2206. host_vendor=$2
  2207. shift; shift
  2208. # Remember, the first character of IFS is used to create $*,
  2209. # except with old shells:
  2210. host_os=$*
  2211. IFS=$ac_save_IFS
  2212. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2213. enable_win32_dll=yes
  2214. case $host in
  2215. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  2216. if test -n "$ac_tool_prefix"; then
  2217. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  2218. set dummy ${ac_tool_prefix}as; ac_word=$2
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2220. $as_echo_n "checking for $ac_word... " >&6; }
  2221. if ${ac_cv_prog_AS+:} false; then :
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. if test -n "$AS"; then
  2225. ac_cv_prog_AS="$AS" # Let the user override the test.
  2226. else
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230. IFS=$as_save_IFS
  2231. test -z "$as_dir" && as_dir=.
  2232. for ac_exec_ext in '' $ac_executable_extensions; do
  2233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2234. ac_cv_prog_AS="${ac_tool_prefix}as"
  2235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2236. break 2
  2237. fi
  2238. done
  2239. done
  2240. IFS=$as_save_IFS
  2241. fi
  2242. fi
  2243. AS=$ac_cv_prog_AS
  2244. if test -n "$AS"; then
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  2246. $as_echo "$AS" >&6; }
  2247. else
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2249. $as_echo "no" >&6; }
  2250. fi
  2251. fi
  2252. if test -z "$ac_cv_prog_AS"; then
  2253. ac_ct_AS=$AS
  2254. # Extract the first word of "as", so it can be a program name with args.
  2255. set dummy as; ac_word=$2
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. $as_echo_n "checking for $ac_word... " >&6; }
  2258. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. if test -n "$ac_ct_AS"; then
  2262. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  2263. else
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2271. ac_cv_prog_ac_ct_AS="as"
  2272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. break 2
  2274. fi
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. fi
  2280. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  2281. if test -n "$ac_ct_AS"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  2283. $as_echo "$ac_ct_AS" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. if test "x$ac_ct_AS" = x; then
  2289. AS="false"
  2290. else
  2291. case $cross_compiling:$ac_tool_warned in
  2292. yes:)
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2295. ac_tool_warned=yes ;;
  2296. esac
  2297. AS=$ac_ct_AS
  2298. fi
  2299. else
  2300. AS="$ac_cv_prog_AS"
  2301. fi
  2302. if test -n "$ac_tool_prefix"; then
  2303. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  2304. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2306. $as_echo_n "checking for $ac_word... " >&6; }
  2307. if ${ac_cv_prog_DLLTOOL+:} false; then :
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. if test -n "$DLLTOOL"; then
  2311. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  2312. else
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_exec_ext in '' $ac_executable_extensions; do
  2319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2320. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  2321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2322. break 2
  2323. fi
  2324. done
  2325. done
  2326. IFS=$as_save_IFS
  2327. fi
  2328. fi
  2329. DLLTOOL=$ac_cv_prog_DLLTOOL
  2330. if test -n "$DLLTOOL"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  2332. $as_echo "$DLLTOOL" >&6; }
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2335. $as_echo "no" >&6; }
  2336. fi
  2337. fi
  2338. if test -z "$ac_cv_prog_DLLTOOL"; then
  2339. ac_ct_DLLTOOL=$DLLTOOL
  2340. # Extract the first word of "dlltool", so it can be a program name with args.
  2341. set dummy dlltool; ac_word=$2
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2343. $as_echo_n "checking for $ac_word... " >&6; }
  2344. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  2345. $as_echo_n "(cached) " >&6
  2346. else
  2347. if test -n "$ac_ct_DLLTOOL"; then
  2348. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  2349. else
  2350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351. for as_dir in $PATH
  2352. do
  2353. IFS=$as_save_IFS
  2354. test -z "$as_dir" && as_dir=.
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2357. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  2358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2359. break 2
  2360. fi
  2361. done
  2362. done
  2363. IFS=$as_save_IFS
  2364. fi
  2365. fi
  2366. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  2367. if test -n "$ac_ct_DLLTOOL"; then
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  2369. $as_echo "$ac_ct_DLLTOOL" >&6; }
  2370. else
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2372. $as_echo "no" >&6; }
  2373. fi
  2374. if test "x$ac_ct_DLLTOOL" = x; then
  2375. DLLTOOL="false"
  2376. else
  2377. case $cross_compiling:$ac_tool_warned in
  2378. yes:)
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2381. ac_tool_warned=yes ;;
  2382. esac
  2383. DLLTOOL=$ac_ct_DLLTOOL
  2384. fi
  2385. else
  2386. DLLTOOL="$ac_cv_prog_DLLTOOL"
  2387. fi
  2388. if test -n "$ac_tool_prefix"; then
  2389. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  2390. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2392. $as_echo_n "checking for $ac_word... " >&6; }
  2393. if ${ac_cv_prog_OBJDUMP+:} false; then :
  2394. $as_echo_n "(cached) " >&6
  2395. else
  2396. if test -n "$OBJDUMP"; then
  2397. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  2398. else
  2399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2400. for as_dir in $PATH
  2401. do
  2402. IFS=$as_save_IFS
  2403. test -z "$as_dir" && as_dir=.
  2404. for ac_exec_ext in '' $ac_executable_extensions; do
  2405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2406. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  2407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2408. break 2
  2409. fi
  2410. done
  2411. done
  2412. IFS=$as_save_IFS
  2413. fi
  2414. fi
  2415. OBJDUMP=$ac_cv_prog_OBJDUMP
  2416. if test -n "$OBJDUMP"; then
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  2418. $as_echo "$OBJDUMP" >&6; }
  2419. else
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2421. $as_echo "no" >&6; }
  2422. fi
  2423. fi
  2424. if test -z "$ac_cv_prog_OBJDUMP"; then
  2425. ac_ct_OBJDUMP=$OBJDUMP
  2426. # Extract the first word of "objdump", so it can be a program name with args.
  2427. set dummy objdump; ac_word=$2
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2429. $as_echo_n "checking for $ac_word... " >&6; }
  2430. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  2431. $as_echo_n "(cached) " >&6
  2432. else
  2433. if test -n "$ac_ct_OBJDUMP"; then
  2434. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  2435. else
  2436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2437. for as_dir in $PATH
  2438. do
  2439. IFS=$as_save_IFS
  2440. test -z "$as_dir" && as_dir=.
  2441. for ac_exec_ext in '' $ac_executable_extensions; do
  2442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2443. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  2444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2445. break 2
  2446. fi
  2447. done
  2448. done
  2449. IFS=$as_save_IFS
  2450. fi
  2451. fi
  2452. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  2453. if test -n "$ac_ct_OBJDUMP"; then
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  2455. $as_echo "$ac_ct_OBJDUMP" >&6; }
  2456. else
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2458. $as_echo "no" >&6; }
  2459. fi
  2460. if test "x$ac_ct_OBJDUMP" = x; then
  2461. OBJDUMP="false"
  2462. else
  2463. case $cross_compiling:$ac_tool_warned in
  2464. yes:)
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2467. ac_tool_warned=yes ;;
  2468. esac
  2469. OBJDUMP=$ac_ct_OBJDUMP
  2470. fi
  2471. else
  2472. OBJDUMP="$ac_cv_prog_OBJDUMP"
  2473. fi
  2474. ;;
  2475. esac
  2476. test -z "$AS" && AS=as
  2477. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2478. test -z "$OBJDUMP" && OBJDUMP=objdump
  2479. case `pwd` in
  2480. *\ * | *\ *)
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2482. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2483. esac
  2484. macro_version='2.4'
  2485. macro_revision='1.3293'
  2486. ltmain="$ac_aux_dir/ltmain.sh"
  2487. # Backslashify metacharacters that are still active within
  2488. # double-quoted strings.
  2489. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2490. # Same as above, but do not quote variable references.
  2491. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2492. # Sed substitution to delay expansion of an escaped shell variable in a
  2493. # double_quote_subst'ed string.
  2494. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2495. # Sed substitution to delay expansion of an escaped single quote.
  2496. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2497. # Sed substitution to avoid accidental globbing in evaled expressions
  2498. no_glob_subst='s/\*/\\\*/g'
  2499. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2500. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2501. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2503. $as_echo_n "checking how to print strings... " >&6; }
  2504. # Test print first, because it will be a builtin if present.
  2505. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2506. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2507. ECHO='print -r --'
  2508. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2509. ECHO='printf %s\n'
  2510. else
  2511. # Use this function as a fallback that always works.
  2512. func_fallback_echo ()
  2513. {
  2514. eval 'cat <<_LTECHO_EOF
  2515. $1
  2516. _LTECHO_EOF'
  2517. }
  2518. ECHO='func_fallback_echo'
  2519. fi
  2520. # func_echo_all arg...
  2521. # Invoke $ECHO with all args, space-separated.
  2522. func_echo_all ()
  2523. {
  2524. $ECHO ""
  2525. }
  2526. case "$ECHO" in
  2527. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2528. $as_echo "printf" >&6; } ;;
  2529. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2530. $as_echo "print -r" >&6; } ;;
  2531. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2532. $as_echo "cat" >&6; } ;;
  2533. esac
  2534. ac_ext=c
  2535. ac_cpp='$CPP $CPPFLAGS'
  2536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2539. if test -n "$ac_tool_prefix"; then
  2540. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2541. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_CC+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$CC"; then
  2548. ac_cv_prog_CC="$CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2557. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. CC=$ac_cv_prog_CC
  2567. if test -n "$CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2569. $as_echo "$CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. fi
  2575. if test -z "$ac_cv_prog_CC"; then
  2576. ac_ct_CC=$CC
  2577. # Extract the first word of "gcc", so it can be a program name with args.
  2578. set dummy gcc; ac_word=$2
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2580. $as_echo_n "checking for $ac_word... " >&6; }
  2581. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2582. $as_echo_n "(cached) " >&6
  2583. else
  2584. if test -n "$ac_ct_CC"; then
  2585. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2586. else
  2587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2588. for as_dir in $PATH
  2589. do
  2590. IFS=$as_save_IFS
  2591. test -z "$as_dir" && as_dir=.
  2592. for ac_exec_ext in '' $ac_executable_extensions; do
  2593. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2594. ac_cv_prog_ac_ct_CC="gcc"
  2595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2596. break 2
  2597. fi
  2598. done
  2599. done
  2600. IFS=$as_save_IFS
  2601. fi
  2602. fi
  2603. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2604. if test -n "$ac_ct_CC"; then
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2606. $as_echo "$ac_ct_CC" >&6; }
  2607. else
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2609. $as_echo "no" >&6; }
  2610. fi
  2611. if test "x$ac_ct_CC" = x; then
  2612. CC=""
  2613. else
  2614. case $cross_compiling:$ac_tool_warned in
  2615. yes:)
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2618. ac_tool_warned=yes ;;
  2619. esac
  2620. CC=$ac_ct_CC
  2621. fi
  2622. else
  2623. CC="$ac_cv_prog_CC"
  2624. fi
  2625. if test -z "$CC"; then
  2626. if test -n "$ac_tool_prefix"; then
  2627. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2628. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2630. $as_echo_n "checking for $ac_word... " >&6; }
  2631. if ${ac_cv_prog_CC+:} false; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. if test -n "$CC"; then
  2635. ac_cv_prog_CC="$CC" # Let the user override the test.
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2644. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646. break 2
  2647. fi
  2648. done
  2649. done
  2650. IFS=$as_save_IFS
  2651. fi
  2652. fi
  2653. CC=$ac_cv_prog_CC
  2654. if test -n "$CC"; then
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2656. $as_echo "$CC" >&6; }
  2657. else
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2659. $as_echo "no" >&6; }
  2660. fi
  2661. fi
  2662. fi
  2663. if test -z "$CC"; then
  2664. # Extract the first word of "cc", so it can be a program name with args.
  2665. set dummy cc; ac_word=$2
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2667. $as_echo_n "checking for $ac_word... " >&6; }
  2668. if ${ac_cv_prog_CC+:} false; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test -n "$CC"; then
  2672. ac_cv_prog_CC="$CC" # Let the user override the test.
  2673. else
  2674. ac_prog_rejected=no
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2682. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2683. ac_prog_rejected=yes
  2684. continue
  2685. fi
  2686. ac_cv_prog_CC="cc"
  2687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2688. break 2
  2689. fi
  2690. done
  2691. done
  2692. IFS=$as_save_IFS
  2693. if test $ac_prog_rejected = yes; then
  2694. # We found a bogon in the path, so make sure we never use it.
  2695. set dummy $ac_cv_prog_CC
  2696. shift
  2697. if test $# != 0; then
  2698. # We chose a different compiler from the bogus one.
  2699. # However, it has the same basename, so the bogon will be chosen
  2700. # first if we set CC to just the basename; use the full file name.
  2701. shift
  2702. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2703. fi
  2704. fi
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. fi
  2716. if test -z "$CC"; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. for ac_prog in cl.exe
  2719. do
  2720. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2721. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2723. $as_echo_n "checking for $ac_word... " >&6; }
  2724. if ${ac_cv_prog_CC+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if test -n "$CC"; then
  2728. ac_cv_prog_CC="$CC" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2737. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. fi
  2745. fi
  2746. CC=$ac_cv_prog_CC
  2747. if test -n "$CC"; then
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2749. $as_echo "$CC" >&6; }
  2750. else
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753. fi
  2754. test -n "$CC" && break
  2755. done
  2756. fi
  2757. if test -z "$CC"; then
  2758. ac_ct_CC=$CC
  2759. for ac_prog in cl.exe
  2760. do
  2761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2762. set dummy $ac_prog; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$ac_ct_CC"; then
  2769. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2770. else
  2771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2772. for as_dir in $PATH
  2773. do
  2774. IFS=$as_save_IFS
  2775. test -z "$as_dir" && as_dir=.
  2776. for ac_exec_ext in '' $ac_executable_extensions; do
  2777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2778. ac_cv_prog_ac_ct_CC="$ac_prog"
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. IFS=$as_save_IFS
  2785. fi
  2786. fi
  2787. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2788. if test -n "$ac_ct_CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2790. $as_echo "$ac_ct_CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. test -n "$ac_ct_CC" && break
  2796. done
  2797. if test "x$ac_ct_CC" = x; then
  2798. CC=""
  2799. else
  2800. case $cross_compiling:$ac_tool_warned in
  2801. yes:)
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2804. ac_tool_warned=yes ;;
  2805. esac
  2806. CC=$ac_ct_CC
  2807. fi
  2808. fi
  2809. fi
  2810. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2812. as_fn_error $? "no acceptable C compiler found in \$PATH
  2813. See \`config.log' for more details" "$LINENO" 5; }
  2814. # Provide some information about the compiler.
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2816. set X $ac_compile
  2817. ac_compiler=$2
  2818. for ac_option in --version -v -V -qversion; do
  2819. { { ac_try="$ac_compiler $ac_option >&5"
  2820. case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2825. $as_echo "$ac_try_echo"; } >&5
  2826. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2827. ac_status=$?
  2828. if test -s conftest.err; then
  2829. sed '10a\
  2830. ... rest of stderr output deleted ...
  2831. 10q' conftest.err >conftest.er1
  2832. cat conftest.er1 >&5
  2833. fi
  2834. rm -f conftest.er1 conftest.err
  2835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2836. test $ac_status = 0; }
  2837. done
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. int
  2841. main ()
  2842. {
  2843. ;
  2844. return 0;
  2845. }
  2846. _ACEOF
  2847. ac_clean_files_save=$ac_clean_files
  2848. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2849. # Try to create an executable without -o first, disregard a.out.
  2850. # It will help us diagnose broken compilers, and finding out an intuition
  2851. # of exeext.
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2853. $as_echo_n "checking whether the C compiler works... " >&6; }
  2854. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2855. # The possible output files:
  2856. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2857. ac_rmfiles=
  2858. for ac_file in $ac_files
  2859. do
  2860. case $ac_file in
  2861. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2862. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2863. esac
  2864. done
  2865. rm -f $ac_rmfiles
  2866. if { { ac_try="$ac_link_default"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2872. $as_echo "$ac_try_echo"; } >&5
  2873. (eval "$ac_link_default") 2>&5
  2874. ac_status=$?
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2876. test $ac_status = 0; }; then :
  2877. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2878. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2879. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2880. # so that the user can short-circuit this test for compilers unknown to
  2881. # Autoconf.
  2882. for ac_file in $ac_files ''
  2883. do
  2884. test -f "$ac_file" || continue
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2887. ;;
  2888. [ab].out )
  2889. # We found the default executable, but exeext='' is most
  2890. # certainly right.
  2891. break;;
  2892. *.* )
  2893. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2894. then :; else
  2895. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2896. fi
  2897. # We set ac_cv_exeext here because the later test for it is not
  2898. # safe: cross compilers may not add the suffix if given an `-o'
  2899. # argument, so we may need to know it at that point already.
  2900. # Even if this section looks crufty: it has the advantage of
  2901. # actually working.
  2902. break;;
  2903. * )
  2904. break;;
  2905. esac
  2906. done
  2907. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2908. else
  2909. ac_file=''
  2910. fi
  2911. if test -z "$ac_file"; then :
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. $as_echo "$as_me: failed program was:" >&5
  2915. sed 's/^/| /' conftest.$ac_ext >&5
  2916. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2918. as_fn_error 77 "C compiler cannot create executables
  2919. See \`config.log' for more details" "$LINENO" 5; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2922. $as_echo "yes" >&6; }
  2923. fi
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2925. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2927. $as_echo "$ac_file" >&6; }
  2928. ac_exeext=$ac_cv_exeext
  2929. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2930. ac_clean_files=$ac_clean_files_save
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2932. $as_echo_n "checking for suffix of executables... " >&6; }
  2933. if { { ac_try="$ac_link"
  2934. case "(($ac_try" in
  2935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2936. *) ac_try_echo=$ac_try;;
  2937. esac
  2938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2939. $as_echo "$ac_try_echo"; } >&5
  2940. (eval "$ac_link") 2>&5
  2941. ac_status=$?
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2943. test $ac_status = 0; }; then :
  2944. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2945. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2946. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2947. # `rm'.
  2948. for ac_file in conftest.exe conftest conftest.*; do
  2949. test -f "$ac_file" || continue
  2950. case $ac_file in
  2951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2952. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2953. break;;
  2954. * ) break;;
  2955. esac
  2956. done
  2957. else
  2958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2961. See \`config.log' for more details" "$LINENO" 5; }
  2962. fi
  2963. rm -f conftest conftest$ac_cv_exeext
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2965. $as_echo "$ac_cv_exeext" >&6; }
  2966. rm -f conftest.$ac_ext
  2967. EXEEXT=$ac_cv_exeext
  2968. ac_exeext=$EXEEXT
  2969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2970. /* end confdefs.h. */
  2971. #include <stdio.h>
  2972. int
  2973. main ()
  2974. {
  2975. FILE *f = fopen ("conftest.out", "w");
  2976. return ferror (f) || fclose (f) != 0;
  2977. ;
  2978. return 0;
  2979. }
  2980. _ACEOF
  2981. ac_clean_files="$ac_clean_files conftest.out"
  2982. # Check that the compiler produces executables we can run. If not, either
  2983. # the compiler is broken, or we cross compile.
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2985. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2986. if test "$cross_compiling" != yes; then
  2987. { { ac_try="$ac_link"
  2988. case "(($ac_try" in
  2989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2990. *) ac_try_echo=$ac_try;;
  2991. esac
  2992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2993. $as_echo "$ac_try_echo"; } >&5
  2994. (eval "$ac_link") 2>&5
  2995. ac_status=$?
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }
  2998. if { ac_try='./conftest$ac_cv_exeext'
  2999. { { case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3004. $as_echo "$ac_try_echo"; } >&5
  3005. (eval "$ac_try") 2>&5
  3006. ac_status=$?
  3007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3008. test $ac_status = 0; }; }; then
  3009. cross_compiling=no
  3010. else
  3011. if test "$cross_compiling" = maybe; then
  3012. cross_compiling=yes
  3013. else
  3014. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3016. as_fn_error $? "cannot run C compiled programs.
  3017. If you meant to cross compile, use \`--host'.
  3018. See \`config.log' for more details" "$LINENO" 5; }
  3019. fi
  3020. fi
  3021. fi
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3023. $as_echo "$cross_compiling" >&6; }
  3024. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3025. ac_clean_files=$ac_clean_files_save
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3027. $as_echo_n "checking for suffix of object files... " >&6; }
  3028. if ${ac_cv_objext+:} false; then :
  3029. $as_echo_n "(cached) " >&6
  3030. else
  3031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3032. /* end confdefs.h. */
  3033. int
  3034. main ()
  3035. {
  3036. ;
  3037. return 0;
  3038. }
  3039. _ACEOF
  3040. rm -f conftest.o conftest.obj
  3041. if { { ac_try="$ac_compile"
  3042. case "(($ac_try" in
  3043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044. *) ac_try_echo=$ac_try;;
  3045. esac
  3046. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3047. $as_echo "$ac_try_echo"; } >&5
  3048. (eval "$ac_compile") 2>&5
  3049. ac_status=$?
  3050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3051. test $ac_status = 0; }; then :
  3052. for ac_file in conftest.o conftest.obj conftest.*; do
  3053. test -f "$ac_file" || continue;
  3054. case $ac_file in
  3055. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3056. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3057. break;;
  3058. esac
  3059. done
  3060. else
  3061. $as_echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. fi
  3068. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3071. $as_echo "$ac_cv_objext" >&6; }
  3072. OBJEXT=$ac_cv_objext
  3073. ac_objext=$OBJEXT
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3075. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3076. if ${ac_cv_c_compiler_gnu+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. #ifndef __GNUC__
  3085. choke me
  3086. #endif
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. if ac_fn_c_try_compile "$LINENO"; then :
  3092. ac_compiler_gnu=yes
  3093. else
  3094. ac_compiler_gnu=no
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3100. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3101. if test $ac_compiler_gnu = yes; then
  3102. GCC=yes
  3103. else
  3104. GCC=
  3105. fi
  3106. ac_test_CFLAGS=${CFLAGS+set}
  3107. ac_save_CFLAGS=$CFLAGS
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3109. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3110. if ${ac_cv_prog_cc_g+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. ac_save_c_werror_flag=$ac_c_werror_flag
  3114. ac_c_werror_flag=yes
  3115. ac_cv_prog_cc_g=no
  3116. CFLAGS="-g"
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. int
  3120. main ()
  3121. {
  3122. ;
  3123. return 0;
  3124. }
  3125. _ACEOF
  3126. if ac_fn_c_try_compile "$LINENO"; then :
  3127. ac_cv_prog_cc_g=yes
  3128. else
  3129. CFLAGS=""
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. int
  3133. main ()
  3134. {
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. else
  3141. ac_c_werror_flag=$ac_save_c_werror_flag
  3142. CFLAGS="-g"
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. ac_cv_prog_cc_g=yes
  3154. fi
  3155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. fi
  3159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. ac_c_werror_flag=$ac_save_c_werror_flag
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3163. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3164. if test "$ac_test_CFLAGS" = set; then
  3165. CFLAGS=$ac_save_CFLAGS
  3166. elif test $ac_cv_prog_cc_g = yes; then
  3167. if test "$GCC" = yes; then
  3168. CFLAGS="-g -O2"
  3169. else
  3170. CFLAGS="-g"
  3171. fi
  3172. else
  3173. if test "$GCC" = yes; then
  3174. CFLAGS="-O2"
  3175. else
  3176. CFLAGS=
  3177. fi
  3178. fi
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3180. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3181. if ${ac_cv_prog_cc_c89+:} false; then :
  3182. $as_echo_n "(cached) " >&6
  3183. else
  3184. ac_cv_prog_cc_c89=no
  3185. ac_save_CC=$CC
  3186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3187. /* end confdefs.h. */
  3188. #include <stdarg.h>
  3189. #include <stdio.h>
  3190. #include <sys/types.h>
  3191. #include <sys/stat.h>
  3192. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3193. struct buf { int x; };
  3194. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3195. static char *e (p, i)
  3196. char **p;
  3197. int i;
  3198. {
  3199. return p[i];
  3200. }
  3201. static char *f (char * (*g) (char **, int), char **p, ...)
  3202. {
  3203. char *s;
  3204. va_list v;
  3205. va_start (v,p);
  3206. s = g (p, va_arg (v,int));
  3207. va_end (v);
  3208. return s;
  3209. }
  3210. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3211. function prototypes and stuff, but not '\xHH' hex character constants.
  3212. These don't provoke an error unfortunately, instead are silently treated
  3213. as 'x'. The following induces an error, until -std is added to get
  3214. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3215. array size at least. It's necessary to write '\x00'==0 to get something
  3216. that's true only with -std. */
  3217. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3218. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3219. inside strings and character constants. */
  3220. #define FOO(x) 'x'
  3221. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3222. int test (int i, double x);
  3223. struct s1 {int (*f) (int a);};
  3224. struct s2 {int (*f) (double a);};
  3225. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3226. int argc;
  3227. char **argv;
  3228. int
  3229. main ()
  3230. {
  3231. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3237. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3238. do
  3239. CC="$ac_save_CC $ac_arg"
  3240. if ac_fn_c_try_compile "$LINENO"; then :
  3241. ac_cv_prog_cc_c89=$ac_arg
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext
  3244. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3245. done
  3246. rm -f conftest.$ac_ext
  3247. CC=$ac_save_CC
  3248. fi
  3249. # AC_CACHE_VAL
  3250. case "x$ac_cv_prog_cc_c89" in
  3251. x)
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3253. $as_echo "none needed" >&6; } ;;
  3254. xno)
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3256. $as_echo "unsupported" >&6; } ;;
  3257. *)
  3258. CC="$CC $ac_cv_prog_cc_c89"
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3260. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3261. esac
  3262. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3263. fi
  3264. ac_ext=c
  3265. ac_cpp='$CPP $CPPFLAGS'
  3266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3270. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3271. if ${ac_cv_path_SED+:} false; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3275. for ac_i in 1 2 3 4 5 6 7; do
  3276. ac_script="$ac_script$as_nl$ac_script"
  3277. done
  3278. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3279. { ac_script=; unset ac_script;}
  3280. if test -z "$SED"; then
  3281. ac_path_SED_found=false
  3282. # Loop through the user's path and test for each of PROGNAME-LIST
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_prog in sed gsed; do
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3291. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3292. # Check for GNU ac_path_SED and select it if it is found.
  3293. # Check for GNU $ac_path_SED
  3294. case `"$ac_path_SED" --version 2>&1` in
  3295. *GNU*)
  3296. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3297. *)
  3298. ac_count=0
  3299. $as_echo_n 0123456789 >"conftest.in"
  3300. while :
  3301. do
  3302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3303. mv "conftest.tmp" "conftest.in"
  3304. cp "conftest.in" "conftest.nl"
  3305. $as_echo '' >> "conftest.nl"
  3306. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3309. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3310. # Best one so far, save it but keep looking for a better one
  3311. ac_cv_path_SED="$ac_path_SED"
  3312. ac_path_SED_max=$ac_count
  3313. fi
  3314. # 10*(2^10) chars as input seems more than enough
  3315. test $ac_count -gt 10 && break
  3316. done
  3317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3318. esac
  3319. $ac_path_SED_found && break 3
  3320. done
  3321. done
  3322. done
  3323. IFS=$as_save_IFS
  3324. if test -z "$ac_cv_path_SED"; then
  3325. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3326. fi
  3327. else
  3328. ac_cv_path_SED=$SED
  3329. fi
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3332. $as_echo "$ac_cv_path_SED" >&6; }
  3333. SED="$ac_cv_path_SED"
  3334. rm -f conftest.sed
  3335. test -z "$SED" && SED=sed
  3336. Xsed="$SED -e 1s/^X//"
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3338. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3339. if ${ac_cv_path_GREP+:} false; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test -z "$GREP"; then
  3343. ac_path_GREP_found=false
  3344. # Loop through the user's path and test for each of PROGNAME-LIST
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_prog in grep ggrep; do
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3353. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3354. # Check for GNU ac_path_GREP and select it if it is found.
  3355. # Check for GNU $ac_path_GREP
  3356. case `"$ac_path_GREP" --version 2>&1` in
  3357. *GNU*)
  3358. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3359. *)
  3360. ac_count=0
  3361. $as_echo_n 0123456789 >"conftest.in"
  3362. while :
  3363. do
  3364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3365. mv "conftest.tmp" "conftest.in"
  3366. cp "conftest.in" "conftest.nl"
  3367. $as_echo 'GREP' >> "conftest.nl"
  3368. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3371. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3372. # Best one so far, save it but keep looking for a better one
  3373. ac_cv_path_GREP="$ac_path_GREP"
  3374. ac_path_GREP_max=$ac_count
  3375. fi
  3376. # 10*(2^10) chars as input seems more than enough
  3377. test $ac_count -gt 10 && break
  3378. done
  3379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3380. esac
  3381. $ac_path_GREP_found && break 3
  3382. done
  3383. done
  3384. done
  3385. IFS=$as_save_IFS
  3386. if test -z "$ac_cv_path_GREP"; then
  3387. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3388. fi
  3389. else
  3390. ac_cv_path_GREP=$GREP
  3391. fi
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3394. $as_echo "$ac_cv_path_GREP" >&6; }
  3395. GREP="$ac_cv_path_GREP"
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3397. $as_echo_n "checking for egrep... " >&6; }
  3398. if ${ac_cv_path_EGREP+:} false; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3402. then ac_cv_path_EGREP="$GREP -E"
  3403. else
  3404. if test -z "$EGREP"; then
  3405. ac_path_EGREP_found=false
  3406. # Loop through the user's path and test for each of PROGNAME-LIST
  3407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3408. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3409. do
  3410. IFS=$as_save_IFS
  3411. test -z "$as_dir" && as_dir=.
  3412. for ac_prog in egrep; do
  3413. for ac_exec_ext in '' $ac_executable_extensions; do
  3414. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3415. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3416. # Check for GNU ac_path_EGREP and select it if it is found.
  3417. # Check for GNU $ac_path_EGREP
  3418. case `"$ac_path_EGREP" --version 2>&1` in
  3419. *GNU*)
  3420. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3421. *)
  3422. ac_count=0
  3423. $as_echo_n 0123456789 >"conftest.in"
  3424. while :
  3425. do
  3426. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3427. mv "conftest.tmp" "conftest.in"
  3428. cp "conftest.in" "conftest.nl"
  3429. $as_echo 'EGREP' >> "conftest.nl"
  3430. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3431. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3432. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3433. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3434. # Best one so far, save it but keep looking for a better one
  3435. ac_cv_path_EGREP="$ac_path_EGREP"
  3436. ac_path_EGREP_max=$ac_count
  3437. fi
  3438. # 10*(2^10) chars as input seems more than enough
  3439. test $ac_count -gt 10 && break
  3440. done
  3441. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3442. esac
  3443. $ac_path_EGREP_found && break 3
  3444. done
  3445. done
  3446. done
  3447. IFS=$as_save_IFS
  3448. if test -z "$ac_cv_path_EGREP"; then
  3449. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3450. fi
  3451. else
  3452. ac_cv_path_EGREP=$EGREP
  3453. fi
  3454. fi
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3457. $as_echo "$ac_cv_path_EGREP" >&6; }
  3458. EGREP="$ac_cv_path_EGREP"
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3460. $as_echo_n "checking for fgrep... " >&6; }
  3461. if ${ac_cv_path_FGREP+:} false; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3465. then ac_cv_path_FGREP="$GREP -F"
  3466. else
  3467. if test -z "$FGREP"; then
  3468. ac_path_FGREP_found=false
  3469. # Loop through the user's path and test for each of PROGNAME-LIST
  3470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3471. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3472. do
  3473. IFS=$as_save_IFS
  3474. test -z "$as_dir" && as_dir=.
  3475. for ac_prog in fgrep; do
  3476. for ac_exec_ext in '' $ac_executable_extensions; do
  3477. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3478. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3479. # Check for GNU ac_path_FGREP and select it if it is found.
  3480. # Check for GNU $ac_path_FGREP
  3481. case `"$ac_path_FGREP" --version 2>&1` in
  3482. *GNU*)
  3483. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3484. *)
  3485. ac_count=0
  3486. $as_echo_n 0123456789 >"conftest.in"
  3487. while :
  3488. do
  3489. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3490. mv "conftest.tmp" "conftest.in"
  3491. cp "conftest.in" "conftest.nl"
  3492. $as_echo 'FGREP' >> "conftest.nl"
  3493. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3494. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3495. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3496. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3497. # Best one so far, save it but keep looking for a better one
  3498. ac_cv_path_FGREP="$ac_path_FGREP"
  3499. ac_path_FGREP_max=$ac_count
  3500. fi
  3501. # 10*(2^10) chars as input seems more than enough
  3502. test $ac_count -gt 10 && break
  3503. done
  3504. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3505. esac
  3506. $ac_path_FGREP_found && break 3
  3507. done
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. if test -z "$ac_cv_path_FGREP"; then
  3512. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3513. fi
  3514. else
  3515. ac_cv_path_FGREP=$FGREP
  3516. fi
  3517. fi
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3520. $as_echo "$ac_cv_path_FGREP" >&6; }
  3521. FGREP="$ac_cv_path_FGREP"
  3522. test -z "$GREP" && GREP=grep
  3523. # Check whether --with-gnu-ld was given.
  3524. if test "${with_gnu_ld+set}" = set; then :
  3525. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3526. else
  3527. with_gnu_ld=no
  3528. fi
  3529. ac_prog=ld
  3530. if test "$GCC" = yes; then
  3531. # Check if gcc -print-prog-name=ld gives a path.
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3533. $as_echo_n "checking for ld used by $CC... " >&6; }
  3534. case $host in
  3535. *-*-mingw*)
  3536. # gcc leaves a trailing carriage return which upsets mingw
  3537. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3538. *)
  3539. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3540. esac
  3541. case $ac_prog in
  3542. # Accept absolute paths.
  3543. [\\/]* | ?:[\\/]*)
  3544. re_direlt='/[^/][^/]*/\.\./'
  3545. # Canonicalize the pathname of ld
  3546. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3547. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3548. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3549. done
  3550. test -z "$LD" && LD="$ac_prog"
  3551. ;;
  3552. "")
  3553. # If it fails, then pretend we aren't using GCC.
  3554. ac_prog=ld
  3555. ;;
  3556. *)
  3557. # If it is relative, then search for the first ld in PATH.
  3558. with_gnu_ld=unknown
  3559. ;;
  3560. esac
  3561. elif test "$with_gnu_ld" = yes; then
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3563. $as_echo_n "checking for GNU ld... " >&6; }
  3564. else
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3566. $as_echo_n "checking for non-GNU ld... " >&6; }
  3567. fi
  3568. if ${lt_cv_path_LD+:} false; then :
  3569. $as_echo_n "(cached) " >&6
  3570. else
  3571. if test -z "$LD"; then
  3572. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3573. for ac_dir in $PATH; do
  3574. IFS="$lt_save_ifs"
  3575. test -z "$ac_dir" && ac_dir=.
  3576. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3577. lt_cv_path_LD="$ac_dir/$ac_prog"
  3578. # Check to see if the program is GNU ld. I'd rather use --version,
  3579. # but apparently some variants of GNU ld only accept -v.
  3580. # Break only if it was the GNU/non-GNU ld that we prefer.
  3581. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3582. *GNU* | *'with BFD'*)
  3583. test "$with_gnu_ld" != no && break
  3584. ;;
  3585. *)
  3586. test "$with_gnu_ld" != yes && break
  3587. ;;
  3588. esac
  3589. fi
  3590. done
  3591. IFS="$lt_save_ifs"
  3592. else
  3593. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3594. fi
  3595. fi
  3596. LD="$lt_cv_path_LD"
  3597. if test -n "$LD"; then
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3599. $as_echo "$LD" >&6; }
  3600. else
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3602. $as_echo "no" >&6; }
  3603. fi
  3604. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3606. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3607. if ${lt_cv_prog_gnu_ld+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3611. case `$LD -v 2>&1 </dev/null` in
  3612. *GNU* | *'with BFD'*)
  3613. lt_cv_prog_gnu_ld=yes
  3614. ;;
  3615. *)
  3616. lt_cv_prog_gnu_ld=no
  3617. ;;
  3618. esac
  3619. fi
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3621. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3622. with_gnu_ld=$lt_cv_prog_gnu_ld
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3624. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3625. if ${lt_cv_path_NM+:} false; then :
  3626. $as_echo_n "(cached) " >&6
  3627. else
  3628. if test -n "$NM"; then
  3629. # Let the user override the test.
  3630. lt_cv_path_NM="$NM"
  3631. else
  3632. lt_nm_to_check="${ac_tool_prefix}nm"
  3633. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3634. lt_nm_to_check="$lt_nm_to_check nm"
  3635. fi
  3636. for lt_tmp_nm in $lt_nm_to_check; do
  3637. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3638. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3639. IFS="$lt_save_ifs"
  3640. test -z "$ac_dir" && ac_dir=.
  3641. tmp_nm="$ac_dir/$lt_tmp_nm"
  3642. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3643. # Check to see if the nm accepts a BSD-compat flag.
  3644. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3645. # nm: unknown option "B" ignored
  3646. # Tru64's nm complains that /dev/null is an invalid object file
  3647. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3648. */dev/null* | *'Invalid file or object type'*)
  3649. lt_cv_path_NM="$tmp_nm -B"
  3650. break
  3651. ;;
  3652. *)
  3653. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3654. */dev/null*)
  3655. lt_cv_path_NM="$tmp_nm -p"
  3656. break
  3657. ;;
  3658. *)
  3659. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3660. continue # so that we can try to find one that supports BSD flags
  3661. ;;
  3662. esac
  3663. ;;
  3664. esac
  3665. fi
  3666. done
  3667. IFS="$lt_save_ifs"
  3668. done
  3669. : ${lt_cv_path_NM=no}
  3670. fi
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3673. $as_echo "$lt_cv_path_NM" >&6; }
  3674. if test "$lt_cv_path_NM" != "no"; then
  3675. NM="$lt_cv_path_NM"
  3676. else
  3677. # Didn't find any BSD compatible name lister, look for dumpbin.
  3678. if test -n "$DUMPBIN"; then :
  3679. # Let the user override the test.
  3680. else
  3681. if test -n "$ac_tool_prefix"; then
  3682. for ac_prog in dumpbin "link -dump"
  3683. do
  3684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3687. $as_echo_n "checking for $ac_word... " >&6; }
  3688. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. if test -n "$DUMPBIN"; then
  3692. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3693. else
  3694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3695. for as_dir in $PATH
  3696. do
  3697. IFS=$as_save_IFS
  3698. test -z "$as_dir" && as_dir=.
  3699. for ac_exec_ext in '' $ac_executable_extensions; do
  3700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3701. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3703. break 2
  3704. fi
  3705. done
  3706. done
  3707. IFS=$as_save_IFS
  3708. fi
  3709. fi
  3710. DUMPBIN=$ac_cv_prog_DUMPBIN
  3711. if test -n "$DUMPBIN"; then
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3713. $as_echo "$DUMPBIN" >&6; }
  3714. else
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3716. $as_echo "no" >&6; }
  3717. fi
  3718. test -n "$DUMPBIN" && break
  3719. done
  3720. fi
  3721. if test -z "$DUMPBIN"; then
  3722. ac_ct_DUMPBIN=$DUMPBIN
  3723. for ac_prog in dumpbin "link -dump"
  3724. do
  3725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3726. set dummy $ac_prog; ac_word=$2
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3728. $as_echo_n "checking for $ac_word... " >&6; }
  3729. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if test -n "$ac_ct_DUMPBIN"; then
  3733. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. test -z "$as_dir" && as_dir=.
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3742. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744. break 2
  3745. fi
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. fi
  3750. fi
  3751. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3752. if test -n "$ac_ct_DUMPBIN"; then
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3754. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3755. else
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3757. $as_echo "no" >&6; }
  3758. fi
  3759. test -n "$ac_ct_DUMPBIN" && break
  3760. done
  3761. if test "x$ac_ct_DUMPBIN" = x; then
  3762. DUMPBIN=":"
  3763. else
  3764. case $cross_compiling:$ac_tool_warned in
  3765. yes:)
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3768. ac_tool_warned=yes ;;
  3769. esac
  3770. DUMPBIN=$ac_ct_DUMPBIN
  3771. fi
  3772. fi
  3773. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3774. *COFF*)
  3775. DUMPBIN="$DUMPBIN -symbols"
  3776. ;;
  3777. *)
  3778. DUMPBIN=:
  3779. ;;
  3780. esac
  3781. fi
  3782. if test "$DUMPBIN" != ":"; then
  3783. NM="$DUMPBIN"
  3784. fi
  3785. fi
  3786. test -z "$NM" && NM=nm
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3788. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3789. if ${lt_cv_nm_interface+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. lt_cv_nm_interface="BSD nm"
  3793. echo "int some_variable = 0;" > conftest.$ac_ext
  3794. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3795. (eval "$ac_compile" 2>conftest.err)
  3796. cat conftest.err >&5
  3797. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3798. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3799. cat conftest.err >&5
  3800. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3801. cat conftest.out >&5
  3802. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3803. lt_cv_nm_interface="MS dumpbin"
  3804. fi
  3805. rm -f conftest*
  3806. fi
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3808. $as_echo "$lt_cv_nm_interface" >&6; }
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3810. $as_echo_n "checking whether ln -s works... " >&6; }
  3811. LN_S=$as_ln_s
  3812. if test "$LN_S" = "ln -s"; then
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3814. $as_echo "yes" >&6; }
  3815. else
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3817. $as_echo "no, using $LN_S" >&6; }
  3818. fi
  3819. # find the maximum length of command line arguments
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3821. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3822. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. i=0
  3826. teststring="ABCD"
  3827. case $build_os in
  3828. msdosdjgpp*)
  3829. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3830. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3831. # during glob expansion). Even if it were fixed, the result of this
  3832. # check would be larger than it should be.
  3833. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3834. ;;
  3835. gnu*)
  3836. # Under GNU Hurd, this test is not required because there is
  3837. # no limit to the length of command line arguments.
  3838. # Libtool will interpret -1 as no limit whatsoever
  3839. lt_cv_sys_max_cmd_len=-1;
  3840. ;;
  3841. cygwin* | mingw* | cegcc*)
  3842. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3843. # about 5 minutes as the teststring grows exponentially.
  3844. # Worse, since 9x/ME are not pre-emptively multitasking,
  3845. # you end up with a "frozen" computer, even though with patience
  3846. # the test eventually succeeds (with a max line length of 256k).
  3847. # Instead, let's just punt: use the minimum linelength reported by
  3848. # all of the supported platforms: 8192 (on NT/2K/XP).
  3849. lt_cv_sys_max_cmd_len=8192;
  3850. ;;
  3851. mint*)
  3852. # On MiNT this can take a long time and run out of memory.
  3853. lt_cv_sys_max_cmd_len=8192;
  3854. ;;
  3855. amigaos*)
  3856. # On AmigaOS with pdksh, this test takes hours, literally.
  3857. # So we just punt and use a minimum line length of 8192.
  3858. lt_cv_sys_max_cmd_len=8192;
  3859. ;;
  3860. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3861. # This has been around since 386BSD, at least. Likely further.
  3862. if test -x /sbin/sysctl; then
  3863. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3864. elif test -x /usr/sbin/sysctl; then
  3865. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3866. else
  3867. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3868. fi
  3869. # And add a safety zone
  3870. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3871. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3872. ;;
  3873. interix*)
  3874. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3875. lt_cv_sys_max_cmd_len=196608
  3876. ;;
  3877. osf*)
  3878. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3879. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3880. # nice to cause kernel panics so lets avoid the loop below.
  3881. # First set a reasonable default.
  3882. lt_cv_sys_max_cmd_len=16384
  3883. #
  3884. if test -x /sbin/sysconfig; then
  3885. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3886. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3887. esac
  3888. fi
  3889. ;;
  3890. sco3.2v5*)
  3891. lt_cv_sys_max_cmd_len=102400
  3892. ;;
  3893. sysv5* | sco5v6* | sysv4.2uw2*)
  3894. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3895. if test -n "$kargmax"; then
  3896. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3897. else
  3898. lt_cv_sys_max_cmd_len=32768
  3899. fi
  3900. ;;
  3901. *)
  3902. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3903. if test -n "$lt_cv_sys_max_cmd_len"; then
  3904. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3905. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3906. else
  3907. # Make teststring a little bigger before we do anything with it.
  3908. # a 1K string should be a reasonable start.
  3909. for i in 1 2 3 4 5 6 7 8 ; do
  3910. teststring=$teststring$teststring
  3911. done
  3912. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3913. # If test is not a shell built-in, we'll probably end up computing a
  3914. # maximum length that is only half of the actual maximum length, but
  3915. # we can't tell.
  3916. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  3917. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3918. test $i != 17 # 1/2 MB should be enough
  3919. do
  3920. i=`expr $i + 1`
  3921. teststring=$teststring$teststring
  3922. done
  3923. # Only check the string length outside the loop.
  3924. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3925. teststring=
  3926. # Add a significant safety factor because C++ compilers can tack on
  3927. # massive amounts of additional arguments before passing them to the
  3928. # linker. It appears as though 1/2 is a usable value.
  3929. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3930. fi
  3931. ;;
  3932. esac
  3933. fi
  3934. if test -n $lt_cv_sys_max_cmd_len ; then
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3936. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3937. else
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3939. $as_echo "none" >&6; }
  3940. fi
  3941. max_cmd_len=$lt_cv_sys_max_cmd_len
  3942. : ${CP="cp -f"}
  3943. : ${MV="mv -f"}
  3944. : ${RM="rm -f"}
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3946. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3947. # Try some XSI features
  3948. xsi_shell=no
  3949. ( _lt_dummy="a/b/c"
  3950. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3951. = c,a/b,b/c, \
  3952. && eval 'test $(( 1 + 1 )) -eq 2 \
  3953. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3954. && xsi_shell=yes
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3956. $as_echo "$xsi_shell" >&6; }
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3958. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3959. lt_shell_append=no
  3960. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3961. >/dev/null 2>&1 \
  3962. && lt_shell_append=yes
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3964. $as_echo "$lt_shell_append" >&6; }
  3965. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3966. lt_unset=unset
  3967. else
  3968. lt_unset=false
  3969. fi
  3970. # test EBCDIC or ASCII
  3971. case `echo X|tr X '\101'` in
  3972. A) # ASCII based system
  3973. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3974. lt_SP2NL='tr \040 \012'
  3975. lt_NL2SP='tr \015\012 \040\040'
  3976. ;;
  3977. *) # EBCDIC based system
  3978. lt_SP2NL='tr \100 \n'
  3979. lt_NL2SP='tr \r\n \100\100'
  3980. ;;
  3981. esac
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  3983. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  3984. if ${lt_cv_to_host_file_cmd+:} false; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. case $host in
  3988. *-*-mingw* )
  3989. case $build in
  3990. *-*-mingw* ) # actually msys
  3991. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  3992. ;;
  3993. *-*-cygwin* )
  3994. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  3995. ;;
  3996. * ) # otherwise, assume *nix
  3997. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  3998. ;;
  3999. esac
  4000. ;;
  4001. *-*-cygwin* )
  4002. case $build in
  4003. *-*-mingw* ) # actually msys
  4004. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4005. ;;
  4006. *-*-cygwin* )
  4007. lt_cv_to_host_file_cmd=func_convert_file_noop
  4008. ;;
  4009. * ) # otherwise, assume *nix
  4010. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4011. ;;
  4012. esac
  4013. ;;
  4014. * ) # unhandled hosts (and "normal" native builds)
  4015. lt_cv_to_host_file_cmd=func_convert_file_noop
  4016. ;;
  4017. esac
  4018. fi
  4019. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4021. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4023. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4024. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. #assume ordinary cross tools, or native build.
  4028. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4029. case $host in
  4030. *-*-mingw* )
  4031. case $build in
  4032. *-*-mingw* ) # actually msys
  4033. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4034. ;;
  4035. esac
  4036. ;;
  4037. esac
  4038. fi
  4039. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4041. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4043. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4044. if ${lt_cv_ld_reload_flag+:} false; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. lt_cv_ld_reload_flag='-r'
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4050. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4051. reload_flag=$lt_cv_ld_reload_flag
  4052. case $reload_flag in
  4053. "" | " "*) ;;
  4054. *) reload_flag=" $reload_flag" ;;
  4055. esac
  4056. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4057. case $host_os in
  4058. cygwin* | mingw* | pw32* | cegcc*)
  4059. if test "$GCC" != yes; then
  4060. reload_cmds=false
  4061. fi
  4062. ;;
  4063. darwin*)
  4064. if test "$GCC" = yes; then
  4065. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4066. else
  4067. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4068. fi
  4069. ;;
  4070. esac
  4071. if test -n "$ac_tool_prefix"; then
  4072. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4073. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$OBJDUMP"; then
  4080. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. OBJDUMP=$ac_cv_prog_OBJDUMP
  4099. if test -n "$OBJDUMP"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4101. $as_echo "$OBJDUMP" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. fi
  4107. if test -z "$ac_cv_prog_OBJDUMP"; then
  4108. ac_ct_OBJDUMP=$OBJDUMP
  4109. # Extract the first word of "objdump", so it can be a program name with args.
  4110. set dummy objdump; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$ac_ct_OBJDUMP"; then
  4117. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4118. else
  4119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4120. for as_dir in $PATH
  4121. do
  4122. IFS=$as_save_IFS
  4123. test -z "$as_dir" && as_dir=.
  4124. for ac_exec_ext in '' $ac_executable_extensions; do
  4125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4126. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. fi
  4134. fi
  4135. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4136. if test -n "$ac_ct_OBJDUMP"; then
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4138. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4139. else
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4141. $as_echo "no" >&6; }
  4142. fi
  4143. if test "x$ac_ct_OBJDUMP" = x; then
  4144. OBJDUMP="false"
  4145. else
  4146. case $cross_compiling:$ac_tool_warned in
  4147. yes:)
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4150. ac_tool_warned=yes ;;
  4151. esac
  4152. OBJDUMP=$ac_ct_OBJDUMP
  4153. fi
  4154. else
  4155. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4156. fi
  4157. test -z "$OBJDUMP" && OBJDUMP=objdump
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4159. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4160. if ${lt_cv_deplibs_check_method+:} false; then :
  4161. $as_echo_n "(cached) " >&6
  4162. else
  4163. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4164. lt_cv_file_magic_test_file=
  4165. lt_cv_deplibs_check_method='unknown'
  4166. # Need to set the preceding variable on all platforms that support
  4167. # interlibrary dependencies.
  4168. # 'none' -- dependencies not supported.
  4169. # `unknown' -- same as none, but documents that we really don't know.
  4170. # 'pass_all' -- all dependencies passed with no checks.
  4171. # 'test_compile' -- check by making test program.
  4172. # 'file_magic [[regex]]' -- check by looking for files in library path
  4173. # which responds to the $file_magic_cmd with a given extended regex.
  4174. # If you have `file' or equivalent on your system and you're not sure
  4175. # whether `pass_all' will *always* work, you probably want this one.
  4176. case $host_os in
  4177. aix[4-9]*)
  4178. lt_cv_deplibs_check_method=pass_all
  4179. ;;
  4180. beos*)
  4181. lt_cv_deplibs_check_method=pass_all
  4182. ;;
  4183. bsdi[45]*)
  4184. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4185. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4186. lt_cv_file_magic_test_file=/shlib/libc.so
  4187. ;;
  4188. cygwin*)
  4189. # func_win32_libid is a shell function defined in ltmain.sh
  4190. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4191. lt_cv_file_magic_cmd='func_win32_libid'
  4192. ;;
  4193. mingw* | pw32*)
  4194. # Base MSYS/MinGW do not provide the 'file' command needed by
  4195. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4196. # unless we find 'file', for example because we are cross-compiling.
  4197. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4198. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4199. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4200. lt_cv_file_magic_cmd='func_win32_libid'
  4201. else
  4202. # Keep this pattern in sync with the one in func_win32_libid.
  4203. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4204. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4205. fi
  4206. ;;
  4207. cegcc*)
  4208. # use the weaker test based on 'objdump'. See mingw*.
  4209. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4210. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4211. ;;
  4212. darwin* | rhapsody*)
  4213. lt_cv_deplibs_check_method=pass_all
  4214. ;;
  4215. freebsd* | dragonfly*)
  4216. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4217. case $host_cpu in
  4218. i*86 )
  4219. # Not sure whether the presence of OpenBSD here was a mistake.
  4220. # Let's accept both of them until this is cleared up.
  4221. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4222. lt_cv_file_magic_cmd=/usr/bin/file
  4223. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4224. ;;
  4225. esac
  4226. else
  4227. lt_cv_deplibs_check_method=pass_all
  4228. fi
  4229. ;;
  4230. gnu*)
  4231. lt_cv_deplibs_check_method=pass_all
  4232. ;;
  4233. haiku*)
  4234. lt_cv_deplibs_check_method=pass_all
  4235. ;;
  4236. hpux10.20* | hpux11*)
  4237. lt_cv_file_magic_cmd=/usr/bin/file
  4238. case $host_cpu in
  4239. ia64*)
  4240. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4241. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4242. ;;
  4243. hppa*64*)
  4244. 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]'
  4245. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4246. ;;
  4247. *)
  4248. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4249. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4250. ;;
  4251. esac
  4252. ;;
  4253. interix[3-9]*)
  4254. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4255. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4256. ;;
  4257. irix5* | irix6* | nonstopux*)
  4258. case $LD in
  4259. *-32|*"-32 ") libmagic=32-bit;;
  4260. *-n32|*"-n32 ") libmagic=N32;;
  4261. *-64|*"-64 ") libmagic=64-bit;;
  4262. *) libmagic=never-match;;
  4263. esac
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. # This must be Linux ELF.
  4267. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. netbsd* | netbsdelf*-gnu)
  4271. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4273. else
  4274. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4275. fi
  4276. ;;
  4277. newos6*)
  4278. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4279. lt_cv_file_magic_cmd=/usr/bin/file
  4280. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4281. ;;
  4282. *nto* | *qnx*)
  4283. lt_cv_deplibs_check_method=pass_all
  4284. ;;
  4285. openbsd*)
  4286. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4287. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4288. else
  4289. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4290. fi
  4291. ;;
  4292. osf3* | osf4* | osf5*)
  4293. lt_cv_deplibs_check_method=pass_all
  4294. ;;
  4295. rdos*)
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. solaris*)
  4299. lt_cv_deplibs_check_method=pass_all
  4300. ;;
  4301. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. sysv4 | sysv4.3*)
  4305. case $host_vendor in
  4306. motorola)
  4307. 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]'
  4308. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4309. ;;
  4310. ncr)
  4311. lt_cv_deplibs_check_method=pass_all
  4312. ;;
  4313. sequent)
  4314. lt_cv_file_magic_cmd='/bin/file'
  4315. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4316. ;;
  4317. sni)
  4318. lt_cv_file_magic_cmd='/bin/file'
  4319. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4320. lt_cv_file_magic_test_file=/lib/libc.so
  4321. ;;
  4322. siemens)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. pc)
  4326. lt_cv_deplibs_check_method=pass_all
  4327. ;;
  4328. esac
  4329. ;;
  4330. tpf*)
  4331. lt_cv_deplibs_check_method=pass_all
  4332. ;;
  4333. esac
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4336. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4337. file_magic_glob=
  4338. want_nocaseglob=no
  4339. if test "$build" = "$host"; then
  4340. case $host_os in
  4341. mingw* | pw32*)
  4342. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4343. want_nocaseglob=yes
  4344. else
  4345. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4346. fi
  4347. ;;
  4348. esac
  4349. fi
  4350. file_magic_cmd=$lt_cv_file_magic_cmd
  4351. deplibs_check_method=$lt_cv_deplibs_check_method
  4352. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4353. if test -n "$ac_tool_prefix"; then
  4354. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4355. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4357. $as_echo_n "checking for $ac_word... " >&6; }
  4358. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. if test -n "$DLLTOOL"; then
  4362. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4363. else
  4364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4365. for as_dir in $PATH
  4366. do
  4367. IFS=$as_save_IFS
  4368. test -z "$as_dir" && as_dir=.
  4369. for ac_exec_ext in '' $ac_executable_extensions; do
  4370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4371. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4373. break 2
  4374. fi
  4375. done
  4376. done
  4377. IFS=$as_save_IFS
  4378. fi
  4379. fi
  4380. DLLTOOL=$ac_cv_prog_DLLTOOL
  4381. if test -n "$DLLTOOL"; then
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4383. $as_echo "$DLLTOOL" >&6; }
  4384. else
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4386. $as_echo "no" >&6; }
  4387. fi
  4388. fi
  4389. if test -z "$ac_cv_prog_DLLTOOL"; then
  4390. ac_ct_DLLTOOL=$DLLTOOL
  4391. # Extract the first word of "dlltool", so it can be a program name with args.
  4392. set dummy dlltool; ac_word=$2
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4394. $as_echo_n "checking for $ac_word... " >&6; }
  4395. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. if test -n "$ac_ct_DLLTOOL"; then
  4399. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4400. else
  4401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4402. for as_dir in $PATH
  4403. do
  4404. IFS=$as_save_IFS
  4405. test -z "$as_dir" && as_dir=.
  4406. for ac_exec_ext in '' $ac_executable_extensions; do
  4407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4408. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4410. break 2
  4411. fi
  4412. done
  4413. done
  4414. IFS=$as_save_IFS
  4415. fi
  4416. fi
  4417. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4418. if test -n "$ac_ct_DLLTOOL"; then
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4420. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4421. else
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4423. $as_echo "no" >&6; }
  4424. fi
  4425. if test "x$ac_ct_DLLTOOL" = x; then
  4426. DLLTOOL="false"
  4427. else
  4428. case $cross_compiling:$ac_tool_warned in
  4429. yes:)
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4432. ac_tool_warned=yes ;;
  4433. esac
  4434. DLLTOOL=$ac_ct_DLLTOOL
  4435. fi
  4436. else
  4437. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4438. fi
  4439. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4441. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4442. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4446. case $host_os in
  4447. cygwin* | mingw* | pw32* | cegcc*)
  4448. # two different shell functions defined in ltmain.sh
  4449. # decide which to use based on capabilities of $DLLTOOL
  4450. case `$DLLTOOL --help 2>&1` in
  4451. *--identify-strict*)
  4452. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4453. ;;
  4454. *)
  4455. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4456. ;;
  4457. esac
  4458. ;;
  4459. *)
  4460. # fallback: assume linklib IS sharedlib
  4461. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4462. ;;
  4463. esac
  4464. fi
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4466. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4467. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4468. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4469. if test -n "$ac_tool_prefix"; then
  4470. for ac_prog in ar
  4471. do
  4472. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4473. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4475. $as_echo_n "checking for $ac_word... " >&6; }
  4476. if ${ac_cv_prog_AR+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -n "$AR"; then
  4480. ac_cv_prog_AR="$AR" # Let the user override the test.
  4481. else
  4482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4483. for as_dir in $PATH
  4484. do
  4485. IFS=$as_save_IFS
  4486. test -z "$as_dir" && as_dir=.
  4487. for ac_exec_ext in '' $ac_executable_extensions; do
  4488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4489. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4491. break 2
  4492. fi
  4493. done
  4494. done
  4495. IFS=$as_save_IFS
  4496. fi
  4497. fi
  4498. AR=$ac_cv_prog_AR
  4499. if test -n "$AR"; then
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4501. $as_echo "$AR" >&6; }
  4502. else
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4504. $as_echo "no" >&6; }
  4505. fi
  4506. test -n "$AR" && break
  4507. done
  4508. fi
  4509. if test -z "$AR"; then
  4510. ac_ct_AR=$AR
  4511. for ac_prog in ar
  4512. do
  4513. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4514. set dummy $ac_prog; ac_word=$2
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4516. $as_echo_n "checking for $ac_word... " >&6; }
  4517. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. if test -n "$ac_ct_AR"; then
  4521. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4522. else
  4523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4524. for as_dir in $PATH
  4525. do
  4526. IFS=$as_save_IFS
  4527. test -z "$as_dir" && as_dir=.
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4530. ac_cv_prog_ac_ct_AR="$ac_prog"
  4531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4532. break 2
  4533. fi
  4534. done
  4535. done
  4536. IFS=$as_save_IFS
  4537. fi
  4538. fi
  4539. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4540. if test -n "$ac_ct_AR"; then
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4542. $as_echo "$ac_ct_AR" >&6; }
  4543. else
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4545. $as_echo "no" >&6; }
  4546. fi
  4547. test -n "$ac_ct_AR" && break
  4548. done
  4549. if test "x$ac_ct_AR" = x; then
  4550. AR="false"
  4551. else
  4552. case $cross_compiling:$ac_tool_warned in
  4553. yes:)
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4555. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4556. ac_tool_warned=yes ;;
  4557. esac
  4558. AR=$ac_ct_AR
  4559. fi
  4560. fi
  4561. : ${AR=ar}
  4562. : ${AR_FLAGS=cru}
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4564. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4565. if ${lt_cv_ar_at_file+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. lt_cv_ar_at_file=no
  4569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4570. /* end confdefs.h. */
  4571. int
  4572. main ()
  4573. {
  4574. ;
  4575. return 0;
  4576. }
  4577. _ACEOF
  4578. if ac_fn_c_try_compile "$LINENO"; then :
  4579. echo conftest.$ac_objext > conftest.lst
  4580. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4581. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4582. (eval $lt_ar_try) 2>&5
  4583. ac_status=$?
  4584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4585. test $ac_status = 0; }
  4586. if test "$ac_status" -eq 0; then
  4587. # Ensure the archiver fails upon bogus file names.
  4588. rm -f conftest.$ac_objext libconftest.a
  4589. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4590. (eval $lt_ar_try) 2>&5
  4591. ac_status=$?
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4593. test $ac_status = 0; }
  4594. if test "$ac_status" -ne 0; then
  4595. lt_cv_ar_at_file=@
  4596. fi
  4597. fi
  4598. rm -f conftest.* libconftest.a
  4599. fi
  4600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4601. fi
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4603. $as_echo "$lt_cv_ar_at_file" >&6; }
  4604. if test "x$lt_cv_ar_at_file" = xno; then
  4605. archiver_list_spec=
  4606. else
  4607. archiver_list_spec=$lt_cv_ar_at_file
  4608. fi
  4609. if test -n "$ac_tool_prefix"; then
  4610. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4611. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4613. $as_echo_n "checking for $ac_word... " >&6; }
  4614. if ${ac_cv_prog_STRIP+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. if test -n "$STRIP"; then
  4618. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4627. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. STRIP=$ac_cv_prog_STRIP
  4637. if test -n "$STRIP"; then
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4639. $as_echo "$STRIP" >&6; }
  4640. else
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4642. $as_echo "no" >&6; }
  4643. fi
  4644. fi
  4645. if test -z "$ac_cv_prog_STRIP"; then
  4646. ac_ct_STRIP=$STRIP
  4647. # Extract the first word of "strip", so it can be a program name with args.
  4648. set dummy strip; ac_word=$2
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4650. $as_echo_n "checking for $ac_word... " >&6; }
  4651. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. if test -n "$ac_ct_STRIP"; then
  4655. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4664. ac_cv_prog_ac_ct_STRIP="strip"
  4665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4674. if test -n "$ac_ct_STRIP"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4676. $as_echo "$ac_ct_STRIP" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. fi
  4681. if test "x$ac_ct_STRIP" = x; then
  4682. STRIP=":"
  4683. else
  4684. case $cross_compiling:$ac_tool_warned in
  4685. yes:)
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4688. ac_tool_warned=yes ;;
  4689. esac
  4690. STRIP=$ac_ct_STRIP
  4691. fi
  4692. else
  4693. STRIP="$ac_cv_prog_STRIP"
  4694. fi
  4695. test -z "$STRIP" && STRIP=:
  4696. if test -n "$ac_tool_prefix"; then
  4697. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4698. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4700. $as_echo_n "checking for $ac_word... " >&6; }
  4701. if ${ac_cv_prog_RANLIB+:} false; then :
  4702. $as_echo_n "(cached) " >&6
  4703. else
  4704. if test -n "$RANLIB"; then
  4705. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4706. else
  4707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4708. for as_dir in $PATH
  4709. do
  4710. IFS=$as_save_IFS
  4711. test -z "$as_dir" && as_dir=.
  4712. for ac_exec_ext in '' $ac_executable_extensions; do
  4713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4714. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4716. break 2
  4717. fi
  4718. done
  4719. done
  4720. IFS=$as_save_IFS
  4721. fi
  4722. fi
  4723. RANLIB=$ac_cv_prog_RANLIB
  4724. if test -n "$RANLIB"; then
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4726. $as_echo "$RANLIB" >&6; }
  4727. else
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4729. $as_echo "no" >&6; }
  4730. fi
  4731. fi
  4732. if test -z "$ac_cv_prog_RANLIB"; then
  4733. ac_ct_RANLIB=$RANLIB
  4734. # Extract the first word of "ranlib", so it can be a program name with args.
  4735. set dummy ranlib; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$ac_ct_RANLIB"; then
  4742. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4751. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4761. if test -n "$ac_ct_RANLIB"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4763. $as_echo "$ac_ct_RANLIB" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. if test "x$ac_ct_RANLIB" = x; then
  4769. RANLIB=":"
  4770. else
  4771. case $cross_compiling:$ac_tool_warned in
  4772. yes:)
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4775. ac_tool_warned=yes ;;
  4776. esac
  4777. RANLIB=$ac_ct_RANLIB
  4778. fi
  4779. else
  4780. RANLIB="$ac_cv_prog_RANLIB"
  4781. fi
  4782. test -z "$RANLIB" && RANLIB=:
  4783. # Determine commands to create old-style static archives.
  4784. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4785. old_postinstall_cmds='chmod 644 $oldlib'
  4786. old_postuninstall_cmds=
  4787. if test -n "$RANLIB"; then
  4788. case $host_os in
  4789. openbsd*)
  4790. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4791. ;;
  4792. *)
  4793. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4794. ;;
  4795. esac
  4796. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4797. fi
  4798. case $host_os in
  4799. darwin*)
  4800. lock_old_archive_extraction=yes ;;
  4801. *)
  4802. lock_old_archive_extraction=no ;;
  4803. esac
  4804. for ac_prog in gawk mawk nawk awk
  4805. do
  4806. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4807. set dummy $ac_prog; ac_word=$2
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4809. $as_echo_n "checking for $ac_word... " >&6; }
  4810. if ${ac_cv_prog_AWK+:} false; then :
  4811. $as_echo_n "(cached) " >&6
  4812. else
  4813. if test -n "$AWK"; then
  4814. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4815. else
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH
  4818. do
  4819. IFS=$as_save_IFS
  4820. test -z "$as_dir" && as_dir=.
  4821. for ac_exec_ext in '' $ac_executable_extensions; do
  4822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4823. ac_cv_prog_AWK="$ac_prog"
  4824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4825. break 2
  4826. fi
  4827. done
  4828. done
  4829. IFS=$as_save_IFS
  4830. fi
  4831. fi
  4832. AWK=$ac_cv_prog_AWK
  4833. if test -n "$AWK"; then
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4835. $as_echo "$AWK" >&6; }
  4836. else
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4838. $as_echo "no" >&6; }
  4839. fi
  4840. test -n "$AWK" && break
  4841. done
  4842. # If no C compiler was specified, use CC.
  4843. LTCC=${LTCC-"$CC"}
  4844. # If no C compiler flags were specified, use CFLAGS.
  4845. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4846. # Allow CC to be a program name with arguments.
  4847. compiler=$CC
  4848. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4850. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4851. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. # These are sane defaults that work on at least a few old systems.
  4855. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4856. # Character class describing NM global symbol codes.
  4857. symcode='[BCDEGRST]'
  4858. # Regexp to match symbols that can be accessed directly from C.
  4859. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4860. # Define system-specific variables.
  4861. case $host_os in
  4862. aix*)
  4863. symcode='[BCDT]'
  4864. ;;
  4865. cygwin* | mingw* | pw32* | cegcc*)
  4866. symcode='[ABCDGISTW]'
  4867. ;;
  4868. hpux*)
  4869. if test "$host_cpu" = ia64; then
  4870. symcode='[ABCDEGRST]'
  4871. fi
  4872. ;;
  4873. irix* | nonstopux*)
  4874. symcode='[BCDEGRST]'
  4875. ;;
  4876. osf*)
  4877. symcode='[BCDEGQRST]'
  4878. ;;
  4879. solaris*)
  4880. symcode='[BDRT]'
  4881. ;;
  4882. sco3.2v5*)
  4883. symcode='[DT]'
  4884. ;;
  4885. sysv4.2uw2*)
  4886. symcode='[DT]'
  4887. ;;
  4888. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4889. symcode='[ABDT]'
  4890. ;;
  4891. sysv4)
  4892. symcode='[DFNSTU]'
  4893. ;;
  4894. esac
  4895. # If we're using GNU nm, then use its standard symbol codes.
  4896. case `$NM -V 2>&1` in
  4897. *GNU* | *'with BFD'*)
  4898. symcode='[ABCDGIRSTW]' ;;
  4899. esac
  4900. # Transform an extracted symbol line into a proper C declaration.
  4901. # Some systems (esp. on ia64) link data and code symbols differently,
  4902. # so use this general approach.
  4903. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4904. # Transform an extracted symbol line into symbol name and symbol address
  4905. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4906. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4907. # Handle CRLF in mingw tool chain
  4908. opt_cr=
  4909. case $build_os in
  4910. mingw*)
  4911. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4912. ;;
  4913. esac
  4914. # Try without a prefix underscore, then with it.
  4915. for ac_symprfx in "" "_"; do
  4916. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4917. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4918. # Write the raw and C identifiers.
  4919. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4920. # Fake it for dumpbin and say T for any non-static function
  4921. # and D for any global variable.
  4922. # Also find C++ and __fastcall symbols from MSVC++,
  4923. # which start with @ or ?.
  4924. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4925. " {last_section=section; section=\$ 3};"\
  4926. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4927. " \$ 0!~/External *\|/{next};"\
  4928. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4929. " {if(hide[section]) next};"\
  4930. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4931. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4932. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4933. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4934. " ' prfx=^$ac_symprfx"
  4935. else
  4936. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4937. fi
  4938. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4939. # Check to see that the pipe works correctly.
  4940. pipe_works=no
  4941. rm -f conftest*
  4942. cat > conftest.$ac_ext <<_LT_EOF
  4943. #ifdef __cplusplus
  4944. extern "C" {
  4945. #endif
  4946. char nm_test_var;
  4947. void nm_test_func(void);
  4948. void nm_test_func(void){}
  4949. #ifdef __cplusplus
  4950. }
  4951. #endif
  4952. int main(){nm_test_var='a';nm_test_func();return(0);}
  4953. _LT_EOF
  4954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4955. (eval $ac_compile) 2>&5
  4956. ac_status=$?
  4957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4958. test $ac_status = 0; }; then
  4959. # Now try to grab the symbols.
  4960. nlist=conftest.nm
  4961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4962. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4963. ac_status=$?
  4964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4965. test $ac_status = 0; } && test -s "$nlist"; then
  4966. # Try sorting and uniquifying the output.
  4967. if sort "$nlist" | uniq > "$nlist"T; then
  4968. mv -f "$nlist"T "$nlist"
  4969. else
  4970. rm -f "$nlist"T
  4971. fi
  4972. # Make sure that we snagged all the symbols we need.
  4973. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4974. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4975. cat <<_LT_EOF > conftest.$ac_ext
  4976. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4977. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  4978. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  4979. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4980. # define LT_DLSYM_CONST
  4981. #elif defined(__osf__)
  4982. /* This system does not cope well with relocations in const data. */
  4983. # define LT_DLSYM_CONST
  4984. #else
  4985. # define LT_DLSYM_CONST const
  4986. #endif
  4987. #ifdef __cplusplus
  4988. extern "C" {
  4989. #endif
  4990. _LT_EOF
  4991. # Now generate the symbol file.
  4992. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4993. cat <<_LT_EOF >> conftest.$ac_ext
  4994. /* The mapping between symbol names and symbols. */
  4995. LT_DLSYM_CONST struct {
  4996. const char *name;
  4997. void *address;
  4998. }
  4999. lt__PROGRAM__LTX_preloaded_symbols[] =
  5000. {
  5001. { "@PROGRAM@", (void *) 0 },
  5002. _LT_EOF
  5003. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5004. cat <<\_LT_EOF >> conftest.$ac_ext
  5005. {0, (void *) 0}
  5006. };
  5007. /* This works around a problem in FreeBSD linker */
  5008. #ifdef FREEBSD_WORKAROUND
  5009. static const void *lt_preloaded_setup() {
  5010. return lt__PROGRAM__LTX_preloaded_symbols;
  5011. }
  5012. #endif
  5013. #ifdef __cplusplus
  5014. }
  5015. #endif
  5016. _LT_EOF
  5017. # Now try linking the two files.
  5018. mv conftest.$ac_objext conftstm.$ac_objext
  5019. lt_globsym_save_LIBS=$LIBS
  5020. lt_globsym_save_CFLAGS=$CFLAGS
  5021. LIBS="conftstm.$ac_objext"
  5022. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5024. (eval $ac_link) 2>&5
  5025. ac_status=$?
  5026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5027. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5028. pipe_works=yes
  5029. fi
  5030. LIBS=$lt_globsym_save_LIBS
  5031. CFLAGS=$lt_globsym_save_CFLAGS
  5032. else
  5033. echo "cannot find nm_test_func in $nlist" >&5
  5034. fi
  5035. else
  5036. echo "cannot find nm_test_var in $nlist" >&5
  5037. fi
  5038. else
  5039. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5040. fi
  5041. else
  5042. echo "$progname: failed program was:" >&5
  5043. cat conftest.$ac_ext >&5
  5044. fi
  5045. rm -rf conftest* conftst*
  5046. # Do not use the global_symbol_pipe unless it works.
  5047. if test "$pipe_works" = yes; then
  5048. break
  5049. else
  5050. lt_cv_sys_global_symbol_pipe=
  5051. fi
  5052. done
  5053. fi
  5054. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5055. lt_cv_sys_global_symbol_to_cdecl=
  5056. fi
  5057. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5059. $as_echo "failed" >&6; }
  5060. else
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5062. $as_echo "ok" >&6; }
  5063. fi
  5064. # Response file support.
  5065. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5066. nm_file_list_spec='@'
  5067. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5068. nm_file_list_spec='@'
  5069. fi
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5071. $as_echo_n "checking for sysroot... " >&6; }
  5072. # Check whether --with-sysroot was given.
  5073. if test "${with_sysroot+set}" = set; then :
  5074. withval=$with_sysroot;
  5075. else
  5076. with_sysroot=no
  5077. fi
  5078. lt_sysroot=
  5079. case ${with_sysroot} in #(
  5080. yes)
  5081. if test "$GCC" = yes; then
  5082. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5083. fi
  5084. ;; #(
  5085. /*)
  5086. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5087. ;; #(
  5088. no|'')
  5089. ;; #(
  5090. *)
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5092. $as_echo "${with_sysroot}" >&6; }
  5093. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5094. ;;
  5095. esac
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5097. $as_echo "${lt_sysroot:-no}" >&6; }
  5098. # Check whether --enable-libtool-lock was given.
  5099. if test "${enable_libtool_lock+set}" = set; then :
  5100. enableval=$enable_libtool_lock;
  5101. fi
  5102. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5103. # Some flags need to be propagated to the compiler or linker for good
  5104. # libtool support.
  5105. case $host in
  5106. ia64-*-hpux*)
  5107. # Find out which ABI we are using.
  5108. echo 'int i;' > conftest.$ac_ext
  5109. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5110. (eval $ac_compile) 2>&5
  5111. ac_status=$?
  5112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5113. test $ac_status = 0; }; then
  5114. case `/usr/bin/file conftest.$ac_objext` in
  5115. *ELF-32*)
  5116. HPUX_IA64_MODE="32"
  5117. ;;
  5118. *ELF-64*)
  5119. HPUX_IA64_MODE="64"
  5120. ;;
  5121. esac
  5122. fi
  5123. rm -rf conftest*
  5124. ;;
  5125. *-*-irix6*)
  5126. # Find out which ABI we are using.
  5127. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5128. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5129. (eval $ac_compile) 2>&5
  5130. ac_status=$?
  5131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5132. test $ac_status = 0; }; then
  5133. if test "$lt_cv_prog_gnu_ld" = yes; then
  5134. case `/usr/bin/file conftest.$ac_objext` in
  5135. *32-bit*)
  5136. LD="${LD-ld} -melf32bsmip"
  5137. ;;
  5138. *N32*)
  5139. LD="${LD-ld} -melf32bmipn32"
  5140. ;;
  5141. *64-bit*)
  5142. LD="${LD-ld} -melf64bmip"
  5143. ;;
  5144. esac
  5145. else
  5146. case `/usr/bin/file conftest.$ac_objext` in
  5147. *32-bit*)
  5148. LD="${LD-ld} -32"
  5149. ;;
  5150. *N32*)
  5151. LD="${LD-ld} -n32"
  5152. ;;
  5153. *64-bit*)
  5154. LD="${LD-ld} -64"
  5155. ;;
  5156. esac
  5157. fi
  5158. fi
  5159. rm -rf conftest*
  5160. ;;
  5161. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5162. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5163. # Find out which ABI we are using.
  5164. echo 'int i;' > conftest.$ac_ext
  5165. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5166. (eval $ac_compile) 2>&5
  5167. ac_status=$?
  5168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5169. test $ac_status = 0; }; then
  5170. case `/usr/bin/file conftest.o` in
  5171. *32-bit*)
  5172. case $host in
  5173. x86_64-*kfreebsd*-gnu)
  5174. LD="${LD-ld} -m elf_i386_fbsd"
  5175. ;;
  5176. x86_64-*linux*)
  5177. LD="${LD-ld} -m elf_i386"
  5178. ;;
  5179. ppc64-*linux*|powerpc64-*linux*)
  5180. LD="${LD-ld} -m elf32ppclinux"
  5181. ;;
  5182. s390x-*linux*)
  5183. LD="${LD-ld} -m elf_s390"
  5184. ;;
  5185. sparc64-*linux*)
  5186. LD="${LD-ld} -m elf32_sparc"
  5187. ;;
  5188. esac
  5189. ;;
  5190. *64-bit*)
  5191. case $host in
  5192. x86_64-*kfreebsd*-gnu)
  5193. LD="${LD-ld} -m elf_x86_64_fbsd"
  5194. ;;
  5195. x86_64-*linux*)
  5196. LD="${LD-ld} -m elf_x86_64"
  5197. ;;
  5198. ppc*-*linux*|powerpc*-*linux*)
  5199. LD="${LD-ld} -m elf64ppc"
  5200. ;;
  5201. s390*-*linux*|s390*-*tpf*)
  5202. LD="${LD-ld} -m elf64_s390"
  5203. ;;
  5204. sparc*-*linux*)
  5205. LD="${LD-ld} -m elf64_sparc"
  5206. ;;
  5207. esac
  5208. ;;
  5209. esac
  5210. fi
  5211. rm -rf conftest*
  5212. ;;
  5213. *-*-sco3.2v5*)
  5214. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5215. SAVE_CFLAGS="$CFLAGS"
  5216. CFLAGS="$CFLAGS -belf"
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5218. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5219. if ${lt_cv_cc_needs_belf+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. ac_ext=c
  5223. ac_cpp='$CPP $CPPFLAGS'
  5224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5228. /* end confdefs.h. */
  5229. int
  5230. main ()
  5231. {
  5232. ;
  5233. return 0;
  5234. }
  5235. _ACEOF
  5236. if ac_fn_c_try_link "$LINENO"; then :
  5237. lt_cv_cc_needs_belf=yes
  5238. else
  5239. lt_cv_cc_needs_belf=no
  5240. fi
  5241. rm -f core conftest.err conftest.$ac_objext \
  5242. conftest$ac_exeext conftest.$ac_ext
  5243. ac_ext=c
  5244. ac_cpp='$CPP $CPPFLAGS'
  5245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5248. fi
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5250. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5251. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5252. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5253. CFLAGS="$SAVE_CFLAGS"
  5254. fi
  5255. ;;
  5256. sparc*-*solaris*)
  5257. # Find out which ABI we are using.
  5258. echo 'int i;' > conftest.$ac_ext
  5259. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5260. (eval $ac_compile) 2>&5
  5261. ac_status=$?
  5262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5263. test $ac_status = 0; }; then
  5264. case `/usr/bin/file conftest.o` in
  5265. *64-bit*)
  5266. case $lt_cv_prog_gnu_ld in
  5267. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5268. *)
  5269. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5270. LD="${LD-ld} -64"
  5271. fi
  5272. ;;
  5273. esac
  5274. ;;
  5275. esac
  5276. fi
  5277. rm -rf conftest*
  5278. ;;
  5279. esac
  5280. need_locks="$enable_libtool_lock"
  5281. if test -n "$ac_tool_prefix"; then
  5282. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5283. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5285. $as_echo_n "checking for $ac_word... " >&6; }
  5286. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5287. $as_echo_n "(cached) " >&6
  5288. else
  5289. if test -n "$MANIFEST_TOOL"; then
  5290. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5291. else
  5292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5293. for as_dir in $PATH
  5294. do
  5295. IFS=$as_save_IFS
  5296. test -z "$as_dir" && as_dir=.
  5297. for ac_exec_ext in '' $ac_executable_extensions; do
  5298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5299. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5301. break 2
  5302. fi
  5303. done
  5304. done
  5305. IFS=$as_save_IFS
  5306. fi
  5307. fi
  5308. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5309. if test -n "$MANIFEST_TOOL"; then
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5311. $as_echo "$MANIFEST_TOOL" >&6; }
  5312. else
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5314. $as_echo "no" >&6; }
  5315. fi
  5316. fi
  5317. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5318. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5319. # Extract the first word of "mt", so it can be a program name with args.
  5320. set dummy mt; ac_word=$2
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5322. $as_echo_n "checking for $ac_word... " >&6; }
  5323. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5324. $as_echo_n "(cached) " >&6
  5325. else
  5326. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5327. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5328. else
  5329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5330. for as_dir in $PATH
  5331. do
  5332. IFS=$as_save_IFS
  5333. test -z "$as_dir" && as_dir=.
  5334. for ac_exec_ext in '' $ac_executable_extensions; do
  5335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5336. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5338. break 2
  5339. fi
  5340. done
  5341. done
  5342. IFS=$as_save_IFS
  5343. fi
  5344. fi
  5345. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5346. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5348. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5349. else
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5351. $as_echo "no" >&6; }
  5352. fi
  5353. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5354. MANIFEST_TOOL=":"
  5355. else
  5356. case $cross_compiling:$ac_tool_warned in
  5357. yes:)
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5360. ac_tool_warned=yes ;;
  5361. esac
  5362. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5363. fi
  5364. else
  5365. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5366. fi
  5367. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5369. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5370. if ${lt_cv_path_mainfest_tool+:} false; then :
  5371. $as_echo_n "(cached) " >&6
  5372. else
  5373. lt_cv_path_mainfest_tool=no
  5374. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5375. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5376. cat conftest.err >&5
  5377. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5378. lt_cv_path_mainfest_tool=yes
  5379. fi
  5380. rm -f conftest*
  5381. fi
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5383. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5384. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5385. MANIFEST_TOOL=:
  5386. fi
  5387. case $host_os in
  5388. rhapsody* | darwin*)
  5389. if test -n "$ac_tool_prefix"; then
  5390. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5391. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5393. $as_echo_n "checking for $ac_word... " >&6; }
  5394. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. if test -n "$DSYMUTIL"; then
  5398. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5399. else
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH
  5402. do
  5403. IFS=$as_save_IFS
  5404. test -z "$as_dir" && as_dir=.
  5405. for ac_exec_ext in '' $ac_executable_extensions; do
  5406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5407. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5409. break 2
  5410. fi
  5411. done
  5412. done
  5413. IFS=$as_save_IFS
  5414. fi
  5415. fi
  5416. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5417. if test -n "$DSYMUTIL"; then
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5419. $as_echo "$DSYMUTIL" >&6; }
  5420. else
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5422. $as_echo "no" >&6; }
  5423. fi
  5424. fi
  5425. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5426. ac_ct_DSYMUTIL=$DSYMUTIL
  5427. # Extract the first word of "dsymutil", so it can be a program name with args.
  5428. set dummy dsymutil; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. if test -n "$ac_ct_DSYMUTIL"; then
  5435. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5436. else
  5437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5438. for as_dir in $PATH
  5439. do
  5440. IFS=$as_save_IFS
  5441. test -z "$as_dir" && as_dir=.
  5442. for ac_exec_ext in '' $ac_executable_extensions; do
  5443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5444. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5446. break 2
  5447. fi
  5448. done
  5449. done
  5450. IFS=$as_save_IFS
  5451. fi
  5452. fi
  5453. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5454. if test -n "$ac_ct_DSYMUTIL"; then
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5456. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5457. else
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5459. $as_echo "no" >&6; }
  5460. fi
  5461. if test "x$ac_ct_DSYMUTIL" = x; then
  5462. DSYMUTIL=":"
  5463. else
  5464. case $cross_compiling:$ac_tool_warned in
  5465. yes:)
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5468. ac_tool_warned=yes ;;
  5469. esac
  5470. DSYMUTIL=$ac_ct_DSYMUTIL
  5471. fi
  5472. else
  5473. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5474. fi
  5475. if test -n "$ac_tool_prefix"; then
  5476. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5477. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5479. $as_echo_n "checking for $ac_word... " >&6; }
  5480. if ${ac_cv_prog_NMEDIT+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. if test -n "$NMEDIT"; then
  5484. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5485. else
  5486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5487. for as_dir in $PATH
  5488. do
  5489. IFS=$as_save_IFS
  5490. test -z "$as_dir" && as_dir=.
  5491. for ac_exec_ext in '' $ac_executable_extensions; do
  5492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5493. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5495. break 2
  5496. fi
  5497. done
  5498. done
  5499. IFS=$as_save_IFS
  5500. fi
  5501. fi
  5502. NMEDIT=$ac_cv_prog_NMEDIT
  5503. if test -n "$NMEDIT"; then
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5505. $as_echo "$NMEDIT" >&6; }
  5506. else
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5508. $as_echo "no" >&6; }
  5509. fi
  5510. fi
  5511. if test -z "$ac_cv_prog_NMEDIT"; then
  5512. ac_ct_NMEDIT=$NMEDIT
  5513. # Extract the first word of "nmedit", so it can be a program name with args.
  5514. set dummy nmedit; ac_word=$2
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5516. $as_echo_n "checking for $ac_word... " >&6; }
  5517. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5518. $as_echo_n "(cached) " >&6
  5519. else
  5520. if test -n "$ac_ct_NMEDIT"; then
  5521. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5522. else
  5523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5524. for as_dir in $PATH
  5525. do
  5526. IFS=$as_save_IFS
  5527. test -z "$as_dir" && as_dir=.
  5528. for ac_exec_ext in '' $ac_executable_extensions; do
  5529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5530. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5532. break 2
  5533. fi
  5534. done
  5535. done
  5536. IFS=$as_save_IFS
  5537. fi
  5538. fi
  5539. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5540. if test -n "$ac_ct_NMEDIT"; then
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5542. $as_echo "$ac_ct_NMEDIT" >&6; }
  5543. else
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5545. $as_echo "no" >&6; }
  5546. fi
  5547. if test "x$ac_ct_NMEDIT" = x; then
  5548. NMEDIT=":"
  5549. else
  5550. case $cross_compiling:$ac_tool_warned in
  5551. yes:)
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5553. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5554. ac_tool_warned=yes ;;
  5555. esac
  5556. NMEDIT=$ac_ct_NMEDIT
  5557. fi
  5558. else
  5559. NMEDIT="$ac_cv_prog_NMEDIT"
  5560. fi
  5561. if test -n "$ac_tool_prefix"; then
  5562. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5563. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5565. $as_echo_n "checking for $ac_word... " >&6; }
  5566. if ${ac_cv_prog_LIPO+:} false; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. if test -n "$LIPO"; then
  5570. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5571. else
  5572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5573. for as_dir in $PATH
  5574. do
  5575. IFS=$as_save_IFS
  5576. test -z "$as_dir" && as_dir=.
  5577. for ac_exec_ext in '' $ac_executable_extensions; do
  5578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5579. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5581. break 2
  5582. fi
  5583. done
  5584. done
  5585. IFS=$as_save_IFS
  5586. fi
  5587. fi
  5588. LIPO=$ac_cv_prog_LIPO
  5589. if test -n "$LIPO"; then
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5591. $as_echo "$LIPO" >&6; }
  5592. else
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5594. $as_echo "no" >&6; }
  5595. fi
  5596. fi
  5597. if test -z "$ac_cv_prog_LIPO"; then
  5598. ac_ct_LIPO=$LIPO
  5599. # Extract the first word of "lipo", so it can be a program name with args.
  5600. set dummy lipo; ac_word=$2
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5602. $as_echo_n "checking for $ac_word... " >&6; }
  5603. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. if test -n "$ac_ct_LIPO"; then
  5607. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. test -z "$as_dir" && as_dir=.
  5614. for ac_exec_ext in '' $ac_executable_extensions; do
  5615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5616. ac_cv_prog_ac_ct_LIPO="lipo"
  5617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5618. break 2
  5619. fi
  5620. done
  5621. done
  5622. IFS=$as_save_IFS
  5623. fi
  5624. fi
  5625. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5626. if test -n "$ac_ct_LIPO"; then
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5628. $as_echo "$ac_ct_LIPO" >&6; }
  5629. else
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5631. $as_echo "no" >&6; }
  5632. fi
  5633. if test "x$ac_ct_LIPO" = x; then
  5634. LIPO=":"
  5635. else
  5636. case $cross_compiling:$ac_tool_warned in
  5637. yes:)
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5640. ac_tool_warned=yes ;;
  5641. esac
  5642. LIPO=$ac_ct_LIPO
  5643. fi
  5644. else
  5645. LIPO="$ac_cv_prog_LIPO"
  5646. fi
  5647. if test -n "$ac_tool_prefix"; then
  5648. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5649. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5651. $as_echo_n "checking for $ac_word... " >&6; }
  5652. if ${ac_cv_prog_OTOOL+:} false; then :
  5653. $as_echo_n "(cached) " >&6
  5654. else
  5655. if test -n "$OTOOL"; then
  5656. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5657. else
  5658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5659. for as_dir in $PATH
  5660. do
  5661. IFS=$as_save_IFS
  5662. test -z "$as_dir" && as_dir=.
  5663. for ac_exec_ext in '' $ac_executable_extensions; do
  5664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5665. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5667. break 2
  5668. fi
  5669. done
  5670. done
  5671. IFS=$as_save_IFS
  5672. fi
  5673. fi
  5674. OTOOL=$ac_cv_prog_OTOOL
  5675. if test -n "$OTOOL"; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5677. $as_echo "$OTOOL" >&6; }
  5678. else
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5680. $as_echo "no" >&6; }
  5681. fi
  5682. fi
  5683. if test -z "$ac_cv_prog_OTOOL"; then
  5684. ac_ct_OTOOL=$OTOOL
  5685. # Extract the first word of "otool", so it can be a program name with args.
  5686. set dummy otool; ac_word=$2
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5688. $as_echo_n "checking for $ac_word... " >&6; }
  5689. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5690. $as_echo_n "(cached) " >&6
  5691. else
  5692. if test -n "$ac_ct_OTOOL"; then
  5693. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5694. else
  5695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5696. for as_dir in $PATH
  5697. do
  5698. IFS=$as_save_IFS
  5699. test -z "$as_dir" && as_dir=.
  5700. for ac_exec_ext in '' $ac_executable_extensions; do
  5701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5702. ac_cv_prog_ac_ct_OTOOL="otool"
  5703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5704. break 2
  5705. fi
  5706. done
  5707. done
  5708. IFS=$as_save_IFS
  5709. fi
  5710. fi
  5711. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5712. if test -n "$ac_ct_OTOOL"; then
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5714. $as_echo "$ac_ct_OTOOL" >&6; }
  5715. else
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5717. $as_echo "no" >&6; }
  5718. fi
  5719. if test "x$ac_ct_OTOOL" = x; then
  5720. OTOOL=":"
  5721. else
  5722. case $cross_compiling:$ac_tool_warned in
  5723. yes:)
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5726. ac_tool_warned=yes ;;
  5727. esac
  5728. OTOOL=$ac_ct_OTOOL
  5729. fi
  5730. else
  5731. OTOOL="$ac_cv_prog_OTOOL"
  5732. fi
  5733. if test -n "$ac_tool_prefix"; then
  5734. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5735. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5737. $as_echo_n "checking for $ac_word... " >&6; }
  5738. if ${ac_cv_prog_OTOOL64+:} false; then :
  5739. $as_echo_n "(cached) " >&6
  5740. else
  5741. if test -n "$OTOOL64"; then
  5742. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5743. else
  5744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5745. for as_dir in $PATH
  5746. do
  5747. IFS=$as_save_IFS
  5748. test -z "$as_dir" && as_dir=.
  5749. for ac_exec_ext in '' $ac_executable_extensions; do
  5750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5751. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5753. break 2
  5754. fi
  5755. done
  5756. done
  5757. IFS=$as_save_IFS
  5758. fi
  5759. fi
  5760. OTOOL64=$ac_cv_prog_OTOOL64
  5761. if test -n "$OTOOL64"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5763. $as_echo "$OTOOL64" >&6; }
  5764. else
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5766. $as_echo "no" >&6; }
  5767. fi
  5768. fi
  5769. if test -z "$ac_cv_prog_OTOOL64"; then
  5770. ac_ct_OTOOL64=$OTOOL64
  5771. # Extract the first word of "otool64", so it can be a program name with args.
  5772. set dummy otool64; ac_word=$2
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5774. $as_echo_n "checking for $ac_word... " >&6; }
  5775. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5776. $as_echo_n "(cached) " >&6
  5777. else
  5778. if test -n "$ac_ct_OTOOL64"; then
  5779. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5780. else
  5781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5782. for as_dir in $PATH
  5783. do
  5784. IFS=$as_save_IFS
  5785. test -z "$as_dir" && as_dir=.
  5786. for ac_exec_ext in '' $ac_executable_extensions; do
  5787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5788. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5790. break 2
  5791. fi
  5792. done
  5793. done
  5794. IFS=$as_save_IFS
  5795. fi
  5796. fi
  5797. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5798. if test -n "$ac_ct_OTOOL64"; then
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5800. $as_echo "$ac_ct_OTOOL64" >&6; }
  5801. else
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5803. $as_echo "no" >&6; }
  5804. fi
  5805. if test "x$ac_ct_OTOOL64" = x; then
  5806. OTOOL64=":"
  5807. else
  5808. case $cross_compiling:$ac_tool_warned in
  5809. yes:)
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5812. ac_tool_warned=yes ;;
  5813. esac
  5814. OTOOL64=$ac_ct_OTOOL64
  5815. fi
  5816. else
  5817. OTOOL64="$ac_cv_prog_OTOOL64"
  5818. fi
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5820. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5821. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. lt_cv_apple_cc_single_mod=no
  5825. if test -z "${LT_MULTI_MODULE}"; then
  5826. # By default we will add the -single_module flag. You can override
  5827. # by either setting the environment variable LT_MULTI_MODULE
  5828. # non-empty at configure time, or by adding -multi_module to the
  5829. # link flags.
  5830. rm -rf libconftest.dylib*
  5831. echo "int foo(void){return 1;}" > conftest.c
  5832. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5833. -dynamiclib -Wl,-single_module conftest.c" >&5
  5834. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5835. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5836. _lt_result=$?
  5837. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5838. lt_cv_apple_cc_single_mod=yes
  5839. else
  5840. cat conftest.err >&5
  5841. fi
  5842. rm -rf libconftest.dylib*
  5843. rm -f conftest.*
  5844. fi
  5845. fi
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5847. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5849. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5850. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5851. $as_echo_n "(cached) " >&6
  5852. else
  5853. lt_cv_ld_exported_symbols_list=no
  5854. save_LDFLAGS=$LDFLAGS
  5855. echo "_main" > conftest.sym
  5856. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5858. /* end confdefs.h. */
  5859. int
  5860. main ()
  5861. {
  5862. ;
  5863. return 0;
  5864. }
  5865. _ACEOF
  5866. if ac_fn_c_try_link "$LINENO"; then :
  5867. lt_cv_ld_exported_symbols_list=yes
  5868. else
  5869. lt_cv_ld_exported_symbols_list=no
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext \
  5872. conftest$ac_exeext conftest.$ac_ext
  5873. LDFLAGS="$save_LDFLAGS"
  5874. fi
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5876. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5878. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5879. if ${lt_cv_ld_force_load+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. lt_cv_ld_force_load=no
  5883. cat > conftest.c << _LT_EOF
  5884. int forced_loaded() { return 2;}
  5885. _LT_EOF
  5886. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5887. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5888. echo "$AR cru libconftest.a conftest.o" >&5
  5889. $AR cru libconftest.a conftest.o 2>&5
  5890. echo "$RANLIB libconftest.a" >&5
  5891. $RANLIB libconftest.a 2>&5
  5892. cat > conftest.c << _LT_EOF
  5893. int main() { return 0;}
  5894. _LT_EOF
  5895. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5896. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5897. _lt_result=$?
  5898. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  5899. lt_cv_ld_force_load=yes
  5900. else
  5901. cat conftest.err >&5
  5902. fi
  5903. rm -f conftest.err libconftest.a conftest conftest.c
  5904. rm -rf conftest.dSYM
  5905. fi
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5907. $as_echo "$lt_cv_ld_force_load" >&6; }
  5908. case $host_os in
  5909. rhapsody* | darwin1.[012])
  5910. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5911. darwin1.*)
  5912. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5913. darwin*) # darwin 5.x on
  5914. # if running on 10.5 or later, the deployment target defaults
  5915. # to the OS version, if on x86, and 10.4, the deployment
  5916. # target defaults to 10.4. Don't you love it?
  5917. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5918. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5919. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5920. 10.[012]*)
  5921. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5922. 10.*)
  5923. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5924. esac
  5925. ;;
  5926. esac
  5927. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5928. _lt_dar_single_mod='$single_module'
  5929. fi
  5930. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5931. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5932. else
  5933. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5934. fi
  5935. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5936. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5937. else
  5938. _lt_dsymutil=
  5939. fi
  5940. ;;
  5941. esac
  5942. ac_ext=c
  5943. ac_cpp='$CPP $CPPFLAGS'
  5944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5948. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5949. # On Suns, sometimes $CPP names a directory.
  5950. if test -n "$CPP" && test -d "$CPP"; then
  5951. CPP=
  5952. fi
  5953. if test -z "$CPP"; then
  5954. if ${ac_cv_prog_CPP+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. # Double quotes because CPP needs to be expanded
  5958. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5959. do
  5960. ac_preproc_ok=false
  5961. for ac_c_preproc_warn_flag in '' yes
  5962. do
  5963. # Use a header file that comes with gcc, so configuring glibc
  5964. # with a fresh cross-compiler works.
  5965. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5966. # <limits.h> exists even on freestanding compilers.
  5967. # On the NeXT, cc -E runs the code through the compiler's parser,
  5968. # not just through cpp. "Syntax error" is here to catch this case.
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. #ifdef __STDC__
  5972. # include <limits.h>
  5973. #else
  5974. # include <assert.h>
  5975. #endif
  5976. Syntax error
  5977. _ACEOF
  5978. if ac_fn_c_try_cpp "$LINENO"; then :
  5979. else
  5980. # Broken: fails on valid input.
  5981. continue
  5982. fi
  5983. rm -f conftest.err conftest.i conftest.$ac_ext
  5984. # OK, works on sane cases. Now check whether nonexistent headers
  5985. # can be detected and how.
  5986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5987. /* end confdefs.h. */
  5988. #include <ac_nonexistent.h>
  5989. _ACEOF
  5990. if ac_fn_c_try_cpp "$LINENO"; then :
  5991. # Broken: success on invalid input.
  5992. continue
  5993. else
  5994. # Passes both tests.
  5995. ac_preproc_ok=:
  5996. break
  5997. fi
  5998. rm -f conftest.err conftest.i conftest.$ac_ext
  5999. done
  6000. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6001. rm -f conftest.i conftest.err conftest.$ac_ext
  6002. if $ac_preproc_ok; then :
  6003. break
  6004. fi
  6005. done
  6006. ac_cv_prog_CPP=$CPP
  6007. fi
  6008. CPP=$ac_cv_prog_CPP
  6009. else
  6010. ac_cv_prog_CPP=$CPP
  6011. fi
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6013. $as_echo "$CPP" >&6; }
  6014. ac_preproc_ok=false
  6015. for ac_c_preproc_warn_flag in '' yes
  6016. do
  6017. # Use a header file that comes with gcc, so configuring glibc
  6018. # with a fresh cross-compiler works.
  6019. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6020. # <limits.h> exists even on freestanding compilers.
  6021. # On the NeXT, cc -E runs the code through the compiler's parser,
  6022. # not just through cpp. "Syntax error" is here to catch this case.
  6023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6024. /* end confdefs.h. */
  6025. #ifdef __STDC__
  6026. # include <limits.h>
  6027. #else
  6028. # include <assert.h>
  6029. #endif
  6030. Syntax error
  6031. _ACEOF
  6032. if ac_fn_c_try_cpp "$LINENO"; then :
  6033. else
  6034. # Broken: fails on valid input.
  6035. continue
  6036. fi
  6037. rm -f conftest.err conftest.i conftest.$ac_ext
  6038. # OK, works on sane cases. Now check whether nonexistent headers
  6039. # can be detected and how.
  6040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6041. /* end confdefs.h. */
  6042. #include <ac_nonexistent.h>
  6043. _ACEOF
  6044. if ac_fn_c_try_cpp "$LINENO"; then :
  6045. # Broken: success on invalid input.
  6046. continue
  6047. else
  6048. # Passes both tests.
  6049. ac_preproc_ok=:
  6050. break
  6051. fi
  6052. rm -f conftest.err conftest.i conftest.$ac_ext
  6053. done
  6054. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6055. rm -f conftest.i conftest.err conftest.$ac_ext
  6056. if $ac_preproc_ok; then :
  6057. else
  6058. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6060. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6061. See \`config.log' for more details" "$LINENO" 5; }
  6062. fi
  6063. ac_ext=c
  6064. ac_cpp='$CPP $CPPFLAGS'
  6065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6069. $as_echo_n "checking for ANSI C header files... " >&6; }
  6070. if ${ac_cv_header_stdc+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end confdefs.h. */
  6075. #include <stdlib.h>
  6076. #include <stdarg.h>
  6077. #include <string.h>
  6078. #include <float.h>
  6079. int
  6080. main ()
  6081. {
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. if ac_fn_c_try_compile "$LINENO"; then :
  6087. ac_cv_header_stdc=yes
  6088. else
  6089. ac_cv_header_stdc=no
  6090. fi
  6091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6092. if test $ac_cv_header_stdc = yes; then
  6093. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6095. /* end confdefs.h. */
  6096. #include <string.h>
  6097. _ACEOF
  6098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6099. $EGREP "memchr" >/dev/null 2>&1; then :
  6100. else
  6101. ac_cv_header_stdc=no
  6102. fi
  6103. rm -f conftest*
  6104. fi
  6105. if test $ac_cv_header_stdc = yes; then
  6106. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end confdefs.h. */
  6109. #include <stdlib.h>
  6110. _ACEOF
  6111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6112. $EGREP "free" >/dev/null 2>&1; then :
  6113. else
  6114. ac_cv_header_stdc=no
  6115. fi
  6116. rm -f conftest*
  6117. fi
  6118. if test $ac_cv_header_stdc = yes; then
  6119. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6120. if test "$cross_compiling" = yes; then :
  6121. :
  6122. else
  6123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6124. /* end confdefs.h. */
  6125. #include <ctype.h>
  6126. #include <stdlib.h>
  6127. #if ((' ' & 0x0FF) == 0x020)
  6128. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6129. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6130. #else
  6131. # define ISLOWER(c) \
  6132. (('a' <= (c) && (c) <= 'i') \
  6133. || ('j' <= (c) && (c) <= 'r') \
  6134. || ('s' <= (c) && (c) <= 'z'))
  6135. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6136. #endif
  6137. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6138. int
  6139. main ()
  6140. {
  6141. int i;
  6142. for (i = 0; i < 256; i++)
  6143. if (XOR (islower (i), ISLOWER (i))
  6144. || toupper (i) != TOUPPER (i))
  6145. return 2;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. if ac_fn_c_try_run "$LINENO"; then :
  6150. else
  6151. ac_cv_header_stdc=no
  6152. fi
  6153. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6154. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6155. fi
  6156. fi
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6159. $as_echo "$ac_cv_header_stdc" >&6; }
  6160. if test $ac_cv_header_stdc = yes; then
  6161. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6162. fi
  6163. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6164. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6165. inttypes.h stdint.h unistd.h
  6166. do :
  6167. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6168. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6169. "
  6170. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6171. cat >>confdefs.h <<_ACEOF
  6172. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6173. _ACEOF
  6174. fi
  6175. done
  6176. for ac_header in dlfcn.h
  6177. do :
  6178. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6179. "
  6180. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6181. cat >>confdefs.h <<_ACEOF
  6182. #define HAVE_DLFCN_H 1
  6183. _ACEOF
  6184. fi
  6185. done
  6186. # Set options
  6187. enable_dlopen=no
  6188. # Check whether --enable-shared was given.
  6189. if test "${enable_shared+set}" = set; then :
  6190. enableval=$enable_shared; p=${PACKAGE-default}
  6191. case $enableval in
  6192. yes) enable_shared=yes ;;
  6193. no) enable_shared=no ;;
  6194. *)
  6195. enable_shared=no
  6196. # Look at the argument we got. We use all the common list separators.
  6197. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6198. for pkg in $enableval; do
  6199. IFS="$lt_save_ifs"
  6200. if test "X$pkg" = "X$p"; then
  6201. enable_shared=yes
  6202. fi
  6203. done
  6204. IFS="$lt_save_ifs"
  6205. ;;
  6206. esac
  6207. else
  6208. enable_shared=yes
  6209. fi
  6210. # Check whether --enable-static was given.
  6211. if test "${enable_static+set}" = set; then :
  6212. enableval=$enable_static; p=${PACKAGE-default}
  6213. case $enableval in
  6214. yes) enable_static=yes ;;
  6215. no) enable_static=no ;;
  6216. *)
  6217. enable_static=no
  6218. # Look at the argument we got. We use all the common list separators.
  6219. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6220. for pkg in $enableval; do
  6221. IFS="$lt_save_ifs"
  6222. if test "X$pkg" = "X$p"; then
  6223. enable_static=yes
  6224. fi
  6225. done
  6226. IFS="$lt_save_ifs"
  6227. ;;
  6228. esac
  6229. else
  6230. enable_static=yes
  6231. fi
  6232. # Check whether --with-pic was given.
  6233. if test "${with_pic+set}" = set; then :
  6234. withval=$with_pic; pic_mode="$withval"
  6235. else
  6236. pic_mode=default
  6237. fi
  6238. test -z "$pic_mode" && pic_mode=default
  6239. # Check whether --enable-fast-install was given.
  6240. if test "${enable_fast_install+set}" = set; then :
  6241. enableval=$enable_fast_install; p=${PACKAGE-default}
  6242. case $enableval in
  6243. yes) enable_fast_install=yes ;;
  6244. no) enable_fast_install=no ;;
  6245. *)
  6246. enable_fast_install=no
  6247. # Look at the argument we got. We use all the common list separators.
  6248. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6249. for pkg in $enableval; do
  6250. IFS="$lt_save_ifs"
  6251. if test "X$pkg" = "X$p"; then
  6252. enable_fast_install=yes
  6253. fi
  6254. done
  6255. IFS="$lt_save_ifs"
  6256. ;;
  6257. esac
  6258. else
  6259. enable_fast_install=yes
  6260. fi
  6261. # This can be used to rebuild libtool when needed
  6262. LIBTOOL_DEPS="$ltmain"
  6263. # Always use our own libtool.
  6264. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6265. test -z "$LN_S" && LN_S="ln -s"
  6266. if test -n "${ZSH_VERSION+set}" ; then
  6267. setopt NO_GLOB_SUBST
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6270. $as_echo_n "checking for objdir... " >&6; }
  6271. if ${lt_cv_objdir+:} false; then :
  6272. $as_echo_n "(cached) " >&6
  6273. else
  6274. rm -f .libs 2>/dev/null
  6275. mkdir .libs 2>/dev/null
  6276. if test -d .libs; then
  6277. lt_cv_objdir=.libs
  6278. else
  6279. # MS-DOS does not allow filenames that begin with a dot.
  6280. lt_cv_objdir=_libs
  6281. fi
  6282. rmdir .libs 2>/dev/null
  6283. fi
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6285. $as_echo "$lt_cv_objdir" >&6; }
  6286. objdir=$lt_cv_objdir
  6287. cat >>confdefs.h <<_ACEOF
  6288. #define LT_OBJDIR "$lt_cv_objdir/"
  6289. _ACEOF
  6290. case $host_os in
  6291. aix3*)
  6292. # AIX sometimes has problems with the GCC collect2 program. For some
  6293. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6294. # vanish in a puff of smoke.
  6295. if test "X${COLLECT_NAMES+set}" != Xset; then
  6296. COLLECT_NAMES=
  6297. export COLLECT_NAMES
  6298. fi
  6299. ;;
  6300. esac
  6301. # Global variables:
  6302. ofile=libtool
  6303. can_build_shared=yes
  6304. # All known linkers require a `.a' archive for static linking (except MSVC,
  6305. # which needs '.lib').
  6306. libext=a
  6307. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6308. old_CC="$CC"
  6309. old_CFLAGS="$CFLAGS"
  6310. # Set sane defaults for various variables
  6311. test -z "$CC" && CC=cc
  6312. test -z "$LTCC" && LTCC=$CC
  6313. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6314. test -z "$LD" && LD=ld
  6315. test -z "$ac_objext" && ac_objext=o
  6316. for cc_temp in $compiler""; do
  6317. case $cc_temp in
  6318. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6319. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6320. \-*) ;;
  6321. *) break;;
  6322. esac
  6323. done
  6324. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6325. # Only perform the check for file, if the check method requires it
  6326. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6327. case $deplibs_check_method in
  6328. file_magic*)
  6329. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6331. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6332. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6333. $as_echo_n "(cached) " >&6
  6334. else
  6335. case $MAGIC_CMD in
  6336. [\\/*] | ?:[\\/]*)
  6337. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6338. ;;
  6339. *)
  6340. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6341. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6342. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6343. for ac_dir in $ac_dummy; do
  6344. IFS="$lt_save_ifs"
  6345. test -z "$ac_dir" && ac_dir=.
  6346. if test -f $ac_dir/${ac_tool_prefix}file; then
  6347. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6348. if test -n "$file_magic_test_file"; then
  6349. case $deplibs_check_method in
  6350. "file_magic "*)
  6351. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6352. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6353. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6354. $EGREP "$file_magic_regex" > /dev/null; then
  6355. :
  6356. else
  6357. cat <<_LT_EOF 1>&2
  6358. *** Warning: the command libtool uses to detect shared libraries,
  6359. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6360. *** The result is that libtool may fail to recognize shared libraries
  6361. *** as such. This will affect the creation of libtool libraries that
  6362. *** depend on shared libraries, but programs linked with such libtool
  6363. *** libraries will work regardless of this problem. Nevertheless, you
  6364. *** may want to report the problem to your system manager and/or to
  6365. *** bug-libtool@gnu.org
  6366. _LT_EOF
  6367. fi ;;
  6368. esac
  6369. fi
  6370. break
  6371. fi
  6372. done
  6373. IFS="$lt_save_ifs"
  6374. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6375. ;;
  6376. esac
  6377. fi
  6378. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6379. if test -n "$MAGIC_CMD"; then
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6381. $as_echo "$MAGIC_CMD" >&6; }
  6382. else
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6384. $as_echo "no" >&6; }
  6385. fi
  6386. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6387. if test -n "$ac_tool_prefix"; then
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6389. $as_echo_n "checking for file... " >&6; }
  6390. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6391. $as_echo_n "(cached) " >&6
  6392. else
  6393. case $MAGIC_CMD in
  6394. [\\/*] | ?:[\\/]*)
  6395. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6396. ;;
  6397. *)
  6398. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6399. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6400. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6401. for ac_dir in $ac_dummy; do
  6402. IFS="$lt_save_ifs"
  6403. test -z "$ac_dir" && ac_dir=.
  6404. if test -f $ac_dir/file; then
  6405. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6406. if test -n "$file_magic_test_file"; then
  6407. case $deplibs_check_method in
  6408. "file_magic "*)
  6409. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6410. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6411. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6412. $EGREP "$file_magic_regex" > /dev/null; then
  6413. :
  6414. else
  6415. cat <<_LT_EOF 1>&2
  6416. *** Warning: the command libtool uses to detect shared libraries,
  6417. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6418. *** The result is that libtool may fail to recognize shared libraries
  6419. *** as such. This will affect the creation of libtool libraries that
  6420. *** depend on shared libraries, but programs linked with such libtool
  6421. *** libraries will work regardless of this problem. Nevertheless, you
  6422. *** may want to report the problem to your system manager and/or to
  6423. *** bug-libtool@gnu.org
  6424. _LT_EOF
  6425. fi ;;
  6426. esac
  6427. fi
  6428. break
  6429. fi
  6430. done
  6431. IFS="$lt_save_ifs"
  6432. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6433. ;;
  6434. esac
  6435. fi
  6436. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6437. if test -n "$MAGIC_CMD"; then
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6439. $as_echo "$MAGIC_CMD" >&6; }
  6440. else
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6442. $as_echo "no" >&6; }
  6443. fi
  6444. else
  6445. MAGIC_CMD=:
  6446. fi
  6447. fi
  6448. fi
  6449. ;;
  6450. esac
  6451. # Use C for the default configuration in the libtool script
  6452. lt_save_CC="$CC"
  6453. ac_ext=c
  6454. ac_cpp='$CPP $CPPFLAGS'
  6455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6458. # Source file extension for C test sources.
  6459. ac_ext=c
  6460. # Object file extension for compiled C test sources.
  6461. objext=o
  6462. objext=$objext
  6463. # Code to be used in simple compile tests
  6464. lt_simple_compile_test_code="int some_variable = 0;"
  6465. # Code to be used in simple link tests
  6466. lt_simple_link_test_code='int main(){return(0);}'
  6467. # If no C compiler was specified, use CC.
  6468. LTCC=${LTCC-"$CC"}
  6469. # If no C compiler flags were specified, use CFLAGS.
  6470. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6471. # Allow CC to be a program name with arguments.
  6472. compiler=$CC
  6473. # Save the default compiler, since it gets overwritten when the other
  6474. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6475. compiler_DEFAULT=$CC
  6476. # save warnings/boilerplate of simple test code
  6477. ac_outfile=conftest.$ac_objext
  6478. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6479. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6480. _lt_compiler_boilerplate=`cat conftest.err`
  6481. $RM conftest*
  6482. ac_outfile=conftest.$ac_objext
  6483. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6484. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6485. _lt_linker_boilerplate=`cat conftest.err`
  6486. $RM -r conftest*
  6487. if test -n "$compiler"; then
  6488. lt_prog_compiler_no_builtin_flag=
  6489. if test "$GCC" = yes; then
  6490. case $cc_basename in
  6491. nvcc*)
  6492. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6493. *)
  6494. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6495. esac
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6497. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6498. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. lt_cv_prog_compiler_rtti_exceptions=no
  6502. ac_outfile=conftest.$ac_objext
  6503. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6504. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6505. # Insert the option either (1) after the last *FLAGS variable, or
  6506. # (2) before a word containing "conftest.", or (3) at the end.
  6507. # Note that $ac_compile itself does not contain backslashes and begins
  6508. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6509. # The option is referenced via a variable to avoid confusing sed.
  6510. lt_compile=`echo "$ac_compile" | $SED \
  6511. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6512. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6513. -e 's:$: $lt_compiler_flag:'`
  6514. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6515. (eval "$lt_compile" 2>conftest.err)
  6516. ac_status=$?
  6517. cat conftest.err >&5
  6518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6519. if (exit $ac_status) && test -s "$ac_outfile"; then
  6520. # The compiler can only warn and ignore the option if not recognized
  6521. # So say no if there are warnings other than the usual output.
  6522. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6523. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6524. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6525. lt_cv_prog_compiler_rtti_exceptions=yes
  6526. fi
  6527. fi
  6528. $RM conftest*
  6529. fi
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6531. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6532. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6533. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6534. else
  6535. :
  6536. fi
  6537. fi
  6538. lt_prog_compiler_wl=
  6539. lt_prog_compiler_pic=
  6540. lt_prog_compiler_static=
  6541. if test "$GCC" = yes; then
  6542. lt_prog_compiler_wl='-Wl,'
  6543. lt_prog_compiler_static='-static'
  6544. case $host_os in
  6545. aix*)
  6546. # All AIX code is PIC.
  6547. if test "$host_cpu" = ia64; then
  6548. # AIX 5 now supports IA64 processor
  6549. lt_prog_compiler_static='-Bstatic'
  6550. fi
  6551. ;;
  6552. amigaos*)
  6553. case $host_cpu in
  6554. powerpc)
  6555. # see comment about AmigaOS4 .so support
  6556. lt_prog_compiler_pic='-fPIC'
  6557. ;;
  6558. m68k)
  6559. # FIXME: we need at least 68020 code to build shared libraries, but
  6560. # adding the `-m68020' flag to GCC prevents building anything better,
  6561. # like `-m68040'.
  6562. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6563. ;;
  6564. esac
  6565. ;;
  6566. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6567. # PIC is the default for these OSes.
  6568. ;;
  6569. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6570. # This hack is so that the source file can tell whether it is being
  6571. # built for inclusion in a dll (and should export symbols for example).
  6572. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6573. # (--disable-auto-import) libraries
  6574. lt_prog_compiler_pic='-DDLL_EXPORT'
  6575. ;;
  6576. darwin* | rhapsody*)
  6577. # PIC is the default on this platform
  6578. # Common symbols not allowed in MH_DYLIB files
  6579. lt_prog_compiler_pic='-fno-common'
  6580. ;;
  6581. haiku*)
  6582. # PIC is the default for Haiku.
  6583. # The "-static" flag exists, but is broken.
  6584. lt_prog_compiler_static=
  6585. ;;
  6586. hpux*)
  6587. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6588. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6589. # sets the default TLS model and affects inlining.
  6590. case $host_cpu in
  6591. hppa*64*)
  6592. # +Z the default
  6593. ;;
  6594. *)
  6595. lt_prog_compiler_pic='-fPIC'
  6596. ;;
  6597. esac
  6598. ;;
  6599. interix[3-9]*)
  6600. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6601. # Instead, we relocate shared libraries at runtime.
  6602. ;;
  6603. msdosdjgpp*)
  6604. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6605. # on systems that don't support them.
  6606. lt_prog_compiler_can_build_shared=no
  6607. enable_shared=no
  6608. ;;
  6609. *nto* | *qnx*)
  6610. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6611. # it will coredump.
  6612. lt_prog_compiler_pic='-fPIC -shared'
  6613. ;;
  6614. sysv4*MP*)
  6615. if test -d /usr/nec; then
  6616. lt_prog_compiler_pic=-Kconform_pic
  6617. fi
  6618. ;;
  6619. *)
  6620. lt_prog_compiler_pic='-fPIC'
  6621. ;;
  6622. esac
  6623. case $cc_basename in
  6624. nvcc*) # Cuda Compiler Driver 2.2
  6625. lt_prog_compiler_wl='-Xlinker '
  6626. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6627. ;;
  6628. esac
  6629. else
  6630. # PORTME Check for flag to pass linker flags through the system compiler.
  6631. case $host_os in
  6632. aix*)
  6633. lt_prog_compiler_wl='-Wl,'
  6634. if test "$host_cpu" = ia64; then
  6635. # AIX 5 now supports IA64 processor
  6636. lt_prog_compiler_static='-Bstatic'
  6637. else
  6638. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6639. fi
  6640. ;;
  6641. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6642. # This hack is so that the source file can tell whether it is being
  6643. # built for inclusion in a dll (and should export symbols for example).
  6644. lt_prog_compiler_pic='-DDLL_EXPORT'
  6645. ;;
  6646. hpux9* | hpux10* | hpux11*)
  6647. lt_prog_compiler_wl='-Wl,'
  6648. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6649. # not for PA HP-UX.
  6650. case $host_cpu in
  6651. hppa*64*|ia64*)
  6652. # +Z the default
  6653. ;;
  6654. *)
  6655. lt_prog_compiler_pic='+Z'
  6656. ;;
  6657. esac
  6658. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6659. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6660. ;;
  6661. irix5* | irix6* | nonstopux*)
  6662. lt_prog_compiler_wl='-Wl,'
  6663. # PIC (with -KPIC) is the default.
  6664. lt_prog_compiler_static='-non_shared'
  6665. ;;
  6666. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6667. case $cc_basename in
  6668. # old Intel for x86_64 which still supported -KPIC.
  6669. ecc*)
  6670. lt_prog_compiler_wl='-Wl,'
  6671. lt_prog_compiler_pic='-KPIC'
  6672. lt_prog_compiler_static='-static'
  6673. ;;
  6674. # icc used to be incompatible with GCC.
  6675. # ICC 10 doesn't accept -KPIC any more.
  6676. icc* | ifort*)
  6677. lt_prog_compiler_wl='-Wl,'
  6678. lt_prog_compiler_pic='-fPIC'
  6679. lt_prog_compiler_static='-static'
  6680. ;;
  6681. # Lahey Fortran 8.1.
  6682. lf95*)
  6683. lt_prog_compiler_wl='-Wl,'
  6684. lt_prog_compiler_pic='--shared'
  6685. lt_prog_compiler_static='--static'
  6686. ;;
  6687. nagfor*)
  6688. # NAG Fortran compiler
  6689. lt_prog_compiler_wl='-Wl,-Wl,,'
  6690. lt_prog_compiler_pic='-PIC'
  6691. lt_prog_compiler_static='-Bstatic'
  6692. ;;
  6693. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6694. # Portland Group compilers (*not* the Pentium gcc compiler,
  6695. # which looks to be a dead project)
  6696. lt_prog_compiler_wl='-Wl,'
  6697. lt_prog_compiler_pic='-fpic'
  6698. lt_prog_compiler_static='-Bstatic'
  6699. ;;
  6700. ccc*)
  6701. lt_prog_compiler_wl='-Wl,'
  6702. # All Alpha code is PIC.
  6703. lt_prog_compiler_static='-non_shared'
  6704. ;;
  6705. xl* | bgxl* | bgf* | mpixl*)
  6706. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6707. lt_prog_compiler_wl='-Wl,'
  6708. lt_prog_compiler_pic='-qpic'
  6709. lt_prog_compiler_static='-qstaticlink'
  6710. ;;
  6711. *)
  6712. case `$CC -V 2>&1 | sed 5q` in
  6713. *Sun\ F* | *Sun*Fortran*)
  6714. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6715. lt_prog_compiler_pic='-KPIC'
  6716. lt_prog_compiler_static='-Bstatic'
  6717. lt_prog_compiler_wl=''
  6718. ;;
  6719. *Sun\ C*)
  6720. # Sun C 5.9
  6721. lt_prog_compiler_pic='-KPIC'
  6722. lt_prog_compiler_static='-Bstatic'
  6723. lt_prog_compiler_wl='-Wl,'
  6724. ;;
  6725. esac
  6726. ;;
  6727. esac
  6728. ;;
  6729. newsos6)
  6730. lt_prog_compiler_pic='-KPIC'
  6731. lt_prog_compiler_static='-Bstatic'
  6732. ;;
  6733. *nto* | *qnx*)
  6734. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6735. # it will coredump.
  6736. lt_prog_compiler_pic='-fPIC -shared'
  6737. ;;
  6738. osf3* | osf4* | osf5*)
  6739. lt_prog_compiler_wl='-Wl,'
  6740. # All OSF/1 code is PIC.
  6741. lt_prog_compiler_static='-non_shared'
  6742. ;;
  6743. rdos*)
  6744. lt_prog_compiler_static='-non_shared'
  6745. ;;
  6746. solaris*)
  6747. lt_prog_compiler_pic='-KPIC'
  6748. lt_prog_compiler_static='-Bstatic'
  6749. case $cc_basename in
  6750. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6751. lt_prog_compiler_wl='-Qoption ld ';;
  6752. *)
  6753. lt_prog_compiler_wl='-Wl,';;
  6754. esac
  6755. ;;
  6756. sunos4*)
  6757. lt_prog_compiler_wl='-Qoption ld '
  6758. lt_prog_compiler_pic='-PIC'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. ;;
  6761. sysv4 | sysv4.2uw2* | sysv4.3*)
  6762. lt_prog_compiler_wl='-Wl,'
  6763. lt_prog_compiler_pic='-KPIC'
  6764. lt_prog_compiler_static='-Bstatic'
  6765. ;;
  6766. sysv4*MP*)
  6767. if test -d /usr/nec ;then
  6768. lt_prog_compiler_pic='-Kconform_pic'
  6769. lt_prog_compiler_static='-Bstatic'
  6770. fi
  6771. ;;
  6772. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6773. lt_prog_compiler_wl='-Wl,'
  6774. lt_prog_compiler_pic='-KPIC'
  6775. lt_prog_compiler_static='-Bstatic'
  6776. ;;
  6777. unicos*)
  6778. lt_prog_compiler_wl='-Wl,'
  6779. lt_prog_compiler_can_build_shared=no
  6780. ;;
  6781. uts4*)
  6782. lt_prog_compiler_pic='-pic'
  6783. lt_prog_compiler_static='-Bstatic'
  6784. ;;
  6785. *)
  6786. lt_prog_compiler_can_build_shared=no
  6787. ;;
  6788. esac
  6789. fi
  6790. case $host_os in
  6791. # For platforms which do not support PIC, -DPIC is meaningless:
  6792. *djgpp*)
  6793. lt_prog_compiler_pic=
  6794. ;;
  6795. *)
  6796. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6797. ;;
  6798. esac
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6800. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6801. if ${lt_cv_prog_compiler_pic+:} false; then :
  6802. $as_echo_n "(cached) " >&6
  6803. else
  6804. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  6805. fi
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  6807. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  6808. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  6809. #
  6810. # Check to make sure the PIC flag actually works.
  6811. #
  6812. if test -n "$lt_prog_compiler_pic"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6814. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6815. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. lt_cv_prog_compiler_pic_works=no
  6819. ac_outfile=conftest.$ac_objext
  6820. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6821. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6822. # Insert the option either (1) after the last *FLAGS variable, or
  6823. # (2) before a word containing "conftest.", or (3) at the end.
  6824. # Note that $ac_compile itself does not contain backslashes and begins
  6825. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6826. # The option is referenced via a variable to avoid confusing sed.
  6827. lt_compile=`echo "$ac_compile" | $SED \
  6828. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6829. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6830. -e 's:$: $lt_compiler_flag:'`
  6831. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6832. (eval "$lt_compile" 2>conftest.err)
  6833. ac_status=$?
  6834. cat conftest.err >&5
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. if (exit $ac_status) && test -s "$ac_outfile"; then
  6837. # The compiler can only warn and ignore the option if not recognized
  6838. # So say no if there are warnings other than the usual output.
  6839. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6840. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6841. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6842. lt_cv_prog_compiler_pic_works=yes
  6843. fi
  6844. fi
  6845. $RM conftest*
  6846. fi
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6848. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6849. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6850. case $lt_prog_compiler_pic in
  6851. "" | " "*) ;;
  6852. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6853. esac
  6854. else
  6855. lt_prog_compiler_pic=
  6856. lt_prog_compiler_can_build_shared=no
  6857. fi
  6858. fi
  6859. #
  6860. # Check to make sure the static flag actually works.
  6861. #
  6862. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6864. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6865. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. lt_cv_prog_compiler_static_works=no
  6869. save_LDFLAGS="$LDFLAGS"
  6870. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6871. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6872. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6873. # The linker can only warn and ignore the option if not recognized
  6874. # So say no if there are warnings
  6875. if test -s conftest.err; then
  6876. # Append any errors to the config.log.
  6877. cat conftest.err 1>&5
  6878. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6879. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6880. if diff conftest.exp conftest.er2 >/dev/null; then
  6881. lt_cv_prog_compiler_static_works=yes
  6882. fi
  6883. else
  6884. lt_cv_prog_compiler_static_works=yes
  6885. fi
  6886. fi
  6887. $RM -r conftest*
  6888. LDFLAGS="$save_LDFLAGS"
  6889. fi
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6891. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6892. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6893. :
  6894. else
  6895. lt_prog_compiler_static=
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6898. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6899. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. lt_cv_prog_compiler_c_o=no
  6903. $RM -r conftest 2>/dev/null
  6904. mkdir conftest
  6905. cd conftest
  6906. mkdir out
  6907. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6908. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6909. # Insert the option either (1) after the last *FLAGS variable, or
  6910. # (2) before a word containing "conftest.", or (3) at the end.
  6911. # Note that $ac_compile itself does not contain backslashes and begins
  6912. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6913. lt_compile=`echo "$ac_compile" | $SED \
  6914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6916. -e 's:$: $lt_compiler_flag:'`
  6917. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6918. (eval "$lt_compile" 2>out/conftest.err)
  6919. ac_status=$?
  6920. cat out/conftest.err >&5
  6921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6922. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6923. then
  6924. # The compiler can only warn and ignore the option if not recognized
  6925. # So say no if there are warnings
  6926. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6927. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6928. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6929. lt_cv_prog_compiler_c_o=yes
  6930. fi
  6931. fi
  6932. chmod u+w . 2>&5
  6933. $RM conftest*
  6934. # SGI C++ compiler will create directory out/ii_files/ for
  6935. # template instantiation
  6936. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6937. $RM out/* && rmdir out
  6938. cd ..
  6939. $RM -r conftest
  6940. $RM conftest*
  6941. fi
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6943. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6945. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6946. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. lt_cv_prog_compiler_c_o=no
  6950. $RM -r conftest 2>/dev/null
  6951. mkdir conftest
  6952. cd conftest
  6953. mkdir out
  6954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6955. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6956. # Insert the option either (1) after the last *FLAGS variable, or
  6957. # (2) before a word containing "conftest.", or (3) at the end.
  6958. # Note that $ac_compile itself does not contain backslashes and begins
  6959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6960. lt_compile=`echo "$ac_compile" | $SED \
  6961. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6962. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6963. -e 's:$: $lt_compiler_flag:'`
  6964. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6965. (eval "$lt_compile" 2>out/conftest.err)
  6966. ac_status=$?
  6967. cat out/conftest.err >&5
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6970. then
  6971. # The compiler can only warn and ignore the option if not recognized
  6972. # So say no if there are warnings
  6973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6974. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6975. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6976. lt_cv_prog_compiler_c_o=yes
  6977. fi
  6978. fi
  6979. chmod u+w . 2>&5
  6980. $RM conftest*
  6981. # SGI C++ compiler will create directory out/ii_files/ for
  6982. # template instantiation
  6983. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6984. $RM out/* && rmdir out
  6985. cd ..
  6986. $RM -r conftest
  6987. $RM conftest*
  6988. fi
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6990. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6991. hard_links="nottested"
  6992. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6993. # do not overwrite the value of need_locks provided by the user
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6995. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6996. hard_links=yes
  6997. $RM conftest*
  6998. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6999. touch conftest.a
  7000. ln conftest.a conftest.b 2>&5 || hard_links=no
  7001. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7003. $as_echo "$hard_links" >&6; }
  7004. if test "$hard_links" = no; then
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7006. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7007. need_locks=warn
  7008. fi
  7009. else
  7010. need_locks=no
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7013. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7014. runpath_var=
  7015. allow_undefined_flag=
  7016. always_export_symbols=no
  7017. archive_cmds=
  7018. archive_expsym_cmds=
  7019. compiler_needs_object=no
  7020. enable_shared_with_static_runtimes=no
  7021. export_dynamic_flag_spec=
  7022. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7023. hardcode_automatic=no
  7024. hardcode_direct=no
  7025. hardcode_direct_absolute=no
  7026. hardcode_libdir_flag_spec=
  7027. hardcode_libdir_flag_spec_ld=
  7028. hardcode_libdir_separator=
  7029. hardcode_minus_L=no
  7030. hardcode_shlibpath_var=unsupported
  7031. inherit_rpath=no
  7032. link_all_deplibs=unknown
  7033. module_cmds=
  7034. module_expsym_cmds=
  7035. old_archive_from_new_cmds=
  7036. old_archive_from_expsyms_cmds=
  7037. thread_safe_flag_spec=
  7038. whole_archive_flag_spec=
  7039. # include_expsyms should be a list of space-separated symbols to be *always*
  7040. # included in the symbol list
  7041. include_expsyms=
  7042. # exclude_expsyms can be an extended regexp of symbols to exclude
  7043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7045. # as well as any symbol that contains `d'.
  7046. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7048. # platforms (ab)use it in PIC code, but their linkers get confused if
  7049. # the symbol is explicitly referenced. Since portable code cannot
  7050. # rely on this symbol name, it's probably fine to never include it in
  7051. # preloaded symbol tables.
  7052. # Exclude shared library initialization/finalization symbols.
  7053. extract_expsyms_cmds=
  7054. case $host_os in
  7055. cygwin* | mingw* | pw32* | cegcc*)
  7056. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7057. # When not using gcc, we currently assume that we are using
  7058. # Microsoft Visual C++.
  7059. if test "$GCC" != yes; then
  7060. with_gnu_ld=no
  7061. fi
  7062. ;;
  7063. interix*)
  7064. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7065. with_gnu_ld=yes
  7066. ;;
  7067. openbsd*)
  7068. with_gnu_ld=no
  7069. ;;
  7070. linux* | k*bsd*-gnu | gnu*)
  7071. link_all_deplibs=no
  7072. ;;
  7073. esac
  7074. ld_shlibs=yes
  7075. # On some targets, GNU ld is compatible enough with the native linker
  7076. # that we're better off using the native interface for both.
  7077. lt_use_gnu_ld_interface=no
  7078. if test "$with_gnu_ld" = yes; then
  7079. case $host_os in
  7080. aix*)
  7081. # The AIX port of GNU ld has always aspired to compatibility
  7082. # with the native linker. However, as the warning in the GNU ld
  7083. # block says, versions before 2.19.5* couldn't really create working
  7084. # shared libraries, regardless of the interface used.
  7085. case `$LD -v 2>&1` in
  7086. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7087. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7088. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7089. *)
  7090. lt_use_gnu_ld_interface=yes
  7091. ;;
  7092. esac
  7093. ;;
  7094. *)
  7095. lt_use_gnu_ld_interface=yes
  7096. ;;
  7097. esac
  7098. fi
  7099. if test "$lt_use_gnu_ld_interface" = yes; then
  7100. # If archive_cmds runs LD, not CC, wlarc should be empty
  7101. wlarc='${wl}'
  7102. # Set some defaults for GNU ld with shared library support. These
  7103. # are reset later if shared libraries are not supported. Putting them
  7104. # here allows them to be overridden if necessary.
  7105. runpath_var=LD_RUN_PATH
  7106. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7107. export_dynamic_flag_spec='${wl}--export-dynamic'
  7108. # ancient GNU ld didn't support --whole-archive et. al.
  7109. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7110. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7111. else
  7112. whole_archive_flag_spec=
  7113. fi
  7114. supports_anon_versioning=no
  7115. case `$LD -v 2>&1` in
  7116. *GNU\ gold*) supports_anon_versioning=yes ;;
  7117. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7118. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7119. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7120. *\ 2.11.*) ;; # other 2.11 versions
  7121. *) supports_anon_versioning=yes ;;
  7122. esac
  7123. # See if GNU ld supports shared libraries.
  7124. case $host_os in
  7125. aix[3-9]*)
  7126. # On AIX/PPC, the GNU linker is very broken
  7127. if test "$host_cpu" != ia64; then
  7128. ld_shlibs=no
  7129. cat <<_LT_EOF 1>&2
  7130. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7131. *** to be unable to reliably create shared libraries on AIX.
  7132. *** Therefore, libtool is disabling shared libraries support. If you
  7133. *** really care for shared libraries, you may want to install binutils
  7134. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7135. *** You will then need to restart the configuration process.
  7136. _LT_EOF
  7137. fi
  7138. ;;
  7139. amigaos*)
  7140. case $host_cpu in
  7141. powerpc)
  7142. # see comment about AmigaOS4 .so support
  7143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7144. archive_expsym_cmds=''
  7145. ;;
  7146. m68k)
  7147. 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)'
  7148. hardcode_libdir_flag_spec='-L$libdir'
  7149. hardcode_minus_L=yes
  7150. ;;
  7151. esac
  7152. ;;
  7153. beos*)
  7154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7155. allow_undefined_flag=unsupported
  7156. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7157. # support --undefined. This deserves some investigation. FIXME
  7158. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7159. else
  7160. ld_shlibs=no
  7161. fi
  7162. ;;
  7163. cygwin* | mingw* | pw32* | cegcc*)
  7164. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7165. # as there is no search path for DLLs.
  7166. hardcode_libdir_flag_spec='-L$libdir'
  7167. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7168. allow_undefined_flag=unsupported
  7169. always_export_symbols=no
  7170. enable_shared_with_static_runtimes=yes
  7171. 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'
  7172. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7173. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7175. # If the export-symbols file already is a .def file (1st line
  7176. # is EXPORTS), use it as is; otherwise, prepend...
  7177. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7178. cp $export_symbols $output_objdir/$soname.def;
  7179. else
  7180. echo EXPORTS > $output_objdir/$soname.def;
  7181. cat $export_symbols >> $output_objdir/$soname.def;
  7182. fi~
  7183. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7184. else
  7185. ld_shlibs=no
  7186. fi
  7187. ;;
  7188. haiku*)
  7189. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7190. link_all_deplibs=yes
  7191. ;;
  7192. interix[3-9]*)
  7193. hardcode_direct=no
  7194. hardcode_shlibpath_var=no
  7195. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7196. export_dynamic_flag_spec='${wl}-E'
  7197. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7198. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7199. # default) and relocated if they conflict, which is a slow very memory
  7200. # consuming and fragmenting process. To avoid this, we pick a random,
  7201. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7202. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7203. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7204. 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'
  7205. ;;
  7206. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7207. tmp_diet=no
  7208. if test "$host_os" = linux-dietlibc; then
  7209. case $cc_basename in
  7210. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7211. esac
  7212. fi
  7213. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7214. && test "$tmp_diet" = no
  7215. then
  7216. tmp_addflag=' $pic_flag'
  7217. tmp_sharedflag='-shared'
  7218. case $cc_basename,$host_cpu in
  7219. pgcc*) # Portland Group C compiler
  7220. 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'
  7221. tmp_addflag=' $pic_flag'
  7222. ;;
  7223. pgf77* | pgf90* | pgf95* | pgfortran*)
  7224. # Portland Group f77 and f90 compilers
  7225. 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'
  7226. tmp_addflag=' $pic_flag -Mnomain' ;;
  7227. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7228. tmp_addflag=' -i_dynamic' ;;
  7229. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7230. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7231. ifc* | ifort*) # Intel Fortran compiler
  7232. tmp_addflag=' -nofor_main' ;;
  7233. lf95*) # Lahey Fortran 8.1
  7234. whole_archive_flag_spec=
  7235. tmp_sharedflag='--shared' ;;
  7236. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7237. tmp_sharedflag='-qmkshrobj'
  7238. tmp_addflag= ;;
  7239. nvcc*) # Cuda Compiler Driver 2.2
  7240. 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'
  7241. compiler_needs_object=yes
  7242. ;;
  7243. esac
  7244. case `$CC -V 2>&1 | sed 5q` in
  7245. *Sun\ C*) # Sun C 5.9
  7246. 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'
  7247. compiler_needs_object=yes
  7248. tmp_sharedflag='-G' ;;
  7249. *Sun\ F*) # Sun Fortran 8.3
  7250. tmp_sharedflag='-G' ;;
  7251. esac
  7252. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7253. if test "x$supports_anon_versioning" = xyes; then
  7254. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7255. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7256. echo "local: *; };" >> $output_objdir/$libname.ver~
  7257. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7258. fi
  7259. case $cc_basename in
  7260. xlf* | bgf* | bgxlf* | mpixlf*)
  7261. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7262. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7263. hardcode_libdir_flag_spec=
  7264. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7265. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7266. if test "x$supports_anon_versioning" = xyes; then
  7267. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7268. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7269. echo "local: *; };" >> $output_objdir/$libname.ver~
  7270. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7271. fi
  7272. ;;
  7273. esac
  7274. else
  7275. ld_shlibs=no
  7276. fi
  7277. ;;
  7278. netbsd* | netbsdelf*-gnu)
  7279. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7280. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7281. wlarc=
  7282. else
  7283. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7284. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7285. fi
  7286. ;;
  7287. solaris*)
  7288. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7289. ld_shlibs=no
  7290. cat <<_LT_EOF 1>&2
  7291. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7292. *** create shared libraries on Solaris systems. Therefore, libtool
  7293. *** is disabling shared libraries support. We urge you to upgrade GNU
  7294. *** binutils to release 2.9.1 or newer. Another option is to modify
  7295. *** your PATH or compiler configuration so that the native linker is
  7296. *** used, and then restart.
  7297. _LT_EOF
  7298. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7299. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7300. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7301. else
  7302. ld_shlibs=no
  7303. fi
  7304. ;;
  7305. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7306. case `$LD -v 2>&1` in
  7307. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7308. ld_shlibs=no
  7309. cat <<_LT_EOF 1>&2
  7310. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7311. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7312. *** is disabling shared libraries support. We urge you to upgrade GNU
  7313. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7314. *** your PATH or compiler configuration so that the native linker is
  7315. *** used, and then restart.
  7316. _LT_EOF
  7317. ;;
  7318. *)
  7319. # For security reasons, it is highly recommended that you always
  7320. # use absolute paths for naming shared libraries, and exclude the
  7321. # DT_RUNPATH tag from executables and libraries. But doing so
  7322. # requires that you compile everything twice, which is a pain.
  7323. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7324. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7326. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7327. else
  7328. ld_shlibs=no
  7329. fi
  7330. ;;
  7331. esac
  7332. ;;
  7333. sunos4*)
  7334. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7335. wlarc=
  7336. hardcode_direct=yes
  7337. hardcode_shlibpath_var=no
  7338. ;;
  7339. *)
  7340. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7341. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7342. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7343. else
  7344. ld_shlibs=no
  7345. fi
  7346. ;;
  7347. esac
  7348. if test "$ld_shlibs" = no; then
  7349. runpath_var=
  7350. hardcode_libdir_flag_spec=
  7351. export_dynamic_flag_spec=
  7352. whole_archive_flag_spec=
  7353. fi
  7354. else
  7355. # PORTME fill in a description of your system's linker (not GNU ld)
  7356. case $host_os in
  7357. aix3*)
  7358. allow_undefined_flag=unsupported
  7359. always_export_symbols=yes
  7360. 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'
  7361. # Note: this linker hardcodes the directories in LIBPATH if there
  7362. # are no directories specified by -L.
  7363. hardcode_minus_L=yes
  7364. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7365. # Neither direct hardcoding nor static linking is supported with a
  7366. # broken collect2.
  7367. hardcode_direct=unsupported
  7368. fi
  7369. ;;
  7370. aix[4-9]*)
  7371. if test "$host_cpu" = ia64; then
  7372. # On IA64, the linker does run time linking by default, so we don't
  7373. # have to do anything special.
  7374. aix_use_runtimelinking=no
  7375. exp_sym_flag='-Bexport'
  7376. no_entry_flag=""
  7377. else
  7378. # If we're using GNU nm, then we don't want the "-C" option.
  7379. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7380. # Also, AIX nm treats weak defined symbols like other global
  7381. # defined symbols, whereas GNU nm marks them as "W".
  7382. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7383. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7384. else
  7385. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7386. fi
  7387. aix_use_runtimelinking=no
  7388. # Test if we are trying to use run time linking or normal
  7389. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7390. # need to do runtime linking.
  7391. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7392. for ld_flag in $LDFLAGS; do
  7393. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7394. aix_use_runtimelinking=yes
  7395. break
  7396. fi
  7397. done
  7398. ;;
  7399. esac
  7400. exp_sym_flag='-bexport'
  7401. no_entry_flag='-bnoentry'
  7402. fi
  7403. # When large executables or shared objects are built, AIX ld can
  7404. # have problems creating the table of contents. If linking a library
  7405. # or program results in "error TOC overflow" add -mminimal-toc to
  7406. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7407. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7408. archive_cmds=''
  7409. hardcode_direct=yes
  7410. hardcode_direct_absolute=yes
  7411. hardcode_libdir_separator=':'
  7412. link_all_deplibs=yes
  7413. file_list_spec='${wl}-f,'
  7414. if test "$GCC" = yes; then
  7415. case $host_os in aix4.[012]|aix4.[012].*)
  7416. # We only want to do this on AIX 4.2 and lower, the check
  7417. # below for broken collect2 doesn't work under 4.3+
  7418. collect2name=`${CC} -print-prog-name=collect2`
  7419. if test -f "$collect2name" &&
  7420. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7421. then
  7422. # We have reworked collect2
  7423. :
  7424. else
  7425. # We have old collect2
  7426. hardcode_direct=unsupported
  7427. # It fails to find uninstalled libraries when the uninstalled
  7428. # path is not listed in the libpath. Setting hardcode_minus_L
  7429. # to unsupported forces relinking
  7430. hardcode_minus_L=yes
  7431. hardcode_libdir_flag_spec='-L$libdir'
  7432. hardcode_libdir_separator=
  7433. fi
  7434. ;;
  7435. esac
  7436. shared_flag='-shared'
  7437. if test "$aix_use_runtimelinking" = yes; then
  7438. shared_flag="$shared_flag "'${wl}-G'
  7439. fi
  7440. link_all_deplibs=no
  7441. else
  7442. # not using gcc
  7443. if test "$host_cpu" = ia64; then
  7444. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7445. # chokes on -Wl,-G. The following line is correct:
  7446. shared_flag='-G'
  7447. else
  7448. if test "$aix_use_runtimelinking" = yes; then
  7449. shared_flag='${wl}-G'
  7450. else
  7451. shared_flag='${wl}-bM:SRE'
  7452. fi
  7453. fi
  7454. fi
  7455. export_dynamic_flag_spec='${wl}-bexpall'
  7456. # It seems that -bexpall does not export symbols beginning with
  7457. # underscore (_), so it is better to generate a list of symbols to export.
  7458. always_export_symbols=yes
  7459. if test "$aix_use_runtimelinking" = yes; then
  7460. # Warning - without using the other runtime loading flags (-brtl),
  7461. # -berok will link without error, but may produce a broken library.
  7462. allow_undefined_flag='-berok'
  7463. # Determine the default libpath from the value encoded in an
  7464. # empty executable.
  7465. if test "${lt_cv_aix_libpath+set}" = set; then
  7466. aix_libpath=$lt_cv_aix_libpath
  7467. else
  7468. if ${lt_cv_aix_libpath_+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7472. /* end confdefs.h. */
  7473. int
  7474. main ()
  7475. {
  7476. ;
  7477. return 0;
  7478. }
  7479. _ACEOF
  7480. if ac_fn_c_try_link "$LINENO"; then :
  7481. lt_aix_libpath_sed='
  7482. /Import File Strings/,/^$/ {
  7483. /^0/ {
  7484. s/^0 *\([^ ]*\) *$/\1/
  7485. p
  7486. }
  7487. }'
  7488. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7489. # Check for a 64-bit object if we didn't find anything.
  7490. if test -z "$lt_cv_aix_libpath_"; then
  7491. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7492. fi
  7493. fi
  7494. rm -f core conftest.err conftest.$ac_objext \
  7495. conftest$ac_exeext conftest.$ac_ext
  7496. if test -z "$lt_cv_aix_libpath_"; then
  7497. lt_cv_aix_libpath_="/usr/lib:/lib"
  7498. fi
  7499. fi
  7500. aix_libpath=$lt_cv_aix_libpath_
  7501. fi
  7502. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7503. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7504. else
  7505. if test "$host_cpu" = ia64; then
  7506. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7507. allow_undefined_flag="-z nodefs"
  7508. 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"
  7509. else
  7510. # Determine the default libpath from the value encoded in an
  7511. # empty executable.
  7512. if test "${lt_cv_aix_libpath+set}" = set; then
  7513. aix_libpath=$lt_cv_aix_libpath
  7514. else
  7515. if ${lt_cv_aix_libpath_+:} false; then :
  7516. $as_echo_n "(cached) " >&6
  7517. else
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. int
  7521. main ()
  7522. {
  7523. ;
  7524. return 0;
  7525. }
  7526. _ACEOF
  7527. if ac_fn_c_try_link "$LINENO"; then :
  7528. lt_aix_libpath_sed='
  7529. /Import File Strings/,/^$/ {
  7530. /^0/ {
  7531. s/^0 *\([^ ]*\) *$/\1/
  7532. p
  7533. }
  7534. }'
  7535. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7536. # Check for a 64-bit object if we didn't find anything.
  7537. if test -z "$lt_cv_aix_libpath_"; then
  7538. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7539. fi
  7540. fi
  7541. rm -f core conftest.err conftest.$ac_objext \
  7542. conftest$ac_exeext conftest.$ac_ext
  7543. if test -z "$lt_cv_aix_libpath_"; then
  7544. lt_cv_aix_libpath_="/usr/lib:/lib"
  7545. fi
  7546. fi
  7547. aix_libpath=$lt_cv_aix_libpath_
  7548. fi
  7549. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7550. # Warning - without using the other run time loading flags,
  7551. # -berok will link without error, but may produce a broken library.
  7552. no_undefined_flag=' ${wl}-bernotok'
  7553. allow_undefined_flag=' ${wl}-berok'
  7554. if test "$with_gnu_ld" = yes; then
  7555. # We only use this code for GNU lds that support --whole-archive.
  7556. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7557. else
  7558. # Exported symbols can be pulled into shared objects from archives
  7559. whole_archive_flag_spec='$convenience'
  7560. fi
  7561. archive_cmds_need_lc=yes
  7562. # This is similar to how AIX traditionally builds its shared libraries.
  7563. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7564. fi
  7565. fi
  7566. ;;
  7567. amigaos*)
  7568. case $host_cpu in
  7569. powerpc)
  7570. # see comment about AmigaOS4 .so support
  7571. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7572. archive_expsym_cmds=''
  7573. ;;
  7574. m68k)
  7575. 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)'
  7576. hardcode_libdir_flag_spec='-L$libdir'
  7577. hardcode_minus_L=yes
  7578. ;;
  7579. esac
  7580. ;;
  7581. bsdi[45]*)
  7582. export_dynamic_flag_spec=-rdynamic
  7583. ;;
  7584. cygwin* | mingw* | pw32* | cegcc*)
  7585. # When not using gcc, we currently assume that we are using
  7586. # Microsoft Visual C++.
  7587. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7588. # no search path for DLLs.
  7589. case $cc_basename in
  7590. cl*)
  7591. # Native MSVC
  7592. hardcode_libdir_flag_spec=' '
  7593. allow_undefined_flag=unsupported
  7594. always_export_symbols=yes
  7595. file_list_spec='@'
  7596. # Tell ltmain to make .lib files, not .a files.
  7597. libext=lib
  7598. # Tell ltmain to make .dll files, not .so files.
  7599. shrext_cmds=".dll"
  7600. # FIXME: Setting linknames here is a bad hack.
  7601. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7602. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7603. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7604. else
  7605. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7606. fi~
  7607. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7608. linknames='
  7609. # The linker will not automatically build a static lib if we build a DLL.
  7610. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7611. enable_shared_with_static_runtimes=yes
  7612. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7613. # Don't use ranlib
  7614. old_postinstall_cmds='chmod 644 $oldlib'
  7615. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7616. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7617. case $lt_outputfile in
  7618. *.exe|*.EXE) ;;
  7619. *)
  7620. lt_outputfile="$lt_outputfile.exe"
  7621. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7622. ;;
  7623. esac~
  7624. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7625. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7626. $RM "$lt_outputfile.manifest";
  7627. fi'
  7628. ;;
  7629. *)
  7630. # Assume MSVC wrapper
  7631. hardcode_libdir_flag_spec=' '
  7632. allow_undefined_flag=unsupported
  7633. # Tell ltmain to make .lib files, not .a files.
  7634. libext=lib
  7635. # Tell ltmain to make .dll files, not .so files.
  7636. shrext_cmds=".dll"
  7637. # FIXME: Setting linknames here is a bad hack.
  7638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7639. # The linker will automatically build a .lib file if we build a DLL.
  7640. old_archive_from_new_cmds='true'
  7641. # FIXME: Should let the user specify the lib program.
  7642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7643. enable_shared_with_static_runtimes=yes
  7644. ;;
  7645. esac
  7646. ;;
  7647. darwin* | rhapsody*)
  7648. archive_cmds_need_lc=no
  7649. hardcode_direct=no
  7650. hardcode_automatic=yes
  7651. hardcode_shlibpath_var=unsupported
  7652. if test "$lt_cv_ld_force_load" = "yes"; then
  7653. 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\"`'
  7654. else
  7655. whole_archive_flag_spec=''
  7656. fi
  7657. link_all_deplibs=yes
  7658. allow_undefined_flag="$_lt_dar_allow_undefined"
  7659. case $cc_basename in
  7660. ifort*) _lt_dar_can_shared=yes ;;
  7661. *) _lt_dar_can_shared=$GCC ;;
  7662. esac
  7663. if test "$_lt_dar_can_shared" = "yes"; then
  7664. output_verbose_link_cmd=func_echo_all
  7665. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7666. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7667. 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}"
  7668. 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}"
  7669. else
  7670. ld_shlibs=no
  7671. fi
  7672. ;;
  7673. dgux*)
  7674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7675. hardcode_libdir_flag_spec='-L$libdir'
  7676. hardcode_shlibpath_var=no
  7677. ;;
  7678. freebsd1*)
  7679. ld_shlibs=no
  7680. ;;
  7681. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7682. # support. Future versions do this automatically, but an explicit c++rt0.o
  7683. # does not break anything, and helps significantly (at the cost of a little
  7684. # extra space).
  7685. freebsd2.2*)
  7686. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7687. hardcode_libdir_flag_spec='-R$libdir'
  7688. hardcode_direct=yes
  7689. hardcode_shlibpath_var=no
  7690. ;;
  7691. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7692. freebsd2*)
  7693. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7694. hardcode_direct=yes
  7695. hardcode_minus_L=yes
  7696. hardcode_shlibpath_var=no
  7697. ;;
  7698. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7699. freebsd* | dragonfly*)
  7700. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7701. hardcode_libdir_flag_spec='-R$libdir'
  7702. hardcode_direct=yes
  7703. hardcode_shlibpath_var=no
  7704. ;;
  7705. hpux9*)
  7706. if test "$GCC" = yes; then
  7707. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7708. else
  7709. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7710. fi
  7711. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7712. hardcode_libdir_separator=:
  7713. hardcode_direct=yes
  7714. # hardcode_minus_L: Not really in the search PATH,
  7715. # but as the default location of the library.
  7716. hardcode_minus_L=yes
  7717. export_dynamic_flag_spec='${wl}-E'
  7718. ;;
  7719. hpux10*)
  7720. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7721. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7722. else
  7723. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7724. fi
  7725. if test "$with_gnu_ld" = no; then
  7726. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7727. hardcode_libdir_flag_spec_ld='+b $libdir'
  7728. hardcode_libdir_separator=:
  7729. hardcode_direct=yes
  7730. hardcode_direct_absolute=yes
  7731. export_dynamic_flag_spec='${wl}-E'
  7732. # hardcode_minus_L: Not really in the search PATH,
  7733. # but as the default location of the library.
  7734. hardcode_minus_L=yes
  7735. fi
  7736. ;;
  7737. hpux11*)
  7738. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7739. case $host_cpu in
  7740. hppa*64*)
  7741. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7742. ;;
  7743. ia64*)
  7744. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7745. ;;
  7746. *)
  7747. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7748. ;;
  7749. esac
  7750. else
  7751. case $host_cpu in
  7752. hppa*64*)
  7753. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7754. ;;
  7755. ia64*)
  7756. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7757. ;;
  7758. *)
  7759. # Older versions of the 11.00 compiler do not understand -b yet
  7760. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7762. $as_echo_n "checking if $CC understands -b... " >&6; }
  7763. if ${lt_cv_prog_compiler__b+:} false; then :
  7764. $as_echo_n "(cached) " >&6
  7765. else
  7766. lt_cv_prog_compiler__b=no
  7767. save_LDFLAGS="$LDFLAGS"
  7768. LDFLAGS="$LDFLAGS -b"
  7769. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7770. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7771. # The linker can only warn and ignore the option if not recognized
  7772. # So say no if there are warnings
  7773. if test -s conftest.err; then
  7774. # Append any errors to the config.log.
  7775. cat conftest.err 1>&5
  7776. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7777. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7778. if diff conftest.exp conftest.er2 >/dev/null; then
  7779. lt_cv_prog_compiler__b=yes
  7780. fi
  7781. else
  7782. lt_cv_prog_compiler__b=yes
  7783. fi
  7784. fi
  7785. $RM -r conftest*
  7786. LDFLAGS="$save_LDFLAGS"
  7787. fi
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7789. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7790. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7791. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7792. else
  7793. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7794. fi
  7795. ;;
  7796. esac
  7797. fi
  7798. if test "$with_gnu_ld" = no; then
  7799. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7800. hardcode_libdir_separator=:
  7801. case $host_cpu in
  7802. hppa*64*|ia64*)
  7803. hardcode_direct=no
  7804. hardcode_shlibpath_var=no
  7805. ;;
  7806. *)
  7807. hardcode_direct=yes
  7808. hardcode_direct_absolute=yes
  7809. export_dynamic_flag_spec='${wl}-E'
  7810. # hardcode_minus_L: Not really in the search PATH,
  7811. # but as the default location of the library.
  7812. hardcode_minus_L=yes
  7813. ;;
  7814. esac
  7815. fi
  7816. ;;
  7817. irix5* | irix6* | nonstopux*)
  7818. if test "$GCC" = yes; then
  7819. 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'
  7820. # Try to use the -exported_symbol ld option, if it does not
  7821. # work, assume that -exports_file does not work either and
  7822. # implicitly export all symbols.
  7823. # This should be the same for all languages, so no per-tag cache variable.
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  7825. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  7826. if ${lt_cv_irix_exported_symbol+:} false; then :
  7827. $as_echo_n "(cached) " >&6
  7828. else
  7829. save_LDFLAGS="$LDFLAGS"
  7830. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7832. /* end confdefs.h. */
  7833. int foo (void) { return 0; }
  7834. _ACEOF
  7835. if ac_fn_c_try_link "$LINENO"; then :
  7836. lt_cv_irix_exported_symbol=yes
  7837. else
  7838. lt_cv_irix_exported_symbol=no
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. LDFLAGS="$save_LDFLAGS"
  7843. fi
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  7845. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  7846. if test "$lt_cv_irix_exported_symbol" = yes; then
  7847. 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'
  7848. fi
  7849. else
  7850. 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'
  7851. 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'
  7852. fi
  7853. archive_cmds_need_lc='no'
  7854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7855. hardcode_libdir_separator=:
  7856. inherit_rpath=yes
  7857. link_all_deplibs=yes
  7858. ;;
  7859. netbsd* | netbsdelf*-gnu)
  7860. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7861. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7862. else
  7863. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7864. fi
  7865. hardcode_libdir_flag_spec='-R$libdir'
  7866. hardcode_direct=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. newsos6)
  7870. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7871. hardcode_direct=yes
  7872. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7873. hardcode_libdir_separator=:
  7874. hardcode_shlibpath_var=no
  7875. ;;
  7876. *nto* | *qnx*)
  7877. ;;
  7878. openbsd*)
  7879. if test -f /usr/libexec/ld.so; then
  7880. hardcode_direct=yes
  7881. hardcode_shlibpath_var=no
  7882. hardcode_direct_absolute=yes
  7883. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7884. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7885. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7886. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7887. export_dynamic_flag_spec='${wl}-E'
  7888. else
  7889. case $host_os in
  7890. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7891. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7892. hardcode_libdir_flag_spec='-R$libdir'
  7893. ;;
  7894. *)
  7895. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7896. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7897. ;;
  7898. esac
  7899. fi
  7900. else
  7901. ld_shlibs=no
  7902. fi
  7903. ;;
  7904. os2*)
  7905. hardcode_libdir_flag_spec='-L$libdir'
  7906. hardcode_minus_L=yes
  7907. allow_undefined_flag=unsupported
  7908. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7909. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7910. ;;
  7911. osf3*)
  7912. if test "$GCC" = yes; then
  7913. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7914. 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'
  7915. else
  7916. allow_undefined_flag=' -expect_unresolved \*'
  7917. 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'
  7918. fi
  7919. archive_cmds_need_lc='no'
  7920. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7921. hardcode_libdir_separator=:
  7922. ;;
  7923. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7924. if test "$GCC" = yes; then
  7925. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7926. 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'
  7927. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7928. else
  7929. allow_undefined_flag=' -expect_unresolved \*'
  7930. 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'
  7931. 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~
  7932. $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'
  7933. # Both c and cxx compiler support -rpath directly
  7934. hardcode_libdir_flag_spec='-rpath $libdir'
  7935. fi
  7936. archive_cmds_need_lc='no'
  7937. hardcode_libdir_separator=:
  7938. ;;
  7939. solaris*)
  7940. no_undefined_flag=' -z defs'
  7941. if test "$GCC" = yes; then
  7942. wlarc='${wl}'
  7943. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7944. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7945. $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'
  7946. else
  7947. case `$CC -V 2>&1` in
  7948. *"Compilers 5.0"*)
  7949. wlarc=''
  7950. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7951. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7952. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7953. ;;
  7954. *)
  7955. wlarc='${wl}'
  7956. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7957. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7958. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7959. ;;
  7960. esac
  7961. fi
  7962. hardcode_libdir_flag_spec='-R$libdir'
  7963. hardcode_shlibpath_var=no
  7964. case $host_os in
  7965. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7966. *)
  7967. # The compiler driver will combine and reorder linker options,
  7968. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7969. # but is careful enough not to reorder.
  7970. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7971. if test "$GCC" = yes; then
  7972. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7973. else
  7974. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7975. fi
  7976. ;;
  7977. esac
  7978. link_all_deplibs=yes
  7979. ;;
  7980. sunos4*)
  7981. if test "x$host_vendor" = xsequent; then
  7982. # Use $CC to link under sequent, because it throws in some extra .o
  7983. # files that make .init and .fini sections work.
  7984. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7985. else
  7986. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7987. fi
  7988. hardcode_libdir_flag_spec='-L$libdir'
  7989. hardcode_direct=yes
  7990. hardcode_minus_L=yes
  7991. hardcode_shlibpath_var=no
  7992. ;;
  7993. sysv4)
  7994. case $host_vendor in
  7995. sni)
  7996. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7997. hardcode_direct=yes # is this really true???
  7998. ;;
  7999. siemens)
  8000. ## LD is ld it makes a PLAMLIB
  8001. ## CC just makes a GrossModule.
  8002. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8003. reload_cmds='$CC -r -o $output$reload_objs'
  8004. hardcode_direct=no
  8005. ;;
  8006. motorola)
  8007. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8008. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8009. ;;
  8010. esac
  8011. runpath_var='LD_RUN_PATH'
  8012. hardcode_shlibpath_var=no
  8013. ;;
  8014. sysv4.3*)
  8015. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8016. hardcode_shlibpath_var=no
  8017. export_dynamic_flag_spec='-Bexport'
  8018. ;;
  8019. sysv4*MP*)
  8020. if test -d /usr/nec; then
  8021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8022. hardcode_shlibpath_var=no
  8023. runpath_var=LD_RUN_PATH
  8024. hardcode_runpath_var=yes
  8025. ld_shlibs=yes
  8026. fi
  8027. ;;
  8028. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8029. no_undefined_flag='${wl}-z,text'
  8030. archive_cmds_need_lc=no
  8031. hardcode_shlibpath_var=no
  8032. runpath_var='LD_RUN_PATH'
  8033. if test "$GCC" = yes; then
  8034. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8035. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8036. else
  8037. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8038. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8039. fi
  8040. ;;
  8041. sysv5* | sco3.2v5* | sco5v6*)
  8042. # Note: We can NOT use -z defs as we might desire, because we do not
  8043. # link with -lc, and that would cause any symbols used from libc to
  8044. # always be unresolved, which means just about no library would
  8045. # ever link correctly. If we're not using GNU ld we use -z text
  8046. # though, which does catch some bad symbols but isn't as heavy-handed
  8047. # as -z defs.
  8048. no_undefined_flag='${wl}-z,text'
  8049. allow_undefined_flag='${wl}-z,nodefs'
  8050. archive_cmds_need_lc=no
  8051. hardcode_shlibpath_var=no
  8052. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8053. hardcode_libdir_separator=':'
  8054. link_all_deplibs=yes
  8055. export_dynamic_flag_spec='${wl}-Bexport'
  8056. runpath_var='LD_RUN_PATH'
  8057. if test "$GCC" = yes; then
  8058. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8059. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8060. else
  8061. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8062. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8063. fi
  8064. ;;
  8065. uts4*)
  8066. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8067. hardcode_libdir_flag_spec='-L$libdir'
  8068. hardcode_shlibpath_var=no
  8069. ;;
  8070. *)
  8071. ld_shlibs=no
  8072. ;;
  8073. esac
  8074. if test x$host_vendor = xsni; then
  8075. case $host in
  8076. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8077. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8078. ;;
  8079. esac
  8080. fi
  8081. fi
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8083. $as_echo "$ld_shlibs" >&6; }
  8084. test "$ld_shlibs" = no && can_build_shared=no
  8085. with_gnu_ld=$with_gnu_ld
  8086. #
  8087. # Do we need to explicitly link libc?
  8088. #
  8089. case "x$archive_cmds_need_lc" in
  8090. x|xyes)
  8091. # Assume -lc should be added
  8092. archive_cmds_need_lc=yes
  8093. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8094. case $archive_cmds in
  8095. *'~'*)
  8096. # FIXME: we may have to deal with multi-command sequences.
  8097. ;;
  8098. '$CC '*)
  8099. # Test whether the compiler implicitly links with -lc since on some
  8100. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8101. # to ld, don't add -lc before -lgcc.
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8103. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8104. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8105. $as_echo_n "(cached) " >&6
  8106. else
  8107. $RM conftest*
  8108. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8109. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8110. (eval $ac_compile) 2>&5
  8111. ac_status=$?
  8112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8113. test $ac_status = 0; } 2>conftest.err; then
  8114. soname=conftest
  8115. lib=conftest
  8116. libobjs=conftest.$ac_objext
  8117. deplibs=
  8118. wl=$lt_prog_compiler_wl
  8119. pic_flag=$lt_prog_compiler_pic
  8120. compiler_flags=-v
  8121. linker_flags=-v
  8122. verstring=
  8123. output_objdir=.
  8124. libname=conftest
  8125. lt_save_allow_undefined_flag=$allow_undefined_flag
  8126. allow_undefined_flag=
  8127. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8128. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8129. ac_status=$?
  8130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8131. test $ac_status = 0; }
  8132. then
  8133. lt_cv_archive_cmds_need_lc=no
  8134. else
  8135. lt_cv_archive_cmds_need_lc=yes
  8136. fi
  8137. allow_undefined_flag=$lt_save_allow_undefined_flag
  8138. else
  8139. cat conftest.err 1>&5
  8140. fi
  8141. $RM conftest*
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8144. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8145. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8146. ;;
  8147. esac
  8148. fi
  8149. ;;
  8150. esac
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8152. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8153. if test "$GCC" = yes; then
  8154. case $host_os in
  8155. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8156. *) lt_awk_arg="/^libraries:/" ;;
  8157. esac
  8158. case $host_os in
  8159. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8160. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8161. esac
  8162. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8163. case $lt_search_path_spec in
  8164. *\;*)
  8165. # if the path contains ";" then we assume it to be the separator
  8166. # otherwise default to the standard path separator (i.e. ":") - it is
  8167. # assumed that no part of a normal pathname contains ";" but that should
  8168. # okay in the real world where ";" in dirpaths is itself problematic.
  8169. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8170. ;;
  8171. *)
  8172. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8173. ;;
  8174. esac
  8175. # Ok, now we have the path, separated by spaces, we can step through it
  8176. # and add multilib dir if necessary.
  8177. lt_tmp_lt_search_path_spec=
  8178. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8179. for lt_sys_path in $lt_search_path_spec; do
  8180. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8181. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8182. else
  8183. test -d "$lt_sys_path" && \
  8184. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8185. fi
  8186. done
  8187. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8188. BEGIN {RS=" "; FS="/|\n";} {
  8189. lt_foo="";
  8190. lt_count=0;
  8191. for (lt_i = NF; lt_i > 0; lt_i--) {
  8192. if ($lt_i != "" && $lt_i != ".") {
  8193. if ($lt_i == "..") {
  8194. lt_count++;
  8195. } else {
  8196. if (lt_count == 0) {
  8197. lt_foo="/" $lt_i lt_foo;
  8198. } else {
  8199. lt_count--;
  8200. }
  8201. }
  8202. }
  8203. }
  8204. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8205. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8206. }'`
  8207. # AWK program above erroneously prepends '/' to C:/dos/paths
  8208. # for these hosts.
  8209. case $host_os in
  8210. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8211. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8212. esac
  8213. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8214. else
  8215. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8216. fi
  8217. library_names_spec=
  8218. libname_spec='lib$name'
  8219. soname_spec=
  8220. shrext_cmds=".so"
  8221. postinstall_cmds=
  8222. postuninstall_cmds=
  8223. finish_cmds=
  8224. finish_eval=
  8225. shlibpath_var=
  8226. shlibpath_overrides_runpath=unknown
  8227. version_type=none
  8228. dynamic_linker="$host_os ld.so"
  8229. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8230. need_lib_prefix=unknown
  8231. hardcode_into_libs=no
  8232. # when you set need_version to no, make sure it does not cause -set_version
  8233. # flags to be left without arguments
  8234. need_version=unknown
  8235. case $host_os in
  8236. aix3*)
  8237. version_type=linux
  8238. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8239. shlibpath_var=LIBPATH
  8240. # AIX 3 has no versioning support, so we append a major version to the name.
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. ;;
  8243. aix[4-9]*)
  8244. version_type=linux
  8245. need_lib_prefix=no
  8246. need_version=no
  8247. hardcode_into_libs=yes
  8248. if test "$host_cpu" = ia64; then
  8249. # AIX 5 supports IA64
  8250. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8251. shlibpath_var=LD_LIBRARY_PATH
  8252. else
  8253. # With GCC up to 2.95.x, collect2 would create an import file
  8254. # for dependence libraries. The import file would start with
  8255. # the line `#! .'. This would cause the generated library to
  8256. # depend on `.', always an invalid library. This was fixed in
  8257. # development snapshots of GCC prior to 3.0.
  8258. case $host_os in
  8259. aix4 | aix4.[01] | aix4.[01].*)
  8260. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8261. echo ' yes '
  8262. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8263. :
  8264. else
  8265. can_build_shared=no
  8266. fi
  8267. ;;
  8268. esac
  8269. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8270. # soname into executable. Probably we can add versioning support to
  8271. # collect2, so additional links can be useful in future.
  8272. if test "$aix_use_runtimelinking" = yes; then
  8273. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8274. # instead of lib<name>.a to let people know that these are not
  8275. # typical AIX shared libraries.
  8276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8277. else
  8278. # We preserve .a as extension for shared libraries through AIX4.2
  8279. # and later when we are not doing run time linking.
  8280. library_names_spec='${libname}${release}.a $libname.a'
  8281. soname_spec='${libname}${release}${shared_ext}$major'
  8282. fi
  8283. shlibpath_var=LIBPATH
  8284. fi
  8285. ;;
  8286. amigaos*)
  8287. case $host_cpu in
  8288. powerpc)
  8289. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8290. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8292. ;;
  8293. m68k)
  8294. library_names_spec='$libname.ixlibrary $libname.a'
  8295. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8296. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8297. ;;
  8298. esac
  8299. ;;
  8300. beos*)
  8301. library_names_spec='${libname}${shared_ext}'
  8302. dynamic_linker="$host_os ld.so"
  8303. shlibpath_var=LIBRARY_PATH
  8304. ;;
  8305. bsdi[45]*)
  8306. version_type=linux
  8307. need_version=no
  8308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8309. soname_spec='${libname}${release}${shared_ext}$major'
  8310. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8311. shlibpath_var=LD_LIBRARY_PATH
  8312. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8313. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8314. # the default ld.so.conf also contains /usr/contrib/lib and
  8315. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8316. # libtool to hard-code these into programs
  8317. ;;
  8318. cygwin* | mingw* | pw32* | cegcc*)
  8319. version_type=windows
  8320. shrext_cmds=".dll"
  8321. need_version=no
  8322. need_lib_prefix=no
  8323. case $GCC,$cc_basename in
  8324. yes,*)
  8325. # gcc
  8326. library_names_spec='$libname.dll.a'
  8327. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8328. postinstall_cmds='base_file=`basename \${file}`~
  8329. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8330. dldir=$destdir/`dirname \$dlpath`~
  8331. test -d \$dldir || mkdir -p \$dldir~
  8332. $install_prog $dir/$dlname \$dldir/$dlname~
  8333. chmod a+x \$dldir/$dlname~
  8334. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8335. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8336. fi'
  8337. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8338. dlpath=$dir/\$dldll~
  8339. $RM \$dlpath'
  8340. shlibpath_overrides_runpath=yes
  8341. case $host_os in
  8342. cygwin*)
  8343. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8344. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8345. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8346. ;;
  8347. mingw* | cegcc*)
  8348. # MinGW DLLs use traditional 'lib' prefix
  8349. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8350. ;;
  8351. pw32*)
  8352. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8353. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8354. ;;
  8355. esac
  8356. dynamic_linker='Win32 ld.exe'
  8357. ;;
  8358. *,cl*)
  8359. # Native MSVC
  8360. libname_spec='$name'
  8361. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8362. library_names_spec='${libname}.dll.lib'
  8363. case $build_os in
  8364. mingw*)
  8365. sys_lib_search_path_spec=
  8366. lt_save_ifs=$IFS
  8367. IFS=';'
  8368. for lt_path in $LIB
  8369. do
  8370. IFS=$lt_save_ifs
  8371. # Let DOS variable expansion print the short 8.3 style file name.
  8372. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8373. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8374. done
  8375. IFS=$lt_save_ifs
  8376. # Convert to MSYS style.
  8377. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8378. ;;
  8379. cygwin*)
  8380. # Convert to unix form, then to dos form, then back to unix form
  8381. # but this time dos style (no spaces!) so that the unix form looks
  8382. # like /cygdrive/c/PROGRA~1:/cygdr...
  8383. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8384. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8385. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8386. ;;
  8387. *)
  8388. sys_lib_search_path_spec="$LIB"
  8389. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8390. # It is most probably a Windows format PATH.
  8391. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8392. else
  8393. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8394. fi
  8395. # FIXME: find the short name or the path components, as spaces are
  8396. # common. (e.g. "Program Files" -> "PROGRA~1")
  8397. ;;
  8398. esac
  8399. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8400. postinstall_cmds='base_file=`basename \${file}`~
  8401. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8402. dldir=$destdir/`dirname \$dlpath`~
  8403. test -d \$dldir || mkdir -p \$dldir~
  8404. $install_prog $dir/$dlname \$dldir/$dlname'
  8405. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8406. dlpath=$dir/\$dldll~
  8407. $RM \$dlpath'
  8408. shlibpath_overrides_runpath=yes
  8409. dynamic_linker='Win32 link.exe'
  8410. ;;
  8411. *)
  8412. # Assume MSVC wrapper
  8413. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8414. dynamic_linker='Win32 ld.exe'
  8415. ;;
  8416. esac
  8417. # FIXME: first we should search . and the directory the executable is in
  8418. shlibpath_var=PATH
  8419. ;;
  8420. darwin* | rhapsody*)
  8421. dynamic_linker="$host_os dyld"
  8422. version_type=darwin
  8423. need_lib_prefix=no
  8424. need_version=no
  8425. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8426. soname_spec='${libname}${release}${major}$shared_ext'
  8427. shlibpath_overrides_runpath=yes
  8428. shlibpath_var=DYLD_LIBRARY_PATH
  8429. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8430. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8431. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8432. ;;
  8433. dgux*)
  8434. version_type=linux
  8435. need_lib_prefix=no
  8436. need_version=no
  8437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8438. soname_spec='${libname}${release}${shared_ext}$major'
  8439. shlibpath_var=LD_LIBRARY_PATH
  8440. ;;
  8441. freebsd1*)
  8442. dynamic_linker=no
  8443. ;;
  8444. freebsd* | dragonfly*)
  8445. # DragonFly does not have aout. When/if they implement a new
  8446. # versioning mechanism, adjust this.
  8447. if test -x /usr/bin/objformat; then
  8448. objformat=`/usr/bin/objformat`
  8449. else
  8450. case $host_os in
  8451. freebsd[123]*) objformat=aout ;;
  8452. *) objformat=elf ;;
  8453. esac
  8454. fi
  8455. version_type=freebsd-$objformat
  8456. case $version_type in
  8457. freebsd-elf*)
  8458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8459. need_version=no
  8460. need_lib_prefix=no
  8461. ;;
  8462. freebsd-*)
  8463. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8464. need_version=yes
  8465. ;;
  8466. esac
  8467. shlibpath_var=LD_LIBRARY_PATH
  8468. case $host_os in
  8469. freebsd2*)
  8470. shlibpath_overrides_runpath=yes
  8471. ;;
  8472. freebsd3.[01]* | freebsdelf3.[01]*)
  8473. shlibpath_overrides_runpath=yes
  8474. hardcode_into_libs=yes
  8475. ;;
  8476. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8477. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8478. shlibpath_overrides_runpath=no
  8479. hardcode_into_libs=yes
  8480. ;;
  8481. *) # from 4.6 on, and DragonFly
  8482. shlibpath_overrides_runpath=yes
  8483. hardcode_into_libs=yes
  8484. ;;
  8485. esac
  8486. ;;
  8487. gnu*)
  8488. version_type=linux
  8489. need_lib_prefix=no
  8490. need_version=no
  8491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8492. soname_spec='${libname}${release}${shared_ext}$major'
  8493. shlibpath_var=LD_LIBRARY_PATH
  8494. shlibpath_overrides_runpath=no
  8495. hardcode_into_libs=yes
  8496. ;;
  8497. haiku*)
  8498. version_type=linux
  8499. need_lib_prefix=no
  8500. need_version=no
  8501. dynamic_linker="$host_os runtime_loader"
  8502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8503. soname_spec='${libname}${release}${shared_ext}$major'
  8504. shlibpath_var=LIBRARY_PATH
  8505. shlibpath_overrides_runpath=yes
  8506. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8507. hardcode_into_libs=yes
  8508. ;;
  8509. hpux9* | hpux10* | hpux11*)
  8510. # Give a soname corresponding to the major version so that dld.sl refuses to
  8511. # link against other versions.
  8512. version_type=sunos
  8513. need_lib_prefix=no
  8514. need_version=no
  8515. case $host_cpu in
  8516. ia64*)
  8517. shrext_cmds='.so'
  8518. hardcode_into_libs=yes
  8519. dynamic_linker="$host_os dld.so"
  8520. shlibpath_var=LD_LIBRARY_PATH
  8521. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8523. soname_spec='${libname}${release}${shared_ext}$major'
  8524. if test "X$HPUX_IA64_MODE" = X32; then
  8525. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8526. else
  8527. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8528. fi
  8529. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8530. ;;
  8531. hppa*64*)
  8532. shrext_cmds='.sl'
  8533. hardcode_into_libs=yes
  8534. dynamic_linker="$host_os dld.sl"
  8535. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8536. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8538. soname_spec='${libname}${release}${shared_ext}$major'
  8539. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8540. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8541. ;;
  8542. *)
  8543. shrext_cmds='.sl'
  8544. dynamic_linker="$host_os dld.sl"
  8545. shlibpath_var=SHLIB_PATH
  8546. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8548. soname_spec='${libname}${release}${shared_ext}$major'
  8549. ;;
  8550. esac
  8551. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8552. postinstall_cmds='chmod 555 $lib'
  8553. # or fails outright, so override atomically:
  8554. install_override_mode=555
  8555. ;;
  8556. interix[3-9]*)
  8557. version_type=linux
  8558. need_lib_prefix=no
  8559. need_version=no
  8560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8561. soname_spec='${libname}${release}${shared_ext}$major'
  8562. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8563. shlibpath_var=LD_LIBRARY_PATH
  8564. shlibpath_overrides_runpath=no
  8565. hardcode_into_libs=yes
  8566. ;;
  8567. irix5* | irix6* | nonstopux*)
  8568. case $host_os in
  8569. nonstopux*) version_type=nonstopux ;;
  8570. *)
  8571. if test "$lt_cv_prog_gnu_ld" = yes; then
  8572. version_type=linux
  8573. else
  8574. version_type=irix
  8575. fi ;;
  8576. esac
  8577. need_lib_prefix=no
  8578. need_version=no
  8579. soname_spec='${libname}${release}${shared_ext}$major'
  8580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8581. case $host_os in
  8582. irix5* | nonstopux*)
  8583. libsuff= shlibsuff=
  8584. ;;
  8585. *)
  8586. case $LD in # libtool.m4 will add one of these switches to LD
  8587. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8588. libsuff= shlibsuff= libmagic=32-bit;;
  8589. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8590. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8591. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8592. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8593. *) libsuff= shlibsuff= libmagic=never-match;;
  8594. esac
  8595. ;;
  8596. esac
  8597. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8598. shlibpath_overrides_runpath=no
  8599. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8600. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8601. hardcode_into_libs=yes
  8602. ;;
  8603. # No shared lib support for Linux oldld, aout, or coff.
  8604. linux*oldld* | linux*aout* | linux*coff*)
  8605. dynamic_linker=no
  8606. ;;
  8607. # This must be Linux ELF.
  8608. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8609. version_type=linux
  8610. need_lib_prefix=no
  8611. need_version=no
  8612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8613. soname_spec='${libname}${release}${shared_ext}$major'
  8614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8615. shlibpath_var=LD_LIBRARY_PATH
  8616. shlibpath_overrides_runpath=no
  8617. # Some binutils ld are patched to set DT_RUNPATH
  8618. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8619. $as_echo_n "(cached) " >&6
  8620. else
  8621. lt_cv_shlibpath_overrides_runpath=no
  8622. save_LDFLAGS=$LDFLAGS
  8623. save_libdir=$libdir
  8624. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8625. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8627. /* end confdefs.h. */
  8628. int
  8629. main ()
  8630. {
  8631. ;
  8632. return 0;
  8633. }
  8634. _ACEOF
  8635. if ac_fn_c_try_link "$LINENO"; then :
  8636. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8637. lt_cv_shlibpath_overrides_runpath=yes
  8638. fi
  8639. fi
  8640. rm -f core conftest.err conftest.$ac_objext \
  8641. conftest$ac_exeext conftest.$ac_ext
  8642. LDFLAGS=$save_LDFLAGS
  8643. libdir=$save_libdir
  8644. fi
  8645. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8646. # This implies no fast_install, which is unacceptable.
  8647. # Some rework will be needed to allow for fast_install
  8648. # before this can be enabled.
  8649. hardcode_into_libs=yes
  8650. # Append ld.so.conf contents to the search path
  8651. if test -f /etc/ld.so.conf; then
  8652. 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' ' '`
  8653. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8654. fi
  8655. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8656. # powerpc, because MkLinux only supported shared libraries with the
  8657. # GNU dynamic linker. Since this was broken with cross compilers,
  8658. # most powerpc-linux boxes support dynamic linking these days and
  8659. # people can always --disable-shared, the test was removed, and we
  8660. # assume the GNU/Linux dynamic linker is in use.
  8661. dynamic_linker='GNU/Linux ld.so'
  8662. ;;
  8663. netbsdelf*-gnu)
  8664. version_type=linux
  8665. need_lib_prefix=no
  8666. need_version=no
  8667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8668. soname_spec='${libname}${release}${shared_ext}$major'
  8669. shlibpath_var=LD_LIBRARY_PATH
  8670. shlibpath_overrides_runpath=no
  8671. hardcode_into_libs=yes
  8672. dynamic_linker='NetBSD ld.elf_so'
  8673. ;;
  8674. netbsd*)
  8675. version_type=sunos
  8676. need_lib_prefix=no
  8677. need_version=no
  8678. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8680. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8681. dynamic_linker='NetBSD (a.out) ld.so'
  8682. else
  8683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8684. soname_spec='${libname}${release}${shared_ext}$major'
  8685. dynamic_linker='NetBSD ld.elf_so'
  8686. fi
  8687. shlibpath_var=LD_LIBRARY_PATH
  8688. shlibpath_overrides_runpath=yes
  8689. hardcode_into_libs=yes
  8690. ;;
  8691. newsos6)
  8692. version_type=linux
  8693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8694. shlibpath_var=LD_LIBRARY_PATH
  8695. shlibpath_overrides_runpath=yes
  8696. ;;
  8697. *nto* | *qnx*)
  8698. version_type=qnx
  8699. need_lib_prefix=no
  8700. need_version=no
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8702. soname_spec='${libname}${release}${shared_ext}$major'
  8703. shlibpath_var=LD_LIBRARY_PATH
  8704. shlibpath_overrides_runpath=no
  8705. hardcode_into_libs=yes
  8706. dynamic_linker='ldqnx.so'
  8707. ;;
  8708. openbsd*)
  8709. version_type=sunos
  8710. sys_lib_dlsearch_path_spec="/usr/lib"
  8711. need_lib_prefix=no
  8712. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8713. case $host_os in
  8714. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8715. *) need_version=no ;;
  8716. esac
  8717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8718. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8719. shlibpath_var=LD_LIBRARY_PATH
  8720. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8721. case $host_os in
  8722. openbsd2.[89] | openbsd2.[89].*)
  8723. shlibpath_overrides_runpath=no
  8724. ;;
  8725. *)
  8726. shlibpath_overrides_runpath=yes
  8727. ;;
  8728. esac
  8729. else
  8730. shlibpath_overrides_runpath=yes
  8731. fi
  8732. ;;
  8733. os2*)
  8734. libname_spec='$name'
  8735. shrext_cmds=".dll"
  8736. need_lib_prefix=no
  8737. library_names_spec='$libname${shared_ext} $libname.a'
  8738. dynamic_linker='OS/2 ld.exe'
  8739. shlibpath_var=LIBPATH
  8740. ;;
  8741. osf3* | osf4* | osf5*)
  8742. version_type=osf
  8743. need_lib_prefix=no
  8744. need_version=no
  8745. soname_spec='${libname}${release}${shared_ext}$major'
  8746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8747. shlibpath_var=LD_LIBRARY_PATH
  8748. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8749. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8750. ;;
  8751. rdos*)
  8752. dynamic_linker=no
  8753. ;;
  8754. solaris*)
  8755. version_type=linux
  8756. need_lib_prefix=no
  8757. need_version=no
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8759. soname_spec='${libname}${release}${shared_ext}$major'
  8760. shlibpath_var=LD_LIBRARY_PATH
  8761. shlibpath_overrides_runpath=yes
  8762. hardcode_into_libs=yes
  8763. # ldd complains unless libraries are executable
  8764. postinstall_cmds='chmod +x $lib'
  8765. ;;
  8766. sunos4*)
  8767. version_type=sunos
  8768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8769. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8770. shlibpath_var=LD_LIBRARY_PATH
  8771. shlibpath_overrides_runpath=yes
  8772. if test "$with_gnu_ld" = yes; then
  8773. need_lib_prefix=no
  8774. fi
  8775. need_version=yes
  8776. ;;
  8777. sysv4 | sysv4.3*)
  8778. version_type=linux
  8779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8780. soname_spec='${libname}${release}${shared_ext}$major'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. case $host_vendor in
  8783. sni)
  8784. shlibpath_overrides_runpath=no
  8785. need_lib_prefix=no
  8786. runpath_var=LD_RUN_PATH
  8787. ;;
  8788. siemens)
  8789. need_lib_prefix=no
  8790. ;;
  8791. motorola)
  8792. need_lib_prefix=no
  8793. need_version=no
  8794. shlibpath_overrides_runpath=no
  8795. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8796. ;;
  8797. esac
  8798. ;;
  8799. sysv4*MP*)
  8800. if test -d /usr/nec ;then
  8801. version_type=linux
  8802. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8803. soname_spec='$libname${shared_ext}.$major'
  8804. shlibpath_var=LD_LIBRARY_PATH
  8805. fi
  8806. ;;
  8807. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8808. version_type=freebsd-elf
  8809. need_lib_prefix=no
  8810. need_version=no
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8812. soname_spec='${libname}${release}${shared_ext}$major'
  8813. shlibpath_var=LD_LIBRARY_PATH
  8814. shlibpath_overrides_runpath=yes
  8815. hardcode_into_libs=yes
  8816. if test "$with_gnu_ld" = yes; then
  8817. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8818. else
  8819. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8820. case $host_os in
  8821. sco3.2v5*)
  8822. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8823. ;;
  8824. esac
  8825. fi
  8826. sys_lib_dlsearch_path_spec='/usr/lib'
  8827. ;;
  8828. tpf*)
  8829. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8830. version_type=linux
  8831. need_lib_prefix=no
  8832. need_version=no
  8833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. shlibpath_overrides_runpath=no
  8836. hardcode_into_libs=yes
  8837. ;;
  8838. uts4*)
  8839. version_type=linux
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8841. soname_spec='${libname}${release}${shared_ext}$major'
  8842. shlibpath_var=LD_LIBRARY_PATH
  8843. ;;
  8844. *)
  8845. dynamic_linker=no
  8846. ;;
  8847. esac
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8849. $as_echo "$dynamic_linker" >&6; }
  8850. test "$dynamic_linker" = no && can_build_shared=no
  8851. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8852. if test "$GCC" = yes; then
  8853. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8854. fi
  8855. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8856. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8857. fi
  8858. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8859. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8860. fi
  8861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8862. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8863. hardcode_action=
  8864. if test -n "$hardcode_libdir_flag_spec" ||
  8865. test -n "$runpath_var" ||
  8866. test "X$hardcode_automatic" = "Xyes" ; then
  8867. # We can hardcode non-existent directories.
  8868. if test "$hardcode_direct" != no &&
  8869. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8870. # have to relink, otherwise we might link with an installed library
  8871. # when we should be linking with a yet-to-be-installed one
  8872. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8873. test "$hardcode_minus_L" != no; then
  8874. # Linking always hardcodes the temporary library directory.
  8875. hardcode_action=relink
  8876. else
  8877. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8878. hardcode_action=immediate
  8879. fi
  8880. else
  8881. # We cannot hardcode anything, or else we can only hardcode existing
  8882. # directories.
  8883. hardcode_action=unsupported
  8884. fi
  8885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8886. $as_echo "$hardcode_action" >&6; }
  8887. if test "$hardcode_action" = relink ||
  8888. test "$inherit_rpath" = yes; then
  8889. # Fast installation is not supported
  8890. enable_fast_install=no
  8891. elif test "$shlibpath_overrides_runpath" = yes ||
  8892. test "$enable_shared" = no; then
  8893. # Fast installation is not necessary
  8894. enable_fast_install=needless
  8895. fi
  8896. if test "x$enable_dlopen" != xyes; then
  8897. enable_dlopen=unknown
  8898. enable_dlopen_self=unknown
  8899. enable_dlopen_self_static=unknown
  8900. else
  8901. lt_cv_dlopen=no
  8902. lt_cv_dlopen_libs=
  8903. case $host_os in
  8904. beos*)
  8905. lt_cv_dlopen="load_add_on"
  8906. lt_cv_dlopen_libs=
  8907. lt_cv_dlopen_self=yes
  8908. ;;
  8909. mingw* | pw32* | cegcc*)
  8910. lt_cv_dlopen="LoadLibrary"
  8911. lt_cv_dlopen_libs=
  8912. ;;
  8913. cygwin*)
  8914. lt_cv_dlopen="dlopen"
  8915. lt_cv_dlopen_libs=
  8916. ;;
  8917. darwin*)
  8918. # if libdl is installed we need to link against it
  8919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8920. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8921. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8922. $as_echo_n "(cached) " >&6
  8923. else
  8924. ac_check_lib_save_LIBS=$LIBS
  8925. LIBS="-ldl $LIBS"
  8926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8927. /* end confdefs.h. */
  8928. /* Override any GCC internal prototype to avoid an error.
  8929. Use char because int might match the return type of a GCC
  8930. builtin and then its argument prototype would still apply. */
  8931. #ifdef __cplusplus
  8932. extern "C"
  8933. #endif
  8934. char dlopen ();
  8935. int
  8936. main ()
  8937. {
  8938. return dlopen ();
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. if ac_fn_c_try_link "$LINENO"; then :
  8944. ac_cv_lib_dl_dlopen=yes
  8945. else
  8946. ac_cv_lib_dl_dlopen=no
  8947. fi
  8948. rm -f core conftest.err conftest.$ac_objext \
  8949. conftest$ac_exeext conftest.$ac_ext
  8950. LIBS=$ac_check_lib_save_LIBS
  8951. fi
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8953. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8954. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8955. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8956. else
  8957. lt_cv_dlopen="dyld"
  8958. lt_cv_dlopen_libs=
  8959. lt_cv_dlopen_self=yes
  8960. fi
  8961. ;;
  8962. *)
  8963. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8964. if test "x$ac_cv_func_shl_load" = xyes; then :
  8965. lt_cv_dlopen="shl_load"
  8966. else
  8967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8968. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8969. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8970. $as_echo_n "(cached) " >&6
  8971. else
  8972. ac_check_lib_save_LIBS=$LIBS
  8973. LIBS="-ldld $LIBS"
  8974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8975. /* end confdefs.h. */
  8976. /* Override any GCC internal prototype to avoid an error.
  8977. Use char because int might match the return type of a GCC
  8978. builtin and then its argument prototype would still apply. */
  8979. #ifdef __cplusplus
  8980. extern "C"
  8981. #endif
  8982. char shl_load ();
  8983. int
  8984. main ()
  8985. {
  8986. return shl_load ();
  8987. ;
  8988. return 0;
  8989. }
  8990. _ACEOF
  8991. if ac_fn_c_try_link "$LINENO"; then :
  8992. ac_cv_lib_dld_shl_load=yes
  8993. else
  8994. ac_cv_lib_dld_shl_load=no
  8995. fi
  8996. rm -f core conftest.err conftest.$ac_objext \
  8997. conftest$ac_exeext conftest.$ac_ext
  8998. LIBS=$ac_check_lib_save_LIBS
  8999. fi
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9001. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9002. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9003. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9004. else
  9005. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9006. if test "x$ac_cv_func_dlopen" = xyes; then :
  9007. lt_cv_dlopen="dlopen"
  9008. else
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9010. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9011. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9012. $as_echo_n "(cached) " >&6
  9013. else
  9014. ac_check_lib_save_LIBS=$LIBS
  9015. LIBS="-ldl $LIBS"
  9016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9017. /* end confdefs.h. */
  9018. /* Override any GCC internal prototype to avoid an error.
  9019. Use char because int might match the return type of a GCC
  9020. builtin and then its argument prototype would still apply. */
  9021. #ifdef __cplusplus
  9022. extern "C"
  9023. #endif
  9024. char dlopen ();
  9025. int
  9026. main ()
  9027. {
  9028. return dlopen ();
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. if ac_fn_c_try_link "$LINENO"; then :
  9034. ac_cv_lib_dl_dlopen=yes
  9035. else
  9036. ac_cv_lib_dl_dlopen=no
  9037. fi
  9038. rm -f core conftest.err conftest.$ac_objext \
  9039. conftest$ac_exeext conftest.$ac_ext
  9040. LIBS=$ac_check_lib_save_LIBS
  9041. fi
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9043. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9044. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9045. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9046. else
  9047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9048. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9049. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9050. $as_echo_n "(cached) " >&6
  9051. else
  9052. ac_check_lib_save_LIBS=$LIBS
  9053. LIBS="-lsvld $LIBS"
  9054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9055. /* end confdefs.h. */
  9056. /* Override any GCC internal prototype to avoid an error.
  9057. Use char because int might match the return type of a GCC
  9058. builtin and then its argument prototype would still apply. */
  9059. #ifdef __cplusplus
  9060. extern "C"
  9061. #endif
  9062. char dlopen ();
  9063. int
  9064. main ()
  9065. {
  9066. return dlopen ();
  9067. ;
  9068. return 0;
  9069. }
  9070. _ACEOF
  9071. if ac_fn_c_try_link "$LINENO"; then :
  9072. ac_cv_lib_svld_dlopen=yes
  9073. else
  9074. ac_cv_lib_svld_dlopen=no
  9075. fi
  9076. rm -f core conftest.err conftest.$ac_objext \
  9077. conftest$ac_exeext conftest.$ac_ext
  9078. LIBS=$ac_check_lib_save_LIBS
  9079. fi
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9081. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9082. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9083. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9084. else
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9086. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9087. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9088. $as_echo_n "(cached) " >&6
  9089. else
  9090. ac_check_lib_save_LIBS=$LIBS
  9091. LIBS="-ldld $LIBS"
  9092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9093. /* end confdefs.h. */
  9094. /* Override any GCC internal prototype to avoid an error.
  9095. Use char because int might match the return type of a GCC
  9096. builtin and then its argument prototype would still apply. */
  9097. #ifdef __cplusplus
  9098. extern "C"
  9099. #endif
  9100. char dld_link ();
  9101. int
  9102. main ()
  9103. {
  9104. return dld_link ();
  9105. ;
  9106. return 0;
  9107. }
  9108. _ACEOF
  9109. if ac_fn_c_try_link "$LINENO"; then :
  9110. ac_cv_lib_dld_dld_link=yes
  9111. else
  9112. ac_cv_lib_dld_dld_link=no
  9113. fi
  9114. rm -f core conftest.err conftest.$ac_objext \
  9115. conftest$ac_exeext conftest.$ac_ext
  9116. LIBS=$ac_check_lib_save_LIBS
  9117. fi
  9118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9119. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9120. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9121. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9122. fi
  9123. fi
  9124. fi
  9125. fi
  9126. fi
  9127. fi
  9128. ;;
  9129. esac
  9130. if test "x$lt_cv_dlopen" != xno; then
  9131. enable_dlopen=yes
  9132. else
  9133. enable_dlopen=no
  9134. fi
  9135. case $lt_cv_dlopen in
  9136. dlopen)
  9137. save_CPPFLAGS="$CPPFLAGS"
  9138. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9139. save_LDFLAGS="$LDFLAGS"
  9140. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9141. save_LIBS="$LIBS"
  9142. LIBS="$lt_cv_dlopen_libs $LIBS"
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9144. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9145. if ${lt_cv_dlopen_self+:} false; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. if test "$cross_compiling" = yes; then :
  9149. lt_cv_dlopen_self=cross
  9150. else
  9151. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9152. lt_status=$lt_dlunknown
  9153. cat > conftest.$ac_ext <<_LT_EOF
  9154. #line $LINENO "configure"
  9155. #include "confdefs.h"
  9156. #if HAVE_DLFCN_H
  9157. #include <dlfcn.h>
  9158. #endif
  9159. #include <stdio.h>
  9160. #ifdef RTLD_GLOBAL
  9161. # define LT_DLGLOBAL RTLD_GLOBAL
  9162. #else
  9163. # ifdef DL_GLOBAL
  9164. # define LT_DLGLOBAL DL_GLOBAL
  9165. # else
  9166. # define LT_DLGLOBAL 0
  9167. # endif
  9168. #endif
  9169. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9170. find out it does not work in some platform. */
  9171. #ifndef LT_DLLAZY_OR_NOW
  9172. # ifdef RTLD_LAZY
  9173. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9174. # else
  9175. # ifdef DL_LAZY
  9176. # define LT_DLLAZY_OR_NOW DL_LAZY
  9177. # else
  9178. # ifdef RTLD_NOW
  9179. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9180. # else
  9181. # ifdef DL_NOW
  9182. # define LT_DLLAZY_OR_NOW DL_NOW
  9183. # else
  9184. # define LT_DLLAZY_OR_NOW 0
  9185. # endif
  9186. # endif
  9187. # endif
  9188. # endif
  9189. #endif
  9190. /* When -fvisbility=hidden is used, assume the code has been annotated
  9191. correspondingly for the symbols needed. */
  9192. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9193. int fnord () __attribute__((visibility("default")));
  9194. #endif
  9195. int fnord () { return 42; }
  9196. int main ()
  9197. {
  9198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9199. int status = $lt_dlunknown;
  9200. if (self)
  9201. {
  9202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9203. else
  9204. {
  9205. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9206. else puts (dlerror ());
  9207. }
  9208. /* dlclose (self); */
  9209. }
  9210. else
  9211. puts (dlerror ());
  9212. return status;
  9213. }
  9214. _LT_EOF
  9215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9216. (eval $ac_link) 2>&5
  9217. ac_status=$?
  9218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9219. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9220. (./conftest; exit; ) >&5 2>/dev/null
  9221. lt_status=$?
  9222. case x$lt_status in
  9223. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9224. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9225. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9226. esac
  9227. else :
  9228. # compilation failed
  9229. lt_cv_dlopen_self=no
  9230. fi
  9231. fi
  9232. rm -fr conftest*
  9233. fi
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9235. $as_echo "$lt_cv_dlopen_self" >&6; }
  9236. if test "x$lt_cv_dlopen_self" = xyes; then
  9237. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9239. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9240. if ${lt_cv_dlopen_self_static+:} false; then :
  9241. $as_echo_n "(cached) " >&6
  9242. else
  9243. if test "$cross_compiling" = yes; then :
  9244. lt_cv_dlopen_self_static=cross
  9245. else
  9246. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9247. lt_status=$lt_dlunknown
  9248. cat > conftest.$ac_ext <<_LT_EOF
  9249. #line $LINENO "configure"
  9250. #include "confdefs.h"
  9251. #if HAVE_DLFCN_H
  9252. #include <dlfcn.h>
  9253. #endif
  9254. #include <stdio.h>
  9255. #ifdef RTLD_GLOBAL
  9256. # define LT_DLGLOBAL RTLD_GLOBAL
  9257. #else
  9258. # ifdef DL_GLOBAL
  9259. # define LT_DLGLOBAL DL_GLOBAL
  9260. # else
  9261. # define LT_DLGLOBAL 0
  9262. # endif
  9263. #endif
  9264. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9265. find out it does not work in some platform. */
  9266. #ifndef LT_DLLAZY_OR_NOW
  9267. # ifdef RTLD_LAZY
  9268. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9269. # else
  9270. # ifdef DL_LAZY
  9271. # define LT_DLLAZY_OR_NOW DL_LAZY
  9272. # else
  9273. # ifdef RTLD_NOW
  9274. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9275. # else
  9276. # ifdef DL_NOW
  9277. # define LT_DLLAZY_OR_NOW DL_NOW
  9278. # else
  9279. # define LT_DLLAZY_OR_NOW 0
  9280. # endif
  9281. # endif
  9282. # endif
  9283. # endif
  9284. #endif
  9285. /* When -fvisbility=hidden is used, assume the code has been annotated
  9286. correspondingly for the symbols needed. */
  9287. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9288. int fnord () __attribute__((visibility("default")));
  9289. #endif
  9290. int fnord () { return 42; }
  9291. int main ()
  9292. {
  9293. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9294. int status = $lt_dlunknown;
  9295. if (self)
  9296. {
  9297. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9298. else
  9299. {
  9300. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9301. else puts (dlerror ());
  9302. }
  9303. /* dlclose (self); */
  9304. }
  9305. else
  9306. puts (dlerror ());
  9307. return status;
  9308. }
  9309. _LT_EOF
  9310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9311. (eval $ac_link) 2>&5
  9312. ac_status=$?
  9313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9314. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9315. (./conftest; exit; ) >&5 2>/dev/null
  9316. lt_status=$?
  9317. case x$lt_status in
  9318. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9319. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9320. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9321. esac
  9322. else :
  9323. # compilation failed
  9324. lt_cv_dlopen_self_static=no
  9325. fi
  9326. fi
  9327. rm -fr conftest*
  9328. fi
  9329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9330. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9331. fi
  9332. CPPFLAGS="$save_CPPFLAGS"
  9333. LDFLAGS="$save_LDFLAGS"
  9334. LIBS="$save_LIBS"
  9335. ;;
  9336. esac
  9337. case $lt_cv_dlopen_self in
  9338. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9339. *) enable_dlopen_self=unknown ;;
  9340. esac
  9341. case $lt_cv_dlopen_self_static in
  9342. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9343. *) enable_dlopen_self_static=unknown ;;
  9344. esac
  9345. fi
  9346. striplib=
  9347. old_striplib=
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9349. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9350. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9351. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9352. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9354. $as_echo "yes" >&6; }
  9355. else
  9356. # FIXME - insert some real tests, host_os isn't really good enough
  9357. case $host_os in
  9358. darwin*)
  9359. if test -n "$STRIP" ; then
  9360. striplib="$STRIP -x"
  9361. old_striplib="$STRIP -S"
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9363. $as_echo "yes" >&6; }
  9364. else
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9366. $as_echo "no" >&6; }
  9367. fi
  9368. ;;
  9369. *)
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9371. $as_echo "no" >&6; }
  9372. ;;
  9373. esac
  9374. fi
  9375. # Report which library types will actually be built
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9377. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9379. $as_echo "$can_build_shared" >&6; }
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9381. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9382. test "$can_build_shared" = "no" && enable_shared=no
  9383. # On AIX, shared libraries and static libraries use the same namespace, and
  9384. # are all built from PIC.
  9385. case $host_os in
  9386. aix3*)
  9387. test "$enable_shared" = yes && enable_static=no
  9388. if test -n "$RANLIB"; then
  9389. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9390. postinstall_cmds='$RANLIB $lib'
  9391. fi
  9392. ;;
  9393. aix[4-9]*)
  9394. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9395. test "$enable_shared" = yes && enable_static=no
  9396. fi
  9397. ;;
  9398. esac
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9400. $as_echo "$enable_shared" >&6; }
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9402. $as_echo_n "checking whether to build static libraries... " >&6; }
  9403. # Make sure either enable_shared or enable_static is yes.
  9404. test "$enable_shared" = yes || enable_static=yes
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9406. $as_echo "$enable_static" >&6; }
  9407. fi
  9408. ac_ext=c
  9409. ac_cpp='$CPP $CPPFLAGS'
  9410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9413. CC="$lt_save_CC"
  9414. ac_config_commands="$ac_config_commands libtool"
  9415. # Only expand once:
  9416. ac_ext=c
  9417. ac_cpp='$CPP $CPPFLAGS'
  9418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9421. if test -n "$ac_tool_prefix"; then
  9422. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9423. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9425. $as_echo_n "checking for $ac_word... " >&6; }
  9426. if ${ac_cv_prog_CC+:} false; then :
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. if test -n "$CC"; then
  9430. ac_cv_prog_CC="$CC" # Let the user override the test.
  9431. else
  9432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9433. for as_dir in $PATH
  9434. do
  9435. IFS=$as_save_IFS
  9436. test -z "$as_dir" && as_dir=.
  9437. for ac_exec_ext in '' $ac_executable_extensions; do
  9438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9439. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9441. break 2
  9442. fi
  9443. done
  9444. done
  9445. IFS=$as_save_IFS
  9446. fi
  9447. fi
  9448. CC=$ac_cv_prog_CC
  9449. if test -n "$CC"; then
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9451. $as_echo "$CC" >&6; }
  9452. else
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9454. $as_echo "no" >&6; }
  9455. fi
  9456. fi
  9457. if test -z "$ac_cv_prog_CC"; then
  9458. ac_ct_CC=$CC
  9459. # Extract the first word of "gcc", so it can be a program name with args.
  9460. set dummy gcc; ac_word=$2
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9462. $as_echo_n "checking for $ac_word... " >&6; }
  9463. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9464. $as_echo_n "(cached) " >&6
  9465. else
  9466. if test -n "$ac_ct_CC"; then
  9467. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9468. else
  9469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9470. for as_dir in $PATH
  9471. do
  9472. IFS=$as_save_IFS
  9473. test -z "$as_dir" && as_dir=.
  9474. for ac_exec_ext in '' $ac_executable_extensions; do
  9475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9476. ac_cv_prog_ac_ct_CC="gcc"
  9477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9478. break 2
  9479. fi
  9480. done
  9481. done
  9482. IFS=$as_save_IFS
  9483. fi
  9484. fi
  9485. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9486. if test -n "$ac_ct_CC"; then
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9488. $as_echo "$ac_ct_CC" >&6; }
  9489. else
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9491. $as_echo "no" >&6; }
  9492. fi
  9493. if test "x$ac_ct_CC" = x; then
  9494. CC=""
  9495. else
  9496. case $cross_compiling:$ac_tool_warned in
  9497. yes:)
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9500. ac_tool_warned=yes ;;
  9501. esac
  9502. CC=$ac_ct_CC
  9503. fi
  9504. else
  9505. CC="$ac_cv_prog_CC"
  9506. fi
  9507. if test -z "$CC"; then
  9508. if test -n "$ac_tool_prefix"; then
  9509. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9510. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9512. $as_echo_n "checking for $ac_word... " >&6; }
  9513. if ${ac_cv_prog_CC+:} false; then :
  9514. $as_echo_n "(cached) " >&6
  9515. else
  9516. if test -n "$CC"; then
  9517. ac_cv_prog_CC="$CC" # Let the user override the test.
  9518. else
  9519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9520. for as_dir in $PATH
  9521. do
  9522. IFS=$as_save_IFS
  9523. test -z "$as_dir" && as_dir=.
  9524. for ac_exec_ext in '' $ac_executable_extensions; do
  9525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9526. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9528. break 2
  9529. fi
  9530. done
  9531. done
  9532. IFS=$as_save_IFS
  9533. fi
  9534. fi
  9535. CC=$ac_cv_prog_CC
  9536. if test -n "$CC"; then
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9538. $as_echo "$CC" >&6; }
  9539. else
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9541. $as_echo "no" >&6; }
  9542. fi
  9543. fi
  9544. fi
  9545. if test -z "$CC"; then
  9546. # Extract the first word of "cc", so it can be a program name with args.
  9547. set dummy cc; ac_word=$2
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9549. $as_echo_n "checking for $ac_word... " >&6; }
  9550. if ${ac_cv_prog_CC+:} false; then :
  9551. $as_echo_n "(cached) " >&6
  9552. else
  9553. if test -n "$CC"; then
  9554. ac_cv_prog_CC="$CC" # Let the user override the test.
  9555. else
  9556. ac_prog_rejected=no
  9557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9558. for as_dir in $PATH
  9559. do
  9560. IFS=$as_save_IFS
  9561. test -z "$as_dir" && as_dir=.
  9562. for ac_exec_ext in '' $ac_executable_extensions; do
  9563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9564. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9565. ac_prog_rejected=yes
  9566. continue
  9567. fi
  9568. ac_cv_prog_CC="cc"
  9569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9570. break 2
  9571. fi
  9572. done
  9573. done
  9574. IFS=$as_save_IFS
  9575. if test $ac_prog_rejected = yes; then
  9576. # We found a bogon in the path, so make sure we never use it.
  9577. set dummy $ac_cv_prog_CC
  9578. shift
  9579. if test $# != 0; then
  9580. # We chose a different compiler from the bogus one.
  9581. # However, it has the same basename, so the bogon will be chosen
  9582. # first if we set CC to just the basename; use the full file name.
  9583. shift
  9584. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9585. fi
  9586. fi
  9587. fi
  9588. fi
  9589. CC=$ac_cv_prog_CC
  9590. if test -n "$CC"; then
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9592. $as_echo "$CC" >&6; }
  9593. else
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9595. $as_echo "no" >&6; }
  9596. fi
  9597. fi
  9598. if test -z "$CC"; then
  9599. if test -n "$ac_tool_prefix"; then
  9600. for ac_prog in cl.exe
  9601. do
  9602. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9603. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9605. $as_echo_n "checking for $ac_word... " >&6; }
  9606. if ${ac_cv_prog_CC+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. if test -n "$CC"; then
  9610. ac_cv_prog_CC="$CC" # Let the user override the test.
  9611. else
  9612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9613. for as_dir in $PATH
  9614. do
  9615. IFS=$as_save_IFS
  9616. test -z "$as_dir" && as_dir=.
  9617. for ac_exec_ext in '' $ac_executable_extensions; do
  9618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9619. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9621. break 2
  9622. fi
  9623. done
  9624. done
  9625. IFS=$as_save_IFS
  9626. fi
  9627. fi
  9628. CC=$ac_cv_prog_CC
  9629. if test -n "$CC"; then
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9631. $as_echo "$CC" >&6; }
  9632. else
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9634. $as_echo "no" >&6; }
  9635. fi
  9636. test -n "$CC" && break
  9637. done
  9638. fi
  9639. if test -z "$CC"; then
  9640. ac_ct_CC=$CC
  9641. for ac_prog in cl.exe
  9642. do
  9643. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9644. set dummy $ac_prog; ac_word=$2
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9646. $as_echo_n "checking for $ac_word... " >&6; }
  9647. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9648. $as_echo_n "(cached) " >&6
  9649. else
  9650. if test -n "$ac_ct_CC"; then
  9651. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9652. else
  9653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9654. for as_dir in $PATH
  9655. do
  9656. IFS=$as_save_IFS
  9657. test -z "$as_dir" && as_dir=.
  9658. for ac_exec_ext in '' $ac_executable_extensions; do
  9659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9660. ac_cv_prog_ac_ct_CC="$ac_prog"
  9661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9662. break 2
  9663. fi
  9664. done
  9665. done
  9666. IFS=$as_save_IFS
  9667. fi
  9668. fi
  9669. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9670. if test -n "$ac_ct_CC"; then
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9672. $as_echo "$ac_ct_CC" >&6; }
  9673. else
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9675. $as_echo "no" >&6; }
  9676. fi
  9677. test -n "$ac_ct_CC" && break
  9678. done
  9679. if test "x$ac_ct_CC" = x; then
  9680. CC=""
  9681. else
  9682. case $cross_compiling:$ac_tool_warned in
  9683. yes:)
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9686. ac_tool_warned=yes ;;
  9687. esac
  9688. CC=$ac_ct_CC
  9689. fi
  9690. fi
  9691. fi
  9692. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9693. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9694. as_fn_error $? "no acceptable C compiler found in \$PATH
  9695. See \`config.log' for more details" "$LINENO" 5; }
  9696. # Provide some information about the compiler.
  9697. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9698. set X $ac_compile
  9699. ac_compiler=$2
  9700. for ac_option in --version -v -V -qversion; do
  9701. { { ac_try="$ac_compiler $ac_option >&5"
  9702. case "(($ac_try" in
  9703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9704. *) ac_try_echo=$ac_try;;
  9705. esac
  9706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9707. $as_echo "$ac_try_echo"; } >&5
  9708. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9709. ac_status=$?
  9710. if test -s conftest.err; then
  9711. sed '10a\
  9712. ... rest of stderr output deleted ...
  9713. 10q' conftest.err >conftest.er1
  9714. cat conftest.er1 >&5
  9715. fi
  9716. rm -f conftest.er1 conftest.err
  9717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9718. test $ac_status = 0; }
  9719. done
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9721. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9722. if ${ac_cv_c_compiler_gnu+:} false; then :
  9723. $as_echo_n "(cached) " >&6
  9724. else
  9725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9726. /* end confdefs.h. */
  9727. int
  9728. main ()
  9729. {
  9730. #ifndef __GNUC__
  9731. choke me
  9732. #endif
  9733. ;
  9734. return 0;
  9735. }
  9736. _ACEOF
  9737. if ac_fn_c_try_compile "$LINENO"; then :
  9738. ac_compiler_gnu=yes
  9739. else
  9740. ac_compiler_gnu=no
  9741. fi
  9742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9743. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9744. fi
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9746. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9747. if test $ac_compiler_gnu = yes; then
  9748. GCC=yes
  9749. else
  9750. GCC=
  9751. fi
  9752. ac_test_CFLAGS=${CFLAGS+set}
  9753. ac_save_CFLAGS=$CFLAGS
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9755. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9756. if ${ac_cv_prog_cc_g+:} false; then :
  9757. $as_echo_n "(cached) " >&6
  9758. else
  9759. ac_save_c_werror_flag=$ac_c_werror_flag
  9760. ac_c_werror_flag=yes
  9761. ac_cv_prog_cc_g=no
  9762. CFLAGS="-g"
  9763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9764. /* end confdefs.h. */
  9765. int
  9766. main ()
  9767. {
  9768. ;
  9769. return 0;
  9770. }
  9771. _ACEOF
  9772. if ac_fn_c_try_compile "$LINENO"; then :
  9773. ac_cv_prog_cc_g=yes
  9774. else
  9775. CFLAGS=""
  9776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9777. /* end confdefs.h. */
  9778. int
  9779. main ()
  9780. {
  9781. ;
  9782. return 0;
  9783. }
  9784. _ACEOF
  9785. if ac_fn_c_try_compile "$LINENO"; then :
  9786. else
  9787. ac_c_werror_flag=$ac_save_c_werror_flag
  9788. CFLAGS="-g"
  9789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9790. /* end confdefs.h. */
  9791. int
  9792. main ()
  9793. {
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. if ac_fn_c_try_compile "$LINENO"; then :
  9799. ac_cv_prog_cc_g=yes
  9800. fi
  9801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9802. fi
  9803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9804. fi
  9805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9806. ac_c_werror_flag=$ac_save_c_werror_flag
  9807. fi
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9809. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9810. if test "$ac_test_CFLAGS" = set; then
  9811. CFLAGS=$ac_save_CFLAGS
  9812. elif test $ac_cv_prog_cc_g = yes; then
  9813. if test "$GCC" = yes; then
  9814. CFLAGS="-g -O2"
  9815. else
  9816. CFLAGS="-g"
  9817. fi
  9818. else
  9819. if test "$GCC" = yes; then
  9820. CFLAGS="-O2"
  9821. else
  9822. CFLAGS=
  9823. fi
  9824. fi
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9826. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9827. if ${ac_cv_prog_cc_c89+:} false; then :
  9828. $as_echo_n "(cached) " >&6
  9829. else
  9830. ac_cv_prog_cc_c89=no
  9831. ac_save_CC=$CC
  9832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9833. /* end confdefs.h. */
  9834. #include <stdarg.h>
  9835. #include <stdio.h>
  9836. #include <sys/types.h>
  9837. #include <sys/stat.h>
  9838. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9839. struct buf { int x; };
  9840. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9841. static char *e (p, i)
  9842. char **p;
  9843. int i;
  9844. {
  9845. return p[i];
  9846. }
  9847. static char *f (char * (*g) (char **, int), char **p, ...)
  9848. {
  9849. char *s;
  9850. va_list v;
  9851. va_start (v,p);
  9852. s = g (p, va_arg (v,int));
  9853. va_end (v);
  9854. return s;
  9855. }
  9856. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9857. function prototypes and stuff, but not '\xHH' hex character constants.
  9858. These don't provoke an error unfortunately, instead are silently treated
  9859. as 'x'. The following induces an error, until -std is added to get
  9860. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9861. array size at least. It's necessary to write '\x00'==0 to get something
  9862. that's true only with -std. */
  9863. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9864. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9865. inside strings and character constants. */
  9866. #define FOO(x) 'x'
  9867. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9868. int test (int i, double x);
  9869. struct s1 {int (*f) (int a);};
  9870. struct s2 {int (*f) (double a);};
  9871. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9872. int argc;
  9873. char **argv;
  9874. int
  9875. main ()
  9876. {
  9877. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9878. ;
  9879. return 0;
  9880. }
  9881. _ACEOF
  9882. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9883. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9884. do
  9885. CC="$ac_save_CC $ac_arg"
  9886. if ac_fn_c_try_compile "$LINENO"; then :
  9887. ac_cv_prog_cc_c89=$ac_arg
  9888. fi
  9889. rm -f core conftest.err conftest.$ac_objext
  9890. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9891. done
  9892. rm -f conftest.$ac_ext
  9893. CC=$ac_save_CC
  9894. fi
  9895. # AC_CACHE_VAL
  9896. case "x$ac_cv_prog_cc_c89" in
  9897. x)
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9899. $as_echo "none needed" >&6; } ;;
  9900. xno)
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9902. $as_echo "unsupported" >&6; } ;;
  9903. *)
  9904. CC="$CC $ac_cv_prog_cc_c89"
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9906. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9907. esac
  9908. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9909. fi
  9910. ac_ext=c
  9911. ac_cpp='$CPP $CPPFLAGS'
  9912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9915. ac_ext=cpp
  9916. ac_cpp='$CXXCPP $CPPFLAGS'
  9917. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9918. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9919. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9920. if test -z "$CXX"; then
  9921. if test -n "$CCC"; then
  9922. CXX=$CCC
  9923. else
  9924. if test -n "$ac_tool_prefix"; then
  9925. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9926. do
  9927. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9928. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9930. $as_echo_n "checking for $ac_word... " >&6; }
  9931. if ${ac_cv_prog_CXX+:} false; then :
  9932. $as_echo_n "(cached) " >&6
  9933. else
  9934. if test -n "$CXX"; then
  9935. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9936. else
  9937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9938. for as_dir in $PATH
  9939. do
  9940. IFS=$as_save_IFS
  9941. test -z "$as_dir" && as_dir=.
  9942. for ac_exec_ext in '' $ac_executable_extensions; do
  9943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9944. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9946. break 2
  9947. fi
  9948. done
  9949. done
  9950. IFS=$as_save_IFS
  9951. fi
  9952. fi
  9953. CXX=$ac_cv_prog_CXX
  9954. if test -n "$CXX"; then
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9956. $as_echo "$CXX" >&6; }
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9959. $as_echo "no" >&6; }
  9960. fi
  9961. test -n "$CXX" && break
  9962. done
  9963. fi
  9964. if test -z "$CXX"; then
  9965. ac_ct_CXX=$CXX
  9966. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9967. do
  9968. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9969. set dummy $ac_prog; ac_word=$2
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9971. $as_echo_n "checking for $ac_word... " >&6; }
  9972. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. if test -n "$ac_ct_CXX"; then
  9976. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9977. else
  9978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9979. for as_dir in $PATH
  9980. do
  9981. IFS=$as_save_IFS
  9982. test -z "$as_dir" && as_dir=.
  9983. for ac_exec_ext in '' $ac_executable_extensions; do
  9984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9985. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9987. break 2
  9988. fi
  9989. done
  9990. done
  9991. IFS=$as_save_IFS
  9992. fi
  9993. fi
  9994. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9995. if test -n "$ac_ct_CXX"; then
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9997. $as_echo "$ac_ct_CXX" >&6; }
  9998. else
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10000. $as_echo "no" >&6; }
  10001. fi
  10002. test -n "$ac_ct_CXX" && break
  10003. done
  10004. if test "x$ac_ct_CXX" = x; then
  10005. CXX="g++"
  10006. else
  10007. case $cross_compiling:$ac_tool_warned in
  10008. yes:)
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10011. ac_tool_warned=yes ;;
  10012. esac
  10013. CXX=$ac_ct_CXX
  10014. fi
  10015. fi
  10016. fi
  10017. fi
  10018. # Provide some information about the compiler.
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10020. set X $ac_compile
  10021. ac_compiler=$2
  10022. for ac_option in --version -v -V -qversion; do
  10023. { { ac_try="$ac_compiler $ac_option >&5"
  10024. case "(($ac_try" in
  10025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10026. *) ac_try_echo=$ac_try;;
  10027. esac
  10028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10029. $as_echo "$ac_try_echo"; } >&5
  10030. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10031. ac_status=$?
  10032. if test -s conftest.err; then
  10033. sed '10a\
  10034. ... rest of stderr output deleted ...
  10035. 10q' conftest.err >conftest.er1
  10036. cat conftest.er1 >&5
  10037. fi
  10038. rm -f conftest.er1 conftest.err
  10039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10040. test $ac_status = 0; }
  10041. done
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10043. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10044. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10045. $as_echo_n "(cached) " >&6
  10046. else
  10047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10048. /* end confdefs.h. */
  10049. int
  10050. main ()
  10051. {
  10052. #ifndef __GNUC__
  10053. choke me
  10054. #endif
  10055. ;
  10056. return 0;
  10057. }
  10058. _ACEOF
  10059. if ac_fn_cxx_try_compile "$LINENO"; then :
  10060. ac_compiler_gnu=yes
  10061. else
  10062. ac_compiler_gnu=no
  10063. fi
  10064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10065. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10066. fi
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10068. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10069. if test $ac_compiler_gnu = yes; then
  10070. GXX=yes
  10071. else
  10072. GXX=
  10073. fi
  10074. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10075. ac_save_CXXFLAGS=$CXXFLAGS
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10077. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10078. if ${ac_cv_prog_cxx_g+:} false; then :
  10079. $as_echo_n "(cached) " >&6
  10080. else
  10081. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10082. ac_cxx_werror_flag=yes
  10083. ac_cv_prog_cxx_g=no
  10084. CXXFLAGS="-g"
  10085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10086. /* end confdefs.h. */
  10087. int
  10088. main ()
  10089. {
  10090. ;
  10091. return 0;
  10092. }
  10093. _ACEOF
  10094. if ac_fn_cxx_try_compile "$LINENO"; then :
  10095. ac_cv_prog_cxx_g=yes
  10096. else
  10097. CXXFLAGS=""
  10098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. /* end confdefs.h. */
  10100. int
  10101. main ()
  10102. {
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_cxx_try_compile "$LINENO"; then :
  10108. else
  10109. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10110. CXXFLAGS="-g"
  10111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10112. /* end confdefs.h. */
  10113. int
  10114. main ()
  10115. {
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_cxx_try_compile "$LINENO"; then :
  10121. ac_cv_prog_cxx_g=yes
  10122. fi
  10123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10124. fi
  10125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10126. fi
  10127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10128. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10131. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10132. if test "$ac_test_CXXFLAGS" = set; then
  10133. CXXFLAGS=$ac_save_CXXFLAGS
  10134. elif test $ac_cv_prog_cxx_g = yes; then
  10135. if test "$GXX" = yes; then
  10136. CXXFLAGS="-g -O2"
  10137. else
  10138. CXXFLAGS="-g"
  10139. fi
  10140. else
  10141. if test "$GXX" = yes; then
  10142. CXXFLAGS="-O2"
  10143. else
  10144. CXXFLAGS=
  10145. fi
  10146. fi
  10147. ac_ext=c
  10148. ac_cpp='$CPP $CPPFLAGS'
  10149. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10150. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10151. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10152. func_stripname_cnf ()
  10153. {
  10154. case ${2} in
  10155. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10156. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10157. esac
  10158. } # func_stripname_cnf
  10159. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10160. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10161. (test "X$CXX" != "Xg++"))) ; then
  10162. ac_ext=cpp
  10163. ac_cpp='$CXXCPP $CPPFLAGS'
  10164. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10165. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10166. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10168. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10169. if test -z "$CXXCPP"; then
  10170. if ${ac_cv_prog_CXXCPP+:} false; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. # Double quotes because CXXCPP needs to be expanded
  10174. for CXXCPP in "$CXX -E" "/lib/cpp"
  10175. do
  10176. ac_preproc_ok=false
  10177. for ac_cxx_preproc_warn_flag in '' yes
  10178. do
  10179. # Use a header file that comes with gcc, so configuring glibc
  10180. # with a fresh cross-compiler works.
  10181. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10182. # <limits.h> exists even on freestanding compilers.
  10183. # On the NeXT, cc -E runs the code through the compiler's parser,
  10184. # not just through cpp. "Syntax error" is here to catch this case.
  10185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10186. /* end confdefs.h. */
  10187. #ifdef __STDC__
  10188. # include <limits.h>
  10189. #else
  10190. # include <assert.h>
  10191. #endif
  10192. Syntax error
  10193. _ACEOF
  10194. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10195. else
  10196. # Broken: fails on valid input.
  10197. continue
  10198. fi
  10199. rm -f conftest.err conftest.i conftest.$ac_ext
  10200. # OK, works on sane cases. Now check whether nonexistent headers
  10201. # can be detected and how.
  10202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10203. /* end confdefs.h. */
  10204. #include <ac_nonexistent.h>
  10205. _ACEOF
  10206. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10207. # Broken: success on invalid input.
  10208. continue
  10209. else
  10210. # Passes both tests.
  10211. ac_preproc_ok=:
  10212. break
  10213. fi
  10214. rm -f conftest.err conftest.i conftest.$ac_ext
  10215. done
  10216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10217. rm -f conftest.i conftest.err conftest.$ac_ext
  10218. if $ac_preproc_ok; then :
  10219. break
  10220. fi
  10221. done
  10222. ac_cv_prog_CXXCPP=$CXXCPP
  10223. fi
  10224. CXXCPP=$ac_cv_prog_CXXCPP
  10225. else
  10226. ac_cv_prog_CXXCPP=$CXXCPP
  10227. fi
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10229. $as_echo "$CXXCPP" >&6; }
  10230. ac_preproc_ok=false
  10231. for ac_cxx_preproc_warn_flag in '' yes
  10232. do
  10233. # Use a header file that comes with gcc, so configuring glibc
  10234. # with a fresh cross-compiler works.
  10235. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10236. # <limits.h> exists even on freestanding compilers.
  10237. # On the NeXT, cc -E runs the code through the compiler's parser,
  10238. # not just through cpp. "Syntax error" is here to catch this case.
  10239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10240. /* end confdefs.h. */
  10241. #ifdef __STDC__
  10242. # include <limits.h>
  10243. #else
  10244. # include <assert.h>
  10245. #endif
  10246. Syntax error
  10247. _ACEOF
  10248. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10249. else
  10250. # Broken: fails on valid input.
  10251. continue
  10252. fi
  10253. rm -f conftest.err conftest.i conftest.$ac_ext
  10254. # OK, works on sane cases. Now check whether nonexistent headers
  10255. # can be detected and how.
  10256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10257. /* end confdefs.h. */
  10258. #include <ac_nonexistent.h>
  10259. _ACEOF
  10260. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10261. # Broken: success on invalid input.
  10262. continue
  10263. else
  10264. # Passes both tests.
  10265. ac_preproc_ok=:
  10266. break
  10267. fi
  10268. rm -f conftest.err conftest.i conftest.$ac_ext
  10269. done
  10270. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10271. rm -f conftest.i conftest.err conftest.$ac_ext
  10272. if $ac_preproc_ok; then :
  10273. else
  10274. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10276. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10277. See \`config.log' for more details" "$LINENO" 5; }
  10278. fi
  10279. ac_ext=c
  10280. ac_cpp='$CPP $CPPFLAGS'
  10281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10284. else
  10285. _lt_caught_CXX_error=yes
  10286. fi
  10287. ac_ext=cpp
  10288. ac_cpp='$CXXCPP $CPPFLAGS'
  10289. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10290. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10291. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10292. archive_cmds_need_lc_CXX=no
  10293. allow_undefined_flag_CXX=
  10294. always_export_symbols_CXX=no
  10295. archive_expsym_cmds_CXX=
  10296. compiler_needs_object_CXX=no
  10297. export_dynamic_flag_spec_CXX=
  10298. hardcode_direct_CXX=no
  10299. hardcode_direct_absolute_CXX=no
  10300. hardcode_libdir_flag_spec_CXX=
  10301. hardcode_libdir_flag_spec_ld_CXX=
  10302. hardcode_libdir_separator_CXX=
  10303. hardcode_minus_L_CXX=no
  10304. hardcode_shlibpath_var_CXX=unsupported
  10305. hardcode_automatic_CXX=no
  10306. inherit_rpath_CXX=no
  10307. module_cmds_CXX=
  10308. module_expsym_cmds_CXX=
  10309. link_all_deplibs_CXX=unknown
  10310. old_archive_cmds_CXX=$old_archive_cmds
  10311. reload_flag_CXX=$reload_flag
  10312. reload_cmds_CXX=$reload_cmds
  10313. no_undefined_flag_CXX=
  10314. whole_archive_flag_spec_CXX=
  10315. enable_shared_with_static_runtimes_CXX=no
  10316. # Source file extension for C++ test sources.
  10317. ac_ext=cpp
  10318. # Object file extension for compiled C++ test sources.
  10319. objext=o
  10320. objext_CXX=$objext
  10321. # No sense in running all these tests if we already determined that
  10322. # the CXX compiler isn't working. Some variables (like enable_shared)
  10323. # are currently assumed to apply to all compilers on this platform,
  10324. # and will be corrupted by setting them based on a non-working compiler.
  10325. if test "$_lt_caught_CXX_error" != yes; then
  10326. # Code to be used in simple compile tests
  10327. lt_simple_compile_test_code="int some_variable = 0;"
  10328. # Code to be used in simple link tests
  10329. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10330. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10331. # If no C compiler was specified, use CC.
  10332. LTCC=${LTCC-"$CC"}
  10333. # If no C compiler flags were specified, use CFLAGS.
  10334. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10335. # Allow CC to be a program name with arguments.
  10336. compiler=$CC
  10337. # save warnings/boilerplate of simple test code
  10338. ac_outfile=conftest.$ac_objext
  10339. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10340. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10341. _lt_compiler_boilerplate=`cat conftest.err`
  10342. $RM conftest*
  10343. ac_outfile=conftest.$ac_objext
  10344. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10345. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10346. _lt_linker_boilerplate=`cat conftest.err`
  10347. $RM -r conftest*
  10348. # Allow CC to be a program name with arguments.
  10349. lt_save_CC=$CC
  10350. lt_save_CFLAGS=$CFLAGS
  10351. lt_save_LD=$LD
  10352. lt_save_GCC=$GCC
  10353. GCC=$GXX
  10354. lt_save_with_gnu_ld=$with_gnu_ld
  10355. lt_save_path_LD=$lt_cv_path_LD
  10356. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10357. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10358. else
  10359. $as_unset lt_cv_prog_gnu_ld
  10360. fi
  10361. if test -n "${lt_cv_path_LDCXX+set}"; then
  10362. lt_cv_path_LD=$lt_cv_path_LDCXX
  10363. else
  10364. $as_unset lt_cv_path_LD
  10365. fi
  10366. test -z "${LDCXX+set}" || LD=$LDCXX
  10367. CC=${CXX-"c++"}
  10368. CFLAGS=$CXXFLAGS
  10369. compiler=$CC
  10370. compiler_CXX=$CC
  10371. for cc_temp in $compiler""; do
  10372. case $cc_temp in
  10373. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10374. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10375. \-*) ;;
  10376. *) break;;
  10377. esac
  10378. done
  10379. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10380. if test -n "$compiler"; then
  10381. # We don't want -fno-exception when compiling C++ code, so set the
  10382. # no_builtin_flag separately
  10383. if test "$GXX" = yes; then
  10384. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10385. else
  10386. lt_prog_compiler_no_builtin_flag_CXX=
  10387. fi
  10388. if test "$GXX" = yes; then
  10389. # Set up default GNU C++ configuration
  10390. # Check whether --with-gnu-ld was given.
  10391. if test "${with_gnu_ld+set}" = set; then :
  10392. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10393. else
  10394. with_gnu_ld=no
  10395. fi
  10396. ac_prog=ld
  10397. if test "$GCC" = yes; then
  10398. # Check if gcc -print-prog-name=ld gives a path.
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10400. $as_echo_n "checking for ld used by $CC... " >&6; }
  10401. case $host in
  10402. *-*-mingw*)
  10403. # gcc leaves a trailing carriage return which upsets mingw
  10404. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10405. *)
  10406. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10407. esac
  10408. case $ac_prog in
  10409. # Accept absolute paths.
  10410. [\\/]* | ?:[\\/]*)
  10411. re_direlt='/[^/][^/]*/\.\./'
  10412. # Canonicalize the pathname of ld
  10413. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10414. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10415. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10416. done
  10417. test -z "$LD" && LD="$ac_prog"
  10418. ;;
  10419. "")
  10420. # If it fails, then pretend we aren't using GCC.
  10421. ac_prog=ld
  10422. ;;
  10423. *)
  10424. # If it is relative, then search for the first ld in PATH.
  10425. with_gnu_ld=unknown
  10426. ;;
  10427. esac
  10428. elif test "$with_gnu_ld" = yes; then
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10430. $as_echo_n "checking for GNU ld... " >&6; }
  10431. else
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10433. $as_echo_n "checking for non-GNU ld... " >&6; }
  10434. fi
  10435. if ${lt_cv_path_LD+:} false; then :
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. if test -z "$LD"; then
  10439. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10440. for ac_dir in $PATH; do
  10441. IFS="$lt_save_ifs"
  10442. test -z "$ac_dir" && ac_dir=.
  10443. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10444. lt_cv_path_LD="$ac_dir/$ac_prog"
  10445. # Check to see if the program is GNU ld. I'd rather use --version,
  10446. # but apparently some variants of GNU ld only accept -v.
  10447. # Break only if it was the GNU/non-GNU ld that we prefer.
  10448. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10449. *GNU* | *'with BFD'*)
  10450. test "$with_gnu_ld" != no && break
  10451. ;;
  10452. *)
  10453. test "$with_gnu_ld" != yes && break
  10454. ;;
  10455. esac
  10456. fi
  10457. done
  10458. IFS="$lt_save_ifs"
  10459. else
  10460. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10461. fi
  10462. fi
  10463. LD="$lt_cv_path_LD"
  10464. if test -n "$LD"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10466. $as_echo "$LD" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10473. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10474. if ${lt_cv_prog_gnu_ld+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10478. case `$LD -v 2>&1 </dev/null` in
  10479. *GNU* | *'with BFD'*)
  10480. lt_cv_prog_gnu_ld=yes
  10481. ;;
  10482. *)
  10483. lt_cv_prog_gnu_ld=no
  10484. ;;
  10485. esac
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10488. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10489. with_gnu_ld=$lt_cv_prog_gnu_ld
  10490. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10491. # archiving commands below assume that GNU ld is being used.
  10492. if test "$with_gnu_ld" = yes; then
  10493. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10494. 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'
  10495. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10496. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10497. # If archive_cmds runs LD, not CC, wlarc should be empty
  10498. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10499. # investigate it a little bit more. (MM)
  10500. wlarc='${wl}'
  10501. # ancient GNU ld didn't support --whole-archive et. al.
  10502. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10503. $GREP 'no-whole-archive' > /dev/null; then
  10504. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10505. else
  10506. whole_archive_flag_spec_CXX=
  10507. fi
  10508. else
  10509. with_gnu_ld=no
  10510. wlarc=
  10511. # A generic and very simple default shared library creation
  10512. # command for GNU C++ for the case where it uses the native
  10513. # linker, instead of GNU ld. If possible, this setting should
  10514. # overridden to take advantage of the native linker features on
  10515. # the platform it is being used on.
  10516. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10517. fi
  10518. # Commands to make compiler produce verbose output that lists
  10519. # what "hidden" libraries, object files and flags are used when
  10520. # linking a shared library.
  10521. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10522. else
  10523. GXX=no
  10524. with_gnu_ld=no
  10525. wlarc=
  10526. fi
  10527. # PORTME: fill in a description of your system's C++ link characteristics
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10529. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10530. ld_shlibs_CXX=yes
  10531. case $host_os in
  10532. aix3*)
  10533. # FIXME: insert proper C++ library support
  10534. ld_shlibs_CXX=no
  10535. ;;
  10536. aix[4-9]*)
  10537. if test "$host_cpu" = ia64; then
  10538. # On IA64, the linker does run time linking by default, so we don't
  10539. # have to do anything special.
  10540. aix_use_runtimelinking=no
  10541. exp_sym_flag='-Bexport'
  10542. no_entry_flag=""
  10543. else
  10544. aix_use_runtimelinking=no
  10545. # Test if we are trying to use run time linking or normal
  10546. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10547. # need to do runtime linking.
  10548. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10549. for ld_flag in $LDFLAGS; do
  10550. case $ld_flag in
  10551. *-brtl*)
  10552. aix_use_runtimelinking=yes
  10553. break
  10554. ;;
  10555. esac
  10556. done
  10557. ;;
  10558. esac
  10559. exp_sym_flag='-bexport'
  10560. no_entry_flag='-bnoentry'
  10561. fi
  10562. # When large executables or shared objects are built, AIX ld can
  10563. # have problems creating the table of contents. If linking a library
  10564. # or program results in "error TOC overflow" add -mminimal-toc to
  10565. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10566. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10567. archive_cmds_CXX=''
  10568. hardcode_direct_CXX=yes
  10569. hardcode_direct_absolute_CXX=yes
  10570. hardcode_libdir_separator_CXX=':'
  10571. link_all_deplibs_CXX=yes
  10572. file_list_spec_CXX='${wl}-f,'
  10573. if test "$GXX" = yes; then
  10574. case $host_os in aix4.[012]|aix4.[012].*)
  10575. # We only want to do this on AIX 4.2 and lower, the check
  10576. # below for broken collect2 doesn't work under 4.3+
  10577. collect2name=`${CC} -print-prog-name=collect2`
  10578. if test -f "$collect2name" &&
  10579. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10580. then
  10581. # We have reworked collect2
  10582. :
  10583. else
  10584. # We have old collect2
  10585. hardcode_direct_CXX=unsupported
  10586. # It fails to find uninstalled libraries when the uninstalled
  10587. # path is not listed in the libpath. Setting hardcode_minus_L
  10588. # to unsupported forces relinking
  10589. hardcode_minus_L_CXX=yes
  10590. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10591. hardcode_libdir_separator_CXX=
  10592. fi
  10593. esac
  10594. shared_flag='-shared'
  10595. if test "$aix_use_runtimelinking" = yes; then
  10596. shared_flag="$shared_flag "'${wl}-G'
  10597. fi
  10598. else
  10599. # not using gcc
  10600. if test "$host_cpu" = ia64; then
  10601. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10602. # chokes on -Wl,-G. The following line is correct:
  10603. shared_flag='-G'
  10604. else
  10605. if test "$aix_use_runtimelinking" = yes; then
  10606. shared_flag='${wl}-G'
  10607. else
  10608. shared_flag='${wl}-bM:SRE'
  10609. fi
  10610. fi
  10611. fi
  10612. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10613. # It seems that -bexpall does not export symbols beginning with
  10614. # underscore (_), so it is better to generate a list of symbols to
  10615. # export.
  10616. always_export_symbols_CXX=yes
  10617. if test "$aix_use_runtimelinking" = yes; then
  10618. # Warning - without using the other runtime loading flags (-brtl),
  10619. # -berok will link without error, but may produce a broken library.
  10620. allow_undefined_flag_CXX='-berok'
  10621. # Determine the default libpath from the value encoded in an empty
  10622. # executable.
  10623. if test "${lt_cv_aix_libpath+set}" = set; then
  10624. aix_libpath=$lt_cv_aix_libpath
  10625. else
  10626. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10630. /* end confdefs.h. */
  10631. int
  10632. main ()
  10633. {
  10634. ;
  10635. return 0;
  10636. }
  10637. _ACEOF
  10638. if ac_fn_cxx_try_link "$LINENO"; then :
  10639. lt_aix_libpath_sed='
  10640. /Import File Strings/,/^$/ {
  10641. /^0/ {
  10642. s/^0 *\([^ ]*\) *$/\1/
  10643. p
  10644. }
  10645. }'
  10646. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10647. # Check for a 64-bit object if we didn't find anything.
  10648. if test -z "$lt_cv_aix_libpath__CXX"; then
  10649. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10650. fi
  10651. fi
  10652. rm -f core conftest.err conftest.$ac_objext \
  10653. conftest$ac_exeext conftest.$ac_ext
  10654. if test -z "$lt_cv_aix_libpath__CXX"; then
  10655. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10656. fi
  10657. fi
  10658. aix_libpath=$lt_cv_aix_libpath__CXX
  10659. fi
  10660. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10661. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10662. else
  10663. if test "$host_cpu" = ia64; then
  10664. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10665. allow_undefined_flag_CXX="-z nodefs"
  10666. 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"
  10667. else
  10668. # Determine the default libpath from the value encoded in an
  10669. # empty executable.
  10670. if test "${lt_cv_aix_libpath+set}" = set; then
  10671. aix_libpath=$lt_cv_aix_libpath
  10672. else
  10673. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10674. $as_echo_n "(cached) " >&6
  10675. else
  10676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10677. /* end confdefs.h. */
  10678. int
  10679. main ()
  10680. {
  10681. ;
  10682. return 0;
  10683. }
  10684. _ACEOF
  10685. if ac_fn_cxx_try_link "$LINENO"; then :
  10686. lt_aix_libpath_sed='
  10687. /Import File Strings/,/^$/ {
  10688. /^0/ {
  10689. s/^0 *\([^ ]*\) *$/\1/
  10690. p
  10691. }
  10692. }'
  10693. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10694. # Check for a 64-bit object if we didn't find anything.
  10695. if test -z "$lt_cv_aix_libpath__CXX"; then
  10696. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10697. fi
  10698. fi
  10699. rm -f core conftest.err conftest.$ac_objext \
  10700. conftest$ac_exeext conftest.$ac_ext
  10701. if test -z "$lt_cv_aix_libpath__CXX"; then
  10702. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10703. fi
  10704. fi
  10705. aix_libpath=$lt_cv_aix_libpath__CXX
  10706. fi
  10707. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10708. # Warning - without using the other run time loading flags,
  10709. # -berok will link without error, but may produce a broken library.
  10710. no_undefined_flag_CXX=' ${wl}-bernotok'
  10711. allow_undefined_flag_CXX=' ${wl}-berok'
  10712. if test "$with_gnu_ld" = yes; then
  10713. # We only use this code for GNU lds that support --whole-archive.
  10714. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10715. else
  10716. # Exported symbols can be pulled into shared objects from archives
  10717. whole_archive_flag_spec_CXX='$convenience'
  10718. fi
  10719. archive_cmds_need_lc_CXX=yes
  10720. # This is similar to how AIX traditionally builds its shared
  10721. # libraries.
  10722. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10723. fi
  10724. fi
  10725. ;;
  10726. beos*)
  10727. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10728. allow_undefined_flag_CXX=unsupported
  10729. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10730. # support --undefined. This deserves some investigation. FIXME
  10731. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10732. else
  10733. ld_shlibs_CXX=no
  10734. fi
  10735. ;;
  10736. chorus*)
  10737. case $cc_basename in
  10738. *)
  10739. # FIXME: insert proper C++ library support
  10740. ld_shlibs_CXX=no
  10741. ;;
  10742. esac
  10743. ;;
  10744. cygwin* | mingw* | pw32* | cegcc*)
  10745. case $GXX,$cc_basename in
  10746. ,cl* | no,cl*)
  10747. # Native MSVC
  10748. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10749. # no search path for DLLs.
  10750. hardcode_libdir_flag_spec_CXX=' '
  10751. allow_undefined_flag_CXX=unsupported
  10752. always_export_symbols_CXX=yes
  10753. file_list_spec_CXX='@'
  10754. # Tell ltmain to make .lib files, not .a files.
  10755. libext=lib
  10756. # Tell ltmain to make .dll files, not .so files.
  10757. shrext_cmds=".dll"
  10758. # FIXME: Setting linknames here is a bad hack.
  10759. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10760. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10761. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10762. else
  10763. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10764. fi~
  10765. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10766. linknames='
  10767. # The linker will not automatically build a static lib if we build a DLL.
  10768. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10769. enable_shared_with_static_runtimes_CXX=yes
  10770. # Don't use ranlib
  10771. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10772. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10773. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10774. case $lt_outputfile in
  10775. *.exe|*.EXE) ;;
  10776. *)
  10777. lt_outputfile="$lt_outputfile.exe"
  10778. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10779. ;;
  10780. esac~
  10781. func_to_tool_file "$lt_outputfile"~
  10782. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10783. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10784. $RM "$lt_outputfile.manifest";
  10785. fi'
  10786. ;;
  10787. *)
  10788. # g++
  10789. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10790. # as there is no search path for DLLs.
  10791. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10792. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10793. allow_undefined_flag_CXX=unsupported
  10794. always_export_symbols_CXX=no
  10795. enable_shared_with_static_runtimes_CXX=yes
  10796. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10797. 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'
  10798. # If the export-symbols file already is a .def file (1st line
  10799. # is EXPORTS), use it as is; otherwise, prepend...
  10800. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10801. cp $export_symbols $output_objdir/$soname.def;
  10802. else
  10803. echo EXPORTS > $output_objdir/$soname.def;
  10804. cat $export_symbols >> $output_objdir/$soname.def;
  10805. fi~
  10806. $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'
  10807. else
  10808. ld_shlibs_CXX=no
  10809. fi
  10810. ;;
  10811. esac
  10812. ;;
  10813. darwin* | rhapsody*)
  10814. archive_cmds_need_lc_CXX=no
  10815. hardcode_direct_CXX=no
  10816. hardcode_automatic_CXX=yes
  10817. hardcode_shlibpath_var_CXX=unsupported
  10818. if test "$lt_cv_ld_force_load" = "yes"; then
  10819. 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\"`'
  10820. else
  10821. whole_archive_flag_spec_CXX=''
  10822. fi
  10823. link_all_deplibs_CXX=yes
  10824. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10825. case $cc_basename in
  10826. ifort*) _lt_dar_can_shared=yes ;;
  10827. *) _lt_dar_can_shared=$GCC ;;
  10828. esac
  10829. if test "$_lt_dar_can_shared" = "yes"; then
  10830. output_verbose_link_cmd=func_echo_all
  10831. 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}"
  10832. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10833. 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}"
  10834. 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}"
  10835. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10836. 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}"
  10837. 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}"
  10838. fi
  10839. else
  10840. ld_shlibs_CXX=no
  10841. fi
  10842. ;;
  10843. dgux*)
  10844. case $cc_basename in
  10845. ec++*)
  10846. # FIXME: insert proper C++ library support
  10847. ld_shlibs_CXX=no
  10848. ;;
  10849. ghcx*)
  10850. # Green Hills C++ Compiler
  10851. # FIXME: insert proper C++ library support
  10852. ld_shlibs_CXX=no
  10853. ;;
  10854. *)
  10855. # FIXME: insert proper C++ library support
  10856. ld_shlibs_CXX=no
  10857. ;;
  10858. esac
  10859. ;;
  10860. freebsd[12]*)
  10861. # C++ shared libraries reported to be fairly broken before
  10862. # switch to ELF
  10863. ld_shlibs_CXX=no
  10864. ;;
  10865. freebsd-elf*)
  10866. archive_cmds_need_lc_CXX=no
  10867. ;;
  10868. freebsd* | dragonfly*)
  10869. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10870. # conventions
  10871. ld_shlibs_CXX=yes
  10872. ;;
  10873. gnu*)
  10874. ;;
  10875. haiku*)
  10876. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10877. link_all_deplibs_CXX=yes
  10878. ;;
  10879. hpux9*)
  10880. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10881. hardcode_libdir_separator_CXX=:
  10882. export_dynamic_flag_spec_CXX='${wl}-E'
  10883. hardcode_direct_CXX=yes
  10884. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10885. # but as the default
  10886. # location of the library.
  10887. case $cc_basename in
  10888. CC*)
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. ;;
  10892. aCC*)
  10893. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10894. # Commands to make compiler produce verbose output that lists
  10895. # what "hidden" libraries, object files and flags are used when
  10896. # linking a shared library.
  10897. #
  10898. # There doesn't appear to be a way to prevent this compiler from
  10899. # explicitly linking system object files so we need to strip them
  10900. # from the output so that they don't get included in the library
  10901. # dependencies.
  10902. 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"'
  10903. ;;
  10904. *)
  10905. if test "$GXX" = yes; then
  10906. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10907. else
  10908. # FIXME: insert proper C++ library support
  10909. ld_shlibs_CXX=no
  10910. fi
  10911. ;;
  10912. esac
  10913. ;;
  10914. hpux10*|hpux11*)
  10915. if test $with_gnu_ld = no; then
  10916. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10917. hardcode_libdir_separator_CXX=:
  10918. case $host_cpu in
  10919. hppa*64*|ia64*)
  10920. ;;
  10921. *)
  10922. export_dynamic_flag_spec_CXX='${wl}-E'
  10923. ;;
  10924. esac
  10925. fi
  10926. case $host_cpu in
  10927. hppa*64*|ia64*)
  10928. hardcode_direct_CXX=no
  10929. hardcode_shlibpath_var_CXX=no
  10930. ;;
  10931. *)
  10932. hardcode_direct_CXX=yes
  10933. hardcode_direct_absolute_CXX=yes
  10934. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10935. # but as the default
  10936. # location of the library.
  10937. ;;
  10938. esac
  10939. case $cc_basename in
  10940. CC*)
  10941. # FIXME: insert proper C++ library support
  10942. ld_shlibs_CXX=no
  10943. ;;
  10944. aCC*)
  10945. case $host_cpu in
  10946. hppa*64*)
  10947. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10948. ;;
  10949. ia64*)
  10950. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10951. ;;
  10952. *)
  10953. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10954. ;;
  10955. esac
  10956. # Commands to make compiler produce verbose output that lists
  10957. # what "hidden" libraries, object files and flags are used when
  10958. # linking a shared library.
  10959. #
  10960. # There doesn't appear to be a way to prevent this compiler from
  10961. # explicitly linking system object files so we need to strip them
  10962. # from the output so that they don't get included in the library
  10963. # dependencies.
  10964. 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"'
  10965. ;;
  10966. *)
  10967. if test "$GXX" = yes; then
  10968. if test $with_gnu_ld = no; then
  10969. case $host_cpu in
  10970. hppa*64*)
  10971. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10972. ;;
  10973. ia64*)
  10974. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10975. ;;
  10976. *)
  10977. 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'
  10978. ;;
  10979. esac
  10980. fi
  10981. else
  10982. # FIXME: insert proper C++ library support
  10983. ld_shlibs_CXX=no
  10984. fi
  10985. ;;
  10986. esac
  10987. ;;
  10988. interix[3-9]*)
  10989. hardcode_direct_CXX=no
  10990. hardcode_shlibpath_var_CXX=no
  10991. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10992. export_dynamic_flag_spec_CXX='${wl}-E'
  10993. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10994. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10995. # default) and relocated if they conflict, which is a slow very memory
  10996. # consuming and fragmenting process. To avoid this, we pick a random,
  10997. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10998. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10999. 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'
  11000. 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'
  11001. ;;
  11002. irix5* | irix6*)
  11003. case $cc_basename in
  11004. CC*)
  11005. # SGI C++
  11006. 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'
  11007. # Archives containing C++ object files must be created using
  11008. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11009. # necessary to make sure instantiated templates are included
  11010. # in the archive.
  11011. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11012. ;;
  11013. *)
  11014. if test "$GXX" = yes; then
  11015. if test "$with_gnu_ld" = no; then
  11016. 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'
  11017. else
  11018. 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'
  11019. fi
  11020. fi
  11021. link_all_deplibs_CXX=yes
  11022. ;;
  11023. esac
  11024. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11025. hardcode_libdir_separator_CXX=:
  11026. inherit_rpath_CXX=yes
  11027. ;;
  11028. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11029. case $cc_basename in
  11030. KCC*)
  11031. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11032. # KCC will only create a shared library if the output file
  11033. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11034. # to its proper name (with version) after linking.
  11035. 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'
  11036. 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'
  11037. # Commands to make compiler produce verbose output that lists
  11038. # what "hidden" libraries, object files and flags are used when
  11039. # linking a shared library.
  11040. #
  11041. # There doesn't appear to be a way to prevent this compiler from
  11042. # explicitly linking system object files so we need to strip them
  11043. # from the output so that they don't get included in the library
  11044. # dependencies.
  11045. 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"'
  11046. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11047. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11048. # Archives containing C++ object files must be created using
  11049. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11050. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11051. ;;
  11052. icpc* | ecpc* )
  11053. # Intel C++
  11054. with_gnu_ld=yes
  11055. # version 8.0 and above of icpc choke on multiply defined symbols
  11056. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11057. # earlier do not add the objects themselves.
  11058. case `$CC -V 2>&1` in
  11059. *"Version 7."*)
  11060. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11061. 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'
  11062. ;;
  11063. *) # Version 8.0 or newer
  11064. tmp_idyn=
  11065. case $host_cpu in
  11066. ia64*) tmp_idyn=' -i_dynamic';;
  11067. esac
  11068. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11069. 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'
  11070. ;;
  11071. esac
  11072. archive_cmds_need_lc_CXX=no
  11073. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11074. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11075. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11076. ;;
  11077. pgCC* | pgcpp*)
  11078. # Portland Group C++ compiler
  11079. case `$CC -V` in
  11080. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11081. prelink_cmds_CXX='tpldir=Template.dir~
  11082. rm -rf $tpldir~
  11083. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11084. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11085. old_archive_cmds_CXX='tpldir=Template.dir~
  11086. rm -rf $tpldir~
  11087. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11088. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11089. $RANLIB $oldlib'
  11090. archive_cmds_CXX='tpldir=Template.dir~
  11091. rm -rf $tpldir~
  11092. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11093. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11094. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11095. rm -rf $tpldir~
  11096. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11097. $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'
  11098. ;;
  11099. *) # Version 6 and above use weak symbols
  11100. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11101. 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'
  11102. ;;
  11103. esac
  11104. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11105. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11106. 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'
  11107. ;;
  11108. cxx*)
  11109. # Compaq C++
  11110. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11111. 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'
  11112. runpath_var=LD_RUN_PATH
  11113. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11114. hardcode_libdir_separator_CXX=:
  11115. # Commands to make compiler produce verbose output that lists
  11116. # what "hidden" libraries, object files and flags are used when
  11117. # linking a shared library.
  11118. #
  11119. # There doesn't appear to be a way to prevent this compiler from
  11120. # explicitly linking system object files so we need to strip them
  11121. # from the output so that they don't get included in the library
  11122. # dependencies.
  11123. 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'
  11124. ;;
  11125. xl* | mpixl* | bgxl*)
  11126. # IBM XL 8.0 on PPC, with GNU ld
  11127. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11128. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11129. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11130. if test "x$supports_anon_versioning" = xyes; then
  11131. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11132. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11133. echo "local: *; };" >> $output_objdir/$libname.ver~
  11134. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11135. fi
  11136. ;;
  11137. *)
  11138. case `$CC -V 2>&1 | sed 5q` in
  11139. *Sun\ C*)
  11140. # Sun C++ 5.9
  11141. no_undefined_flag_CXX=' -zdefs'
  11142. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11143. 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'
  11144. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11145. 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'
  11146. compiler_needs_object_CXX=yes
  11147. # Not sure whether something based on
  11148. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11149. # would be better.
  11150. output_verbose_link_cmd='func_echo_all'
  11151. # Archives containing C++ object files must be created using
  11152. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11153. # necessary to make sure instantiated templates are included
  11154. # in the archive.
  11155. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11156. ;;
  11157. esac
  11158. ;;
  11159. esac
  11160. ;;
  11161. lynxos*)
  11162. # FIXME: insert proper C++ library support
  11163. ld_shlibs_CXX=no
  11164. ;;
  11165. m88k*)
  11166. # FIXME: insert proper C++ library support
  11167. ld_shlibs_CXX=no
  11168. ;;
  11169. mvs*)
  11170. case $cc_basename in
  11171. cxx*)
  11172. # FIXME: insert proper C++ library support
  11173. ld_shlibs_CXX=no
  11174. ;;
  11175. *)
  11176. # FIXME: insert proper C++ library support
  11177. ld_shlibs_CXX=no
  11178. ;;
  11179. esac
  11180. ;;
  11181. netbsd*)
  11182. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11183. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11184. wlarc=
  11185. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11186. hardcode_direct_CXX=yes
  11187. hardcode_shlibpath_var_CXX=no
  11188. fi
  11189. # Workaround some broken pre-1.5 toolchains
  11190. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11191. ;;
  11192. *nto* | *qnx*)
  11193. ld_shlibs_CXX=yes
  11194. ;;
  11195. openbsd2*)
  11196. # C++ shared libraries are fairly broken
  11197. ld_shlibs_CXX=no
  11198. ;;
  11199. openbsd*)
  11200. if test -f /usr/libexec/ld.so; then
  11201. hardcode_direct_CXX=yes
  11202. hardcode_shlibpath_var_CXX=no
  11203. hardcode_direct_absolute_CXX=yes
  11204. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11205. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11206. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11207. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11208. export_dynamic_flag_spec_CXX='${wl}-E'
  11209. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11210. fi
  11211. output_verbose_link_cmd=func_echo_all
  11212. else
  11213. ld_shlibs_CXX=no
  11214. fi
  11215. ;;
  11216. osf3* | osf4* | osf5*)
  11217. case $cc_basename in
  11218. KCC*)
  11219. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11220. # KCC will only create a shared library if the output file
  11221. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11222. # to its proper name (with version) after linking.
  11223. 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'
  11224. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11225. hardcode_libdir_separator_CXX=:
  11226. # Archives containing C++ object files must be created using
  11227. # the KAI C++ compiler.
  11228. case $host in
  11229. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11230. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11231. esac
  11232. ;;
  11233. RCC*)
  11234. # Rational C++ 2.4.1
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. ;;
  11238. cxx*)
  11239. case $host in
  11240. osf3*)
  11241. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11242. 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'
  11243. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11244. ;;
  11245. *)
  11246. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11247. 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'
  11248. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11249. echo "-hidden">> $lib.exp~
  11250. $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~
  11251. $RM $lib.exp'
  11252. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11253. ;;
  11254. esac
  11255. hardcode_libdir_separator_CXX=:
  11256. # Commands to make compiler produce verbose output that lists
  11257. # what "hidden" libraries, object files and flags are used when
  11258. # linking a shared library.
  11259. #
  11260. # There doesn't appear to be a way to prevent this compiler from
  11261. # explicitly linking system object files so we need to strip them
  11262. # from the output so that they don't get included in the library
  11263. # dependencies.
  11264. 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"'
  11265. ;;
  11266. *)
  11267. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11268. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11269. case $host in
  11270. osf3*)
  11271. 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'
  11272. ;;
  11273. *)
  11274. 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'
  11275. ;;
  11276. esac
  11277. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11278. hardcode_libdir_separator_CXX=:
  11279. # Commands to make compiler produce verbose output that lists
  11280. # what "hidden" libraries, object files and flags are used when
  11281. # linking a shared library.
  11282. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11283. else
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. fi
  11287. ;;
  11288. esac
  11289. ;;
  11290. psos*)
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. sunos4*)
  11295. case $cc_basename in
  11296. CC*)
  11297. # Sun C++ 4.x
  11298. # FIXME: insert proper C++ library support
  11299. ld_shlibs_CXX=no
  11300. ;;
  11301. lcc*)
  11302. # Lucid
  11303. # FIXME: insert proper C++ library support
  11304. ld_shlibs_CXX=no
  11305. ;;
  11306. *)
  11307. # FIXME: insert proper C++ library support
  11308. ld_shlibs_CXX=no
  11309. ;;
  11310. esac
  11311. ;;
  11312. solaris*)
  11313. case $cc_basename in
  11314. CC* | sunCC*)
  11315. # Sun C++ 4.2, 5.x and Centerline C++
  11316. archive_cmds_need_lc_CXX=yes
  11317. no_undefined_flag_CXX=' -zdefs'
  11318. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11319. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11320. $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'
  11321. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11322. hardcode_shlibpath_var_CXX=no
  11323. case $host_os in
  11324. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11325. *)
  11326. # The compiler driver will combine and reorder linker options,
  11327. # but understands `-z linker_flag'.
  11328. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11329. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11330. ;;
  11331. esac
  11332. link_all_deplibs_CXX=yes
  11333. output_verbose_link_cmd='func_echo_all'
  11334. # Archives containing C++ object files must be created using
  11335. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11336. # necessary to make sure instantiated templates are included
  11337. # in the archive.
  11338. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11339. ;;
  11340. gcx*)
  11341. # Green Hills C++ Compiler
  11342. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11343. # The C++ compiler must be used to create the archive.
  11344. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11345. ;;
  11346. *)
  11347. # GNU C++ compiler with Solaris linker
  11348. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11349. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11350. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11351. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11352. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11353. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11354. # Commands to make compiler produce verbose output that lists
  11355. # what "hidden" libraries, object files and flags are used when
  11356. # linking a shared library.
  11357. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11358. else
  11359. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11360. # platform.
  11361. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11362. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11363. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11364. # Commands to make compiler produce verbose output that lists
  11365. # what "hidden" libraries, object files and flags are used when
  11366. # linking a shared library.
  11367. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11368. fi
  11369. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11370. case $host_os in
  11371. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11372. *)
  11373. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11374. ;;
  11375. esac
  11376. fi
  11377. ;;
  11378. esac
  11379. ;;
  11380. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11381. no_undefined_flag_CXX='${wl}-z,text'
  11382. archive_cmds_need_lc_CXX=no
  11383. hardcode_shlibpath_var_CXX=no
  11384. runpath_var='LD_RUN_PATH'
  11385. case $cc_basename in
  11386. CC*)
  11387. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11388. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11389. ;;
  11390. *)
  11391. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11392. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11393. ;;
  11394. esac
  11395. ;;
  11396. sysv5* | sco3.2v5* | sco5v6*)
  11397. # Note: We can NOT use -z defs as we might desire, because we do not
  11398. # link with -lc, and that would cause any symbols used from libc to
  11399. # always be unresolved, which means just about no library would
  11400. # ever link correctly. If we're not using GNU ld we use -z text
  11401. # though, which does catch some bad symbols but isn't as heavy-handed
  11402. # as -z defs.
  11403. no_undefined_flag_CXX='${wl}-z,text'
  11404. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11405. archive_cmds_need_lc_CXX=no
  11406. hardcode_shlibpath_var_CXX=no
  11407. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11408. hardcode_libdir_separator_CXX=':'
  11409. link_all_deplibs_CXX=yes
  11410. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11411. runpath_var='LD_RUN_PATH'
  11412. case $cc_basename in
  11413. CC*)
  11414. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11415. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11416. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11417. '"$old_archive_cmds_CXX"
  11418. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11419. '"$reload_cmds_CXX"
  11420. ;;
  11421. *)
  11422. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11423. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11424. ;;
  11425. esac
  11426. ;;
  11427. tandem*)
  11428. case $cc_basename in
  11429. NCC*)
  11430. # NonStop-UX NCC 3.20
  11431. # FIXME: insert proper C++ library support
  11432. ld_shlibs_CXX=no
  11433. ;;
  11434. *)
  11435. # FIXME: insert proper C++ library support
  11436. ld_shlibs_CXX=no
  11437. ;;
  11438. esac
  11439. ;;
  11440. vxworks*)
  11441. # FIXME: insert proper C++ library support
  11442. ld_shlibs_CXX=no
  11443. ;;
  11444. *)
  11445. # FIXME: insert proper C++ library support
  11446. ld_shlibs_CXX=no
  11447. ;;
  11448. esac
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11450. $as_echo "$ld_shlibs_CXX" >&6; }
  11451. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11452. GCC_CXX="$GXX"
  11453. LD_CXX="$LD"
  11454. ## CAVEAT EMPTOR:
  11455. ## There is no encapsulation within the following macros, do not change
  11456. ## the running order or otherwise move them around unless you know exactly
  11457. ## what you are doing...
  11458. # Dependencies to place before and after the object being linked:
  11459. predep_objects_CXX=
  11460. postdep_objects_CXX=
  11461. predeps_CXX=
  11462. postdeps_CXX=
  11463. compiler_lib_search_path_CXX=
  11464. cat > conftest.$ac_ext <<_LT_EOF
  11465. class Foo
  11466. {
  11467. public:
  11468. Foo (void) { a = 0; }
  11469. private:
  11470. int a;
  11471. };
  11472. _LT_EOF
  11473. _lt_libdeps_save_CFLAGS=$CFLAGS
  11474. case "$CC $CFLAGS " in #(
  11475. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11476. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11477. esac
  11478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11479. (eval $ac_compile) 2>&5
  11480. ac_status=$?
  11481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11482. test $ac_status = 0; }; then
  11483. # Parse the compiler output and extract the necessary
  11484. # objects, libraries and library flags.
  11485. # Sentinel used to keep track of whether or not we are before
  11486. # the conftest object file.
  11487. pre_test_object_deps_done=no
  11488. for p in `eval "$output_verbose_link_cmd"`; do
  11489. case ${prev}${p} in
  11490. -L* | -R* | -l*)
  11491. # Some compilers place space between "-{L,R}" and the path.
  11492. # Remove the space.
  11493. if test $p = "-L" ||
  11494. test $p = "-R"; then
  11495. prev=$p
  11496. continue
  11497. fi
  11498. # Expand the sysroot to ease extracting the directories later.
  11499. if test -z "$prev"; then
  11500. case $p in
  11501. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11502. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11503. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11504. esac
  11505. fi
  11506. case $p in
  11507. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11508. esac
  11509. if test "$pre_test_object_deps_done" = no; then
  11510. case ${prev} in
  11511. -L | -R)
  11512. # Internal compiler library paths should come after those
  11513. # provided the user. The postdeps already come after the
  11514. # user supplied libs so there is no need to process them.
  11515. if test -z "$compiler_lib_search_path_CXX"; then
  11516. compiler_lib_search_path_CXX="${prev}${p}"
  11517. else
  11518. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11519. fi
  11520. ;;
  11521. # The "-l" case would never come before the object being
  11522. # linked, so don't bother handling this case.
  11523. esac
  11524. else
  11525. if test -z "$postdeps_CXX"; then
  11526. postdeps_CXX="${prev}${p}"
  11527. else
  11528. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11529. fi
  11530. fi
  11531. prev=
  11532. ;;
  11533. *.lto.$objext) ;; # Ignore GCC LTO objects
  11534. *.$objext)
  11535. # This assumes that the test object file only shows up
  11536. # once in the compiler output.
  11537. if test "$p" = "conftest.$objext"; then
  11538. pre_test_object_deps_done=yes
  11539. continue
  11540. fi
  11541. if test "$pre_test_object_deps_done" = no; then
  11542. if test -z "$predep_objects_CXX"; then
  11543. predep_objects_CXX="$p"
  11544. else
  11545. predep_objects_CXX="$predep_objects_CXX $p"
  11546. fi
  11547. else
  11548. if test -z "$postdep_objects_CXX"; then
  11549. postdep_objects_CXX="$p"
  11550. else
  11551. postdep_objects_CXX="$postdep_objects_CXX $p"
  11552. fi
  11553. fi
  11554. ;;
  11555. *) ;; # Ignore the rest.
  11556. esac
  11557. done
  11558. # Clean up.
  11559. rm -f a.out a.exe
  11560. else
  11561. echo "libtool.m4: error: problem compiling CXX test program"
  11562. fi
  11563. $RM -f confest.$objext
  11564. CFLAGS=$_lt_libdeps_save_CFLAGS
  11565. # PORTME: override above test on systems where it is broken
  11566. case $host_os in
  11567. interix[3-9]*)
  11568. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11569. # hack all around it, let's just trust "g++" to DTRT.
  11570. predep_objects_CXX=
  11571. postdep_objects_CXX=
  11572. postdeps_CXX=
  11573. ;;
  11574. linux*)
  11575. case `$CC -V 2>&1 | sed 5q` in
  11576. *Sun\ C*)
  11577. # Sun C++ 5.9
  11578. # The more standards-conforming stlport4 library is
  11579. # incompatible with the Cstd library. Avoid specifying
  11580. # it if it's in CXXFLAGS. Ignore libCrun as
  11581. # -library=stlport4 depends on it.
  11582. case " $CXX $CXXFLAGS " in
  11583. *" -library=stlport4 "*)
  11584. solaris_use_stlport4=yes
  11585. ;;
  11586. esac
  11587. if test "$solaris_use_stlport4" != yes; then
  11588. postdeps_CXX='-library=Cstd -library=Crun'
  11589. fi
  11590. ;;
  11591. esac
  11592. ;;
  11593. solaris*)
  11594. case $cc_basename in
  11595. CC* | sunCC*)
  11596. # The more standards-conforming stlport4 library is
  11597. # incompatible with the Cstd library. Avoid specifying
  11598. # it if it's in CXXFLAGS. Ignore libCrun as
  11599. # -library=stlport4 depends on it.
  11600. case " $CXX $CXXFLAGS " in
  11601. *" -library=stlport4 "*)
  11602. solaris_use_stlport4=yes
  11603. ;;
  11604. esac
  11605. # Adding this requires a known-good setup of shared libraries for
  11606. # Sun compiler versions before 5.6, else PIC objects from an old
  11607. # archive will be linked into the output, leading to subtle bugs.
  11608. if test "$solaris_use_stlport4" != yes; then
  11609. postdeps_CXX='-library=Cstd -library=Crun'
  11610. fi
  11611. ;;
  11612. esac
  11613. ;;
  11614. esac
  11615. case " $postdeps_CXX " in
  11616. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11617. esac
  11618. compiler_lib_search_dirs_CXX=
  11619. if test -n "${compiler_lib_search_path_CXX}"; then
  11620. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11621. fi
  11622. lt_prog_compiler_wl_CXX=
  11623. lt_prog_compiler_pic_CXX=
  11624. lt_prog_compiler_static_CXX=
  11625. # C++ specific cases for pic, static, wl, etc.
  11626. if test "$GXX" = yes; then
  11627. lt_prog_compiler_wl_CXX='-Wl,'
  11628. lt_prog_compiler_static_CXX='-static'
  11629. case $host_os in
  11630. aix*)
  11631. # All AIX code is PIC.
  11632. if test "$host_cpu" = ia64; then
  11633. # AIX 5 now supports IA64 processor
  11634. lt_prog_compiler_static_CXX='-Bstatic'
  11635. fi
  11636. ;;
  11637. amigaos*)
  11638. case $host_cpu in
  11639. powerpc)
  11640. # see comment about AmigaOS4 .so support
  11641. lt_prog_compiler_pic_CXX='-fPIC'
  11642. ;;
  11643. m68k)
  11644. # FIXME: we need at least 68020 code to build shared libraries, but
  11645. # adding the `-m68020' flag to GCC prevents building anything better,
  11646. # like `-m68040'.
  11647. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11648. ;;
  11649. esac
  11650. ;;
  11651. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11652. # PIC is the default for these OSes.
  11653. ;;
  11654. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11655. # This hack is so that the source file can tell whether it is being
  11656. # built for inclusion in a dll (and should export symbols for example).
  11657. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11658. # (--disable-auto-import) libraries
  11659. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11660. ;;
  11661. darwin* | rhapsody*)
  11662. # PIC is the default on this platform
  11663. # Common symbols not allowed in MH_DYLIB files
  11664. lt_prog_compiler_pic_CXX='-fno-common'
  11665. ;;
  11666. *djgpp*)
  11667. # DJGPP does not support shared libraries at all
  11668. lt_prog_compiler_pic_CXX=
  11669. ;;
  11670. haiku*)
  11671. # PIC is the default for Haiku.
  11672. # The "-static" flag exists, but is broken.
  11673. lt_prog_compiler_static_CXX=
  11674. ;;
  11675. interix[3-9]*)
  11676. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11677. # Instead, we relocate shared libraries at runtime.
  11678. ;;
  11679. sysv4*MP*)
  11680. if test -d /usr/nec; then
  11681. lt_prog_compiler_pic_CXX=-Kconform_pic
  11682. fi
  11683. ;;
  11684. hpux*)
  11685. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11686. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11687. # sets the default TLS model and affects inlining.
  11688. case $host_cpu in
  11689. hppa*64*)
  11690. ;;
  11691. *)
  11692. lt_prog_compiler_pic_CXX='-fPIC'
  11693. ;;
  11694. esac
  11695. ;;
  11696. *qnx* | *nto*)
  11697. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11698. # it will coredump.
  11699. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11700. ;;
  11701. *)
  11702. lt_prog_compiler_pic_CXX='-fPIC'
  11703. ;;
  11704. esac
  11705. else
  11706. case $host_os in
  11707. aix[4-9]*)
  11708. # All AIX code is PIC.
  11709. if test "$host_cpu" = ia64; then
  11710. # AIX 5 now supports IA64 processor
  11711. lt_prog_compiler_static_CXX='-Bstatic'
  11712. else
  11713. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11714. fi
  11715. ;;
  11716. chorus*)
  11717. case $cc_basename in
  11718. cxch68*)
  11719. # Green Hills C++ Compiler
  11720. # _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"
  11721. ;;
  11722. esac
  11723. ;;
  11724. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11725. # This hack is so that the source file can tell whether it is being
  11726. # built for inclusion in a dll (and should export symbols for example).
  11727. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11728. ;;
  11729. dgux*)
  11730. case $cc_basename in
  11731. ec++*)
  11732. lt_prog_compiler_pic_CXX='-KPIC'
  11733. ;;
  11734. ghcx*)
  11735. # Green Hills C++ Compiler
  11736. lt_prog_compiler_pic_CXX='-pic'
  11737. ;;
  11738. *)
  11739. ;;
  11740. esac
  11741. ;;
  11742. freebsd* | dragonfly*)
  11743. # FreeBSD uses GNU C++
  11744. ;;
  11745. hpux9* | hpux10* | hpux11*)
  11746. case $cc_basename in
  11747. CC*)
  11748. lt_prog_compiler_wl_CXX='-Wl,'
  11749. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11750. if test "$host_cpu" != ia64; then
  11751. lt_prog_compiler_pic_CXX='+Z'
  11752. fi
  11753. ;;
  11754. aCC*)
  11755. lt_prog_compiler_wl_CXX='-Wl,'
  11756. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11757. case $host_cpu in
  11758. hppa*64*|ia64*)
  11759. # +Z the default
  11760. ;;
  11761. *)
  11762. lt_prog_compiler_pic_CXX='+Z'
  11763. ;;
  11764. esac
  11765. ;;
  11766. *)
  11767. ;;
  11768. esac
  11769. ;;
  11770. interix*)
  11771. # This is c89, which is MS Visual C++ (no shared libs)
  11772. # Anyone wants to do a port?
  11773. ;;
  11774. irix5* | irix6* | nonstopux*)
  11775. case $cc_basename in
  11776. CC*)
  11777. lt_prog_compiler_wl_CXX='-Wl,'
  11778. lt_prog_compiler_static_CXX='-non_shared'
  11779. # CC pic flag -KPIC is the default.
  11780. ;;
  11781. *)
  11782. ;;
  11783. esac
  11784. ;;
  11785. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11786. case $cc_basename in
  11787. KCC*)
  11788. # KAI C++ Compiler
  11789. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11790. lt_prog_compiler_pic_CXX='-fPIC'
  11791. ;;
  11792. ecpc* )
  11793. # old Intel C++ for x86_64 which still supported -KPIC.
  11794. lt_prog_compiler_wl_CXX='-Wl,'
  11795. lt_prog_compiler_pic_CXX='-KPIC'
  11796. lt_prog_compiler_static_CXX='-static'
  11797. ;;
  11798. icpc* )
  11799. # Intel C++, used to be incompatible with GCC.
  11800. # ICC 10 doesn't accept -KPIC any more.
  11801. lt_prog_compiler_wl_CXX='-Wl,'
  11802. lt_prog_compiler_pic_CXX='-fPIC'
  11803. lt_prog_compiler_static_CXX='-static'
  11804. ;;
  11805. pgCC* | pgcpp*)
  11806. # Portland Group C++ compiler
  11807. lt_prog_compiler_wl_CXX='-Wl,'
  11808. lt_prog_compiler_pic_CXX='-fpic'
  11809. lt_prog_compiler_static_CXX='-Bstatic'
  11810. ;;
  11811. cxx*)
  11812. # Compaq C++
  11813. # Make sure the PIC flag is empty. It appears that all Alpha
  11814. # Linux and Compaq Tru64 Unix objects are PIC.
  11815. lt_prog_compiler_pic_CXX=
  11816. lt_prog_compiler_static_CXX='-non_shared'
  11817. ;;
  11818. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11819. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11820. lt_prog_compiler_wl_CXX='-Wl,'
  11821. lt_prog_compiler_pic_CXX='-qpic'
  11822. lt_prog_compiler_static_CXX='-qstaticlink'
  11823. ;;
  11824. *)
  11825. case `$CC -V 2>&1 | sed 5q` in
  11826. *Sun\ C*)
  11827. # Sun C++ 5.9
  11828. lt_prog_compiler_pic_CXX='-KPIC'
  11829. lt_prog_compiler_static_CXX='-Bstatic'
  11830. lt_prog_compiler_wl_CXX='-Qoption ld '
  11831. ;;
  11832. esac
  11833. ;;
  11834. esac
  11835. ;;
  11836. lynxos*)
  11837. ;;
  11838. m88k*)
  11839. ;;
  11840. mvs*)
  11841. case $cc_basename in
  11842. cxx*)
  11843. lt_prog_compiler_pic_CXX='-W c,exportall'
  11844. ;;
  11845. *)
  11846. ;;
  11847. esac
  11848. ;;
  11849. netbsd* | netbsdelf*-gnu)
  11850. ;;
  11851. *qnx* | *nto*)
  11852. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11853. # it will coredump.
  11854. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11855. ;;
  11856. osf3* | osf4* | osf5*)
  11857. case $cc_basename in
  11858. KCC*)
  11859. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11860. ;;
  11861. RCC*)
  11862. # Rational C++ 2.4.1
  11863. lt_prog_compiler_pic_CXX='-pic'
  11864. ;;
  11865. cxx*)
  11866. # Digital/Compaq C++
  11867. lt_prog_compiler_wl_CXX='-Wl,'
  11868. # Make sure the PIC flag is empty. It appears that all Alpha
  11869. # Linux and Compaq Tru64 Unix objects are PIC.
  11870. lt_prog_compiler_pic_CXX=
  11871. lt_prog_compiler_static_CXX='-non_shared'
  11872. ;;
  11873. *)
  11874. ;;
  11875. esac
  11876. ;;
  11877. psos*)
  11878. ;;
  11879. solaris*)
  11880. case $cc_basename in
  11881. CC* | sunCC*)
  11882. # Sun C++ 4.2, 5.x and Centerline C++
  11883. lt_prog_compiler_pic_CXX='-KPIC'
  11884. lt_prog_compiler_static_CXX='-Bstatic'
  11885. lt_prog_compiler_wl_CXX='-Qoption ld '
  11886. ;;
  11887. gcx*)
  11888. # Green Hills C++ Compiler
  11889. lt_prog_compiler_pic_CXX='-PIC'
  11890. ;;
  11891. *)
  11892. ;;
  11893. esac
  11894. ;;
  11895. sunos4*)
  11896. case $cc_basename in
  11897. CC*)
  11898. # Sun C++ 4.x
  11899. lt_prog_compiler_pic_CXX='-pic'
  11900. lt_prog_compiler_static_CXX='-Bstatic'
  11901. ;;
  11902. lcc*)
  11903. # Lucid
  11904. lt_prog_compiler_pic_CXX='-pic'
  11905. ;;
  11906. *)
  11907. ;;
  11908. esac
  11909. ;;
  11910. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11911. case $cc_basename in
  11912. CC*)
  11913. lt_prog_compiler_wl_CXX='-Wl,'
  11914. lt_prog_compiler_pic_CXX='-KPIC'
  11915. lt_prog_compiler_static_CXX='-Bstatic'
  11916. ;;
  11917. esac
  11918. ;;
  11919. tandem*)
  11920. case $cc_basename in
  11921. NCC*)
  11922. # NonStop-UX NCC 3.20
  11923. lt_prog_compiler_pic_CXX='-KPIC'
  11924. ;;
  11925. *)
  11926. ;;
  11927. esac
  11928. ;;
  11929. vxworks*)
  11930. ;;
  11931. *)
  11932. lt_prog_compiler_can_build_shared_CXX=no
  11933. ;;
  11934. esac
  11935. fi
  11936. case $host_os in
  11937. # For platforms which do not support PIC, -DPIC is meaningless:
  11938. *djgpp*)
  11939. lt_prog_compiler_pic_CXX=
  11940. ;;
  11941. *)
  11942. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11943. ;;
  11944. esac
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11946. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11947. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11948. $as_echo_n "(cached) " >&6
  11949. else
  11950. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11951. fi
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11953. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11954. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11955. #
  11956. # Check to make sure the PIC flag actually works.
  11957. #
  11958. if test -n "$lt_prog_compiler_pic_CXX"; then
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11960. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11961. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11962. $as_echo_n "(cached) " >&6
  11963. else
  11964. lt_cv_prog_compiler_pic_works_CXX=no
  11965. ac_outfile=conftest.$ac_objext
  11966. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11967. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11968. # Insert the option either (1) after the last *FLAGS variable, or
  11969. # (2) before a word containing "conftest.", or (3) at the end.
  11970. # Note that $ac_compile itself does not contain backslashes and begins
  11971. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11972. # The option is referenced via a variable to avoid confusing sed.
  11973. lt_compile=`echo "$ac_compile" | $SED \
  11974. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11975. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11976. -e 's:$: $lt_compiler_flag:'`
  11977. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11978. (eval "$lt_compile" 2>conftest.err)
  11979. ac_status=$?
  11980. cat conftest.err >&5
  11981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11982. if (exit $ac_status) && test -s "$ac_outfile"; then
  11983. # The compiler can only warn and ignore the option if not recognized
  11984. # So say no if there are warnings other than the usual output.
  11985. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11986. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11987. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11988. lt_cv_prog_compiler_pic_works_CXX=yes
  11989. fi
  11990. fi
  11991. $RM conftest*
  11992. fi
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11994. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11995. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11996. case $lt_prog_compiler_pic_CXX in
  11997. "" | " "*) ;;
  11998. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11999. esac
  12000. else
  12001. lt_prog_compiler_pic_CXX=
  12002. lt_prog_compiler_can_build_shared_CXX=no
  12003. fi
  12004. fi
  12005. #
  12006. # Check to make sure the static flag actually works.
  12007. #
  12008. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12010. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12011. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. lt_cv_prog_compiler_static_works_CXX=no
  12015. save_LDFLAGS="$LDFLAGS"
  12016. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12017. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12018. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12019. # The linker can only warn and ignore the option if not recognized
  12020. # So say no if there are warnings
  12021. if test -s conftest.err; then
  12022. # Append any errors to the config.log.
  12023. cat conftest.err 1>&5
  12024. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12025. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12026. if diff conftest.exp conftest.er2 >/dev/null; then
  12027. lt_cv_prog_compiler_static_works_CXX=yes
  12028. fi
  12029. else
  12030. lt_cv_prog_compiler_static_works_CXX=yes
  12031. fi
  12032. fi
  12033. $RM -r conftest*
  12034. LDFLAGS="$save_LDFLAGS"
  12035. fi
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12037. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12038. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12039. :
  12040. else
  12041. lt_prog_compiler_static_CXX=
  12042. fi
  12043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12044. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12045. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12046. $as_echo_n "(cached) " >&6
  12047. else
  12048. lt_cv_prog_compiler_c_o_CXX=no
  12049. $RM -r conftest 2>/dev/null
  12050. mkdir conftest
  12051. cd conftest
  12052. mkdir out
  12053. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12054. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12055. # Insert the option either (1) after the last *FLAGS variable, or
  12056. # (2) before a word containing "conftest.", or (3) at the end.
  12057. # Note that $ac_compile itself does not contain backslashes and begins
  12058. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12059. lt_compile=`echo "$ac_compile" | $SED \
  12060. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12061. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12062. -e 's:$: $lt_compiler_flag:'`
  12063. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12064. (eval "$lt_compile" 2>out/conftest.err)
  12065. ac_status=$?
  12066. cat out/conftest.err >&5
  12067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12068. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12069. then
  12070. # The compiler can only warn and ignore the option if not recognized
  12071. # So say no if there are warnings
  12072. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12073. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12074. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12075. lt_cv_prog_compiler_c_o_CXX=yes
  12076. fi
  12077. fi
  12078. chmod u+w . 2>&5
  12079. $RM conftest*
  12080. # SGI C++ compiler will create directory out/ii_files/ for
  12081. # template instantiation
  12082. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12083. $RM out/* && rmdir out
  12084. cd ..
  12085. $RM -r conftest
  12086. $RM conftest*
  12087. fi
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12089. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12091. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12092. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12093. $as_echo_n "(cached) " >&6
  12094. else
  12095. lt_cv_prog_compiler_c_o_CXX=no
  12096. $RM -r conftest 2>/dev/null
  12097. mkdir conftest
  12098. cd conftest
  12099. mkdir out
  12100. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12101. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12102. # Insert the option either (1) after the last *FLAGS variable, or
  12103. # (2) before a word containing "conftest.", or (3) at the end.
  12104. # Note that $ac_compile itself does not contain backslashes and begins
  12105. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12106. lt_compile=`echo "$ac_compile" | $SED \
  12107. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12108. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12109. -e 's:$: $lt_compiler_flag:'`
  12110. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12111. (eval "$lt_compile" 2>out/conftest.err)
  12112. ac_status=$?
  12113. cat out/conftest.err >&5
  12114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12115. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12116. then
  12117. # The compiler can only warn and ignore the option if not recognized
  12118. # So say no if there are warnings
  12119. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12120. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12121. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12122. lt_cv_prog_compiler_c_o_CXX=yes
  12123. fi
  12124. fi
  12125. chmod u+w . 2>&5
  12126. $RM conftest*
  12127. # SGI C++ compiler will create directory out/ii_files/ for
  12128. # template instantiation
  12129. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12130. $RM out/* && rmdir out
  12131. cd ..
  12132. $RM -r conftest
  12133. $RM conftest*
  12134. fi
  12135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12136. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12137. hard_links="nottested"
  12138. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12139. # do not overwrite the value of need_locks provided by the user
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12141. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12142. hard_links=yes
  12143. $RM conftest*
  12144. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12145. touch conftest.a
  12146. ln conftest.a conftest.b 2>&5 || hard_links=no
  12147. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12149. $as_echo "$hard_links" >&6; }
  12150. if test "$hard_links" = no; then
  12151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12152. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12153. need_locks=warn
  12154. fi
  12155. else
  12156. need_locks=no
  12157. fi
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12159. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12160. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12161. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12162. case $host_os in
  12163. aix[4-9]*)
  12164. # If we're using GNU nm, then we don't want the "-C" option.
  12165. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12166. # Also, AIX nm treats weak defined symbols like other global defined
  12167. # symbols, whereas GNU nm marks them as "W".
  12168. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12169. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12170. else
  12171. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12172. fi
  12173. ;;
  12174. pw32*)
  12175. export_symbols_cmds_CXX="$ltdll_cmds"
  12176. ;;
  12177. cygwin* | mingw* | cegcc*)
  12178. case $cc_basename in
  12179. cl*) ;;
  12180. *)
  12181. 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'
  12182. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12183. ;;
  12184. esac
  12185. ;;
  12186. linux* | k*bsd*-gnu | gnu*)
  12187. link_all_deplibs_CXX=no
  12188. ;;
  12189. *)
  12190. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12191. ;;
  12192. esac
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12194. $as_echo "$ld_shlibs_CXX" >&6; }
  12195. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12196. with_gnu_ld_CXX=$with_gnu_ld
  12197. #
  12198. # Do we need to explicitly link libc?
  12199. #
  12200. case "x$archive_cmds_need_lc_CXX" in
  12201. x|xyes)
  12202. # Assume -lc should be added
  12203. archive_cmds_need_lc_CXX=yes
  12204. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12205. case $archive_cmds_CXX in
  12206. *'~'*)
  12207. # FIXME: we may have to deal with multi-command sequences.
  12208. ;;
  12209. '$CC '*)
  12210. # Test whether the compiler implicitly links with -lc since on some
  12211. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12212. # to ld, don't add -lc before -lgcc.
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12214. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12215. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12216. $as_echo_n "(cached) " >&6
  12217. else
  12218. $RM conftest*
  12219. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12221. (eval $ac_compile) 2>&5
  12222. ac_status=$?
  12223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12224. test $ac_status = 0; } 2>conftest.err; then
  12225. soname=conftest
  12226. lib=conftest
  12227. libobjs=conftest.$ac_objext
  12228. deplibs=
  12229. wl=$lt_prog_compiler_wl_CXX
  12230. pic_flag=$lt_prog_compiler_pic_CXX
  12231. compiler_flags=-v
  12232. linker_flags=-v
  12233. verstring=
  12234. output_objdir=.
  12235. libname=conftest
  12236. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12237. allow_undefined_flag_CXX=
  12238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12239. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12240. ac_status=$?
  12241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12242. test $ac_status = 0; }
  12243. then
  12244. lt_cv_archive_cmds_need_lc_CXX=no
  12245. else
  12246. lt_cv_archive_cmds_need_lc_CXX=yes
  12247. fi
  12248. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12249. else
  12250. cat conftest.err 1>&5
  12251. fi
  12252. $RM conftest*
  12253. fi
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12255. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12256. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12257. ;;
  12258. esac
  12259. fi
  12260. ;;
  12261. esac
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12263. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12264. library_names_spec=
  12265. libname_spec='lib$name'
  12266. soname_spec=
  12267. shrext_cmds=".so"
  12268. postinstall_cmds=
  12269. postuninstall_cmds=
  12270. finish_cmds=
  12271. finish_eval=
  12272. shlibpath_var=
  12273. shlibpath_overrides_runpath=unknown
  12274. version_type=none
  12275. dynamic_linker="$host_os ld.so"
  12276. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12277. need_lib_prefix=unknown
  12278. hardcode_into_libs=no
  12279. # when you set need_version to no, make sure it does not cause -set_version
  12280. # flags to be left without arguments
  12281. need_version=unknown
  12282. case $host_os in
  12283. aix3*)
  12284. version_type=linux
  12285. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12286. shlibpath_var=LIBPATH
  12287. # AIX 3 has no versioning support, so we append a major version to the name.
  12288. soname_spec='${libname}${release}${shared_ext}$major'
  12289. ;;
  12290. aix[4-9]*)
  12291. version_type=linux
  12292. need_lib_prefix=no
  12293. need_version=no
  12294. hardcode_into_libs=yes
  12295. if test "$host_cpu" = ia64; then
  12296. # AIX 5 supports IA64
  12297. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12298. shlibpath_var=LD_LIBRARY_PATH
  12299. else
  12300. # With GCC up to 2.95.x, collect2 would create an import file
  12301. # for dependence libraries. The import file would start with
  12302. # the line `#! .'. This would cause the generated library to
  12303. # depend on `.', always an invalid library. This was fixed in
  12304. # development snapshots of GCC prior to 3.0.
  12305. case $host_os in
  12306. aix4 | aix4.[01] | aix4.[01].*)
  12307. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12308. echo ' yes '
  12309. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12310. :
  12311. else
  12312. can_build_shared=no
  12313. fi
  12314. ;;
  12315. esac
  12316. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12317. # soname into executable. Probably we can add versioning support to
  12318. # collect2, so additional links can be useful in future.
  12319. if test "$aix_use_runtimelinking" = yes; then
  12320. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12321. # instead of lib<name>.a to let people know that these are not
  12322. # typical AIX shared libraries.
  12323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12324. else
  12325. # We preserve .a as extension for shared libraries through AIX4.2
  12326. # and later when we are not doing run time linking.
  12327. library_names_spec='${libname}${release}.a $libname.a'
  12328. soname_spec='${libname}${release}${shared_ext}$major'
  12329. fi
  12330. shlibpath_var=LIBPATH
  12331. fi
  12332. ;;
  12333. amigaos*)
  12334. case $host_cpu in
  12335. powerpc)
  12336. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12337. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12339. ;;
  12340. m68k)
  12341. library_names_spec='$libname.ixlibrary $libname.a'
  12342. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12343. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12344. ;;
  12345. esac
  12346. ;;
  12347. beos*)
  12348. library_names_spec='${libname}${shared_ext}'
  12349. dynamic_linker="$host_os ld.so"
  12350. shlibpath_var=LIBRARY_PATH
  12351. ;;
  12352. bsdi[45]*)
  12353. version_type=linux
  12354. need_version=no
  12355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12356. soname_spec='${libname}${release}${shared_ext}$major'
  12357. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12358. shlibpath_var=LD_LIBRARY_PATH
  12359. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12360. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12361. # the default ld.so.conf also contains /usr/contrib/lib and
  12362. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12363. # libtool to hard-code these into programs
  12364. ;;
  12365. cygwin* | mingw* | pw32* | cegcc*)
  12366. version_type=windows
  12367. shrext_cmds=".dll"
  12368. need_version=no
  12369. need_lib_prefix=no
  12370. case $GCC,$cc_basename in
  12371. yes,*)
  12372. # gcc
  12373. library_names_spec='$libname.dll.a'
  12374. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12375. postinstall_cmds='base_file=`basename \${file}`~
  12376. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12377. dldir=$destdir/`dirname \$dlpath`~
  12378. test -d \$dldir || mkdir -p \$dldir~
  12379. $install_prog $dir/$dlname \$dldir/$dlname~
  12380. chmod a+x \$dldir/$dlname~
  12381. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12382. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12383. fi'
  12384. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12385. dlpath=$dir/\$dldll~
  12386. $RM \$dlpath'
  12387. shlibpath_overrides_runpath=yes
  12388. case $host_os in
  12389. cygwin*)
  12390. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12391. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12392. ;;
  12393. mingw* | cegcc*)
  12394. # MinGW DLLs use traditional 'lib' prefix
  12395. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12396. ;;
  12397. pw32*)
  12398. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12399. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12400. ;;
  12401. esac
  12402. dynamic_linker='Win32 ld.exe'
  12403. ;;
  12404. *,cl*)
  12405. # Native MSVC
  12406. libname_spec='$name'
  12407. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12408. library_names_spec='${libname}.dll.lib'
  12409. case $build_os in
  12410. mingw*)
  12411. sys_lib_search_path_spec=
  12412. lt_save_ifs=$IFS
  12413. IFS=';'
  12414. for lt_path in $LIB
  12415. do
  12416. IFS=$lt_save_ifs
  12417. # Let DOS variable expansion print the short 8.3 style file name.
  12418. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12419. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12420. done
  12421. IFS=$lt_save_ifs
  12422. # Convert to MSYS style.
  12423. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12424. ;;
  12425. cygwin*)
  12426. # Convert to unix form, then to dos form, then back to unix form
  12427. # but this time dos style (no spaces!) so that the unix form looks
  12428. # like /cygdrive/c/PROGRA~1:/cygdr...
  12429. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12430. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12431. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12432. ;;
  12433. *)
  12434. sys_lib_search_path_spec="$LIB"
  12435. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12436. # It is most probably a Windows format PATH.
  12437. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12438. else
  12439. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12440. fi
  12441. # FIXME: find the short name or the path components, as spaces are
  12442. # common. (e.g. "Program Files" -> "PROGRA~1")
  12443. ;;
  12444. esac
  12445. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12446. postinstall_cmds='base_file=`basename \${file}`~
  12447. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12448. dldir=$destdir/`dirname \$dlpath`~
  12449. test -d \$dldir || mkdir -p \$dldir~
  12450. $install_prog $dir/$dlname \$dldir/$dlname'
  12451. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12452. dlpath=$dir/\$dldll~
  12453. $RM \$dlpath'
  12454. shlibpath_overrides_runpath=yes
  12455. dynamic_linker='Win32 link.exe'
  12456. ;;
  12457. *)
  12458. # Assume MSVC wrapper
  12459. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12460. dynamic_linker='Win32 ld.exe'
  12461. ;;
  12462. esac
  12463. # FIXME: first we should search . and the directory the executable is in
  12464. shlibpath_var=PATH
  12465. ;;
  12466. darwin* | rhapsody*)
  12467. dynamic_linker="$host_os dyld"
  12468. version_type=darwin
  12469. need_lib_prefix=no
  12470. need_version=no
  12471. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12472. soname_spec='${libname}${release}${major}$shared_ext'
  12473. shlibpath_overrides_runpath=yes
  12474. shlibpath_var=DYLD_LIBRARY_PATH
  12475. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12476. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12477. ;;
  12478. dgux*)
  12479. version_type=linux
  12480. need_lib_prefix=no
  12481. need_version=no
  12482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12483. soname_spec='${libname}${release}${shared_ext}$major'
  12484. shlibpath_var=LD_LIBRARY_PATH
  12485. ;;
  12486. freebsd1*)
  12487. dynamic_linker=no
  12488. ;;
  12489. freebsd* | dragonfly*)
  12490. # DragonFly does not have aout. When/if they implement a new
  12491. # versioning mechanism, adjust this.
  12492. if test -x /usr/bin/objformat; then
  12493. objformat=`/usr/bin/objformat`
  12494. else
  12495. case $host_os in
  12496. freebsd[123]*) objformat=aout ;;
  12497. *) objformat=elf ;;
  12498. esac
  12499. fi
  12500. version_type=freebsd-$objformat
  12501. case $version_type in
  12502. freebsd-elf*)
  12503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12504. need_version=no
  12505. need_lib_prefix=no
  12506. ;;
  12507. freebsd-*)
  12508. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12509. need_version=yes
  12510. ;;
  12511. esac
  12512. shlibpath_var=LD_LIBRARY_PATH
  12513. case $host_os in
  12514. freebsd2*)
  12515. shlibpath_overrides_runpath=yes
  12516. ;;
  12517. freebsd3.[01]* | freebsdelf3.[01]*)
  12518. shlibpath_overrides_runpath=yes
  12519. hardcode_into_libs=yes
  12520. ;;
  12521. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12522. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12523. shlibpath_overrides_runpath=no
  12524. hardcode_into_libs=yes
  12525. ;;
  12526. *) # from 4.6 on, and DragonFly
  12527. shlibpath_overrides_runpath=yes
  12528. hardcode_into_libs=yes
  12529. ;;
  12530. esac
  12531. ;;
  12532. gnu*)
  12533. version_type=linux
  12534. need_lib_prefix=no
  12535. need_version=no
  12536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12537. soname_spec='${libname}${release}${shared_ext}$major'
  12538. shlibpath_var=LD_LIBRARY_PATH
  12539. shlibpath_overrides_runpath=no
  12540. hardcode_into_libs=yes
  12541. ;;
  12542. haiku*)
  12543. version_type=linux
  12544. need_lib_prefix=no
  12545. need_version=no
  12546. dynamic_linker="$host_os runtime_loader"
  12547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12548. soname_spec='${libname}${release}${shared_ext}$major'
  12549. shlibpath_var=LIBRARY_PATH
  12550. shlibpath_overrides_runpath=yes
  12551. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12552. hardcode_into_libs=yes
  12553. ;;
  12554. hpux9* | hpux10* | hpux11*)
  12555. # Give a soname corresponding to the major version so that dld.sl refuses to
  12556. # link against other versions.
  12557. version_type=sunos
  12558. need_lib_prefix=no
  12559. need_version=no
  12560. case $host_cpu in
  12561. ia64*)
  12562. shrext_cmds='.so'
  12563. hardcode_into_libs=yes
  12564. dynamic_linker="$host_os dld.so"
  12565. shlibpath_var=LD_LIBRARY_PATH
  12566. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12568. soname_spec='${libname}${release}${shared_ext}$major'
  12569. if test "X$HPUX_IA64_MODE" = X32; then
  12570. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12571. else
  12572. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12573. fi
  12574. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12575. ;;
  12576. hppa*64*)
  12577. shrext_cmds='.sl'
  12578. hardcode_into_libs=yes
  12579. dynamic_linker="$host_os dld.sl"
  12580. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12581. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12583. soname_spec='${libname}${release}${shared_ext}$major'
  12584. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12585. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12586. ;;
  12587. *)
  12588. shrext_cmds='.sl'
  12589. dynamic_linker="$host_os dld.sl"
  12590. shlibpath_var=SHLIB_PATH
  12591. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12593. soname_spec='${libname}${release}${shared_ext}$major'
  12594. ;;
  12595. esac
  12596. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12597. postinstall_cmds='chmod 555 $lib'
  12598. # or fails outright, so override atomically:
  12599. install_override_mode=555
  12600. ;;
  12601. interix[3-9]*)
  12602. version_type=linux
  12603. need_lib_prefix=no
  12604. need_version=no
  12605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12606. soname_spec='${libname}${release}${shared_ext}$major'
  12607. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12608. shlibpath_var=LD_LIBRARY_PATH
  12609. shlibpath_overrides_runpath=no
  12610. hardcode_into_libs=yes
  12611. ;;
  12612. irix5* | irix6* | nonstopux*)
  12613. case $host_os in
  12614. nonstopux*) version_type=nonstopux ;;
  12615. *)
  12616. if test "$lt_cv_prog_gnu_ld" = yes; then
  12617. version_type=linux
  12618. else
  12619. version_type=irix
  12620. fi ;;
  12621. esac
  12622. need_lib_prefix=no
  12623. need_version=no
  12624. soname_spec='${libname}${release}${shared_ext}$major'
  12625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12626. case $host_os in
  12627. irix5* | nonstopux*)
  12628. libsuff= shlibsuff=
  12629. ;;
  12630. *)
  12631. case $LD in # libtool.m4 will add one of these switches to LD
  12632. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12633. libsuff= shlibsuff= libmagic=32-bit;;
  12634. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12635. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12636. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12637. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12638. *) libsuff= shlibsuff= libmagic=never-match;;
  12639. esac
  12640. ;;
  12641. esac
  12642. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12643. shlibpath_overrides_runpath=no
  12644. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12645. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12646. hardcode_into_libs=yes
  12647. ;;
  12648. # No shared lib support for Linux oldld, aout, or coff.
  12649. linux*oldld* | linux*aout* | linux*coff*)
  12650. dynamic_linker=no
  12651. ;;
  12652. # This must be Linux ELF.
  12653. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12654. version_type=linux
  12655. need_lib_prefix=no
  12656. need_version=no
  12657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12658. soname_spec='${libname}${release}${shared_ext}$major'
  12659. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12660. shlibpath_var=LD_LIBRARY_PATH
  12661. shlibpath_overrides_runpath=no
  12662. # Some binutils ld are patched to set DT_RUNPATH
  12663. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12664. $as_echo_n "(cached) " >&6
  12665. else
  12666. lt_cv_shlibpath_overrides_runpath=no
  12667. save_LDFLAGS=$LDFLAGS
  12668. save_libdir=$libdir
  12669. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12670. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12672. /* end confdefs.h. */
  12673. int
  12674. main ()
  12675. {
  12676. ;
  12677. return 0;
  12678. }
  12679. _ACEOF
  12680. if ac_fn_cxx_try_link "$LINENO"; then :
  12681. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12682. lt_cv_shlibpath_overrides_runpath=yes
  12683. fi
  12684. fi
  12685. rm -f core conftest.err conftest.$ac_objext \
  12686. conftest$ac_exeext conftest.$ac_ext
  12687. LDFLAGS=$save_LDFLAGS
  12688. libdir=$save_libdir
  12689. fi
  12690. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12691. # This implies no fast_install, which is unacceptable.
  12692. # Some rework will be needed to allow for fast_install
  12693. # before this can be enabled.
  12694. hardcode_into_libs=yes
  12695. # Append ld.so.conf contents to the search path
  12696. if test -f /etc/ld.so.conf; then
  12697. 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' ' '`
  12698. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12699. fi
  12700. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12701. # powerpc, because MkLinux only supported shared libraries with the
  12702. # GNU dynamic linker. Since this was broken with cross compilers,
  12703. # most powerpc-linux boxes support dynamic linking these days and
  12704. # people can always --disable-shared, the test was removed, and we
  12705. # assume the GNU/Linux dynamic linker is in use.
  12706. dynamic_linker='GNU/Linux ld.so'
  12707. ;;
  12708. netbsdelf*-gnu)
  12709. version_type=linux
  12710. need_lib_prefix=no
  12711. need_version=no
  12712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12713. soname_spec='${libname}${release}${shared_ext}$major'
  12714. shlibpath_var=LD_LIBRARY_PATH
  12715. shlibpath_overrides_runpath=no
  12716. hardcode_into_libs=yes
  12717. dynamic_linker='NetBSD ld.elf_so'
  12718. ;;
  12719. netbsd*)
  12720. version_type=sunos
  12721. need_lib_prefix=no
  12722. need_version=no
  12723. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12725. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12726. dynamic_linker='NetBSD (a.out) ld.so'
  12727. else
  12728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12729. soname_spec='${libname}${release}${shared_ext}$major'
  12730. dynamic_linker='NetBSD ld.elf_so'
  12731. fi
  12732. shlibpath_var=LD_LIBRARY_PATH
  12733. shlibpath_overrides_runpath=yes
  12734. hardcode_into_libs=yes
  12735. ;;
  12736. newsos6)
  12737. version_type=linux
  12738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12739. shlibpath_var=LD_LIBRARY_PATH
  12740. shlibpath_overrides_runpath=yes
  12741. ;;
  12742. *nto* | *qnx*)
  12743. version_type=qnx
  12744. need_lib_prefix=no
  12745. need_version=no
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12747. soname_spec='${libname}${release}${shared_ext}$major'
  12748. shlibpath_var=LD_LIBRARY_PATH
  12749. shlibpath_overrides_runpath=no
  12750. hardcode_into_libs=yes
  12751. dynamic_linker='ldqnx.so'
  12752. ;;
  12753. openbsd*)
  12754. version_type=sunos
  12755. sys_lib_dlsearch_path_spec="/usr/lib"
  12756. need_lib_prefix=no
  12757. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12758. case $host_os in
  12759. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12760. *) need_version=no ;;
  12761. esac
  12762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12763. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12764. shlibpath_var=LD_LIBRARY_PATH
  12765. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12766. case $host_os in
  12767. openbsd2.[89] | openbsd2.[89].*)
  12768. shlibpath_overrides_runpath=no
  12769. ;;
  12770. *)
  12771. shlibpath_overrides_runpath=yes
  12772. ;;
  12773. esac
  12774. else
  12775. shlibpath_overrides_runpath=yes
  12776. fi
  12777. ;;
  12778. os2*)
  12779. libname_spec='$name'
  12780. shrext_cmds=".dll"
  12781. need_lib_prefix=no
  12782. library_names_spec='$libname${shared_ext} $libname.a'
  12783. dynamic_linker='OS/2 ld.exe'
  12784. shlibpath_var=LIBPATH
  12785. ;;
  12786. osf3* | osf4* | osf5*)
  12787. version_type=osf
  12788. need_lib_prefix=no
  12789. need_version=no
  12790. soname_spec='${libname}${release}${shared_ext}$major'
  12791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12792. shlibpath_var=LD_LIBRARY_PATH
  12793. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12794. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12795. ;;
  12796. rdos*)
  12797. dynamic_linker=no
  12798. ;;
  12799. solaris*)
  12800. version_type=linux
  12801. need_lib_prefix=no
  12802. need_version=no
  12803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12804. soname_spec='${libname}${release}${shared_ext}$major'
  12805. shlibpath_var=LD_LIBRARY_PATH
  12806. shlibpath_overrides_runpath=yes
  12807. hardcode_into_libs=yes
  12808. # ldd complains unless libraries are executable
  12809. postinstall_cmds='chmod +x $lib'
  12810. ;;
  12811. sunos4*)
  12812. version_type=sunos
  12813. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12814. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12815. shlibpath_var=LD_LIBRARY_PATH
  12816. shlibpath_overrides_runpath=yes
  12817. if test "$with_gnu_ld" = yes; then
  12818. need_lib_prefix=no
  12819. fi
  12820. need_version=yes
  12821. ;;
  12822. sysv4 | sysv4.3*)
  12823. version_type=linux
  12824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12825. soname_spec='${libname}${release}${shared_ext}$major'
  12826. shlibpath_var=LD_LIBRARY_PATH
  12827. case $host_vendor in
  12828. sni)
  12829. shlibpath_overrides_runpath=no
  12830. need_lib_prefix=no
  12831. runpath_var=LD_RUN_PATH
  12832. ;;
  12833. siemens)
  12834. need_lib_prefix=no
  12835. ;;
  12836. motorola)
  12837. need_lib_prefix=no
  12838. need_version=no
  12839. shlibpath_overrides_runpath=no
  12840. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12841. ;;
  12842. esac
  12843. ;;
  12844. sysv4*MP*)
  12845. if test -d /usr/nec ;then
  12846. version_type=linux
  12847. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12848. soname_spec='$libname${shared_ext}.$major'
  12849. shlibpath_var=LD_LIBRARY_PATH
  12850. fi
  12851. ;;
  12852. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12853. version_type=freebsd-elf
  12854. need_lib_prefix=no
  12855. need_version=no
  12856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. shlibpath_var=LD_LIBRARY_PATH
  12859. shlibpath_overrides_runpath=yes
  12860. hardcode_into_libs=yes
  12861. if test "$with_gnu_ld" = yes; then
  12862. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12863. else
  12864. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12865. case $host_os in
  12866. sco3.2v5*)
  12867. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12868. ;;
  12869. esac
  12870. fi
  12871. sys_lib_dlsearch_path_spec='/usr/lib'
  12872. ;;
  12873. tpf*)
  12874. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12875. version_type=linux
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. shlibpath_overrides_runpath=no
  12881. hardcode_into_libs=yes
  12882. ;;
  12883. uts4*)
  12884. version_type=linux
  12885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12886. soname_spec='${libname}${release}${shared_ext}$major'
  12887. shlibpath_var=LD_LIBRARY_PATH
  12888. ;;
  12889. *)
  12890. dynamic_linker=no
  12891. ;;
  12892. esac
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12894. $as_echo "$dynamic_linker" >&6; }
  12895. test "$dynamic_linker" = no && can_build_shared=no
  12896. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12897. if test "$GCC" = yes; then
  12898. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12899. fi
  12900. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12901. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12902. fi
  12903. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12904. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12905. fi
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12907. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12908. hardcode_action_CXX=
  12909. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12910. test -n "$runpath_var_CXX" ||
  12911. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12912. # We can hardcode non-existent directories.
  12913. if test "$hardcode_direct_CXX" != no &&
  12914. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12915. # have to relink, otherwise we might link with an installed library
  12916. # when we should be linking with a yet-to-be-installed one
  12917. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12918. test "$hardcode_minus_L_CXX" != no; then
  12919. # Linking always hardcodes the temporary library directory.
  12920. hardcode_action_CXX=relink
  12921. else
  12922. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12923. hardcode_action_CXX=immediate
  12924. fi
  12925. else
  12926. # We cannot hardcode anything, or else we can only hardcode existing
  12927. # directories.
  12928. hardcode_action_CXX=unsupported
  12929. fi
  12930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12931. $as_echo "$hardcode_action_CXX" >&6; }
  12932. if test "$hardcode_action_CXX" = relink ||
  12933. test "$inherit_rpath_CXX" = yes; then
  12934. # Fast installation is not supported
  12935. enable_fast_install=no
  12936. elif test "$shlibpath_overrides_runpath" = yes ||
  12937. test "$enable_shared" = no; then
  12938. # Fast installation is not necessary
  12939. enable_fast_install=needless
  12940. fi
  12941. fi # test -n "$compiler"
  12942. CC=$lt_save_CC
  12943. CFLAGS=$lt_save_CFLAGS
  12944. LDCXX=$LD
  12945. LD=$lt_save_LD
  12946. GCC=$lt_save_GCC
  12947. with_gnu_ld=$lt_save_with_gnu_ld
  12948. lt_cv_path_LDCXX=$lt_cv_path_LD
  12949. lt_cv_path_LD=$lt_save_path_LD
  12950. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12951. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12952. fi # test "$_lt_caught_CXX_error" != yes
  12953. ac_ext=c
  12954. ac_cpp='$CPP $CPPFLAGS'
  12955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12958. # Find a good install program. We prefer a C program (faster),
  12959. # so one script is as good as another. But avoid the broken or
  12960. # incompatible versions:
  12961. # SysV /etc/install, /usr/sbin/install
  12962. # SunOS /usr/etc/install
  12963. # IRIX /sbin/install
  12964. # AIX /bin/install
  12965. # AmigaOS /C/install, which installs bootblocks on floppy discs
  12966. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12967. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12968. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12969. # OS/2's system install, which has a completely different semantic
  12970. # ./install, which can be erroneously created by make from ./install.sh.
  12971. # Reject install programs that cannot install multiple files.
  12972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  12973. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  12974. if test -z "$INSTALL"; then
  12975. if ${ac_cv_path_install+:} false; then :
  12976. $as_echo_n "(cached) " >&6
  12977. else
  12978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12979. for as_dir in $PATH
  12980. do
  12981. IFS=$as_save_IFS
  12982. test -z "$as_dir" && as_dir=.
  12983. # Account for people who put trailing slashes in PATH elements.
  12984. case $as_dir/ in #((
  12985. ./ | .// | /[cC]/* | \
  12986. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12987. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  12988. /usr/ucb/* ) ;;
  12989. *)
  12990. # OSF1 and SCO ODT 3.0 have their own names for install.
  12991. # Don't use installbsd from OSF since it installs stuff as root
  12992. # by default.
  12993. for ac_prog in ginstall scoinst install; do
  12994. for ac_exec_ext in '' $ac_executable_extensions; do
  12995. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  12996. if test $ac_prog = install &&
  12997. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12998. # AIX install. It has an incompatible calling convention.
  12999. :
  13000. elif test $ac_prog = install &&
  13001. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13002. # program-specific install script used by HP pwplus--don't use.
  13003. :
  13004. else
  13005. rm -rf conftest.one conftest.two conftest.dir
  13006. echo one > conftest.one
  13007. echo two > conftest.two
  13008. mkdir conftest.dir
  13009. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13010. test -s conftest.one && test -s conftest.two &&
  13011. test -s conftest.dir/conftest.one &&
  13012. test -s conftest.dir/conftest.two
  13013. then
  13014. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13015. break 3
  13016. fi
  13017. fi
  13018. fi
  13019. done
  13020. done
  13021. ;;
  13022. esac
  13023. done
  13024. IFS=$as_save_IFS
  13025. rm -rf conftest.one conftest.two conftest.dir
  13026. fi
  13027. if test "${ac_cv_path_install+set}" = set; then
  13028. INSTALL=$ac_cv_path_install
  13029. else
  13030. # As a last resort, use the slow shell script. Don't cache a
  13031. # value for INSTALL within a source directory, because that will
  13032. # break other packages using the cache if that directory is
  13033. # removed, or if the value is a relative name.
  13034. INSTALL=$ac_install_sh
  13035. fi
  13036. fi
  13037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13038. $as_echo "$INSTALL" >&6; }
  13039. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13040. # It thinks the first close brace ends the variable substitution.
  13041. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13042. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13043. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13044. if test "$GCC" = yes ; then
  13045. OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
  13046. CFLAGS="$OLDCFLAGS -fexceptions"
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
  13048. $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
  13049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13050. /* end confdefs.h. */
  13051. int
  13052. main ()
  13053. {
  13054. ;
  13055. return 0;
  13056. }
  13057. _ACEOF
  13058. if ac_fn_c_try_link "$LINENO"; then :
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13060. $as_echo "yes" >&6; }
  13061. else
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13063. $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
  13064. fi
  13065. rm -f core conftest.err conftest.$ac_objext \
  13066. conftest$ac_exeext conftest.$ac_ext
  13067. CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
  13068. fi
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13070. $as_echo_n "checking for ANSI C header files... " >&6; }
  13071. if ${ac_cv_header_stdc+:} false; then :
  13072. $as_echo_n "(cached) " >&6
  13073. else
  13074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13075. /* end confdefs.h. */
  13076. #include <stdlib.h>
  13077. #include <stdarg.h>
  13078. #include <string.h>
  13079. #include <float.h>
  13080. int
  13081. main ()
  13082. {
  13083. ;
  13084. return 0;
  13085. }
  13086. _ACEOF
  13087. if ac_fn_c_try_compile "$LINENO"; then :
  13088. ac_cv_header_stdc=yes
  13089. else
  13090. ac_cv_header_stdc=no
  13091. fi
  13092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13093. if test $ac_cv_header_stdc = yes; then
  13094. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13096. /* end confdefs.h. */
  13097. #include <string.h>
  13098. _ACEOF
  13099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13100. $EGREP "memchr" >/dev/null 2>&1; then :
  13101. else
  13102. ac_cv_header_stdc=no
  13103. fi
  13104. rm -f conftest*
  13105. fi
  13106. if test $ac_cv_header_stdc = yes; then
  13107. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13109. /* end confdefs.h. */
  13110. #include <stdlib.h>
  13111. _ACEOF
  13112. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13113. $EGREP "free" >/dev/null 2>&1; then :
  13114. else
  13115. ac_cv_header_stdc=no
  13116. fi
  13117. rm -f conftest*
  13118. fi
  13119. if test $ac_cv_header_stdc = yes; then
  13120. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13121. if test "$cross_compiling" = yes; then :
  13122. :
  13123. else
  13124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13125. /* end confdefs.h. */
  13126. #include <ctype.h>
  13127. #include <stdlib.h>
  13128. #if ((' ' & 0x0FF) == 0x020)
  13129. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13130. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13131. #else
  13132. # define ISLOWER(c) \
  13133. (('a' <= (c) && (c) <= 'i') \
  13134. || ('j' <= (c) && (c) <= 'r') \
  13135. || ('s' <= (c) && (c) <= 'z'))
  13136. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13137. #endif
  13138. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13139. int
  13140. main ()
  13141. {
  13142. int i;
  13143. for (i = 0; i < 256; i++)
  13144. if (XOR (islower (i), ISLOWER (i))
  13145. || toupper (i) != TOUPPER (i))
  13146. return 2;
  13147. return 0;
  13148. }
  13149. _ACEOF
  13150. if ac_fn_c_try_run "$LINENO"; then :
  13151. else
  13152. ac_cv_header_stdc=no
  13153. fi
  13154. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13155. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13156. fi
  13157. fi
  13158. fi
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13160. $as_echo "$ac_cv_header_stdc" >&6; }
  13161. if test $ac_cv_header_stdc = yes; then
  13162. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13163. fi
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13165. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13166. if ${ac_cv_c_bigendian+:} false; then :
  13167. $as_echo_n "(cached) " >&6
  13168. else
  13169. ac_cv_c_bigendian=unknown
  13170. # See if sys/param.h defines the BYTE_ORDER macro.
  13171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13172. /* end confdefs.h. */
  13173. #include <sys/types.h>
  13174. #include <sys/param.h>
  13175. int
  13176. main ()
  13177. {
  13178. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  13179. bogus endian macros
  13180. #endif
  13181. ;
  13182. return 0;
  13183. }
  13184. _ACEOF
  13185. if ac_fn_c_try_compile "$LINENO"; then :
  13186. # It does; now see whether it defined to BIG_ENDIAN or not.
  13187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13188. /* end confdefs.h. */
  13189. #include <sys/types.h>
  13190. #include <sys/param.h>
  13191. int
  13192. main ()
  13193. {
  13194. #if BYTE_ORDER != BIG_ENDIAN
  13195. not big endian
  13196. #endif
  13197. ;
  13198. return 0;
  13199. }
  13200. _ACEOF
  13201. if ac_fn_c_try_compile "$LINENO"; then :
  13202. ac_cv_c_bigendian=yes
  13203. else
  13204. ac_cv_c_bigendian=no
  13205. fi
  13206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13207. fi
  13208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13209. if test $ac_cv_c_bigendian = unknown; then
  13210. if test "$cross_compiling" = yes; then :
  13211. echo $ac_n "cross-compiling... " 2>&6
  13212. else
  13213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13214. /* end confdefs.h. */
  13215. main () {
  13216. /* Are we little or big endian? From Harbison&Steele. */
  13217. union
  13218. {
  13219. long l;
  13220. char c[sizeof (long)];
  13221. } u;
  13222. u.l = 1;
  13223. exit (u.c[sizeof (long) - 1] == 1);
  13224. }
  13225. _ACEOF
  13226. if ac_fn_c_try_run "$LINENO"; then :
  13227. ac_cv_c_bigendian=no
  13228. else
  13229. ac_cv_c_bigendian=yes
  13230. fi
  13231. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13232. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13233. fi
  13234. fi
  13235. fi
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13237. $as_echo "$ac_cv_c_bigendian" >&6; }
  13238. if test $ac_cv_c_bigendian = unknown; then
  13239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
  13240. $as_echo_n "checking to probe for byte ordering... " >&6; }
  13241. cat >conftest.c <<EOF
  13242. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13243. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13244. void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
  13245. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13246. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13247. void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
  13248. int main() { _ascii (); _ebcdic (); return 0; }
  13249. EOF
  13250. if test -f conftest.c ; then
  13251. if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
  13252. if test `grep -l BIGenDianSyS conftest.o` ; then
  13253. echo $ac_n ' big endian probe OK, ' 1>&6
  13254. ac_cv_c_bigendian=yes
  13255. fi
  13256. if test `grep -l LiTTleEnDian conftest.o` ; then
  13257. echo $ac_n ' little endian probe OK, ' 1>&6
  13258. if test $ac_cv_c_bigendian = yes ; then
  13259. ac_cv_c_bigendian=unknown;
  13260. else
  13261. ac_cv_c_bigendian=no
  13262. fi
  13263. fi
  13264. echo $ac_n 'guessing bigendian ... ' >&6
  13265. fi
  13266. fi
  13267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13268. $as_echo "$ac_cv_c_bigendian" >&6; }
  13269. fi
  13270. if test $ac_cv_c_bigendian = yes; then
  13271. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13272. BYTEORDER=4321
  13273. else
  13274. BYTEORDER=1234
  13275. fi
  13276. cat >>confdefs.h <<_ACEOF
  13277. #define BYTEORDER $BYTEORDER
  13278. _ACEOF
  13279. if test $ac_cv_c_bigendian = unknown; then
  13280. as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
  13281. fi
  13282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13283. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13284. if ${ac_cv_c_const+:} false; then :
  13285. $as_echo_n "(cached) " >&6
  13286. else
  13287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13288. /* end confdefs.h. */
  13289. int
  13290. main ()
  13291. {
  13292. /* FIXME: Include the comments suggested by Paul. */
  13293. #ifndef __cplusplus
  13294. /* Ultrix mips cc rejects this. */
  13295. typedef int charset[2];
  13296. const charset cs;
  13297. /* SunOS 4.1.1 cc rejects this. */
  13298. char const *const *pcpcc;
  13299. char **ppc;
  13300. /* NEC SVR4.0.2 mips cc rejects this. */
  13301. struct point {int x, y;};
  13302. static struct point const zero = {0,0};
  13303. /* AIX XL C 1.02.0.0 rejects this.
  13304. It does not let you subtract one const X* pointer from another in
  13305. an arm of an if-expression whose if-part is not a constant
  13306. expression */
  13307. const char *g = "string";
  13308. pcpcc = &g + (g ? g-g : 0);
  13309. /* HPUX 7.0 cc rejects these. */
  13310. ++pcpcc;
  13311. ppc = (char**) pcpcc;
  13312. pcpcc = (char const *const *) ppc;
  13313. { /* SCO 3.2v4 cc rejects this. */
  13314. char *t;
  13315. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13316. *t++ = 0;
  13317. if (s) return 0;
  13318. }
  13319. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13320. int x[] = {25, 17};
  13321. const int *foo = &x[0];
  13322. ++foo;
  13323. }
  13324. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13325. typedef const int *iptr;
  13326. iptr p = 0;
  13327. ++p;
  13328. }
  13329. { /* AIX XL C 1.02.0.0 rejects this saying
  13330. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13331. struct s { int j; const int *ap[3]; };
  13332. struct s *b; b->j = 5;
  13333. }
  13334. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13335. const int foo = 10;
  13336. if (!foo) return 0;
  13337. }
  13338. return !cs[0] && !zero.x;
  13339. #endif
  13340. ;
  13341. return 0;
  13342. }
  13343. _ACEOF
  13344. if ac_fn_c_try_compile "$LINENO"; then :
  13345. ac_cv_c_const=yes
  13346. else
  13347. ac_cv_c_const=no
  13348. fi
  13349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13350. fi
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13352. $as_echo "$ac_cv_c_const" >&6; }
  13353. if test $ac_cv_c_const = no; then
  13354. $as_echo "#define const /**/" >>confdefs.h
  13355. fi
  13356. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13357. if test "x$ac_cv_type_size_t" = xyes; then :
  13358. else
  13359. cat >>confdefs.h <<_ACEOF
  13360. #define size_t unsigned int
  13361. _ACEOF
  13362. fi
  13363. for ac_func in memmove bcopy
  13364. do :
  13365. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13366. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13367. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13368. cat >>confdefs.h <<_ACEOF
  13369. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13370. _ACEOF
  13371. fi
  13372. done
  13373. for ac_header in fcntl.h unistd.h
  13374. do :
  13375. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13376. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13377. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13378. cat >>confdefs.h <<_ACEOF
  13379. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13380. _ACEOF
  13381. fi
  13382. done
  13383. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  13384. if test "x$ac_cv_type_off_t" = xyes; then :
  13385. else
  13386. cat >>confdefs.h <<_ACEOF
  13387. #define off_t long int
  13388. _ACEOF
  13389. fi
  13390. for ac_header in $ac_header_list
  13391. do :
  13392. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13393. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13394. "
  13395. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13396. cat >>confdefs.h <<_ACEOF
  13397. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13398. _ACEOF
  13399. fi
  13400. done
  13401. for ac_func in getpagesize
  13402. do :
  13403. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13404. if test "x$ac_cv_func_getpagesize" = xyes; then :
  13405. cat >>confdefs.h <<_ACEOF
  13406. #define HAVE_GETPAGESIZE 1
  13407. _ACEOF
  13408. fi
  13409. done
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13411. $as_echo_n "checking for working mmap... " >&6; }
  13412. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  13413. $as_echo_n "(cached) " >&6
  13414. else
  13415. if test "$cross_compiling" = yes; then :
  13416. ac_cv_func_mmap_fixed_mapped=no
  13417. else
  13418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13419. /* end confdefs.h. */
  13420. $ac_includes_default
  13421. /* malloc might have been renamed as rpl_malloc. */
  13422. #undef malloc
  13423. /* Thanks to Mike Haertel and Jim Avera for this test.
  13424. Here is a matrix of mmap possibilities:
  13425. mmap private not fixed
  13426. mmap private fixed at somewhere currently unmapped
  13427. mmap private fixed at somewhere already mapped
  13428. mmap shared not fixed
  13429. mmap shared fixed at somewhere currently unmapped
  13430. mmap shared fixed at somewhere already mapped
  13431. For private mappings, we should verify that changes cannot be read()
  13432. back from the file, nor mmap's back from the file at a different
  13433. address. (There have been systems where private was not correctly
  13434. implemented like the infamous i386 svr4.0, and systems where the
  13435. VM page cache was not coherent with the file system buffer cache
  13436. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13437. For shared mappings, we should conversely verify that changes get
  13438. propagated back to all the places they're supposed to be.
  13439. Grep wants private fixed already mapped.
  13440. The main things grep needs to know about mmap are:
  13441. * does it exist and is it safe to write into the mmap'd area
  13442. * how to use it (BSD variants) */
  13443. #include <fcntl.h>
  13444. #include <sys/mman.h>
  13445. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13446. char *malloc ();
  13447. #endif
  13448. /* This mess was copied from the GNU getpagesize.h. */
  13449. #ifndef HAVE_GETPAGESIZE
  13450. # ifdef _SC_PAGESIZE
  13451. # define getpagesize() sysconf(_SC_PAGESIZE)
  13452. # else /* no _SC_PAGESIZE */
  13453. # ifdef HAVE_SYS_PARAM_H
  13454. # include <sys/param.h>
  13455. # ifdef EXEC_PAGESIZE
  13456. # define getpagesize() EXEC_PAGESIZE
  13457. # else /* no EXEC_PAGESIZE */
  13458. # ifdef NBPG
  13459. # define getpagesize() NBPG * CLSIZE
  13460. # ifndef CLSIZE
  13461. # define CLSIZE 1
  13462. # endif /* no CLSIZE */
  13463. # else /* no NBPG */
  13464. # ifdef NBPC
  13465. # define getpagesize() NBPC
  13466. # else /* no NBPC */
  13467. # ifdef PAGESIZE
  13468. # define getpagesize() PAGESIZE
  13469. # endif /* PAGESIZE */
  13470. # endif /* no NBPC */
  13471. # endif /* no NBPG */
  13472. # endif /* no EXEC_PAGESIZE */
  13473. # else /* no HAVE_SYS_PARAM_H */
  13474. # define getpagesize() 8192 /* punt totally */
  13475. # endif /* no HAVE_SYS_PARAM_H */
  13476. # endif /* no _SC_PAGESIZE */
  13477. #endif /* no HAVE_GETPAGESIZE */
  13478. int
  13479. main ()
  13480. {
  13481. char *data, *data2, *data3;
  13482. const char *cdata2;
  13483. int i, pagesize;
  13484. int fd, fd2;
  13485. pagesize = getpagesize ();
  13486. /* First, make a file with some known garbage in it. */
  13487. data = (char *) malloc (pagesize);
  13488. if (!data)
  13489. return 1;
  13490. for (i = 0; i < pagesize; ++i)
  13491. *(data + i) = rand ();
  13492. umask (0);
  13493. fd = creat ("conftest.mmap", 0600);
  13494. if (fd < 0)
  13495. return 2;
  13496. if (write (fd, data, pagesize) != pagesize)
  13497. return 3;
  13498. close (fd);
  13499. /* Next, check that the tail of a page is zero-filled. File must have
  13500. non-zero length, otherwise we risk SIGBUS for entire page. */
  13501. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13502. if (fd2 < 0)
  13503. return 4;
  13504. cdata2 = "";
  13505. if (write (fd2, cdata2, 1) != 1)
  13506. return 5;
  13507. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13508. if (data2 == MAP_FAILED)
  13509. return 6;
  13510. for (i = 0; i < pagesize; ++i)
  13511. if (*(data2 + i))
  13512. return 7;
  13513. close (fd2);
  13514. if (munmap (data2, pagesize))
  13515. return 8;
  13516. /* Next, try to mmap the file at a fixed address which already has
  13517. something else allocated at it. If we can, also make sure that
  13518. we see the same garbage. */
  13519. fd = open ("conftest.mmap", O_RDWR);
  13520. if (fd < 0)
  13521. return 9;
  13522. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13523. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13524. return 10;
  13525. for (i = 0; i < pagesize; ++i)
  13526. if (*(data + i) != *(data2 + i))
  13527. return 11;
  13528. /* Finally, make sure that changes to the mapped area do not
  13529. percolate back to the file as seen by read(). (This is a bug on
  13530. some variants of i386 svr4.0.) */
  13531. for (i = 0; i < pagesize; ++i)
  13532. *(data2 + i) = *(data2 + i) + 1;
  13533. data3 = (char *) malloc (pagesize);
  13534. if (!data3)
  13535. return 12;
  13536. if (read (fd, data3, pagesize) != pagesize)
  13537. return 13;
  13538. for (i = 0; i < pagesize; ++i)
  13539. if (*(data + i) != *(data3 + i))
  13540. return 14;
  13541. close (fd);
  13542. return 0;
  13543. }
  13544. _ACEOF
  13545. if ac_fn_c_try_run "$LINENO"; then :
  13546. ac_cv_func_mmap_fixed_mapped=yes
  13547. else
  13548. ac_cv_func_mmap_fixed_mapped=no
  13549. fi
  13550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13551. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13552. fi
  13553. fi
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13555. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  13556. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13557. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  13558. fi
  13559. rm -f conftest.mmap conftest.txt
  13560. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
  13561. FILEMAP=unixfilemap
  13562. else
  13563. FILEMAP=readfilemap
  13564. fi
  13565. # AC_CPP_FUNC
  13566. # ------------------ #
  13567. # Checks to see if ANSI C99 CPP variable __func__ works.
  13568. # If not, perhaps __FUNCTION__ works instead.
  13569. # If not, we'll just define __func__ to "".
  13570. # AC_CPP_FUNC
  13571. case $ac_cv_prog_cc_stdc in #(
  13572. no) :
  13573. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  13574. *) :
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  13576. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  13577. if ${ac_cv_prog_cc_c99+:} false; then :
  13578. $as_echo_n "(cached) " >&6
  13579. else
  13580. ac_cv_prog_cc_c99=no
  13581. ac_save_CC=$CC
  13582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13583. /* end confdefs.h. */
  13584. #include <stdarg.h>
  13585. #include <stdbool.h>
  13586. #include <stdlib.h>
  13587. #include <wchar.h>
  13588. #include <stdio.h>
  13589. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  13590. #define debug(...) fprintf (stderr, __VA_ARGS__)
  13591. #define showlist(...) puts (#__VA_ARGS__)
  13592. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  13593. static void
  13594. test_varargs_macros (void)
  13595. {
  13596. int x = 1234;
  13597. int y = 5678;
  13598. debug ("Flag");
  13599. debug ("X = %d\n", x);
  13600. showlist (The first, second, and third items.);
  13601. report (x>y, "x is %d but y is %d", x, y);
  13602. }
  13603. // Check long long types.
  13604. #define BIG64 18446744073709551615ull
  13605. #define BIG32 4294967295ul
  13606. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  13607. #if !BIG_OK
  13608. your preprocessor is broken;
  13609. #endif
  13610. #if BIG_OK
  13611. #else
  13612. your preprocessor is broken;
  13613. #endif
  13614. static long long int bignum = -9223372036854775807LL;
  13615. static unsigned long long int ubignum = BIG64;
  13616. struct incomplete_array
  13617. {
  13618. int datasize;
  13619. double data[];
  13620. };
  13621. struct named_init {
  13622. int number;
  13623. const wchar_t *name;
  13624. double average;
  13625. };
  13626. typedef const char *ccp;
  13627. static inline int
  13628. test_restrict (ccp restrict text)
  13629. {
  13630. // See if C++-style comments work.
  13631. // Iterate through items via the restricted pointer.
  13632. // Also check for declarations in for loops.
  13633. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  13634. continue;
  13635. return 0;
  13636. }
  13637. // Check varargs and va_copy.
  13638. static void
  13639. test_varargs (const char *format, ...)
  13640. {
  13641. va_list args;
  13642. va_start (args, format);
  13643. va_list args_copy;
  13644. va_copy (args_copy, args);
  13645. const char *str;
  13646. int number;
  13647. float fnumber;
  13648. while (*format)
  13649. {
  13650. switch (*format++)
  13651. {
  13652. case 's': // string
  13653. str = va_arg (args_copy, const char *);
  13654. break;
  13655. case 'd': // int
  13656. number = va_arg (args_copy, int);
  13657. break;
  13658. case 'f': // float
  13659. fnumber = va_arg (args_copy, double);
  13660. break;
  13661. default:
  13662. break;
  13663. }
  13664. }
  13665. va_end (args_copy);
  13666. va_end (args);
  13667. }
  13668. int
  13669. main ()
  13670. {
  13671. // Check bool.
  13672. _Bool success = false;
  13673. // Check restrict.
  13674. if (test_restrict ("String literal") == 0)
  13675. success = true;
  13676. char *restrict newvar = "Another string";
  13677. // Check varargs.
  13678. test_varargs ("s, d' f .", "string", 65, 34.234);
  13679. test_varargs_macros ();
  13680. // Check flexible array members.
  13681. struct incomplete_array *ia =
  13682. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  13683. ia->datasize = 10;
  13684. for (int i = 0; i < ia->datasize; ++i)
  13685. ia->data[i] = i * 1.234;
  13686. // Check named initializers.
  13687. struct named_init ni = {
  13688. .number = 34,
  13689. .name = L"Test wide string",
  13690. .average = 543.34343,
  13691. };
  13692. ni.number = 58;
  13693. int dynamic_array[ni.number];
  13694. dynamic_array[ni.number - 1] = 543;
  13695. // work around unused variable warnings
  13696. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  13697. || dynamic_array[ni.number - 1] != 543);
  13698. ;
  13699. return 0;
  13700. }
  13701. _ACEOF
  13702. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  13703. do
  13704. CC="$ac_save_CC $ac_arg"
  13705. if ac_fn_c_try_compile "$LINENO"; then :
  13706. ac_cv_prog_cc_c99=$ac_arg
  13707. fi
  13708. rm -f core conftest.err conftest.$ac_objext
  13709. test "x$ac_cv_prog_cc_c99" != "xno" && break
  13710. done
  13711. rm -f conftest.$ac_ext
  13712. CC=$ac_save_CC
  13713. fi
  13714. # AC_CACHE_VAL
  13715. case "x$ac_cv_prog_cc_c99" in
  13716. x)
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13718. $as_echo "none needed" >&6; } ;;
  13719. xno)
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13721. $as_echo "unsupported" >&6; } ;;
  13722. *)
  13723. CC="$CC $ac_cv_prog_cc_c99"
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  13725. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  13726. esac
  13727. if test "x$ac_cv_prog_cc_c99" != xno; then :
  13728. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  13729. else
  13730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  13731. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  13732. if ${ac_cv_prog_cc_c89+:} false; then :
  13733. $as_echo_n "(cached) " >&6
  13734. else
  13735. ac_cv_prog_cc_c89=no
  13736. ac_save_CC=$CC
  13737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13738. /* end confdefs.h. */
  13739. #include <stdarg.h>
  13740. #include <stdio.h>
  13741. #include <sys/types.h>
  13742. #include <sys/stat.h>
  13743. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  13744. struct buf { int x; };
  13745. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  13746. static char *e (p, i)
  13747. char **p;
  13748. int i;
  13749. {
  13750. return p[i];
  13751. }
  13752. static char *f (char * (*g) (char **, int), char **p, ...)
  13753. {
  13754. char *s;
  13755. va_list v;
  13756. va_start (v,p);
  13757. s = g (p, va_arg (v,int));
  13758. va_end (v);
  13759. return s;
  13760. }
  13761. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  13762. function prototypes and stuff, but not '\xHH' hex character constants.
  13763. These don't provoke an error unfortunately, instead are silently treated
  13764. as 'x'. The following induces an error, until -std is added to get
  13765. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  13766. array size at least. It's necessary to write '\x00'==0 to get something
  13767. that's true only with -std. */
  13768. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  13769. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  13770. inside strings and character constants. */
  13771. #define FOO(x) 'x'
  13772. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  13773. int test (int i, double x);
  13774. struct s1 {int (*f) (int a);};
  13775. struct s2 {int (*f) (double a);};
  13776. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  13777. int argc;
  13778. char **argv;
  13779. int
  13780. main ()
  13781. {
  13782. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  13783. ;
  13784. return 0;
  13785. }
  13786. _ACEOF
  13787. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  13788. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  13789. do
  13790. CC="$ac_save_CC $ac_arg"
  13791. if ac_fn_c_try_compile "$LINENO"; then :
  13792. ac_cv_prog_cc_c89=$ac_arg
  13793. fi
  13794. rm -f core conftest.err conftest.$ac_objext
  13795. test "x$ac_cv_prog_cc_c89" != "xno" && break
  13796. done
  13797. rm -f conftest.$ac_ext
  13798. CC=$ac_save_CC
  13799. fi
  13800. # AC_CACHE_VAL
  13801. case "x$ac_cv_prog_cc_c89" in
  13802. x)
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13804. $as_echo "none needed" >&6; } ;;
  13805. xno)
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13807. $as_echo "unsupported" >&6; } ;;
  13808. *)
  13809. CC="$CC $ac_cv_prog_cc_c89"
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  13811. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  13812. esac
  13813. if test "x$ac_cv_prog_cc_c89" != xno; then :
  13814. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  13815. else
  13816. ac_cv_prog_cc_stdc=no
  13817. fi
  13818. fi
  13819. ;;
  13820. esac
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  13822. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  13823. if ${ac_cv_prog_cc_stdc+:} false; then :
  13824. $as_echo_n "(cached) " >&6
  13825. fi
  13826. case $ac_cv_prog_cc_stdc in #(
  13827. no) :
  13828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13829. $as_echo "unsupported" >&6; } ;; #(
  13830. '') :
  13831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13832. $as_echo "none needed" >&6; } ;; #(
  13833. *) :
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  13835. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  13836. esac
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
  13838. $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
  13839. if ${ac_cv_cpp_func+:} false; then :
  13840. $as_echo_n "(cached) " >&6
  13841. else
  13842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13843. /* end confdefs.h. */
  13844. int
  13845. main ()
  13846. {
  13847. char *foo = __func__;
  13848. ;
  13849. return 0;
  13850. }
  13851. _ACEOF
  13852. if ac_fn_c_try_compile "$LINENO"; then :
  13853. ac_cv_cpp_func=yes
  13854. else
  13855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13856. /* end confdefs.h. */
  13857. int
  13858. main ()
  13859. {
  13860. char *foo = __FUNCTION__;
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_compile "$LINENO"; then :
  13866. ac_cv_cpp_func=__FUNCTION__
  13867. else
  13868. ac_cv_cpp_func=no
  13869. fi
  13870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13871. fi
  13872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13873. fi
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
  13875. $as_echo "$ac_cv_cpp_func" >&6; }
  13876. if test $ac_cv_cpp_func = __FUNCTION__; then
  13877. $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
  13878. elif test $ac_cv_cpp_func = no; then
  13879. $as_echo "#define __func__ \"\"" >>confdefs.h
  13880. fi
  13881. $as_echo "#define XML_NS 1" >>confdefs.h
  13882. $as_echo "#define XML_DTD 1" >>confdefs.h
  13883. $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
  13884. ac_config_files="$ac_config_files Makefile expat.pc"
  13885. cat >confcache <<\_ACEOF
  13886. # This file is a shell script that caches the results of configure
  13887. # tests run on this system so they can be shared between configure
  13888. # scripts and configure runs, see configure's option --config-cache.
  13889. # It is not useful on other systems. If it contains results you don't
  13890. # want to keep, you may remove or edit it.
  13891. #
  13892. # config.status only pays attention to the cache file if you give it
  13893. # the --recheck option to rerun configure.
  13894. #
  13895. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13896. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13897. # following values.
  13898. _ACEOF
  13899. # The following way of writing the cache mishandles newlines in values,
  13900. # but we know of no workaround that is simple, portable, and efficient.
  13901. # So, we kill variables containing newlines.
  13902. # Ultrix sh set writes to stderr and can't be redirected directly,
  13903. # and sets the high bit in the cache file unless we assign to the vars.
  13904. (
  13905. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13906. eval ac_val=\$$ac_var
  13907. case $ac_val in #(
  13908. *${as_nl}*)
  13909. case $ac_var in #(
  13910. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13911. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13912. esac
  13913. case $ac_var in #(
  13914. _ | IFS | as_nl) ;; #(
  13915. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13916. *) { eval $ac_var=; unset $ac_var;} ;;
  13917. esac ;;
  13918. esac
  13919. done
  13920. (set) 2>&1 |
  13921. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13922. *${as_nl}ac_space=\ *)
  13923. # `set' does not quote correctly, so add quotes: double-quote
  13924. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13925. sed -n \
  13926. "s/'/'\\\\''/g;
  13927. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13928. ;; #(
  13929. *)
  13930. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13931. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13932. ;;
  13933. esac |
  13934. sort
  13935. ) |
  13936. sed '
  13937. /^ac_cv_env_/b end
  13938. t clear
  13939. :clear
  13940. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13941. t end
  13942. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13943. :end' >>confcache
  13944. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13945. if test -w "$cache_file"; then
  13946. if test "x$cache_file" != "x/dev/null"; then
  13947. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13948. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13949. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13950. cat confcache >"$cache_file"
  13951. else
  13952. case $cache_file in #(
  13953. */* | ?:*)
  13954. mv -f confcache "$cache_file"$$ &&
  13955. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13956. *)
  13957. mv -f confcache "$cache_file" ;;
  13958. esac
  13959. fi
  13960. fi
  13961. else
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13963. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13964. fi
  13965. fi
  13966. rm -f confcache
  13967. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13968. # Let make expand exec_prefix.
  13969. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13970. DEFS=-DHAVE_CONFIG_H
  13971. ac_libobjs=
  13972. ac_ltlibobjs=
  13973. U=
  13974. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13975. # 1. Remove the extension, and $U if already installed.
  13976. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13977. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13978. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13979. # will be set to the directory where LIBOBJS objects are built.
  13980. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13981. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13982. done
  13983. LIBOBJS=$ac_libobjs
  13984. LTLIBOBJS=$ac_ltlibobjs
  13985. : "${CONFIG_STATUS=./config.status}"
  13986. ac_write_fail=0
  13987. ac_clean_files_save=$ac_clean_files
  13988. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13990. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13991. as_write_fail=0
  13992. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13993. #! $SHELL
  13994. # Generated by $as_me.
  13995. # Run this file to recreate the current configuration.
  13996. # Compiler output produced by configure, useful for debugging
  13997. # configure, is in config.log if it exists.
  13998. debug=false
  13999. ac_cs_recheck=false
  14000. ac_cs_silent=false
  14001. SHELL=\${CONFIG_SHELL-$SHELL}
  14002. export SHELL
  14003. _ASEOF
  14004. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14005. ## -------------------- ##
  14006. ## M4sh Initialization. ##
  14007. ## -------------------- ##
  14008. # Be more Bourne compatible
  14009. DUALCASE=1; export DUALCASE # for MKS sh
  14010. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14011. emulate sh
  14012. NULLCMD=:
  14013. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14014. # is contrary to our usage. Disable this feature.
  14015. alias -g '${1+"$@"}'='"$@"'
  14016. setopt NO_GLOB_SUBST
  14017. else
  14018. case `(set -o) 2>/dev/null` in #(
  14019. *posix*) :
  14020. set -o posix ;; #(
  14021. *) :
  14022. ;;
  14023. esac
  14024. fi
  14025. as_nl='
  14026. '
  14027. export as_nl
  14028. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14029. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14030. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14031. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14032. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14033. # but without wasting forks for bash or zsh.
  14034. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14035. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14036. as_echo='print -r --'
  14037. as_echo_n='print -rn --'
  14038. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14039. as_echo='printf %s\n'
  14040. as_echo_n='printf %s'
  14041. else
  14042. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14043. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14044. as_echo_n='/usr/ucb/echo -n'
  14045. else
  14046. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14047. as_echo_n_body='eval
  14048. arg=$1;
  14049. case $arg in #(
  14050. *"$as_nl"*)
  14051. expr "X$arg" : "X\\(.*\\)$as_nl";
  14052. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14053. esac;
  14054. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14055. '
  14056. export as_echo_n_body
  14057. as_echo_n='sh -c $as_echo_n_body as_echo'
  14058. fi
  14059. export as_echo_body
  14060. as_echo='sh -c $as_echo_body as_echo'
  14061. fi
  14062. # The user is always right.
  14063. if test "${PATH_SEPARATOR+set}" != set; then
  14064. PATH_SEPARATOR=:
  14065. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14066. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14067. PATH_SEPARATOR=';'
  14068. }
  14069. fi
  14070. # IFS
  14071. # We need space, tab and new line, in precisely that order. Quoting is
  14072. # there to prevent editors from complaining about space-tab.
  14073. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14074. # splitting by setting IFS to empty value.)
  14075. IFS=" "" $as_nl"
  14076. # Find who we are. Look in the path if we contain no directory separator.
  14077. as_myself=
  14078. case $0 in #((
  14079. *[\\/]* ) as_myself=$0 ;;
  14080. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14081. for as_dir in $PATH
  14082. do
  14083. IFS=$as_save_IFS
  14084. test -z "$as_dir" && as_dir=.
  14085. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14086. done
  14087. IFS=$as_save_IFS
  14088. ;;
  14089. esac
  14090. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14091. # in which case we are not to be found in the path.
  14092. if test "x$as_myself" = x; then
  14093. as_myself=$0
  14094. fi
  14095. if test ! -f "$as_myself"; then
  14096. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14097. exit 1
  14098. fi
  14099. # Unset variables that we do not need and which cause bugs (e.g. in
  14100. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14101. # suppresses any "Segmentation fault" message there. '((' could
  14102. # trigger a bug in pdksh 5.2.14.
  14103. for as_var in BASH_ENV ENV MAIL MAILPATH
  14104. do eval test x\${$as_var+set} = xset \
  14105. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14106. done
  14107. PS1='$ '
  14108. PS2='> '
  14109. PS4='+ '
  14110. # NLS nuisances.
  14111. LC_ALL=C
  14112. export LC_ALL
  14113. LANGUAGE=C
  14114. export LANGUAGE
  14115. # CDPATH.
  14116. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14117. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14118. # ----------------------------------------
  14119. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14120. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14121. # script with STATUS, using 1 if that was 0.
  14122. as_fn_error ()
  14123. {
  14124. as_status=$1; test $as_status -eq 0 && as_status=1
  14125. if test "$4"; then
  14126. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14127. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14128. fi
  14129. $as_echo "$as_me: error: $2" >&2
  14130. as_fn_exit $as_status
  14131. } # as_fn_error
  14132. # as_fn_set_status STATUS
  14133. # -----------------------
  14134. # Set $? to STATUS, without forking.
  14135. as_fn_set_status ()
  14136. {
  14137. return $1
  14138. } # as_fn_set_status
  14139. # as_fn_exit STATUS
  14140. # -----------------
  14141. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14142. as_fn_exit ()
  14143. {
  14144. set +e
  14145. as_fn_set_status $1
  14146. exit $1
  14147. } # as_fn_exit
  14148. # as_fn_unset VAR
  14149. # ---------------
  14150. # Portably unset VAR.
  14151. as_fn_unset ()
  14152. {
  14153. { eval $1=; unset $1;}
  14154. }
  14155. as_unset=as_fn_unset
  14156. # as_fn_append VAR VALUE
  14157. # ----------------------
  14158. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14159. # advantage of any shell optimizations that allow amortized linear growth over
  14160. # repeated appends, instead of the typical quadratic growth present in naive
  14161. # implementations.
  14162. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14163. eval 'as_fn_append ()
  14164. {
  14165. eval $1+=\$2
  14166. }'
  14167. else
  14168. as_fn_append ()
  14169. {
  14170. eval $1=\$$1\$2
  14171. }
  14172. fi # as_fn_append
  14173. # as_fn_arith ARG...
  14174. # ------------------
  14175. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14176. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14177. # must be portable across $(()) and expr.
  14178. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14179. eval 'as_fn_arith ()
  14180. {
  14181. as_val=$(( $* ))
  14182. }'
  14183. else
  14184. as_fn_arith ()
  14185. {
  14186. as_val=`expr "$@" || test $? -eq 1`
  14187. }
  14188. fi # as_fn_arith
  14189. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14190. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14191. as_expr=expr
  14192. else
  14193. as_expr=false
  14194. fi
  14195. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14196. as_basename=basename
  14197. else
  14198. as_basename=false
  14199. fi
  14200. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14201. as_dirname=dirname
  14202. else
  14203. as_dirname=false
  14204. fi
  14205. as_me=`$as_basename -- "$0" ||
  14206. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14207. X"$0" : 'X\(//\)$' \| \
  14208. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14209. $as_echo X/"$0" |
  14210. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14211. s//\1/
  14212. q
  14213. }
  14214. /^X\/\(\/\/\)$/{
  14215. s//\1/
  14216. q
  14217. }
  14218. /^X\/\(\/\).*/{
  14219. s//\1/
  14220. q
  14221. }
  14222. s/.*/./; q'`
  14223. # Avoid depending upon Character Ranges.
  14224. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14225. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14226. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14227. as_cr_digits='0123456789'
  14228. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14229. ECHO_C= ECHO_N= ECHO_T=
  14230. case `echo -n x` in #(((((
  14231. -n*)
  14232. case `echo 'xy\c'` in
  14233. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14234. xy) ECHO_C='\c';;
  14235. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14236. ECHO_T=' ';;
  14237. esac;;
  14238. *)
  14239. ECHO_N='-n';;
  14240. esac
  14241. rm -f conf$$ conf$$.exe conf$$.file
  14242. if test -d conf$$.dir; then
  14243. rm -f conf$$.dir/conf$$.file
  14244. else
  14245. rm -f conf$$.dir
  14246. mkdir conf$$.dir 2>/dev/null
  14247. fi
  14248. if (echo >conf$$.file) 2>/dev/null; then
  14249. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14250. as_ln_s='ln -s'
  14251. # ... but there are two gotchas:
  14252. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14253. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14254. # In both cases, we have to default to `cp -p'.
  14255. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14256. as_ln_s='cp -p'
  14257. elif ln conf$$.file conf$$ 2>/dev/null; then
  14258. as_ln_s=ln
  14259. else
  14260. as_ln_s='cp -p'
  14261. fi
  14262. else
  14263. as_ln_s='cp -p'
  14264. fi
  14265. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14266. rmdir conf$$.dir 2>/dev/null
  14267. # as_fn_mkdir_p
  14268. # -------------
  14269. # Create "$as_dir" as a directory, including parents if necessary.
  14270. as_fn_mkdir_p ()
  14271. {
  14272. case $as_dir in #(
  14273. -*) as_dir=./$as_dir;;
  14274. esac
  14275. test -d "$as_dir" || eval $as_mkdir_p || {
  14276. as_dirs=
  14277. while :; do
  14278. case $as_dir in #(
  14279. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14280. *) as_qdir=$as_dir;;
  14281. esac
  14282. as_dirs="'$as_qdir' $as_dirs"
  14283. as_dir=`$as_dirname -- "$as_dir" ||
  14284. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14285. X"$as_dir" : 'X\(//\)[^/]' \| \
  14286. X"$as_dir" : 'X\(//\)$' \| \
  14287. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14288. $as_echo X"$as_dir" |
  14289. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14290. s//\1/
  14291. q
  14292. }
  14293. /^X\(\/\/\)[^/].*/{
  14294. s//\1/
  14295. q
  14296. }
  14297. /^X\(\/\/\)$/{
  14298. s//\1/
  14299. q
  14300. }
  14301. /^X\(\/\).*/{
  14302. s//\1/
  14303. q
  14304. }
  14305. s/.*/./; q'`
  14306. test -d "$as_dir" && break
  14307. done
  14308. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14309. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14310. } # as_fn_mkdir_p
  14311. if mkdir -p . 2>/dev/null; then
  14312. as_mkdir_p='mkdir -p "$as_dir"'
  14313. else
  14314. test -d ./-p && rmdir ./-p
  14315. as_mkdir_p=false
  14316. fi
  14317. if test -x / >/dev/null 2>&1; then
  14318. as_test_x='test -x'
  14319. else
  14320. if ls -dL / >/dev/null 2>&1; then
  14321. as_ls_L_option=L
  14322. else
  14323. as_ls_L_option=
  14324. fi
  14325. as_test_x='
  14326. eval sh -c '\''
  14327. if test -d "$1"; then
  14328. test -d "$1/.";
  14329. else
  14330. case $1 in #(
  14331. -*)set "./$1";;
  14332. esac;
  14333. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14334. ???[sx]*):;;*)false;;esac;fi
  14335. '\'' sh
  14336. '
  14337. fi
  14338. as_executable_p=$as_test_x
  14339. # Sed expression to map a string onto a valid CPP name.
  14340. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14341. # Sed expression to map a string onto a valid variable name.
  14342. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14343. exec 6>&1
  14344. ## ----------------------------------- ##
  14345. ## Main body of $CONFIG_STATUS script. ##
  14346. ## ----------------------------------- ##
  14347. _ASEOF
  14348. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14349. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14350. # Save the log message, to keep $0 and so on meaningful, and to
  14351. # report actual input values of CONFIG_FILES etc. instead of their
  14352. # values after options handling.
  14353. ac_log="
  14354. This file was extended by expat $as_me 2.1.0, which was
  14355. generated by GNU Autoconf 2.68. Invocation command line was
  14356. CONFIG_FILES = $CONFIG_FILES
  14357. CONFIG_HEADERS = $CONFIG_HEADERS
  14358. CONFIG_LINKS = $CONFIG_LINKS
  14359. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14360. $ $0 $@
  14361. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14362. "
  14363. _ACEOF
  14364. case $ac_config_files in *"
  14365. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14366. esac
  14367. case $ac_config_headers in *"
  14368. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14369. esac
  14370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14371. # Files that config.status was made for.
  14372. config_files="$ac_config_files"
  14373. config_headers="$ac_config_headers"
  14374. config_commands="$ac_config_commands"
  14375. _ACEOF
  14376. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14377. ac_cs_usage="\
  14378. \`$as_me' instantiates files and other configuration actions
  14379. from templates according to the current configuration. Unless the files
  14380. and actions are specified as TAGs, all are instantiated by default.
  14381. Usage: $0 [OPTION]... [TAG]...
  14382. -h, --help print this help, then exit
  14383. -V, --version print version number and configuration settings, then exit
  14384. --config print configuration, then exit
  14385. -q, --quiet, --silent
  14386. do not print progress messages
  14387. -d, --debug don't remove temporary files
  14388. --recheck update $as_me by reconfiguring in the same conditions
  14389. --file=FILE[:TEMPLATE]
  14390. instantiate the configuration file FILE
  14391. --header=FILE[:TEMPLATE]
  14392. instantiate the configuration header FILE
  14393. Configuration files:
  14394. $config_files
  14395. Configuration headers:
  14396. $config_headers
  14397. Configuration commands:
  14398. $config_commands
  14399. Report bugs to <expat-bugs@libexpat.org>."
  14400. _ACEOF
  14401. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14402. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14403. ac_cs_version="\\
  14404. expat config.status 2.1.0
  14405. configured by $0, generated by GNU Autoconf 2.68,
  14406. with options \\"\$ac_cs_config\\"
  14407. Copyright (C) 2010 Free Software Foundation, Inc.
  14408. This config.status script is free software; the Free Software Foundation
  14409. gives unlimited permission to copy, distribute and modify it."
  14410. ac_pwd='$ac_pwd'
  14411. srcdir='$srcdir'
  14412. INSTALL='$INSTALL'
  14413. AWK='$AWK'
  14414. test -n "\$AWK" || AWK=awk
  14415. _ACEOF
  14416. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14417. # The default lists apply if the user does not specify any file.
  14418. ac_need_defaults=:
  14419. while test $# != 0
  14420. do
  14421. case $1 in
  14422. --*=?*)
  14423. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14424. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14425. ac_shift=:
  14426. ;;
  14427. --*=)
  14428. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14429. ac_optarg=
  14430. ac_shift=:
  14431. ;;
  14432. *)
  14433. ac_option=$1
  14434. ac_optarg=$2
  14435. ac_shift=shift
  14436. ;;
  14437. esac
  14438. case $ac_option in
  14439. # Handling of the options.
  14440. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14441. ac_cs_recheck=: ;;
  14442. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14443. $as_echo "$ac_cs_version"; exit ;;
  14444. --config | --confi | --conf | --con | --co | --c )
  14445. $as_echo "$ac_cs_config"; exit ;;
  14446. --debug | --debu | --deb | --de | --d | -d )
  14447. debug=: ;;
  14448. --file | --fil | --fi | --f )
  14449. $ac_shift
  14450. case $ac_optarg in
  14451. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14452. '') as_fn_error $? "missing file argument" ;;
  14453. esac
  14454. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14455. ac_need_defaults=false;;
  14456. --header | --heade | --head | --hea )
  14457. $ac_shift
  14458. case $ac_optarg in
  14459. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14460. esac
  14461. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14462. ac_need_defaults=false;;
  14463. --he | --h)
  14464. # Conflict between --help and --header
  14465. as_fn_error $? "ambiguous option: \`$1'
  14466. Try \`$0 --help' for more information.";;
  14467. --help | --hel | -h )
  14468. $as_echo "$ac_cs_usage"; exit ;;
  14469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14470. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14471. ac_cs_silent=: ;;
  14472. # This is an error.
  14473. -*) as_fn_error $? "unrecognized option: \`$1'
  14474. Try \`$0 --help' for more information." ;;
  14475. *) as_fn_append ac_config_targets " $1"
  14476. ac_need_defaults=false ;;
  14477. esac
  14478. shift
  14479. done
  14480. ac_configure_extra_args=
  14481. if $ac_cs_silent; then
  14482. exec 6>/dev/null
  14483. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14484. fi
  14485. _ACEOF
  14486. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14487. if \$ac_cs_recheck; then
  14488. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14489. shift
  14490. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14491. CONFIG_SHELL='$SHELL'
  14492. export CONFIG_SHELL
  14493. exec "\$@"
  14494. fi
  14495. _ACEOF
  14496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14497. exec 5>>config.log
  14498. {
  14499. echo
  14500. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14501. ## Running $as_me. ##
  14502. _ASBOX
  14503. $as_echo "$ac_log"
  14504. } >&5
  14505. _ACEOF
  14506. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14507. #
  14508. # INIT-COMMANDS
  14509. #
  14510. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14511. # if CDPATH is set.
  14512. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14513. sed_quote_subst='$sed_quote_subst'
  14514. double_quote_subst='$double_quote_subst'
  14515. delay_variable_subst='$delay_variable_subst'
  14516. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14517. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14518. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14519. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14520. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14521. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14522. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14523. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14524. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14525. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14526. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14527. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14528. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14529. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14530. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14531. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14532. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14533. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14534. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14535. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14536. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14537. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14538. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14539. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14540. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14541. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14542. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14543. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14544. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14545. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14546. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14547. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14548. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14549. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14550. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14551. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14552. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14553. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14554. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14555. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14556. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14557. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14558. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14559. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14560. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14561. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14562. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14563. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14564. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14565. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14566. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14567. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14568. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14569. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14570. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14571. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14572. 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"`'
  14573. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14574. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14575. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14576. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14577. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14578. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14579. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14580. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14581. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14582. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14583. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14584. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14585. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14586. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14587. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14588. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14589. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14590. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14591. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14592. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14593. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14594. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14595. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14596. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14597. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14598. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14599. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14600. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14601. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14602. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14603. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14604. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14605. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14606. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14607. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14608. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14609. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14610. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14611. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14612. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14613. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14614. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14615. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14616. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14617. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14618. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14619. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14620. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14621. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14622. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14623. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14624. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14625. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14626. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14627. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14628. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14629. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14630. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14631. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14632. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14633. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14634. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14635. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14636. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14637. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14638. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14639. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14640. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14641. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14642. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14643. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14644. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14645. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14646. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14647. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14648. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14649. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14650. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14651. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14652. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14653. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14654. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14655. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14656. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14657. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14658. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14659. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14660. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14661. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14662. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14663. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14664. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14665. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14666. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14667. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14668. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14669. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14670. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14671. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14672. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14673. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14674. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14675. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14676. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14677. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14678. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14679. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14680. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14681. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14682. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14683. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14684. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14685. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14686. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14687. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14688. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14689. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14690. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14691. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14692. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14693. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14694. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14695. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14696. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14697. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14698. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14699. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14700. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14701. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14702. LTCC='$LTCC'
  14703. LTCFLAGS='$LTCFLAGS'
  14704. compiler='$compiler_DEFAULT'
  14705. # A function that is used when there is no print builtin or printf.
  14706. func_fallback_echo ()
  14707. {
  14708. eval 'cat <<_LTECHO_EOF
  14709. \$1
  14710. _LTECHO_EOF'
  14711. }
  14712. # Quote evaled strings.
  14713. for var in AS \
  14714. DLLTOOL \
  14715. OBJDUMP \
  14716. SHELL \
  14717. ECHO \
  14718. SED \
  14719. GREP \
  14720. EGREP \
  14721. FGREP \
  14722. LD \
  14723. NM \
  14724. LN_S \
  14725. lt_SP2NL \
  14726. lt_NL2SP \
  14727. reload_flag \
  14728. deplibs_check_method \
  14729. file_magic_cmd \
  14730. file_magic_glob \
  14731. want_nocaseglob \
  14732. sharedlib_from_linklib_cmd \
  14733. AR \
  14734. AR_FLAGS \
  14735. archiver_list_spec \
  14736. STRIP \
  14737. RANLIB \
  14738. CC \
  14739. CFLAGS \
  14740. compiler \
  14741. lt_cv_sys_global_symbol_pipe \
  14742. lt_cv_sys_global_symbol_to_cdecl \
  14743. lt_cv_sys_global_symbol_to_c_name_address \
  14744. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14745. nm_file_list_spec \
  14746. lt_prog_compiler_no_builtin_flag \
  14747. lt_prog_compiler_pic \
  14748. lt_prog_compiler_wl \
  14749. lt_prog_compiler_static \
  14750. lt_cv_prog_compiler_c_o \
  14751. need_locks \
  14752. MANIFEST_TOOL \
  14753. DSYMUTIL \
  14754. NMEDIT \
  14755. LIPO \
  14756. OTOOL \
  14757. OTOOL64 \
  14758. shrext_cmds \
  14759. export_dynamic_flag_spec \
  14760. whole_archive_flag_spec \
  14761. compiler_needs_object \
  14762. with_gnu_ld \
  14763. allow_undefined_flag \
  14764. no_undefined_flag \
  14765. hardcode_libdir_flag_spec \
  14766. hardcode_libdir_flag_spec_ld \
  14767. hardcode_libdir_separator \
  14768. exclude_expsyms \
  14769. include_expsyms \
  14770. file_list_spec \
  14771. variables_saved_for_relink \
  14772. libname_spec \
  14773. library_names_spec \
  14774. soname_spec \
  14775. install_override_mode \
  14776. finish_eval \
  14777. old_striplib \
  14778. striplib \
  14779. compiler_lib_search_dirs \
  14780. predep_objects \
  14781. postdep_objects \
  14782. predeps \
  14783. postdeps \
  14784. compiler_lib_search_path \
  14785. LD_CXX \
  14786. reload_flag_CXX \
  14787. compiler_CXX \
  14788. lt_prog_compiler_no_builtin_flag_CXX \
  14789. lt_prog_compiler_pic_CXX \
  14790. lt_prog_compiler_wl_CXX \
  14791. lt_prog_compiler_static_CXX \
  14792. lt_cv_prog_compiler_c_o_CXX \
  14793. export_dynamic_flag_spec_CXX \
  14794. whole_archive_flag_spec_CXX \
  14795. compiler_needs_object_CXX \
  14796. with_gnu_ld_CXX \
  14797. allow_undefined_flag_CXX \
  14798. no_undefined_flag_CXX \
  14799. hardcode_libdir_flag_spec_CXX \
  14800. hardcode_libdir_flag_spec_ld_CXX \
  14801. hardcode_libdir_separator_CXX \
  14802. exclude_expsyms_CXX \
  14803. include_expsyms_CXX \
  14804. file_list_spec_CXX \
  14805. compiler_lib_search_dirs_CXX \
  14806. predep_objects_CXX \
  14807. postdep_objects_CXX \
  14808. predeps_CXX \
  14809. postdeps_CXX \
  14810. compiler_lib_search_path_CXX; do
  14811. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14812. *[\\\\\\\`\\"\\\$]*)
  14813. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14814. ;;
  14815. *)
  14816. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14817. ;;
  14818. esac
  14819. done
  14820. # Double-quote double-evaled strings.
  14821. for var in reload_cmds \
  14822. old_postinstall_cmds \
  14823. old_postuninstall_cmds \
  14824. old_archive_cmds \
  14825. extract_expsyms_cmds \
  14826. old_archive_from_new_cmds \
  14827. old_archive_from_expsyms_cmds \
  14828. archive_cmds \
  14829. archive_expsym_cmds \
  14830. module_cmds \
  14831. module_expsym_cmds \
  14832. export_symbols_cmds \
  14833. prelink_cmds \
  14834. postlink_cmds \
  14835. postinstall_cmds \
  14836. postuninstall_cmds \
  14837. finish_cmds \
  14838. sys_lib_search_path_spec \
  14839. sys_lib_dlsearch_path_spec \
  14840. reload_cmds_CXX \
  14841. old_archive_cmds_CXX \
  14842. old_archive_from_new_cmds_CXX \
  14843. old_archive_from_expsyms_cmds_CXX \
  14844. archive_cmds_CXX \
  14845. archive_expsym_cmds_CXX \
  14846. module_cmds_CXX \
  14847. module_expsym_cmds_CXX \
  14848. export_symbols_cmds_CXX \
  14849. prelink_cmds_CXX \
  14850. postlink_cmds_CXX; do
  14851. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14852. *[\\\\\\\`\\"\\\$]*)
  14853. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14854. ;;
  14855. *)
  14856. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14857. ;;
  14858. esac
  14859. done
  14860. ac_aux_dir='$ac_aux_dir'
  14861. xsi_shell='$xsi_shell'
  14862. lt_shell_append='$lt_shell_append'
  14863. # See if we are running on zsh, and set the options which allow our
  14864. # commands through without removal of \ escapes INIT.
  14865. if test -n "\${ZSH_VERSION+set}" ; then
  14866. setopt NO_GLOB_SUBST
  14867. fi
  14868. PACKAGE='$PACKAGE'
  14869. VERSION='$VERSION'
  14870. TIMESTAMP='$TIMESTAMP'
  14871. RM='$RM'
  14872. ofile='$ofile'
  14873. _ACEOF
  14874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14875. # Handling of arguments.
  14876. for ac_config_target in $ac_config_targets
  14877. do
  14878. case $ac_config_target in
  14879. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  14880. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14881. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14882. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  14883. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14884. esac
  14885. done
  14886. # If the user did not use the arguments to specify the items to instantiate,
  14887. # then the envvar interface is used. Set only those that are not.
  14888. # We use the long form for the default assignment because of an extremely
  14889. # bizarre bug on SunOS 4.1.3.
  14890. if $ac_need_defaults; then
  14891. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14892. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14893. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14894. fi
  14895. # Have a temporary directory for convenience. Make it in the build tree
  14896. # simply because there is no reason against having it here, and in addition,
  14897. # creating and moving files from /tmp can sometimes cause problems.
  14898. # Hook for its removal unless debugging.
  14899. # Note that there is a small window in which the directory will not be cleaned:
  14900. # after its creation but before its name has been assigned to `$tmp'.
  14901. $debug ||
  14902. {
  14903. tmp= ac_tmp=
  14904. trap 'exit_status=$?
  14905. : "${ac_tmp:=$tmp}"
  14906. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14907. ' 0
  14908. trap 'as_fn_exit 1' 1 2 13 15
  14909. }
  14910. # Create a (secure) tmp directory for tmp files.
  14911. {
  14912. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14913. test -d "$tmp"
  14914. } ||
  14915. {
  14916. tmp=./conf$$-$RANDOM
  14917. (umask 077 && mkdir "$tmp")
  14918. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14919. ac_tmp=$tmp
  14920. # Set up the scripts for CONFIG_FILES section.
  14921. # No need to generate them if there are no CONFIG_FILES.
  14922. # This happens for instance with `./config.status config.h'.
  14923. if test -n "$CONFIG_FILES"; then
  14924. ac_cr=`echo X | tr X '\015'`
  14925. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14926. # But we know of no other shell where ac_cr would be empty at this
  14927. # point, so we can use a bashism as a fallback.
  14928. if test "x$ac_cr" = x; then
  14929. eval ac_cr=\$\'\\r\'
  14930. fi
  14931. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14932. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14933. ac_cs_awk_cr='\\r'
  14934. else
  14935. ac_cs_awk_cr=$ac_cr
  14936. fi
  14937. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14938. _ACEOF
  14939. {
  14940. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14941. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14942. echo "_ACEOF"
  14943. } >conf$$subs.sh ||
  14944. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14945. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14946. ac_delim='%!_!# '
  14947. for ac_last_try in false false false false false :; do
  14948. . ./conf$$subs.sh ||
  14949. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14950. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14951. if test $ac_delim_n = $ac_delim_num; then
  14952. break
  14953. elif $ac_last_try; then
  14954. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14955. else
  14956. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14957. fi
  14958. done
  14959. rm -f conf$$subs.sh
  14960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14961. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14962. _ACEOF
  14963. sed -n '
  14964. h
  14965. s/^/S["/; s/!.*/"]=/
  14966. p
  14967. g
  14968. s/^[^!]*!//
  14969. :repl
  14970. t repl
  14971. s/'"$ac_delim"'$//
  14972. t delim
  14973. :nl
  14974. h
  14975. s/\(.\{148\}\)..*/\1/
  14976. t more1
  14977. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14978. p
  14979. n
  14980. b repl
  14981. :more1
  14982. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14983. p
  14984. g
  14985. s/.\{148\}//
  14986. t nl
  14987. :delim
  14988. h
  14989. s/\(.\{148\}\)..*/\1/
  14990. t more2
  14991. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14992. p
  14993. b
  14994. :more2
  14995. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14996. p
  14997. g
  14998. s/.\{148\}//
  14999. t delim
  15000. ' <conf$$subs.awk | sed '
  15001. /^[^""]/{
  15002. N
  15003. s/\n//
  15004. }
  15005. ' >>$CONFIG_STATUS || ac_write_fail=1
  15006. rm -f conf$$subs.awk
  15007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15008. _ACAWK
  15009. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15010. for (key in S) S_is_set[key] = 1
  15011. FS = ""
  15012. }
  15013. {
  15014. line = $ 0
  15015. nfields = split(line, field, "@")
  15016. substed = 0
  15017. len = length(field[1])
  15018. for (i = 2; i < nfields; i++) {
  15019. key = field[i]
  15020. keylen = length(key)
  15021. if (S_is_set[key]) {
  15022. value = S[key]
  15023. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15024. len += length(value) + length(field[++i])
  15025. substed = 1
  15026. } else
  15027. len += 1 + keylen
  15028. }
  15029. print line
  15030. }
  15031. _ACAWK
  15032. _ACEOF
  15033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15034. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15035. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15036. else
  15037. cat
  15038. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15039. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15040. _ACEOF
  15041. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15042. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15043. # trailing colons and then remove the whole line if VPATH becomes empty
  15044. # (actually we leave an empty line to preserve line numbers).
  15045. if test "x$srcdir" = x.; then
  15046. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15047. h
  15048. s///
  15049. s/^/:/
  15050. s/[ ]*$/:/
  15051. s/:\$(srcdir):/:/g
  15052. s/:\${srcdir}:/:/g
  15053. s/:@srcdir@:/:/g
  15054. s/^:*//
  15055. s/:*$//
  15056. x
  15057. s/\(=[ ]*\).*/\1/
  15058. G
  15059. s/\n//
  15060. s/^[^=]*=[ ]*$//
  15061. }'
  15062. fi
  15063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15064. fi # test -n "$CONFIG_FILES"
  15065. # Set up the scripts for CONFIG_HEADERS section.
  15066. # No need to generate them if there are no CONFIG_HEADERS.
  15067. # This happens for instance with `./config.status Makefile'.
  15068. if test -n "$CONFIG_HEADERS"; then
  15069. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15070. BEGIN {
  15071. _ACEOF
  15072. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15073. # here-document in config.status, that substitutes the proper values into
  15074. # config.h.in to produce config.h.
  15075. # Create a delimiter string that does not exist in confdefs.h, to ease
  15076. # handling of long lines.
  15077. ac_delim='%!_!# '
  15078. for ac_last_try in false false :; do
  15079. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15080. if test -z "$ac_tt"; then
  15081. break
  15082. elif $ac_last_try; then
  15083. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15084. else
  15085. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15086. fi
  15087. done
  15088. # For the awk script, D is an array of macro values keyed by name,
  15089. # likewise P contains macro parameters if any. Preserve backslash
  15090. # newline sequences.
  15091. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15092. sed -n '
  15093. s/.\{148\}/&'"$ac_delim"'/g
  15094. t rset
  15095. :rset
  15096. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15097. t def
  15098. d
  15099. :def
  15100. s/\\$//
  15101. t bsnl
  15102. s/["\\]/\\&/g
  15103. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15104. D["\1"]=" \3"/p
  15105. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15106. d
  15107. :bsnl
  15108. s/["\\]/\\&/g
  15109. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15110. D["\1"]=" \3\\\\\\n"\\/p
  15111. t cont
  15112. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15113. t cont
  15114. d
  15115. :cont
  15116. n
  15117. s/.\{148\}/&'"$ac_delim"'/g
  15118. t clear
  15119. :clear
  15120. s/\\$//
  15121. t bsnlc
  15122. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15123. d
  15124. :bsnlc
  15125. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15126. b cont
  15127. ' <confdefs.h | sed '
  15128. s/'"$ac_delim"'/"\\\
  15129. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15131. for (key in D) D_is_set[key] = 1
  15132. FS = ""
  15133. }
  15134. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15135. line = \$ 0
  15136. split(line, arg, " ")
  15137. if (arg[1] == "#") {
  15138. defundef = arg[2]
  15139. mac1 = arg[3]
  15140. } else {
  15141. defundef = substr(arg[1], 2)
  15142. mac1 = arg[2]
  15143. }
  15144. split(mac1, mac2, "(") #)
  15145. macro = mac2[1]
  15146. prefix = substr(line, 1, index(line, defundef) - 1)
  15147. if (D_is_set[macro]) {
  15148. # Preserve the white space surrounding the "#".
  15149. print prefix "define", macro P[macro] D[macro]
  15150. next
  15151. } else {
  15152. # Replace #undef with comments. This is necessary, for example,
  15153. # in the case of _POSIX_SOURCE, which is predefined and required
  15154. # on some systems where configure will not decide to define it.
  15155. if (defundef == "undef") {
  15156. print "/*", prefix defundef, macro, "*/"
  15157. next
  15158. }
  15159. }
  15160. }
  15161. { print }
  15162. _ACAWK
  15163. _ACEOF
  15164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15165. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15166. fi # test -n "$CONFIG_HEADERS"
  15167. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15168. shift
  15169. for ac_tag
  15170. do
  15171. case $ac_tag in
  15172. :[FHLC]) ac_mode=$ac_tag; continue;;
  15173. esac
  15174. case $ac_mode$ac_tag in
  15175. :[FHL]*:*);;
  15176. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15177. :[FH]-) ac_tag=-:-;;
  15178. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15179. esac
  15180. ac_save_IFS=$IFS
  15181. IFS=:
  15182. set x $ac_tag
  15183. IFS=$ac_save_IFS
  15184. shift
  15185. ac_file=$1
  15186. shift
  15187. case $ac_mode in
  15188. :L) ac_source=$1;;
  15189. :[FH])
  15190. ac_file_inputs=
  15191. for ac_f
  15192. do
  15193. case $ac_f in
  15194. -) ac_f="$ac_tmp/stdin";;
  15195. *) # Look for the file first in the build tree, then in the source tree
  15196. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15197. # because $ac_f cannot contain `:'.
  15198. test -f "$ac_f" ||
  15199. case $ac_f in
  15200. [\\/$]*) false;;
  15201. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15202. esac ||
  15203. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15204. esac
  15205. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15206. as_fn_append ac_file_inputs " '$ac_f'"
  15207. done
  15208. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15209. # use $as_me), people would be surprised to read:
  15210. # /* config.h. Generated by config.status. */
  15211. configure_input='Generated from '`
  15212. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15213. `' by configure.'
  15214. if test x"$ac_file" != x-; then
  15215. configure_input="$ac_file. $configure_input"
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15217. $as_echo "$as_me: creating $ac_file" >&6;}
  15218. fi
  15219. # Neutralize special characters interpreted by sed in replacement strings.
  15220. case $configure_input in #(
  15221. *\&* | *\|* | *\\* )
  15222. ac_sed_conf_input=`$as_echo "$configure_input" |
  15223. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15224. *) ac_sed_conf_input=$configure_input;;
  15225. esac
  15226. case $ac_tag in
  15227. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15228. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15229. esac
  15230. ;;
  15231. esac
  15232. ac_dir=`$as_dirname -- "$ac_file" ||
  15233. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15234. X"$ac_file" : 'X\(//\)[^/]' \| \
  15235. X"$ac_file" : 'X\(//\)$' \| \
  15236. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15237. $as_echo X"$ac_file" |
  15238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15239. s//\1/
  15240. q
  15241. }
  15242. /^X\(\/\/\)[^/].*/{
  15243. s//\1/
  15244. q
  15245. }
  15246. /^X\(\/\/\)$/{
  15247. s//\1/
  15248. q
  15249. }
  15250. /^X\(\/\).*/{
  15251. s//\1/
  15252. q
  15253. }
  15254. s/.*/./; q'`
  15255. as_dir="$ac_dir"; as_fn_mkdir_p
  15256. ac_builddir=.
  15257. case "$ac_dir" in
  15258. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15259. *)
  15260. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15261. # A ".." for each directory in $ac_dir_suffix.
  15262. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15263. case $ac_top_builddir_sub in
  15264. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15265. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15266. esac ;;
  15267. esac
  15268. ac_abs_top_builddir=$ac_pwd
  15269. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15270. # for backward compatibility:
  15271. ac_top_builddir=$ac_top_build_prefix
  15272. case $srcdir in
  15273. .) # We are building in place.
  15274. ac_srcdir=.
  15275. ac_top_srcdir=$ac_top_builddir_sub
  15276. ac_abs_top_srcdir=$ac_pwd ;;
  15277. [\\/]* | ?:[\\/]* ) # Absolute name.
  15278. ac_srcdir=$srcdir$ac_dir_suffix;
  15279. ac_top_srcdir=$srcdir
  15280. ac_abs_top_srcdir=$srcdir ;;
  15281. *) # Relative name.
  15282. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15283. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15284. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15285. esac
  15286. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15287. case $ac_mode in
  15288. :F)
  15289. #
  15290. # CONFIG_FILE
  15291. #
  15292. case $INSTALL in
  15293. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15294. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15295. esac
  15296. _ACEOF
  15297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15298. # If the template does not know about datarootdir, expand it.
  15299. # FIXME: This hack should be removed a few years after 2.60.
  15300. ac_datarootdir_hack=; ac_datarootdir_seen=
  15301. ac_sed_dataroot='
  15302. /datarootdir/ {
  15303. p
  15304. q
  15305. }
  15306. /@datadir@/p
  15307. /@docdir@/p
  15308. /@infodir@/p
  15309. /@localedir@/p
  15310. /@mandir@/p'
  15311. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15312. *datarootdir*) ac_datarootdir_seen=yes;;
  15313. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15315. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15316. _ACEOF
  15317. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15318. ac_datarootdir_hack='
  15319. s&@datadir@&$datadir&g
  15320. s&@docdir@&$docdir&g
  15321. s&@infodir@&$infodir&g
  15322. s&@localedir@&$localedir&g
  15323. s&@mandir@&$mandir&g
  15324. s&\\\${datarootdir}&$datarootdir&g' ;;
  15325. esac
  15326. _ACEOF
  15327. # Neutralize VPATH when `$srcdir' = `.'.
  15328. # Shell code in configure.ac might set extrasub.
  15329. # FIXME: do we really want to maintain this feature?
  15330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15331. ac_sed_extra="$ac_vpsub
  15332. $extrasub
  15333. _ACEOF
  15334. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15335. :t
  15336. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15337. s|@configure_input@|$ac_sed_conf_input|;t t
  15338. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15339. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15340. s&@srcdir@&$ac_srcdir&;t t
  15341. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15342. s&@top_srcdir@&$ac_top_srcdir&;t t
  15343. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15344. s&@builddir@&$ac_builddir&;t t
  15345. s&@abs_builddir@&$ac_abs_builddir&;t t
  15346. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15347. s&@INSTALL@&$ac_INSTALL&;t t
  15348. $ac_datarootdir_hack
  15349. "
  15350. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15351. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15352. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15353. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15354. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15355. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15357. which seems to be undefined. Please make sure it is defined" >&5
  15358. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15359. which seems to be undefined. Please make sure it is defined" >&2;}
  15360. rm -f "$ac_tmp/stdin"
  15361. case $ac_file in
  15362. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15363. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15364. esac \
  15365. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15366. ;;
  15367. :H)
  15368. #
  15369. # CONFIG_HEADER
  15370. #
  15371. if test x"$ac_file" != x-; then
  15372. {
  15373. $as_echo "/* $configure_input */" \
  15374. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15375. } >"$ac_tmp/config.h" \
  15376. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15377. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15379. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15380. else
  15381. rm -f "$ac_file"
  15382. mv "$ac_tmp/config.h" "$ac_file" \
  15383. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15384. fi
  15385. else
  15386. $as_echo "/* $configure_input */" \
  15387. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15388. || as_fn_error $? "could not create -" "$LINENO" 5
  15389. fi
  15390. ;;
  15391. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15392. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15393. ;;
  15394. esac
  15395. case $ac_file$ac_mode in
  15396. "libtool":C)
  15397. # See if we are running on zsh, and set the options which allow our
  15398. # commands through without removal of \ escapes.
  15399. if test -n "${ZSH_VERSION+set}" ; then
  15400. setopt NO_GLOB_SUBST
  15401. fi
  15402. cfgfile="${ofile}T"
  15403. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15404. $RM "$cfgfile"
  15405. cat <<_LT_EOF >> "$cfgfile"
  15406. #! $SHELL
  15407. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15408. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15409. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15410. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15411. #
  15412. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15413. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15414. # Inc.
  15415. # Written by Gordon Matzigkeit, 1996
  15416. #
  15417. # This file is part of GNU Libtool.
  15418. #
  15419. # GNU Libtool is free software; you can redistribute it and/or
  15420. # modify it under the terms of the GNU General Public License as
  15421. # published by the Free Software Foundation; either version 2 of
  15422. # the License, or (at your option) any later version.
  15423. #
  15424. # As a special exception to the GNU General Public License,
  15425. # if you distribute this file as part of a program or library that
  15426. # is built using GNU Libtool, you may include this file under the
  15427. # same distribution terms that you use for the rest of that program.
  15428. #
  15429. # GNU Libtool is distributed in the hope that it will be useful,
  15430. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15431. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15432. # GNU General Public License for more details.
  15433. #
  15434. # You should have received a copy of the GNU General Public License
  15435. # along with GNU Libtool; see the file COPYING. If not, a copy
  15436. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15437. # obtained by writing to the Free Software Foundation, Inc.,
  15438. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15439. # The names of the tagged configurations supported by this script.
  15440. available_tags="CXX "
  15441. # ### BEGIN LIBTOOL CONFIG
  15442. # Assembler program.
  15443. AS=$lt_AS
  15444. # DLL creation program.
  15445. DLLTOOL=$lt_DLLTOOL
  15446. # Object dumper program.
  15447. OBJDUMP=$lt_OBJDUMP
  15448. # Which release of libtool.m4 was used?
  15449. macro_version=$macro_version
  15450. macro_revision=$macro_revision
  15451. # Whether or not to build shared libraries.
  15452. build_libtool_libs=$enable_shared
  15453. # Whether or not to build static libraries.
  15454. build_old_libs=$enable_static
  15455. # What type of objects to build.
  15456. pic_mode=$pic_mode
  15457. # Whether or not to optimize for fast installation.
  15458. fast_install=$enable_fast_install
  15459. # Shell to use when invoking shell scripts.
  15460. SHELL=$lt_SHELL
  15461. # An echo program that protects backslashes.
  15462. ECHO=$lt_ECHO
  15463. # The host system.
  15464. host_alias=$host_alias
  15465. host=$host
  15466. host_os=$host_os
  15467. # The build system.
  15468. build_alias=$build_alias
  15469. build=$build
  15470. build_os=$build_os
  15471. # A sed program that does not truncate output.
  15472. SED=$lt_SED
  15473. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15474. Xsed="\$SED -e 1s/^X//"
  15475. # A grep program that handles long lines.
  15476. GREP=$lt_GREP
  15477. # An ERE matcher.
  15478. EGREP=$lt_EGREP
  15479. # A literal string matcher.
  15480. FGREP=$lt_FGREP
  15481. # A BSD- or MS-compatible name lister.
  15482. NM=$lt_NM
  15483. # Whether we need soft or hard links.
  15484. LN_S=$lt_LN_S
  15485. # What is the maximum length of a command?
  15486. max_cmd_len=$max_cmd_len
  15487. # Object file suffix (normally "o").
  15488. objext=$ac_objext
  15489. # Executable file suffix (normally "").
  15490. exeext=$exeext
  15491. # whether the shell understands "unset".
  15492. lt_unset=$lt_unset
  15493. # turn spaces into newlines.
  15494. SP2NL=$lt_lt_SP2NL
  15495. # turn newlines into spaces.
  15496. NL2SP=$lt_lt_NL2SP
  15497. # convert \$build file names to \$host format.
  15498. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15499. # convert \$build files to toolchain format.
  15500. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15501. # Method to check whether dependent libraries are shared objects.
  15502. deplibs_check_method=$lt_deplibs_check_method
  15503. # Command to use when deplibs_check_method = "file_magic".
  15504. file_magic_cmd=$lt_file_magic_cmd
  15505. # How to find potential files when deplibs_check_method = "file_magic".
  15506. file_magic_glob=$lt_file_magic_glob
  15507. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15508. want_nocaseglob=$lt_want_nocaseglob
  15509. # Command to associate shared and link libraries.
  15510. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15511. # The archiver.
  15512. AR=$lt_AR
  15513. # Flags to create an archive.
  15514. AR_FLAGS=$lt_AR_FLAGS
  15515. # How to feed a file listing to the archiver.
  15516. archiver_list_spec=$lt_archiver_list_spec
  15517. # A symbol stripping program.
  15518. STRIP=$lt_STRIP
  15519. # Commands used to install an old-style archive.
  15520. RANLIB=$lt_RANLIB
  15521. old_postinstall_cmds=$lt_old_postinstall_cmds
  15522. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15523. # Whether to use a lock for old archive extraction.
  15524. lock_old_archive_extraction=$lock_old_archive_extraction
  15525. # A C compiler.
  15526. LTCC=$lt_CC
  15527. # LTCC compiler flags.
  15528. LTCFLAGS=$lt_CFLAGS
  15529. # Take the output of nm and produce a listing of raw symbols and C names.
  15530. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15531. # Transform the output of nm in a proper C declaration.
  15532. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15533. # Transform the output of nm in a C name address pair.
  15534. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15535. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15536. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15537. # Specify filename containing input files for \$NM.
  15538. nm_file_list_spec=$lt_nm_file_list_spec
  15539. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15540. lt_sysroot=$lt_sysroot
  15541. # The name of the directory that contains temporary libtool files.
  15542. objdir=$objdir
  15543. # Used to examine libraries when file_magic_cmd begins with "file".
  15544. MAGIC_CMD=$MAGIC_CMD
  15545. # Must we lock files when doing compilation?
  15546. need_locks=$lt_need_locks
  15547. # Manifest tool.
  15548. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15549. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15550. DSYMUTIL=$lt_DSYMUTIL
  15551. # Tool to change global to local symbols on Mac OS X.
  15552. NMEDIT=$lt_NMEDIT
  15553. # Tool to manipulate fat objects and archives on Mac OS X.
  15554. LIPO=$lt_LIPO
  15555. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15556. OTOOL=$lt_OTOOL
  15557. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15558. OTOOL64=$lt_OTOOL64
  15559. # Old archive suffix (normally "a").
  15560. libext=$libext
  15561. # Shared library suffix (normally ".so").
  15562. shrext_cmds=$lt_shrext_cmds
  15563. # The commands to extract the exported symbol list from a shared archive.
  15564. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15565. # Variables whose values should be saved in libtool wrapper scripts and
  15566. # restored at link time.
  15567. variables_saved_for_relink=$lt_variables_saved_for_relink
  15568. # Do we need the "lib" prefix for modules?
  15569. need_lib_prefix=$need_lib_prefix
  15570. # Do we need a version for libraries?
  15571. need_version=$need_version
  15572. # Library versioning type.
  15573. version_type=$version_type
  15574. # Shared library runtime path variable.
  15575. runpath_var=$runpath_var
  15576. # Shared library path variable.
  15577. shlibpath_var=$shlibpath_var
  15578. # Is shlibpath searched before the hard-coded library search path?
  15579. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15580. # Format of library name prefix.
  15581. libname_spec=$lt_libname_spec
  15582. # List of archive names. First name is the real one, the rest are links.
  15583. # The last name is the one that the linker finds with -lNAME
  15584. library_names_spec=$lt_library_names_spec
  15585. # The coded name of the library, if different from the real name.
  15586. soname_spec=$lt_soname_spec
  15587. # Permission mode override for installation of shared libraries.
  15588. install_override_mode=$lt_install_override_mode
  15589. # Command to use after installation of a shared archive.
  15590. postinstall_cmds=$lt_postinstall_cmds
  15591. # Command to use after uninstallation of a shared archive.
  15592. postuninstall_cmds=$lt_postuninstall_cmds
  15593. # Commands used to finish a libtool library installation in a directory.
  15594. finish_cmds=$lt_finish_cmds
  15595. # As "finish_cmds", except a single script fragment to be evaled but
  15596. # not shown.
  15597. finish_eval=$lt_finish_eval
  15598. # Whether we should hardcode library paths into libraries.
  15599. hardcode_into_libs=$hardcode_into_libs
  15600. # Compile-time system search path for libraries.
  15601. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15602. # Run-time system search path for libraries.
  15603. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15604. # Whether dlopen is supported.
  15605. dlopen_support=$enable_dlopen
  15606. # Whether dlopen of programs is supported.
  15607. dlopen_self=$enable_dlopen_self
  15608. # Whether dlopen of statically linked programs is supported.
  15609. dlopen_self_static=$enable_dlopen_self_static
  15610. # Commands to strip libraries.
  15611. old_striplib=$lt_old_striplib
  15612. striplib=$lt_striplib
  15613. # The linker used to build libraries.
  15614. LD=$lt_LD
  15615. # How to create reloadable object files.
  15616. reload_flag=$lt_reload_flag
  15617. reload_cmds=$lt_reload_cmds
  15618. # Commands used to build an old-style archive.
  15619. old_archive_cmds=$lt_old_archive_cmds
  15620. # A language specific compiler.
  15621. CC=$lt_compiler
  15622. # Is the compiler the GNU compiler?
  15623. with_gcc=$GCC
  15624. # Compiler flag to turn off builtin functions.
  15625. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15626. # Additional compiler flags for building library objects.
  15627. pic_flag=$lt_lt_prog_compiler_pic
  15628. # How to pass a linker flag through the compiler.
  15629. wl=$lt_lt_prog_compiler_wl
  15630. # Compiler flag to prevent dynamic linking.
  15631. link_static_flag=$lt_lt_prog_compiler_static
  15632. # Does compiler simultaneously support -c and -o options?
  15633. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15634. # Whether or not to add -lc for building shared libraries.
  15635. build_libtool_need_lc=$archive_cmds_need_lc
  15636. # Whether or not to disallow shared libs when runtime libs are static.
  15637. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15638. # Compiler flag to allow reflexive dlopens.
  15639. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15640. # Compiler flag to generate shared objects directly from archives.
  15641. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15642. # Whether the compiler copes with passing no objects directly.
  15643. compiler_needs_object=$lt_compiler_needs_object
  15644. # Create an old-style archive from a shared archive.
  15645. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15646. # Create a temporary old-style archive to link instead of a shared archive.
  15647. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15648. # Commands used to build a shared archive.
  15649. archive_cmds=$lt_archive_cmds
  15650. archive_expsym_cmds=$lt_archive_expsym_cmds
  15651. # Commands used to build a loadable module if different from building
  15652. # a shared archive.
  15653. module_cmds=$lt_module_cmds
  15654. module_expsym_cmds=$lt_module_expsym_cmds
  15655. # Whether we are building with GNU ld or not.
  15656. with_gnu_ld=$lt_with_gnu_ld
  15657. # Flag that allows shared libraries with undefined symbols to be built.
  15658. allow_undefined_flag=$lt_allow_undefined_flag
  15659. # Flag that enforces no undefined symbols.
  15660. no_undefined_flag=$lt_no_undefined_flag
  15661. # Flag to hardcode \$libdir into a binary during linking.
  15662. # This must work even if \$libdir does not exist
  15663. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15664. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15665. # during linking. This must work even if \$libdir does not exist.
  15666. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15667. # Whether we need a single "-rpath" flag with a separated argument.
  15668. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15669. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15670. # DIR into the resulting binary.
  15671. hardcode_direct=$hardcode_direct
  15672. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15673. # DIR into the resulting binary and the resulting library dependency is
  15674. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15675. # library is relocated.
  15676. hardcode_direct_absolute=$hardcode_direct_absolute
  15677. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15678. # into the resulting binary.
  15679. hardcode_minus_L=$hardcode_minus_L
  15680. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15681. # into the resulting binary.
  15682. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15683. # Set to "yes" if building a shared library automatically hardcodes DIR
  15684. # into the library and all subsequent libraries and executables linked
  15685. # against it.
  15686. hardcode_automatic=$hardcode_automatic
  15687. # Set to yes if linker adds runtime paths of dependent libraries
  15688. # to runtime path list.
  15689. inherit_rpath=$inherit_rpath
  15690. # Whether libtool must link a program against all its dependency libraries.
  15691. link_all_deplibs=$link_all_deplibs
  15692. # Set to "yes" if exported symbols are required.
  15693. always_export_symbols=$always_export_symbols
  15694. # The commands to list exported symbols.
  15695. export_symbols_cmds=$lt_export_symbols_cmds
  15696. # Symbols that should not be listed in the preloaded symbols.
  15697. exclude_expsyms=$lt_exclude_expsyms
  15698. # Symbols that must always be exported.
  15699. include_expsyms=$lt_include_expsyms
  15700. # Commands necessary for linking programs (against libraries) with templates.
  15701. prelink_cmds=$lt_prelink_cmds
  15702. # Commands necessary for finishing linking programs.
  15703. postlink_cmds=$lt_postlink_cmds
  15704. # Specify filename containing input files.
  15705. file_list_spec=$lt_file_list_spec
  15706. # How to hardcode a shared library path into an executable.
  15707. hardcode_action=$hardcode_action
  15708. # The directories searched by this compiler when creating a shared library.
  15709. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15710. # Dependencies to place before and after the objects being linked to
  15711. # create a shared library.
  15712. predep_objects=$lt_predep_objects
  15713. postdep_objects=$lt_postdep_objects
  15714. predeps=$lt_predeps
  15715. postdeps=$lt_postdeps
  15716. # The library search path used internally by the compiler when linking
  15717. # a shared library.
  15718. compiler_lib_search_path=$lt_compiler_lib_search_path
  15719. # ### END LIBTOOL CONFIG
  15720. _LT_EOF
  15721. case $host_os in
  15722. aix3*)
  15723. cat <<\_LT_EOF >> "$cfgfile"
  15724. # AIX sometimes has problems with the GCC collect2 program. For some
  15725. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15726. # vanish in a puff of smoke.
  15727. if test "X${COLLECT_NAMES+set}" != Xset; then
  15728. COLLECT_NAMES=
  15729. export COLLECT_NAMES
  15730. fi
  15731. _LT_EOF
  15732. ;;
  15733. esac
  15734. ltmain="$ac_aux_dir/ltmain.sh"
  15735. # We use sed instead of cat because bash on DJGPP gets confused if
  15736. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15737. # text mode, it properly converts lines to CR/LF. This bash problem
  15738. # is reportedly fixed, but why not run on old versions too?
  15739. sed '$q' "$ltmain" >> "$cfgfile" \
  15740. || (rm -f "$cfgfile"; exit 1)
  15741. if test x"$xsi_shell" = xyes; then
  15742. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15743. func_dirname ()\
  15744. {\
  15745. \ case ${1} in\
  15746. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15747. \ * ) func_dirname_result="${3}" ;;\
  15748. \ esac\
  15749. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15750. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15751. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15752. test 0 -eq $? || _lt_function_replace_fail=:
  15753. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15754. func_basename ()\
  15755. {\
  15756. \ func_basename_result="${1##*/}"\
  15757. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15758. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15759. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15760. test 0 -eq $? || _lt_function_replace_fail=:
  15761. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15762. func_dirname_and_basename ()\
  15763. {\
  15764. \ case ${1} in\
  15765. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15766. \ * ) func_dirname_result="${3}" ;;\
  15767. \ esac\
  15768. \ func_basename_result="${1##*/}"\
  15769. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15770. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15771. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15772. test 0 -eq $? || _lt_function_replace_fail=:
  15773. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15774. func_stripname ()\
  15775. {\
  15776. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15777. \ # positional parameters, so assign one to ordinary parameter first.\
  15778. \ func_stripname_result=${3}\
  15779. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15780. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15781. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15782. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15783. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15784. test 0 -eq $? || _lt_function_replace_fail=:
  15785. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15786. func_split_long_opt ()\
  15787. {\
  15788. \ func_split_long_opt_name=${1%%=*}\
  15789. \ func_split_long_opt_arg=${1#*=}\
  15790. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15791. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15792. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15793. test 0 -eq $? || _lt_function_replace_fail=:
  15794. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15795. func_split_short_opt ()\
  15796. {\
  15797. \ func_split_short_opt_arg=${1#??}\
  15798. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15799. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15800. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15801. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15802. test 0 -eq $? || _lt_function_replace_fail=:
  15803. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15804. func_lo2o ()\
  15805. {\
  15806. \ case ${1} in\
  15807. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15808. \ *) func_lo2o_result=${1} ;;\
  15809. \ esac\
  15810. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15811. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15812. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15813. test 0 -eq $? || _lt_function_replace_fail=:
  15814. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15815. func_xform ()\
  15816. {\
  15817. func_xform_result=${1%.*}.lo\
  15818. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15819. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15820. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15821. test 0 -eq $? || _lt_function_replace_fail=:
  15822. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15823. func_arith ()\
  15824. {\
  15825. func_arith_result=$(( $* ))\
  15826. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15827. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15828. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15829. test 0 -eq $? || _lt_function_replace_fail=:
  15830. sed -e '/^func_len ()$/,/^} # func_len /c\
  15831. func_len ()\
  15832. {\
  15833. func_len_result=${#1}\
  15834. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15835. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15836. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15837. test 0 -eq $? || _lt_function_replace_fail=:
  15838. fi
  15839. if test x"$lt_shell_append" = xyes; then
  15840. sed -e '/^func_append ()$/,/^} # func_append /c\
  15841. func_append ()\
  15842. {\
  15843. eval "${1}+=\\${2}"\
  15844. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15845. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15846. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15847. test 0 -eq $? || _lt_function_replace_fail=:
  15848. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15849. func_append_quoted ()\
  15850. {\
  15851. \ func_quote_for_eval "${2}"\
  15852. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15853. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15854. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15855. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15856. test 0 -eq $? || _lt_function_replace_fail=:
  15857. # Save a `func_append' function call where possible by direct use of '+='
  15858. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15859. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15860. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15861. test 0 -eq $? || _lt_function_replace_fail=:
  15862. else
  15863. # Save a `func_append' function call even when '+=' is not available
  15864. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15865. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15866. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15867. test 0 -eq $? || _lt_function_replace_fail=:
  15868. fi
  15869. if test x"$_lt_function_replace_fail" = x":"; then
  15870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15871. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15872. fi
  15873. mv -f "$cfgfile" "$ofile" ||
  15874. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15875. chmod +x "$ofile"
  15876. cat <<_LT_EOF >> "$ofile"
  15877. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15878. # The linker used to build libraries.
  15879. LD=$lt_LD_CXX
  15880. # How to create reloadable object files.
  15881. reload_flag=$lt_reload_flag_CXX
  15882. reload_cmds=$lt_reload_cmds_CXX
  15883. # Commands used to build an old-style archive.
  15884. old_archive_cmds=$lt_old_archive_cmds_CXX
  15885. # A language specific compiler.
  15886. CC=$lt_compiler_CXX
  15887. # Is the compiler the GNU compiler?
  15888. with_gcc=$GCC_CXX
  15889. # Compiler flag to turn off builtin functions.
  15890. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15891. # Additional compiler flags for building library objects.
  15892. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15893. # How to pass a linker flag through the compiler.
  15894. wl=$lt_lt_prog_compiler_wl_CXX
  15895. # Compiler flag to prevent dynamic linking.
  15896. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15897. # Does compiler simultaneously support -c and -o options?
  15898. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15899. # Whether or not to add -lc for building shared libraries.
  15900. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15901. # Whether or not to disallow shared libs when runtime libs are static.
  15902. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15903. # Compiler flag to allow reflexive dlopens.
  15904. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15905. # Compiler flag to generate shared objects directly from archives.
  15906. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15907. # Whether the compiler copes with passing no objects directly.
  15908. compiler_needs_object=$lt_compiler_needs_object_CXX
  15909. # Create an old-style archive from a shared archive.
  15910. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15911. # Create a temporary old-style archive to link instead of a shared archive.
  15912. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15913. # Commands used to build a shared archive.
  15914. archive_cmds=$lt_archive_cmds_CXX
  15915. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15916. # Commands used to build a loadable module if different from building
  15917. # a shared archive.
  15918. module_cmds=$lt_module_cmds_CXX
  15919. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15920. # Whether we are building with GNU ld or not.
  15921. with_gnu_ld=$lt_with_gnu_ld_CXX
  15922. # Flag that allows shared libraries with undefined symbols to be built.
  15923. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15924. # Flag that enforces no undefined symbols.
  15925. no_undefined_flag=$lt_no_undefined_flag_CXX
  15926. # Flag to hardcode \$libdir into a binary during linking.
  15927. # This must work even if \$libdir does not exist
  15928. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15929. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15930. # during linking. This must work even if \$libdir does not exist.
  15931. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15932. # Whether we need a single "-rpath" flag with a separated argument.
  15933. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15934. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15935. # DIR into the resulting binary.
  15936. hardcode_direct=$hardcode_direct_CXX
  15937. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15938. # DIR into the resulting binary and the resulting library dependency is
  15939. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15940. # library is relocated.
  15941. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15942. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15943. # into the resulting binary.
  15944. hardcode_minus_L=$hardcode_minus_L_CXX
  15945. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15946. # into the resulting binary.
  15947. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15948. # Set to "yes" if building a shared library automatically hardcodes DIR
  15949. # into the library and all subsequent libraries and executables linked
  15950. # against it.
  15951. hardcode_automatic=$hardcode_automatic_CXX
  15952. # Set to yes if linker adds runtime paths of dependent libraries
  15953. # to runtime path list.
  15954. inherit_rpath=$inherit_rpath_CXX
  15955. # Whether libtool must link a program against all its dependency libraries.
  15956. link_all_deplibs=$link_all_deplibs_CXX
  15957. # Set to "yes" if exported symbols are required.
  15958. always_export_symbols=$always_export_symbols_CXX
  15959. # The commands to list exported symbols.
  15960. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15961. # Symbols that should not be listed in the preloaded symbols.
  15962. exclude_expsyms=$lt_exclude_expsyms_CXX
  15963. # Symbols that must always be exported.
  15964. include_expsyms=$lt_include_expsyms_CXX
  15965. # Commands necessary for linking programs (against libraries) with templates.
  15966. prelink_cmds=$lt_prelink_cmds_CXX
  15967. # Commands necessary for finishing linking programs.
  15968. postlink_cmds=$lt_postlink_cmds_CXX
  15969. # Specify filename containing input files.
  15970. file_list_spec=$lt_file_list_spec_CXX
  15971. # How to hardcode a shared library path into an executable.
  15972. hardcode_action=$hardcode_action_CXX
  15973. # The directories searched by this compiler when creating a shared library.
  15974. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15975. # Dependencies to place before and after the objects being linked to
  15976. # create a shared library.
  15977. predep_objects=$lt_predep_objects_CXX
  15978. postdep_objects=$lt_postdep_objects_CXX
  15979. predeps=$lt_predeps_CXX
  15980. postdeps=$lt_postdeps_CXX
  15981. # The library search path used internally by the compiler when linking
  15982. # a shared library.
  15983. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15984. # ### END LIBTOOL TAG CONFIG: CXX
  15985. _LT_EOF
  15986. ;;
  15987. esac
  15988. done # for ac_tag
  15989. as_fn_exit 0
  15990. _ACEOF
  15991. ac_clean_files=$ac_clean_files_save
  15992. test $ac_write_fail = 0 ||
  15993. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15994. # configure is writing to config.log, and then calls config.status.
  15995. # config.status does its own redirection, appending to config.log.
  15996. # Unfortunately, on DOS this fails, as config.log is still kept open
  15997. # by configure, so config.status won't be able to write to it; its
  15998. # output is simply discarded. So we exec the FD to /dev/null,
  15999. # effectively closing config.log, so it can be properly (re)opened and
  16000. # appended to by config.status. When coming back to configure, we
  16001. # need to make the FD available again.
  16002. if test "$no_create" != yes; then
  16003. ac_cs_success=:
  16004. ac_config_status_args=
  16005. test "$silent" = yes &&
  16006. ac_config_status_args="$ac_config_status_args --quiet"
  16007. exec 5>/dev/null
  16008. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16009. exec 5>>config.log
  16010. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16011. # would make configure fail if this is the last instruction.
  16012. $ac_cs_success || as_fn_exit 1
  16013. fi
  16014. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16016. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16017. fi
  16018. abs_srcdir="`cd $srcdir && pwd`"
  16019. abs_builddir="`pwd`"
  16020. if test "$abs_srcdir" != "$abs_builddir"; then
  16021. make mkdir-init
  16022. fi