configure 574 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.4.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  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 \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: 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='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.4'
  525. PACKAGE_STRING='klish 1.5.4'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. TINYXML_CXXFLAGS
  568. TINYXML_LIBS
  569. TINYRL_CFLAGS
  570. TINYRL_LIBS
  571. KONF_CFLAGS
  572. KONF_LIBS
  573. LUB_CFLAGS
  574. LUB_LIBS
  575. DEBUG_FALSE
  576. DEBUG_TRUE
  577. am__fastdepCXX_FALSE
  578. am__fastdepCXX_TRUE
  579. CXXDEPMODE
  580. am__fastdepCC_FALSE
  581. am__fastdepCC_TRUE
  582. CCDEPMODE
  583. am__nodep
  584. AMDEPBACKSLASH
  585. AMDEP_FALSE
  586. AMDEP_TRUE
  587. am__quote
  588. am__include
  589. DEPDIR
  590. am__untar
  591. am__tar
  592. AMTAR
  593. am__leading_dot
  594. SET_MAKE
  595. mkdir_p
  596. MKDIR_P
  597. INSTALL_STRIP_PROGRAM
  598. install_sh
  599. MAKEINFO
  600. AUTOHEADER
  601. AUTOMAKE
  602. AUTOCONF
  603. ACLOCAL
  604. VERSION
  605. PACKAGE
  606. CYGPATH_W
  607. am__isrc
  608. INSTALL_DATA
  609. INSTALL_SCRIPT
  610. INSTALL_PROGRAM
  611. CXXCPP
  612. OTOOL64
  613. OTOOL
  614. LIPO
  615. NMEDIT
  616. DSYMUTIL
  617. MANIFEST_TOOL
  618. AWK
  619. RANLIB
  620. STRIP
  621. ac_ct_AR
  622. AR
  623. LN_S
  624. NM
  625. ac_ct_DUMPBIN
  626. DUMPBIN
  627. LD
  628. FGREP
  629. SED
  630. LIBTOOL
  631. OBJDUMP
  632. DLLTOOL
  633. AS
  634. host_os
  635. host_vendor
  636. host_cpu
  637. host
  638. build_os
  639. build_vendor
  640. build_cpu
  641. build
  642. ac_ct_CXX
  643. CXXFLAGS
  644. CXX
  645. EGREP
  646. GREP
  647. CPP
  648. OBJEXT
  649. EXEEXT
  650. ac_ct_CC
  651. CPPFLAGS
  652. LDFLAGS
  653. CFLAGS
  654. CC
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. localstatedir
  675. sharedstatedir
  676. sysconfdir
  677. datadir
  678. datarootdir
  679. libexecdir
  680. sbindir
  681. bindir
  682. program_transform_name
  683. prefix
  684. exec_prefix
  685. PACKAGE_URL
  686. PACKAGE_BUGREPORT
  687. PACKAGE_STRING
  688. PACKAGE_VERSION
  689. PACKAGE_TARNAME
  690. PACKAGE_NAME
  691. PATH_SEPARATOR
  692. SHELL'
  693. ac_subst_files=''
  694. ac_user_opts='
  695. enable_option_checking
  696. enable_shared
  697. enable_static
  698. with_pic
  699. enable_fast_install
  700. with_gnu_ld
  701. with_sysroot
  702. enable_libtool_lock
  703. enable_dependency_tracking
  704. enable_debug
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. CXX
  716. CXXFLAGS
  717. CCC
  718. CXXCPP'
  719. # Initialize some variables set by options.
  720. ac_init_help=
  721. ac_init_version=false
  722. ac_unrecognized_opts=
  723. ac_unrecognized_sep=
  724. # The variables have the same names as the options, with
  725. # dashes changed to underlines.
  726. cache_file=/dev/null
  727. exec_prefix=NONE
  728. no_create=
  729. no_recursion=
  730. prefix=NONE
  731. program_prefix=NONE
  732. program_suffix=NONE
  733. program_transform_name=s,x,x,
  734. silent=
  735. site=
  736. srcdir=
  737. verbose=
  738. x_includes=NONE
  739. x_libraries=NONE
  740. # Installation directory options.
  741. # These are left unexpanded so users can "make install exec_prefix=/foo"
  742. # and all the variables that are supposed to be based on exec_prefix
  743. # by default will actually change.
  744. # Use braces instead of parens because sh, perl, etc. also accept them.
  745. # (The list follows the same order as the GNU Coding Standards.)
  746. bindir='${exec_prefix}/bin'
  747. sbindir='${exec_prefix}/sbin'
  748. libexecdir='${exec_prefix}/libexec'
  749. datarootdir='${prefix}/share'
  750. datadir='${datarootdir}'
  751. sysconfdir='${prefix}/etc'
  752. sharedstatedir='${prefix}/com'
  753. localstatedir='${prefix}/var'
  754. includedir='${prefix}/include'
  755. oldincludedir='/usr/include'
  756. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  757. infodir='${datarootdir}/info'
  758. htmldir='${docdir}'
  759. dvidir='${docdir}'
  760. pdfdir='${docdir}'
  761. psdir='${docdir}'
  762. libdir='${exec_prefix}/lib'
  763. localedir='${datarootdir}/locale'
  764. mandir='${datarootdir}/man'
  765. ac_prev=
  766. ac_dashdash=
  767. for ac_option
  768. do
  769. # If the previous option needs an argument, assign it.
  770. if test -n "$ac_prev"; then
  771. eval $ac_prev=\$ac_option
  772. ac_prev=
  773. continue
  774. fi
  775. case $ac_option in
  776. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  777. *=) ac_optarg= ;;
  778. *) ac_optarg=yes ;;
  779. esac
  780. # Accept the important Cygnus configure options, so we can diagnose typos.
  781. case $ac_dashdash$ac_option in
  782. --)
  783. ac_dashdash=yes ;;
  784. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  785. ac_prev=bindir ;;
  786. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  787. bindir=$ac_optarg ;;
  788. -build | --build | --buil | --bui | --bu)
  789. ac_prev=build_alias ;;
  790. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  791. build_alias=$ac_optarg ;;
  792. -cache-file | --cache-file | --cache-fil | --cache-fi \
  793. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  794. ac_prev=cache_file ;;
  795. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  796. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  797. cache_file=$ac_optarg ;;
  798. --config-cache | -C)
  799. cache_file=config.cache ;;
  800. -datadir | --datadir | --datadi | --datad)
  801. ac_prev=datadir ;;
  802. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  803. datadir=$ac_optarg ;;
  804. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  805. | --dataroo | --dataro | --datar)
  806. ac_prev=datarootdir ;;
  807. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  808. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  809. datarootdir=$ac_optarg ;;
  810. -disable-* | --disable-*)
  811. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  812. # Reject names that are not valid shell variable names.
  813. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  814. as_fn_error $? "invalid feature name: $ac_useropt"
  815. ac_useropt_orig=$ac_useropt
  816. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  817. case $ac_user_opts in
  818. *"
  819. "enable_$ac_useropt"
  820. "*) ;;
  821. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  822. ac_unrecognized_sep=', ';;
  823. esac
  824. eval enable_$ac_useropt=no ;;
  825. -docdir | --docdir | --docdi | --doc | --do)
  826. ac_prev=docdir ;;
  827. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  828. docdir=$ac_optarg ;;
  829. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  830. ac_prev=dvidir ;;
  831. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  832. dvidir=$ac_optarg ;;
  833. -enable-* | --enable-*)
  834. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  835. # Reject names that are not valid shell variable names.
  836. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  837. as_fn_error $? "invalid feature name: $ac_useropt"
  838. ac_useropt_orig=$ac_useropt
  839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  840. case $ac_user_opts in
  841. *"
  842. "enable_$ac_useropt"
  843. "*) ;;
  844. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  845. ac_unrecognized_sep=', ';;
  846. esac
  847. eval enable_$ac_useropt=\$ac_optarg ;;
  848. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  849. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  850. | --exec | --exe | --ex)
  851. ac_prev=exec_prefix ;;
  852. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  853. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  854. | --exec=* | --exe=* | --ex=*)
  855. exec_prefix=$ac_optarg ;;
  856. -gas | --gas | --ga | --g)
  857. # Obsolete; use --with-gas.
  858. with_gas=yes ;;
  859. -help | --help | --hel | --he | -h)
  860. ac_init_help=long ;;
  861. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  862. ac_init_help=recursive ;;
  863. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  864. ac_init_help=short ;;
  865. -host | --host | --hos | --ho)
  866. ac_prev=host_alias ;;
  867. -host=* | --host=* | --hos=* | --ho=*)
  868. host_alias=$ac_optarg ;;
  869. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  870. ac_prev=htmldir ;;
  871. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  872. | --ht=*)
  873. htmldir=$ac_optarg ;;
  874. -includedir | --includedir | --includedi | --included | --include \
  875. | --includ | --inclu | --incl | --inc)
  876. ac_prev=includedir ;;
  877. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  878. | --includ=* | --inclu=* | --incl=* | --inc=*)
  879. includedir=$ac_optarg ;;
  880. -infodir | --infodir | --infodi | --infod | --info | --inf)
  881. ac_prev=infodir ;;
  882. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  883. infodir=$ac_optarg ;;
  884. -libdir | --libdir | --libdi | --libd)
  885. ac_prev=libdir ;;
  886. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  887. libdir=$ac_optarg ;;
  888. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  889. | --libexe | --libex | --libe)
  890. ac_prev=libexecdir ;;
  891. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  892. | --libexe=* | --libex=* | --libe=*)
  893. libexecdir=$ac_optarg ;;
  894. -localedir | --localedir | --localedi | --localed | --locale)
  895. ac_prev=localedir ;;
  896. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  897. localedir=$ac_optarg ;;
  898. -localstatedir | --localstatedir | --localstatedi | --localstated \
  899. | --localstate | --localstat | --localsta | --localst | --locals)
  900. ac_prev=localstatedir ;;
  901. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  902. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  903. localstatedir=$ac_optarg ;;
  904. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  905. ac_prev=mandir ;;
  906. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  907. mandir=$ac_optarg ;;
  908. -nfp | --nfp | --nf)
  909. # Obsolete; use --without-fp.
  910. with_fp=no ;;
  911. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  912. | --no-cr | --no-c | -n)
  913. no_create=yes ;;
  914. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  915. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  916. no_recursion=yes ;;
  917. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  918. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  919. | --oldin | --oldi | --old | --ol | --o)
  920. ac_prev=oldincludedir ;;
  921. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  922. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  923. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  924. oldincludedir=$ac_optarg ;;
  925. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  926. ac_prev=prefix ;;
  927. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  928. prefix=$ac_optarg ;;
  929. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  930. | --program-pre | --program-pr | --program-p)
  931. ac_prev=program_prefix ;;
  932. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  933. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  934. program_prefix=$ac_optarg ;;
  935. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  936. | --program-suf | --program-su | --program-s)
  937. ac_prev=program_suffix ;;
  938. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  939. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  940. program_suffix=$ac_optarg ;;
  941. -program-transform-name | --program-transform-name \
  942. | --program-transform-nam | --program-transform-na \
  943. | --program-transform-n | --program-transform- \
  944. | --program-transform | --program-transfor \
  945. | --program-transfo | --program-transf \
  946. | --program-trans | --program-tran \
  947. | --progr-tra | --program-tr | --program-t)
  948. ac_prev=program_transform_name ;;
  949. -program-transform-name=* | --program-transform-name=* \
  950. | --program-transform-nam=* | --program-transform-na=* \
  951. | --program-transform-n=* | --program-transform-=* \
  952. | --program-transform=* | --program-transfor=* \
  953. | --program-transfo=* | --program-transf=* \
  954. | --program-trans=* | --program-tran=* \
  955. | --progr-tra=* | --program-tr=* | --program-t=*)
  956. program_transform_name=$ac_optarg ;;
  957. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  958. ac_prev=pdfdir ;;
  959. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  960. pdfdir=$ac_optarg ;;
  961. -psdir | --psdir | --psdi | --psd | --ps)
  962. ac_prev=psdir ;;
  963. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  964. psdir=$ac_optarg ;;
  965. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  966. | -silent | --silent | --silen | --sile | --sil)
  967. silent=yes ;;
  968. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  969. ac_prev=sbindir ;;
  970. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  971. | --sbi=* | --sb=*)
  972. sbindir=$ac_optarg ;;
  973. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  974. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  975. | --sharedst | --shareds | --shared | --share | --shar \
  976. | --sha | --sh)
  977. ac_prev=sharedstatedir ;;
  978. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  979. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  980. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  981. | --sha=* | --sh=*)
  982. sharedstatedir=$ac_optarg ;;
  983. -site | --site | --sit)
  984. ac_prev=site ;;
  985. -site=* | --site=* | --sit=*)
  986. site=$ac_optarg ;;
  987. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  988. ac_prev=srcdir ;;
  989. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  990. srcdir=$ac_optarg ;;
  991. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  992. | --syscon | --sysco | --sysc | --sys | --sy)
  993. ac_prev=sysconfdir ;;
  994. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  995. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  996. sysconfdir=$ac_optarg ;;
  997. -target | --target | --targe | --targ | --tar | --ta | --t)
  998. ac_prev=target_alias ;;
  999. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1000. target_alias=$ac_optarg ;;
  1001. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1002. verbose=yes ;;
  1003. -version | --version | --versio | --versi | --vers | -V)
  1004. ac_init_version=: ;;
  1005. -with-* | --with-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=\$ac_optarg ;;
  1020. -without-* | --without-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=no ;;
  1035. --x)
  1036. # Obsolete; use --with-x.
  1037. with_x=yes ;;
  1038. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1039. | --x-incl | --x-inc | --x-in | --x-i)
  1040. ac_prev=x_includes ;;
  1041. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1042. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1043. x_includes=$ac_optarg ;;
  1044. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1045. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1046. ac_prev=x_libraries ;;
  1047. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1048. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1049. x_libraries=$ac_optarg ;;
  1050. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1051. Try \`$0 --help' for more information"
  1052. ;;
  1053. *=*)
  1054. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1055. # Reject names that are not valid shell variable names.
  1056. case $ac_envvar in #(
  1057. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1058. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1059. esac
  1060. eval $ac_envvar=\$ac_optarg
  1061. export $ac_envvar ;;
  1062. *)
  1063. # FIXME: should be removed in autoconf 3.0.
  1064. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1065. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1067. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1068. ;;
  1069. esac
  1070. done
  1071. if test -n "$ac_prev"; then
  1072. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1073. as_fn_error $? "missing argument to $ac_option"
  1074. fi
  1075. if test -n "$ac_unrecognized_opts"; then
  1076. case $enable_option_checking in
  1077. no) ;;
  1078. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1079. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1080. esac
  1081. fi
  1082. # Check all directory arguments for consistency.
  1083. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1084. datadir sysconfdir sharedstatedir localstatedir includedir \
  1085. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1086. libdir localedir mandir
  1087. do
  1088. eval ac_val=\$$ac_var
  1089. # Remove trailing slashes.
  1090. case $ac_val in
  1091. */ )
  1092. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1093. eval $ac_var=\$ac_val;;
  1094. esac
  1095. # Be sure to have absolute directory names.
  1096. case $ac_val in
  1097. [\\/$]* | ?:[\\/]* ) continue;;
  1098. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1099. esac
  1100. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1101. done
  1102. # There might be people who depend on the old broken behavior: `$host'
  1103. # used to hold the argument of --host etc.
  1104. # FIXME: To remove some day.
  1105. build=$build_alias
  1106. host=$host_alias
  1107. target=$target_alias
  1108. # FIXME: To remove some day.
  1109. if test "x$host_alias" != x; then
  1110. if test "x$build_alias" = x; then
  1111. cross_compiling=maybe
  1112. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1113. If a cross compiler is detected then cross compile mode will be used" >&2
  1114. elif test "x$build_alias" != "x$host_alias"; then
  1115. cross_compiling=yes
  1116. fi
  1117. fi
  1118. ac_tool_prefix=
  1119. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1120. test "$silent" = yes && exec 6>/dev/null
  1121. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1122. ac_ls_di=`ls -di .` &&
  1123. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1124. as_fn_error $? "working directory cannot be determined"
  1125. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1126. as_fn_error $? "pwd does not report name of working directory"
  1127. # Find the source files, if location was not specified.
  1128. if test -z "$srcdir"; then
  1129. ac_srcdir_defaulted=yes
  1130. # Try the directory containing this script, then the parent directory.
  1131. ac_confdir=`$as_dirname -- "$as_myself" ||
  1132. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1133. X"$as_myself" : 'X\(//\)[^/]' \| \
  1134. X"$as_myself" : 'X\(//\)$' \| \
  1135. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1136. $as_echo X"$as_myself" |
  1137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)[^/].*/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\).*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. s/.*/./; q'`
  1154. srcdir=$ac_confdir
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. srcdir=..
  1157. fi
  1158. else
  1159. ac_srcdir_defaulted=no
  1160. fi
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1163. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1168. pwd)`
  1169. # When building in place, set srcdir=.
  1170. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1171. srcdir=.
  1172. fi
  1173. # Remove unnecessary trailing slashes from srcdir.
  1174. # Double slashes in file names in object file debugging info
  1175. # mess up M-x gdb in Emacs.
  1176. case $srcdir in
  1177. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1178. esac
  1179. for ac_var in $ac_precious_vars; do
  1180. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_env_${ac_var}_value=\$${ac_var}
  1182. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1184. done
  1185. #
  1186. # Report the --help message.
  1187. #
  1188. if test "$ac_init_help" = "long"; then
  1189. # Omit some internal or obsolete options to make the list less imposing.
  1190. # This message is too long to be a string in the A/UX 3.1 sh.
  1191. cat <<_ACEOF
  1192. \`configure' configures klish 1.5.4 to adapt to many kinds of systems.
  1193. Usage: $0 [OPTION]... [VAR=VALUE]...
  1194. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1195. VAR=VALUE. See below for descriptions of some of the useful variables.
  1196. Defaults for the options are specified in brackets.
  1197. Configuration:
  1198. -h, --help display this help and exit
  1199. --help=short display options specific to this package
  1200. --help=recursive display the short help of all the included packages
  1201. -V, --version display version information and exit
  1202. -q, --quiet, --silent do not print \`checking ...' messages
  1203. --cache-file=FILE cache test results in FILE [disabled]
  1204. -C, --config-cache alias for \`--cache-file=config.cache'
  1205. -n, --no-create do not create output files
  1206. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1207. Installation directories:
  1208. --prefix=PREFIX install architecture-independent files in PREFIX
  1209. [$ac_default_prefix]
  1210. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1211. [PREFIX]
  1212. By default, \`make install' will install all the files in
  1213. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1214. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1215. for instance \`--prefix=\$HOME'.
  1216. For better control, use the options below.
  1217. Fine tuning of the installation directories:
  1218. --bindir=DIR user executables [EPREFIX/bin]
  1219. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1220. --libexecdir=DIR program executables [EPREFIX/libexec]
  1221. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1222. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1223. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1224. --libdir=DIR object code libraries [EPREFIX/lib]
  1225. --includedir=DIR C header files [PREFIX/include]
  1226. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1227. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1228. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1229. --infodir=DIR info documentation [DATAROOTDIR/info]
  1230. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1231. --mandir=DIR man documentation [DATAROOTDIR/man]
  1232. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1233. --htmldir=DIR html documentation [DOCDIR]
  1234. --dvidir=DIR dvi documentation [DOCDIR]
  1235. --pdfdir=DIR pdf documentation [DOCDIR]
  1236. --psdir=DIR ps documentation [DOCDIR]
  1237. _ACEOF
  1238. cat <<\_ACEOF
  1239. Program names:
  1240. --program-prefix=PREFIX prepend PREFIX to installed program names
  1241. --program-suffix=SUFFIX append SUFFIX to installed program names
  1242. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1243. System types:
  1244. --build=BUILD configure for building on BUILD [guessed]
  1245. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1246. _ACEOF
  1247. fi
  1248. if test -n "$ac_init_help"; then
  1249. case $ac_init_help in
  1250. short | recursive ) echo "Configuration of klish 1.5.4:";;
  1251. esac
  1252. cat <<\_ACEOF
  1253. Optional Features:
  1254. --disable-option-checking ignore unrecognized --enable/--with options
  1255. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1256. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1257. --enable-shared[=PKGS] build shared libraries [default=yes]
  1258. --enable-static[=PKGS] build static libraries [default=yes]
  1259. --enable-fast-install[=PKGS]
  1260. optimize for fast installation [default=yes]
  1261. --disable-libtool-lock avoid locking (might break parallel builds)
  1262. --disable-dependency-tracking speeds up one-time build
  1263. --enable-dependency-tracking do not reject slow dependency extractors
  1264. --enable-debug Turn on debugging including asserts [default=no]
  1265. Optional Packages:
  1266. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1267. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1268. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1269. both]
  1270. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1271. --with-sysroot=DIR Search for dependent libraries within DIR
  1272. (or the compiler's sysroot if not specified).
  1273. Some influential environment variables:
  1274. CC C compiler command
  1275. CFLAGS C compiler flags
  1276. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1277. nonstandard directory <lib dir>
  1278. LIBS libraries to pass to the linker, e.g. -l<library>
  1279. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1280. you have headers in a nonstandard directory <include dir>
  1281. CPP C preprocessor
  1282. CXX C++ compiler command
  1283. CXXFLAGS C++ compiler flags
  1284. CXXCPP C++ preprocessor
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to <serj.kalichev at gmail dot com>.
  1288. _ACEOF
  1289. ac_status=$?
  1290. fi
  1291. if test "$ac_init_help" = "recursive"; then
  1292. # If there are subdirs, report their specific --help.
  1293. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1294. test -d "$ac_dir" ||
  1295. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1296. continue
  1297. ac_builddir=.
  1298. case "$ac_dir" in
  1299. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *)
  1301. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1302. # A ".." for each directory in $ac_dir_suffix.
  1303. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1304. case $ac_top_builddir_sub in
  1305. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1306. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1307. esac ;;
  1308. esac
  1309. ac_abs_top_builddir=$ac_pwd
  1310. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1311. # for backward compatibility:
  1312. ac_top_builddir=$ac_top_build_prefix
  1313. case $srcdir in
  1314. .) # We are building in place.
  1315. ac_srcdir=.
  1316. ac_top_srcdir=$ac_top_builddir_sub
  1317. ac_abs_top_srcdir=$ac_pwd ;;
  1318. [\\/]* | ?:[\\/]* ) # Absolute name.
  1319. ac_srcdir=$srcdir$ac_dir_suffix;
  1320. ac_top_srcdir=$srcdir
  1321. ac_abs_top_srcdir=$srcdir ;;
  1322. *) # Relative name.
  1323. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1324. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1325. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1326. esac
  1327. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1328. cd "$ac_dir" || { ac_status=$?; continue; }
  1329. # Check for guested configure.
  1330. if test -f "$ac_srcdir/configure.gnu"; then
  1331. echo &&
  1332. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1333. elif test -f "$ac_srcdir/configure"; then
  1334. echo &&
  1335. $SHELL "$ac_srcdir/configure" --help=recursive
  1336. else
  1337. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1338. fi || ac_status=$?
  1339. cd "$ac_pwd" || { ac_status=$?; break; }
  1340. done
  1341. fi
  1342. test -n "$ac_init_help" && exit $ac_status
  1343. if $ac_init_version; then
  1344. cat <<\_ACEOF
  1345. klish configure 1.5.4
  1346. generated by GNU Autoconf 2.68
  1347. Copyright (C) 2010 Free Software Foundation, Inc.
  1348. This configure script is free software; the Free Software Foundation
  1349. gives unlimited permission to copy, distribute and modify it.
  1350. _ACEOF
  1351. exit
  1352. fi
  1353. ## ------------------------ ##
  1354. ## Autoconf initialization. ##
  1355. ## ------------------------ ##
  1356. # ac_fn_c_try_compile LINENO
  1357. # --------------------------
  1358. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1359. ac_fn_c_try_compile ()
  1360. {
  1361. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1362. rm -f conftest.$ac_objext
  1363. if { { ac_try="$ac_compile"
  1364. case "(($ac_try" in
  1365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1366. *) ac_try_echo=$ac_try;;
  1367. esac
  1368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1369. $as_echo "$ac_try_echo"; } >&5
  1370. (eval "$ac_compile") 2>conftest.err
  1371. ac_status=$?
  1372. if test -s conftest.err; then
  1373. grep -v '^ *+' conftest.err >conftest.er1
  1374. cat conftest.er1 >&5
  1375. mv -f conftest.er1 conftest.err
  1376. fi
  1377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1378. test $ac_status = 0; } && {
  1379. test -z "$ac_c_werror_flag" ||
  1380. test ! -s conftest.err
  1381. } && test -s conftest.$ac_objext; then :
  1382. ac_retval=0
  1383. else
  1384. $as_echo "$as_me: failed program was:" >&5
  1385. sed 's/^/| /' conftest.$ac_ext >&5
  1386. ac_retval=1
  1387. fi
  1388. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1389. as_fn_set_status $ac_retval
  1390. } # ac_fn_c_try_compile
  1391. # ac_fn_c_try_cpp LINENO
  1392. # ----------------------
  1393. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_cpp ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } > conftest.i && {
  1413. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. }; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_c_try_cpp
  1425. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1426. # -------------------------------------------------------
  1427. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1428. # the include files in INCLUDES and setting the cache variable VAR
  1429. # accordingly.
  1430. ac_fn_c_check_header_mongrel ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. if eval \${$3+:} false; then :
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1435. $as_echo_n "checking for $2... " >&6; }
  1436. if eval \${$3+:} false; then :
  1437. $as_echo_n "(cached) " >&6
  1438. fi
  1439. eval ac_res=\$$3
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1441. $as_echo "$ac_res" >&6; }
  1442. else
  1443. # Is the header compilable?
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1445. $as_echo_n "checking $2 usability... " >&6; }
  1446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1447. /* end confdefs.h. */
  1448. $4
  1449. #include <$2>
  1450. _ACEOF
  1451. if ac_fn_c_try_compile "$LINENO"; then :
  1452. ac_header_compiler=yes
  1453. else
  1454. ac_header_compiler=no
  1455. fi
  1456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1458. $as_echo "$ac_header_compiler" >&6; }
  1459. # Is the header present?
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1461. $as_echo_n "checking $2 presence... " >&6; }
  1462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1463. /* end confdefs.h. */
  1464. #include <$2>
  1465. _ACEOF
  1466. if ac_fn_c_try_cpp "$LINENO"; then :
  1467. ac_header_preproc=yes
  1468. else
  1469. ac_header_preproc=no
  1470. fi
  1471. rm -f conftest.err conftest.i conftest.$ac_ext
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1473. $as_echo "$ac_header_preproc" >&6; }
  1474. # So? What about this header?
  1475. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1476. yes:no: )
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1478. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1480. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1481. ;;
  1482. no:yes:* )
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1484. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1486. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1488. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1490. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1492. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1493. ( $as_echo "## --------------------------------------------- ##
  1494. ## Report this to serj.kalichev at gmail dot com ##
  1495. ## --------------------------------------------- ##"
  1496. ) | sed "s/^/$as_me: WARNING: /" >&2
  1497. ;;
  1498. esac
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1500. $as_echo_n "checking for $2... " >&6; }
  1501. if eval \${$3+:} false; then :
  1502. $as_echo_n "(cached) " >&6
  1503. else
  1504. eval "$3=\$ac_header_compiler"
  1505. fi
  1506. eval ac_res=\$$3
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1508. $as_echo "$ac_res" >&6; }
  1509. fi
  1510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1511. } # ac_fn_c_check_header_mongrel
  1512. # ac_fn_c_try_run LINENO
  1513. # ----------------------
  1514. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1515. # that executables *can* be run.
  1516. ac_fn_c_try_run ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. if { { ac_try="$ac_link"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_link") 2>&5
  1527. ac_status=$?
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1530. { { case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_try") 2>&5
  1537. ac_status=$?
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; }; }; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: program exited with status $ac_status" >&5
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=$ac_status
  1546. fi
  1547. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. as_fn_set_status $ac_retval
  1550. } # ac_fn_c_try_run
  1551. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1552. # -------------------------------------------------------
  1553. # Tests whether HEADER exists and can be compiled using the include files in
  1554. # INCLUDES, setting the cache variable VAR accordingly.
  1555. ac_fn_c_check_header_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if eval \${$3+:} false; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. eval "$3=yes"
  1570. else
  1571. eval "$3=no"
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. } # ac_fn_c_check_header_compile
  1580. # ac_fn_cxx_try_compile LINENO
  1581. # ----------------------------
  1582. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_cxx_try_compile ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext
  1587. if { { ac_try="$ac_compile"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_compile") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_cxx_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest.$ac_objext; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. as_fn_set_status $ac_retval
  1614. } # ac_fn_cxx_try_compile
  1615. # ac_fn_c_try_link LINENO
  1616. # -----------------------
  1617. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1618. ac_fn_c_try_link ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. rm -f conftest.$ac_objext conftest$ac_exeext
  1622. if { { ac_try="$ac_link"
  1623. case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_link") 2>conftest.err
  1630. ac_status=$?
  1631. if test -s conftest.err; then
  1632. grep -v '^ *+' conftest.err >conftest.er1
  1633. cat conftest.er1 >&5
  1634. mv -f conftest.er1 conftest.err
  1635. fi
  1636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1637. test $ac_status = 0; } && {
  1638. test -z "$ac_c_werror_flag" ||
  1639. test ! -s conftest.err
  1640. } && test -s conftest$ac_exeext && {
  1641. test "$cross_compiling" = yes ||
  1642. $as_test_x conftest$ac_exeext
  1643. }; then :
  1644. ac_retval=0
  1645. else
  1646. $as_echo "$as_me: failed program was:" >&5
  1647. sed 's/^/| /' conftest.$ac_ext >&5
  1648. ac_retval=1
  1649. fi
  1650. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1651. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1652. # interfere with the next link command; also delete a directory that is
  1653. # left behind by Apple's compiler. We do this before executing the actions.
  1654. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_link
  1658. # ac_fn_c_check_func LINENO FUNC VAR
  1659. # ----------------------------------
  1660. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1661. ac_fn_c_check_func ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1665. $as_echo_n "checking for $2... " >&6; }
  1666. if eval \${$3+:} false; then :
  1667. $as_echo_n "(cached) " >&6
  1668. else
  1669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1670. /* end confdefs.h. */
  1671. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1672. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1673. #define $2 innocuous_$2
  1674. /* System header to define __stub macros and hopefully few prototypes,
  1675. which can conflict with char $2 (); below.
  1676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1677. <limits.h> exists even on freestanding compilers. */
  1678. #ifdef __STDC__
  1679. # include <limits.h>
  1680. #else
  1681. # include <assert.h>
  1682. #endif
  1683. #undef $2
  1684. /* Override any GCC internal prototype to avoid an error.
  1685. Use char because int might match the return type of a GCC
  1686. builtin and then its argument prototype would still apply. */
  1687. #ifdef __cplusplus
  1688. extern "C"
  1689. #endif
  1690. char $2 ();
  1691. /* The GNU C library defines this for functions which it implements
  1692. to always fail with ENOSYS. Some functions are actually named
  1693. something starting with __ and the normal name is an alias. */
  1694. #if defined __stub_$2 || defined __stub___$2
  1695. choke me
  1696. #endif
  1697. int
  1698. main ()
  1699. {
  1700. return $2 ();
  1701. ;
  1702. return 0;
  1703. }
  1704. _ACEOF
  1705. if ac_fn_c_try_link "$LINENO"; then :
  1706. eval "$3=yes"
  1707. else
  1708. eval "$3=no"
  1709. fi
  1710. rm -f core conftest.err conftest.$ac_objext \
  1711. conftest$ac_exeext conftest.$ac_ext
  1712. fi
  1713. eval ac_res=\$$3
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1715. $as_echo "$ac_res" >&6; }
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. } # ac_fn_c_check_func
  1718. # ac_fn_cxx_try_cpp LINENO
  1719. # ------------------------
  1720. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1721. ac_fn_cxx_try_cpp ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1732. ac_status=$?
  1733. if test -s conftest.err; then
  1734. grep -v '^ *+' conftest.err >conftest.er1
  1735. cat conftest.er1 >&5
  1736. mv -f conftest.er1 conftest.err
  1737. fi
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } > conftest.i && {
  1740. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1741. test ! -s conftest.err
  1742. }; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=1
  1748. fi
  1749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1750. as_fn_set_status $ac_retval
  1751. } # ac_fn_cxx_try_cpp
  1752. # ac_fn_cxx_try_link LINENO
  1753. # -------------------------
  1754. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1755. ac_fn_cxx_try_link ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. rm -f conftest.$ac_objext conftest$ac_exeext
  1759. if { { ac_try="$ac_link"
  1760. case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. $as_echo "$ac_try_echo"; } >&5
  1766. (eval "$ac_link") 2>conftest.err
  1767. ac_status=$?
  1768. if test -s conftest.err; then
  1769. grep -v '^ *+' conftest.err >conftest.er1
  1770. cat conftest.er1 >&5
  1771. mv -f conftest.er1 conftest.err
  1772. fi
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && {
  1775. test -z "$ac_cxx_werror_flag" ||
  1776. test ! -s conftest.err
  1777. } && test -s conftest$ac_exeext && {
  1778. test "$cross_compiling" = yes ||
  1779. $as_test_x conftest$ac_exeext
  1780. }; then :
  1781. ac_retval=0
  1782. else
  1783. $as_echo "$as_me: failed program was:" >&5
  1784. sed 's/^/| /' conftest.$ac_ext >&5
  1785. ac_retval=1
  1786. fi
  1787. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1788. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1789. # interfere with the next link command; also delete a directory that is
  1790. # left behind by Apple's compiler. We do this before executing the actions.
  1791. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. as_fn_set_status $ac_retval
  1794. } # ac_fn_cxx_try_link
  1795. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1796. # --------------------------------------------
  1797. # Tries to find the compile-time value of EXPR in a program that includes
  1798. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1799. # computed
  1800. ac_fn_c_compute_int ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. if test "$cross_compiling" = yes; then
  1804. # Depending upon the size, compute the lo and hi bounds.
  1805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h. */
  1807. $4
  1808. int
  1809. main ()
  1810. {
  1811. static int test_array [1 - 2 * !(($2) >= 0)];
  1812. test_array [0] = 0
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"; then :
  1818. ac_lo=0 ac_mid=0
  1819. while :; do
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. int
  1824. main ()
  1825. {
  1826. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1827. test_array [0] = 0
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. if ac_fn_c_try_compile "$LINENO"; then :
  1833. ac_hi=$ac_mid; break
  1834. else
  1835. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1836. if test $ac_lo -le $ac_mid; then
  1837. ac_lo= ac_hi=
  1838. break
  1839. fi
  1840. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1843. done
  1844. else
  1845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h. */
  1847. $4
  1848. int
  1849. main ()
  1850. {
  1851. static int test_array [1 - 2 * !(($2) < 0)];
  1852. test_array [0] = 0
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_hi=-1 ac_mid=-1
  1859. while :; do
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. $4
  1863. int
  1864. main ()
  1865. {
  1866. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1867. test_array [0] = 0
  1868. ;
  1869. return 0;
  1870. }
  1871. _ACEOF
  1872. if ac_fn_c_try_compile "$LINENO"; then :
  1873. ac_lo=$ac_mid; break
  1874. else
  1875. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1876. if test $ac_mid -le $ac_hi; then
  1877. ac_lo= ac_hi=
  1878. break
  1879. fi
  1880. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1883. done
  1884. else
  1885. ac_lo= ac_hi=
  1886. fi
  1887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. # Binary search between lo and hi bounds.
  1891. while test "x$ac_lo" != "x$ac_hi"; do
  1892. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. $4
  1896. int
  1897. main ()
  1898. {
  1899. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1900. test_array [0] = 0
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. if ac_fn_c_try_compile "$LINENO"; then :
  1906. ac_hi=$ac_mid
  1907. else
  1908. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. done
  1912. case $ac_lo in #((
  1913. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1914. '') ac_retval=1 ;;
  1915. esac
  1916. else
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $4
  1920. static long int longval () { return $2; }
  1921. static unsigned long int ulongval () { return $2; }
  1922. #include <stdio.h>
  1923. #include <stdlib.h>
  1924. int
  1925. main ()
  1926. {
  1927. FILE *f = fopen ("conftest.val", "w");
  1928. if (! f)
  1929. return 1;
  1930. if (($2) < 0)
  1931. {
  1932. long int i = longval ();
  1933. if (i != ($2))
  1934. return 1;
  1935. fprintf (f, "%ld", i);
  1936. }
  1937. else
  1938. {
  1939. unsigned long int i = ulongval ();
  1940. if (i != ($2))
  1941. return 1;
  1942. fprintf (f, "%lu", i);
  1943. }
  1944. /* Do not output a trailing newline, as this causes \r\n confusion
  1945. on some platforms. */
  1946. return ferror (f) || fclose (f) != 0;
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_run "$LINENO"; then :
  1952. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1953. else
  1954. ac_retval=1
  1955. fi
  1956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1958. rm -f conftest.val
  1959. fi
  1960. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1961. as_fn_set_status $ac_retval
  1962. } # ac_fn_c_compute_int
  1963. cat >config.log <<_ACEOF
  1964. This file contains any messages produced by compilers while
  1965. running configure, to aid debugging if configure makes a mistake.
  1966. It was created by klish $as_me 1.5.4, which was
  1967. generated by GNU Autoconf 2.68. Invocation command line was
  1968. $ $0 $@
  1969. _ACEOF
  1970. exec 5>>config.log
  1971. {
  1972. cat <<_ASUNAME
  1973. ## --------- ##
  1974. ## Platform. ##
  1975. ## --------- ##
  1976. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1977. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1978. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1979. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1980. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1981. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1982. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1983. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1984. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1985. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1986. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1987. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1988. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1989. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1990. _ASUNAME
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994. IFS=$as_save_IFS
  1995. test -z "$as_dir" && as_dir=.
  1996. $as_echo "PATH: $as_dir"
  1997. done
  1998. IFS=$as_save_IFS
  1999. } >&5
  2000. cat >&5 <<_ACEOF
  2001. ## ----------- ##
  2002. ## Core tests. ##
  2003. ## ----------- ##
  2004. _ACEOF
  2005. # Keep a trace of the command line.
  2006. # Strip out --no-create and --no-recursion so they do not pile up.
  2007. # Strip out --silent because we don't want to record it for future runs.
  2008. # Also quote any args containing shell meta-characters.
  2009. # Make two passes to allow for proper duplicate-argument suppression.
  2010. ac_configure_args=
  2011. ac_configure_args0=
  2012. ac_configure_args1=
  2013. ac_must_keep_next=false
  2014. for ac_pass in 1 2
  2015. do
  2016. for ac_arg
  2017. do
  2018. case $ac_arg in
  2019. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2020. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2021. | -silent | --silent | --silen | --sile | --sil)
  2022. continue ;;
  2023. *\'*)
  2024. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2025. esac
  2026. case $ac_pass in
  2027. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2028. 2)
  2029. as_fn_append ac_configure_args1 " '$ac_arg'"
  2030. if test $ac_must_keep_next = true; then
  2031. ac_must_keep_next=false # Got value, back to normal.
  2032. else
  2033. case $ac_arg in
  2034. *=* | --config-cache | -C | -disable-* | --disable-* \
  2035. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2036. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2037. | -with-* | --with-* | -without-* | --without-* | --x)
  2038. case "$ac_configure_args0 " in
  2039. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2040. esac
  2041. ;;
  2042. -* ) ac_must_keep_next=true ;;
  2043. esac
  2044. fi
  2045. as_fn_append ac_configure_args " '$ac_arg'"
  2046. ;;
  2047. esac
  2048. done
  2049. done
  2050. { ac_configure_args0=; unset ac_configure_args0;}
  2051. { ac_configure_args1=; unset ac_configure_args1;}
  2052. # When interrupted or exit'd, cleanup temporary files, and complete
  2053. # config.log. We remove comments because anyway the quotes in there
  2054. # would cause problems or look ugly.
  2055. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2056. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2057. trap 'exit_status=$?
  2058. # Save into config.log some information that might help in debugging.
  2059. {
  2060. echo
  2061. $as_echo "## ---------------- ##
  2062. ## Cache variables. ##
  2063. ## ---------------- ##"
  2064. echo
  2065. # The following way of writing the cache mishandles newlines in values,
  2066. (
  2067. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2068. eval ac_val=\$$ac_var
  2069. case $ac_val in #(
  2070. *${as_nl}*)
  2071. case $ac_var in #(
  2072. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2073. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2074. esac
  2075. case $ac_var in #(
  2076. _ | IFS | as_nl) ;; #(
  2077. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2078. *) { eval $ac_var=; unset $ac_var;} ;;
  2079. esac ;;
  2080. esac
  2081. done
  2082. (set) 2>&1 |
  2083. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2084. *${as_nl}ac_space=\ *)
  2085. sed -n \
  2086. "s/'\''/'\''\\\\'\'''\''/g;
  2087. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2088. ;; #(
  2089. *)
  2090. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2091. ;;
  2092. esac |
  2093. sort
  2094. )
  2095. echo
  2096. $as_echo "## ----------------- ##
  2097. ## Output variables. ##
  2098. ## ----------------- ##"
  2099. echo
  2100. for ac_var in $ac_subst_vars
  2101. do
  2102. eval ac_val=\$$ac_var
  2103. case $ac_val in
  2104. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2105. esac
  2106. $as_echo "$ac_var='\''$ac_val'\''"
  2107. done | sort
  2108. echo
  2109. if test -n "$ac_subst_files"; then
  2110. $as_echo "## ------------------- ##
  2111. ## File substitutions. ##
  2112. ## ------------------- ##"
  2113. echo
  2114. for ac_var in $ac_subst_files
  2115. do
  2116. eval ac_val=\$$ac_var
  2117. case $ac_val in
  2118. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2119. esac
  2120. $as_echo "$ac_var='\''$ac_val'\''"
  2121. done | sort
  2122. echo
  2123. fi
  2124. if test -s confdefs.h; then
  2125. $as_echo "## ----------- ##
  2126. ## confdefs.h. ##
  2127. ## ----------- ##"
  2128. echo
  2129. cat confdefs.h
  2130. echo
  2131. fi
  2132. test "$ac_signal" != 0 &&
  2133. $as_echo "$as_me: caught signal $ac_signal"
  2134. $as_echo "$as_me: exit $exit_status"
  2135. } >&5
  2136. rm -f core *.core core.conftest.* &&
  2137. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2138. exit $exit_status
  2139. ' 0
  2140. for ac_signal in 1 2 13 15; do
  2141. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2142. done
  2143. ac_signal=0
  2144. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2145. rm -f -r conftest* confdefs.h
  2146. $as_echo "/* confdefs.h */" > confdefs.h
  2147. # Predefined preprocessor variables.
  2148. cat >>confdefs.h <<_ACEOF
  2149. #define PACKAGE_NAME "$PACKAGE_NAME"
  2150. _ACEOF
  2151. cat >>confdefs.h <<_ACEOF
  2152. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2153. _ACEOF
  2154. cat >>confdefs.h <<_ACEOF
  2155. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2156. _ACEOF
  2157. cat >>confdefs.h <<_ACEOF
  2158. #define PACKAGE_STRING "$PACKAGE_STRING"
  2159. _ACEOF
  2160. cat >>confdefs.h <<_ACEOF
  2161. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2162. _ACEOF
  2163. cat >>confdefs.h <<_ACEOF
  2164. #define PACKAGE_URL "$PACKAGE_URL"
  2165. _ACEOF
  2166. # Let the site file select an alternate cache file if it wants to.
  2167. # Prefer an explicitly selected file to automatically selected ones.
  2168. ac_site_file1=NONE
  2169. ac_site_file2=NONE
  2170. if test -n "$CONFIG_SITE"; then
  2171. # We do not want a PATH search for config.site.
  2172. case $CONFIG_SITE in #((
  2173. -*) ac_site_file1=./$CONFIG_SITE;;
  2174. */*) ac_site_file1=$CONFIG_SITE;;
  2175. *) ac_site_file1=./$CONFIG_SITE;;
  2176. esac
  2177. elif test "x$prefix" != xNONE; then
  2178. ac_site_file1=$prefix/share/config.site
  2179. ac_site_file2=$prefix/etc/config.site
  2180. else
  2181. ac_site_file1=$ac_default_prefix/share/config.site
  2182. ac_site_file2=$ac_default_prefix/etc/config.site
  2183. fi
  2184. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2185. do
  2186. test "x$ac_site_file" = xNONE && continue
  2187. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2189. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2190. sed 's/^/| /' "$ac_site_file" >&5
  2191. . "$ac_site_file" \
  2192. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2194. as_fn_error $? "failed to load site script $ac_site_file
  2195. See \`config.log' for more details" "$LINENO" 5; }
  2196. fi
  2197. done
  2198. if test -r "$cache_file"; then
  2199. # Some versions of bash will fail to source /dev/null (special files
  2200. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2201. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2203. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2204. case $cache_file in
  2205. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2206. *) . "./$cache_file";;
  2207. esac
  2208. fi
  2209. else
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2211. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2212. >$cache_file
  2213. fi
  2214. # Check that the precious variables saved in the cache have kept the same
  2215. # value.
  2216. ac_cache_corrupted=false
  2217. for ac_var in $ac_precious_vars; do
  2218. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2219. eval ac_new_set=\$ac_env_${ac_var}_set
  2220. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2221. eval ac_new_val=\$ac_env_${ac_var}_value
  2222. case $ac_old_set,$ac_new_set in
  2223. set,)
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2225. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2226. ac_cache_corrupted=: ;;
  2227. ,set)
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2229. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2230. ac_cache_corrupted=: ;;
  2231. ,);;
  2232. *)
  2233. if test "x$ac_old_val" != "x$ac_new_val"; then
  2234. # differences in whitespace do not lead to failure.
  2235. ac_old_val_w=`echo x $ac_old_val`
  2236. ac_new_val_w=`echo x $ac_new_val`
  2237. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2239. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2240. ac_cache_corrupted=:
  2241. else
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2243. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2244. eval $ac_var=\$ac_old_val
  2245. fi
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2247. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2249. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2250. fi;;
  2251. esac
  2252. # Pass precious variables to config.status.
  2253. if test "$ac_new_set" = set; then
  2254. case $ac_new_val in
  2255. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2256. *) ac_arg=$ac_var=$ac_new_val ;;
  2257. esac
  2258. case " $ac_configure_args " in
  2259. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2260. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2261. esac
  2262. fi
  2263. done
  2264. if $ac_cache_corrupted; then
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2268. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2269. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2270. fi
  2271. ## -------------------- ##
  2272. ## Main body of script. ##
  2273. ## -------------------- ##
  2274. ac_ext=c
  2275. ac_cpp='$CPP $CPPFLAGS'
  2276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2279. ac_aux_dir=
  2280. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2281. if test -f "$ac_dir/install-sh"; then
  2282. ac_aux_dir=$ac_dir
  2283. ac_install_sh="$ac_aux_dir/install-sh -c"
  2284. break
  2285. elif test -f "$ac_dir/install.sh"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/install.sh -c"
  2288. break
  2289. elif test -f "$ac_dir/shtool"; then
  2290. ac_aux_dir=$ac_dir
  2291. ac_install_sh="$ac_aux_dir/shtool install -c"
  2292. break
  2293. fi
  2294. done
  2295. if test -z "$ac_aux_dir"; then
  2296. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2297. fi
  2298. # These three variables are undocumented and unsupported,
  2299. # and are intended to be withdrawn in a future Autoconf release.
  2300. # They can cause serious problems if a builder's source tree is in a directory
  2301. # whose full name contains unusual characters.
  2302. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2303. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2304. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2305. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2306. ac_ext=c
  2307. ac_cpp='$CPP $CPPFLAGS'
  2308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2311. if test -n "$ac_tool_prefix"; then
  2312. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2313. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2315. $as_echo_n "checking for $ac_word... " >&6; }
  2316. if ${ac_cv_prog_CC+:} false; then :
  2317. $as_echo_n "(cached) " >&6
  2318. else
  2319. if test -n "$CC"; then
  2320. ac_cv_prog_CC="$CC" # Let the user override the test.
  2321. else
  2322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2323. for as_dir in $PATH
  2324. do
  2325. IFS=$as_save_IFS
  2326. test -z "$as_dir" && as_dir=.
  2327. for ac_exec_ext in '' $ac_executable_extensions; do
  2328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2329. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2331. break 2
  2332. fi
  2333. done
  2334. done
  2335. IFS=$as_save_IFS
  2336. fi
  2337. fi
  2338. CC=$ac_cv_prog_CC
  2339. if test -n "$CC"; then
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2341. $as_echo "$CC" >&6; }
  2342. else
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2344. $as_echo "no" >&6; }
  2345. fi
  2346. fi
  2347. if test -z "$ac_cv_prog_CC"; then
  2348. ac_ct_CC=$CC
  2349. # Extract the first word of "gcc", so it can be a program name with args.
  2350. set dummy gcc; ac_word=$2
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2352. $as_echo_n "checking for $ac_word... " >&6; }
  2353. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2354. $as_echo_n "(cached) " >&6
  2355. else
  2356. if test -n "$ac_ct_CC"; then
  2357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2358. else
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. test -z "$as_dir" && as_dir=.
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2366. ac_cv_prog_ac_ct_CC="gcc"
  2367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. fi
  2374. fi
  2375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2376. if test -n "$ac_ct_CC"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2378. $as_echo "$ac_ct_CC" >&6; }
  2379. else
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2381. $as_echo "no" >&6; }
  2382. fi
  2383. if test "x$ac_ct_CC" = x; then
  2384. CC=""
  2385. else
  2386. case $cross_compiling:$ac_tool_warned in
  2387. yes:)
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2390. ac_tool_warned=yes ;;
  2391. esac
  2392. CC=$ac_ct_CC
  2393. fi
  2394. else
  2395. CC="$ac_cv_prog_CC"
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2400. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2402. $as_echo_n "checking for $ac_word... " >&6; }
  2403. if ${ac_cv_prog_CC+:} false; then :
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. if test -n "$CC"; then
  2407. ac_cv_prog_CC="$CC" # Let the user override the test.
  2408. else
  2409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2410. for as_dir in $PATH
  2411. do
  2412. IFS=$as_save_IFS
  2413. test -z "$as_dir" && as_dir=.
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2416. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2418. break 2
  2419. fi
  2420. done
  2421. done
  2422. IFS=$as_save_IFS
  2423. fi
  2424. fi
  2425. CC=$ac_cv_prog_CC
  2426. if test -n "$CC"; then
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2428. $as_echo "$CC" >&6; }
  2429. else
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2431. $as_echo "no" >&6; }
  2432. fi
  2433. fi
  2434. fi
  2435. if test -z "$CC"; then
  2436. # Extract the first word of "cc", so it can be a program name with args.
  2437. set dummy cc; ac_word=$2
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2439. $as_echo_n "checking for $ac_word... " >&6; }
  2440. if ${ac_cv_prog_CC+:} false; then :
  2441. $as_echo_n "(cached) " >&6
  2442. else
  2443. if test -n "$CC"; then
  2444. ac_cv_prog_CC="$CC" # Let the user override the test.
  2445. else
  2446. ac_prog_rejected=no
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2454. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2455. ac_prog_rejected=yes
  2456. continue
  2457. fi
  2458. ac_cv_prog_CC="cc"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. if test $ac_prog_rejected = yes; then
  2466. # We found a bogon in the path, so make sure we never use it.
  2467. set dummy $ac_cv_prog_CC
  2468. shift
  2469. if test $# != 0; then
  2470. # We chose a different compiler from the bogus one.
  2471. # However, it has the same basename, so the bogon will be chosen
  2472. # first if we set CC to just the basename; use the full file name.
  2473. shift
  2474. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2475. fi
  2476. fi
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. fi
  2488. if test -z "$CC"; then
  2489. if test -n "$ac_tool_prefix"; then
  2490. for ac_prog in cl.exe
  2491. do
  2492. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2493. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2495. $as_echo_n "checking for $ac_word... " >&6; }
  2496. if ${ac_cv_prog_CC+:} false; then :
  2497. $as_echo_n "(cached) " >&6
  2498. else
  2499. if test -n "$CC"; then
  2500. ac_cv_prog_CC="$CC" # Let the user override the test.
  2501. else
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511. break 2
  2512. fi
  2513. done
  2514. done
  2515. IFS=$as_save_IFS
  2516. fi
  2517. fi
  2518. CC=$ac_cv_prog_CC
  2519. if test -n "$CC"; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2521. $as_echo "$CC" >&6; }
  2522. else
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2524. $as_echo "no" >&6; }
  2525. fi
  2526. test -n "$CC" && break
  2527. done
  2528. fi
  2529. if test -z "$CC"; then
  2530. ac_ct_CC=$CC
  2531. for ac_prog in cl.exe
  2532. do
  2533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2534. set dummy $ac_prog; ac_word=$2
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2536. $as_echo_n "checking for $ac_word... " >&6; }
  2537. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. if test -n "$ac_ct_CC"; then
  2541. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2542. else
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_exec_ext in '' $ac_executable_extensions; do
  2549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2550. ac_cv_prog_ac_ct_CC="$ac_prog"
  2551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2552. break 2
  2553. fi
  2554. done
  2555. done
  2556. IFS=$as_save_IFS
  2557. fi
  2558. fi
  2559. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2560. if test -n "$ac_ct_CC"; then
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2562. $as_echo "$ac_ct_CC" >&6; }
  2563. else
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2565. $as_echo "no" >&6; }
  2566. fi
  2567. test -n "$ac_ct_CC" && break
  2568. done
  2569. if test "x$ac_ct_CC" = x; then
  2570. CC=""
  2571. else
  2572. case $cross_compiling:$ac_tool_warned in
  2573. yes:)
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2576. ac_tool_warned=yes ;;
  2577. esac
  2578. CC=$ac_ct_CC
  2579. fi
  2580. fi
  2581. fi
  2582. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2584. as_fn_error $? "no acceptable C compiler found in \$PATH
  2585. See \`config.log' for more details" "$LINENO" 5; }
  2586. # Provide some information about the compiler.
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2588. set X $ac_compile
  2589. ac_compiler=$2
  2590. for ac_option in --version -v -V -qversion; do
  2591. { { ac_try="$ac_compiler $ac_option >&5"
  2592. case "(($ac_try" in
  2593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2594. *) ac_try_echo=$ac_try;;
  2595. esac
  2596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2597. $as_echo "$ac_try_echo"; } >&5
  2598. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2599. ac_status=$?
  2600. if test -s conftest.err; then
  2601. sed '10a\
  2602. ... rest of stderr output deleted ...
  2603. 10q' conftest.err >conftest.er1
  2604. cat conftest.er1 >&5
  2605. fi
  2606. rm -f conftest.er1 conftest.err
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2608. test $ac_status = 0; }
  2609. done
  2610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2611. /* end confdefs.h. */
  2612. int
  2613. main ()
  2614. {
  2615. ;
  2616. return 0;
  2617. }
  2618. _ACEOF
  2619. ac_clean_files_save=$ac_clean_files
  2620. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2621. # Try to create an executable without -o first, disregard a.out.
  2622. # It will help us diagnose broken compilers, and finding out an intuition
  2623. # of exeext.
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2625. $as_echo_n "checking whether the C compiler works... " >&6; }
  2626. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2627. # The possible output files:
  2628. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2629. ac_rmfiles=
  2630. for ac_file in $ac_files
  2631. do
  2632. case $ac_file in
  2633. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2634. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2635. esac
  2636. done
  2637. rm -f $ac_rmfiles
  2638. if { { ac_try="$ac_link_default"
  2639. case "(($ac_try" in
  2640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2641. *) ac_try_echo=$ac_try;;
  2642. esac
  2643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2644. $as_echo "$ac_try_echo"; } >&5
  2645. (eval "$ac_link_default") 2>&5
  2646. ac_status=$?
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2648. test $ac_status = 0; }; then :
  2649. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2650. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2651. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2652. # so that the user can short-circuit this test for compilers unknown to
  2653. # Autoconf.
  2654. for ac_file in $ac_files ''
  2655. do
  2656. test -f "$ac_file" || continue
  2657. case $ac_file in
  2658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2659. ;;
  2660. [ab].out )
  2661. # We found the default executable, but exeext='' is most
  2662. # certainly right.
  2663. break;;
  2664. *.* )
  2665. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2666. then :; else
  2667. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2668. fi
  2669. # We set ac_cv_exeext here because the later test for it is not
  2670. # safe: cross compilers may not add the suffix if given an `-o'
  2671. # argument, so we may need to know it at that point already.
  2672. # Even if this section looks crufty: it has the advantage of
  2673. # actually working.
  2674. break;;
  2675. * )
  2676. break;;
  2677. esac
  2678. done
  2679. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2680. else
  2681. ac_file=''
  2682. fi
  2683. if test -z "$ac_file"; then :
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2685. $as_echo "no" >&6; }
  2686. $as_echo "$as_me: failed program was:" >&5
  2687. sed 's/^/| /' conftest.$ac_ext >&5
  2688. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2689. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2690. as_fn_error 77 "C compiler cannot create executables
  2691. See \`config.log' for more details" "$LINENO" 5; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2694. $as_echo "yes" >&6; }
  2695. fi
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2697. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2699. $as_echo "$ac_file" >&6; }
  2700. ac_exeext=$ac_cv_exeext
  2701. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2702. ac_clean_files=$ac_clean_files_save
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2704. $as_echo_n "checking for suffix of executables... " >&6; }
  2705. if { { ac_try="$ac_link"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2711. $as_echo "$ac_try_echo"; } >&5
  2712. (eval "$ac_link") 2>&5
  2713. ac_status=$?
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2715. test $ac_status = 0; }; then :
  2716. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2717. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2718. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2719. # `rm'.
  2720. for ac_file in conftest.exe conftest conftest.*; do
  2721. test -f "$ac_file" || continue
  2722. case $ac_file in
  2723. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2724. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2725. break;;
  2726. * ) break;;
  2727. esac
  2728. done
  2729. else
  2730. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2731. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2732. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2733. See \`config.log' for more details" "$LINENO" 5; }
  2734. fi
  2735. rm -f conftest conftest$ac_cv_exeext
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2737. $as_echo "$ac_cv_exeext" >&6; }
  2738. rm -f conftest.$ac_ext
  2739. EXEEXT=$ac_cv_exeext
  2740. ac_exeext=$EXEEXT
  2741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2742. /* end confdefs.h. */
  2743. #include <stdio.h>
  2744. int
  2745. main ()
  2746. {
  2747. FILE *f = fopen ("conftest.out", "w");
  2748. return ferror (f) || fclose (f) != 0;
  2749. ;
  2750. return 0;
  2751. }
  2752. _ACEOF
  2753. ac_clean_files="$ac_clean_files conftest.out"
  2754. # Check that the compiler produces executables we can run. If not, either
  2755. # the compiler is broken, or we cross compile.
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2757. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2758. if test "$cross_compiling" != yes; then
  2759. { { ac_try="$ac_link"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2765. $as_echo "$ac_try_echo"; } >&5
  2766. (eval "$ac_link") 2>&5
  2767. ac_status=$?
  2768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2769. test $ac_status = 0; }
  2770. if { ac_try='./conftest$ac_cv_exeext'
  2771. { { case "(($ac_try" in
  2772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2773. *) ac_try_echo=$ac_try;;
  2774. esac
  2775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2776. $as_echo "$ac_try_echo"; } >&5
  2777. (eval "$ac_try") 2>&5
  2778. ac_status=$?
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2780. test $ac_status = 0; }; }; then
  2781. cross_compiling=no
  2782. else
  2783. if test "$cross_compiling" = maybe; then
  2784. cross_compiling=yes
  2785. else
  2786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2788. as_fn_error $? "cannot run C compiled programs.
  2789. If you meant to cross compile, use \`--host'.
  2790. See \`config.log' for more details" "$LINENO" 5; }
  2791. fi
  2792. fi
  2793. fi
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2795. $as_echo "$cross_compiling" >&6; }
  2796. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2797. ac_clean_files=$ac_clean_files_save
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2799. $as_echo_n "checking for suffix of object files... " >&6; }
  2800. if ${ac_cv_objext+:} false; then :
  2801. $as_echo_n "(cached) " >&6
  2802. else
  2803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. rm -f conftest.o conftest.obj
  2813. if { { ac_try="$ac_compile"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_compile") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }; then :
  2824. for ac_file in conftest.o conftest.obj conftest.*; do
  2825. test -f "$ac_file" || continue;
  2826. case $ac_file in
  2827. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2828. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2829. break;;
  2830. esac
  2831. done
  2832. else
  2833. $as_echo "$as_me: failed program was:" >&5
  2834. sed 's/^/| /' conftest.$ac_ext >&5
  2835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2838. See \`config.log' for more details" "$LINENO" 5; }
  2839. fi
  2840. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2843. $as_echo "$ac_cv_objext" >&6; }
  2844. OBJEXT=$ac_cv_objext
  2845. ac_objext=$OBJEXT
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2847. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2848. if ${ac_cv_c_compiler_gnu+:} false; then :
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2852. /* end confdefs.h. */
  2853. int
  2854. main ()
  2855. {
  2856. #ifndef __GNUC__
  2857. choke me
  2858. #endif
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. if ac_fn_c_try_compile "$LINENO"; then :
  2864. ac_compiler_gnu=yes
  2865. else
  2866. ac_compiler_gnu=no
  2867. fi
  2868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2869. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2870. fi
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2872. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2873. if test $ac_compiler_gnu = yes; then
  2874. GCC=yes
  2875. else
  2876. GCC=
  2877. fi
  2878. ac_test_CFLAGS=${CFLAGS+set}
  2879. ac_save_CFLAGS=$CFLAGS
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2881. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2882. if ${ac_cv_prog_cc_g+:} false; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. ac_save_c_werror_flag=$ac_c_werror_flag
  2886. ac_c_werror_flag=yes
  2887. ac_cv_prog_cc_g=no
  2888. CFLAGS="-g"
  2889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. if ac_fn_c_try_compile "$LINENO"; then :
  2899. ac_cv_prog_cc_g=yes
  2900. else
  2901. CFLAGS=""
  2902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. ;
  2908. return 0;
  2909. }
  2910. _ACEOF
  2911. if ac_fn_c_try_compile "$LINENO"; then :
  2912. else
  2913. ac_c_werror_flag=$ac_save_c_werror_flag
  2914. CFLAGS="-g"
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. int
  2918. main ()
  2919. {
  2920. ;
  2921. return 0;
  2922. }
  2923. _ACEOF
  2924. if ac_fn_c_try_compile "$LINENO"; then :
  2925. ac_cv_prog_cc_g=yes
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. fi
  2929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2930. fi
  2931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2932. ac_c_werror_flag=$ac_save_c_werror_flag
  2933. fi
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2935. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2936. if test "$ac_test_CFLAGS" = set; then
  2937. CFLAGS=$ac_save_CFLAGS
  2938. elif test $ac_cv_prog_cc_g = yes; then
  2939. if test "$GCC" = yes; then
  2940. CFLAGS="-g -O2"
  2941. else
  2942. CFLAGS="-g"
  2943. fi
  2944. else
  2945. if test "$GCC" = yes; then
  2946. CFLAGS="-O2"
  2947. else
  2948. CFLAGS=
  2949. fi
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2952. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2953. if ${ac_cv_prog_cc_c89+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. ac_cv_prog_cc_c89=no
  2957. ac_save_CC=$CC
  2958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2959. /* end confdefs.h. */
  2960. #include <stdarg.h>
  2961. #include <stdio.h>
  2962. #include <sys/types.h>
  2963. #include <sys/stat.h>
  2964. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2965. struct buf { int x; };
  2966. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2967. static char *e (p, i)
  2968. char **p;
  2969. int i;
  2970. {
  2971. return p[i];
  2972. }
  2973. static char *f (char * (*g) (char **, int), char **p, ...)
  2974. {
  2975. char *s;
  2976. va_list v;
  2977. va_start (v,p);
  2978. s = g (p, va_arg (v,int));
  2979. va_end (v);
  2980. return s;
  2981. }
  2982. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2983. function prototypes and stuff, but not '\xHH' hex character constants.
  2984. These don't provoke an error unfortunately, instead are silently treated
  2985. as 'x'. The following induces an error, until -std is added to get
  2986. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2987. array size at least. It's necessary to write '\x00'==0 to get something
  2988. that's true only with -std. */
  2989. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2990. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2991. inside strings and character constants. */
  2992. #define FOO(x) 'x'
  2993. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2994. int test (int i, double x);
  2995. struct s1 {int (*f) (int a);};
  2996. struct s2 {int (*f) (double a);};
  2997. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2998. int argc;
  2999. char **argv;
  3000. int
  3001. main ()
  3002. {
  3003. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3009. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3010. do
  3011. CC="$ac_save_CC $ac_arg"
  3012. if ac_fn_c_try_compile "$LINENO"; then :
  3013. ac_cv_prog_cc_c89=$ac_arg
  3014. fi
  3015. rm -f core conftest.err conftest.$ac_objext
  3016. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3017. done
  3018. rm -f conftest.$ac_ext
  3019. CC=$ac_save_CC
  3020. fi
  3021. # AC_CACHE_VAL
  3022. case "x$ac_cv_prog_cc_c89" in
  3023. x)
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3025. $as_echo "none needed" >&6; } ;;
  3026. xno)
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3028. $as_echo "unsupported" >&6; } ;;
  3029. *)
  3030. CC="$CC $ac_cv_prog_cc_c89"
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3032. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3033. esac
  3034. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3035. fi
  3036. ac_ext=c
  3037. ac_cpp='$CPP $CPPFLAGS'
  3038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3041. ac_ext=c
  3042. ac_cpp='$CPP $CPPFLAGS'
  3043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3047. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3048. # On Suns, sometimes $CPP names a directory.
  3049. if test -n "$CPP" && test -d "$CPP"; then
  3050. CPP=
  3051. fi
  3052. if test -z "$CPP"; then
  3053. if ${ac_cv_prog_CPP+:} false; then :
  3054. $as_echo_n "(cached) " >&6
  3055. else
  3056. # Double quotes because CPP needs to be expanded
  3057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3058. do
  3059. ac_preproc_ok=false
  3060. for ac_c_preproc_warn_flag in '' yes
  3061. do
  3062. # Use a header file that comes with gcc, so configuring glibc
  3063. # with a fresh cross-compiler works.
  3064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3065. # <limits.h> exists even on freestanding compilers.
  3066. # On the NeXT, cc -E runs the code through the compiler's parser,
  3067. # not just through cpp. "Syntax error" is here to catch this case.
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. #ifdef __STDC__
  3071. # include <limits.h>
  3072. #else
  3073. # include <assert.h>
  3074. #endif
  3075. Syntax error
  3076. _ACEOF
  3077. if ac_fn_c_try_cpp "$LINENO"; then :
  3078. else
  3079. # Broken: fails on valid input.
  3080. continue
  3081. fi
  3082. rm -f conftest.err conftest.i conftest.$ac_ext
  3083. # OK, works on sane cases. Now check whether nonexistent headers
  3084. # can be detected and how.
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h. */
  3087. #include <ac_nonexistent.h>
  3088. _ACEOF
  3089. if ac_fn_c_try_cpp "$LINENO"; then :
  3090. # Broken: success on invalid input.
  3091. continue
  3092. else
  3093. # Passes both tests.
  3094. ac_preproc_ok=:
  3095. break
  3096. fi
  3097. rm -f conftest.err conftest.i conftest.$ac_ext
  3098. done
  3099. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3100. rm -f conftest.i conftest.err conftest.$ac_ext
  3101. if $ac_preproc_ok; then :
  3102. break
  3103. fi
  3104. done
  3105. ac_cv_prog_CPP=$CPP
  3106. fi
  3107. CPP=$ac_cv_prog_CPP
  3108. else
  3109. ac_cv_prog_CPP=$CPP
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3112. $as_echo "$CPP" >&6; }
  3113. ac_preproc_ok=false
  3114. for ac_c_preproc_warn_flag in '' yes
  3115. do
  3116. # Use a header file that comes with gcc, so configuring glibc
  3117. # with a fresh cross-compiler works.
  3118. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3119. # <limits.h> exists even on freestanding compilers.
  3120. # On the NeXT, cc -E runs the code through the compiler's parser,
  3121. # not just through cpp. "Syntax error" is here to catch this case.
  3122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end confdefs.h. */
  3124. #ifdef __STDC__
  3125. # include <limits.h>
  3126. #else
  3127. # include <assert.h>
  3128. #endif
  3129. Syntax error
  3130. _ACEOF
  3131. if ac_fn_c_try_cpp "$LINENO"; then :
  3132. else
  3133. # Broken: fails on valid input.
  3134. continue
  3135. fi
  3136. rm -f conftest.err conftest.i conftest.$ac_ext
  3137. # OK, works on sane cases. Now check whether nonexistent headers
  3138. # can be detected and how.
  3139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3140. /* end confdefs.h. */
  3141. #include <ac_nonexistent.h>
  3142. _ACEOF
  3143. if ac_fn_c_try_cpp "$LINENO"; then :
  3144. # Broken: success on invalid input.
  3145. continue
  3146. else
  3147. # Passes both tests.
  3148. ac_preproc_ok=:
  3149. break
  3150. fi
  3151. rm -f conftest.err conftest.i conftest.$ac_ext
  3152. done
  3153. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3154. rm -f conftest.i conftest.err conftest.$ac_ext
  3155. if $ac_preproc_ok; then :
  3156. else
  3157. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3160. See \`config.log' for more details" "$LINENO" 5; }
  3161. fi
  3162. ac_ext=c
  3163. ac_cpp='$CPP $CPPFLAGS'
  3164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3168. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3169. if ${ac_cv_path_GREP+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -z "$GREP"; then
  3173. ac_path_GREP_found=false
  3174. # Loop through the user's path and test for each of PROGNAME-LIST
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_prog in grep ggrep; do
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3183. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3184. # Check for GNU ac_path_GREP and select it if it is found.
  3185. # Check for GNU $ac_path_GREP
  3186. case `"$ac_path_GREP" --version 2>&1` in
  3187. *GNU*)
  3188. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3189. *)
  3190. ac_count=0
  3191. $as_echo_n 0123456789 >"conftest.in"
  3192. while :
  3193. do
  3194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3195. mv "conftest.tmp" "conftest.in"
  3196. cp "conftest.in" "conftest.nl"
  3197. $as_echo 'GREP' >> "conftest.nl"
  3198. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3201. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3202. # Best one so far, save it but keep looking for a better one
  3203. ac_cv_path_GREP="$ac_path_GREP"
  3204. ac_path_GREP_max=$ac_count
  3205. fi
  3206. # 10*(2^10) chars as input seems more than enough
  3207. test $ac_count -gt 10 && break
  3208. done
  3209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3210. esac
  3211. $ac_path_GREP_found && break 3
  3212. done
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. if test -z "$ac_cv_path_GREP"; then
  3217. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3218. fi
  3219. else
  3220. ac_cv_path_GREP=$GREP
  3221. fi
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3224. $as_echo "$ac_cv_path_GREP" >&6; }
  3225. GREP="$ac_cv_path_GREP"
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3227. $as_echo_n "checking for egrep... " >&6; }
  3228. if ${ac_cv_path_EGREP+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3232. then ac_cv_path_EGREP="$GREP -E"
  3233. else
  3234. if test -z "$EGREP"; then
  3235. ac_path_EGREP_found=false
  3236. # Loop through the user's path and test for each of PROGNAME-LIST
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_prog in egrep; do
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3245. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3246. # Check for GNU ac_path_EGREP and select it if it is found.
  3247. # Check for GNU $ac_path_EGREP
  3248. case `"$ac_path_EGREP" --version 2>&1` in
  3249. *GNU*)
  3250. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3251. *)
  3252. ac_count=0
  3253. $as_echo_n 0123456789 >"conftest.in"
  3254. while :
  3255. do
  3256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3257. mv "conftest.tmp" "conftest.in"
  3258. cp "conftest.in" "conftest.nl"
  3259. $as_echo 'EGREP' >> "conftest.nl"
  3260. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3263. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3264. # Best one so far, save it but keep looking for a better one
  3265. ac_cv_path_EGREP="$ac_path_EGREP"
  3266. ac_path_EGREP_max=$ac_count
  3267. fi
  3268. # 10*(2^10) chars as input seems more than enough
  3269. test $ac_count -gt 10 && break
  3270. done
  3271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3272. esac
  3273. $ac_path_EGREP_found && break 3
  3274. done
  3275. done
  3276. done
  3277. IFS=$as_save_IFS
  3278. if test -z "$ac_cv_path_EGREP"; then
  3279. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3280. fi
  3281. else
  3282. ac_cv_path_EGREP=$EGREP
  3283. fi
  3284. fi
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3287. $as_echo "$ac_cv_path_EGREP" >&6; }
  3288. EGREP="$ac_cv_path_EGREP"
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3290. $as_echo_n "checking for ANSI C header files... " >&6; }
  3291. if ${ac_cv_header_stdc+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3295. /* end confdefs.h. */
  3296. #include <stdlib.h>
  3297. #include <stdarg.h>
  3298. #include <string.h>
  3299. #include <float.h>
  3300. int
  3301. main ()
  3302. {
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. if ac_fn_c_try_compile "$LINENO"; then :
  3308. ac_cv_header_stdc=yes
  3309. else
  3310. ac_cv_header_stdc=no
  3311. fi
  3312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3313. if test $ac_cv_header_stdc = yes; then
  3314. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. #include <string.h>
  3318. _ACEOF
  3319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3320. $EGREP "memchr" >/dev/null 2>&1; then :
  3321. else
  3322. ac_cv_header_stdc=no
  3323. fi
  3324. rm -f conftest*
  3325. fi
  3326. if test $ac_cv_header_stdc = yes; then
  3327. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdlib.h>
  3331. _ACEOF
  3332. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3333. $EGREP "free" >/dev/null 2>&1; then :
  3334. else
  3335. ac_cv_header_stdc=no
  3336. fi
  3337. rm -f conftest*
  3338. fi
  3339. if test $ac_cv_header_stdc = yes; then
  3340. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3341. if test "$cross_compiling" = yes; then :
  3342. :
  3343. else
  3344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3345. /* end confdefs.h. */
  3346. #include <ctype.h>
  3347. #include <stdlib.h>
  3348. #if ((' ' & 0x0FF) == 0x020)
  3349. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3350. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3351. #else
  3352. # define ISLOWER(c) \
  3353. (('a' <= (c) && (c) <= 'i') \
  3354. || ('j' <= (c) && (c) <= 'r') \
  3355. || ('s' <= (c) && (c) <= 'z'))
  3356. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3357. #endif
  3358. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3359. int
  3360. main ()
  3361. {
  3362. int i;
  3363. for (i = 0; i < 256; i++)
  3364. if (XOR (islower (i), ISLOWER (i))
  3365. || toupper (i) != TOUPPER (i))
  3366. return 2;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_run "$LINENO"; then :
  3371. else
  3372. ac_cv_header_stdc=no
  3373. fi
  3374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3376. fi
  3377. fi
  3378. fi
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3380. $as_echo "$ac_cv_header_stdc" >&6; }
  3381. if test $ac_cv_header_stdc = yes; then
  3382. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3383. fi
  3384. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3385. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3386. inttypes.h stdint.h unistd.h
  3387. do :
  3388. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3389. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3390. "
  3391. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3392. cat >>confdefs.h <<_ACEOF
  3393. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3394. _ACEOF
  3395. fi
  3396. done
  3397. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3398. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3399. MINIX=yes
  3400. else
  3401. MINIX=
  3402. fi
  3403. if test "$MINIX" = yes; then
  3404. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3405. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3406. $as_echo "#define _MINIX 1" >>confdefs.h
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3409. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3410. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. # define __EXTENSIONS__ 1
  3416. $ac_includes_default
  3417. int
  3418. main ()
  3419. {
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. ac_cv_safe_to_define___extensions__=yes
  3426. else
  3427. ac_cv_safe_to_define___extensions__=no
  3428. fi
  3429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3432. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3433. test $ac_cv_safe_to_define___extensions__ = yes &&
  3434. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3435. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3436. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3437. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3438. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3439. # Checks for programs.
  3440. ac_ext=c
  3441. ac_cpp='$CPP $CPPFLAGS'
  3442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3445. if test -n "$ac_tool_prefix"; then
  3446. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3447. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3449. $as_echo_n "checking for $ac_word... " >&6; }
  3450. if ${ac_cv_prog_CC+:} false; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. if test -n "$CC"; then
  3454. ac_cv_prog_CC="$CC" # Let the user override the test.
  3455. else
  3456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3457. for as_dir in $PATH
  3458. do
  3459. IFS=$as_save_IFS
  3460. test -z "$as_dir" && as_dir=.
  3461. for ac_exec_ext in '' $ac_executable_extensions; do
  3462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3463. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3465. break 2
  3466. fi
  3467. done
  3468. done
  3469. IFS=$as_save_IFS
  3470. fi
  3471. fi
  3472. CC=$ac_cv_prog_CC
  3473. if test -n "$CC"; then
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3475. $as_echo "$CC" >&6; }
  3476. else
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3478. $as_echo "no" >&6; }
  3479. fi
  3480. fi
  3481. if test -z "$ac_cv_prog_CC"; then
  3482. ac_ct_CC=$CC
  3483. # Extract the first word of "gcc", so it can be a program name with args.
  3484. set dummy gcc; ac_word=$2
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3486. $as_echo_n "checking for $ac_word... " >&6; }
  3487. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. if test -n "$ac_ct_CC"; then
  3491. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3492. else
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3500. ac_cv_prog_ac_ct_CC="gcc"
  3501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. fi
  3508. fi
  3509. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3510. if test -n "$ac_ct_CC"; then
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3512. $as_echo "$ac_ct_CC" >&6; }
  3513. else
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3515. $as_echo "no" >&6; }
  3516. fi
  3517. if test "x$ac_ct_CC" = x; then
  3518. CC=""
  3519. else
  3520. case $cross_compiling:$ac_tool_warned in
  3521. yes:)
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3524. ac_tool_warned=yes ;;
  3525. esac
  3526. CC=$ac_ct_CC
  3527. fi
  3528. else
  3529. CC="$ac_cv_prog_CC"
  3530. fi
  3531. if test -z "$CC"; then
  3532. if test -n "$ac_tool_prefix"; then
  3533. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3534. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if ${ac_cv_prog_CC+:} false; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if test -n "$CC"; then
  3541. ac_cv_prog_CC="$CC" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3550. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. fi
  3558. fi
  3559. CC=$ac_cv_prog_CC
  3560. if test -n "$CC"; then
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3562. $as_echo "$CC" >&6; }
  3563. else
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. fi
  3568. fi
  3569. if test -z "$CC"; then
  3570. # Extract the first word of "cc", so it can be a program name with args.
  3571. set dummy cc; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if ${ac_cv_prog_CC+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -n "$CC"; then
  3578. ac_cv_prog_CC="$CC" # Let the user override the test.
  3579. else
  3580. ac_prog_rejected=no
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. test -z "$as_dir" && as_dir=.
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3588. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3589. ac_prog_rejected=yes
  3590. continue
  3591. fi
  3592. ac_cv_prog_CC="cc"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. if test $ac_prog_rejected = yes; then
  3600. # We found a bogon in the path, so make sure we never use it.
  3601. set dummy $ac_cv_prog_CC
  3602. shift
  3603. if test $# != 0; then
  3604. # We chose a different compiler from the bogus one.
  3605. # However, it has the same basename, so the bogon will be chosen
  3606. # first if we set CC to just the basename; use the full file name.
  3607. shift
  3608. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3609. fi
  3610. fi
  3611. fi
  3612. fi
  3613. CC=$ac_cv_prog_CC
  3614. if test -n "$CC"; then
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3616. $as_echo "$CC" >&6; }
  3617. else
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. fi
  3621. fi
  3622. if test -z "$CC"; then
  3623. if test -n "$ac_tool_prefix"; then
  3624. for ac_prog in cl.exe
  3625. do
  3626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3629. $as_echo_n "checking for $ac_word... " >&6; }
  3630. if ${ac_cv_prog_CC+:} false; then :
  3631. $as_echo_n "(cached) " >&6
  3632. else
  3633. if test -n "$CC"; then
  3634. ac_cv_prog_CC="$CC" # Let the user override the test.
  3635. else
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3643. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3645. break 2
  3646. fi
  3647. done
  3648. done
  3649. IFS=$as_save_IFS
  3650. fi
  3651. fi
  3652. CC=$ac_cv_prog_CC
  3653. if test -n "$CC"; then
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3655. $as_echo "$CC" >&6; }
  3656. else
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3658. $as_echo "no" >&6; }
  3659. fi
  3660. test -n "$CC" && break
  3661. done
  3662. fi
  3663. if test -z "$CC"; then
  3664. ac_ct_CC=$CC
  3665. for ac_prog in cl.exe
  3666. do
  3667. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3668. set dummy $ac_prog; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$ac_ct_CC"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3684. ac_cv_prog_ac_ct_CC="$ac_prog"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3694. if test -n "$ac_ct_CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3696. $as_echo "$ac_ct_CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. test -n "$ac_ct_CC" && break
  3702. done
  3703. if test "x$ac_ct_CC" = x; then
  3704. CC=""
  3705. else
  3706. case $cross_compiling:$ac_tool_warned in
  3707. yes:)
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3710. ac_tool_warned=yes ;;
  3711. esac
  3712. CC=$ac_ct_CC
  3713. fi
  3714. fi
  3715. fi
  3716. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3718. as_fn_error $? "no acceptable C compiler found in \$PATH
  3719. See \`config.log' for more details" "$LINENO" 5; }
  3720. # Provide some information about the compiler.
  3721. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3722. set X $ac_compile
  3723. ac_compiler=$2
  3724. for ac_option in --version -v -V -qversion; do
  3725. { { ac_try="$ac_compiler $ac_option >&5"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. $as_echo "$ac_try_echo"; } >&5
  3732. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3733. ac_status=$?
  3734. if test -s conftest.err; then
  3735. sed '10a\
  3736. ... rest of stderr output deleted ...
  3737. 10q' conftest.err >conftest.er1
  3738. cat conftest.er1 >&5
  3739. fi
  3740. rm -f conftest.er1 conftest.err
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3742. test $ac_status = 0; }
  3743. done
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3745. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3746. if ${ac_cv_c_compiler_gnu+:} false; then :
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. int
  3752. main ()
  3753. {
  3754. #ifndef __GNUC__
  3755. choke me
  3756. #endif
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. if ac_fn_c_try_compile "$LINENO"; then :
  3762. ac_compiler_gnu=yes
  3763. else
  3764. ac_compiler_gnu=no
  3765. fi
  3766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3767. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3768. fi
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3770. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3771. if test $ac_compiler_gnu = yes; then
  3772. GCC=yes
  3773. else
  3774. GCC=
  3775. fi
  3776. ac_test_CFLAGS=${CFLAGS+set}
  3777. ac_save_CFLAGS=$CFLAGS
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3779. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3780. if ${ac_cv_prog_cc_g+:} false; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. ac_save_c_werror_flag=$ac_c_werror_flag
  3784. ac_c_werror_flag=yes
  3785. ac_cv_prog_cc_g=no
  3786. CFLAGS="-g"
  3787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3788. /* end confdefs.h. */
  3789. int
  3790. main ()
  3791. {
  3792. ;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. if ac_fn_c_try_compile "$LINENO"; then :
  3797. ac_cv_prog_cc_g=yes
  3798. else
  3799. CFLAGS=""
  3800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3801. /* end confdefs.h. */
  3802. int
  3803. main ()
  3804. {
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. if ac_fn_c_try_compile "$LINENO"; then :
  3810. else
  3811. ac_c_werror_flag=$ac_save_c_werror_flag
  3812. CFLAGS="-g"
  3813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3814. /* end confdefs.h. */
  3815. int
  3816. main ()
  3817. {
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. if ac_fn_c_try_compile "$LINENO"; then :
  3823. ac_cv_prog_cc_g=yes
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3826. fi
  3827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3828. fi
  3829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3830. ac_c_werror_flag=$ac_save_c_werror_flag
  3831. fi
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3833. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3834. if test "$ac_test_CFLAGS" = set; then
  3835. CFLAGS=$ac_save_CFLAGS
  3836. elif test $ac_cv_prog_cc_g = yes; then
  3837. if test "$GCC" = yes; then
  3838. CFLAGS="-g -O2"
  3839. else
  3840. CFLAGS="-g"
  3841. fi
  3842. else
  3843. if test "$GCC" = yes; then
  3844. CFLAGS="-O2"
  3845. else
  3846. CFLAGS=
  3847. fi
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3850. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3851. if ${ac_cv_prog_cc_c89+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. ac_cv_prog_cc_c89=no
  3855. ac_save_CC=$CC
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. #include <stdarg.h>
  3859. #include <stdio.h>
  3860. #include <sys/types.h>
  3861. #include <sys/stat.h>
  3862. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3863. struct buf { int x; };
  3864. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3865. static char *e (p, i)
  3866. char **p;
  3867. int i;
  3868. {
  3869. return p[i];
  3870. }
  3871. static char *f (char * (*g) (char **, int), char **p, ...)
  3872. {
  3873. char *s;
  3874. va_list v;
  3875. va_start (v,p);
  3876. s = g (p, va_arg (v,int));
  3877. va_end (v);
  3878. return s;
  3879. }
  3880. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3881. function prototypes and stuff, but not '\xHH' hex character constants.
  3882. These don't provoke an error unfortunately, instead are silently treated
  3883. as 'x'. The following induces an error, until -std is added to get
  3884. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3885. array size at least. It's necessary to write '\x00'==0 to get something
  3886. that's true only with -std. */
  3887. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3888. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3889. inside strings and character constants. */
  3890. #define FOO(x) 'x'
  3891. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3892. int test (int i, double x);
  3893. struct s1 {int (*f) (int a);};
  3894. struct s2 {int (*f) (double a);};
  3895. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3896. int argc;
  3897. char **argv;
  3898. int
  3899. main ()
  3900. {
  3901. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3907. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3908. do
  3909. CC="$ac_save_CC $ac_arg"
  3910. if ac_fn_c_try_compile "$LINENO"; then :
  3911. ac_cv_prog_cc_c89=$ac_arg
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext
  3914. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3915. done
  3916. rm -f conftest.$ac_ext
  3917. CC=$ac_save_CC
  3918. fi
  3919. # AC_CACHE_VAL
  3920. case "x$ac_cv_prog_cc_c89" in
  3921. x)
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3923. $as_echo "none needed" >&6; } ;;
  3924. xno)
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3926. $as_echo "unsupported" >&6; } ;;
  3927. *)
  3928. CC="$CC $ac_cv_prog_cc_c89"
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3930. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3931. esac
  3932. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3933. fi
  3934. ac_ext=c
  3935. ac_cpp='$CPP $CPPFLAGS'
  3936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3939. ac_ext=cpp
  3940. ac_cpp='$CXXCPP $CPPFLAGS'
  3941. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3944. if test -z "$CXX"; then
  3945. if test -n "$CCC"; then
  3946. CXX=$CCC
  3947. else
  3948. if test -n "$ac_tool_prefix"; then
  3949. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3950. do
  3951. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3952. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3954. $as_echo_n "checking for $ac_word... " >&6; }
  3955. if ${ac_cv_prog_CXX+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. if test -n "$CXX"; then
  3959. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3960. else
  3961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3962. for as_dir in $PATH
  3963. do
  3964. IFS=$as_save_IFS
  3965. test -z "$as_dir" && as_dir=.
  3966. for ac_exec_ext in '' $ac_executable_extensions; do
  3967. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3968. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3970. break 2
  3971. fi
  3972. done
  3973. done
  3974. IFS=$as_save_IFS
  3975. fi
  3976. fi
  3977. CXX=$ac_cv_prog_CXX
  3978. if test -n "$CXX"; then
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3980. $as_echo "$CXX" >&6; }
  3981. else
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3983. $as_echo "no" >&6; }
  3984. fi
  3985. test -n "$CXX" && break
  3986. done
  3987. fi
  3988. if test -z "$CXX"; then
  3989. ac_ct_CXX=$CXX
  3990. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3991. do
  3992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3993. set dummy $ac_prog; ac_word=$2
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3995. $as_echo_n "checking for $ac_word... " >&6; }
  3996. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if test -n "$ac_ct_CXX"; then
  4000. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4001. else
  4002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4003. for as_dir in $PATH
  4004. do
  4005. IFS=$as_save_IFS
  4006. test -z "$as_dir" && as_dir=.
  4007. for ac_exec_ext in '' $ac_executable_extensions; do
  4008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4009. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4011. break 2
  4012. fi
  4013. done
  4014. done
  4015. IFS=$as_save_IFS
  4016. fi
  4017. fi
  4018. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4019. if test -n "$ac_ct_CXX"; then
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4021. $as_echo "$ac_ct_CXX" >&6; }
  4022. else
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4024. $as_echo "no" >&6; }
  4025. fi
  4026. test -n "$ac_ct_CXX" && break
  4027. done
  4028. if test "x$ac_ct_CXX" = x; then
  4029. CXX="g++"
  4030. else
  4031. case $cross_compiling:$ac_tool_warned in
  4032. yes:)
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4035. ac_tool_warned=yes ;;
  4036. esac
  4037. CXX=$ac_ct_CXX
  4038. fi
  4039. fi
  4040. fi
  4041. fi
  4042. # Provide some information about the compiler.
  4043. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4044. set X $ac_compile
  4045. ac_compiler=$2
  4046. for ac_option in --version -v -V -qversion; do
  4047. { { ac_try="$ac_compiler $ac_option >&5"
  4048. case "(($ac_try" in
  4049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4050. *) ac_try_echo=$ac_try;;
  4051. esac
  4052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4053. $as_echo "$ac_try_echo"; } >&5
  4054. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4055. ac_status=$?
  4056. if test -s conftest.err; then
  4057. sed '10a\
  4058. ... rest of stderr output deleted ...
  4059. 10q' conftest.err >conftest.er1
  4060. cat conftest.er1 >&5
  4061. fi
  4062. rm -f conftest.er1 conftest.err
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4064. test $ac_status = 0; }
  4065. done
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4067. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4068. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. int
  4074. main ()
  4075. {
  4076. #ifndef __GNUC__
  4077. choke me
  4078. #endif
  4079. ;
  4080. return 0;
  4081. }
  4082. _ACEOF
  4083. if ac_fn_cxx_try_compile "$LINENO"; then :
  4084. ac_compiler_gnu=yes
  4085. else
  4086. ac_compiler_gnu=no
  4087. fi
  4088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4089. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4092. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4093. if test $ac_compiler_gnu = yes; then
  4094. GXX=yes
  4095. else
  4096. GXX=
  4097. fi
  4098. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4099. ac_save_CXXFLAGS=$CXXFLAGS
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4101. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4102. if ${ac_cv_prog_cxx_g+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4106. ac_cxx_werror_flag=yes
  4107. ac_cv_prog_cxx_g=no
  4108. CXXFLAGS="-g"
  4109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4110. /* end confdefs.h. */
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. if ac_fn_cxx_try_compile "$LINENO"; then :
  4119. ac_cv_prog_cxx_g=yes
  4120. else
  4121. CXXFLAGS=""
  4122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4123. /* end confdefs.h. */
  4124. int
  4125. main ()
  4126. {
  4127. ;
  4128. return 0;
  4129. }
  4130. _ACEOF
  4131. if ac_fn_cxx_try_compile "$LINENO"; then :
  4132. else
  4133. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4134. CXXFLAGS="-g"
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int
  4138. main ()
  4139. {
  4140. ;
  4141. return 0;
  4142. }
  4143. _ACEOF
  4144. if ac_fn_cxx_try_compile "$LINENO"; then :
  4145. ac_cv_prog_cxx_g=yes
  4146. fi
  4147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4148. fi
  4149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4150. fi
  4151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4153. fi
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4155. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4156. if test "$ac_test_CXXFLAGS" = set; then
  4157. CXXFLAGS=$ac_save_CXXFLAGS
  4158. elif test $ac_cv_prog_cxx_g = yes; then
  4159. if test "$GXX" = yes; then
  4160. CXXFLAGS="-g -O2"
  4161. else
  4162. CXXFLAGS="-g"
  4163. fi
  4164. else
  4165. if test "$GXX" = yes; then
  4166. CXXFLAGS="-O2"
  4167. else
  4168. CXXFLAGS=
  4169. fi
  4170. fi
  4171. ac_ext=c
  4172. ac_cpp='$CPP $CPPFLAGS'
  4173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4176. # Make sure we can run config.sub.
  4177. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4178. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4180. $as_echo_n "checking build system type... " >&6; }
  4181. if ${ac_cv_build+:} false; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. ac_build_alias=$build_alias
  4185. test "x$ac_build_alias" = x &&
  4186. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4187. test "x$ac_build_alias" = x &&
  4188. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4189. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4190. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4193. $as_echo "$ac_cv_build" >&6; }
  4194. case $ac_cv_build in
  4195. *-*-*) ;;
  4196. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4197. esac
  4198. build=$ac_cv_build
  4199. ac_save_IFS=$IFS; IFS='-'
  4200. set x $ac_cv_build
  4201. shift
  4202. build_cpu=$1
  4203. build_vendor=$2
  4204. shift; shift
  4205. # Remember, the first character of IFS is used to create $*,
  4206. # except with old shells:
  4207. build_os=$*
  4208. IFS=$ac_save_IFS
  4209. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4211. $as_echo_n "checking host system type... " >&6; }
  4212. if ${ac_cv_host+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test "x$host_alias" = x; then
  4216. ac_cv_host=$ac_cv_build
  4217. else
  4218. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4219. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4220. fi
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4223. $as_echo "$ac_cv_host" >&6; }
  4224. case $ac_cv_host in
  4225. *-*-*) ;;
  4226. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4227. esac
  4228. host=$ac_cv_host
  4229. ac_save_IFS=$IFS; IFS='-'
  4230. set x $ac_cv_host
  4231. shift
  4232. host_cpu=$1
  4233. host_vendor=$2
  4234. shift; shift
  4235. # Remember, the first character of IFS is used to create $*,
  4236. # except with old shells:
  4237. host_os=$*
  4238. IFS=$ac_save_IFS
  4239. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4240. enable_win32_dll=yes
  4241. case $host in
  4242. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4243. if test -n "$ac_tool_prefix"; then
  4244. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4245. set dummy ${ac_tool_prefix}as; ac_word=$2
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4247. $as_echo_n "checking for $ac_word... " >&6; }
  4248. if ${ac_cv_prog_AS+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. if test -n "$AS"; then
  4252. ac_cv_prog_AS="$AS" # Let the user override the test.
  4253. else
  4254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4255. for as_dir in $PATH
  4256. do
  4257. IFS=$as_save_IFS
  4258. test -z "$as_dir" && as_dir=.
  4259. for ac_exec_ext in '' $ac_executable_extensions; do
  4260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4261. ac_cv_prog_AS="${ac_tool_prefix}as"
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4263. break 2
  4264. fi
  4265. done
  4266. done
  4267. IFS=$as_save_IFS
  4268. fi
  4269. fi
  4270. AS=$ac_cv_prog_AS
  4271. if test -n "$AS"; then
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4273. $as_echo "$AS" >&6; }
  4274. else
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4276. $as_echo "no" >&6; }
  4277. fi
  4278. fi
  4279. if test -z "$ac_cv_prog_AS"; then
  4280. ac_ct_AS=$AS
  4281. # Extract the first word of "as", so it can be a program name with args.
  4282. set dummy as; ac_word=$2
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4284. $as_echo_n "checking for $ac_word... " >&6; }
  4285. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. if test -n "$ac_ct_AS"; then
  4289. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4290. else
  4291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4292. for as_dir in $PATH
  4293. do
  4294. IFS=$as_save_IFS
  4295. test -z "$as_dir" && as_dir=.
  4296. for ac_exec_ext in '' $ac_executable_extensions; do
  4297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4298. ac_cv_prog_ac_ct_AS="as"
  4299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4300. break 2
  4301. fi
  4302. done
  4303. done
  4304. IFS=$as_save_IFS
  4305. fi
  4306. fi
  4307. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4308. if test -n "$ac_ct_AS"; then
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4310. $as_echo "$ac_ct_AS" >&6; }
  4311. else
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4313. $as_echo "no" >&6; }
  4314. fi
  4315. if test "x$ac_ct_AS" = x; then
  4316. AS="false"
  4317. else
  4318. case $cross_compiling:$ac_tool_warned in
  4319. yes:)
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4322. ac_tool_warned=yes ;;
  4323. esac
  4324. AS=$ac_ct_AS
  4325. fi
  4326. else
  4327. AS="$ac_cv_prog_AS"
  4328. fi
  4329. if test -n "$ac_tool_prefix"; then
  4330. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4331. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4333. $as_echo_n "checking for $ac_word... " >&6; }
  4334. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4335. $as_echo_n "(cached) " >&6
  4336. else
  4337. if test -n "$DLLTOOL"; then
  4338. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4339. else
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH
  4342. do
  4343. IFS=$as_save_IFS
  4344. test -z "$as_dir" && as_dir=.
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4347. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4349. break 2
  4350. fi
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. fi
  4355. fi
  4356. DLLTOOL=$ac_cv_prog_DLLTOOL
  4357. if test -n "$DLLTOOL"; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4359. $as_echo "$DLLTOOL" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4362. $as_echo "no" >&6; }
  4363. fi
  4364. fi
  4365. if test -z "$ac_cv_prog_DLLTOOL"; then
  4366. ac_ct_DLLTOOL=$DLLTOOL
  4367. # Extract the first word of "dlltool", so it can be a program name with args.
  4368. set dummy dlltool; ac_word=$2
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4370. $as_echo_n "checking for $ac_word... " >&6; }
  4371. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. if test -n "$ac_ct_DLLTOOL"; then
  4375. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4376. else
  4377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4378. for as_dir in $PATH
  4379. do
  4380. IFS=$as_save_IFS
  4381. test -z "$as_dir" && as_dir=.
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4384. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4386. break 2
  4387. fi
  4388. done
  4389. done
  4390. IFS=$as_save_IFS
  4391. fi
  4392. fi
  4393. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4394. if test -n "$ac_ct_DLLTOOL"; then
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4396. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4397. else
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4399. $as_echo "no" >&6; }
  4400. fi
  4401. if test "x$ac_ct_DLLTOOL" = x; then
  4402. DLLTOOL="false"
  4403. else
  4404. case $cross_compiling:$ac_tool_warned in
  4405. yes:)
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4408. ac_tool_warned=yes ;;
  4409. esac
  4410. DLLTOOL=$ac_ct_DLLTOOL
  4411. fi
  4412. else
  4413. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4414. fi
  4415. if test -n "$ac_tool_prefix"; then
  4416. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4417. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4419. $as_echo_n "checking for $ac_word... " >&6; }
  4420. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. if test -n "$OBJDUMP"; then
  4424. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4425. else
  4426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4427. for as_dir in $PATH
  4428. do
  4429. IFS=$as_save_IFS
  4430. test -z "$as_dir" && as_dir=.
  4431. for ac_exec_ext in '' $ac_executable_extensions; do
  4432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4433. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4435. break 2
  4436. fi
  4437. done
  4438. done
  4439. IFS=$as_save_IFS
  4440. fi
  4441. fi
  4442. OBJDUMP=$ac_cv_prog_OBJDUMP
  4443. if test -n "$OBJDUMP"; then
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4445. $as_echo "$OBJDUMP" >&6; }
  4446. else
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4448. $as_echo "no" >&6; }
  4449. fi
  4450. fi
  4451. if test -z "$ac_cv_prog_OBJDUMP"; then
  4452. ac_ct_OBJDUMP=$OBJDUMP
  4453. # Extract the first word of "objdump", so it can be a program name with args.
  4454. set dummy objdump; ac_word=$2
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4456. $as_echo_n "checking for $ac_word... " >&6; }
  4457. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4458. $as_echo_n "(cached) " >&6
  4459. else
  4460. if test -n "$ac_ct_OBJDUMP"; then
  4461. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4462. else
  4463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4464. for as_dir in $PATH
  4465. do
  4466. IFS=$as_save_IFS
  4467. test -z "$as_dir" && as_dir=.
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4470. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4472. break 2
  4473. fi
  4474. done
  4475. done
  4476. IFS=$as_save_IFS
  4477. fi
  4478. fi
  4479. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4480. if test -n "$ac_ct_OBJDUMP"; then
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4482. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4483. else
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4485. $as_echo "no" >&6; }
  4486. fi
  4487. if test "x$ac_ct_OBJDUMP" = x; then
  4488. OBJDUMP="false"
  4489. else
  4490. case $cross_compiling:$ac_tool_warned in
  4491. yes:)
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4494. ac_tool_warned=yes ;;
  4495. esac
  4496. OBJDUMP=$ac_ct_OBJDUMP
  4497. fi
  4498. else
  4499. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4500. fi
  4501. ;;
  4502. esac
  4503. test -z "$AS" && AS=as
  4504. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4505. test -z "$OBJDUMP" && OBJDUMP=objdump
  4506. case `pwd` in
  4507. *\ * | *\ *)
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4509. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4510. esac
  4511. macro_version='2.4.2'
  4512. macro_revision='1.3337'
  4513. ltmain="$ac_aux_dir/ltmain.sh"
  4514. # Backslashify metacharacters that are still active within
  4515. # double-quoted strings.
  4516. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4517. # Same as above, but do not quote variable references.
  4518. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4519. # Sed substitution to delay expansion of an escaped shell variable in a
  4520. # double_quote_subst'ed string.
  4521. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4522. # Sed substitution to delay expansion of an escaped single quote.
  4523. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4524. # Sed substitution to avoid accidental globbing in evaled expressions
  4525. no_glob_subst='s/\*/\\\*/g'
  4526. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4527. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4528. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4530. $as_echo_n "checking how to print strings... " >&6; }
  4531. # Test print first, because it will be a builtin if present.
  4532. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4533. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4534. ECHO='print -r --'
  4535. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4536. ECHO='printf %s\n'
  4537. else
  4538. # Use this function as a fallback that always works.
  4539. func_fallback_echo ()
  4540. {
  4541. eval 'cat <<_LTECHO_EOF
  4542. $1
  4543. _LTECHO_EOF'
  4544. }
  4545. ECHO='func_fallback_echo'
  4546. fi
  4547. # func_echo_all arg...
  4548. # Invoke $ECHO with all args, space-separated.
  4549. func_echo_all ()
  4550. {
  4551. $ECHO ""
  4552. }
  4553. case "$ECHO" in
  4554. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4555. $as_echo "printf" >&6; } ;;
  4556. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4557. $as_echo "print -r" >&6; } ;;
  4558. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4559. $as_echo "cat" >&6; } ;;
  4560. esac
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4562. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4563. if ${ac_cv_path_SED+:} false; then :
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4567. for ac_i in 1 2 3 4 5 6 7; do
  4568. ac_script="$ac_script$as_nl$ac_script"
  4569. done
  4570. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4571. { ac_script=; unset ac_script;}
  4572. if test -z "$SED"; then
  4573. ac_path_SED_found=false
  4574. # Loop through the user's path and test for each of PROGNAME-LIST
  4575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4576. for as_dir in $PATH
  4577. do
  4578. IFS=$as_save_IFS
  4579. test -z "$as_dir" && as_dir=.
  4580. for ac_prog in sed gsed; do
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4583. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4584. # Check for GNU ac_path_SED and select it if it is found.
  4585. # Check for GNU $ac_path_SED
  4586. case `"$ac_path_SED" --version 2>&1` in
  4587. *GNU*)
  4588. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4589. *)
  4590. ac_count=0
  4591. $as_echo_n 0123456789 >"conftest.in"
  4592. while :
  4593. do
  4594. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4595. mv "conftest.tmp" "conftest.in"
  4596. cp "conftest.in" "conftest.nl"
  4597. $as_echo '' >> "conftest.nl"
  4598. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4600. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4601. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4602. # Best one so far, save it but keep looking for a better one
  4603. ac_cv_path_SED="$ac_path_SED"
  4604. ac_path_SED_max=$ac_count
  4605. fi
  4606. # 10*(2^10) chars as input seems more than enough
  4607. test $ac_count -gt 10 && break
  4608. done
  4609. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4610. esac
  4611. $ac_path_SED_found && break 3
  4612. done
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. if test -z "$ac_cv_path_SED"; then
  4617. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4618. fi
  4619. else
  4620. ac_cv_path_SED=$SED
  4621. fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4624. $as_echo "$ac_cv_path_SED" >&6; }
  4625. SED="$ac_cv_path_SED"
  4626. rm -f conftest.sed
  4627. test -z "$SED" && SED=sed
  4628. Xsed="$SED -e 1s/^X//"
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4630. $as_echo_n "checking for fgrep... " >&6; }
  4631. if ${ac_cv_path_FGREP+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4635. then ac_cv_path_FGREP="$GREP -F"
  4636. else
  4637. if test -z "$FGREP"; then
  4638. ac_path_FGREP_found=false
  4639. # Loop through the user's path and test for each of PROGNAME-LIST
  4640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4642. do
  4643. IFS=$as_save_IFS
  4644. test -z "$as_dir" && as_dir=.
  4645. for ac_prog in fgrep; do
  4646. for ac_exec_ext in '' $ac_executable_extensions; do
  4647. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4648. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4649. # Check for GNU ac_path_FGREP and select it if it is found.
  4650. # Check for GNU $ac_path_FGREP
  4651. case `"$ac_path_FGREP" --version 2>&1` in
  4652. *GNU*)
  4653. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4654. *)
  4655. ac_count=0
  4656. $as_echo_n 0123456789 >"conftest.in"
  4657. while :
  4658. do
  4659. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4660. mv "conftest.tmp" "conftest.in"
  4661. cp "conftest.in" "conftest.nl"
  4662. $as_echo 'FGREP' >> "conftest.nl"
  4663. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4664. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4665. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4666. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4667. # Best one so far, save it but keep looking for a better one
  4668. ac_cv_path_FGREP="$ac_path_FGREP"
  4669. ac_path_FGREP_max=$ac_count
  4670. fi
  4671. # 10*(2^10) chars as input seems more than enough
  4672. test $ac_count -gt 10 && break
  4673. done
  4674. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4675. esac
  4676. $ac_path_FGREP_found && break 3
  4677. done
  4678. done
  4679. done
  4680. IFS=$as_save_IFS
  4681. if test -z "$ac_cv_path_FGREP"; then
  4682. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4683. fi
  4684. else
  4685. ac_cv_path_FGREP=$FGREP
  4686. fi
  4687. fi
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4690. $as_echo "$ac_cv_path_FGREP" >&6; }
  4691. FGREP="$ac_cv_path_FGREP"
  4692. test -z "$GREP" && GREP=grep
  4693. # Check whether --with-gnu-ld was given.
  4694. if test "${with_gnu_ld+set}" = set; then :
  4695. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4696. else
  4697. with_gnu_ld=no
  4698. fi
  4699. ac_prog=ld
  4700. if test "$GCC" = yes; then
  4701. # Check if gcc -print-prog-name=ld gives a path.
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4703. $as_echo_n "checking for ld used by $CC... " >&6; }
  4704. case $host in
  4705. *-*-mingw*)
  4706. # gcc leaves a trailing carriage return which upsets mingw
  4707. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4708. *)
  4709. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4710. esac
  4711. case $ac_prog in
  4712. # Accept absolute paths.
  4713. [\\/]* | ?:[\\/]*)
  4714. re_direlt='/[^/][^/]*/\.\./'
  4715. # Canonicalize the pathname of ld
  4716. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4717. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4718. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4719. done
  4720. test -z "$LD" && LD="$ac_prog"
  4721. ;;
  4722. "")
  4723. # If it fails, then pretend we aren't using GCC.
  4724. ac_prog=ld
  4725. ;;
  4726. *)
  4727. # If it is relative, then search for the first ld in PATH.
  4728. with_gnu_ld=unknown
  4729. ;;
  4730. esac
  4731. elif test "$with_gnu_ld" = yes; then
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4733. $as_echo_n "checking for GNU ld... " >&6; }
  4734. else
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4736. $as_echo_n "checking for non-GNU ld... " >&6; }
  4737. fi
  4738. if ${lt_cv_path_LD+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -z "$LD"; then
  4742. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4743. for ac_dir in $PATH; do
  4744. IFS="$lt_save_ifs"
  4745. test -z "$ac_dir" && ac_dir=.
  4746. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4747. lt_cv_path_LD="$ac_dir/$ac_prog"
  4748. # Check to see if the program is GNU ld. I'd rather use --version,
  4749. # but apparently some variants of GNU ld only accept -v.
  4750. # Break only if it was the GNU/non-GNU ld that we prefer.
  4751. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4752. *GNU* | *'with BFD'*)
  4753. test "$with_gnu_ld" != no && break
  4754. ;;
  4755. *)
  4756. test "$with_gnu_ld" != yes && break
  4757. ;;
  4758. esac
  4759. fi
  4760. done
  4761. IFS="$lt_save_ifs"
  4762. else
  4763. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4764. fi
  4765. fi
  4766. LD="$lt_cv_path_LD"
  4767. if test -n "$LD"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4769. $as_echo "$LD" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4776. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4777. if ${lt_cv_prog_gnu_ld+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4781. case `$LD -v 2>&1 </dev/null` in
  4782. *GNU* | *'with BFD'*)
  4783. lt_cv_prog_gnu_ld=yes
  4784. ;;
  4785. *)
  4786. lt_cv_prog_gnu_ld=no
  4787. ;;
  4788. esac
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4791. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4792. with_gnu_ld=$lt_cv_prog_gnu_ld
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4794. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4795. if ${lt_cv_path_NM+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$NM"; then
  4799. # Let the user override the test.
  4800. lt_cv_path_NM="$NM"
  4801. else
  4802. lt_nm_to_check="${ac_tool_prefix}nm"
  4803. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4804. lt_nm_to_check="$lt_nm_to_check nm"
  4805. fi
  4806. for lt_tmp_nm in $lt_nm_to_check; do
  4807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4808. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4809. IFS="$lt_save_ifs"
  4810. test -z "$ac_dir" && ac_dir=.
  4811. tmp_nm="$ac_dir/$lt_tmp_nm"
  4812. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4813. # Check to see if the nm accepts a BSD-compat flag.
  4814. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4815. # nm: unknown option "B" ignored
  4816. # Tru64's nm complains that /dev/null is an invalid object file
  4817. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4818. */dev/null* | *'Invalid file or object type'*)
  4819. lt_cv_path_NM="$tmp_nm -B"
  4820. break
  4821. ;;
  4822. *)
  4823. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4824. */dev/null*)
  4825. lt_cv_path_NM="$tmp_nm -p"
  4826. break
  4827. ;;
  4828. *)
  4829. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4830. continue # so that we can try to find one that supports BSD flags
  4831. ;;
  4832. esac
  4833. ;;
  4834. esac
  4835. fi
  4836. done
  4837. IFS="$lt_save_ifs"
  4838. done
  4839. : ${lt_cv_path_NM=no}
  4840. fi
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4843. $as_echo "$lt_cv_path_NM" >&6; }
  4844. if test "$lt_cv_path_NM" != "no"; then
  4845. NM="$lt_cv_path_NM"
  4846. else
  4847. # Didn't find any BSD compatible name lister, look for dumpbin.
  4848. if test -n "$DUMPBIN"; then :
  4849. # Let the user override the test.
  4850. else
  4851. if test -n "$ac_tool_prefix"; then
  4852. for ac_prog in dumpbin "link -dump"
  4853. do
  4854. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4855. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4857. $as_echo_n "checking for $ac_word... " >&6; }
  4858. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -n "$DUMPBIN"; then
  4862. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4863. else
  4864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4865. for as_dir in $PATH
  4866. do
  4867. IFS=$as_save_IFS
  4868. test -z "$as_dir" && as_dir=.
  4869. for ac_exec_ext in '' $ac_executable_extensions; do
  4870. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4871. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4873. break 2
  4874. fi
  4875. done
  4876. done
  4877. IFS=$as_save_IFS
  4878. fi
  4879. fi
  4880. DUMPBIN=$ac_cv_prog_DUMPBIN
  4881. if test -n "$DUMPBIN"; then
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4883. $as_echo "$DUMPBIN" >&6; }
  4884. else
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4886. $as_echo "no" >&6; }
  4887. fi
  4888. test -n "$DUMPBIN" && break
  4889. done
  4890. fi
  4891. if test -z "$DUMPBIN"; then
  4892. ac_ct_DUMPBIN=$DUMPBIN
  4893. for ac_prog in dumpbin "link -dump"
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$ac_ct_DUMPBIN"; then
  4903. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4912. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4922. if test -n "$ac_ct_DUMPBIN"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4924. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$ac_ct_DUMPBIN" && break
  4930. done
  4931. if test "x$ac_ct_DUMPBIN" = x; then
  4932. DUMPBIN=":"
  4933. else
  4934. case $cross_compiling:$ac_tool_warned in
  4935. yes:)
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4938. ac_tool_warned=yes ;;
  4939. esac
  4940. DUMPBIN=$ac_ct_DUMPBIN
  4941. fi
  4942. fi
  4943. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4944. *COFF*)
  4945. DUMPBIN="$DUMPBIN -symbols"
  4946. ;;
  4947. *)
  4948. DUMPBIN=:
  4949. ;;
  4950. esac
  4951. fi
  4952. if test "$DUMPBIN" != ":"; then
  4953. NM="$DUMPBIN"
  4954. fi
  4955. fi
  4956. test -z "$NM" && NM=nm
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4958. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4959. if ${lt_cv_nm_interface+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. lt_cv_nm_interface="BSD nm"
  4963. echo "int some_variable = 0;" > conftest.$ac_ext
  4964. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4965. (eval "$ac_compile" 2>conftest.err)
  4966. cat conftest.err >&5
  4967. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4968. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4969. cat conftest.err >&5
  4970. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4971. cat conftest.out >&5
  4972. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4973. lt_cv_nm_interface="MS dumpbin"
  4974. fi
  4975. rm -f conftest*
  4976. fi
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4978. $as_echo "$lt_cv_nm_interface" >&6; }
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4980. $as_echo_n "checking whether ln -s works... " >&6; }
  4981. LN_S=$as_ln_s
  4982. if test "$LN_S" = "ln -s"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4984. $as_echo "yes" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4987. $as_echo "no, using $LN_S" >&6; }
  4988. fi
  4989. # find the maximum length of command line arguments
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4991. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4992. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. i=0
  4996. teststring="ABCD"
  4997. case $build_os in
  4998. msdosdjgpp*)
  4999. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5000. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5001. # during glob expansion). Even if it were fixed, the result of this
  5002. # check would be larger than it should be.
  5003. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5004. ;;
  5005. gnu*)
  5006. # Under GNU Hurd, this test is not required because there is
  5007. # no limit to the length of command line arguments.
  5008. # Libtool will interpret -1 as no limit whatsoever
  5009. lt_cv_sys_max_cmd_len=-1;
  5010. ;;
  5011. cygwin* | mingw* | cegcc*)
  5012. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5013. # about 5 minutes as the teststring grows exponentially.
  5014. # Worse, since 9x/ME are not pre-emptively multitasking,
  5015. # you end up with a "frozen" computer, even though with patience
  5016. # the test eventually succeeds (with a max line length of 256k).
  5017. # Instead, let's just punt: use the minimum linelength reported by
  5018. # all of the supported platforms: 8192 (on NT/2K/XP).
  5019. lt_cv_sys_max_cmd_len=8192;
  5020. ;;
  5021. mint*)
  5022. # On MiNT this can take a long time and run out of memory.
  5023. lt_cv_sys_max_cmd_len=8192;
  5024. ;;
  5025. amigaos*)
  5026. # On AmigaOS with pdksh, this test takes hours, literally.
  5027. # So we just punt and use a minimum line length of 8192.
  5028. lt_cv_sys_max_cmd_len=8192;
  5029. ;;
  5030. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5031. # This has been around since 386BSD, at least. Likely further.
  5032. if test -x /sbin/sysctl; then
  5033. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5034. elif test -x /usr/sbin/sysctl; then
  5035. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5036. else
  5037. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5038. fi
  5039. # And add a safety zone
  5040. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5041. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5042. ;;
  5043. interix*)
  5044. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5045. lt_cv_sys_max_cmd_len=196608
  5046. ;;
  5047. os2*)
  5048. # The test takes a long time on OS/2.
  5049. lt_cv_sys_max_cmd_len=8192
  5050. ;;
  5051. osf*)
  5052. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5053. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5054. # nice to cause kernel panics so lets avoid the loop below.
  5055. # First set a reasonable default.
  5056. lt_cv_sys_max_cmd_len=16384
  5057. #
  5058. if test -x /sbin/sysconfig; then
  5059. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5060. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5061. esac
  5062. fi
  5063. ;;
  5064. sco3.2v5*)
  5065. lt_cv_sys_max_cmd_len=102400
  5066. ;;
  5067. sysv5* | sco5v6* | sysv4.2uw2*)
  5068. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5069. if test -n "$kargmax"; then
  5070. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5071. else
  5072. lt_cv_sys_max_cmd_len=32768
  5073. fi
  5074. ;;
  5075. *)
  5076. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5077. if test -n "$lt_cv_sys_max_cmd_len"; then
  5078. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5079. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5080. else
  5081. # Make teststring a little bigger before we do anything with it.
  5082. # a 1K string should be a reasonable start.
  5083. for i in 1 2 3 4 5 6 7 8 ; do
  5084. teststring=$teststring$teststring
  5085. done
  5086. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5087. # If test is not a shell built-in, we'll probably end up computing a
  5088. # maximum length that is only half of the actual maximum length, but
  5089. # we can't tell.
  5090. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5091. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5092. test $i != 17 # 1/2 MB should be enough
  5093. do
  5094. i=`expr $i + 1`
  5095. teststring=$teststring$teststring
  5096. done
  5097. # Only check the string length outside the loop.
  5098. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5099. teststring=
  5100. # Add a significant safety factor because C++ compilers can tack on
  5101. # massive amounts of additional arguments before passing them to the
  5102. # linker. It appears as though 1/2 is a usable value.
  5103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5104. fi
  5105. ;;
  5106. esac
  5107. fi
  5108. if test -n $lt_cv_sys_max_cmd_len ; then
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5110. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5111. else
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5113. $as_echo "none" >&6; }
  5114. fi
  5115. max_cmd_len=$lt_cv_sys_max_cmd_len
  5116. : ${CP="cp -f"}
  5117. : ${MV="mv -f"}
  5118. : ${RM="rm -f"}
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5120. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5121. # Try some XSI features
  5122. xsi_shell=no
  5123. ( _lt_dummy="a/b/c"
  5124. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5125. = c,a/b,b/c, \
  5126. && eval 'test $(( 1 + 1 )) -eq 2 \
  5127. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5128. && xsi_shell=yes
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5130. $as_echo "$xsi_shell" >&6; }
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5132. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5133. lt_shell_append=no
  5134. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5135. >/dev/null 2>&1 \
  5136. && lt_shell_append=yes
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5138. $as_echo "$lt_shell_append" >&6; }
  5139. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5140. lt_unset=unset
  5141. else
  5142. lt_unset=false
  5143. fi
  5144. # test EBCDIC or ASCII
  5145. case `echo X|tr X '\101'` in
  5146. A) # ASCII based system
  5147. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5148. lt_SP2NL='tr \040 \012'
  5149. lt_NL2SP='tr \015\012 \040\040'
  5150. ;;
  5151. *) # EBCDIC based system
  5152. lt_SP2NL='tr \100 \n'
  5153. lt_NL2SP='tr \r\n \100\100'
  5154. ;;
  5155. esac
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5157. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5158. if ${lt_cv_to_host_file_cmd+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. case $host in
  5162. *-*-mingw* )
  5163. case $build in
  5164. *-*-mingw* ) # actually msys
  5165. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5166. ;;
  5167. *-*-cygwin* )
  5168. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5169. ;;
  5170. * ) # otherwise, assume *nix
  5171. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5172. ;;
  5173. esac
  5174. ;;
  5175. *-*-cygwin* )
  5176. case $build in
  5177. *-*-mingw* ) # actually msys
  5178. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5179. ;;
  5180. *-*-cygwin* )
  5181. lt_cv_to_host_file_cmd=func_convert_file_noop
  5182. ;;
  5183. * ) # otherwise, assume *nix
  5184. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5185. ;;
  5186. esac
  5187. ;;
  5188. * ) # unhandled hosts (and "normal" native builds)
  5189. lt_cv_to_host_file_cmd=func_convert_file_noop
  5190. ;;
  5191. esac
  5192. fi
  5193. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5195. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5197. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5198. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. #assume ordinary cross tools, or native build.
  5202. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5203. case $host in
  5204. *-*-mingw* )
  5205. case $build in
  5206. *-*-mingw* ) # actually msys
  5207. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5208. ;;
  5209. esac
  5210. ;;
  5211. esac
  5212. fi
  5213. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5215. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5217. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5218. if ${lt_cv_ld_reload_flag+:} false; then :
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. lt_cv_ld_reload_flag='-r'
  5222. fi
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5224. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5225. reload_flag=$lt_cv_ld_reload_flag
  5226. case $reload_flag in
  5227. "" | " "*) ;;
  5228. *) reload_flag=" $reload_flag" ;;
  5229. esac
  5230. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5231. case $host_os in
  5232. cygwin* | mingw* | pw32* | cegcc*)
  5233. if test "$GCC" != yes; then
  5234. reload_cmds=false
  5235. fi
  5236. ;;
  5237. darwin*)
  5238. if test "$GCC" = yes; then
  5239. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5240. else
  5241. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5242. fi
  5243. ;;
  5244. esac
  5245. if test -n "$ac_tool_prefix"; then
  5246. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5247. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5249. $as_echo_n "checking for $ac_word... " >&6; }
  5250. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. if test -n "$OBJDUMP"; then
  5254. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5255. else
  5256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5257. for as_dir in $PATH
  5258. do
  5259. IFS=$as_save_IFS
  5260. test -z "$as_dir" && as_dir=.
  5261. for ac_exec_ext in '' $ac_executable_extensions; do
  5262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5263. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5265. break 2
  5266. fi
  5267. done
  5268. done
  5269. IFS=$as_save_IFS
  5270. fi
  5271. fi
  5272. OBJDUMP=$ac_cv_prog_OBJDUMP
  5273. if test -n "$OBJDUMP"; then
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5275. $as_echo "$OBJDUMP" >&6; }
  5276. else
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5278. $as_echo "no" >&6; }
  5279. fi
  5280. fi
  5281. if test -z "$ac_cv_prog_OBJDUMP"; then
  5282. ac_ct_OBJDUMP=$OBJDUMP
  5283. # Extract the first word of "objdump", so it can be a program name with args.
  5284. set dummy objdump; ac_word=$2
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5286. $as_echo_n "checking for $ac_word... " >&6; }
  5287. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. if test -n "$ac_ct_OBJDUMP"; then
  5291. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5292. else
  5293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5294. for as_dir in $PATH
  5295. do
  5296. IFS=$as_save_IFS
  5297. test -z "$as_dir" && as_dir=.
  5298. for ac_exec_ext in '' $ac_executable_extensions; do
  5299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5300. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5302. break 2
  5303. fi
  5304. done
  5305. done
  5306. IFS=$as_save_IFS
  5307. fi
  5308. fi
  5309. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5310. if test -n "$ac_ct_OBJDUMP"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5312. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5315. $as_echo "no" >&6; }
  5316. fi
  5317. if test "x$ac_ct_OBJDUMP" = x; then
  5318. OBJDUMP="false"
  5319. else
  5320. case $cross_compiling:$ac_tool_warned in
  5321. yes:)
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5323. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5324. ac_tool_warned=yes ;;
  5325. esac
  5326. OBJDUMP=$ac_ct_OBJDUMP
  5327. fi
  5328. else
  5329. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5330. fi
  5331. test -z "$OBJDUMP" && OBJDUMP=objdump
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5333. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5334. if ${lt_cv_deplibs_check_method+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5338. lt_cv_file_magic_test_file=
  5339. lt_cv_deplibs_check_method='unknown'
  5340. # Need to set the preceding variable on all platforms that support
  5341. # interlibrary dependencies.
  5342. # 'none' -- dependencies not supported.
  5343. # `unknown' -- same as none, but documents that we really don't know.
  5344. # 'pass_all' -- all dependencies passed with no checks.
  5345. # 'test_compile' -- check by making test program.
  5346. # 'file_magic [[regex]]' -- check by looking for files in library path
  5347. # which responds to the $file_magic_cmd with a given extended regex.
  5348. # If you have `file' or equivalent on your system and you're not sure
  5349. # whether `pass_all' will *always* work, you probably want this one.
  5350. case $host_os in
  5351. aix[4-9]*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. beos*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. bsdi[45]*)
  5358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5359. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5360. lt_cv_file_magic_test_file=/shlib/libc.so
  5361. ;;
  5362. cygwin*)
  5363. # func_win32_libid is a shell function defined in ltmain.sh
  5364. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5365. lt_cv_file_magic_cmd='func_win32_libid'
  5366. ;;
  5367. mingw* | pw32*)
  5368. # Base MSYS/MinGW do not provide the 'file' command needed by
  5369. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5370. # unless we find 'file', for example because we are cross-compiling.
  5371. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5372. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5373. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5374. lt_cv_file_magic_cmd='func_win32_libid'
  5375. else
  5376. # Keep this pattern in sync with the one in func_win32_libid.
  5377. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5378. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5379. fi
  5380. ;;
  5381. cegcc*)
  5382. # use the weaker test based on 'objdump'. See mingw*.
  5383. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5384. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5385. ;;
  5386. darwin* | rhapsody*)
  5387. lt_cv_deplibs_check_method=pass_all
  5388. ;;
  5389. freebsd* | dragonfly*)
  5390. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5391. case $host_cpu in
  5392. i*86 )
  5393. # Not sure whether the presence of OpenBSD here was a mistake.
  5394. # Let's accept both of them until this is cleared up.
  5395. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5396. lt_cv_file_magic_cmd=/usr/bin/file
  5397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5398. ;;
  5399. esac
  5400. else
  5401. lt_cv_deplibs_check_method=pass_all
  5402. fi
  5403. ;;
  5404. gnu*)
  5405. lt_cv_deplibs_check_method=pass_all
  5406. ;;
  5407. haiku*)
  5408. lt_cv_deplibs_check_method=pass_all
  5409. ;;
  5410. hpux10.20* | hpux11*)
  5411. lt_cv_file_magic_cmd=/usr/bin/file
  5412. case $host_cpu in
  5413. ia64*)
  5414. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5415. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5416. ;;
  5417. hppa*64*)
  5418. 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]'
  5419. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5420. ;;
  5421. *)
  5422. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5423. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5424. ;;
  5425. esac
  5426. ;;
  5427. interix[3-9]*)
  5428. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5429. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5430. ;;
  5431. irix5* | irix6* | nonstopux*)
  5432. case $LD in
  5433. *-32|*"-32 ") libmagic=32-bit;;
  5434. *-n32|*"-n32 ") libmagic=N32;;
  5435. *-64|*"-64 ") libmagic=64-bit;;
  5436. *) libmagic=never-match;;
  5437. esac
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. # This must be glibc/ELF.
  5441. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5442. lt_cv_deplibs_check_method=pass_all
  5443. ;;
  5444. netbsd*)
  5445. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5447. else
  5448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5449. fi
  5450. ;;
  5451. newos6*)
  5452. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5453. lt_cv_file_magic_cmd=/usr/bin/file
  5454. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5455. ;;
  5456. *nto* | *qnx*)
  5457. lt_cv_deplibs_check_method=pass_all
  5458. ;;
  5459. openbsd*)
  5460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5462. else
  5463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5464. fi
  5465. ;;
  5466. osf3* | osf4* | osf5*)
  5467. lt_cv_deplibs_check_method=pass_all
  5468. ;;
  5469. rdos*)
  5470. lt_cv_deplibs_check_method=pass_all
  5471. ;;
  5472. solaris*)
  5473. lt_cv_deplibs_check_method=pass_all
  5474. ;;
  5475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5476. lt_cv_deplibs_check_method=pass_all
  5477. ;;
  5478. sysv4 | sysv4.3*)
  5479. case $host_vendor in
  5480. motorola)
  5481. 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]'
  5482. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5483. ;;
  5484. ncr)
  5485. lt_cv_deplibs_check_method=pass_all
  5486. ;;
  5487. sequent)
  5488. lt_cv_file_magic_cmd='/bin/file'
  5489. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5490. ;;
  5491. sni)
  5492. lt_cv_file_magic_cmd='/bin/file'
  5493. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5494. lt_cv_file_magic_test_file=/lib/libc.so
  5495. ;;
  5496. siemens)
  5497. lt_cv_deplibs_check_method=pass_all
  5498. ;;
  5499. pc)
  5500. lt_cv_deplibs_check_method=pass_all
  5501. ;;
  5502. esac
  5503. ;;
  5504. tpf*)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. esac
  5508. fi
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5510. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5511. file_magic_glob=
  5512. want_nocaseglob=no
  5513. if test "$build" = "$host"; then
  5514. case $host_os in
  5515. mingw* | pw32*)
  5516. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5517. want_nocaseglob=yes
  5518. else
  5519. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5520. fi
  5521. ;;
  5522. esac
  5523. fi
  5524. file_magic_cmd=$lt_cv_file_magic_cmd
  5525. deplibs_check_method=$lt_cv_deplibs_check_method
  5526. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5527. if test -n "$ac_tool_prefix"; then
  5528. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5529. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$DLLTOOL"; then
  5536. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5545. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. DLLTOOL=$ac_cv_prog_DLLTOOL
  5555. if test -n "$DLLTOOL"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5557. $as_echo "$DLLTOOL" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. fi
  5563. if test -z "$ac_cv_prog_DLLTOOL"; then
  5564. ac_ct_DLLTOOL=$DLLTOOL
  5565. # Extract the first word of "dlltool", so it can be a program name with args.
  5566. set dummy dlltool; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$ac_ct_DLLTOOL"; then
  5573. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5582. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5592. if test -n "$ac_ct_DLLTOOL"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5594. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. if test "x$ac_ct_DLLTOOL" = x; then
  5600. DLLTOOL="false"
  5601. else
  5602. case $cross_compiling:$ac_tool_warned in
  5603. yes:)
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5605. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5606. ac_tool_warned=yes ;;
  5607. esac
  5608. DLLTOOL=$ac_ct_DLLTOOL
  5609. fi
  5610. else
  5611. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5612. fi
  5613. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5615. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5616. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5620. case $host_os in
  5621. cygwin* | mingw* | pw32* | cegcc*)
  5622. # two different shell functions defined in ltmain.sh
  5623. # decide which to use based on capabilities of $DLLTOOL
  5624. case `$DLLTOOL --help 2>&1` in
  5625. *--identify-strict*)
  5626. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5627. ;;
  5628. *)
  5629. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5630. ;;
  5631. esac
  5632. ;;
  5633. *)
  5634. # fallback: assume linklib IS sharedlib
  5635. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5636. ;;
  5637. esac
  5638. fi
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5640. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5641. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5642. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5643. if test -n "$ac_tool_prefix"; then
  5644. for ac_prog in ar
  5645. do
  5646. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5647. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if ${ac_cv_prog_AR+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$AR"; then
  5654. ac_cv_prog_AR="$AR" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5663. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. AR=$ac_cv_prog_AR
  5673. if test -n "$AR"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5675. $as_echo "$AR" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. test -n "$AR" && break
  5681. done
  5682. fi
  5683. if test -z "$AR"; then
  5684. ac_ct_AR=$AR
  5685. for ac_prog in ar
  5686. do
  5687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5688. set dummy $ac_prog; ac_word=$2
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5690. $as_echo_n "checking for $ac_word... " >&6; }
  5691. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. if test -n "$ac_ct_AR"; then
  5695. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5696. else
  5697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5698. for as_dir in $PATH
  5699. do
  5700. IFS=$as_save_IFS
  5701. test -z "$as_dir" && as_dir=.
  5702. for ac_exec_ext in '' $ac_executable_extensions; do
  5703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5704. ac_cv_prog_ac_ct_AR="$ac_prog"
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5706. break 2
  5707. fi
  5708. done
  5709. done
  5710. IFS=$as_save_IFS
  5711. fi
  5712. fi
  5713. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5714. if test -n "$ac_ct_AR"; then
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5716. $as_echo "$ac_ct_AR" >&6; }
  5717. else
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. $as_echo "no" >&6; }
  5720. fi
  5721. test -n "$ac_ct_AR" && break
  5722. done
  5723. if test "x$ac_ct_AR" = x; then
  5724. AR="false"
  5725. else
  5726. case $cross_compiling:$ac_tool_warned in
  5727. yes:)
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5729. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5730. ac_tool_warned=yes ;;
  5731. esac
  5732. AR=$ac_ct_AR
  5733. fi
  5734. fi
  5735. : ${AR=ar}
  5736. : ${AR_FLAGS=cru}
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5738. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5739. if ${lt_cv_ar_at_file+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. lt_cv_ar_at_file=no
  5743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5744. /* end confdefs.h. */
  5745. int
  5746. main ()
  5747. {
  5748. ;
  5749. return 0;
  5750. }
  5751. _ACEOF
  5752. if ac_fn_c_try_compile "$LINENO"; then :
  5753. echo conftest.$ac_objext > conftest.lst
  5754. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5755. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5756. (eval $lt_ar_try) 2>&5
  5757. ac_status=$?
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5759. test $ac_status = 0; }
  5760. if test "$ac_status" -eq 0; then
  5761. # Ensure the archiver fails upon bogus file names.
  5762. rm -f conftest.$ac_objext libconftest.a
  5763. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5764. (eval $lt_ar_try) 2>&5
  5765. ac_status=$?
  5766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5767. test $ac_status = 0; }
  5768. if test "$ac_status" -ne 0; then
  5769. lt_cv_ar_at_file=@
  5770. fi
  5771. fi
  5772. rm -f conftest.* libconftest.a
  5773. fi
  5774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5777. $as_echo "$lt_cv_ar_at_file" >&6; }
  5778. if test "x$lt_cv_ar_at_file" = xno; then
  5779. archiver_list_spec=
  5780. else
  5781. archiver_list_spec=$lt_cv_ar_at_file
  5782. fi
  5783. if test -n "$ac_tool_prefix"; then
  5784. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5785. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_STRIP+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$STRIP"; then
  5792. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5801. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. STRIP=$ac_cv_prog_STRIP
  5811. if test -n "$STRIP"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5813. $as_echo "$STRIP" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. fi
  5819. if test -z "$ac_cv_prog_STRIP"; then
  5820. ac_ct_STRIP=$STRIP
  5821. # Extract the first word of "strip", so it can be a program name with args.
  5822. set dummy strip; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_STRIP"; then
  5829. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5838. ac_cv_prog_ac_ct_STRIP="strip"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5848. if test -n "$ac_ct_STRIP"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5850. $as_echo "$ac_ct_STRIP" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_STRIP" = x; then
  5856. STRIP=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. STRIP=$ac_ct_STRIP
  5865. fi
  5866. else
  5867. STRIP="$ac_cv_prog_STRIP"
  5868. fi
  5869. test -z "$STRIP" && STRIP=:
  5870. if test -n "$ac_tool_prefix"; then
  5871. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5872. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5874. $as_echo_n "checking for $ac_word... " >&6; }
  5875. if ${ac_cv_prog_RANLIB+:} false; then :
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. if test -n "$RANLIB"; then
  5879. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5880. else
  5881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5882. for as_dir in $PATH
  5883. do
  5884. IFS=$as_save_IFS
  5885. test -z "$as_dir" && as_dir=.
  5886. for ac_exec_ext in '' $ac_executable_extensions; do
  5887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5888. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5890. break 2
  5891. fi
  5892. done
  5893. done
  5894. IFS=$as_save_IFS
  5895. fi
  5896. fi
  5897. RANLIB=$ac_cv_prog_RANLIB
  5898. if test -n "$RANLIB"; then
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5900. $as_echo "$RANLIB" >&6; }
  5901. else
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5903. $as_echo "no" >&6; }
  5904. fi
  5905. fi
  5906. if test -z "$ac_cv_prog_RANLIB"; then
  5907. ac_ct_RANLIB=$RANLIB
  5908. # Extract the first word of "ranlib", so it can be a program name with args.
  5909. set dummy ranlib; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. if test -n "$ac_ct_RANLIB"; then
  5916. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921. IFS=$as_save_IFS
  5922. test -z "$as_dir" && as_dir=.
  5923. for ac_exec_ext in '' $ac_executable_extensions; do
  5924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5925. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927. break 2
  5928. fi
  5929. done
  5930. done
  5931. IFS=$as_save_IFS
  5932. fi
  5933. fi
  5934. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5935. if test -n "$ac_ct_RANLIB"; then
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5937. $as_echo "$ac_ct_RANLIB" >&6; }
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5940. $as_echo "no" >&6; }
  5941. fi
  5942. if test "x$ac_ct_RANLIB" = x; then
  5943. RANLIB=":"
  5944. else
  5945. case $cross_compiling:$ac_tool_warned in
  5946. yes:)
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5949. ac_tool_warned=yes ;;
  5950. esac
  5951. RANLIB=$ac_ct_RANLIB
  5952. fi
  5953. else
  5954. RANLIB="$ac_cv_prog_RANLIB"
  5955. fi
  5956. test -z "$RANLIB" && RANLIB=:
  5957. # Determine commands to create old-style static archives.
  5958. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5959. old_postinstall_cmds='chmod 644 $oldlib'
  5960. old_postuninstall_cmds=
  5961. if test -n "$RANLIB"; then
  5962. case $host_os in
  5963. openbsd*)
  5964. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5965. ;;
  5966. *)
  5967. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5968. ;;
  5969. esac
  5970. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5971. fi
  5972. case $host_os in
  5973. darwin*)
  5974. lock_old_archive_extraction=yes ;;
  5975. *)
  5976. lock_old_archive_extraction=no ;;
  5977. esac
  5978. for ac_prog in gawk mawk nawk awk
  5979. do
  5980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5981. set dummy $ac_prog; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_AWK+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$AWK"; then
  5988. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997. ac_cv_prog_AWK="$ac_prog"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. AWK=$ac_cv_prog_AWK
  6007. if test -n "$AWK"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6009. $as_echo "$AWK" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. test -n "$AWK" && break
  6015. done
  6016. # If no C compiler was specified, use CC.
  6017. LTCC=${LTCC-"$CC"}
  6018. # If no C compiler flags were specified, use CFLAGS.
  6019. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6020. # Allow CC to be a program name with arguments.
  6021. compiler=$CC
  6022. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6024. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6025. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. # These are sane defaults that work on at least a few old systems.
  6029. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6030. # Character class describing NM global symbol codes.
  6031. symcode='[BCDEGRST]'
  6032. # Regexp to match symbols that can be accessed directly from C.
  6033. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6034. # Define system-specific variables.
  6035. case $host_os in
  6036. aix*)
  6037. symcode='[BCDT]'
  6038. ;;
  6039. cygwin* | mingw* | pw32* | cegcc*)
  6040. symcode='[ABCDGISTW]'
  6041. ;;
  6042. hpux*)
  6043. if test "$host_cpu" = ia64; then
  6044. symcode='[ABCDEGRST]'
  6045. fi
  6046. ;;
  6047. irix* | nonstopux*)
  6048. symcode='[BCDEGRST]'
  6049. ;;
  6050. osf*)
  6051. symcode='[BCDEGQRST]'
  6052. ;;
  6053. solaris*)
  6054. symcode='[BDRT]'
  6055. ;;
  6056. sco3.2v5*)
  6057. symcode='[DT]'
  6058. ;;
  6059. sysv4.2uw2*)
  6060. symcode='[DT]'
  6061. ;;
  6062. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6063. symcode='[ABDT]'
  6064. ;;
  6065. sysv4)
  6066. symcode='[DFNSTU]'
  6067. ;;
  6068. esac
  6069. # If we're using GNU nm, then use its standard symbol codes.
  6070. case `$NM -V 2>&1` in
  6071. *GNU* | *'with BFD'*)
  6072. symcode='[ABCDGIRSTW]' ;;
  6073. esac
  6074. # Transform an extracted symbol line into a proper C declaration.
  6075. # Some systems (esp. on ia64) link data and code symbols differently,
  6076. # so use this general approach.
  6077. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6078. # Transform an extracted symbol line into symbol name and symbol address
  6079. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6080. 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'"
  6081. # Handle CRLF in mingw tool chain
  6082. opt_cr=
  6083. case $build_os in
  6084. mingw*)
  6085. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6086. ;;
  6087. esac
  6088. # Try without a prefix underscore, then with it.
  6089. for ac_symprfx in "" "_"; do
  6090. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6091. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6092. # Write the raw and C identifiers.
  6093. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6094. # Fake it for dumpbin and say T for any non-static function
  6095. # and D for any global variable.
  6096. # Also find C++ and __fastcall symbols from MSVC++,
  6097. # which start with @ or ?.
  6098. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6099. " {last_section=section; section=\$ 3};"\
  6100. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6101. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6102. " \$ 0!~/External *\|/{next};"\
  6103. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6104. " {if(hide[section]) next};"\
  6105. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6106. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6107. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6108. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6109. " ' prfx=^$ac_symprfx"
  6110. else
  6111. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6112. fi
  6113. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6114. # Check to see that the pipe works correctly.
  6115. pipe_works=no
  6116. rm -f conftest*
  6117. cat > conftest.$ac_ext <<_LT_EOF
  6118. #ifdef __cplusplus
  6119. extern "C" {
  6120. #endif
  6121. char nm_test_var;
  6122. void nm_test_func(void);
  6123. void nm_test_func(void){}
  6124. #ifdef __cplusplus
  6125. }
  6126. #endif
  6127. int main(){nm_test_var='a';nm_test_func();return(0);}
  6128. _LT_EOF
  6129. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6130. (eval $ac_compile) 2>&5
  6131. ac_status=$?
  6132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6133. test $ac_status = 0; }; then
  6134. # Now try to grab the symbols.
  6135. nlist=conftest.nm
  6136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6137. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6138. ac_status=$?
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6140. test $ac_status = 0; } && test -s "$nlist"; then
  6141. # Try sorting and uniquifying the output.
  6142. if sort "$nlist" | uniq > "$nlist"T; then
  6143. mv -f "$nlist"T "$nlist"
  6144. else
  6145. rm -f "$nlist"T
  6146. fi
  6147. # Make sure that we snagged all the symbols we need.
  6148. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6149. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6150. cat <<_LT_EOF > conftest.$ac_ext
  6151. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6152. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6153. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6154. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6155. # define LT_DLSYM_CONST
  6156. #elif defined(__osf__)
  6157. /* This system does not cope well with relocations in const data. */
  6158. # define LT_DLSYM_CONST
  6159. #else
  6160. # define LT_DLSYM_CONST const
  6161. #endif
  6162. #ifdef __cplusplus
  6163. extern "C" {
  6164. #endif
  6165. _LT_EOF
  6166. # Now generate the symbol file.
  6167. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6168. cat <<_LT_EOF >> conftest.$ac_ext
  6169. /* The mapping between symbol names and symbols. */
  6170. LT_DLSYM_CONST struct {
  6171. const char *name;
  6172. void *address;
  6173. }
  6174. lt__PROGRAM__LTX_preloaded_symbols[] =
  6175. {
  6176. { "@PROGRAM@", (void *) 0 },
  6177. _LT_EOF
  6178. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6179. cat <<\_LT_EOF >> conftest.$ac_ext
  6180. {0, (void *) 0}
  6181. };
  6182. /* This works around a problem in FreeBSD linker */
  6183. #ifdef FREEBSD_WORKAROUND
  6184. static const void *lt_preloaded_setup() {
  6185. return lt__PROGRAM__LTX_preloaded_symbols;
  6186. }
  6187. #endif
  6188. #ifdef __cplusplus
  6189. }
  6190. #endif
  6191. _LT_EOF
  6192. # Now try linking the two files.
  6193. mv conftest.$ac_objext conftstm.$ac_objext
  6194. lt_globsym_save_LIBS=$LIBS
  6195. lt_globsym_save_CFLAGS=$CFLAGS
  6196. LIBS="conftstm.$ac_objext"
  6197. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6199. (eval $ac_link) 2>&5
  6200. ac_status=$?
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6202. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6203. pipe_works=yes
  6204. fi
  6205. LIBS=$lt_globsym_save_LIBS
  6206. CFLAGS=$lt_globsym_save_CFLAGS
  6207. else
  6208. echo "cannot find nm_test_func in $nlist" >&5
  6209. fi
  6210. else
  6211. echo "cannot find nm_test_var in $nlist" >&5
  6212. fi
  6213. else
  6214. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6215. fi
  6216. else
  6217. echo "$progname: failed program was:" >&5
  6218. cat conftest.$ac_ext >&5
  6219. fi
  6220. rm -rf conftest* conftst*
  6221. # Do not use the global_symbol_pipe unless it works.
  6222. if test "$pipe_works" = yes; then
  6223. break
  6224. else
  6225. lt_cv_sys_global_symbol_pipe=
  6226. fi
  6227. done
  6228. fi
  6229. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6230. lt_cv_sys_global_symbol_to_cdecl=
  6231. fi
  6232. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6234. $as_echo "failed" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6237. $as_echo "ok" >&6; }
  6238. fi
  6239. # Response file support.
  6240. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6241. nm_file_list_spec='@'
  6242. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6243. nm_file_list_spec='@'
  6244. fi
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6246. $as_echo_n "checking for sysroot... " >&6; }
  6247. # Check whether --with-sysroot was given.
  6248. if test "${with_sysroot+set}" = set; then :
  6249. withval=$with_sysroot;
  6250. else
  6251. with_sysroot=no
  6252. fi
  6253. lt_sysroot=
  6254. case ${with_sysroot} in #(
  6255. yes)
  6256. if test "$GCC" = yes; then
  6257. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6258. fi
  6259. ;; #(
  6260. /*)
  6261. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6262. ;; #(
  6263. no|'')
  6264. ;; #(
  6265. *)
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6267. $as_echo "${with_sysroot}" >&6; }
  6268. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6269. ;;
  6270. esac
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6272. $as_echo "${lt_sysroot:-no}" >&6; }
  6273. # Check whether --enable-libtool-lock was given.
  6274. if test "${enable_libtool_lock+set}" = set; then :
  6275. enableval=$enable_libtool_lock;
  6276. fi
  6277. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6278. # Some flags need to be propagated to the compiler or linker for good
  6279. # libtool support.
  6280. case $host in
  6281. ia64-*-hpux*)
  6282. # Find out which ABI we are using.
  6283. echo 'int i;' > conftest.$ac_ext
  6284. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6285. (eval $ac_compile) 2>&5
  6286. ac_status=$?
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6288. test $ac_status = 0; }; then
  6289. case `/usr/bin/file conftest.$ac_objext` in
  6290. *ELF-32*)
  6291. HPUX_IA64_MODE="32"
  6292. ;;
  6293. *ELF-64*)
  6294. HPUX_IA64_MODE="64"
  6295. ;;
  6296. esac
  6297. fi
  6298. rm -rf conftest*
  6299. ;;
  6300. *-*-irix6*)
  6301. # Find out which ABI we are using.
  6302. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6304. (eval $ac_compile) 2>&5
  6305. ac_status=$?
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6307. test $ac_status = 0; }; then
  6308. if test "$lt_cv_prog_gnu_ld" = yes; then
  6309. case `/usr/bin/file conftest.$ac_objext` in
  6310. *32-bit*)
  6311. LD="${LD-ld} -melf32bsmip"
  6312. ;;
  6313. *N32*)
  6314. LD="${LD-ld} -melf32bmipn32"
  6315. ;;
  6316. *64-bit*)
  6317. LD="${LD-ld} -melf64bmip"
  6318. ;;
  6319. esac
  6320. else
  6321. case `/usr/bin/file conftest.$ac_objext` in
  6322. *32-bit*)
  6323. LD="${LD-ld} -32"
  6324. ;;
  6325. *N32*)
  6326. LD="${LD-ld} -n32"
  6327. ;;
  6328. *64-bit*)
  6329. LD="${LD-ld} -64"
  6330. ;;
  6331. esac
  6332. fi
  6333. fi
  6334. rm -rf conftest*
  6335. ;;
  6336. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6337. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6338. # Find out which ABI we are using.
  6339. echo 'int i;' > conftest.$ac_ext
  6340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6341. (eval $ac_compile) 2>&5
  6342. ac_status=$?
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6344. test $ac_status = 0; }; then
  6345. case `/usr/bin/file conftest.o` in
  6346. *32-bit*)
  6347. case $host in
  6348. x86_64-*kfreebsd*-gnu)
  6349. LD="${LD-ld} -m elf_i386_fbsd"
  6350. ;;
  6351. x86_64-*linux*)
  6352. LD="${LD-ld} -m elf_i386"
  6353. ;;
  6354. ppc64-*linux*|powerpc64-*linux*)
  6355. LD="${LD-ld} -m elf32ppclinux"
  6356. ;;
  6357. s390x-*linux*)
  6358. LD="${LD-ld} -m elf_s390"
  6359. ;;
  6360. sparc64-*linux*)
  6361. LD="${LD-ld} -m elf32_sparc"
  6362. ;;
  6363. esac
  6364. ;;
  6365. *64-bit*)
  6366. case $host in
  6367. x86_64-*kfreebsd*-gnu)
  6368. LD="${LD-ld} -m elf_x86_64_fbsd"
  6369. ;;
  6370. x86_64-*linux*)
  6371. LD="${LD-ld} -m elf_x86_64"
  6372. ;;
  6373. ppc*-*linux*|powerpc*-*linux*)
  6374. LD="${LD-ld} -m elf64ppc"
  6375. ;;
  6376. s390*-*linux*|s390*-*tpf*)
  6377. LD="${LD-ld} -m elf64_s390"
  6378. ;;
  6379. sparc*-*linux*)
  6380. LD="${LD-ld} -m elf64_sparc"
  6381. ;;
  6382. esac
  6383. ;;
  6384. esac
  6385. fi
  6386. rm -rf conftest*
  6387. ;;
  6388. *-*-sco3.2v5*)
  6389. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6390. SAVE_CFLAGS="$CFLAGS"
  6391. CFLAGS="$CFLAGS -belf"
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6393. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6394. if ${lt_cv_cc_needs_belf+:} false; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. ac_ext=c
  6398. ac_cpp='$CPP $CPPFLAGS'
  6399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int
  6405. main ()
  6406. {
  6407. ;
  6408. return 0;
  6409. }
  6410. _ACEOF
  6411. if ac_fn_c_try_link "$LINENO"; then :
  6412. lt_cv_cc_needs_belf=yes
  6413. else
  6414. lt_cv_cc_needs_belf=no
  6415. fi
  6416. rm -f core conftest.err conftest.$ac_objext \
  6417. conftest$ac_exeext conftest.$ac_ext
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. fi
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6425. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6426. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6427. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6428. CFLAGS="$SAVE_CFLAGS"
  6429. fi
  6430. ;;
  6431. *-*solaris*)
  6432. # Find out which ABI we are using.
  6433. echo 'int i;' > conftest.$ac_ext
  6434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6435. (eval $ac_compile) 2>&5
  6436. ac_status=$?
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6438. test $ac_status = 0; }; then
  6439. case `/usr/bin/file conftest.o` in
  6440. *64-bit*)
  6441. case $lt_cv_prog_gnu_ld in
  6442. yes*)
  6443. case $host in
  6444. i?86-*-solaris*)
  6445. LD="${LD-ld} -m elf_x86_64"
  6446. ;;
  6447. sparc*-*-solaris*)
  6448. LD="${LD-ld} -m elf64_sparc"
  6449. ;;
  6450. esac
  6451. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6452. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6453. LD="${LD-ld}_sol2"
  6454. fi
  6455. ;;
  6456. *)
  6457. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6458. LD="${LD-ld} -64"
  6459. fi
  6460. ;;
  6461. esac
  6462. ;;
  6463. esac
  6464. fi
  6465. rm -rf conftest*
  6466. ;;
  6467. esac
  6468. need_locks="$enable_libtool_lock"
  6469. if test -n "$ac_tool_prefix"; then
  6470. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6471. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6473. $as_echo_n "checking for $ac_word... " >&6; }
  6474. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. if test -n "$MANIFEST_TOOL"; then
  6478. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6479. else
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH
  6482. do
  6483. IFS=$as_save_IFS
  6484. test -z "$as_dir" && as_dir=.
  6485. for ac_exec_ext in '' $ac_executable_extensions; do
  6486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6487. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489. break 2
  6490. fi
  6491. done
  6492. done
  6493. IFS=$as_save_IFS
  6494. fi
  6495. fi
  6496. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6497. if test -n "$MANIFEST_TOOL"; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6499. $as_echo "$MANIFEST_TOOL" >&6; }
  6500. else
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6502. $as_echo "no" >&6; }
  6503. fi
  6504. fi
  6505. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6506. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6507. # Extract the first word of "mt", so it can be a program name with args.
  6508. set dummy mt; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6515. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6524. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6534. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6536. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6542. MANIFEST_TOOL=":"
  6543. else
  6544. case $cross_compiling:$ac_tool_warned in
  6545. yes:)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6548. ac_tool_warned=yes ;;
  6549. esac
  6550. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6551. fi
  6552. else
  6553. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6554. fi
  6555. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6557. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6558. if ${lt_cv_path_mainfest_tool+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. lt_cv_path_mainfest_tool=no
  6562. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6563. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6564. cat conftest.err >&5
  6565. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6566. lt_cv_path_mainfest_tool=yes
  6567. fi
  6568. rm -f conftest*
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6571. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6572. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6573. MANIFEST_TOOL=:
  6574. fi
  6575. case $host_os in
  6576. rhapsody* | darwin*)
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$DSYMUTIL"; then
  6586. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6605. if test -n "$DSYMUTIL"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6607. $as_echo "$DSYMUTIL" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6614. ac_ct_DSYMUTIL=$DSYMUTIL
  6615. # Extract the first word of "dsymutil", so it can be a program name with args.
  6616. set dummy dsymutil; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_DSYMUTIL"; then
  6623. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6632. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6642. if test -n "$ac_ct_DSYMUTIL"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6644. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_DSYMUTIL" = x; then
  6650. DSYMUTIL=":"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. DSYMUTIL=$ac_ct_DSYMUTIL
  6659. fi
  6660. else
  6661. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6662. fi
  6663. if test -n "$ac_tool_prefix"; then
  6664. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6665. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. $as_echo_n "checking for $ac_word... " >&6; }
  6668. if ${ac_cv_prog_NMEDIT+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test -n "$NMEDIT"; then
  6672. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6673. else
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6681. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. NMEDIT=$ac_cv_prog_NMEDIT
  6691. if test -n "$NMEDIT"; then
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6693. $as_echo "$NMEDIT" >&6; }
  6694. else
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. $as_echo "no" >&6; }
  6697. fi
  6698. fi
  6699. if test -z "$ac_cv_prog_NMEDIT"; then
  6700. ac_ct_NMEDIT=$NMEDIT
  6701. # Extract the first word of "nmedit", so it can be a program name with args.
  6702. set dummy nmedit; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6718. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6728. if test -n "$ac_ct_NMEDIT"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6730. $as_echo "$ac_ct_NMEDIT" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. if test "x$ac_ct_NMEDIT" = x; then
  6736. NMEDIT=":"
  6737. else
  6738. case $cross_compiling:$ac_tool_warned in
  6739. yes:)
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6742. ac_tool_warned=yes ;;
  6743. esac
  6744. NMEDIT=$ac_ct_NMEDIT
  6745. fi
  6746. else
  6747. NMEDIT="$ac_cv_prog_NMEDIT"
  6748. fi
  6749. if test -n "$ac_tool_prefix"; then
  6750. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6751. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. $as_echo_n "checking for $ac_word... " >&6; }
  6754. if ${ac_cv_prog_LIPO+:} false; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. if test -n "$LIPO"; then
  6758. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6759. else
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. test -z "$as_dir" && as_dir=.
  6765. for ac_exec_ext in '' $ac_executable_extensions; do
  6766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6767. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6769. break 2
  6770. fi
  6771. done
  6772. done
  6773. IFS=$as_save_IFS
  6774. fi
  6775. fi
  6776. LIPO=$ac_cv_prog_LIPO
  6777. if test -n "$LIPO"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6779. $as_echo "$LIPO" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. fi
  6785. if test -z "$ac_cv_prog_LIPO"; then
  6786. ac_ct_LIPO=$LIPO
  6787. # Extract the first word of "lipo", so it can be a program name with args.
  6788. set dummy lipo; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$ac_ct_LIPO"; then
  6795. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6804. ac_cv_prog_ac_ct_LIPO="lipo"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6814. if test -n "$ac_ct_LIPO"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6816. $as_echo "$ac_ct_LIPO" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. if test "x$ac_ct_LIPO" = x; then
  6822. LIPO=":"
  6823. else
  6824. case $cross_compiling:$ac_tool_warned in
  6825. yes:)
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6828. ac_tool_warned=yes ;;
  6829. esac
  6830. LIPO=$ac_ct_LIPO
  6831. fi
  6832. else
  6833. LIPO="$ac_cv_prog_LIPO"
  6834. fi
  6835. if test -n "$ac_tool_prefix"; then
  6836. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6837. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6839. $as_echo_n "checking for $ac_word... " >&6; }
  6840. if ${ac_cv_prog_OTOOL+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. if test -n "$OTOOL"; then
  6844. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6845. else
  6846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. for as_dir in $PATH
  6848. do
  6849. IFS=$as_save_IFS
  6850. test -z "$as_dir" && as_dir=.
  6851. for ac_exec_ext in '' $ac_executable_extensions; do
  6852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6853. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6855. break 2
  6856. fi
  6857. done
  6858. done
  6859. IFS=$as_save_IFS
  6860. fi
  6861. fi
  6862. OTOOL=$ac_cv_prog_OTOOL
  6863. if test -n "$OTOOL"; then
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6865. $as_echo "$OTOOL" >&6; }
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. fi
  6871. if test -z "$ac_cv_prog_OTOOL"; then
  6872. ac_ct_OTOOL=$OTOOL
  6873. # Extract the first word of "otool", so it can be a program name with args.
  6874. set dummy otool; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$ac_ct_OTOOL"; then
  6881. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_prog_ac_ct_OTOOL="otool"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6902. $as_echo "$ac_ct_OTOOL" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. if test "x$ac_ct_OTOOL" = x; then
  6908. OTOOL=":"
  6909. else
  6910. case $cross_compiling:$ac_tool_warned in
  6911. yes:)
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6914. ac_tool_warned=yes ;;
  6915. esac
  6916. OTOOL=$ac_ct_OTOOL
  6917. fi
  6918. else
  6919. OTOOL="$ac_cv_prog_OTOOL"
  6920. fi
  6921. if test -n "$ac_tool_prefix"; then
  6922. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6923. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6925. $as_echo_n "checking for $ac_word... " >&6; }
  6926. if ${ac_cv_prog_OTOOL64+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. if test -n "$OTOOL64"; then
  6930. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6931. else
  6932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933. for as_dir in $PATH
  6934. do
  6935. IFS=$as_save_IFS
  6936. test -z "$as_dir" && as_dir=.
  6937. for ac_exec_ext in '' $ac_executable_extensions; do
  6938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6939. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941. break 2
  6942. fi
  6943. done
  6944. done
  6945. IFS=$as_save_IFS
  6946. fi
  6947. fi
  6948. OTOOL64=$ac_cv_prog_OTOOL64
  6949. if test -n "$OTOOL64"; then
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6951. $as_echo "$OTOOL64" >&6; }
  6952. else
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. fi
  6956. fi
  6957. if test -z "$ac_cv_prog_OTOOL64"; then
  6958. ac_ct_OTOOL64=$OTOOL64
  6959. # Extract the first word of "otool64", so it can be a program name with args.
  6960. set dummy otool64; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$ac_ct_OTOOL64"; then
  6967. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6976. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6986. if test -n "$ac_ct_OTOOL64"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6988. $as_echo "$ac_ct_OTOOL64" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. if test "x$ac_ct_OTOOL64" = x; then
  6994. OTOOL64=":"
  6995. else
  6996. case $cross_compiling:$ac_tool_warned in
  6997. yes:)
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7000. ac_tool_warned=yes ;;
  7001. esac
  7002. OTOOL64=$ac_ct_OTOOL64
  7003. fi
  7004. else
  7005. OTOOL64="$ac_cv_prog_OTOOL64"
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7008. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7009. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. lt_cv_apple_cc_single_mod=no
  7013. if test -z "${LT_MULTI_MODULE}"; then
  7014. # By default we will add the -single_module flag. You can override
  7015. # by either setting the environment variable LT_MULTI_MODULE
  7016. # non-empty at configure time, or by adding -multi_module to the
  7017. # link flags.
  7018. rm -rf libconftest.dylib*
  7019. echo "int foo(void){return 1;}" > conftest.c
  7020. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7021. -dynamiclib -Wl,-single_module conftest.c" >&5
  7022. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7023. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7024. _lt_result=$?
  7025. # If there is a non-empty error log, and "single_module"
  7026. # appears in it, assume the flag caused a linker warning
  7027. if test -s conftest.err && $GREP single_module conftest.err; then
  7028. cat conftest.err >&5
  7029. # Otherwise, if the output was created with a 0 exit code from
  7030. # the compiler, it worked.
  7031. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7032. lt_cv_apple_cc_single_mod=yes
  7033. else
  7034. cat conftest.err >&5
  7035. fi
  7036. rm -rf libconftest.dylib*
  7037. rm -f conftest.*
  7038. fi
  7039. fi
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7041. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7043. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7044. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. lt_cv_ld_exported_symbols_list=no
  7048. save_LDFLAGS=$LDFLAGS
  7049. echo "_main" > conftest.sym
  7050. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7052. /* end confdefs.h. */
  7053. int
  7054. main ()
  7055. {
  7056. ;
  7057. return 0;
  7058. }
  7059. _ACEOF
  7060. if ac_fn_c_try_link "$LINENO"; then :
  7061. lt_cv_ld_exported_symbols_list=yes
  7062. else
  7063. lt_cv_ld_exported_symbols_list=no
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext \
  7066. conftest$ac_exeext conftest.$ac_ext
  7067. LDFLAGS="$save_LDFLAGS"
  7068. fi
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7070. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7072. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7073. if ${lt_cv_ld_force_load+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. lt_cv_ld_force_load=no
  7077. cat > conftest.c << _LT_EOF
  7078. int forced_loaded() { return 2;}
  7079. _LT_EOF
  7080. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7081. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7082. echo "$AR cru libconftest.a conftest.o" >&5
  7083. $AR cru libconftest.a conftest.o 2>&5
  7084. echo "$RANLIB libconftest.a" >&5
  7085. $RANLIB libconftest.a 2>&5
  7086. cat > conftest.c << _LT_EOF
  7087. int main() { return 0;}
  7088. _LT_EOF
  7089. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7090. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7091. _lt_result=$?
  7092. if test -s conftest.err && $GREP force_load conftest.err; then
  7093. cat conftest.err >&5
  7094. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7095. lt_cv_ld_force_load=yes
  7096. else
  7097. cat conftest.err >&5
  7098. fi
  7099. rm -f conftest.err libconftest.a conftest conftest.c
  7100. rm -rf conftest.dSYM
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7103. $as_echo "$lt_cv_ld_force_load" >&6; }
  7104. case $host_os in
  7105. rhapsody* | darwin1.[012])
  7106. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7107. darwin1.*)
  7108. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7109. darwin*) # darwin 5.x on
  7110. # if running on 10.5 or later, the deployment target defaults
  7111. # to the OS version, if on x86, and 10.4, the deployment
  7112. # target defaults to 10.4. Don't you love it?
  7113. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7114. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7115. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7116. 10.[012]*)
  7117. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7118. 10.*)
  7119. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7120. esac
  7121. ;;
  7122. esac
  7123. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7124. _lt_dar_single_mod='$single_module'
  7125. fi
  7126. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7127. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7128. else
  7129. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7130. fi
  7131. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7132. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7133. else
  7134. _lt_dsymutil=
  7135. fi
  7136. ;;
  7137. esac
  7138. for ac_header in dlfcn.h
  7139. do :
  7140. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7141. "
  7142. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define HAVE_DLFCN_H 1
  7145. _ACEOF
  7146. fi
  7147. done
  7148. func_stripname_cnf ()
  7149. {
  7150. case ${2} in
  7151. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7152. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7153. esac
  7154. } # func_stripname_cnf
  7155. # Set options
  7156. enable_dlopen=no
  7157. # Check whether --enable-shared was given.
  7158. if test "${enable_shared+set}" = set; then :
  7159. enableval=$enable_shared; p=${PACKAGE-default}
  7160. case $enableval in
  7161. yes) enable_shared=yes ;;
  7162. no) enable_shared=no ;;
  7163. *)
  7164. enable_shared=no
  7165. # Look at the argument we got. We use all the common list separators.
  7166. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7167. for pkg in $enableval; do
  7168. IFS="$lt_save_ifs"
  7169. if test "X$pkg" = "X$p"; then
  7170. enable_shared=yes
  7171. fi
  7172. done
  7173. IFS="$lt_save_ifs"
  7174. ;;
  7175. esac
  7176. else
  7177. enable_shared=yes
  7178. fi
  7179. # Check whether --enable-static was given.
  7180. if test "${enable_static+set}" = set; then :
  7181. enableval=$enable_static; p=${PACKAGE-default}
  7182. case $enableval in
  7183. yes) enable_static=yes ;;
  7184. no) enable_static=no ;;
  7185. *)
  7186. enable_static=no
  7187. # Look at the argument we got. We use all the common list separators.
  7188. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7189. for pkg in $enableval; do
  7190. IFS="$lt_save_ifs"
  7191. if test "X$pkg" = "X$p"; then
  7192. enable_static=yes
  7193. fi
  7194. done
  7195. IFS="$lt_save_ifs"
  7196. ;;
  7197. esac
  7198. else
  7199. enable_static=yes
  7200. fi
  7201. # Check whether --with-pic was given.
  7202. if test "${with_pic+set}" = set; then :
  7203. withval=$with_pic; lt_p=${PACKAGE-default}
  7204. case $withval in
  7205. yes|no) pic_mode=$withval ;;
  7206. *)
  7207. pic_mode=default
  7208. # Look at the argument we got. We use all the common list separators.
  7209. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7210. for lt_pkg in $withval; do
  7211. IFS="$lt_save_ifs"
  7212. if test "X$lt_pkg" = "X$lt_p"; then
  7213. pic_mode=yes
  7214. fi
  7215. done
  7216. IFS="$lt_save_ifs"
  7217. ;;
  7218. esac
  7219. else
  7220. pic_mode=default
  7221. fi
  7222. test -z "$pic_mode" && pic_mode=default
  7223. # Check whether --enable-fast-install was given.
  7224. if test "${enable_fast_install+set}" = set; then :
  7225. enableval=$enable_fast_install; p=${PACKAGE-default}
  7226. case $enableval in
  7227. yes) enable_fast_install=yes ;;
  7228. no) enable_fast_install=no ;;
  7229. *)
  7230. enable_fast_install=no
  7231. # Look at the argument we got. We use all the common list separators.
  7232. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7233. for pkg in $enableval; do
  7234. IFS="$lt_save_ifs"
  7235. if test "X$pkg" = "X$p"; then
  7236. enable_fast_install=yes
  7237. fi
  7238. done
  7239. IFS="$lt_save_ifs"
  7240. ;;
  7241. esac
  7242. else
  7243. enable_fast_install=yes
  7244. fi
  7245. # This can be used to rebuild libtool when needed
  7246. LIBTOOL_DEPS="$ltmain"
  7247. # Always use our own libtool.
  7248. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7249. test -z "$LN_S" && LN_S="ln -s"
  7250. if test -n "${ZSH_VERSION+set}" ; then
  7251. setopt NO_GLOB_SUBST
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7254. $as_echo_n "checking for objdir... " >&6; }
  7255. if ${lt_cv_objdir+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. rm -f .libs 2>/dev/null
  7259. mkdir .libs 2>/dev/null
  7260. if test -d .libs; then
  7261. lt_cv_objdir=.libs
  7262. else
  7263. # MS-DOS does not allow filenames that begin with a dot.
  7264. lt_cv_objdir=_libs
  7265. fi
  7266. rmdir .libs 2>/dev/null
  7267. fi
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7269. $as_echo "$lt_cv_objdir" >&6; }
  7270. objdir=$lt_cv_objdir
  7271. cat >>confdefs.h <<_ACEOF
  7272. #define LT_OBJDIR "$lt_cv_objdir/"
  7273. _ACEOF
  7274. case $host_os in
  7275. aix3*)
  7276. # AIX sometimes has problems with the GCC collect2 program. For some
  7277. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7278. # vanish in a puff of smoke.
  7279. if test "X${COLLECT_NAMES+set}" != Xset; then
  7280. COLLECT_NAMES=
  7281. export COLLECT_NAMES
  7282. fi
  7283. ;;
  7284. esac
  7285. # Global variables:
  7286. ofile=libtool
  7287. can_build_shared=yes
  7288. # All known linkers require a `.a' archive for static linking (except MSVC,
  7289. # which needs '.lib').
  7290. libext=a
  7291. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7292. old_CC="$CC"
  7293. old_CFLAGS="$CFLAGS"
  7294. # Set sane defaults for various variables
  7295. test -z "$CC" && CC=cc
  7296. test -z "$LTCC" && LTCC=$CC
  7297. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7298. test -z "$LD" && LD=ld
  7299. test -z "$ac_objext" && ac_objext=o
  7300. for cc_temp in $compiler""; do
  7301. case $cc_temp in
  7302. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7303. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7304. \-*) ;;
  7305. *) break;;
  7306. esac
  7307. done
  7308. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7309. # Only perform the check for file, if the check method requires it
  7310. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7311. case $deplibs_check_method in
  7312. file_magic*)
  7313. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7315. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7316. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. case $MAGIC_CMD in
  7320. [\\/*] | ?:[\\/]*)
  7321. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7322. ;;
  7323. *)
  7324. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7325. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7326. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7327. for ac_dir in $ac_dummy; do
  7328. IFS="$lt_save_ifs"
  7329. test -z "$ac_dir" && ac_dir=.
  7330. if test -f $ac_dir/${ac_tool_prefix}file; then
  7331. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7332. if test -n "$file_magic_test_file"; then
  7333. case $deplibs_check_method in
  7334. "file_magic "*)
  7335. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7336. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7337. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7338. $EGREP "$file_magic_regex" > /dev/null; then
  7339. :
  7340. else
  7341. cat <<_LT_EOF 1>&2
  7342. *** Warning: the command libtool uses to detect shared libraries,
  7343. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7344. *** The result is that libtool may fail to recognize shared libraries
  7345. *** as such. This will affect the creation of libtool libraries that
  7346. *** depend on shared libraries, but programs linked with such libtool
  7347. *** libraries will work regardless of this problem. Nevertheless, you
  7348. *** may want to report the problem to your system manager and/or to
  7349. *** bug-libtool@gnu.org
  7350. _LT_EOF
  7351. fi ;;
  7352. esac
  7353. fi
  7354. break
  7355. fi
  7356. done
  7357. IFS="$lt_save_ifs"
  7358. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7359. ;;
  7360. esac
  7361. fi
  7362. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7363. if test -n "$MAGIC_CMD"; then
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7365. $as_echo "$MAGIC_CMD" >&6; }
  7366. else
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. $as_echo "no" >&6; }
  7369. fi
  7370. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7371. if test -n "$ac_tool_prefix"; then
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7373. $as_echo_n "checking for file... " >&6; }
  7374. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. case $MAGIC_CMD in
  7378. [\\/*] | ?:[\\/]*)
  7379. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7380. ;;
  7381. *)
  7382. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7383. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7384. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7385. for ac_dir in $ac_dummy; do
  7386. IFS="$lt_save_ifs"
  7387. test -z "$ac_dir" && ac_dir=.
  7388. if test -f $ac_dir/file; then
  7389. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7390. if test -n "$file_magic_test_file"; then
  7391. case $deplibs_check_method in
  7392. "file_magic "*)
  7393. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7394. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7395. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7396. $EGREP "$file_magic_regex" > /dev/null; then
  7397. :
  7398. else
  7399. cat <<_LT_EOF 1>&2
  7400. *** Warning: the command libtool uses to detect shared libraries,
  7401. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7402. *** The result is that libtool may fail to recognize shared libraries
  7403. *** as such. This will affect the creation of libtool libraries that
  7404. *** depend on shared libraries, but programs linked with such libtool
  7405. *** libraries will work regardless of this problem. Nevertheless, you
  7406. *** may want to report the problem to your system manager and/or to
  7407. *** bug-libtool@gnu.org
  7408. _LT_EOF
  7409. fi ;;
  7410. esac
  7411. fi
  7412. break
  7413. fi
  7414. done
  7415. IFS="$lt_save_ifs"
  7416. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7417. ;;
  7418. esac
  7419. fi
  7420. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7421. if test -n "$MAGIC_CMD"; then
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7423. $as_echo "$MAGIC_CMD" >&6; }
  7424. else
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7426. $as_echo "no" >&6; }
  7427. fi
  7428. else
  7429. MAGIC_CMD=:
  7430. fi
  7431. fi
  7432. fi
  7433. ;;
  7434. esac
  7435. # Use C for the default configuration in the libtool script
  7436. lt_save_CC="$CC"
  7437. ac_ext=c
  7438. ac_cpp='$CPP $CPPFLAGS'
  7439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7442. # Source file extension for C test sources.
  7443. ac_ext=c
  7444. # Object file extension for compiled C test sources.
  7445. objext=o
  7446. objext=$objext
  7447. # Code to be used in simple compile tests
  7448. lt_simple_compile_test_code="int some_variable = 0;"
  7449. # Code to be used in simple link tests
  7450. lt_simple_link_test_code='int main(){return(0);}'
  7451. # If no C compiler was specified, use CC.
  7452. LTCC=${LTCC-"$CC"}
  7453. # If no C compiler flags were specified, use CFLAGS.
  7454. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7455. # Allow CC to be a program name with arguments.
  7456. compiler=$CC
  7457. # Save the default compiler, since it gets overwritten when the other
  7458. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7459. compiler_DEFAULT=$CC
  7460. # save warnings/boilerplate of simple test code
  7461. ac_outfile=conftest.$ac_objext
  7462. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7463. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7464. _lt_compiler_boilerplate=`cat conftest.err`
  7465. $RM conftest*
  7466. ac_outfile=conftest.$ac_objext
  7467. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7468. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7469. _lt_linker_boilerplate=`cat conftest.err`
  7470. $RM -r conftest*
  7471. if test -n "$compiler"; then
  7472. lt_prog_compiler_no_builtin_flag=
  7473. if test "$GCC" = yes; then
  7474. case $cc_basename in
  7475. nvcc*)
  7476. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7477. *)
  7478. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7479. esac
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7481. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7482. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7483. $as_echo_n "(cached) " >&6
  7484. else
  7485. lt_cv_prog_compiler_rtti_exceptions=no
  7486. ac_outfile=conftest.$ac_objext
  7487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7488. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7489. # Insert the option either (1) after the last *FLAGS variable, or
  7490. # (2) before a word containing "conftest.", or (3) at the end.
  7491. # Note that $ac_compile itself does not contain backslashes and begins
  7492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7493. # The option is referenced via a variable to avoid confusing sed.
  7494. lt_compile=`echo "$ac_compile" | $SED \
  7495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7497. -e 's:$: $lt_compiler_flag:'`
  7498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7499. (eval "$lt_compile" 2>conftest.err)
  7500. ac_status=$?
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. if (exit $ac_status) && test -s "$ac_outfile"; then
  7504. # The compiler can only warn and ignore the option if not recognized
  7505. # So say no if there are warnings other than the usual output.
  7506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7507. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7508. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7509. lt_cv_prog_compiler_rtti_exceptions=yes
  7510. fi
  7511. fi
  7512. $RM conftest*
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7515. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7516. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7517. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7518. else
  7519. :
  7520. fi
  7521. fi
  7522. lt_prog_compiler_wl=
  7523. lt_prog_compiler_pic=
  7524. lt_prog_compiler_static=
  7525. if test "$GCC" = yes; then
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_static='-static'
  7528. case $host_os in
  7529. aix*)
  7530. # All AIX code is PIC.
  7531. if test "$host_cpu" = ia64; then
  7532. # AIX 5 now supports IA64 processor
  7533. lt_prog_compiler_static='-Bstatic'
  7534. fi
  7535. ;;
  7536. amigaos*)
  7537. case $host_cpu in
  7538. powerpc)
  7539. # see comment about AmigaOS4 .so support
  7540. lt_prog_compiler_pic='-fPIC'
  7541. ;;
  7542. m68k)
  7543. # FIXME: we need at least 68020 code to build shared libraries, but
  7544. # adding the `-m68020' flag to GCC prevents building anything better,
  7545. # like `-m68040'.
  7546. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7547. ;;
  7548. esac
  7549. ;;
  7550. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7551. # PIC is the default for these OSes.
  7552. ;;
  7553. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7554. # This hack is so that the source file can tell whether it is being
  7555. # built for inclusion in a dll (and should export symbols for example).
  7556. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7557. # (--disable-auto-import) libraries
  7558. lt_prog_compiler_pic='-DDLL_EXPORT'
  7559. ;;
  7560. darwin* | rhapsody*)
  7561. # PIC is the default on this platform
  7562. # Common symbols not allowed in MH_DYLIB files
  7563. lt_prog_compiler_pic='-fno-common'
  7564. ;;
  7565. haiku*)
  7566. # PIC is the default for Haiku.
  7567. # The "-static" flag exists, but is broken.
  7568. lt_prog_compiler_static=
  7569. ;;
  7570. hpux*)
  7571. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7572. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7573. # sets the default TLS model and affects inlining.
  7574. case $host_cpu in
  7575. hppa*64*)
  7576. # +Z the default
  7577. ;;
  7578. *)
  7579. lt_prog_compiler_pic='-fPIC'
  7580. ;;
  7581. esac
  7582. ;;
  7583. interix[3-9]*)
  7584. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7585. # Instead, we relocate shared libraries at runtime.
  7586. ;;
  7587. msdosdjgpp*)
  7588. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7589. # on systems that don't support them.
  7590. lt_prog_compiler_can_build_shared=no
  7591. enable_shared=no
  7592. ;;
  7593. *nto* | *qnx*)
  7594. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7595. # it will coredump.
  7596. lt_prog_compiler_pic='-fPIC -shared'
  7597. ;;
  7598. sysv4*MP*)
  7599. if test -d /usr/nec; then
  7600. lt_prog_compiler_pic=-Kconform_pic
  7601. fi
  7602. ;;
  7603. *)
  7604. lt_prog_compiler_pic='-fPIC'
  7605. ;;
  7606. esac
  7607. case $cc_basename in
  7608. nvcc*) # Cuda Compiler Driver 2.2
  7609. lt_prog_compiler_wl='-Xlinker '
  7610. if test -n "$lt_prog_compiler_pic"; then
  7611. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7612. fi
  7613. ;;
  7614. esac
  7615. else
  7616. # PORTME Check for flag to pass linker flags through the system compiler.
  7617. case $host_os in
  7618. aix*)
  7619. lt_prog_compiler_wl='-Wl,'
  7620. if test "$host_cpu" = ia64; then
  7621. # AIX 5 now supports IA64 processor
  7622. lt_prog_compiler_static='-Bstatic'
  7623. else
  7624. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7625. fi
  7626. ;;
  7627. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7628. # This hack is so that the source file can tell whether it is being
  7629. # built for inclusion in a dll (and should export symbols for example).
  7630. lt_prog_compiler_pic='-DDLL_EXPORT'
  7631. ;;
  7632. hpux9* | hpux10* | hpux11*)
  7633. lt_prog_compiler_wl='-Wl,'
  7634. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7635. # not for PA HP-UX.
  7636. case $host_cpu in
  7637. hppa*64*|ia64*)
  7638. # +Z the default
  7639. ;;
  7640. *)
  7641. lt_prog_compiler_pic='+Z'
  7642. ;;
  7643. esac
  7644. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7645. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7646. ;;
  7647. irix5* | irix6* | nonstopux*)
  7648. lt_prog_compiler_wl='-Wl,'
  7649. # PIC (with -KPIC) is the default.
  7650. lt_prog_compiler_static='-non_shared'
  7651. ;;
  7652. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7653. case $cc_basename in
  7654. # old Intel for x86_64 which still supported -KPIC.
  7655. ecc*)
  7656. lt_prog_compiler_wl='-Wl,'
  7657. lt_prog_compiler_pic='-KPIC'
  7658. lt_prog_compiler_static='-static'
  7659. ;;
  7660. # icc used to be incompatible with GCC.
  7661. # ICC 10 doesn't accept -KPIC any more.
  7662. icc* | ifort*)
  7663. lt_prog_compiler_wl='-Wl,'
  7664. lt_prog_compiler_pic='-fPIC'
  7665. lt_prog_compiler_static='-static'
  7666. ;;
  7667. # Lahey Fortran 8.1.
  7668. lf95*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. lt_prog_compiler_pic='--shared'
  7671. lt_prog_compiler_static='--static'
  7672. ;;
  7673. nagfor*)
  7674. # NAG Fortran compiler
  7675. lt_prog_compiler_wl='-Wl,-Wl,,'
  7676. lt_prog_compiler_pic='-PIC'
  7677. lt_prog_compiler_static='-Bstatic'
  7678. ;;
  7679. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7680. # Portland Group compilers (*not* the Pentium gcc compiler,
  7681. # which looks to be a dead project)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-fpic'
  7684. lt_prog_compiler_static='-Bstatic'
  7685. ;;
  7686. ccc*)
  7687. lt_prog_compiler_wl='-Wl,'
  7688. # All Alpha code is PIC.
  7689. lt_prog_compiler_static='-non_shared'
  7690. ;;
  7691. xl* | bgxl* | bgf* | mpixl*)
  7692. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7693. lt_prog_compiler_wl='-Wl,'
  7694. lt_prog_compiler_pic='-qpic'
  7695. lt_prog_compiler_static='-qstaticlink'
  7696. ;;
  7697. *)
  7698. case `$CC -V 2>&1 | sed 5q` in
  7699. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7700. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7701. lt_prog_compiler_pic='-KPIC'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. lt_prog_compiler_wl=''
  7704. ;;
  7705. *Sun\ F* | *Sun*Fortran*)
  7706. lt_prog_compiler_pic='-KPIC'
  7707. lt_prog_compiler_static='-Bstatic'
  7708. lt_prog_compiler_wl='-Qoption ld '
  7709. ;;
  7710. *Sun\ C*)
  7711. # Sun C 5.9
  7712. lt_prog_compiler_pic='-KPIC'
  7713. lt_prog_compiler_static='-Bstatic'
  7714. lt_prog_compiler_wl='-Wl,'
  7715. ;;
  7716. *Intel*\ [CF]*Compiler*)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. lt_prog_compiler_pic='-fPIC'
  7719. lt_prog_compiler_static='-static'
  7720. ;;
  7721. *Portland\ Group*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. lt_prog_compiler_pic='-fpic'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. ;;
  7726. esac
  7727. ;;
  7728. esac
  7729. ;;
  7730. newsos6)
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. ;;
  7734. *nto* | *qnx*)
  7735. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7736. # it will coredump.
  7737. lt_prog_compiler_pic='-fPIC -shared'
  7738. ;;
  7739. osf3* | osf4* | osf5*)
  7740. lt_prog_compiler_wl='-Wl,'
  7741. # All OSF/1 code is PIC.
  7742. lt_prog_compiler_static='-non_shared'
  7743. ;;
  7744. rdos*)
  7745. lt_prog_compiler_static='-non_shared'
  7746. ;;
  7747. solaris*)
  7748. lt_prog_compiler_pic='-KPIC'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. case $cc_basename in
  7751. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7752. lt_prog_compiler_wl='-Qoption ld ';;
  7753. *)
  7754. lt_prog_compiler_wl='-Wl,';;
  7755. esac
  7756. ;;
  7757. sunos4*)
  7758. lt_prog_compiler_wl='-Qoption ld '
  7759. lt_prog_compiler_pic='-PIC'
  7760. lt_prog_compiler_static='-Bstatic'
  7761. ;;
  7762. sysv4 | sysv4.2uw2* | sysv4.3*)
  7763. lt_prog_compiler_wl='-Wl,'
  7764. lt_prog_compiler_pic='-KPIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. ;;
  7767. sysv4*MP*)
  7768. if test -d /usr/nec ;then
  7769. lt_prog_compiler_pic='-Kconform_pic'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. fi
  7772. ;;
  7773. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='-KPIC'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. ;;
  7778. unicos*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_can_build_shared=no
  7781. ;;
  7782. uts4*)
  7783. lt_prog_compiler_pic='-pic'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. *)
  7787. lt_prog_compiler_can_build_shared=no
  7788. ;;
  7789. esac
  7790. fi
  7791. case $host_os in
  7792. # For platforms which do not support PIC, -DPIC is meaningless:
  7793. *djgpp*)
  7794. lt_prog_compiler_pic=
  7795. ;;
  7796. *)
  7797. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7798. ;;
  7799. esac
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7801. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7802. if ${lt_cv_prog_compiler_pic+:} false; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7808. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7809. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7810. #
  7811. # Check to make sure the PIC flag actually works.
  7812. #
  7813. if test -n "$lt_prog_compiler_pic"; then
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7815. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7816. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. lt_cv_prog_compiler_pic_works=no
  7820. ac_outfile=conftest.$ac_objext
  7821. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7822. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7823. # Insert the option either (1) after the last *FLAGS variable, or
  7824. # (2) before a word containing "conftest.", or (3) at the end.
  7825. # Note that $ac_compile itself does not contain backslashes and begins
  7826. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7827. # The option is referenced via a variable to avoid confusing sed.
  7828. lt_compile=`echo "$ac_compile" | $SED \
  7829. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7830. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7831. -e 's:$: $lt_compiler_flag:'`
  7832. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7833. (eval "$lt_compile" 2>conftest.err)
  7834. ac_status=$?
  7835. cat conftest.err >&5
  7836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837. if (exit $ac_status) && test -s "$ac_outfile"; then
  7838. # The compiler can only warn and ignore the option if not recognized
  7839. # So say no if there are warnings other than the usual output.
  7840. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7841. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7842. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7843. lt_cv_prog_compiler_pic_works=yes
  7844. fi
  7845. fi
  7846. $RM conftest*
  7847. fi
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7849. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7850. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7851. case $lt_prog_compiler_pic in
  7852. "" | " "*) ;;
  7853. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7854. esac
  7855. else
  7856. lt_prog_compiler_pic=
  7857. lt_prog_compiler_can_build_shared=no
  7858. fi
  7859. fi
  7860. #
  7861. # Check to make sure the static flag actually works.
  7862. #
  7863. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7865. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7866. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7867. $as_echo_n "(cached) " >&6
  7868. else
  7869. lt_cv_prog_compiler_static_works=no
  7870. save_LDFLAGS="$LDFLAGS"
  7871. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7872. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7873. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7874. # The linker can only warn and ignore the option if not recognized
  7875. # So say no if there are warnings
  7876. if test -s conftest.err; then
  7877. # Append any errors to the config.log.
  7878. cat conftest.err 1>&5
  7879. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7880. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7881. if diff conftest.exp conftest.er2 >/dev/null; then
  7882. lt_cv_prog_compiler_static_works=yes
  7883. fi
  7884. else
  7885. lt_cv_prog_compiler_static_works=yes
  7886. fi
  7887. fi
  7888. $RM -r conftest*
  7889. LDFLAGS="$save_LDFLAGS"
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7892. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7893. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7894. :
  7895. else
  7896. lt_prog_compiler_static=
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7899. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7900. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7901. $as_echo_n "(cached) " >&6
  7902. else
  7903. lt_cv_prog_compiler_c_o=no
  7904. $RM -r conftest 2>/dev/null
  7905. mkdir conftest
  7906. cd conftest
  7907. mkdir out
  7908. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7909. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7910. # Insert the option either (1) after the last *FLAGS variable, or
  7911. # (2) before a word containing "conftest.", or (3) at the end.
  7912. # Note that $ac_compile itself does not contain backslashes and begins
  7913. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7914. lt_compile=`echo "$ac_compile" | $SED \
  7915. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7916. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7917. -e 's:$: $lt_compiler_flag:'`
  7918. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7919. (eval "$lt_compile" 2>out/conftest.err)
  7920. ac_status=$?
  7921. cat out/conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7924. then
  7925. # The compiler can only warn and ignore the option if not recognized
  7926. # So say no if there are warnings
  7927. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7928. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7929. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7930. lt_cv_prog_compiler_c_o=yes
  7931. fi
  7932. fi
  7933. chmod u+w . 2>&5
  7934. $RM conftest*
  7935. # SGI C++ compiler will create directory out/ii_files/ for
  7936. # template instantiation
  7937. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7938. $RM out/* && rmdir out
  7939. cd ..
  7940. $RM -r conftest
  7941. $RM conftest*
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7944. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7946. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7947. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_c_o=no
  7951. $RM -r conftest 2>/dev/null
  7952. mkdir conftest
  7953. cd conftest
  7954. mkdir out
  7955. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7956. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7957. # Insert the option either (1) after the last *FLAGS variable, or
  7958. # (2) before a word containing "conftest.", or (3) at the end.
  7959. # Note that $ac_compile itself does not contain backslashes and begins
  7960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>out/conftest.err)
  7967. ac_status=$?
  7968. cat out/conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7971. then
  7972. # The compiler can only warn and ignore the option if not recognized
  7973. # So say no if there are warnings
  7974. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7975. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7976. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7977. lt_cv_prog_compiler_c_o=yes
  7978. fi
  7979. fi
  7980. chmod u+w . 2>&5
  7981. $RM conftest*
  7982. # SGI C++ compiler will create directory out/ii_files/ for
  7983. # template instantiation
  7984. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7985. $RM out/* && rmdir out
  7986. cd ..
  7987. $RM -r conftest
  7988. $RM conftest*
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7991. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7992. hard_links="nottested"
  7993. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7994. # do not overwrite the value of need_locks provided by the user
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7996. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7997. hard_links=yes
  7998. $RM conftest*
  7999. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8000. touch conftest.a
  8001. ln conftest.a conftest.b 2>&5 || hard_links=no
  8002. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8004. $as_echo "$hard_links" >&6; }
  8005. if test "$hard_links" = no; then
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8007. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8008. need_locks=warn
  8009. fi
  8010. else
  8011. need_locks=no
  8012. fi
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8014. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8015. runpath_var=
  8016. allow_undefined_flag=
  8017. always_export_symbols=no
  8018. archive_cmds=
  8019. archive_expsym_cmds=
  8020. compiler_needs_object=no
  8021. enable_shared_with_static_runtimes=no
  8022. export_dynamic_flag_spec=
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8024. hardcode_automatic=no
  8025. hardcode_direct=no
  8026. hardcode_direct_absolute=no
  8027. hardcode_libdir_flag_spec=
  8028. hardcode_libdir_separator=
  8029. hardcode_minus_L=no
  8030. hardcode_shlibpath_var=unsupported
  8031. inherit_rpath=no
  8032. link_all_deplibs=unknown
  8033. module_cmds=
  8034. module_expsym_cmds=
  8035. old_archive_from_new_cmds=
  8036. old_archive_from_expsyms_cmds=
  8037. thread_safe_flag_spec=
  8038. whole_archive_flag_spec=
  8039. # include_expsyms should be a list of space-separated symbols to be *always*
  8040. # included in the symbol list
  8041. include_expsyms=
  8042. # exclude_expsyms can be an extended regexp of symbols to exclude
  8043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8045. # as well as any symbol that contains `d'.
  8046. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8048. # platforms (ab)use it in PIC code, but their linkers get confused if
  8049. # the symbol is explicitly referenced. Since portable code cannot
  8050. # rely on this symbol name, it's probably fine to never include it in
  8051. # preloaded symbol tables.
  8052. # Exclude shared library initialization/finalization symbols.
  8053. extract_expsyms_cmds=
  8054. case $host_os in
  8055. cygwin* | mingw* | pw32* | cegcc*)
  8056. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8057. # When not using gcc, we currently assume that we are using
  8058. # Microsoft Visual C++.
  8059. if test "$GCC" != yes; then
  8060. with_gnu_ld=no
  8061. fi
  8062. ;;
  8063. interix*)
  8064. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8065. with_gnu_ld=yes
  8066. ;;
  8067. openbsd*)
  8068. with_gnu_ld=no
  8069. ;;
  8070. esac
  8071. ld_shlibs=yes
  8072. # On some targets, GNU ld is compatible enough with the native linker
  8073. # that we're better off using the native interface for both.
  8074. lt_use_gnu_ld_interface=no
  8075. if test "$with_gnu_ld" = yes; then
  8076. case $host_os in
  8077. aix*)
  8078. # The AIX port of GNU ld has always aspired to compatibility
  8079. # with the native linker. However, as the warning in the GNU ld
  8080. # block says, versions before 2.19.5* couldn't really create working
  8081. # shared libraries, regardless of the interface used.
  8082. case `$LD -v 2>&1` in
  8083. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8084. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8085. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8086. *)
  8087. lt_use_gnu_ld_interface=yes
  8088. ;;
  8089. esac
  8090. ;;
  8091. *)
  8092. lt_use_gnu_ld_interface=yes
  8093. ;;
  8094. esac
  8095. fi
  8096. if test "$lt_use_gnu_ld_interface" = yes; then
  8097. # If archive_cmds runs LD, not CC, wlarc should be empty
  8098. wlarc='${wl}'
  8099. # Set some defaults for GNU ld with shared library support. These
  8100. # are reset later if shared libraries are not supported. Putting them
  8101. # here allows them to be overridden if necessary.
  8102. runpath_var=LD_RUN_PATH
  8103. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8104. export_dynamic_flag_spec='${wl}--export-dynamic'
  8105. # ancient GNU ld didn't support --whole-archive et. al.
  8106. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8107. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8108. else
  8109. whole_archive_flag_spec=
  8110. fi
  8111. supports_anon_versioning=no
  8112. case `$LD -v 2>&1` in
  8113. *GNU\ gold*) supports_anon_versioning=yes ;;
  8114. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8115. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8116. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8117. *\ 2.11.*) ;; # other 2.11 versions
  8118. *) supports_anon_versioning=yes ;;
  8119. esac
  8120. # See if GNU ld supports shared libraries.
  8121. case $host_os in
  8122. aix[3-9]*)
  8123. # On AIX/PPC, the GNU linker is very broken
  8124. if test "$host_cpu" != ia64; then
  8125. ld_shlibs=no
  8126. cat <<_LT_EOF 1>&2
  8127. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8128. *** to be unable to reliably create shared libraries on AIX.
  8129. *** Therefore, libtool is disabling shared libraries support. If you
  8130. *** really care for shared libraries, you may want to install binutils
  8131. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8132. *** You will then need to restart the configuration process.
  8133. _LT_EOF
  8134. fi
  8135. ;;
  8136. amigaos*)
  8137. case $host_cpu in
  8138. powerpc)
  8139. # see comment about AmigaOS4 .so support
  8140. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8141. archive_expsym_cmds=''
  8142. ;;
  8143. m68k)
  8144. 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)'
  8145. hardcode_libdir_flag_spec='-L$libdir'
  8146. hardcode_minus_L=yes
  8147. ;;
  8148. esac
  8149. ;;
  8150. beos*)
  8151. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8152. allow_undefined_flag=unsupported
  8153. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8154. # support --undefined. This deserves some investigation. FIXME
  8155. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8156. else
  8157. ld_shlibs=no
  8158. fi
  8159. ;;
  8160. cygwin* | mingw* | pw32* | cegcc*)
  8161. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8162. # as there is no search path for DLLs.
  8163. hardcode_libdir_flag_spec='-L$libdir'
  8164. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8165. allow_undefined_flag=unsupported
  8166. always_export_symbols=no
  8167. enable_shared_with_static_runtimes=yes
  8168. 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'
  8169. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8170. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8171. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8172. # If the export-symbols file already is a .def file (1st line
  8173. # is EXPORTS), use it as is; otherwise, prepend...
  8174. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8175. cp $export_symbols $output_objdir/$soname.def;
  8176. else
  8177. echo EXPORTS > $output_objdir/$soname.def;
  8178. cat $export_symbols >> $output_objdir/$soname.def;
  8179. fi~
  8180. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8181. else
  8182. ld_shlibs=no
  8183. fi
  8184. ;;
  8185. haiku*)
  8186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8187. link_all_deplibs=yes
  8188. ;;
  8189. interix[3-9]*)
  8190. hardcode_direct=no
  8191. hardcode_shlibpath_var=no
  8192. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8193. export_dynamic_flag_spec='${wl}-E'
  8194. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8195. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8196. # default) and relocated if they conflict, which is a slow very memory
  8197. # consuming and fragmenting process. To avoid this, we pick a random,
  8198. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8199. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8200. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8201. 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'
  8202. ;;
  8203. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8204. tmp_diet=no
  8205. if test "$host_os" = linux-dietlibc; then
  8206. case $cc_basename in
  8207. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8208. esac
  8209. fi
  8210. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8211. && test "$tmp_diet" = no
  8212. then
  8213. tmp_addflag=' $pic_flag'
  8214. tmp_sharedflag='-shared'
  8215. case $cc_basename,$host_cpu in
  8216. pgcc*) # Portland Group C compiler
  8217. 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'
  8218. tmp_addflag=' $pic_flag'
  8219. ;;
  8220. pgf77* | pgf90* | pgf95* | pgfortran*)
  8221. # Portland Group f77 and f90 compilers
  8222. 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'
  8223. tmp_addflag=' $pic_flag -Mnomain' ;;
  8224. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8225. tmp_addflag=' -i_dynamic' ;;
  8226. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8227. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8228. ifc* | ifort*) # Intel Fortran compiler
  8229. tmp_addflag=' -nofor_main' ;;
  8230. lf95*) # Lahey Fortran 8.1
  8231. whole_archive_flag_spec=
  8232. tmp_sharedflag='--shared' ;;
  8233. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8234. tmp_sharedflag='-qmkshrobj'
  8235. tmp_addflag= ;;
  8236. nvcc*) # Cuda Compiler Driver 2.2
  8237. 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'
  8238. compiler_needs_object=yes
  8239. ;;
  8240. esac
  8241. case `$CC -V 2>&1 | sed 5q` in
  8242. *Sun\ C*) # Sun C 5.9
  8243. 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'
  8244. compiler_needs_object=yes
  8245. tmp_sharedflag='-G' ;;
  8246. *Sun\ F*) # Sun Fortran 8.3
  8247. tmp_sharedflag='-G' ;;
  8248. esac
  8249. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8250. if test "x$supports_anon_versioning" = xyes; then
  8251. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8252. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8253. echo "local: *; };" >> $output_objdir/$libname.ver~
  8254. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8255. fi
  8256. case $cc_basename in
  8257. xlf* | bgf* | bgxlf* | mpixlf*)
  8258. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8259. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8260. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8261. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8262. if test "x$supports_anon_versioning" = xyes; then
  8263. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8264. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8265. echo "local: *; };" >> $output_objdir/$libname.ver~
  8266. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8267. fi
  8268. ;;
  8269. esac
  8270. else
  8271. ld_shlibs=no
  8272. fi
  8273. ;;
  8274. netbsd*)
  8275. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8276. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8277. wlarc=
  8278. else
  8279. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8280. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8281. fi
  8282. ;;
  8283. solaris*)
  8284. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8285. ld_shlibs=no
  8286. cat <<_LT_EOF 1>&2
  8287. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8288. *** create shared libraries on Solaris systems. Therefore, libtool
  8289. *** is disabling shared libraries support. We urge you to upgrade GNU
  8290. *** binutils to release 2.9.1 or newer. Another option is to modify
  8291. *** your PATH or compiler configuration so that the native linker is
  8292. *** used, and then restart.
  8293. _LT_EOF
  8294. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8295. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8296. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8297. else
  8298. ld_shlibs=no
  8299. fi
  8300. ;;
  8301. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8302. case `$LD -v 2>&1` in
  8303. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8304. ld_shlibs=no
  8305. cat <<_LT_EOF 1>&2
  8306. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8307. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8308. *** is disabling shared libraries support. We urge you to upgrade GNU
  8309. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8310. *** your PATH or compiler configuration so that the native linker is
  8311. *** used, and then restart.
  8312. _LT_EOF
  8313. ;;
  8314. *)
  8315. # For security reasons, it is highly recommended that you always
  8316. # use absolute paths for naming shared libraries, and exclude the
  8317. # DT_RUNPATH tag from executables and libraries. But doing so
  8318. # requires that you compile everything twice, which is a pain.
  8319. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8320. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8321. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8322. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8323. else
  8324. ld_shlibs=no
  8325. fi
  8326. ;;
  8327. esac
  8328. ;;
  8329. sunos4*)
  8330. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8331. wlarc=
  8332. hardcode_direct=yes
  8333. hardcode_shlibpath_var=no
  8334. ;;
  8335. *)
  8336. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8337. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8338. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8339. else
  8340. ld_shlibs=no
  8341. fi
  8342. ;;
  8343. esac
  8344. if test "$ld_shlibs" = no; then
  8345. runpath_var=
  8346. hardcode_libdir_flag_spec=
  8347. export_dynamic_flag_spec=
  8348. whole_archive_flag_spec=
  8349. fi
  8350. else
  8351. # PORTME fill in a description of your system's linker (not GNU ld)
  8352. case $host_os in
  8353. aix3*)
  8354. allow_undefined_flag=unsupported
  8355. always_export_symbols=yes
  8356. 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'
  8357. # Note: this linker hardcodes the directories in LIBPATH if there
  8358. # are no directories specified by -L.
  8359. hardcode_minus_L=yes
  8360. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8361. # Neither direct hardcoding nor static linking is supported with a
  8362. # broken collect2.
  8363. hardcode_direct=unsupported
  8364. fi
  8365. ;;
  8366. aix[4-9]*)
  8367. if test "$host_cpu" = ia64; then
  8368. # On IA64, the linker does run time linking by default, so we don't
  8369. # have to do anything special.
  8370. aix_use_runtimelinking=no
  8371. exp_sym_flag='-Bexport'
  8372. no_entry_flag=""
  8373. else
  8374. # If we're using GNU nm, then we don't want the "-C" option.
  8375. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8376. # Also, AIX nm treats weak defined symbols like other global
  8377. # defined symbols, whereas GNU nm marks them as "W".
  8378. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8379. 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'
  8380. else
  8381. 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'
  8382. fi
  8383. aix_use_runtimelinking=no
  8384. # Test if we are trying to use run time linking or normal
  8385. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8386. # need to do runtime linking.
  8387. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8388. for ld_flag in $LDFLAGS; do
  8389. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8390. aix_use_runtimelinking=yes
  8391. break
  8392. fi
  8393. done
  8394. ;;
  8395. esac
  8396. exp_sym_flag='-bexport'
  8397. no_entry_flag='-bnoentry'
  8398. fi
  8399. # When large executables or shared objects are built, AIX ld can
  8400. # have problems creating the table of contents. If linking a library
  8401. # or program results in "error TOC overflow" add -mminimal-toc to
  8402. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8403. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8404. archive_cmds=''
  8405. hardcode_direct=yes
  8406. hardcode_direct_absolute=yes
  8407. hardcode_libdir_separator=':'
  8408. link_all_deplibs=yes
  8409. file_list_spec='${wl}-f,'
  8410. if test "$GCC" = yes; then
  8411. case $host_os in aix4.[012]|aix4.[012].*)
  8412. # We only want to do this on AIX 4.2 and lower, the check
  8413. # below for broken collect2 doesn't work under 4.3+
  8414. collect2name=`${CC} -print-prog-name=collect2`
  8415. if test -f "$collect2name" &&
  8416. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8417. then
  8418. # We have reworked collect2
  8419. :
  8420. else
  8421. # We have old collect2
  8422. hardcode_direct=unsupported
  8423. # It fails to find uninstalled libraries when the uninstalled
  8424. # path is not listed in the libpath. Setting hardcode_minus_L
  8425. # to unsupported forces relinking
  8426. hardcode_minus_L=yes
  8427. hardcode_libdir_flag_spec='-L$libdir'
  8428. hardcode_libdir_separator=
  8429. fi
  8430. ;;
  8431. esac
  8432. shared_flag='-shared'
  8433. if test "$aix_use_runtimelinking" = yes; then
  8434. shared_flag="$shared_flag "'${wl}-G'
  8435. fi
  8436. else
  8437. # not using gcc
  8438. if test "$host_cpu" = ia64; then
  8439. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8440. # chokes on -Wl,-G. The following line is correct:
  8441. shared_flag='-G'
  8442. else
  8443. if test "$aix_use_runtimelinking" = yes; then
  8444. shared_flag='${wl}-G'
  8445. else
  8446. shared_flag='${wl}-bM:SRE'
  8447. fi
  8448. fi
  8449. fi
  8450. export_dynamic_flag_spec='${wl}-bexpall'
  8451. # It seems that -bexpall does not export symbols beginning with
  8452. # underscore (_), so it is better to generate a list of symbols to export.
  8453. always_export_symbols=yes
  8454. if test "$aix_use_runtimelinking" = yes; then
  8455. # Warning - without using the other runtime loading flags (-brtl),
  8456. # -berok will link without error, but may produce a broken library.
  8457. allow_undefined_flag='-berok'
  8458. # Determine the default libpath from the value encoded in an
  8459. # empty executable.
  8460. if test "${lt_cv_aix_libpath+set}" = set; then
  8461. aix_libpath=$lt_cv_aix_libpath
  8462. else
  8463. if ${lt_cv_aix_libpath_+:} false; then :
  8464. $as_echo_n "(cached) " >&6
  8465. else
  8466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8467. /* end confdefs.h. */
  8468. int
  8469. main ()
  8470. {
  8471. ;
  8472. return 0;
  8473. }
  8474. _ACEOF
  8475. if ac_fn_c_try_link "$LINENO"; then :
  8476. lt_aix_libpath_sed='
  8477. /Import File Strings/,/^$/ {
  8478. /^0/ {
  8479. s/^0 *\([^ ]*\) *$/\1/
  8480. p
  8481. }
  8482. }'
  8483. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8484. # Check for a 64-bit object if we didn't find anything.
  8485. if test -z "$lt_cv_aix_libpath_"; then
  8486. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8487. fi
  8488. fi
  8489. rm -f core conftest.err conftest.$ac_objext \
  8490. conftest$ac_exeext conftest.$ac_ext
  8491. if test -z "$lt_cv_aix_libpath_"; then
  8492. lt_cv_aix_libpath_="/usr/lib:/lib"
  8493. fi
  8494. fi
  8495. aix_libpath=$lt_cv_aix_libpath_
  8496. fi
  8497. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8498. 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"
  8499. else
  8500. if test "$host_cpu" = ia64; then
  8501. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8502. allow_undefined_flag="-z nodefs"
  8503. 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"
  8504. else
  8505. # Determine the default libpath from the value encoded in an
  8506. # empty executable.
  8507. if test "${lt_cv_aix_libpath+set}" = set; then
  8508. aix_libpath=$lt_cv_aix_libpath
  8509. else
  8510. if ${lt_cv_aix_libpath_+:} false; then :
  8511. $as_echo_n "(cached) " >&6
  8512. else
  8513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8514. /* end confdefs.h. */
  8515. int
  8516. main ()
  8517. {
  8518. ;
  8519. return 0;
  8520. }
  8521. _ACEOF
  8522. if ac_fn_c_try_link "$LINENO"; then :
  8523. lt_aix_libpath_sed='
  8524. /Import File Strings/,/^$/ {
  8525. /^0/ {
  8526. s/^0 *\([^ ]*\) *$/\1/
  8527. p
  8528. }
  8529. }'
  8530. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8531. # Check for a 64-bit object if we didn't find anything.
  8532. if test -z "$lt_cv_aix_libpath_"; then
  8533. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8534. fi
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext \
  8537. conftest$ac_exeext conftest.$ac_ext
  8538. if test -z "$lt_cv_aix_libpath_"; then
  8539. lt_cv_aix_libpath_="/usr/lib:/lib"
  8540. fi
  8541. fi
  8542. aix_libpath=$lt_cv_aix_libpath_
  8543. fi
  8544. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8545. # Warning - without using the other run time loading flags,
  8546. # -berok will link without error, but may produce a broken library.
  8547. no_undefined_flag=' ${wl}-bernotok'
  8548. allow_undefined_flag=' ${wl}-berok'
  8549. if test "$with_gnu_ld" = yes; then
  8550. # We only use this code for GNU lds that support --whole-archive.
  8551. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8552. else
  8553. # Exported symbols can be pulled into shared objects from archives
  8554. whole_archive_flag_spec='$convenience'
  8555. fi
  8556. archive_cmds_need_lc=yes
  8557. # This is similar to how AIX traditionally builds its shared libraries.
  8558. 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'
  8559. fi
  8560. fi
  8561. ;;
  8562. amigaos*)
  8563. case $host_cpu in
  8564. powerpc)
  8565. # see comment about AmigaOS4 .so support
  8566. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8567. archive_expsym_cmds=''
  8568. ;;
  8569. m68k)
  8570. 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)'
  8571. hardcode_libdir_flag_spec='-L$libdir'
  8572. hardcode_minus_L=yes
  8573. ;;
  8574. esac
  8575. ;;
  8576. bsdi[45]*)
  8577. export_dynamic_flag_spec=-rdynamic
  8578. ;;
  8579. cygwin* | mingw* | pw32* | cegcc*)
  8580. # When not using gcc, we currently assume that we are using
  8581. # Microsoft Visual C++.
  8582. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8583. # no search path for DLLs.
  8584. case $cc_basename in
  8585. cl*)
  8586. # Native MSVC
  8587. hardcode_libdir_flag_spec=' '
  8588. allow_undefined_flag=unsupported
  8589. always_export_symbols=yes
  8590. file_list_spec='@'
  8591. # Tell ltmain to make .lib files, not .a files.
  8592. libext=lib
  8593. # Tell ltmain to make .dll files, not .so files.
  8594. shrext_cmds=".dll"
  8595. # FIXME: Setting linknames here is a bad hack.
  8596. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8597. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8598. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8599. else
  8600. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8601. fi~
  8602. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8603. linknames='
  8604. # The linker will not automatically build a static lib if we build a DLL.
  8605. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8606. enable_shared_with_static_runtimes=yes
  8607. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8608. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8609. # Don't use ranlib
  8610. old_postinstall_cmds='chmod 644 $oldlib'
  8611. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8612. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8613. case $lt_outputfile in
  8614. *.exe|*.EXE) ;;
  8615. *)
  8616. lt_outputfile="$lt_outputfile.exe"
  8617. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8618. ;;
  8619. esac~
  8620. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8621. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8622. $RM "$lt_outputfile.manifest";
  8623. fi'
  8624. ;;
  8625. *)
  8626. # Assume MSVC wrapper
  8627. hardcode_libdir_flag_spec=' '
  8628. allow_undefined_flag=unsupported
  8629. # Tell ltmain to make .lib files, not .a files.
  8630. libext=lib
  8631. # Tell ltmain to make .dll files, not .so files.
  8632. shrext_cmds=".dll"
  8633. # FIXME: Setting linknames here is a bad hack.
  8634. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8635. # The linker will automatically build a .lib file if we build a DLL.
  8636. old_archive_from_new_cmds='true'
  8637. # FIXME: Should let the user specify the lib program.
  8638. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8639. enable_shared_with_static_runtimes=yes
  8640. ;;
  8641. esac
  8642. ;;
  8643. darwin* | rhapsody*)
  8644. archive_cmds_need_lc=no
  8645. hardcode_direct=no
  8646. hardcode_automatic=yes
  8647. hardcode_shlibpath_var=unsupported
  8648. if test "$lt_cv_ld_force_load" = "yes"; then
  8649. 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\"`'
  8650. else
  8651. whole_archive_flag_spec=''
  8652. fi
  8653. link_all_deplibs=yes
  8654. allow_undefined_flag="$_lt_dar_allow_undefined"
  8655. case $cc_basename in
  8656. ifort*) _lt_dar_can_shared=yes ;;
  8657. *) _lt_dar_can_shared=$GCC ;;
  8658. esac
  8659. if test "$_lt_dar_can_shared" = "yes"; then
  8660. output_verbose_link_cmd=func_echo_all
  8661. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8662. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8663. 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}"
  8664. 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}"
  8665. else
  8666. ld_shlibs=no
  8667. fi
  8668. ;;
  8669. dgux*)
  8670. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8671. hardcode_libdir_flag_spec='-L$libdir'
  8672. hardcode_shlibpath_var=no
  8673. ;;
  8674. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8675. # support. Future versions do this automatically, but an explicit c++rt0.o
  8676. # does not break anything, and helps significantly (at the cost of a little
  8677. # extra space).
  8678. freebsd2.2*)
  8679. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8680. hardcode_libdir_flag_spec='-R$libdir'
  8681. hardcode_direct=yes
  8682. hardcode_shlibpath_var=no
  8683. ;;
  8684. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8685. freebsd2.*)
  8686. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8687. hardcode_direct=yes
  8688. hardcode_minus_L=yes
  8689. hardcode_shlibpath_var=no
  8690. ;;
  8691. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8692. freebsd* | dragonfly*)
  8693. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8694. hardcode_libdir_flag_spec='-R$libdir'
  8695. hardcode_direct=yes
  8696. hardcode_shlibpath_var=no
  8697. ;;
  8698. hpux9*)
  8699. if test "$GCC" = yes; then
  8700. 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'
  8701. else
  8702. 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'
  8703. fi
  8704. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8705. hardcode_libdir_separator=:
  8706. hardcode_direct=yes
  8707. # hardcode_minus_L: Not really in the search PATH,
  8708. # but as the default location of the library.
  8709. hardcode_minus_L=yes
  8710. export_dynamic_flag_spec='${wl}-E'
  8711. ;;
  8712. hpux10*)
  8713. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8714. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8715. else
  8716. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8717. fi
  8718. if test "$with_gnu_ld" = no; then
  8719. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8720. hardcode_libdir_separator=:
  8721. hardcode_direct=yes
  8722. hardcode_direct_absolute=yes
  8723. export_dynamic_flag_spec='${wl}-E'
  8724. # hardcode_minus_L: Not really in the search PATH,
  8725. # but as the default location of the library.
  8726. hardcode_minus_L=yes
  8727. fi
  8728. ;;
  8729. hpux11*)
  8730. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8731. case $host_cpu in
  8732. hppa*64*)
  8733. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8734. ;;
  8735. ia64*)
  8736. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8737. ;;
  8738. *)
  8739. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8740. ;;
  8741. esac
  8742. else
  8743. case $host_cpu in
  8744. hppa*64*)
  8745. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8746. ;;
  8747. ia64*)
  8748. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8749. ;;
  8750. *)
  8751. # Older versions of the 11.00 compiler do not understand -b yet
  8752. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8754. $as_echo_n "checking if $CC understands -b... " >&6; }
  8755. if ${lt_cv_prog_compiler__b+:} false; then :
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. lt_cv_prog_compiler__b=no
  8759. save_LDFLAGS="$LDFLAGS"
  8760. LDFLAGS="$LDFLAGS -b"
  8761. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8762. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8763. # The linker can only warn and ignore the option if not recognized
  8764. # So say no if there are warnings
  8765. if test -s conftest.err; then
  8766. # Append any errors to the config.log.
  8767. cat conftest.err 1>&5
  8768. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8769. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8770. if diff conftest.exp conftest.er2 >/dev/null; then
  8771. lt_cv_prog_compiler__b=yes
  8772. fi
  8773. else
  8774. lt_cv_prog_compiler__b=yes
  8775. fi
  8776. fi
  8777. $RM -r conftest*
  8778. LDFLAGS="$save_LDFLAGS"
  8779. fi
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8781. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8782. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8783. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8784. else
  8785. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8786. fi
  8787. ;;
  8788. esac
  8789. fi
  8790. if test "$with_gnu_ld" = no; then
  8791. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8792. hardcode_libdir_separator=:
  8793. case $host_cpu in
  8794. hppa*64*|ia64*)
  8795. hardcode_direct=no
  8796. hardcode_shlibpath_var=no
  8797. ;;
  8798. *)
  8799. hardcode_direct=yes
  8800. hardcode_direct_absolute=yes
  8801. export_dynamic_flag_spec='${wl}-E'
  8802. # hardcode_minus_L: Not really in the search PATH,
  8803. # but as the default location of the library.
  8804. hardcode_minus_L=yes
  8805. ;;
  8806. esac
  8807. fi
  8808. ;;
  8809. irix5* | irix6* | nonstopux*)
  8810. if test "$GCC" = yes; then
  8811. 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'
  8812. # Try to use the -exported_symbol ld option, if it does not
  8813. # work, assume that -exports_file does not work either and
  8814. # implicitly export all symbols.
  8815. # This should be the same for all languages, so no per-tag cache variable.
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8817. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8818. if ${lt_cv_irix_exported_symbol+:} false; then :
  8819. $as_echo_n "(cached) " >&6
  8820. else
  8821. save_LDFLAGS="$LDFLAGS"
  8822. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8824. /* end confdefs.h. */
  8825. int foo (void) { return 0; }
  8826. _ACEOF
  8827. if ac_fn_c_try_link "$LINENO"; then :
  8828. lt_cv_irix_exported_symbol=yes
  8829. else
  8830. lt_cv_irix_exported_symbol=no
  8831. fi
  8832. rm -f core conftest.err conftest.$ac_objext \
  8833. conftest$ac_exeext conftest.$ac_ext
  8834. LDFLAGS="$save_LDFLAGS"
  8835. fi
  8836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8837. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8838. if test "$lt_cv_irix_exported_symbol" = yes; then
  8839. 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'
  8840. fi
  8841. else
  8842. 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'
  8843. 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'
  8844. fi
  8845. archive_cmds_need_lc='no'
  8846. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8847. hardcode_libdir_separator=:
  8848. inherit_rpath=yes
  8849. link_all_deplibs=yes
  8850. ;;
  8851. netbsd*)
  8852. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8853. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8854. else
  8855. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8856. fi
  8857. hardcode_libdir_flag_spec='-R$libdir'
  8858. hardcode_direct=yes
  8859. hardcode_shlibpath_var=no
  8860. ;;
  8861. newsos6)
  8862. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8863. hardcode_direct=yes
  8864. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8865. hardcode_libdir_separator=:
  8866. hardcode_shlibpath_var=no
  8867. ;;
  8868. *nto* | *qnx*)
  8869. ;;
  8870. openbsd*)
  8871. if test -f /usr/libexec/ld.so; then
  8872. hardcode_direct=yes
  8873. hardcode_shlibpath_var=no
  8874. hardcode_direct_absolute=yes
  8875. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8876. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8877. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8878. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8879. export_dynamic_flag_spec='${wl}-E'
  8880. else
  8881. case $host_os in
  8882. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8883. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8884. hardcode_libdir_flag_spec='-R$libdir'
  8885. ;;
  8886. *)
  8887. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8888. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8889. ;;
  8890. esac
  8891. fi
  8892. else
  8893. ld_shlibs=no
  8894. fi
  8895. ;;
  8896. os2*)
  8897. hardcode_libdir_flag_spec='-L$libdir'
  8898. hardcode_minus_L=yes
  8899. allow_undefined_flag=unsupported
  8900. 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'
  8901. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8902. ;;
  8903. osf3*)
  8904. if test "$GCC" = yes; then
  8905. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8906. 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'
  8907. else
  8908. allow_undefined_flag=' -expect_unresolved \*'
  8909. 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'
  8910. fi
  8911. archive_cmds_need_lc='no'
  8912. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8913. hardcode_libdir_separator=:
  8914. ;;
  8915. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8916. if test "$GCC" = yes; then
  8917. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8918. 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'
  8919. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8920. else
  8921. allow_undefined_flag=' -expect_unresolved \*'
  8922. 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'
  8923. 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~
  8924. $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'
  8925. # Both c and cxx compiler support -rpath directly
  8926. hardcode_libdir_flag_spec='-rpath $libdir'
  8927. fi
  8928. archive_cmds_need_lc='no'
  8929. hardcode_libdir_separator=:
  8930. ;;
  8931. solaris*)
  8932. no_undefined_flag=' -z defs'
  8933. if test "$GCC" = yes; then
  8934. wlarc='${wl}'
  8935. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8936. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8937. $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'
  8938. else
  8939. case `$CC -V 2>&1` in
  8940. *"Compilers 5.0"*)
  8941. wlarc=''
  8942. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8943. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8944. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8945. ;;
  8946. *)
  8947. wlarc='${wl}'
  8948. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8950. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8951. ;;
  8952. esac
  8953. fi
  8954. hardcode_libdir_flag_spec='-R$libdir'
  8955. hardcode_shlibpath_var=no
  8956. case $host_os in
  8957. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8958. *)
  8959. # The compiler driver will combine and reorder linker options,
  8960. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8961. # but is careful enough not to reorder.
  8962. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8963. if test "$GCC" = yes; then
  8964. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8965. else
  8966. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8967. fi
  8968. ;;
  8969. esac
  8970. link_all_deplibs=yes
  8971. ;;
  8972. sunos4*)
  8973. if test "x$host_vendor" = xsequent; then
  8974. # Use $CC to link under sequent, because it throws in some extra .o
  8975. # files that make .init and .fini sections work.
  8976. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8977. else
  8978. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8979. fi
  8980. hardcode_libdir_flag_spec='-L$libdir'
  8981. hardcode_direct=yes
  8982. hardcode_minus_L=yes
  8983. hardcode_shlibpath_var=no
  8984. ;;
  8985. sysv4)
  8986. case $host_vendor in
  8987. sni)
  8988. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8989. hardcode_direct=yes # is this really true???
  8990. ;;
  8991. siemens)
  8992. ## LD is ld it makes a PLAMLIB
  8993. ## CC just makes a GrossModule.
  8994. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8995. reload_cmds='$CC -r -o $output$reload_objs'
  8996. hardcode_direct=no
  8997. ;;
  8998. motorola)
  8999. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9000. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9001. ;;
  9002. esac
  9003. runpath_var='LD_RUN_PATH'
  9004. hardcode_shlibpath_var=no
  9005. ;;
  9006. sysv4.3*)
  9007. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9008. hardcode_shlibpath_var=no
  9009. export_dynamic_flag_spec='-Bexport'
  9010. ;;
  9011. sysv4*MP*)
  9012. if test -d /usr/nec; then
  9013. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9014. hardcode_shlibpath_var=no
  9015. runpath_var=LD_RUN_PATH
  9016. hardcode_runpath_var=yes
  9017. ld_shlibs=yes
  9018. fi
  9019. ;;
  9020. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9021. no_undefined_flag='${wl}-z,text'
  9022. archive_cmds_need_lc=no
  9023. hardcode_shlibpath_var=no
  9024. runpath_var='LD_RUN_PATH'
  9025. if test "$GCC" = yes; then
  9026. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9027. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9028. else
  9029. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9030. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9031. fi
  9032. ;;
  9033. sysv5* | sco3.2v5* | sco5v6*)
  9034. # Note: We can NOT use -z defs as we might desire, because we do not
  9035. # link with -lc, and that would cause any symbols used from libc to
  9036. # always be unresolved, which means just about no library would
  9037. # ever link correctly. If we're not using GNU ld we use -z text
  9038. # though, which does catch some bad symbols but isn't as heavy-handed
  9039. # as -z defs.
  9040. no_undefined_flag='${wl}-z,text'
  9041. allow_undefined_flag='${wl}-z,nodefs'
  9042. archive_cmds_need_lc=no
  9043. hardcode_shlibpath_var=no
  9044. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9045. hardcode_libdir_separator=':'
  9046. link_all_deplibs=yes
  9047. export_dynamic_flag_spec='${wl}-Bexport'
  9048. runpath_var='LD_RUN_PATH'
  9049. if test "$GCC" = yes; then
  9050. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9051. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9052. else
  9053. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9054. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9055. fi
  9056. ;;
  9057. uts4*)
  9058. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9059. hardcode_libdir_flag_spec='-L$libdir'
  9060. hardcode_shlibpath_var=no
  9061. ;;
  9062. *)
  9063. ld_shlibs=no
  9064. ;;
  9065. esac
  9066. if test x$host_vendor = xsni; then
  9067. case $host in
  9068. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9069. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9070. ;;
  9071. esac
  9072. fi
  9073. fi
  9074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9075. $as_echo "$ld_shlibs" >&6; }
  9076. test "$ld_shlibs" = no && can_build_shared=no
  9077. with_gnu_ld=$with_gnu_ld
  9078. #
  9079. # Do we need to explicitly link libc?
  9080. #
  9081. case "x$archive_cmds_need_lc" in
  9082. x|xyes)
  9083. # Assume -lc should be added
  9084. archive_cmds_need_lc=yes
  9085. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9086. case $archive_cmds in
  9087. *'~'*)
  9088. # FIXME: we may have to deal with multi-command sequences.
  9089. ;;
  9090. '$CC '*)
  9091. # Test whether the compiler implicitly links with -lc since on some
  9092. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9093. # to ld, don't add -lc before -lgcc.
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9095. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9096. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9097. $as_echo_n "(cached) " >&6
  9098. else
  9099. $RM conftest*
  9100. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9102. (eval $ac_compile) 2>&5
  9103. ac_status=$?
  9104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9105. test $ac_status = 0; } 2>conftest.err; then
  9106. soname=conftest
  9107. lib=conftest
  9108. libobjs=conftest.$ac_objext
  9109. deplibs=
  9110. wl=$lt_prog_compiler_wl
  9111. pic_flag=$lt_prog_compiler_pic
  9112. compiler_flags=-v
  9113. linker_flags=-v
  9114. verstring=
  9115. output_objdir=.
  9116. libname=conftest
  9117. lt_save_allow_undefined_flag=$allow_undefined_flag
  9118. allow_undefined_flag=
  9119. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9120. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9121. ac_status=$?
  9122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9123. test $ac_status = 0; }
  9124. then
  9125. lt_cv_archive_cmds_need_lc=no
  9126. else
  9127. lt_cv_archive_cmds_need_lc=yes
  9128. fi
  9129. allow_undefined_flag=$lt_save_allow_undefined_flag
  9130. else
  9131. cat conftest.err 1>&5
  9132. fi
  9133. $RM conftest*
  9134. fi
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9136. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9137. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9138. ;;
  9139. esac
  9140. fi
  9141. ;;
  9142. esac
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9144. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9145. if test "$GCC" = yes; then
  9146. case $host_os in
  9147. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9148. *) lt_awk_arg="/^libraries:/" ;;
  9149. esac
  9150. case $host_os in
  9151. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9152. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9153. esac
  9154. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9155. case $lt_search_path_spec in
  9156. *\;*)
  9157. # if the path contains ";" then we assume it to be the separator
  9158. # otherwise default to the standard path separator (i.e. ":") - it is
  9159. # assumed that no part of a normal pathname contains ";" but that should
  9160. # okay in the real world where ";" in dirpaths is itself problematic.
  9161. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9162. ;;
  9163. *)
  9164. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9165. ;;
  9166. esac
  9167. # Ok, now we have the path, separated by spaces, we can step through it
  9168. # and add multilib dir if necessary.
  9169. lt_tmp_lt_search_path_spec=
  9170. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9171. for lt_sys_path in $lt_search_path_spec; do
  9172. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9173. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9174. else
  9175. test -d "$lt_sys_path" && \
  9176. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9177. fi
  9178. done
  9179. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9180. BEGIN {RS=" "; FS="/|\n";} {
  9181. lt_foo="";
  9182. lt_count=0;
  9183. for (lt_i = NF; lt_i > 0; lt_i--) {
  9184. if ($lt_i != "" && $lt_i != ".") {
  9185. if ($lt_i == "..") {
  9186. lt_count++;
  9187. } else {
  9188. if (lt_count == 0) {
  9189. lt_foo="/" $lt_i lt_foo;
  9190. } else {
  9191. lt_count--;
  9192. }
  9193. }
  9194. }
  9195. }
  9196. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9197. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9198. }'`
  9199. # AWK program above erroneously prepends '/' to C:/dos/paths
  9200. # for these hosts.
  9201. case $host_os in
  9202. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9203. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9204. esac
  9205. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9206. else
  9207. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9208. fi
  9209. library_names_spec=
  9210. libname_spec='lib$name'
  9211. soname_spec=
  9212. shrext_cmds=".so"
  9213. postinstall_cmds=
  9214. postuninstall_cmds=
  9215. finish_cmds=
  9216. finish_eval=
  9217. shlibpath_var=
  9218. shlibpath_overrides_runpath=unknown
  9219. version_type=none
  9220. dynamic_linker="$host_os ld.so"
  9221. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9222. need_lib_prefix=unknown
  9223. hardcode_into_libs=no
  9224. # when you set need_version to no, make sure it does not cause -set_version
  9225. # flags to be left without arguments
  9226. need_version=unknown
  9227. case $host_os in
  9228. aix3*)
  9229. version_type=linux # correct to gnu/linux during the next big refactor
  9230. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9231. shlibpath_var=LIBPATH
  9232. # AIX 3 has no versioning support, so we append a major version to the name.
  9233. soname_spec='${libname}${release}${shared_ext}$major'
  9234. ;;
  9235. aix[4-9]*)
  9236. version_type=linux # correct to gnu/linux during the next big refactor
  9237. need_lib_prefix=no
  9238. need_version=no
  9239. hardcode_into_libs=yes
  9240. if test "$host_cpu" = ia64; then
  9241. # AIX 5 supports IA64
  9242. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9243. shlibpath_var=LD_LIBRARY_PATH
  9244. else
  9245. # With GCC up to 2.95.x, collect2 would create an import file
  9246. # for dependence libraries. The import file would start with
  9247. # the line `#! .'. This would cause the generated library to
  9248. # depend on `.', always an invalid library. This was fixed in
  9249. # development snapshots of GCC prior to 3.0.
  9250. case $host_os in
  9251. aix4 | aix4.[01] | aix4.[01].*)
  9252. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9253. echo ' yes '
  9254. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9255. :
  9256. else
  9257. can_build_shared=no
  9258. fi
  9259. ;;
  9260. esac
  9261. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9262. # soname into executable. Probably we can add versioning support to
  9263. # collect2, so additional links can be useful in future.
  9264. if test "$aix_use_runtimelinking" = yes; then
  9265. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9266. # instead of lib<name>.a to let people know that these are not
  9267. # typical AIX shared libraries.
  9268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9269. else
  9270. # We preserve .a as extension for shared libraries through AIX4.2
  9271. # and later when we are not doing run time linking.
  9272. library_names_spec='${libname}${release}.a $libname.a'
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. fi
  9275. shlibpath_var=LIBPATH
  9276. fi
  9277. ;;
  9278. amigaos*)
  9279. case $host_cpu in
  9280. powerpc)
  9281. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9282. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9284. ;;
  9285. m68k)
  9286. library_names_spec='$libname.ixlibrary $libname.a'
  9287. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9288. 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'
  9289. ;;
  9290. esac
  9291. ;;
  9292. beos*)
  9293. library_names_spec='${libname}${shared_ext}'
  9294. dynamic_linker="$host_os ld.so"
  9295. shlibpath_var=LIBRARY_PATH
  9296. ;;
  9297. bsdi[45]*)
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. need_version=no
  9300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9301. soname_spec='${libname}${release}${shared_ext}$major'
  9302. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9303. shlibpath_var=LD_LIBRARY_PATH
  9304. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9305. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9306. # the default ld.so.conf also contains /usr/contrib/lib and
  9307. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9308. # libtool to hard-code these into programs
  9309. ;;
  9310. cygwin* | mingw* | pw32* | cegcc*)
  9311. version_type=windows
  9312. shrext_cmds=".dll"
  9313. need_version=no
  9314. need_lib_prefix=no
  9315. case $GCC,$cc_basename in
  9316. yes,*)
  9317. # gcc
  9318. library_names_spec='$libname.dll.a'
  9319. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9320. postinstall_cmds='base_file=`basename \${file}`~
  9321. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9322. dldir=$destdir/`dirname \$dlpath`~
  9323. test -d \$dldir || mkdir -p \$dldir~
  9324. $install_prog $dir/$dlname \$dldir/$dlname~
  9325. chmod a+x \$dldir/$dlname~
  9326. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9327. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9328. fi'
  9329. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9330. dlpath=$dir/\$dldll~
  9331. $RM \$dlpath'
  9332. shlibpath_overrides_runpath=yes
  9333. case $host_os in
  9334. cygwin*)
  9335. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9336. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9337. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9338. ;;
  9339. mingw* | cegcc*)
  9340. # MinGW DLLs use traditional 'lib' prefix
  9341. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9342. ;;
  9343. pw32*)
  9344. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9345. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9346. ;;
  9347. esac
  9348. dynamic_linker='Win32 ld.exe'
  9349. ;;
  9350. *,cl*)
  9351. # Native MSVC
  9352. libname_spec='$name'
  9353. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9354. library_names_spec='${libname}.dll.lib'
  9355. case $build_os in
  9356. mingw*)
  9357. sys_lib_search_path_spec=
  9358. lt_save_ifs=$IFS
  9359. IFS=';'
  9360. for lt_path in $LIB
  9361. do
  9362. IFS=$lt_save_ifs
  9363. # Let DOS variable expansion print the short 8.3 style file name.
  9364. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9365. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9366. done
  9367. IFS=$lt_save_ifs
  9368. # Convert to MSYS style.
  9369. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9370. ;;
  9371. cygwin*)
  9372. # Convert to unix form, then to dos form, then back to unix form
  9373. # but this time dos style (no spaces!) so that the unix form looks
  9374. # like /cygdrive/c/PROGRA~1:/cygdr...
  9375. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9376. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9377. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9378. ;;
  9379. *)
  9380. sys_lib_search_path_spec="$LIB"
  9381. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9382. # It is most probably a Windows format PATH.
  9383. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9384. else
  9385. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9386. fi
  9387. # FIXME: find the short name or the path components, as spaces are
  9388. # common. (e.g. "Program Files" -> "PROGRA~1")
  9389. ;;
  9390. esac
  9391. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9392. postinstall_cmds='base_file=`basename \${file}`~
  9393. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9394. dldir=$destdir/`dirname \$dlpath`~
  9395. test -d \$dldir || mkdir -p \$dldir~
  9396. $install_prog $dir/$dlname \$dldir/$dlname'
  9397. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9398. dlpath=$dir/\$dldll~
  9399. $RM \$dlpath'
  9400. shlibpath_overrides_runpath=yes
  9401. dynamic_linker='Win32 link.exe'
  9402. ;;
  9403. *)
  9404. # Assume MSVC wrapper
  9405. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9406. dynamic_linker='Win32 ld.exe'
  9407. ;;
  9408. esac
  9409. # FIXME: first we should search . and the directory the executable is in
  9410. shlibpath_var=PATH
  9411. ;;
  9412. darwin* | rhapsody*)
  9413. dynamic_linker="$host_os dyld"
  9414. version_type=darwin
  9415. need_lib_prefix=no
  9416. need_version=no
  9417. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9418. soname_spec='${libname}${release}${major}$shared_ext'
  9419. shlibpath_overrides_runpath=yes
  9420. shlibpath_var=DYLD_LIBRARY_PATH
  9421. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9422. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9423. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9424. ;;
  9425. dgux*)
  9426. version_type=linux # correct to gnu/linux during the next big refactor
  9427. need_lib_prefix=no
  9428. need_version=no
  9429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9430. soname_spec='${libname}${release}${shared_ext}$major'
  9431. shlibpath_var=LD_LIBRARY_PATH
  9432. ;;
  9433. freebsd* | dragonfly*)
  9434. # DragonFly does not have aout. When/if they implement a new
  9435. # versioning mechanism, adjust this.
  9436. if test -x /usr/bin/objformat; then
  9437. objformat=`/usr/bin/objformat`
  9438. else
  9439. case $host_os in
  9440. freebsd[23].*) objformat=aout ;;
  9441. *) objformat=elf ;;
  9442. esac
  9443. fi
  9444. version_type=freebsd-$objformat
  9445. case $version_type in
  9446. freebsd-elf*)
  9447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9448. need_version=no
  9449. need_lib_prefix=no
  9450. ;;
  9451. freebsd-*)
  9452. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9453. need_version=yes
  9454. ;;
  9455. esac
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. case $host_os in
  9458. freebsd2.*)
  9459. shlibpath_overrides_runpath=yes
  9460. ;;
  9461. freebsd3.[01]* | freebsdelf3.[01]*)
  9462. shlibpath_overrides_runpath=yes
  9463. hardcode_into_libs=yes
  9464. ;;
  9465. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9466. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9467. shlibpath_overrides_runpath=no
  9468. hardcode_into_libs=yes
  9469. ;;
  9470. *) # from 4.6 on, and DragonFly
  9471. shlibpath_overrides_runpath=yes
  9472. hardcode_into_libs=yes
  9473. ;;
  9474. esac
  9475. ;;
  9476. gnu*)
  9477. version_type=linux # correct to gnu/linux during the next big refactor
  9478. need_lib_prefix=no
  9479. need_version=no
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9481. soname_spec='${libname}${release}${shared_ext}$major'
  9482. shlibpath_var=LD_LIBRARY_PATH
  9483. shlibpath_overrides_runpath=no
  9484. hardcode_into_libs=yes
  9485. ;;
  9486. haiku*)
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. dynamic_linker="$host_os runtime_loader"
  9491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9492. soname_spec='${libname}${release}${shared_ext}$major'
  9493. shlibpath_var=LIBRARY_PATH
  9494. shlibpath_overrides_runpath=yes
  9495. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9496. hardcode_into_libs=yes
  9497. ;;
  9498. hpux9* | hpux10* | hpux11*)
  9499. # Give a soname corresponding to the major version so that dld.sl refuses to
  9500. # link against other versions.
  9501. version_type=sunos
  9502. need_lib_prefix=no
  9503. need_version=no
  9504. case $host_cpu in
  9505. ia64*)
  9506. shrext_cmds='.so'
  9507. hardcode_into_libs=yes
  9508. dynamic_linker="$host_os dld.so"
  9509. shlibpath_var=LD_LIBRARY_PATH
  9510. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9512. soname_spec='${libname}${release}${shared_ext}$major'
  9513. if test "X$HPUX_IA64_MODE" = X32; then
  9514. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9515. else
  9516. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9517. fi
  9518. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9519. ;;
  9520. hppa*64*)
  9521. shrext_cmds='.sl'
  9522. hardcode_into_libs=yes
  9523. dynamic_linker="$host_os dld.sl"
  9524. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9525. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9527. soname_spec='${libname}${release}${shared_ext}$major'
  9528. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9529. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9530. ;;
  9531. *)
  9532. shrext_cmds='.sl'
  9533. dynamic_linker="$host_os dld.sl"
  9534. shlibpath_var=SHLIB_PATH
  9535. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9537. soname_spec='${libname}${release}${shared_ext}$major'
  9538. ;;
  9539. esac
  9540. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9541. postinstall_cmds='chmod 555 $lib'
  9542. # or fails outright, so override atomically:
  9543. install_override_mode=555
  9544. ;;
  9545. interix[3-9]*)
  9546. version_type=linux # correct to gnu/linux during the next big refactor
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9550. soname_spec='${libname}${release}${shared_ext}$major'
  9551. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9552. shlibpath_var=LD_LIBRARY_PATH
  9553. shlibpath_overrides_runpath=no
  9554. hardcode_into_libs=yes
  9555. ;;
  9556. irix5* | irix6* | nonstopux*)
  9557. case $host_os in
  9558. nonstopux*) version_type=nonstopux ;;
  9559. *)
  9560. if test "$lt_cv_prog_gnu_ld" = yes; then
  9561. version_type=linux # correct to gnu/linux during the next big refactor
  9562. else
  9563. version_type=irix
  9564. fi ;;
  9565. esac
  9566. need_lib_prefix=no
  9567. need_version=no
  9568. soname_spec='${libname}${release}${shared_ext}$major'
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9570. case $host_os in
  9571. irix5* | nonstopux*)
  9572. libsuff= shlibsuff=
  9573. ;;
  9574. *)
  9575. case $LD in # libtool.m4 will add one of these switches to LD
  9576. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9577. libsuff= shlibsuff= libmagic=32-bit;;
  9578. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9579. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9580. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9581. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9582. *) libsuff= shlibsuff= libmagic=never-match;;
  9583. esac
  9584. ;;
  9585. esac
  9586. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9587. shlibpath_overrides_runpath=no
  9588. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9589. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9590. hardcode_into_libs=yes
  9591. ;;
  9592. # No shared lib support for Linux oldld, aout, or coff.
  9593. linux*oldld* | linux*aout* | linux*coff*)
  9594. dynamic_linker=no
  9595. ;;
  9596. # This must be glibc/ELF.
  9597. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9598. version_type=linux # correct to gnu/linux during the next big refactor
  9599. need_lib_prefix=no
  9600. need_version=no
  9601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9602. soname_spec='${libname}${release}${shared_ext}$major'
  9603. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. shlibpath_overrides_runpath=no
  9606. # Some binutils ld are patched to set DT_RUNPATH
  9607. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9608. $as_echo_n "(cached) " >&6
  9609. else
  9610. lt_cv_shlibpath_overrides_runpath=no
  9611. save_LDFLAGS=$LDFLAGS
  9612. save_libdir=$libdir
  9613. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9614. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9616. /* end confdefs.h. */
  9617. int
  9618. main ()
  9619. {
  9620. ;
  9621. return 0;
  9622. }
  9623. _ACEOF
  9624. if ac_fn_c_try_link "$LINENO"; then :
  9625. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9626. lt_cv_shlibpath_overrides_runpath=yes
  9627. fi
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LDFLAGS=$save_LDFLAGS
  9632. libdir=$save_libdir
  9633. fi
  9634. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9635. # This implies no fast_install, which is unacceptable.
  9636. # Some rework will be needed to allow for fast_install
  9637. # before this can be enabled.
  9638. hardcode_into_libs=yes
  9639. # Append ld.so.conf contents to the search path
  9640. if test -f /etc/ld.so.conf; then
  9641. 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' ' '`
  9642. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9643. fi
  9644. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9645. # powerpc, because MkLinux only supported shared libraries with the
  9646. # GNU dynamic linker. Since this was broken with cross compilers,
  9647. # most powerpc-linux boxes support dynamic linking these days and
  9648. # people can always --disable-shared, the test was removed, and we
  9649. # assume the GNU/Linux dynamic linker is in use.
  9650. dynamic_linker='GNU/Linux ld.so'
  9651. ;;
  9652. netbsd*)
  9653. version_type=sunos
  9654. need_lib_prefix=no
  9655. need_version=no
  9656. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9658. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9659. dynamic_linker='NetBSD (a.out) ld.so'
  9660. else
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9662. soname_spec='${libname}${release}${shared_ext}$major'
  9663. dynamic_linker='NetBSD ld.elf_so'
  9664. fi
  9665. shlibpath_var=LD_LIBRARY_PATH
  9666. shlibpath_overrides_runpath=yes
  9667. hardcode_into_libs=yes
  9668. ;;
  9669. newsos6)
  9670. version_type=linux # correct to gnu/linux during the next big refactor
  9671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9672. shlibpath_var=LD_LIBRARY_PATH
  9673. shlibpath_overrides_runpath=yes
  9674. ;;
  9675. *nto* | *qnx*)
  9676. version_type=qnx
  9677. need_lib_prefix=no
  9678. need_version=no
  9679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9680. soname_spec='${libname}${release}${shared_ext}$major'
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. shlibpath_overrides_runpath=no
  9683. hardcode_into_libs=yes
  9684. dynamic_linker='ldqnx.so'
  9685. ;;
  9686. openbsd*)
  9687. version_type=sunos
  9688. sys_lib_dlsearch_path_spec="/usr/lib"
  9689. need_lib_prefix=no
  9690. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9691. case $host_os in
  9692. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9693. *) need_version=no ;;
  9694. esac
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9696. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9697. shlibpath_var=LD_LIBRARY_PATH
  9698. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9699. case $host_os in
  9700. openbsd2.[89] | openbsd2.[89].*)
  9701. shlibpath_overrides_runpath=no
  9702. ;;
  9703. *)
  9704. shlibpath_overrides_runpath=yes
  9705. ;;
  9706. esac
  9707. else
  9708. shlibpath_overrides_runpath=yes
  9709. fi
  9710. ;;
  9711. os2*)
  9712. libname_spec='$name'
  9713. shrext_cmds=".dll"
  9714. need_lib_prefix=no
  9715. library_names_spec='$libname${shared_ext} $libname.a'
  9716. dynamic_linker='OS/2 ld.exe'
  9717. shlibpath_var=LIBPATH
  9718. ;;
  9719. osf3* | osf4* | osf5*)
  9720. version_type=osf
  9721. need_lib_prefix=no
  9722. need_version=no
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9727. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9728. ;;
  9729. rdos*)
  9730. dynamic_linker=no
  9731. ;;
  9732. solaris*)
  9733. version_type=linux # correct to gnu/linux during the next big refactor
  9734. need_lib_prefix=no
  9735. need_version=no
  9736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9737. soname_spec='${libname}${release}${shared_ext}$major'
  9738. shlibpath_var=LD_LIBRARY_PATH
  9739. shlibpath_overrides_runpath=yes
  9740. hardcode_into_libs=yes
  9741. # ldd complains unless libraries are executable
  9742. postinstall_cmds='chmod +x $lib'
  9743. ;;
  9744. sunos4*)
  9745. version_type=sunos
  9746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9747. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9748. shlibpath_var=LD_LIBRARY_PATH
  9749. shlibpath_overrides_runpath=yes
  9750. if test "$with_gnu_ld" = yes; then
  9751. need_lib_prefix=no
  9752. fi
  9753. need_version=yes
  9754. ;;
  9755. sysv4 | sysv4.3*)
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. soname_spec='${libname}${release}${shared_ext}$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. case $host_vendor in
  9761. sni)
  9762. shlibpath_overrides_runpath=no
  9763. need_lib_prefix=no
  9764. runpath_var=LD_RUN_PATH
  9765. ;;
  9766. siemens)
  9767. need_lib_prefix=no
  9768. ;;
  9769. motorola)
  9770. need_lib_prefix=no
  9771. need_version=no
  9772. shlibpath_overrides_runpath=no
  9773. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9774. ;;
  9775. esac
  9776. ;;
  9777. sysv4*MP*)
  9778. if test -d /usr/nec ;then
  9779. version_type=linux # correct to gnu/linux during the next big refactor
  9780. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9781. soname_spec='$libname${shared_ext}.$major'
  9782. shlibpath_var=LD_LIBRARY_PATH
  9783. fi
  9784. ;;
  9785. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9786. version_type=freebsd-elf
  9787. need_lib_prefix=no
  9788. need_version=no
  9789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9790. soname_spec='${libname}${release}${shared_ext}$major'
  9791. shlibpath_var=LD_LIBRARY_PATH
  9792. shlibpath_overrides_runpath=yes
  9793. hardcode_into_libs=yes
  9794. if test "$with_gnu_ld" = yes; then
  9795. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9796. else
  9797. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9798. case $host_os in
  9799. sco3.2v5*)
  9800. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9801. ;;
  9802. esac
  9803. fi
  9804. sys_lib_dlsearch_path_spec='/usr/lib'
  9805. ;;
  9806. tpf*)
  9807. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9808. version_type=linux # correct to gnu/linux during the next big refactor
  9809. need_lib_prefix=no
  9810. need_version=no
  9811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9812. shlibpath_var=LD_LIBRARY_PATH
  9813. shlibpath_overrides_runpath=no
  9814. hardcode_into_libs=yes
  9815. ;;
  9816. uts4*)
  9817. version_type=linux # correct to gnu/linux during the next big refactor
  9818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9819. soname_spec='${libname}${release}${shared_ext}$major'
  9820. shlibpath_var=LD_LIBRARY_PATH
  9821. ;;
  9822. *)
  9823. dynamic_linker=no
  9824. ;;
  9825. esac
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9827. $as_echo "$dynamic_linker" >&6; }
  9828. test "$dynamic_linker" = no && can_build_shared=no
  9829. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9830. if test "$GCC" = yes; then
  9831. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9832. fi
  9833. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9834. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9835. fi
  9836. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9837. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9838. fi
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9840. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9841. hardcode_action=
  9842. if test -n "$hardcode_libdir_flag_spec" ||
  9843. test -n "$runpath_var" ||
  9844. test "X$hardcode_automatic" = "Xyes" ; then
  9845. # We can hardcode non-existent directories.
  9846. if test "$hardcode_direct" != no &&
  9847. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9848. # have to relink, otherwise we might link with an installed library
  9849. # when we should be linking with a yet-to-be-installed one
  9850. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9851. test "$hardcode_minus_L" != no; then
  9852. # Linking always hardcodes the temporary library directory.
  9853. hardcode_action=relink
  9854. else
  9855. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9856. hardcode_action=immediate
  9857. fi
  9858. else
  9859. # We cannot hardcode anything, or else we can only hardcode existing
  9860. # directories.
  9861. hardcode_action=unsupported
  9862. fi
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9864. $as_echo "$hardcode_action" >&6; }
  9865. if test "$hardcode_action" = relink ||
  9866. test "$inherit_rpath" = yes; then
  9867. # Fast installation is not supported
  9868. enable_fast_install=no
  9869. elif test "$shlibpath_overrides_runpath" = yes ||
  9870. test "$enable_shared" = no; then
  9871. # Fast installation is not necessary
  9872. enable_fast_install=needless
  9873. fi
  9874. if test "x$enable_dlopen" != xyes; then
  9875. enable_dlopen=unknown
  9876. enable_dlopen_self=unknown
  9877. enable_dlopen_self_static=unknown
  9878. else
  9879. lt_cv_dlopen=no
  9880. lt_cv_dlopen_libs=
  9881. case $host_os in
  9882. beos*)
  9883. lt_cv_dlopen="load_add_on"
  9884. lt_cv_dlopen_libs=
  9885. lt_cv_dlopen_self=yes
  9886. ;;
  9887. mingw* | pw32* | cegcc*)
  9888. lt_cv_dlopen="LoadLibrary"
  9889. lt_cv_dlopen_libs=
  9890. ;;
  9891. cygwin*)
  9892. lt_cv_dlopen="dlopen"
  9893. lt_cv_dlopen_libs=
  9894. ;;
  9895. darwin*)
  9896. # if libdl is installed we need to link against it
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9898. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9899. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9900. $as_echo_n "(cached) " >&6
  9901. else
  9902. ac_check_lib_save_LIBS=$LIBS
  9903. LIBS="-ldl $LIBS"
  9904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9905. /* end confdefs.h. */
  9906. /* Override any GCC internal prototype to avoid an error.
  9907. Use char because int might match the return type of a GCC
  9908. builtin and then its argument prototype would still apply. */
  9909. #ifdef __cplusplus
  9910. extern "C"
  9911. #endif
  9912. char dlopen ();
  9913. int
  9914. main ()
  9915. {
  9916. return dlopen ();
  9917. ;
  9918. return 0;
  9919. }
  9920. _ACEOF
  9921. if ac_fn_c_try_link "$LINENO"; then :
  9922. ac_cv_lib_dl_dlopen=yes
  9923. else
  9924. ac_cv_lib_dl_dlopen=no
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext \
  9927. conftest$ac_exeext conftest.$ac_ext
  9928. LIBS=$ac_check_lib_save_LIBS
  9929. fi
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9931. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9932. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9933. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9934. else
  9935. lt_cv_dlopen="dyld"
  9936. lt_cv_dlopen_libs=
  9937. lt_cv_dlopen_self=yes
  9938. fi
  9939. ;;
  9940. *)
  9941. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9942. if test "x$ac_cv_func_shl_load" = xyes; then :
  9943. lt_cv_dlopen="shl_load"
  9944. else
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9946. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9947. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9948. $as_echo_n "(cached) " >&6
  9949. else
  9950. ac_check_lib_save_LIBS=$LIBS
  9951. LIBS="-ldld $LIBS"
  9952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9953. /* end confdefs.h. */
  9954. /* Override any GCC internal prototype to avoid an error.
  9955. Use char because int might match the return type of a GCC
  9956. builtin and then its argument prototype would still apply. */
  9957. #ifdef __cplusplus
  9958. extern "C"
  9959. #endif
  9960. char shl_load ();
  9961. int
  9962. main ()
  9963. {
  9964. return shl_load ();
  9965. ;
  9966. return 0;
  9967. }
  9968. _ACEOF
  9969. if ac_fn_c_try_link "$LINENO"; then :
  9970. ac_cv_lib_dld_shl_load=yes
  9971. else
  9972. ac_cv_lib_dld_shl_load=no
  9973. fi
  9974. rm -f core conftest.err conftest.$ac_objext \
  9975. conftest$ac_exeext conftest.$ac_ext
  9976. LIBS=$ac_check_lib_save_LIBS
  9977. fi
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9979. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9980. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9981. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9982. else
  9983. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9984. if test "x$ac_cv_func_dlopen" = xyes; then :
  9985. lt_cv_dlopen="dlopen"
  9986. else
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9988. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9989. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. ac_check_lib_save_LIBS=$LIBS
  9993. LIBS="-ldl $LIBS"
  9994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9995. /* end confdefs.h. */
  9996. /* Override any GCC internal prototype to avoid an error.
  9997. Use char because int might match the return type of a GCC
  9998. builtin and then its argument prototype would still apply. */
  9999. #ifdef __cplusplus
  10000. extern "C"
  10001. #endif
  10002. char dlopen ();
  10003. int
  10004. main ()
  10005. {
  10006. return dlopen ();
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. ac_cv_lib_dl_dlopen=yes
  10013. else
  10014. ac_cv_lib_dl_dlopen=no
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. LIBS=$ac_check_lib_save_LIBS
  10019. fi
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10021. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10022. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10023. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10024. else
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10026. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10027. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. ac_check_lib_save_LIBS=$LIBS
  10031. LIBS="-lsvld $LIBS"
  10032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10033. /* end confdefs.h. */
  10034. /* Override any GCC internal prototype to avoid an error.
  10035. Use char because int might match the return type of a GCC
  10036. builtin and then its argument prototype would still apply. */
  10037. #ifdef __cplusplus
  10038. extern "C"
  10039. #endif
  10040. char dlopen ();
  10041. int
  10042. main ()
  10043. {
  10044. return dlopen ();
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_c_try_link "$LINENO"; then :
  10050. ac_cv_lib_svld_dlopen=yes
  10051. else
  10052. ac_cv_lib_svld_dlopen=no
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext \
  10055. conftest$ac_exeext conftest.$ac_ext
  10056. LIBS=$ac_check_lib_save_LIBS
  10057. fi
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10059. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10060. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10061. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10062. else
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10064. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10065. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10066. $as_echo_n "(cached) " >&6
  10067. else
  10068. ac_check_lib_save_LIBS=$LIBS
  10069. LIBS="-ldld $LIBS"
  10070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10071. /* end confdefs.h. */
  10072. /* Override any GCC internal prototype to avoid an error.
  10073. Use char because int might match the return type of a GCC
  10074. builtin and then its argument prototype would still apply. */
  10075. #ifdef __cplusplus
  10076. extern "C"
  10077. #endif
  10078. char dld_link ();
  10079. int
  10080. main ()
  10081. {
  10082. return dld_link ();
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. if ac_fn_c_try_link "$LINENO"; then :
  10088. ac_cv_lib_dld_dld_link=yes
  10089. else
  10090. ac_cv_lib_dld_dld_link=no
  10091. fi
  10092. rm -f core conftest.err conftest.$ac_objext \
  10093. conftest$ac_exeext conftest.$ac_ext
  10094. LIBS=$ac_check_lib_save_LIBS
  10095. fi
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10097. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10098. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10099. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10100. fi
  10101. fi
  10102. fi
  10103. fi
  10104. fi
  10105. fi
  10106. ;;
  10107. esac
  10108. if test "x$lt_cv_dlopen" != xno; then
  10109. enable_dlopen=yes
  10110. else
  10111. enable_dlopen=no
  10112. fi
  10113. case $lt_cv_dlopen in
  10114. dlopen)
  10115. save_CPPFLAGS="$CPPFLAGS"
  10116. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10117. save_LDFLAGS="$LDFLAGS"
  10118. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10119. save_LIBS="$LIBS"
  10120. LIBS="$lt_cv_dlopen_libs $LIBS"
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10122. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10123. if ${lt_cv_dlopen_self+:} false; then :
  10124. $as_echo_n "(cached) " >&6
  10125. else
  10126. if test "$cross_compiling" = yes; then :
  10127. lt_cv_dlopen_self=cross
  10128. else
  10129. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10130. lt_status=$lt_dlunknown
  10131. cat > conftest.$ac_ext <<_LT_EOF
  10132. #line $LINENO "configure"
  10133. #include "confdefs.h"
  10134. #if HAVE_DLFCN_H
  10135. #include <dlfcn.h>
  10136. #endif
  10137. #include <stdio.h>
  10138. #ifdef RTLD_GLOBAL
  10139. # define LT_DLGLOBAL RTLD_GLOBAL
  10140. #else
  10141. # ifdef DL_GLOBAL
  10142. # define LT_DLGLOBAL DL_GLOBAL
  10143. # else
  10144. # define LT_DLGLOBAL 0
  10145. # endif
  10146. #endif
  10147. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10148. find out it does not work in some platform. */
  10149. #ifndef LT_DLLAZY_OR_NOW
  10150. # ifdef RTLD_LAZY
  10151. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10152. # else
  10153. # ifdef DL_LAZY
  10154. # define LT_DLLAZY_OR_NOW DL_LAZY
  10155. # else
  10156. # ifdef RTLD_NOW
  10157. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10158. # else
  10159. # ifdef DL_NOW
  10160. # define LT_DLLAZY_OR_NOW DL_NOW
  10161. # else
  10162. # define LT_DLLAZY_OR_NOW 0
  10163. # endif
  10164. # endif
  10165. # endif
  10166. # endif
  10167. #endif
  10168. /* When -fvisbility=hidden is used, assume the code has been annotated
  10169. correspondingly for the symbols needed. */
  10170. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10171. int fnord () __attribute__((visibility("default")));
  10172. #endif
  10173. int fnord () { return 42; }
  10174. int main ()
  10175. {
  10176. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10177. int status = $lt_dlunknown;
  10178. if (self)
  10179. {
  10180. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10181. else
  10182. {
  10183. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10184. else puts (dlerror ());
  10185. }
  10186. /* dlclose (self); */
  10187. }
  10188. else
  10189. puts (dlerror ());
  10190. return status;
  10191. }
  10192. _LT_EOF
  10193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10194. (eval $ac_link) 2>&5
  10195. ac_status=$?
  10196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10197. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10198. (./conftest; exit; ) >&5 2>/dev/null
  10199. lt_status=$?
  10200. case x$lt_status in
  10201. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10202. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10203. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10204. esac
  10205. else :
  10206. # compilation failed
  10207. lt_cv_dlopen_self=no
  10208. fi
  10209. fi
  10210. rm -fr conftest*
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10213. $as_echo "$lt_cv_dlopen_self" >&6; }
  10214. if test "x$lt_cv_dlopen_self" = xyes; then
  10215. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10217. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10218. if ${lt_cv_dlopen_self_static+:} false; then :
  10219. $as_echo_n "(cached) " >&6
  10220. else
  10221. if test "$cross_compiling" = yes; then :
  10222. lt_cv_dlopen_self_static=cross
  10223. else
  10224. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10225. lt_status=$lt_dlunknown
  10226. cat > conftest.$ac_ext <<_LT_EOF
  10227. #line $LINENO "configure"
  10228. #include "confdefs.h"
  10229. #if HAVE_DLFCN_H
  10230. #include <dlfcn.h>
  10231. #endif
  10232. #include <stdio.h>
  10233. #ifdef RTLD_GLOBAL
  10234. # define LT_DLGLOBAL RTLD_GLOBAL
  10235. #else
  10236. # ifdef DL_GLOBAL
  10237. # define LT_DLGLOBAL DL_GLOBAL
  10238. # else
  10239. # define LT_DLGLOBAL 0
  10240. # endif
  10241. #endif
  10242. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10243. find out it does not work in some platform. */
  10244. #ifndef LT_DLLAZY_OR_NOW
  10245. # ifdef RTLD_LAZY
  10246. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10247. # else
  10248. # ifdef DL_LAZY
  10249. # define LT_DLLAZY_OR_NOW DL_LAZY
  10250. # else
  10251. # ifdef RTLD_NOW
  10252. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10253. # else
  10254. # ifdef DL_NOW
  10255. # define LT_DLLAZY_OR_NOW DL_NOW
  10256. # else
  10257. # define LT_DLLAZY_OR_NOW 0
  10258. # endif
  10259. # endif
  10260. # endif
  10261. # endif
  10262. #endif
  10263. /* When -fvisbility=hidden is used, assume the code has been annotated
  10264. correspondingly for the symbols needed. */
  10265. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10266. int fnord () __attribute__((visibility("default")));
  10267. #endif
  10268. int fnord () { return 42; }
  10269. int main ()
  10270. {
  10271. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10272. int status = $lt_dlunknown;
  10273. if (self)
  10274. {
  10275. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10276. else
  10277. {
  10278. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10279. else puts (dlerror ());
  10280. }
  10281. /* dlclose (self); */
  10282. }
  10283. else
  10284. puts (dlerror ());
  10285. return status;
  10286. }
  10287. _LT_EOF
  10288. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10289. (eval $ac_link) 2>&5
  10290. ac_status=$?
  10291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10292. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10293. (./conftest; exit; ) >&5 2>/dev/null
  10294. lt_status=$?
  10295. case x$lt_status in
  10296. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10297. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10298. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10299. esac
  10300. else :
  10301. # compilation failed
  10302. lt_cv_dlopen_self_static=no
  10303. fi
  10304. fi
  10305. rm -fr conftest*
  10306. fi
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10308. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10309. fi
  10310. CPPFLAGS="$save_CPPFLAGS"
  10311. LDFLAGS="$save_LDFLAGS"
  10312. LIBS="$save_LIBS"
  10313. ;;
  10314. esac
  10315. case $lt_cv_dlopen_self in
  10316. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10317. *) enable_dlopen_self=unknown ;;
  10318. esac
  10319. case $lt_cv_dlopen_self_static in
  10320. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10321. *) enable_dlopen_self_static=unknown ;;
  10322. esac
  10323. fi
  10324. striplib=
  10325. old_striplib=
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10327. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10328. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10329. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10330. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10332. $as_echo "yes" >&6; }
  10333. else
  10334. # FIXME - insert some real tests, host_os isn't really good enough
  10335. case $host_os in
  10336. darwin*)
  10337. if test -n "$STRIP" ; then
  10338. striplib="$STRIP -x"
  10339. old_striplib="$STRIP -S"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. ;;
  10347. *)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. ;;
  10351. esac
  10352. fi
  10353. # Report which library types will actually be built
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10355. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10357. $as_echo "$can_build_shared" >&6; }
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10359. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10360. test "$can_build_shared" = "no" && enable_shared=no
  10361. # On AIX, shared libraries and static libraries use the same namespace, and
  10362. # are all built from PIC.
  10363. case $host_os in
  10364. aix3*)
  10365. test "$enable_shared" = yes && enable_static=no
  10366. if test -n "$RANLIB"; then
  10367. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10368. postinstall_cmds='$RANLIB $lib'
  10369. fi
  10370. ;;
  10371. aix[4-9]*)
  10372. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10373. test "$enable_shared" = yes && enable_static=no
  10374. fi
  10375. ;;
  10376. esac
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10378. $as_echo "$enable_shared" >&6; }
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10380. $as_echo_n "checking whether to build static libraries... " >&6; }
  10381. # Make sure either enable_shared or enable_static is yes.
  10382. test "$enable_shared" = yes || enable_static=yes
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10384. $as_echo "$enable_static" >&6; }
  10385. fi
  10386. ac_ext=c
  10387. ac_cpp='$CPP $CPPFLAGS'
  10388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10391. CC="$lt_save_CC"
  10392. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10393. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10394. (test "X$CXX" != "Xg++"))) ; then
  10395. ac_ext=cpp
  10396. ac_cpp='$CXXCPP $CPPFLAGS'
  10397. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10398. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10399. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10401. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10402. if test -z "$CXXCPP"; then
  10403. if ${ac_cv_prog_CXXCPP+:} false; then :
  10404. $as_echo_n "(cached) " >&6
  10405. else
  10406. # Double quotes because CXXCPP needs to be expanded
  10407. for CXXCPP in "$CXX -E" "/lib/cpp"
  10408. do
  10409. ac_preproc_ok=false
  10410. for ac_cxx_preproc_warn_flag in '' yes
  10411. do
  10412. # Use a header file that comes with gcc, so configuring glibc
  10413. # with a fresh cross-compiler works.
  10414. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10415. # <limits.h> exists even on freestanding compilers.
  10416. # On the NeXT, cc -E runs the code through the compiler's parser,
  10417. # not just through cpp. "Syntax error" is here to catch this case.
  10418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10419. /* end confdefs.h. */
  10420. #ifdef __STDC__
  10421. # include <limits.h>
  10422. #else
  10423. # include <assert.h>
  10424. #endif
  10425. Syntax error
  10426. _ACEOF
  10427. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10428. else
  10429. # Broken: fails on valid input.
  10430. continue
  10431. fi
  10432. rm -f conftest.err conftest.i conftest.$ac_ext
  10433. # OK, works on sane cases. Now check whether nonexistent headers
  10434. # can be detected and how.
  10435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10436. /* end confdefs.h. */
  10437. #include <ac_nonexistent.h>
  10438. _ACEOF
  10439. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10440. # Broken: success on invalid input.
  10441. continue
  10442. else
  10443. # Passes both tests.
  10444. ac_preproc_ok=:
  10445. break
  10446. fi
  10447. rm -f conftest.err conftest.i conftest.$ac_ext
  10448. done
  10449. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10450. rm -f conftest.i conftest.err conftest.$ac_ext
  10451. if $ac_preproc_ok; then :
  10452. break
  10453. fi
  10454. done
  10455. ac_cv_prog_CXXCPP=$CXXCPP
  10456. fi
  10457. CXXCPP=$ac_cv_prog_CXXCPP
  10458. else
  10459. ac_cv_prog_CXXCPP=$CXXCPP
  10460. fi
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10462. $as_echo "$CXXCPP" >&6; }
  10463. ac_preproc_ok=false
  10464. for ac_cxx_preproc_warn_flag in '' yes
  10465. do
  10466. # Use a header file that comes with gcc, so configuring glibc
  10467. # with a fresh cross-compiler works.
  10468. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10469. # <limits.h> exists even on freestanding compilers.
  10470. # On the NeXT, cc -E runs the code through the compiler's parser,
  10471. # not just through cpp. "Syntax error" is here to catch this case.
  10472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10473. /* end confdefs.h. */
  10474. #ifdef __STDC__
  10475. # include <limits.h>
  10476. #else
  10477. # include <assert.h>
  10478. #endif
  10479. Syntax error
  10480. _ACEOF
  10481. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10482. else
  10483. # Broken: fails on valid input.
  10484. continue
  10485. fi
  10486. rm -f conftest.err conftest.i conftest.$ac_ext
  10487. # OK, works on sane cases. Now check whether nonexistent headers
  10488. # can be detected and how.
  10489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10490. /* end confdefs.h. */
  10491. #include <ac_nonexistent.h>
  10492. _ACEOF
  10493. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10494. # Broken: success on invalid input.
  10495. continue
  10496. else
  10497. # Passes both tests.
  10498. ac_preproc_ok=:
  10499. break
  10500. fi
  10501. rm -f conftest.err conftest.i conftest.$ac_ext
  10502. done
  10503. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10504. rm -f conftest.i conftest.err conftest.$ac_ext
  10505. if $ac_preproc_ok; then :
  10506. else
  10507. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10509. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10510. See \`config.log' for more details" "$LINENO" 5; }
  10511. fi
  10512. ac_ext=c
  10513. ac_cpp='$CPP $CPPFLAGS'
  10514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10517. else
  10518. _lt_caught_CXX_error=yes
  10519. fi
  10520. ac_ext=cpp
  10521. ac_cpp='$CXXCPP $CPPFLAGS'
  10522. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10523. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10524. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10525. archive_cmds_need_lc_CXX=no
  10526. allow_undefined_flag_CXX=
  10527. always_export_symbols_CXX=no
  10528. archive_expsym_cmds_CXX=
  10529. compiler_needs_object_CXX=no
  10530. export_dynamic_flag_spec_CXX=
  10531. hardcode_direct_CXX=no
  10532. hardcode_direct_absolute_CXX=no
  10533. hardcode_libdir_flag_spec_CXX=
  10534. hardcode_libdir_separator_CXX=
  10535. hardcode_minus_L_CXX=no
  10536. hardcode_shlibpath_var_CXX=unsupported
  10537. hardcode_automatic_CXX=no
  10538. inherit_rpath_CXX=no
  10539. module_cmds_CXX=
  10540. module_expsym_cmds_CXX=
  10541. link_all_deplibs_CXX=unknown
  10542. old_archive_cmds_CXX=$old_archive_cmds
  10543. reload_flag_CXX=$reload_flag
  10544. reload_cmds_CXX=$reload_cmds
  10545. no_undefined_flag_CXX=
  10546. whole_archive_flag_spec_CXX=
  10547. enable_shared_with_static_runtimes_CXX=no
  10548. # Source file extension for C++ test sources.
  10549. ac_ext=cpp
  10550. # Object file extension for compiled C++ test sources.
  10551. objext=o
  10552. objext_CXX=$objext
  10553. # No sense in running all these tests if we already determined that
  10554. # the CXX compiler isn't working. Some variables (like enable_shared)
  10555. # are currently assumed to apply to all compilers on this platform,
  10556. # and will be corrupted by setting them based on a non-working compiler.
  10557. if test "$_lt_caught_CXX_error" != yes; then
  10558. # Code to be used in simple compile tests
  10559. lt_simple_compile_test_code="int some_variable = 0;"
  10560. # Code to be used in simple link tests
  10561. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10562. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10563. # If no C compiler was specified, use CC.
  10564. LTCC=${LTCC-"$CC"}
  10565. # If no C compiler flags were specified, use CFLAGS.
  10566. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10567. # Allow CC to be a program name with arguments.
  10568. compiler=$CC
  10569. # save warnings/boilerplate of simple test code
  10570. ac_outfile=conftest.$ac_objext
  10571. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10572. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10573. _lt_compiler_boilerplate=`cat conftest.err`
  10574. $RM conftest*
  10575. ac_outfile=conftest.$ac_objext
  10576. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10577. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10578. _lt_linker_boilerplate=`cat conftest.err`
  10579. $RM -r conftest*
  10580. # Allow CC to be a program name with arguments.
  10581. lt_save_CC=$CC
  10582. lt_save_CFLAGS=$CFLAGS
  10583. lt_save_LD=$LD
  10584. lt_save_GCC=$GCC
  10585. GCC=$GXX
  10586. lt_save_with_gnu_ld=$with_gnu_ld
  10587. lt_save_path_LD=$lt_cv_path_LD
  10588. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10589. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10590. else
  10591. $as_unset lt_cv_prog_gnu_ld
  10592. fi
  10593. if test -n "${lt_cv_path_LDCXX+set}"; then
  10594. lt_cv_path_LD=$lt_cv_path_LDCXX
  10595. else
  10596. $as_unset lt_cv_path_LD
  10597. fi
  10598. test -z "${LDCXX+set}" || LD=$LDCXX
  10599. CC=${CXX-"c++"}
  10600. CFLAGS=$CXXFLAGS
  10601. compiler=$CC
  10602. compiler_CXX=$CC
  10603. for cc_temp in $compiler""; do
  10604. case $cc_temp in
  10605. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10606. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10607. \-*) ;;
  10608. *) break;;
  10609. esac
  10610. done
  10611. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10612. if test -n "$compiler"; then
  10613. # We don't want -fno-exception when compiling C++ code, so set the
  10614. # no_builtin_flag separately
  10615. if test "$GXX" = yes; then
  10616. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10617. else
  10618. lt_prog_compiler_no_builtin_flag_CXX=
  10619. fi
  10620. if test "$GXX" = yes; then
  10621. # Set up default GNU C++ configuration
  10622. # Check whether --with-gnu-ld was given.
  10623. if test "${with_gnu_ld+set}" = set; then :
  10624. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10625. else
  10626. with_gnu_ld=no
  10627. fi
  10628. ac_prog=ld
  10629. if test "$GCC" = yes; then
  10630. # Check if gcc -print-prog-name=ld gives a path.
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10632. $as_echo_n "checking for ld used by $CC... " >&6; }
  10633. case $host in
  10634. *-*-mingw*)
  10635. # gcc leaves a trailing carriage return which upsets mingw
  10636. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10637. *)
  10638. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10639. esac
  10640. case $ac_prog in
  10641. # Accept absolute paths.
  10642. [\\/]* | ?:[\\/]*)
  10643. re_direlt='/[^/][^/]*/\.\./'
  10644. # Canonicalize the pathname of ld
  10645. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10646. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10647. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10648. done
  10649. test -z "$LD" && LD="$ac_prog"
  10650. ;;
  10651. "")
  10652. # If it fails, then pretend we aren't using GCC.
  10653. ac_prog=ld
  10654. ;;
  10655. *)
  10656. # If it is relative, then search for the first ld in PATH.
  10657. with_gnu_ld=unknown
  10658. ;;
  10659. esac
  10660. elif test "$with_gnu_ld" = yes; then
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10662. $as_echo_n "checking for GNU ld... " >&6; }
  10663. else
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10665. $as_echo_n "checking for non-GNU ld... " >&6; }
  10666. fi
  10667. if ${lt_cv_path_LD+:} false; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. if test -z "$LD"; then
  10671. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10672. for ac_dir in $PATH; do
  10673. IFS="$lt_save_ifs"
  10674. test -z "$ac_dir" && ac_dir=.
  10675. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10676. lt_cv_path_LD="$ac_dir/$ac_prog"
  10677. # Check to see if the program is GNU ld. I'd rather use --version,
  10678. # but apparently some variants of GNU ld only accept -v.
  10679. # Break only if it was the GNU/non-GNU ld that we prefer.
  10680. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10681. *GNU* | *'with BFD'*)
  10682. test "$with_gnu_ld" != no && break
  10683. ;;
  10684. *)
  10685. test "$with_gnu_ld" != yes && break
  10686. ;;
  10687. esac
  10688. fi
  10689. done
  10690. IFS="$lt_save_ifs"
  10691. else
  10692. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10693. fi
  10694. fi
  10695. LD="$lt_cv_path_LD"
  10696. if test -n "$LD"; then
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10698. $as_echo "$LD" >&6; }
  10699. else
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10701. $as_echo "no" >&6; }
  10702. fi
  10703. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10705. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10706. if ${lt_cv_prog_gnu_ld+:} false; then :
  10707. $as_echo_n "(cached) " >&6
  10708. else
  10709. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10710. case `$LD -v 2>&1 </dev/null` in
  10711. *GNU* | *'with BFD'*)
  10712. lt_cv_prog_gnu_ld=yes
  10713. ;;
  10714. *)
  10715. lt_cv_prog_gnu_ld=no
  10716. ;;
  10717. esac
  10718. fi
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10720. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10721. with_gnu_ld=$lt_cv_prog_gnu_ld
  10722. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10723. # archiving commands below assume that GNU ld is being used.
  10724. if test "$with_gnu_ld" = yes; then
  10725. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10726. 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'
  10727. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10728. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10729. # If archive_cmds runs LD, not CC, wlarc should be empty
  10730. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10731. # investigate it a little bit more. (MM)
  10732. wlarc='${wl}'
  10733. # ancient GNU ld didn't support --whole-archive et. al.
  10734. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10735. $GREP 'no-whole-archive' > /dev/null; then
  10736. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10737. else
  10738. whole_archive_flag_spec_CXX=
  10739. fi
  10740. else
  10741. with_gnu_ld=no
  10742. wlarc=
  10743. # A generic and very simple default shared library creation
  10744. # command for GNU C++ for the case where it uses the native
  10745. # linker, instead of GNU ld. If possible, this setting should
  10746. # overridden to take advantage of the native linker features on
  10747. # the platform it is being used on.
  10748. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10749. fi
  10750. # Commands to make compiler produce verbose output that lists
  10751. # what "hidden" libraries, object files and flags are used when
  10752. # linking a shared library.
  10753. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10754. else
  10755. GXX=no
  10756. with_gnu_ld=no
  10757. wlarc=
  10758. fi
  10759. # PORTME: fill in a description of your system's C++ link characteristics
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10761. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10762. ld_shlibs_CXX=yes
  10763. case $host_os in
  10764. aix3*)
  10765. # FIXME: insert proper C++ library support
  10766. ld_shlibs_CXX=no
  10767. ;;
  10768. aix[4-9]*)
  10769. if test "$host_cpu" = ia64; then
  10770. # On IA64, the linker does run time linking by default, so we don't
  10771. # have to do anything special.
  10772. aix_use_runtimelinking=no
  10773. exp_sym_flag='-Bexport'
  10774. no_entry_flag=""
  10775. else
  10776. aix_use_runtimelinking=no
  10777. # Test if we are trying to use run time linking or normal
  10778. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10779. # need to do runtime linking.
  10780. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10781. for ld_flag in $LDFLAGS; do
  10782. case $ld_flag in
  10783. *-brtl*)
  10784. aix_use_runtimelinking=yes
  10785. break
  10786. ;;
  10787. esac
  10788. done
  10789. ;;
  10790. esac
  10791. exp_sym_flag='-bexport'
  10792. no_entry_flag='-bnoentry'
  10793. fi
  10794. # When large executables or shared objects are built, AIX ld can
  10795. # have problems creating the table of contents. If linking a library
  10796. # or program results in "error TOC overflow" add -mminimal-toc to
  10797. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10798. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10799. archive_cmds_CXX=''
  10800. hardcode_direct_CXX=yes
  10801. hardcode_direct_absolute_CXX=yes
  10802. hardcode_libdir_separator_CXX=':'
  10803. link_all_deplibs_CXX=yes
  10804. file_list_spec_CXX='${wl}-f,'
  10805. if test "$GXX" = yes; then
  10806. case $host_os in aix4.[012]|aix4.[012].*)
  10807. # We only want to do this on AIX 4.2 and lower, the check
  10808. # below for broken collect2 doesn't work under 4.3+
  10809. collect2name=`${CC} -print-prog-name=collect2`
  10810. if test -f "$collect2name" &&
  10811. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10812. then
  10813. # We have reworked collect2
  10814. :
  10815. else
  10816. # We have old collect2
  10817. hardcode_direct_CXX=unsupported
  10818. # It fails to find uninstalled libraries when the uninstalled
  10819. # path is not listed in the libpath. Setting hardcode_minus_L
  10820. # to unsupported forces relinking
  10821. hardcode_minus_L_CXX=yes
  10822. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10823. hardcode_libdir_separator_CXX=
  10824. fi
  10825. esac
  10826. shared_flag='-shared'
  10827. if test "$aix_use_runtimelinking" = yes; then
  10828. shared_flag="$shared_flag "'${wl}-G'
  10829. fi
  10830. else
  10831. # not using gcc
  10832. if test "$host_cpu" = ia64; then
  10833. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10834. # chokes on -Wl,-G. The following line is correct:
  10835. shared_flag='-G'
  10836. else
  10837. if test "$aix_use_runtimelinking" = yes; then
  10838. shared_flag='${wl}-G'
  10839. else
  10840. shared_flag='${wl}-bM:SRE'
  10841. fi
  10842. fi
  10843. fi
  10844. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10845. # It seems that -bexpall does not export symbols beginning with
  10846. # underscore (_), so it is better to generate a list of symbols to
  10847. # export.
  10848. always_export_symbols_CXX=yes
  10849. if test "$aix_use_runtimelinking" = yes; then
  10850. # Warning - without using the other runtime loading flags (-brtl),
  10851. # -berok will link without error, but may produce a broken library.
  10852. allow_undefined_flag_CXX='-berok'
  10853. # Determine the default libpath from the value encoded in an empty
  10854. # executable.
  10855. if test "${lt_cv_aix_libpath+set}" = set; then
  10856. aix_libpath=$lt_cv_aix_libpath
  10857. else
  10858. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10859. $as_echo_n "(cached) " >&6
  10860. else
  10861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10862. /* end confdefs.h. */
  10863. int
  10864. main ()
  10865. {
  10866. ;
  10867. return 0;
  10868. }
  10869. _ACEOF
  10870. if ac_fn_cxx_try_link "$LINENO"; then :
  10871. lt_aix_libpath_sed='
  10872. /Import File Strings/,/^$/ {
  10873. /^0/ {
  10874. s/^0 *\([^ ]*\) *$/\1/
  10875. p
  10876. }
  10877. }'
  10878. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10879. # Check for a 64-bit object if we didn't find anything.
  10880. if test -z "$lt_cv_aix_libpath__CXX"; then
  10881. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10882. fi
  10883. fi
  10884. rm -f core conftest.err conftest.$ac_objext \
  10885. conftest$ac_exeext conftest.$ac_ext
  10886. if test -z "$lt_cv_aix_libpath__CXX"; then
  10887. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10888. fi
  10889. fi
  10890. aix_libpath=$lt_cv_aix_libpath__CXX
  10891. fi
  10892. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10893. 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"
  10894. else
  10895. if test "$host_cpu" = ia64; then
  10896. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10897. allow_undefined_flag_CXX="-z nodefs"
  10898. 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"
  10899. else
  10900. # Determine the default libpath from the value encoded in an
  10901. # empty executable.
  10902. if test "${lt_cv_aix_libpath+set}" = set; then
  10903. aix_libpath=$lt_cv_aix_libpath
  10904. else
  10905. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10906. $as_echo_n "(cached) " >&6
  10907. else
  10908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10909. /* end confdefs.h. */
  10910. int
  10911. main ()
  10912. {
  10913. ;
  10914. return 0;
  10915. }
  10916. _ACEOF
  10917. if ac_fn_cxx_try_link "$LINENO"; then :
  10918. lt_aix_libpath_sed='
  10919. /Import File Strings/,/^$/ {
  10920. /^0/ {
  10921. s/^0 *\([^ ]*\) *$/\1/
  10922. p
  10923. }
  10924. }'
  10925. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10926. # Check for a 64-bit object if we didn't find anything.
  10927. if test -z "$lt_cv_aix_libpath__CXX"; then
  10928. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10929. fi
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext \
  10932. conftest$ac_exeext conftest.$ac_ext
  10933. if test -z "$lt_cv_aix_libpath__CXX"; then
  10934. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10935. fi
  10936. fi
  10937. aix_libpath=$lt_cv_aix_libpath__CXX
  10938. fi
  10939. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10940. # Warning - without using the other run time loading flags,
  10941. # -berok will link without error, but may produce a broken library.
  10942. no_undefined_flag_CXX=' ${wl}-bernotok'
  10943. allow_undefined_flag_CXX=' ${wl}-berok'
  10944. if test "$with_gnu_ld" = yes; then
  10945. # We only use this code for GNU lds that support --whole-archive.
  10946. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10947. else
  10948. # Exported symbols can be pulled into shared objects from archives
  10949. whole_archive_flag_spec_CXX='$convenience'
  10950. fi
  10951. archive_cmds_need_lc_CXX=yes
  10952. # This is similar to how AIX traditionally builds its shared
  10953. # libraries.
  10954. 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'
  10955. fi
  10956. fi
  10957. ;;
  10958. beos*)
  10959. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10960. allow_undefined_flag_CXX=unsupported
  10961. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10962. # support --undefined. This deserves some investigation. FIXME
  10963. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10964. else
  10965. ld_shlibs_CXX=no
  10966. fi
  10967. ;;
  10968. chorus*)
  10969. case $cc_basename in
  10970. *)
  10971. # FIXME: insert proper C++ library support
  10972. ld_shlibs_CXX=no
  10973. ;;
  10974. esac
  10975. ;;
  10976. cygwin* | mingw* | pw32* | cegcc*)
  10977. case $GXX,$cc_basename in
  10978. ,cl* | no,cl*)
  10979. # Native MSVC
  10980. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10981. # no search path for DLLs.
  10982. hardcode_libdir_flag_spec_CXX=' '
  10983. allow_undefined_flag_CXX=unsupported
  10984. always_export_symbols_CXX=yes
  10985. file_list_spec_CXX='@'
  10986. # Tell ltmain to make .lib files, not .a files.
  10987. libext=lib
  10988. # Tell ltmain to make .dll files, not .so files.
  10989. shrext_cmds=".dll"
  10990. # FIXME: Setting linknames here is a bad hack.
  10991. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10992. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10993. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10994. else
  10995. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10996. fi~
  10997. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10998. linknames='
  10999. # The linker will not automatically build a static lib if we build a DLL.
  11000. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11001. enable_shared_with_static_runtimes_CXX=yes
  11002. # Don't use ranlib
  11003. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11004. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11005. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11006. case $lt_outputfile in
  11007. *.exe|*.EXE) ;;
  11008. *)
  11009. lt_outputfile="$lt_outputfile.exe"
  11010. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11011. ;;
  11012. esac~
  11013. func_to_tool_file "$lt_outputfile"~
  11014. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11015. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11016. $RM "$lt_outputfile.manifest";
  11017. fi'
  11018. ;;
  11019. *)
  11020. # g++
  11021. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11022. # as there is no search path for DLLs.
  11023. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11024. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11025. allow_undefined_flag_CXX=unsupported
  11026. always_export_symbols_CXX=no
  11027. enable_shared_with_static_runtimes_CXX=yes
  11028. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11029. 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'
  11030. # If the export-symbols file already is a .def file (1st line
  11031. # is EXPORTS), use it as is; otherwise, prepend...
  11032. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11033. cp $export_symbols $output_objdir/$soname.def;
  11034. else
  11035. echo EXPORTS > $output_objdir/$soname.def;
  11036. cat $export_symbols >> $output_objdir/$soname.def;
  11037. fi~
  11038. $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'
  11039. else
  11040. ld_shlibs_CXX=no
  11041. fi
  11042. ;;
  11043. esac
  11044. ;;
  11045. darwin* | rhapsody*)
  11046. archive_cmds_need_lc_CXX=no
  11047. hardcode_direct_CXX=no
  11048. hardcode_automatic_CXX=yes
  11049. hardcode_shlibpath_var_CXX=unsupported
  11050. if test "$lt_cv_ld_force_load" = "yes"; then
  11051. 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\"`'
  11052. else
  11053. whole_archive_flag_spec_CXX=''
  11054. fi
  11055. link_all_deplibs_CXX=yes
  11056. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11057. case $cc_basename in
  11058. ifort*) _lt_dar_can_shared=yes ;;
  11059. *) _lt_dar_can_shared=$GCC ;;
  11060. esac
  11061. if test "$_lt_dar_can_shared" = "yes"; then
  11062. output_verbose_link_cmd=func_echo_all
  11063. 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}"
  11064. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11065. 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}"
  11066. 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}"
  11067. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11068. 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}"
  11069. 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}"
  11070. fi
  11071. else
  11072. ld_shlibs_CXX=no
  11073. fi
  11074. ;;
  11075. dgux*)
  11076. case $cc_basename in
  11077. ec++*)
  11078. # FIXME: insert proper C++ library support
  11079. ld_shlibs_CXX=no
  11080. ;;
  11081. ghcx*)
  11082. # Green Hills C++ Compiler
  11083. # FIXME: insert proper C++ library support
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. *)
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. esac
  11091. ;;
  11092. freebsd2.*)
  11093. # C++ shared libraries reported to be fairly broken before
  11094. # switch to ELF
  11095. ld_shlibs_CXX=no
  11096. ;;
  11097. freebsd-elf*)
  11098. archive_cmds_need_lc_CXX=no
  11099. ;;
  11100. freebsd* | dragonfly*)
  11101. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11102. # conventions
  11103. ld_shlibs_CXX=yes
  11104. ;;
  11105. gnu*)
  11106. ;;
  11107. haiku*)
  11108. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11109. link_all_deplibs_CXX=yes
  11110. ;;
  11111. hpux9*)
  11112. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11113. hardcode_libdir_separator_CXX=:
  11114. export_dynamic_flag_spec_CXX='${wl}-E'
  11115. hardcode_direct_CXX=yes
  11116. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11117. # but as the default
  11118. # location of the library.
  11119. case $cc_basename in
  11120. CC*)
  11121. # FIXME: insert proper C++ library support
  11122. ld_shlibs_CXX=no
  11123. ;;
  11124. aCC*)
  11125. 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'
  11126. # Commands to make compiler produce verbose output that lists
  11127. # what "hidden" libraries, object files and flags are used when
  11128. # linking a shared library.
  11129. #
  11130. # There doesn't appear to be a way to prevent this compiler from
  11131. # explicitly linking system object files so we need to strip them
  11132. # from the output so that they don't get included in the library
  11133. # dependencies.
  11134. 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"'
  11135. ;;
  11136. *)
  11137. if test "$GXX" = yes; then
  11138. 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'
  11139. else
  11140. # FIXME: insert proper C++ library support
  11141. ld_shlibs_CXX=no
  11142. fi
  11143. ;;
  11144. esac
  11145. ;;
  11146. hpux10*|hpux11*)
  11147. if test $with_gnu_ld = no; then
  11148. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11149. hardcode_libdir_separator_CXX=:
  11150. case $host_cpu in
  11151. hppa*64*|ia64*)
  11152. ;;
  11153. *)
  11154. export_dynamic_flag_spec_CXX='${wl}-E'
  11155. ;;
  11156. esac
  11157. fi
  11158. case $host_cpu in
  11159. hppa*64*|ia64*)
  11160. hardcode_direct_CXX=no
  11161. hardcode_shlibpath_var_CXX=no
  11162. ;;
  11163. *)
  11164. hardcode_direct_CXX=yes
  11165. hardcode_direct_absolute_CXX=yes
  11166. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11167. # but as the default
  11168. # location of the library.
  11169. ;;
  11170. esac
  11171. case $cc_basename in
  11172. CC*)
  11173. # FIXME: insert proper C++ library support
  11174. ld_shlibs_CXX=no
  11175. ;;
  11176. aCC*)
  11177. case $host_cpu in
  11178. hppa*64*)
  11179. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11180. ;;
  11181. ia64*)
  11182. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11183. ;;
  11184. *)
  11185. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11186. ;;
  11187. esac
  11188. # Commands to make compiler produce verbose output that lists
  11189. # what "hidden" libraries, object files and flags are used when
  11190. # linking a shared library.
  11191. #
  11192. # There doesn't appear to be a way to prevent this compiler from
  11193. # explicitly linking system object files so we need to strip them
  11194. # from the output so that they don't get included in the library
  11195. # dependencies.
  11196. 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"'
  11197. ;;
  11198. *)
  11199. if test "$GXX" = yes; then
  11200. if test $with_gnu_ld = no; then
  11201. case $host_cpu in
  11202. hppa*64*)
  11203. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11204. ;;
  11205. ia64*)
  11206. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11207. ;;
  11208. *)
  11209. 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'
  11210. ;;
  11211. esac
  11212. fi
  11213. else
  11214. # FIXME: insert proper C++ library support
  11215. ld_shlibs_CXX=no
  11216. fi
  11217. ;;
  11218. esac
  11219. ;;
  11220. interix[3-9]*)
  11221. hardcode_direct_CXX=no
  11222. hardcode_shlibpath_var_CXX=no
  11223. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11224. export_dynamic_flag_spec_CXX='${wl}-E'
  11225. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11226. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11227. # default) and relocated if they conflict, which is a slow very memory
  11228. # consuming and fragmenting process. To avoid this, we pick a random,
  11229. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11230. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11231. 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'
  11232. 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'
  11233. ;;
  11234. irix5* | irix6*)
  11235. case $cc_basename in
  11236. CC*)
  11237. # SGI C++
  11238. 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'
  11239. # Archives containing C++ object files must be created using
  11240. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11241. # necessary to make sure instantiated templates are included
  11242. # in the archive.
  11243. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11244. ;;
  11245. *)
  11246. if test "$GXX" = yes; then
  11247. if test "$with_gnu_ld" = no; then
  11248. 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'
  11249. else
  11250. 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'
  11251. fi
  11252. fi
  11253. link_all_deplibs_CXX=yes
  11254. ;;
  11255. esac
  11256. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11257. hardcode_libdir_separator_CXX=:
  11258. inherit_rpath_CXX=yes
  11259. ;;
  11260. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11261. case $cc_basename in
  11262. KCC*)
  11263. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11264. # KCC will only create a shared library if the output file
  11265. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11266. # to its proper name (with version) after linking.
  11267. 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'
  11268. 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'
  11269. # Commands to make compiler produce verbose output that lists
  11270. # what "hidden" libraries, object files and flags are used when
  11271. # linking a shared library.
  11272. #
  11273. # There doesn't appear to be a way to prevent this compiler from
  11274. # explicitly linking system object files so we need to strip them
  11275. # from the output so that they don't get included in the library
  11276. # dependencies.
  11277. 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"'
  11278. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11279. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11280. # Archives containing C++ object files must be created using
  11281. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11282. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11283. ;;
  11284. icpc* | ecpc* )
  11285. # Intel C++
  11286. with_gnu_ld=yes
  11287. # version 8.0 and above of icpc choke on multiply defined symbols
  11288. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11289. # earlier do not add the objects themselves.
  11290. case `$CC -V 2>&1` in
  11291. *"Version 7."*)
  11292. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11293. 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'
  11294. ;;
  11295. *) # Version 8.0 or newer
  11296. tmp_idyn=
  11297. case $host_cpu in
  11298. ia64*) tmp_idyn=' -i_dynamic';;
  11299. esac
  11300. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11301. 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'
  11302. ;;
  11303. esac
  11304. archive_cmds_need_lc_CXX=no
  11305. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11306. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11307. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11308. ;;
  11309. pgCC* | pgcpp*)
  11310. # Portland Group C++ compiler
  11311. case `$CC -V` in
  11312. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11313. prelink_cmds_CXX='tpldir=Template.dir~
  11314. rm -rf $tpldir~
  11315. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11316. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11317. old_archive_cmds_CXX='tpldir=Template.dir~
  11318. rm -rf $tpldir~
  11319. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11320. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11321. $RANLIB $oldlib'
  11322. archive_cmds_CXX='tpldir=Template.dir~
  11323. rm -rf $tpldir~
  11324. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11325. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11326. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11327. rm -rf $tpldir~
  11328. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11329. $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'
  11330. ;;
  11331. *) # Version 6 and above use weak symbols
  11332. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11333. 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'
  11334. ;;
  11335. esac
  11336. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11337. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11338. 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'
  11339. ;;
  11340. cxx*)
  11341. # Compaq C++
  11342. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11343. 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'
  11344. runpath_var=LD_RUN_PATH
  11345. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11346. hardcode_libdir_separator_CXX=:
  11347. # Commands to make compiler produce verbose output that lists
  11348. # what "hidden" libraries, object files and flags are used when
  11349. # linking a shared library.
  11350. #
  11351. # There doesn't appear to be a way to prevent this compiler from
  11352. # explicitly linking system object files so we need to strip them
  11353. # from the output so that they don't get included in the library
  11354. # dependencies.
  11355. 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'
  11356. ;;
  11357. xl* | mpixl* | bgxl*)
  11358. # IBM XL 8.0 on PPC, with GNU ld
  11359. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11360. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11361. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11362. if test "x$supports_anon_versioning" = xyes; then
  11363. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11364. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11365. echo "local: *; };" >> $output_objdir/$libname.ver~
  11366. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11367. fi
  11368. ;;
  11369. *)
  11370. case `$CC -V 2>&1 | sed 5q` in
  11371. *Sun\ C*)
  11372. # Sun C++ 5.9
  11373. no_undefined_flag_CXX=' -zdefs'
  11374. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11375. 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'
  11376. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11377. 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'
  11378. compiler_needs_object_CXX=yes
  11379. # Not sure whether something based on
  11380. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11381. # would be better.
  11382. output_verbose_link_cmd='func_echo_all'
  11383. # Archives containing C++ object files must be created using
  11384. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11385. # necessary to make sure instantiated templates are included
  11386. # in the archive.
  11387. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11388. ;;
  11389. esac
  11390. ;;
  11391. esac
  11392. ;;
  11393. lynxos*)
  11394. # FIXME: insert proper C++ library support
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. m88k*)
  11398. # FIXME: insert proper C++ library support
  11399. ld_shlibs_CXX=no
  11400. ;;
  11401. mvs*)
  11402. case $cc_basename in
  11403. cxx*)
  11404. # FIXME: insert proper C++ library support
  11405. ld_shlibs_CXX=no
  11406. ;;
  11407. *)
  11408. # FIXME: insert proper C++ library support
  11409. ld_shlibs_CXX=no
  11410. ;;
  11411. esac
  11412. ;;
  11413. netbsd*)
  11414. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11415. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11416. wlarc=
  11417. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11418. hardcode_direct_CXX=yes
  11419. hardcode_shlibpath_var_CXX=no
  11420. fi
  11421. # Workaround some broken pre-1.5 toolchains
  11422. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11423. ;;
  11424. *nto* | *qnx*)
  11425. ld_shlibs_CXX=yes
  11426. ;;
  11427. openbsd2*)
  11428. # C++ shared libraries are fairly broken
  11429. ld_shlibs_CXX=no
  11430. ;;
  11431. openbsd*)
  11432. if test -f /usr/libexec/ld.so; then
  11433. hardcode_direct_CXX=yes
  11434. hardcode_shlibpath_var_CXX=no
  11435. hardcode_direct_absolute_CXX=yes
  11436. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11437. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11438. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11439. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11440. export_dynamic_flag_spec_CXX='${wl}-E'
  11441. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11442. fi
  11443. output_verbose_link_cmd=func_echo_all
  11444. else
  11445. ld_shlibs_CXX=no
  11446. fi
  11447. ;;
  11448. osf3* | osf4* | osf5*)
  11449. case $cc_basename in
  11450. KCC*)
  11451. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11452. # KCC will only create a shared library if the output file
  11453. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11454. # to its proper name (with version) after linking.
  11455. 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'
  11456. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11457. hardcode_libdir_separator_CXX=:
  11458. # Archives containing C++ object files must be created using
  11459. # the KAI C++ compiler.
  11460. case $host in
  11461. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11462. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11463. esac
  11464. ;;
  11465. RCC*)
  11466. # Rational C++ 2.4.1
  11467. # FIXME: insert proper C++ library support
  11468. ld_shlibs_CXX=no
  11469. ;;
  11470. cxx*)
  11471. case $host in
  11472. osf3*)
  11473. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11474. 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'
  11475. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11476. ;;
  11477. *)
  11478. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11479. 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'
  11480. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11481. echo "-hidden">> $lib.exp~
  11482. $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~
  11483. $RM $lib.exp'
  11484. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11485. ;;
  11486. esac
  11487. hardcode_libdir_separator_CXX=:
  11488. # Commands to make compiler produce verbose output that lists
  11489. # what "hidden" libraries, object files and flags are used when
  11490. # linking a shared library.
  11491. #
  11492. # There doesn't appear to be a way to prevent this compiler from
  11493. # explicitly linking system object files so we need to strip them
  11494. # from the output so that they don't get included in the library
  11495. # dependencies.
  11496. 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"'
  11497. ;;
  11498. *)
  11499. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11500. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11501. case $host in
  11502. osf3*)
  11503. 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'
  11504. ;;
  11505. *)
  11506. 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'
  11507. ;;
  11508. esac
  11509. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11510. hardcode_libdir_separator_CXX=:
  11511. # Commands to make compiler produce verbose output that lists
  11512. # what "hidden" libraries, object files and flags are used when
  11513. # linking a shared library.
  11514. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11515. else
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. fi
  11519. ;;
  11520. esac
  11521. ;;
  11522. psos*)
  11523. # FIXME: insert proper C++ library support
  11524. ld_shlibs_CXX=no
  11525. ;;
  11526. sunos4*)
  11527. case $cc_basename in
  11528. CC*)
  11529. # Sun C++ 4.x
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. lcc*)
  11534. # Lucid
  11535. # FIXME: insert proper C++ library support
  11536. ld_shlibs_CXX=no
  11537. ;;
  11538. *)
  11539. # FIXME: insert proper C++ library support
  11540. ld_shlibs_CXX=no
  11541. ;;
  11542. esac
  11543. ;;
  11544. solaris*)
  11545. case $cc_basename in
  11546. CC* | sunCC*)
  11547. # Sun C++ 4.2, 5.x and Centerline C++
  11548. archive_cmds_need_lc_CXX=yes
  11549. no_undefined_flag_CXX=' -zdefs'
  11550. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11551. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11552. $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'
  11553. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11554. hardcode_shlibpath_var_CXX=no
  11555. case $host_os in
  11556. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11557. *)
  11558. # The compiler driver will combine and reorder linker options,
  11559. # but understands `-z linker_flag'.
  11560. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11561. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11562. ;;
  11563. esac
  11564. link_all_deplibs_CXX=yes
  11565. output_verbose_link_cmd='func_echo_all'
  11566. # Archives containing C++ object files must be created using
  11567. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11568. # necessary to make sure instantiated templates are included
  11569. # in the archive.
  11570. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11571. ;;
  11572. gcx*)
  11573. # Green Hills C++ Compiler
  11574. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11575. # The C++ compiler must be used to create the archive.
  11576. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11577. ;;
  11578. *)
  11579. # GNU C++ compiler with Solaris linker
  11580. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11581. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11582. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11583. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11584. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11585. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11586. # Commands to make compiler produce verbose output that lists
  11587. # what "hidden" libraries, object files and flags are used when
  11588. # linking a shared library.
  11589. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11590. else
  11591. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11592. # platform.
  11593. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11594. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11595. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11596. # Commands to make compiler produce verbose output that lists
  11597. # what "hidden" libraries, object files and flags are used when
  11598. # linking a shared library.
  11599. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11600. fi
  11601. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11602. case $host_os in
  11603. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11604. *)
  11605. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11606. ;;
  11607. esac
  11608. fi
  11609. ;;
  11610. esac
  11611. ;;
  11612. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11613. no_undefined_flag_CXX='${wl}-z,text'
  11614. archive_cmds_need_lc_CXX=no
  11615. hardcode_shlibpath_var_CXX=no
  11616. runpath_var='LD_RUN_PATH'
  11617. case $cc_basename in
  11618. CC*)
  11619. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11620. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11621. ;;
  11622. *)
  11623. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11624. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11625. ;;
  11626. esac
  11627. ;;
  11628. sysv5* | sco3.2v5* | sco5v6*)
  11629. # Note: We can NOT use -z defs as we might desire, because we do not
  11630. # link with -lc, and that would cause any symbols used from libc to
  11631. # always be unresolved, which means just about no library would
  11632. # ever link correctly. If we're not using GNU ld we use -z text
  11633. # though, which does catch some bad symbols but isn't as heavy-handed
  11634. # as -z defs.
  11635. no_undefined_flag_CXX='${wl}-z,text'
  11636. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11637. archive_cmds_need_lc_CXX=no
  11638. hardcode_shlibpath_var_CXX=no
  11639. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11640. hardcode_libdir_separator_CXX=':'
  11641. link_all_deplibs_CXX=yes
  11642. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11643. runpath_var='LD_RUN_PATH'
  11644. case $cc_basename in
  11645. CC*)
  11646. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11647. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11648. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11649. '"$old_archive_cmds_CXX"
  11650. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11651. '"$reload_cmds_CXX"
  11652. ;;
  11653. *)
  11654. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11655. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11656. ;;
  11657. esac
  11658. ;;
  11659. tandem*)
  11660. case $cc_basename in
  11661. NCC*)
  11662. # NonStop-UX NCC 3.20
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. *)
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. ;;
  11670. esac
  11671. ;;
  11672. vxworks*)
  11673. # FIXME: insert proper C++ library support
  11674. ld_shlibs_CXX=no
  11675. ;;
  11676. *)
  11677. # FIXME: insert proper C++ library support
  11678. ld_shlibs_CXX=no
  11679. ;;
  11680. esac
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11682. $as_echo "$ld_shlibs_CXX" >&6; }
  11683. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11684. GCC_CXX="$GXX"
  11685. LD_CXX="$LD"
  11686. ## CAVEAT EMPTOR:
  11687. ## There is no encapsulation within the following macros, do not change
  11688. ## the running order or otherwise move them around unless you know exactly
  11689. ## what you are doing...
  11690. # Dependencies to place before and after the object being linked:
  11691. predep_objects_CXX=
  11692. postdep_objects_CXX=
  11693. predeps_CXX=
  11694. postdeps_CXX=
  11695. compiler_lib_search_path_CXX=
  11696. cat > conftest.$ac_ext <<_LT_EOF
  11697. class Foo
  11698. {
  11699. public:
  11700. Foo (void) { a = 0; }
  11701. private:
  11702. int a;
  11703. };
  11704. _LT_EOF
  11705. _lt_libdeps_save_CFLAGS=$CFLAGS
  11706. case "$CC $CFLAGS " in #(
  11707. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11708. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11709. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11710. esac
  11711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11712. (eval $ac_compile) 2>&5
  11713. ac_status=$?
  11714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11715. test $ac_status = 0; }; then
  11716. # Parse the compiler output and extract the necessary
  11717. # objects, libraries and library flags.
  11718. # Sentinel used to keep track of whether or not we are before
  11719. # the conftest object file.
  11720. pre_test_object_deps_done=no
  11721. for p in `eval "$output_verbose_link_cmd"`; do
  11722. case ${prev}${p} in
  11723. -L* | -R* | -l*)
  11724. # Some compilers place space between "-{L,R}" and the path.
  11725. # Remove the space.
  11726. if test $p = "-L" ||
  11727. test $p = "-R"; then
  11728. prev=$p
  11729. continue
  11730. fi
  11731. # Expand the sysroot to ease extracting the directories later.
  11732. if test -z "$prev"; then
  11733. case $p in
  11734. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11735. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11736. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11737. esac
  11738. fi
  11739. case $p in
  11740. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11741. esac
  11742. if test "$pre_test_object_deps_done" = no; then
  11743. case ${prev} in
  11744. -L | -R)
  11745. # Internal compiler library paths should come after those
  11746. # provided the user. The postdeps already come after the
  11747. # user supplied libs so there is no need to process them.
  11748. if test -z "$compiler_lib_search_path_CXX"; then
  11749. compiler_lib_search_path_CXX="${prev}${p}"
  11750. else
  11751. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11752. fi
  11753. ;;
  11754. # The "-l" case would never come before the object being
  11755. # linked, so don't bother handling this case.
  11756. esac
  11757. else
  11758. if test -z "$postdeps_CXX"; then
  11759. postdeps_CXX="${prev}${p}"
  11760. else
  11761. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11762. fi
  11763. fi
  11764. prev=
  11765. ;;
  11766. *.lto.$objext) ;; # Ignore GCC LTO objects
  11767. *.$objext)
  11768. # This assumes that the test object file only shows up
  11769. # once in the compiler output.
  11770. if test "$p" = "conftest.$objext"; then
  11771. pre_test_object_deps_done=yes
  11772. continue
  11773. fi
  11774. if test "$pre_test_object_deps_done" = no; then
  11775. if test -z "$predep_objects_CXX"; then
  11776. predep_objects_CXX="$p"
  11777. else
  11778. predep_objects_CXX="$predep_objects_CXX $p"
  11779. fi
  11780. else
  11781. if test -z "$postdep_objects_CXX"; then
  11782. postdep_objects_CXX="$p"
  11783. else
  11784. postdep_objects_CXX="$postdep_objects_CXX $p"
  11785. fi
  11786. fi
  11787. ;;
  11788. *) ;; # Ignore the rest.
  11789. esac
  11790. done
  11791. # Clean up.
  11792. rm -f a.out a.exe
  11793. else
  11794. echo "libtool.m4: error: problem compiling CXX test program"
  11795. fi
  11796. $RM -f confest.$objext
  11797. CFLAGS=$_lt_libdeps_save_CFLAGS
  11798. # PORTME: override above test on systems where it is broken
  11799. case $host_os in
  11800. interix[3-9]*)
  11801. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11802. # hack all around it, let's just trust "g++" to DTRT.
  11803. predep_objects_CXX=
  11804. postdep_objects_CXX=
  11805. postdeps_CXX=
  11806. ;;
  11807. linux*)
  11808. case `$CC -V 2>&1 | sed 5q` in
  11809. *Sun\ C*)
  11810. # Sun C++ 5.9
  11811. # The more standards-conforming stlport4 library is
  11812. # incompatible with the Cstd library. Avoid specifying
  11813. # it if it's in CXXFLAGS. Ignore libCrun as
  11814. # -library=stlport4 depends on it.
  11815. case " $CXX $CXXFLAGS " in
  11816. *" -library=stlport4 "*)
  11817. solaris_use_stlport4=yes
  11818. ;;
  11819. esac
  11820. if test "$solaris_use_stlport4" != yes; then
  11821. postdeps_CXX='-library=Cstd -library=Crun'
  11822. fi
  11823. ;;
  11824. esac
  11825. ;;
  11826. solaris*)
  11827. case $cc_basename in
  11828. CC* | sunCC*)
  11829. # The more standards-conforming stlport4 library is
  11830. # incompatible with the Cstd library. Avoid specifying
  11831. # it if it's in CXXFLAGS. Ignore libCrun as
  11832. # -library=stlport4 depends on it.
  11833. case " $CXX $CXXFLAGS " in
  11834. *" -library=stlport4 "*)
  11835. solaris_use_stlport4=yes
  11836. ;;
  11837. esac
  11838. # Adding this requires a known-good setup of shared libraries for
  11839. # Sun compiler versions before 5.6, else PIC objects from an old
  11840. # archive will be linked into the output, leading to subtle bugs.
  11841. if test "$solaris_use_stlport4" != yes; then
  11842. postdeps_CXX='-library=Cstd -library=Crun'
  11843. fi
  11844. ;;
  11845. esac
  11846. ;;
  11847. esac
  11848. case " $postdeps_CXX " in
  11849. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11850. esac
  11851. compiler_lib_search_dirs_CXX=
  11852. if test -n "${compiler_lib_search_path_CXX}"; then
  11853. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11854. fi
  11855. lt_prog_compiler_wl_CXX=
  11856. lt_prog_compiler_pic_CXX=
  11857. lt_prog_compiler_static_CXX=
  11858. # C++ specific cases for pic, static, wl, etc.
  11859. if test "$GXX" = yes; then
  11860. lt_prog_compiler_wl_CXX='-Wl,'
  11861. lt_prog_compiler_static_CXX='-static'
  11862. case $host_os in
  11863. aix*)
  11864. # All AIX code is PIC.
  11865. if test "$host_cpu" = ia64; then
  11866. # AIX 5 now supports IA64 processor
  11867. lt_prog_compiler_static_CXX='-Bstatic'
  11868. fi
  11869. ;;
  11870. amigaos*)
  11871. case $host_cpu in
  11872. powerpc)
  11873. # see comment about AmigaOS4 .so support
  11874. lt_prog_compiler_pic_CXX='-fPIC'
  11875. ;;
  11876. m68k)
  11877. # FIXME: we need at least 68020 code to build shared libraries, but
  11878. # adding the `-m68020' flag to GCC prevents building anything better,
  11879. # like `-m68040'.
  11880. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11881. ;;
  11882. esac
  11883. ;;
  11884. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11885. # PIC is the default for these OSes.
  11886. ;;
  11887. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11888. # This hack is so that the source file can tell whether it is being
  11889. # built for inclusion in a dll (and should export symbols for example).
  11890. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11891. # (--disable-auto-import) libraries
  11892. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11893. ;;
  11894. darwin* | rhapsody*)
  11895. # PIC is the default on this platform
  11896. # Common symbols not allowed in MH_DYLIB files
  11897. lt_prog_compiler_pic_CXX='-fno-common'
  11898. ;;
  11899. *djgpp*)
  11900. # DJGPP does not support shared libraries at all
  11901. lt_prog_compiler_pic_CXX=
  11902. ;;
  11903. haiku*)
  11904. # PIC is the default for Haiku.
  11905. # The "-static" flag exists, but is broken.
  11906. lt_prog_compiler_static_CXX=
  11907. ;;
  11908. interix[3-9]*)
  11909. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11910. # Instead, we relocate shared libraries at runtime.
  11911. ;;
  11912. sysv4*MP*)
  11913. if test -d /usr/nec; then
  11914. lt_prog_compiler_pic_CXX=-Kconform_pic
  11915. fi
  11916. ;;
  11917. hpux*)
  11918. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11919. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11920. # sets the default TLS model and affects inlining.
  11921. case $host_cpu in
  11922. hppa*64*)
  11923. ;;
  11924. *)
  11925. lt_prog_compiler_pic_CXX='-fPIC'
  11926. ;;
  11927. esac
  11928. ;;
  11929. *qnx* | *nto*)
  11930. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11931. # it will coredump.
  11932. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11933. ;;
  11934. *)
  11935. lt_prog_compiler_pic_CXX='-fPIC'
  11936. ;;
  11937. esac
  11938. else
  11939. case $host_os in
  11940. aix[4-9]*)
  11941. # All AIX code is PIC.
  11942. if test "$host_cpu" = ia64; then
  11943. # AIX 5 now supports IA64 processor
  11944. lt_prog_compiler_static_CXX='-Bstatic'
  11945. else
  11946. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11947. fi
  11948. ;;
  11949. chorus*)
  11950. case $cc_basename in
  11951. cxch68*)
  11952. # Green Hills C++ Compiler
  11953. # _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"
  11954. ;;
  11955. esac
  11956. ;;
  11957. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11958. # This hack is so that the source file can tell whether it is being
  11959. # built for inclusion in a dll (and should export symbols for example).
  11960. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11961. ;;
  11962. dgux*)
  11963. case $cc_basename in
  11964. ec++*)
  11965. lt_prog_compiler_pic_CXX='-KPIC'
  11966. ;;
  11967. ghcx*)
  11968. # Green Hills C++ Compiler
  11969. lt_prog_compiler_pic_CXX='-pic'
  11970. ;;
  11971. *)
  11972. ;;
  11973. esac
  11974. ;;
  11975. freebsd* | dragonfly*)
  11976. # FreeBSD uses GNU C++
  11977. ;;
  11978. hpux9* | hpux10* | hpux11*)
  11979. case $cc_basename in
  11980. CC*)
  11981. lt_prog_compiler_wl_CXX='-Wl,'
  11982. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11983. if test "$host_cpu" != ia64; then
  11984. lt_prog_compiler_pic_CXX='+Z'
  11985. fi
  11986. ;;
  11987. aCC*)
  11988. lt_prog_compiler_wl_CXX='-Wl,'
  11989. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11990. case $host_cpu in
  11991. hppa*64*|ia64*)
  11992. # +Z the default
  11993. ;;
  11994. *)
  11995. lt_prog_compiler_pic_CXX='+Z'
  11996. ;;
  11997. esac
  11998. ;;
  11999. *)
  12000. ;;
  12001. esac
  12002. ;;
  12003. interix*)
  12004. # This is c89, which is MS Visual C++ (no shared libs)
  12005. # Anyone wants to do a port?
  12006. ;;
  12007. irix5* | irix6* | nonstopux*)
  12008. case $cc_basename in
  12009. CC*)
  12010. lt_prog_compiler_wl_CXX='-Wl,'
  12011. lt_prog_compiler_static_CXX='-non_shared'
  12012. # CC pic flag -KPIC is the default.
  12013. ;;
  12014. *)
  12015. ;;
  12016. esac
  12017. ;;
  12018. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12019. case $cc_basename in
  12020. KCC*)
  12021. # KAI C++ Compiler
  12022. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12023. lt_prog_compiler_pic_CXX='-fPIC'
  12024. ;;
  12025. ecpc* )
  12026. # old Intel C++ for x86_64 which still supported -KPIC.
  12027. lt_prog_compiler_wl_CXX='-Wl,'
  12028. lt_prog_compiler_pic_CXX='-KPIC'
  12029. lt_prog_compiler_static_CXX='-static'
  12030. ;;
  12031. icpc* )
  12032. # Intel C++, used to be incompatible with GCC.
  12033. # ICC 10 doesn't accept -KPIC any more.
  12034. lt_prog_compiler_wl_CXX='-Wl,'
  12035. lt_prog_compiler_pic_CXX='-fPIC'
  12036. lt_prog_compiler_static_CXX='-static'
  12037. ;;
  12038. pgCC* | pgcpp*)
  12039. # Portland Group C++ compiler
  12040. lt_prog_compiler_wl_CXX='-Wl,'
  12041. lt_prog_compiler_pic_CXX='-fpic'
  12042. lt_prog_compiler_static_CXX='-Bstatic'
  12043. ;;
  12044. cxx*)
  12045. # Compaq C++
  12046. # Make sure the PIC flag is empty. It appears that all Alpha
  12047. # Linux and Compaq Tru64 Unix objects are PIC.
  12048. lt_prog_compiler_pic_CXX=
  12049. lt_prog_compiler_static_CXX='-non_shared'
  12050. ;;
  12051. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12052. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12053. lt_prog_compiler_wl_CXX='-Wl,'
  12054. lt_prog_compiler_pic_CXX='-qpic'
  12055. lt_prog_compiler_static_CXX='-qstaticlink'
  12056. ;;
  12057. *)
  12058. case `$CC -V 2>&1 | sed 5q` in
  12059. *Sun\ C*)
  12060. # Sun C++ 5.9
  12061. lt_prog_compiler_pic_CXX='-KPIC'
  12062. lt_prog_compiler_static_CXX='-Bstatic'
  12063. lt_prog_compiler_wl_CXX='-Qoption ld '
  12064. ;;
  12065. esac
  12066. ;;
  12067. esac
  12068. ;;
  12069. lynxos*)
  12070. ;;
  12071. m88k*)
  12072. ;;
  12073. mvs*)
  12074. case $cc_basename in
  12075. cxx*)
  12076. lt_prog_compiler_pic_CXX='-W c,exportall'
  12077. ;;
  12078. *)
  12079. ;;
  12080. esac
  12081. ;;
  12082. netbsd*)
  12083. ;;
  12084. *qnx* | *nto*)
  12085. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12086. # it will coredump.
  12087. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12088. ;;
  12089. osf3* | osf4* | osf5*)
  12090. case $cc_basename in
  12091. KCC*)
  12092. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12093. ;;
  12094. RCC*)
  12095. # Rational C++ 2.4.1
  12096. lt_prog_compiler_pic_CXX='-pic'
  12097. ;;
  12098. cxx*)
  12099. # Digital/Compaq C++
  12100. lt_prog_compiler_wl_CXX='-Wl,'
  12101. # Make sure the PIC flag is empty. It appears that all Alpha
  12102. # Linux and Compaq Tru64 Unix objects are PIC.
  12103. lt_prog_compiler_pic_CXX=
  12104. lt_prog_compiler_static_CXX='-non_shared'
  12105. ;;
  12106. *)
  12107. ;;
  12108. esac
  12109. ;;
  12110. psos*)
  12111. ;;
  12112. solaris*)
  12113. case $cc_basename in
  12114. CC* | sunCC*)
  12115. # Sun C++ 4.2, 5.x and Centerline C++
  12116. lt_prog_compiler_pic_CXX='-KPIC'
  12117. lt_prog_compiler_static_CXX='-Bstatic'
  12118. lt_prog_compiler_wl_CXX='-Qoption ld '
  12119. ;;
  12120. gcx*)
  12121. # Green Hills C++ Compiler
  12122. lt_prog_compiler_pic_CXX='-PIC'
  12123. ;;
  12124. *)
  12125. ;;
  12126. esac
  12127. ;;
  12128. sunos4*)
  12129. case $cc_basename in
  12130. CC*)
  12131. # Sun C++ 4.x
  12132. lt_prog_compiler_pic_CXX='-pic'
  12133. lt_prog_compiler_static_CXX='-Bstatic'
  12134. ;;
  12135. lcc*)
  12136. # Lucid
  12137. lt_prog_compiler_pic_CXX='-pic'
  12138. ;;
  12139. *)
  12140. ;;
  12141. esac
  12142. ;;
  12143. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12144. case $cc_basename in
  12145. CC*)
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_pic_CXX='-KPIC'
  12148. lt_prog_compiler_static_CXX='-Bstatic'
  12149. ;;
  12150. esac
  12151. ;;
  12152. tandem*)
  12153. case $cc_basename in
  12154. NCC*)
  12155. # NonStop-UX NCC 3.20
  12156. lt_prog_compiler_pic_CXX='-KPIC'
  12157. ;;
  12158. *)
  12159. ;;
  12160. esac
  12161. ;;
  12162. vxworks*)
  12163. ;;
  12164. *)
  12165. lt_prog_compiler_can_build_shared_CXX=no
  12166. ;;
  12167. esac
  12168. fi
  12169. case $host_os in
  12170. # For platforms which do not support PIC, -DPIC is meaningless:
  12171. *djgpp*)
  12172. lt_prog_compiler_pic_CXX=
  12173. ;;
  12174. *)
  12175. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12176. ;;
  12177. esac
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12179. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12180. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12184. fi
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12186. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12187. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12188. #
  12189. # Check to make sure the PIC flag actually works.
  12190. #
  12191. if test -n "$lt_prog_compiler_pic_CXX"; then
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12193. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12194. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12195. $as_echo_n "(cached) " >&6
  12196. else
  12197. lt_cv_prog_compiler_pic_works_CXX=no
  12198. ac_outfile=conftest.$ac_objext
  12199. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12200. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12201. # Insert the option either (1) after the last *FLAGS variable, or
  12202. # (2) before a word containing "conftest.", or (3) at the end.
  12203. # Note that $ac_compile itself does not contain backslashes and begins
  12204. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12205. # The option is referenced via a variable to avoid confusing sed.
  12206. lt_compile=`echo "$ac_compile" | $SED \
  12207. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12208. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12209. -e 's:$: $lt_compiler_flag:'`
  12210. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12211. (eval "$lt_compile" 2>conftest.err)
  12212. ac_status=$?
  12213. cat conftest.err >&5
  12214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12215. if (exit $ac_status) && test -s "$ac_outfile"; then
  12216. # The compiler can only warn and ignore the option if not recognized
  12217. # So say no if there are warnings other than the usual output.
  12218. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12219. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12220. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12221. lt_cv_prog_compiler_pic_works_CXX=yes
  12222. fi
  12223. fi
  12224. $RM conftest*
  12225. fi
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12227. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12228. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12229. case $lt_prog_compiler_pic_CXX in
  12230. "" | " "*) ;;
  12231. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12232. esac
  12233. else
  12234. lt_prog_compiler_pic_CXX=
  12235. lt_prog_compiler_can_build_shared_CXX=no
  12236. fi
  12237. fi
  12238. #
  12239. # Check to make sure the static flag actually works.
  12240. #
  12241. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12243. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12244. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12245. $as_echo_n "(cached) " >&6
  12246. else
  12247. lt_cv_prog_compiler_static_works_CXX=no
  12248. save_LDFLAGS="$LDFLAGS"
  12249. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12250. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12251. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12252. # The linker can only warn and ignore the option if not recognized
  12253. # So say no if there are warnings
  12254. if test -s conftest.err; then
  12255. # Append any errors to the config.log.
  12256. cat conftest.err 1>&5
  12257. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12258. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12259. if diff conftest.exp conftest.er2 >/dev/null; then
  12260. lt_cv_prog_compiler_static_works_CXX=yes
  12261. fi
  12262. else
  12263. lt_cv_prog_compiler_static_works_CXX=yes
  12264. fi
  12265. fi
  12266. $RM -r conftest*
  12267. LDFLAGS="$save_LDFLAGS"
  12268. fi
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12270. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12271. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12272. :
  12273. else
  12274. lt_prog_compiler_static_CXX=
  12275. fi
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12277. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12278. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12279. $as_echo_n "(cached) " >&6
  12280. else
  12281. lt_cv_prog_compiler_c_o_CXX=no
  12282. $RM -r conftest 2>/dev/null
  12283. mkdir conftest
  12284. cd conftest
  12285. mkdir out
  12286. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12287. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12288. # Insert the option either (1) after the last *FLAGS variable, or
  12289. # (2) before a word containing "conftest.", or (3) at the end.
  12290. # Note that $ac_compile itself does not contain backslashes and begins
  12291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12292. lt_compile=`echo "$ac_compile" | $SED \
  12293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12295. -e 's:$: $lt_compiler_flag:'`
  12296. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12297. (eval "$lt_compile" 2>out/conftest.err)
  12298. ac_status=$?
  12299. cat out/conftest.err >&5
  12300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12301. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12302. then
  12303. # The compiler can only warn and ignore the option if not recognized
  12304. # So say no if there are warnings
  12305. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12306. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12307. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12308. lt_cv_prog_compiler_c_o_CXX=yes
  12309. fi
  12310. fi
  12311. chmod u+w . 2>&5
  12312. $RM conftest*
  12313. # SGI C++ compiler will create directory out/ii_files/ for
  12314. # template instantiation
  12315. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12316. $RM out/* && rmdir out
  12317. cd ..
  12318. $RM -r conftest
  12319. $RM conftest*
  12320. fi
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12322. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12324. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12325. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12326. $as_echo_n "(cached) " >&6
  12327. else
  12328. lt_cv_prog_compiler_c_o_CXX=no
  12329. $RM -r conftest 2>/dev/null
  12330. mkdir conftest
  12331. cd conftest
  12332. mkdir out
  12333. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12334. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12335. # Insert the option either (1) after the last *FLAGS variable, or
  12336. # (2) before a word containing "conftest.", or (3) at the end.
  12337. # Note that $ac_compile itself does not contain backslashes and begins
  12338. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12339. lt_compile=`echo "$ac_compile" | $SED \
  12340. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12341. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12342. -e 's:$: $lt_compiler_flag:'`
  12343. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12344. (eval "$lt_compile" 2>out/conftest.err)
  12345. ac_status=$?
  12346. cat out/conftest.err >&5
  12347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12348. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12349. then
  12350. # The compiler can only warn and ignore the option if not recognized
  12351. # So say no if there are warnings
  12352. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12353. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12354. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12355. lt_cv_prog_compiler_c_o_CXX=yes
  12356. fi
  12357. fi
  12358. chmod u+w . 2>&5
  12359. $RM conftest*
  12360. # SGI C++ compiler will create directory out/ii_files/ for
  12361. # template instantiation
  12362. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12363. $RM out/* && rmdir out
  12364. cd ..
  12365. $RM -r conftest
  12366. $RM conftest*
  12367. fi
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12369. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12370. hard_links="nottested"
  12371. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12372. # do not overwrite the value of need_locks provided by the user
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12374. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12375. hard_links=yes
  12376. $RM conftest*
  12377. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12378. touch conftest.a
  12379. ln conftest.a conftest.b 2>&5 || hard_links=no
  12380. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12382. $as_echo "$hard_links" >&6; }
  12383. if test "$hard_links" = no; then
  12384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12385. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12386. need_locks=warn
  12387. fi
  12388. else
  12389. need_locks=no
  12390. fi
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12392. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12393. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12394. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12395. case $host_os in
  12396. aix[4-9]*)
  12397. # If we're using GNU nm, then we don't want the "-C" option.
  12398. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12399. # Also, AIX nm treats weak defined symbols like other global defined
  12400. # symbols, whereas GNU nm marks them as "W".
  12401. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12402. 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'
  12403. else
  12404. 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'
  12405. fi
  12406. ;;
  12407. pw32*)
  12408. export_symbols_cmds_CXX="$ltdll_cmds"
  12409. ;;
  12410. cygwin* | mingw* | cegcc*)
  12411. case $cc_basename in
  12412. cl*)
  12413. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12414. ;;
  12415. *)
  12416. 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'
  12417. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12418. ;;
  12419. esac
  12420. ;;
  12421. *)
  12422. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12423. ;;
  12424. esac
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12426. $as_echo "$ld_shlibs_CXX" >&6; }
  12427. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12428. with_gnu_ld_CXX=$with_gnu_ld
  12429. #
  12430. # Do we need to explicitly link libc?
  12431. #
  12432. case "x$archive_cmds_need_lc_CXX" in
  12433. x|xyes)
  12434. # Assume -lc should be added
  12435. archive_cmds_need_lc_CXX=yes
  12436. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12437. case $archive_cmds_CXX in
  12438. *'~'*)
  12439. # FIXME: we may have to deal with multi-command sequences.
  12440. ;;
  12441. '$CC '*)
  12442. # Test whether the compiler implicitly links with -lc since on some
  12443. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12444. # to ld, don't add -lc before -lgcc.
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12446. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12447. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12448. $as_echo_n "(cached) " >&6
  12449. else
  12450. $RM conftest*
  12451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12453. (eval $ac_compile) 2>&5
  12454. ac_status=$?
  12455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12456. test $ac_status = 0; } 2>conftest.err; then
  12457. soname=conftest
  12458. lib=conftest
  12459. libobjs=conftest.$ac_objext
  12460. deplibs=
  12461. wl=$lt_prog_compiler_wl_CXX
  12462. pic_flag=$lt_prog_compiler_pic_CXX
  12463. compiler_flags=-v
  12464. linker_flags=-v
  12465. verstring=
  12466. output_objdir=.
  12467. libname=conftest
  12468. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12469. allow_undefined_flag_CXX=
  12470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12471. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12472. ac_status=$?
  12473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12474. test $ac_status = 0; }
  12475. then
  12476. lt_cv_archive_cmds_need_lc_CXX=no
  12477. else
  12478. lt_cv_archive_cmds_need_lc_CXX=yes
  12479. fi
  12480. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12481. else
  12482. cat conftest.err 1>&5
  12483. fi
  12484. $RM conftest*
  12485. fi
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12487. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12488. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12489. ;;
  12490. esac
  12491. fi
  12492. ;;
  12493. esac
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12495. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12496. library_names_spec=
  12497. libname_spec='lib$name'
  12498. soname_spec=
  12499. shrext_cmds=".so"
  12500. postinstall_cmds=
  12501. postuninstall_cmds=
  12502. finish_cmds=
  12503. finish_eval=
  12504. shlibpath_var=
  12505. shlibpath_overrides_runpath=unknown
  12506. version_type=none
  12507. dynamic_linker="$host_os ld.so"
  12508. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12509. need_lib_prefix=unknown
  12510. hardcode_into_libs=no
  12511. # when you set need_version to no, make sure it does not cause -set_version
  12512. # flags to be left without arguments
  12513. need_version=unknown
  12514. case $host_os in
  12515. aix3*)
  12516. version_type=linux # correct to gnu/linux during the next big refactor
  12517. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12518. shlibpath_var=LIBPATH
  12519. # AIX 3 has no versioning support, so we append a major version to the name.
  12520. soname_spec='${libname}${release}${shared_ext}$major'
  12521. ;;
  12522. aix[4-9]*)
  12523. version_type=linux # correct to gnu/linux during the next big refactor
  12524. need_lib_prefix=no
  12525. need_version=no
  12526. hardcode_into_libs=yes
  12527. if test "$host_cpu" = ia64; then
  12528. # AIX 5 supports IA64
  12529. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12530. shlibpath_var=LD_LIBRARY_PATH
  12531. else
  12532. # With GCC up to 2.95.x, collect2 would create an import file
  12533. # for dependence libraries. The import file would start with
  12534. # the line `#! .'. This would cause the generated library to
  12535. # depend on `.', always an invalid library. This was fixed in
  12536. # development snapshots of GCC prior to 3.0.
  12537. case $host_os in
  12538. aix4 | aix4.[01] | aix4.[01].*)
  12539. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12540. echo ' yes '
  12541. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12542. :
  12543. else
  12544. can_build_shared=no
  12545. fi
  12546. ;;
  12547. esac
  12548. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12549. # soname into executable. Probably we can add versioning support to
  12550. # collect2, so additional links can be useful in future.
  12551. if test "$aix_use_runtimelinking" = yes; then
  12552. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12553. # instead of lib<name>.a to let people know that these are not
  12554. # typical AIX shared libraries.
  12555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12556. else
  12557. # We preserve .a as extension for shared libraries through AIX4.2
  12558. # and later when we are not doing run time linking.
  12559. library_names_spec='${libname}${release}.a $libname.a'
  12560. soname_spec='${libname}${release}${shared_ext}$major'
  12561. fi
  12562. shlibpath_var=LIBPATH
  12563. fi
  12564. ;;
  12565. amigaos*)
  12566. case $host_cpu in
  12567. powerpc)
  12568. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12569. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12571. ;;
  12572. m68k)
  12573. library_names_spec='$libname.ixlibrary $libname.a'
  12574. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12575. 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'
  12576. ;;
  12577. esac
  12578. ;;
  12579. beos*)
  12580. library_names_spec='${libname}${shared_ext}'
  12581. dynamic_linker="$host_os ld.so"
  12582. shlibpath_var=LIBRARY_PATH
  12583. ;;
  12584. bsdi[45]*)
  12585. version_type=linux # correct to gnu/linux during the next big refactor
  12586. need_version=no
  12587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12588. soname_spec='${libname}${release}${shared_ext}$major'
  12589. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12590. shlibpath_var=LD_LIBRARY_PATH
  12591. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12592. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12593. # the default ld.so.conf also contains /usr/contrib/lib and
  12594. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12595. # libtool to hard-code these into programs
  12596. ;;
  12597. cygwin* | mingw* | pw32* | cegcc*)
  12598. version_type=windows
  12599. shrext_cmds=".dll"
  12600. need_version=no
  12601. need_lib_prefix=no
  12602. case $GCC,$cc_basename in
  12603. yes,*)
  12604. # gcc
  12605. library_names_spec='$libname.dll.a'
  12606. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12607. postinstall_cmds='base_file=`basename \${file}`~
  12608. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12609. dldir=$destdir/`dirname \$dlpath`~
  12610. test -d \$dldir || mkdir -p \$dldir~
  12611. $install_prog $dir/$dlname \$dldir/$dlname~
  12612. chmod a+x \$dldir/$dlname~
  12613. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12614. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12615. fi'
  12616. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12617. dlpath=$dir/\$dldll~
  12618. $RM \$dlpath'
  12619. shlibpath_overrides_runpath=yes
  12620. case $host_os in
  12621. cygwin*)
  12622. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12623. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12624. ;;
  12625. mingw* | cegcc*)
  12626. # MinGW DLLs use traditional 'lib' prefix
  12627. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12628. ;;
  12629. pw32*)
  12630. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12631. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12632. ;;
  12633. esac
  12634. dynamic_linker='Win32 ld.exe'
  12635. ;;
  12636. *,cl*)
  12637. # Native MSVC
  12638. libname_spec='$name'
  12639. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12640. library_names_spec='${libname}.dll.lib'
  12641. case $build_os in
  12642. mingw*)
  12643. sys_lib_search_path_spec=
  12644. lt_save_ifs=$IFS
  12645. IFS=';'
  12646. for lt_path in $LIB
  12647. do
  12648. IFS=$lt_save_ifs
  12649. # Let DOS variable expansion print the short 8.3 style file name.
  12650. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12651. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12652. done
  12653. IFS=$lt_save_ifs
  12654. # Convert to MSYS style.
  12655. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12656. ;;
  12657. cygwin*)
  12658. # Convert to unix form, then to dos form, then back to unix form
  12659. # but this time dos style (no spaces!) so that the unix form looks
  12660. # like /cygdrive/c/PROGRA~1:/cygdr...
  12661. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12662. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12663. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12664. ;;
  12665. *)
  12666. sys_lib_search_path_spec="$LIB"
  12667. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12668. # It is most probably a Windows format PATH.
  12669. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12670. else
  12671. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12672. fi
  12673. # FIXME: find the short name or the path components, as spaces are
  12674. # common. (e.g. "Program Files" -> "PROGRA~1")
  12675. ;;
  12676. esac
  12677. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12678. postinstall_cmds='base_file=`basename \${file}`~
  12679. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12680. dldir=$destdir/`dirname \$dlpath`~
  12681. test -d \$dldir || mkdir -p \$dldir~
  12682. $install_prog $dir/$dlname \$dldir/$dlname'
  12683. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12684. dlpath=$dir/\$dldll~
  12685. $RM \$dlpath'
  12686. shlibpath_overrides_runpath=yes
  12687. dynamic_linker='Win32 link.exe'
  12688. ;;
  12689. *)
  12690. # Assume MSVC wrapper
  12691. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12692. dynamic_linker='Win32 ld.exe'
  12693. ;;
  12694. esac
  12695. # FIXME: first we should search . and the directory the executable is in
  12696. shlibpath_var=PATH
  12697. ;;
  12698. darwin* | rhapsody*)
  12699. dynamic_linker="$host_os dyld"
  12700. version_type=darwin
  12701. need_lib_prefix=no
  12702. need_version=no
  12703. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12704. soname_spec='${libname}${release}${major}$shared_ext'
  12705. shlibpath_overrides_runpath=yes
  12706. shlibpath_var=DYLD_LIBRARY_PATH
  12707. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12708. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12709. ;;
  12710. dgux*)
  12711. version_type=linux # correct to gnu/linux during the next big refactor
  12712. need_lib_prefix=no
  12713. need_version=no
  12714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12715. soname_spec='${libname}${release}${shared_ext}$major'
  12716. shlibpath_var=LD_LIBRARY_PATH
  12717. ;;
  12718. freebsd* | dragonfly*)
  12719. # DragonFly does not have aout. When/if they implement a new
  12720. # versioning mechanism, adjust this.
  12721. if test -x /usr/bin/objformat; then
  12722. objformat=`/usr/bin/objformat`
  12723. else
  12724. case $host_os in
  12725. freebsd[23].*) objformat=aout ;;
  12726. *) objformat=elf ;;
  12727. esac
  12728. fi
  12729. version_type=freebsd-$objformat
  12730. case $version_type in
  12731. freebsd-elf*)
  12732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12733. need_version=no
  12734. need_lib_prefix=no
  12735. ;;
  12736. freebsd-*)
  12737. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12738. need_version=yes
  12739. ;;
  12740. esac
  12741. shlibpath_var=LD_LIBRARY_PATH
  12742. case $host_os in
  12743. freebsd2.*)
  12744. shlibpath_overrides_runpath=yes
  12745. ;;
  12746. freebsd3.[01]* | freebsdelf3.[01]*)
  12747. shlibpath_overrides_runpath=yes
  12748. hardcode_into_libs=yes
  12749. ;;
  12750. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12751. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12752. shlibpath_overrides_runpath=no
  12753. hardcode_into_libs=yes
  12754. ;;
  12755. *) # from 4.6 on, and DragonFly
  12756. shlibpath_overrides_runpath=yes
  12757. hardcode_into_libs=yes
  12758. ;;
  12759. esac
  12760. ;;
  12761. gnu*)
  12762. version_type=linux # correct to gnu/linux during the next big refactor
  12763. need_lib_prefix=no
  12764. need_version=no
  12765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12766. soname_spec='${libname}${release}${shared_ext}$major'
  12767. shlibpath_var=LD_LIBRARY_PATH
  12768. shlibpath_overrides_runpath=no
  12769. hardcode_into_libs=yes
  12770. ;;
  12771. haiku*)
  12772. version_type=linux # correct to gnu/linux during the next big refactor
  12773. need_lib_prefix=no
  12774. need_version=no
  12775. dynamic_linker="$host_os runtime_loader"
  12776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12777. soname_spec='${libname}${release}${shared_ext}$major'
  12778. shlibpath_var=LIBRARY_PATH
  12779. shlibpath_overrides_runpath=yes
  12780. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12781. hardcode_into_libs=yes
  12782. ;;
  12783. hpux9* | hpux10* | hpux11*)
  12784. # Give a soname corresponding to the major version so that dld.sl refuses to
  12785. # link against other versions.
  12786. version_type=sunos
  12787. need_lib_prefix=no
  12788. need_version=no
  12789. case $host_cpu in
  12790. ia64*)
  12791. shrext_cmds='.so'
  12792. hardcode_into_libs=yes
  12793. dynamic_linker="$host_os dld.so"
  12794. shlibpath_var=LD_LIBRARY_PATH
  12795. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12797. soname_spec='${libname}${release}${shared_ext}$major'
  12798. if test "X$HPUX_IA64_MODE" = X32; then
  12799. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12800. else
  12801. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12802. fi
  12803. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12804. ;;
  12805. hppa*64*)
  12806. shrext_cmds='.sl'
  12807. hardcode_into_libs=yes
  12808. dynamic_linker="$host_os dld.sl"
  12809. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12810. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12812. soname_spec='${libname}${release}${shared_ext}$major'
  12813. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12814. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12815. ;;
  12816. *)
  12817. shrext_cmds='.sl'
  12818. dynamic_linker="$host_os dld.sl"
  12819. shlibpath_var=SHLIB_PATH
  12820. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12822. soname_spec='${libname}${release}${shared_ext}$major'
  12823. ;;
  12824. esac
  12825. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12826. postinstall_cmds='chmod 555 $lib'
  12827. # or fails outright, so override atomically:
  12828. install_override_mode=555
  12829. ;;
  12830. interix[3-9]*)
  12831. version_type=linux # correct to gnu/linux during the next big refactor
  12832. need_lib_prefix=no
  12833. need_version=no
  12834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12835. soname_spec='${libname}${release}${shared_ext}$major'
  12836. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12837. shlibpath_var=LD_LIBRARY_PATH
  12838. shlibpath_overrides_runpath=no
  12839. hardcode_into_libs=yes
  12840. ;;
  12841. irix5* | irix6* | nonstopux*)
  12842. case $host_os in
  12843. nonstopux*) version_type=nonstopux ;;
  12844. *)
  12845. if test "$lt_cv_prog_gnu_ld" = yes; then
  12846. version_type=linux # correct to gnu/linux during the next big refactor
  12847. else
  12848. version_type=irix
  12849. fi ;;
  12850. esac
  12851. need_lib_prefix=no
  12852. need_version=no
  12853. soname_spec='${libname}${release}${shared_ext}$major'
  12854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12855. case $host_os in
  12856. irix5* | nonstopux*)
  12857. libsuff= shlibsuff=
  12858. ;;
  12859. *)
  12860. case $LD in # libtool.m4 will add one of these switches to LD
  12861. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12862. libsuff= shlibsuff= libmagic=32-bit;;
  12863. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12864. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12865. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12866. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12867. *) libsuff= shlibsuff= libmagic=never-match;;
  12868. esac
  12869. ;;
  12870. esac
  12871. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12872. shlibpath_overrides_runpath=no
  12873. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12874. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12875. hardcode_into_libs=yes
  12876. ;;
  12877. # No shared lib support for Linux oldld, aout, or coff.
  12878. linux*oldld* | linux*aout* | linux*coff*)
  12879. dynamic_linker=no
  12880. ;;
  12881. # This must be glibc/ELF.
  12882. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12883. version_type=linux # correct to gnu/linux during the next big refactor
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12887. soname_spec='${libname}${release}${shared_ext}$major'
  12888. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12889. shlibpath_var=LD_LIBRARY_PATH
  12890. shlibpath_overrides_runpath=no
  12891. # Some binutils ld are patched to set DT_RUNPATH
  12892. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12893. $as_echo_n "(cached) " >&6
  12894. else
  12895. lt_cv_shlibpath_overrides_runpath=no
  12896. save_LDFLAGS=$LDFLAGS
  12897. save_libdir=$libdir
  12898. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12899. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12901. /* end confdefs.h. */
  12902. int
  12903. main ()
  12904. {
  12905. ;
  12906. return 0;
  12907. }
  12908. _ACEOF
  12909. if ac_fn_cxx_try_link "$LINENO"; then :
  12910. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12911. lt_cv_shlibpath_overrides_runpath=yes
  12912. fi
  12913. fi
  12914. rm -f core conftest.err conftest.$ac_objext \
  12915. conftest$ac_exeext conftest.$ac_ext
  12916. LDFLAGS=$save_LDFLAGS
  12917. libdir=$save_libdir
  12918. fi
  12919. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12920. # This implies no fast_install, which is unacceptable.
  12921. # Some rework will be needed to allow for fast_install
  12922. # before this can be enabled.
  12923. hardcode_into_libs=yes
  12924. # Append ld.so.conf contents to the search path
  12925. if test -f /etc/ld.so.conf; then
  12926. 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' ' '`
  12927. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12928. fi
  12929. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12930. # powerpc, because MkLinux only supported shared libraries with the
  12931. # GNU dynamic linker. Since this was broken with cross compilers,
  12932. # most powerpc-linux boxes support dynamic linking these days and
  12933. # people can always --disable-shared, the test was removed, and we
  12934. # assume the GNU/Linux dynamic linker is in use.
  12935. dynamic_linker='GNU/Linux ld.so'
  12936. ;;
  12937. netbsd*)
  12938. version_type=sunos
  12939. need_lib_prefix=no
  12940. need_version=no
  12941. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12943. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12944. dynamic_linker='NetBSD (a.out) ld.so'
  12945. else
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. dynamic_linker='NetBSD ld.elf_so'
  12949. fi
  12950. shlibpath_var=LD_LIBRARY_PATH
  12951. shlibpath_overrides_runpath=yes
  12952. hardcode_into_libs=yes
  12953. ;;
  12954. newsos6)
  12955. version_type=linux # correct to gnu/linux during the next big refactor
  12956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. shlibpath_overrides_runpath=yes
  12959. ;;
  12960. *nto* | *qnx*)
  12961. version_type=qnx
  12962. need_lib_prefix=no
  12963. need_version=no
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12965. soname_spec='${libname}${release}${shared_ext}$major'
  12966. shlibpath_var=LD_LIBRARY_PATH
  12967. shlibpath_overrides_runpath=no
  12968. hardcode_into_libs=yes
  12969. dynamic_linker='ldqnx.so'
  12970. ;;
  12971. openbsd*)
  12972. version_type=sunos
  12973. sys_lib_dlsearch_path_spec="/usr/lib"
  12974. need_lib_prefix=no
  12975. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12976. case $host_os in
  12977. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12978. *) need_version=no ;;
  12979. esac
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12981. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12982. shlibpath_var=LD_LIBRARY_PATH
  12983. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12984. case $host_os in
  12985. openbsd2.[89] | openbsd2.[89].*)
  12986. shlibpath_overrides_runpath=no
  12987. ;;
  12988. *)
  12989. shlibpath_overrides_runpath=yes
  12990. ;;
  12991. esac
  12992. else
  12993. shlibpath_overrides_runpath=yes
  12994. fi
  12995. ;;
  12996. os2*)
  12997. libname_spec='$name'
  12998. shrext_cmds=".dll"
  12999. need_lib_prefix=no
  13000. library_names_spec='$libname${shared_ext} $libname.a'
  13001. dynamic_linker='OS/2 ld.exe'
  13002. shlibpath_var=LIBPATH
  13003. ;;
  13004. osf3* | osf4* | osf5*)
  13005. version_type=osf
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. soname_spec='${libname}${release}${shared_ext}$major'
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13010. shlibpath_var=LD_LIBRARY_PATH
  13011. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13012. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13013. ;;
  13014. rdos*)
  13015. dynamic_linker=no
  13016. ;;
  13017. solaris*)
  13018. version_type=linux # correct to gnu/linux during the next big refactor
  13019. need_lib_prefix=no
  13020. need_version=no
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13022. soname_spec='${libname}${release}${shared_ext}$major'
  13023. shlibpath_var=LD_LIBRARY_PATH
  13024. shlibpath_overrides_runpath=yes
  13025. hardcode_into_libs=yes
  13026. # ldd complains unless libraries are executable
  13027. postinstall_cmds='chmod +x $lib'
  13028. ;;
  13029. sunos4*)
  13030. version_type=sunos
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13032. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13033. shlibpath_var=LD_LIBRARY_PATH
  13034. shlibpath_overrides_runpath=yes
  13035. if test "$with_gnu_ld" = yes; then
  13036. need_lib_prefix=no
  13037. fi
  13038. need_version=yes
  13039. ;;
  13040. sysv4 | sysv4.3*)
  13041. version_type=linux # correct to gnu/linux during the next big refactor
  13042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13043. soname_spec='${libname}${release}${shared_ext}$major'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. case $host_vendor in
  13046. sni)
  13047. shlibpath_overrides_runpath=no
  13048. need_lib_prefix=no
  13049. runpath_var=LD_RUN_PATH
  13050. ;;
  13051. siemens)
  13052. need_lib_prefix=no
  13053. ;;
  13054. motorola)
  13055. need_lib_prefix=no
  13056. need_version=no
  13057. shlibpath_overrides_runpath=no
  13058. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13059. ;;
  13060. esac
  13061. ;;
  13062. sysv4*MP*)
  13063. if test -d /usr/nec ;then
  13064. version_type=linux # correct to gnu/linux during the next big refactor
  13065. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13066. soname_spec='$libname${shared_ext}.$major'
  13067. shlibpath_var=LD_LIBRARY_PATH
  13068. fi
  13069. ;;
  13070. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13071. version_type=freebsd-elf
  13072. need_lib_prefix=no
  13073. need_version=no
  13074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13075. soname_spec='${libname}${release}${shared_ext}$major'
  13076. shlibpath_var=LD_LIBRARY_PATH
  13077. shlibpath_overrides_runpath=yes
  13078. hardcode_into_libs=yes
  13079. if test "$with_gnu_ld" = yes; then
  13080. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13081. else
  13082. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13083. case $host_os in
  13084. sco3.2v5*)
  13085. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13086. ;;
  13087. esac
  13088. fi
  13089. sys_lib_dlsearch_path_spec='/usr/lib'
  13090. ;;
  13091. tpf*)
  13092. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13093. version_type=linux # correct to gnu/linux during the next big refactor
  13094. need_lib_prefix=no
  13095. need_version=no
  13096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13097. shlibpath_var=LD_LIBRARY_PATH
  13098. shlibpath_overrides_runpath=no
  13099. hardcode_into_libs=yes
  13100. ;;
  13101. uts4*)
  13102. version_type=linux # correct to gnu/linux during the next big refactor
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13104. soname_spec='${libname}${release}${shared_ext}$major'
  13105. shlibpath_var=LD_LIBRARY_PATH
  13106. ;;
  13107. *)
  13108. dynamic_linker=no
  13109. ;;
  13110. esac
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13112. $as_echo "$dynamic_linker" >&6; }
  13113. test "$dynamic_linker" = no && can_build_shared=no
  13114. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13115. if test "$GCC" = yes; then
  13116. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13117. fi
  13118. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13119. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13120. fi
  13121. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13122. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13123. fi
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13125. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13126. hardcode_action_CXX=
  13127. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13128. test -n "$runpath_var_CXX" ||
  13129. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13130. # We can hardcode non-existent directories.
  13131. if test "$hardcode_direct_CXX" != no &&
  13132. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13133. # have to relink, otherwise we might link with an installed library
  13134. # when we should be linking with a yet-to-be-installed one
  13135. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13136. test "$hardcode_minus_L_CXX" != no; then
  13137. # Linking always hardcodes the temporary library directory.
  13138. hardcode_action_CXX=relink
  13139. else
  13140. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13141. hardcode_action_CXX=immediate
  13142. fi
  13143. else
  13144. # We cannot hardcode anything, or else we can only hardcode existing
  13145. # directories.
  13146. hardcode_action_CXX=unsupported
  13147. fi
  13148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13149. $as_echo "$hardcode_action_CXX" >&6; }
  13150. if test "$hardcode_action_CXX" = relink ||
  13151. test "$inherit_rpath_CXX" = yes; then
  13152. # Fast installation is not supported
  13153. enable_fast_install=no
  13154. elif test "$shlibpath_overrides_runpath" = yes ||
  13155. test "$enable_shared" = no; then
  13156. # Fast installation is not necessary
  13157. enable_fast_install=needless
  13158. fi
  13159. fi # test -n "$compiler"
  13160. CC=$lt_save_CC
  13161. CFLAGS=$lt_save_CFLAGS
  13162. LDCXX=$LD
  13163. LD=$lt_save_LD
  13164. GCC=$lt_save_GCC
  13165. with_gnu_ld=$lt_save_with_gnu_ld
  13166. lt_cv_path_LDCXX=$lt_cv_path_LD
  13167. lt_cv_path_LD=$lt_save_path_LD
  13168. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13169. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13170. fi # test "$_lt_caught_CXX_error" != yes
  13171. ac_ext=c
  13172. ac_cpp='$CPP $CPPFLAGS'
  13173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13176. ac_config_commands="$ac_config_commands libtool"
  13177. # Only expand once:
  13178. ac_config_headers="$ac_config_headers config.h"
  13179. am__api_version='1.11'
  13180. # Find a good install program. We prefer a C program (faster),
  13181. # so one script is as good as another. But avoid the broken or
  13182. # incompatible versions:
  13183. # SysV /etc/install, /usr/sbin/install
  13184. # SunOS /usr/etc/install
  13185. # IRIX /sbin/install
  13186. # AIX /bin/install
  13187. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13188. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13189. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13190. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13191. # OS/2's system install, which has a completely different semantic
  13192. # ./install, which can be erroneously created by make from ./install.sh.
  13193. # Reject install programs that cannot install multiple files.
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13195. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13196. if test -z "$INSTALL"; then
  13197. if ${ac_cv_path_install+:} false; then :
  13198. $as_echo_n "(cached) " >&6
  13199. else
  13200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13201. for as_dir in $PATH
  13202. do
  13203. IFS=$as_save_IFS
  13204. test -z "$as_dir" && as_dir=.
  13205. # Account for people who put trailing slashes in PATH elements.
  13206. case $as_dir/ in #((
  13207. ./ | .// | /[cC]/* | \
  13208. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13209. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13210. /usr/ucb/* ) ;;
  13211. *)
  13212. # OSF1 and SCO ODT 3.0 have their own names for install.
  13213. # Don't use installbsd from OSF since it installs stuff as root
  13214. # by default.
  13215. for ac_prog in ginstall scoinst install; do
  13216. for ac_exec_ext in '' $ac_executable_extensions; do
  13217. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13218. if test $ac_prog = install &&
  13219. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13220. # AIX install. It has an incompatible calling convention.
  13221. :
  13222. elif test $ac_prog = install &&
  13223. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13224. # program-specific install script used by HP pwplus--don't use.
  13225. :
  13226. else
  13227. rm -rf conftest.one conftest.two conftest.dir
  13228. echo one > conftest.one
  13229. echo two > conftest.two
  13230. mkdir conftest.dir
  13231. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13232. test -s conftest.one && test -s conftest.two &&
  13233. test -s conftest.dir/conftest.one &&
  13234. test -s conftest.dir/conftest.two
  13235. then
  13236. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13237. break 3
  13238. fi
  13239. fi
  13240. fi
  13241. done
  13242. done
  13243. ;;
  13244. esac
  13245. done
  13246. IFS=$as_save_IFS
  13247. rm -rf conftest.one conftest.two conftest.dir
  13248. fi
  13249. if test "${ac_cv_path_install+set}" = set; then
  13250. INSTALL=$ac_cv_path_install
  13251. else
  13252. # As a last resort, use the slow shell script. Don't cache a
  13253. # value for INSTALL within a source directory, because that will
  13254. # break other packages using the cache if that directory is
  13255. # removed, or if the value is a relative name.
  13256. INSTALL=$ac_install_sh
  13257. fi
  13258. fi
  13259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13260. $as_echo "$INSTALL" >&6; }
  13261. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13262. # It thinks the first close brace ends the variable substitution.
  13263. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13264. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13265. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13267. $as_echo_n "checking whether build environment is sane... " >&6; }
  13268. # Just in case
  13269. sleep 1
  13270. echo timestamp > conftest.file
  13271. # Reject unsafe characters in $srcdir or the absolute working directory
  13272. # name. Accept space and tab only in the latter.
  13273. am_lf='
  13274. '
  13275. case `pwd` in
  13276. *[\\\"\#\$\&\'\`$am_lf]*)
  13277. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13278. esac
  13279. case $srcdir in
  13280. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13281. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13282. esac
  13283. # Do `set' in a subshell so we don't clobber the current shell's
  13284. # arguments. Must try -L first in case configure is actually a
  13285. # symlink; some systems play weird games with the mod time of symlinks
  13286. # (eg FreeBSD returns the mod time of the symlink's containing
  13287. # directory).
  13288. if (
  13289. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13290. if test "$*" = "X"; then
  13291. # -L didn't work.
  13292. set X `ls -t "$srcdir/configure" conftest.file`
  13293. fi
  13294. rm -f conftest.file
  13295. if test "$*" != "X $srcdir/configure conftest.file" \
  13296. && test "$*" != "X conftest.file $srcdir/configure"; then
  13297. # If neither matched, then we have a broken ls. This can happen
  13298. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13299. # broken ls alias from the environment. This has actually
  13300. # happened. Such a system could not be considered "sane".
  13301. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13302. alias in your environment" "$LINENO" 5
  13303. fi
  13304. test "$2" = conftest.file
  13305. )
  13306. then
  13307. # Ok.
  13308. :
  13309. else
  13310. as_fn_error $? "newly created file is older than distributed files!
  13311. Check your system clock" "$LINENO" 5
  13312. fi
  13313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13314. $as_echo "yes" >&6; }
  13315. test "$program_prefix" != NONE &&
  13316. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13317. # Use a double $ so make ignores it.
  13318. test "$program_suffix" != NONE &&
  13319. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13320. # Double any \ or $.
  13321. # By default was `s,x,x', remove it if useless.
  13322. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13323. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13324. # expand $ac_aux_dir to an absolute path
  13325. am_aux_dir=`cd $ac_aux_dir && pwd`
  13326. if test x"${MISSING+set}" != xset; then
  13327. case $am_aux_dir in
  13328. *\ * | *\ *)
  13329. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13330. *)
  13331. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13332. esac
  13333. fi
  13334. # Use eval to expand $SHELL
  13335. if eval "$MISSING --run true"; then
  13336. am_missing_run="$MISSING --run "
  13337. else
  13338. am_missing_run=
  13339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13340. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13341. fi
  13342. if test x"${install_sh}" != xset; then
  13343. case $am_aux_dir in
  13344. *\ * | *\ *)
  13345. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13346. *)
  13347. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13348. esac
  13349. fi
  13350. # Installed binaries are usually stripped using `strip' when the user
  13351. # run `make install-strip'. However `strip' might not be the right
  13352. # tool to use in cross-compilation environments, therefore Automake
  13353. # will honor the `STRIP' environment variable to overrule this program.
  13354. if test "$cross_compiling" != no; then
  13355. if test -n "$ac_tool_prefix"; then
  13356. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13357. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13359. $as_echo_n "checking for $ac_word... " >&6; }
  13360. if ${ac_cv_prog_STRIP+:} false; then :
  13361. $as_echo_n "(cached) " >&6
  13362. else
  13363. if test -n "$STRIP"; then
  13364. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13365. else
  13366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13367. for as_dir in $PATH
  13368. do
  13369. IFS=$as_save_IFS
  13370. test -z "$as_dir" && as_dir=.
  13371. for ac_exec_ext in '' $ac_executable_extensions; do
  13372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13373. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13375. break 2
  13376. fi
  13377. done
  13378. done
  13379. IFS=$as_save_IFS
  13380. fi
  13381. fi
  13382. STRIP=$ac_cv_prog_STRIP
  13383. if test -n "$STRIP"; then
  13384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13385. $as_echo "$STRIP" >&6; }
  13386. else
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13388. $as_echo "no" >&6; }
  13389. fi
  13390. fi
  13391. if test -z "$ac_cv_prog_STRIP"; then
  13392. ac_ct_STRIP=$STRIP
  13393. # Extract the first word of "strip", so it can be a program name with args.
  13394. set dummy strip; ac_word=$2
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13396. $as_echo_n "checking for $ac_word... " >&6; }
  13397. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13398. $as_echo_n "(cached) " >&6
  13399. else
  13400. if test -n "$ac_ct_STRIP"; then
  13401. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13402. else
  13403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13404. for as_dir in $PATH
  13405. do
  13406. IFS=$as_save_IFS
  13407. test -z "$as_dir" && as_dir=.
  13408. for ac_exec_ext in '' $ac_executable_extensions; do
  13409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13410. ac_cv_prog_ac_ct_STRIP="strip"
  13411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13412. break 2
  13413. fi
  13414. done
  13415. done
  13416. IFS=$as_save_IFS
  13417. fi
  13418. fi
  13419. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13420. if test -n "$ac_ct_STRIP"; then
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13422. $as_echo "$ac_ct_STRIP" >&6; }
  13423. else
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13425. $as_echo "no" >&6; }
  13426. fi
  13427. if test "x$ac_ct_STRIP" = x; then
  13428. STRIP=":"
  13429. else
  13430. case $cross_compiling:$ac_tool_warned in
  13431. yes:)
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13434. ac_tool_warned=yes ;;
  13435. esac
  13436. STRIP=$ac_ct_STRIP
  13437. fi
  13438. else
  13439. STRIP="$ac_cv_prog_STRIP"
  13440. fi
  13441. fi
  13442. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13444. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13445. if test -z "$MKDIR_P"; then
  13446. if ${ac_cv_path_mkdir+:} false; then :
  13447. $as_echo_n "(cached) " >&6
  13448. else
  13449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13450. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13451. do
  13452. IFS=$as_save_IFS
  13453. test -z "$as_dir" && as_dir=.
  13454. for ac_prog in mkdir gmkdir; do
  13455. for ac_exec_ext in '' $ac_executable_extensions; do
  13456. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13457. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13458. 'mkdir (GNU coreutils) '* | \
  13459. 'mkdir (coreutils) '* | \
  13460. 'mkdir (fileutils) '4.1*)
  13461. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13462. break 3;;
  13463. esac
  13464. done
  13465. done
  13466. done
  13467. IFS=$as_save_IFS
  13468. fi
  13469. test -d ./--version && rmdir ./--version
  13470. if test "${ac_cv_path_mkdir+set}" = set; then
  13471. MKDIR_P="$ac_cv_path_mkdir -p"
  13472. else
  13473. # As a last resort, use the slow shell script. Don't cache a
  13474. # value for MKDIR_P within a source directory, because that will
  13475. # break other packages using the cache if that directory is
  13476. # removed, or if the value is a relative name.
  13477. MKDIR_P="$ac_install_sh -d"
  13478. fi
  13479. fi
  13480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13481. $as_echo "$MKDIR_P" >&6; }
  13482. mkdir_p="$MKDIR_P"
  13483. case $mkdir_p in
  13484. [\\/$]* | ?:[\\/]*) ;;
  13485. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13486. esac
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13488. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13489. set x ${MAKE-make}
  13490. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13491. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13492. $as_echo_n "(cached) " >&6
  13493. else
  13494. cat >conftest.make <<\_ACEOF
  13495. SHELL = /bin/sh
  13496. all:
  13497. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13498. _ACEOF
  13499. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13500. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13501. *@@@%%%=?*=@@@%%%*)
  13502. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13503. *)
  13504. eval ac_cv_prog_make_${ac_make}_set=no;;
  13505. esac
  13506. rm -f conftest.make
  13507. fi
  13508. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13510. $as_echo "yes" >&6; }
  13511. SET_MAKE=
  13512. else
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13514. $as_echo "no" >&6; }
  13515. SET_MAKE="MAKE=${MAKE-make}"
  13516. fi
  13517. rm -rf .tst 2>/dev/null
  13518. mkdir .tst 2>/dev/null
  13519. if test -d .tst; then
  13520. am__leading_dot=.
  13521. else
  13522. am__leading_dot=_
  13523. fi
  13524. rmdir .tst 2>/dev/null
  13525. DEPDIR="${am__leading_dot}deps"
  13526. ac_config_commands="$ac_config_commands depfiles"
  13527. am_make=${MAKE-make}
  13528. cat > confinc << 'END'
  13529. am__doit:
  13530. @echo this is the am__doit target
  13531. .PHONY: am__doit
  13532. END
  13533. # If we don't find an include directive, just comment out the code.
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13535. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13536. am__include="#"
  13537. am__quote=
  13538. _am_result=none
  13539. # First try GNU make style include.
  13540. echo "include confinc" > confmf
  13541. # Ignore all kinds of additional output from `make'.
  13542. case `$am_make -s -f confmf 2> /dev/null` in #(
  13543. *the\ am__doit\ target*)
  13544. am__include=include
  13545. am__quote=
  13546. _am_result=GNU
  13547. ;;
  13548. esac
  13549. # Now try BSD make style include.
  13550. if test "$am__include" = "#"; then
  13551. echo '.include "confinc"' > confmf
  13552. case `$am_make -s -f confmf 2> /dev/null` in #(
  13553. *the\ am__doit\ target*)
  13554. am__include=.include
  13555. am__quote="\""
  13556. _am_result=BSD
  13557. ;;
  13558. esac
  13559. fi
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13561. $as_echo "$_am_result" >&6; }
  13562. rm -f confinc confmf
  13563. # Check whether --enable-dependency-tracking was given.
  13564. if test "${enable_dependency_tracking+set}" = set; then :
  13565. enableval=$enable_dependency_tracking;
  13566. fi
  13567. if test "x$enable_dependency_tracking" != xno; then
  13568. am_depcomp="$ac_aux_dir/depcomp"
  13569. AMDEPBACKSLASH='\'
  13570. am__nodep='_no'
  13571. fi
  13572. if test "x$enable_dependency_tracking" != xno; then
  13573. AMDEP_TRUE=
  13574. AMDEP_FALSE='#'
  13575. else
  13576. AMDEP_TRUE='#'
  13577. AMDEP_FALSE=
  13578. fi
  13579. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13580. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13581. # is not polluted with repeated "-I."
  13582. am__isrc=' -I$(srcdir)'
  13583. # test to see if srcdir already configured
  13584. if test -f $srcdir/config.status; then
  13585. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13586. fi
  13587. fi
  13588. # test whether we have cygpath
  13589. if test -z "$CYGPATH_W"; then
  13590. if (cygpath --version) >/dev/null 2>/dev/null; then
  13591. CYGPATH_W='cygpath -w'
  13592. else
  13593. CYGPATH_W=echo
  13594. fi
  13595. fi
  13596. # Define the identity of the package.
  13597. PACKAGE='klish'
  13598. VERSION='1.5.4'
  13599. cat >>confdefs.h <<_ACEOF
  13600. #define PACKAGE "$PACKAGE"
  13601. _ACEOF
  13602. cat >>confdefs.h <<_ACEOF
  13603. #define VERSION "$VERSION"
  13604. _ACEOF
  13605. # Some tools Automake needs.
  13606. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13607. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13608. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13609. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13610. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13611. # We need awk for the "check" target. The system "awk" is bad on
  13612. # some platforms.
  13613. # Always define AMTAR for backward compatibility. Yes, it's still used
  13614. # in the wild :-( We should find a proper way to deprecate it ...
  13615. AMTAR='$${TAR-tar}'
  13616. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13617. depcc="$CC" am_compiler_list=
  13618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13619. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13620. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13621. $as_echo_n "(cached) " >&6
  13622. else
  13623. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13624. # We make a subdir and do the tests there. Otherwise we can end up
  13625. # making bogus files that we don't know about and never remove. For
  13626. # instance it was reported that on HP-UX the gcc test will end up
  13627. # making a dummy file named `D' -- because `-MD' means `put the output
  13628. # in D'.
  13629. rm -rf conftest.dir
  13630. mkdir conftest.dir
  13631. # Copy depcomp to subdir because otherwise we won't find it if we're
  13632. # using a relative directory.
  13633. cp "$am_depcomp" conftest.dir
  13634. cd conftest.dir
  13635. # We will build objects and dependencies in a subdirectory because
  13636. # it helps to detect inapplicable dependency modes. For instance
  13637. # both Tru64's cc and ICC support -MD to output dependencies as a
  13638. # side effect of compilation, but ICC will put the dependencies in
  13639. # the current directory while Tru64 will put them in the object
  13640. # directory.
  13641. mkdir sub
  13642. am_cv_CC_dependencies_compiler_type=none
  13643. if test "$am_compiler_list" = ""; then
  13644. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13645. fi
  13646. am__universal=false
  13647. case " $depcc " in #(
  13648. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13649. esac
  13650. for depmode in $am_compiler_list; do
  13651. # Setup a source with many dependencies, because some compilers
  13652. # like to wrap large dependency lists on column 80 (with \), and
  13653. # we should not choose a depcomp mode which is confused by this.
  13654. #
  13655. # We need to recreate these files for each test, as the compiler may
  13656. # overwrite some of them when testing with obscure command lines.
  13657. # This happens at least with the AIX C compiler.
  13658. : > sub/conftest.c
  13659. for i in 1 2 3 4 5 6; do
  13660. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13661. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13662. # Solaris 8's {/usr,}/bin/sh.
  13663. touch sub/conftst$i.h
  13664. done
  13665. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13666. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13667. # mode. It turns out that the SunPro C++ compiler does not properly
  13668. # handle `-M -o', and we need to detect this. Also, some Intel
  13669. # versions had trouble with output in subdirs
  13670. am__obj=sub/conftest.${OBJEXT-o}
  13671. am__minus_obj="-o $am__obj"
  13672. case $depmode in
  13673. gcc)
  13674. # This depmode causes a compiler race in universal mode.
  13675. test "$am__universal" = false || continue
  13676. ;;
  13677. nosideeffect)
  13678. # after this tag, mechanisms are not by side-effect, so they'll
  13679. # only be used when explicitly requested
  13680. if test "x$enable_dependency_tracking" = xyes; then
  13681. continue
  13682. else
  13683. break
  13684. fi
  13685. ;;
  13686. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13687. # This compiler won't grok `-c -o', but also, the minuso test has
  13688. # not run yet. These depmodes are late enough in the game, and
  13689. # so weak that their functioning should not be impacted.
  13690. am__obj=conftest.${OBJEXT-o}
  13691. am__minus_obj=
  13692. ;;
  13693. none) break ;;
  13694. esac
  13695. if depmode=$depmode \
  13696. source=sub/conftest.c object=$am__obj \
  13697. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13698. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13699. >/dev/null 2>conftest.err &&
  13700. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13701. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13702. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13703. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13704. # icc doesn't choke on unknown options, it will just issue warnings
  13705. # or remarks (even with -Werror). So we grep stderr for any message
  13706. # that says an option was ignored or not supported.
  13707. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13708. # icc: Command line warning: ignoring option '-M'; no argument required
  13709. # The diagnosis changed in icc 8.0:
  13710. # icc: Command line remark: option '-MP' not supported
  13711. if (grep 'ignoring option' conftest.err ||
  13712. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13713. am_cv_CC_dependencies_compiler_type=$depmode
  13714. break
  13715. fi
  13716. fi
  13717. done
  13718. cd ..
  13719. rm -rf conftest.dir
  13720. else
  13721. am_cv_CC_dependencies_compiler_type=none
  13722. fi
  13723. fi
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13725. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13726. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13727. if
  13728. test "x$enable_dependency_tracking" != xno \
  13729. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13730. am__fastdepCC_TRUE=
  13731. am__fastdepCC_FALSE='#'
  13732. else
  13733. am__fastdepCC_TRUE='#'
  13734. am__fastdepCC_FALSE=
  13735. fi
  13736. depcc="$CXX" am_compiler_list=
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13738. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13739. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13740. $as_echo_n "(cached) " >&6
  13741. else
  13742. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13743. # We make a subdir and do the tests there. Otherwise we can end up
  13744. # making bogus files that we don't know about and never remove. For
  13745. # instance it was reported that on HP-UX the gcc test will end up
  13746. # making a dummy file named `D' -- because `-MD' means `put the output
  13747. # in D'.
  13748. rm -rf conftest.dir
  13749. mkdir conftest.dir
  13750. # Copy depcomp to subdir because otherwise we won't find it if we're
  13751. # using a relative directory.
  13752. cp "$am_depcomp" conftest.dir
  13753. cd conftest.dir
  13754. # We will build objects and dependencies in a subdirectory because
  13755. # it helps to detect inapplicable dependency modes. For instance
  13756. # both Tru64's cc and ICC support -MD to output dependencies as a
  13757. # side effect of compilation, but ICC will put the dependencies in
  13758. # the current directory while Tru64 will put them in the object
  13759. # directory.
  13760. mkdir sub
  13761. am_cv_CXX_dependencies_compiler_type=none
  13762. if test "$am_compiler_list" = ""; then
  13763. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13764. fi
  13765. am__universal=false
  13766. case " $depcc " in #(
  13767. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13768. esac
  13769. for depmode in $am_compiler_list; do
  13770. # Setup a source with many dependencies, because some compilers
  13771. # like to wrap large dependency lists on column 80 (with \), and
  13772. # we should not choose a depcomp mode which is confused by this.
  13773. #
  13774. # We need to recreate these files for each test, as the compiler may
  13775. # overwrite some of them when testing with obscure command lines.
  13776. # This happens at least with the AIX C compiler.
  13777. : > sub/conftest.c
  13778. for i in 1 2 3 4 5 6; do
  13779. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13780. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13781. # Solaris 8's {/usr,}/bin/sh.
  13782. touch sub/conftst$i.h
  13783. done
  13784. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13785. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13786. # mode. It turns out that the SunPro C++ compiler does not properly
  13787. # handle `-M -o', and we need to detect this. Also, some Intel
  13788. # versions had trouble with output in subdirs
  13789. am__obj=sub/conftest.${OBJEXT-o}
  13790. am__minus_obj="-o $am__obj"
  13791. case $depmode in
  13792. gcc)
  13793. # This depmode causes a compiler race in universal mode.
  13794. test "$am__universal" = false || continue
  13795. ;;
  13796. nosideeffect)
  13797. # after this tag, mechanisms are not by side-effect, so they'll
  13798. # only be used when explicitly requested
  13799. if test "x$enable_dependency_tracking" = xyes; then
  13800. continue
  13801. else
  13802. break
  13803. fi
  13804. ;;
  13805. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13806. # This compiler won't grok `-c -o', but also, the minuso test has
  13807. # not run yet. These depmodes are late enough in the game, and
  13808. # so weak that their functioning should not be impacted.
  13809. am__obj=conftest.${OBJEXT-o}
  13810. am__minus_obj=
  13811. ;;
  13812. none) break ;;
  13813. esac
  13814. if depmode=$depmode \
  13815. source=sub/conftest.c object=$am__obj \
  13816. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13817. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13818. >/dev/null 2>conftest.err &&
  13819. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13820. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13821. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13822. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13823. # icc doesn't choke on unknown options, it will just issue warnings
  13824. # or remarks (even with -Werror). So we grep stderr for any message
  13825. # that says an option was ignored or not supported.
  13826. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13827. # icc: Command line warning: ignoring option '-M'; no argument required
  13828. # The diagnosis changed in icc 8.0:
  13829. # icc: Command line remark: option '-MP' not supported
  13830. if (grep 'ignoring option' conftest.err ||
  13831. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13832. am_cv_CXX_dependencies_compiler_type=$depmode
  13833. break
  13834. fi
  13835. fi
  13836. done
  13837. cd ..
  13838. rm -rf conftest.dir
  13839. else
  13840. am_cv_CXX_dependencies_compiler_type=none
  13841. fi
  13842. fi
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13844. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13845. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13846. if
  13847. test "x$enable_dependency_tracking" != xno \
  13848. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13849. am__fastdepCXX_TRUE=
  13850. am__fastdepCXX_FALSE='#'
  13851. else
  13852. am__fastdepCXX_TRUE='#'
  13853. am__fastdepCXX_FALSE=
  13854. fi
  13855. if test "x$CC" != xcc; then
  13856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13857. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13858. else
  13859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13860. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13861. fi
  13862. set dummy $CC; ac_cc=`$as_echo "$2" |
  13863. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13864. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13865. $as_echo_n "(cached) " >&6
  13866. else
  13867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13868. /* end confdefs.h. */
  13869. int
  13870. main ()
  13871. {
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. # Make sure it works both with $CC and with simple cc.
  13877. # We do the test twice because some compilers refuse to overwrite an
  13878. # existing .o file with -o, though they will create one.
  13879. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13880. rm -f conftest2.*
  13881. if { { case "(($ac_try" in
  13882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13883. *) ac_try_echo=$ac_try;;
  13884. esac
  13885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13886. $as_echo "$ac_try_echo"; } >&5
  13887. (eval "$ac_try") 2>&5
  13888. ac_status=$?
  13889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13890. test $ac_status = 0; } &&
  13891. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13893. *) ac_try_echo=$ac_try;;
  13894. esac
  13895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13896. $as_echo "$ac_try_echo"; } >&5
  13897. (eval "$ac_try") 2>&5
  13898. ac_status=$?
  13899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13900. test $ac_status = 0; };
  13901. then
  13902. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13903. if test "x$CC" != xcc; then
  13904. # Test first that cc exists at all.
  13905. if { ac_try='cc -c conftest.$ac_ext >&5'
  13906. { { case "(($ac_try" in
  13907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13908. *) ac_try_echo=$ac_try;;
  13909. esac
  13910. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13911. $as_echo "$ac_try_echo"; } >&5
  13912. (eval "$ac_try") 2>&5
  13913. ac_status=$?
  13914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13915. test $ac_status = 0; }; }; then
  13916. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13917. rm -f conftest2.*
  13918. if { { case "(($ac_try" in
  13919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13920. *) ac_try_echo=$ac_try;;
  13921. esac
  13922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13923. $as_echo "$ac_try_echo"; } >&5
  13924. (eval "$ac_try") 2>&5
  13925. ac_status=$?
  13926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13927. test $ac_status = 0; } &&
  13928. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13930. *) ac_try_echo=$ac_try;;
  13931. esac
  13932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13933. $as_echo "$ac_try_echo"; } >&5
  13934. (eval "$ac_try") 2>&5
  13935. ac_status=$?
  13936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13937. test $ac_status = 0; };
  13938. then
  13939. # cc works too.
  13940. :
  13941. else
  13942. # cc exists but doesn't like -o.
  13943. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13944. fi
  13945. fi
  13946. fi
  13947. else
  13948. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13949. fi
  13950. rm -f core conftest*
  13951. fi
  13952. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13954. $as_echo "yes" >&6; }
  13955. else
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13957. $as_echo "no" >&6; }
  13958. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13959. fi
  13960. # FIXME: we rely on the cache variable name because
  13961. # there is no other way.
  13962. set dummy $CC
  13963. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13964. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13965. if test "$am_t" != yes; then
  13966. # Losing compiler, so override with the script.
  13967. # FIXME: It is wrong to rewrite CC.
  13968. # But if we don't then we get into trouble of one sort or another.
  13969. # A longer-term fix would be to have automake use am__CC in this case,
  13970. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13971. CC="$am_aux_dir/compile $CC"
  13972. fi
  13973. # needed to handle 64-bit architecture
  13974. # The cast to long int works around a bug in the HP C Compiler
  13975. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13976. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13977. # This bug is HP SR number 8606223364.
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13979. $as_echo_n "checking size of int... " >&6; }
  13980. if ${ac_cv_sizeof_int+:} false; then :
  13981. $as_echo_n "(cached) " >&6
  13982. else
  13983. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13984. else
  13985. if test "$ac_cv_type_int" = yes; then
  13986. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13987. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13988. as_fn_error 77 "cannot compute sizeof (int)
  13989. See \`config.log' for more details" "$LINENO" 5; }
  13990. else
  13991. ac_cv_sizeof_int=0
  13992. fi
  13993. fi
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13996. $as_echo "$ac_cv_sizeof_int" >&6; }
  13997. cat >>confdefs.h <<_ACEOF
  13998. #define SIZEOF_INT $ac_cv_sizeof_int
  13999. _ACEOF
  14000. # The cast to long int works around a bug in the HP C Compiler
  14001. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14002. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14003. # This bug is HP SR number 8606223364.
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14005. $as_echo_n "checking size of long... " >&6; }
  14006. if ${ac_cv_sizeof_long+:} false; then :
  14007. $as_echo_n "(cached) " >&6
  14008. else
  14009. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14010. else
  14011. if test "$ac_cv_type_long" = yes; then
  14012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14014. as_fn_error 77 "cannot compute sizeof (long)
  14015. See \`config.log' for more details" "$LINENO" 5; }
  14016. else
  14017. ac_cv_sizeof_long=0
  14018. fi
  14019. fi
  14020. fi
  14021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14022. $as_echo "$ac_cv_sizeof_long" >&6; }
  14023. cat >>confdefs.h <<_ACEOF
  14024. #define SIZEOF_LONG $ac_cv_sizeof_long
  14025. _ACEOF
  14026. # The cast to long int works around a bug in the HP C Compiler
  14027. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14028. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14029. # This bug is HP SR number 8606223364.
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14031. $as_echo_n "checking size of size_t... " >&6; }
  14032. if ${ac_cv_sizeof_size_t+:} false; then :
  14033. $as_echo_n "(cached) " >&6
  14034. else
  14035. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14036. else
  14037. if test "$ac_cv_type_size_t" = yes; then
  14038. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14040. as_fn_error 77 "cannot compute sizeof (size_t)
  14041. See \`config.log' for more details" "$LINENO" 5; }
  14042. else
  14043. ac_cv_sizeof_size_t=0
  14044. fi
  14045. fi
  14046. fi
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14048. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14049. cat >>confdefs.h <<_ACEOF
  14050. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14051. _ACEOF
  14052. #------------------------------------------------------------------------
  14053. # Handle the --prefix=... option
  14054. #------------------------------------------------------------------------
  14055. if test "${prefix}" = "NONE"; then
  14056. prefix=/usr/local
  14057. fi
  14058. if test "${exec_prefix}" = "NONE"; then
  14059. exec_prefix=$prefix
  14060. fi
  14061. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14062. eval libdir="$libdir"
  14063. ################################
  14064. # Deal with debugging options
  14065. ################################
  14066. # Check whether --enable-debug was given.
  14067. if test "${enable_debug+set}" = set; then :
  14068. enableval=$enable_debug;
  14069. else
  14070. enable_debug=no
  14071. fi
  14072. if test x$enable_debug = xyes; then
  14073. DEBUG_TRUE=
  14074. DEBUG_FALSE='#'
  14075. else
  14076. DEBUG_TRUE='#'
  14077. DEBUG_FALSE=
  14078. fi
  14079. ################################
  14080. # Check for the LUB library
  14081. ################################
  14082. LUB_LIBS="-llub"
  14083. LUB_CFLAGS=""
  14084. if test "x$LUB_LIBS" = "x"; then
  14085. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14086. fi
  14087. ################################
  14088. # Check for the KONF library
  14089. ################################
  14090. KONF_LIBS="-lkonf"
  14091. KONF_CFLAGS=""
  14092. if test "x$KONF_LIBS" = "x"; then
  14093. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14094. fi
  14095. ################################
  14096. # Check for the TINYRL library
  14097. ################################
  14098. TINYRL_LIBS="-ltinyrl"
  14099. TINYRL_CFLAGS=""
  14100. if test "x$TINYRL_LIBS" = "x"; then
  14101. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14102. fi
  14103. ################################
  14104. # Check for the TINYXML library
  14105. ################################
  14106. TINYXML_LIBS="-ltinyxml"
  14107. TINYXML_CXXFLAGS="-std=gnu++98"
  14108. if test "x$TINYXML_LIBS" = "x"; then
  14109. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14110. fi
  14111. ################################
  14112. # Search for network functions (like connect())
  14113. ################################
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14115. $as_echo_n "checking for library containing socket... " >&6; }
  14116. if ${ac_cv_search_socket+:} false; then :
  14117. $as_echo_n "(cached) " >&6
  14118. else
  14119. ac_func_search_save_LIBS=$LIBS
  14120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14121. /* end confdefs.h. */
  14122. /* Override any GCC internal prototype to avoid an error.
  14123. Use char because int might match the return type of a GCC
  14124. builtin and then its argument prototype would still apply. */
  14125. #ifdef __cplusplus
  14126. extern "C"
  14127. #endif
  14128. char socket ();
  14129. int
  14130. main ()
  14131. {
  14132. return socket ();
  14133. ;
  14134. return 0;
  14135. }
  14136. _ACEOF
  14137. for ac_lib in '' socket; do
  14138. if test -z "$ac_lib"; then
  14139. ac_res="none required"
  14140. else
  14141. ac_res=-l$ac_lib
  14142. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14143. fi
  14144. if ac_fn_c_try_link "$LINENO"; then :
  14145. ac_cv_search_socket=$ac_res
  14146. fi
  14147. rm -f core conftest.err conftest.$ac_objext \
  14148. conftest$ac_exeext
  14149. if ${ac_cv_search_socket+:} false; then :
  14150. break
  14151. fi
  14152. done
  14153. if ${ac_cv_search_socket+:} false; then :
  14154. else
  14155. ac_cv_search_socket=no
  14156. fi
  14157. rm conftest.$ac_ext
  14158. LIBS=$ac_func_search_save_LIBS
  14159. fi
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14161. $as_echo "$ac_cv_search_socket" >&6; }
  14162. ac_res=$ac_cv_search_socket
  14163. if test "$ac_res" != no; then :
  14164. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14165. fi
  14166. ################################
  14167. # Check for regex.h
  14168. ################################
  14169. for ac_header in regex.h
  14170. do :
  14171. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14172. if test "x$ac_cv_header_regex_h" = xyes; then :
  14173. cat >>confdefs.h <<_ACEOF
  14174. #define HAVE_REGEX_H 1
  14175. _ACEOF
  14176. else
  14177. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14178. fi
  14179. done
  14180. ################################
  14181. # Check for getopt_long()
  14182. ################################
  14183. for ac_header in getopt.h
  14184. do :
  14185. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14186. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14187. cat >>confdefs.h <<_ACEOF
  14188. #define HAVE_GETOPT_H 1
  14189. _ACEOF
  14190. else
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14192. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14193. fi
  14194. done
  14195. ################################
  14196. # Check for locale.h
  14197. ################################
  14198. for ac_header in locale.h
  14199. do :
  14200. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14201. if test "x$ac_cv_header_locale_h" = xyes; then :
  14202. cat >>confdefs.h <<_ACEOF
  14203. #define HAVE_LOCALE_H 1
  14204. _ACEOF
  14205. else
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14207. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14208. fi
  14209. done
  14210. ################################
  14211. # Check for CODESET within nl_langinfo
  14212. ################################
  14213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14214. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14215. if ${am_cv_langinfo_codeset+:} false; then :
  14216. $as_echo_n "(cached) " >&6
  14217. else
  14218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14219. /* end confdefs.h. */
  14220. #include <langinfo.h>
  14221. int
  14222. main ()
  14223. {
  14224. char* cs = nl_langinfo(CODESET); return !cs;
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. if ac_fn_c_try_link "$LINENO"; then :
  14230. am_cv_langinfo_codeset=yes
  14231. else
  14232. am_cv_langinfo_codeset=no
  14233. fi
  14234. rm -f core conftest.err conftest.$ac_objext \
  14235. conftest$ac_exeext conftest.$ac_ext
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14238. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14239. if test $am_cv_langinfo_codeset = yes; then
  14240. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14241. fi
  14242. ################################
  14243. # Check for pwd.h and grp.h
  14244. ################################
  14245. for ac_header in pwd.h
  14246. do :
  14247. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14248. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14249. cat >>confdefs.h <<_ACEOF
  14250. #define HAVE_PWD_H 1
  14251. _ACEOF
  14252. else
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14254. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14255. fi
  14256. done
  14257. for ac_header in grp.h
  14258. do :
  14259. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14260. if test "x$ac_cv_header_grp_h" = xyes; then :
  14261. cat >>confdefs.h <<_ACEOF
  14262. #define HAVE_GRP_H 1
  14263. _ACEOF
  14264. else
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14266. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14267. fi
  14268. done
  14269. ################################
  14270. # Check for chroot
  14271. ################################
  14272. for ac_func in chroot
  14273. do :
  14274. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14275. if test "x$ac_cv_func_chroot" = xyes; then :
  14276. cat >>confdefs.h <<_ACEOF
  14277. #define HAVE_CHROOT 1
  14278. _ACEOF
  14279. else
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14281. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14282. fi
  14283. done
  14284. ac_config_files="$ac_config_files Makefile"
  14285. cat >confcache <<\_ACEOF
  14286. # This file is a shell script that caches the results of configure
  14287. # tests run on this system so they can be shared between configure
  14288. # scripts and configure runs, see configure's option --config-cache.
  14289. # It is not useful on other systems. If it contains results you don't
  14290. # want to keep, you may remove or edit it.
  14291. #
  14292. # config.status only pays attention to the cache file if you give it
  14293. # the --recheck option to rerun configure.
  14294. #
  14295. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14296. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14297. # following values.
  14298. _ACEOF
  14299. # The following way of writing the cache mishandles newlines in values,
  14300. # but we know of no workaround that is simple, portable, and efficient.
  14301. # So, we kill variables containing newlines.
  14302. # Ultrix sh set writes to stderr and can't be redirected directly,
  14303. # and sets the high bit in the cache file unless we assign to the vars.
  14304. (
  14305. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14306. eval ac_val=\$$ac_var
  14307. case $ac_val in #(
  14308. *${as_nl}*)
  14309. case $ac_var in #(
  14310. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14311. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14312. esac
  14313. case $ac_var in #(
  14314. _ | IFS | as_nl) ;; #(
  14315. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14316. *) { eval $ac_var=; unset $ac_var;} ;;
  14317. esac ;;
  14318. esac
  14319. done
  14320. (set) 2>&1 |
  14321. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14322. *${as_nl}ac_space=\ *)
  14323. # `set' does not quote correctly, so add quotes: double-quote
  14324. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14325. sed -n \
  14326. "s/'/'\\\\''/g;
  14327. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14328. ;; #(
  14329. *)
  14330. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14331. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14332. ;;
  14333. esac |
  14334. sort
  14335. ) |
  14336. sed '
  14337. /^ac_cv_env_/b end
  14338. t clear
  14339. :clear
  14340. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14341. t end
  14342. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14343. :end' >>confcache
  14344. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14345. if test -w "$cache_file"; then
  14346. if test "x$cache_file" != "x/dev/null"; then
  14347. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14348. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14349. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14350. cat confcache >"$cache_file"
  14351. else
  14352. case $cache_file in #(
  14353. */* | ?:*)
  14354. mv -f confcache "$cache_file"$$ &&
  14355. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14356. *)
  14357. mv -f confcache "$cache_file" ;;
  14358. esac
  14359. fi
  14360. fi
  14361. else
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14363. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14364. fi
  14365. fi
  14366. rm -f confcache
  14367. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14368. # Let make expand exec_prefix.
  14369. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14370. DEFS=-DHAVE_CONFIG_H
  14371. ac_libobjs=
  14372. ac_ltlibobjs=
  14373. U=
  14374. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14375. # 1. Remove the extension, and $U if already installed.
  14376. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14377. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14378. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14379. # will be set to the directory where LIBOBJS objects are built.
  14380. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14381. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14382. done
  14383. LIBOBJS=$ac_libobjs
  14384. LTLIBOBJS=$ac_ltlibobjs
  14385. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14386. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14387. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14388. fi
  14389. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14390. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14391. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14392. fi
  14393. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14394. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14395. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14396. fi
  14397. if test -n "$EXEEXT"; then
  14398. am__EXEEXT_TRUE=
  14399. am__EXEEXT_FALSE='#'
  14400. else
  14401. am__EXEEXT_TRUE='#'
  14402. am__EXEEXT_FALSE=
  14403. fi
  14404. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14405. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14407. fi
  14408. : "${CONFIG_STATUS=./config.status}"
  14409. ac_write_fail=0
  14410. ac_clean_files_save=$ac_clean_files
  14411. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14412. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14413. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14414. as_write_fail=0
  14415. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14416. #! $SHELL
  14417. # Generated by $as_me.
  14418. # Run this file to recreate the current configuration.
  14419. # Compiler output produced by configure, useful for debugging
  14420. # configure, is in config.log if it exists.
  14421. debug=false
  14422. ac_cs_recheck=false
  14423. ac_cs_silent=false
  14424. SHELL=\${CONFIG_SHELL-$SHELL}
  14425. export SHELL
  14426. _ASEOF
  14427. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14428. ## -------------------- ##
  14429. ## M4sh Initialization. ##
  14430. ## -------------------- ##
  14431. # Be more Bourne compatible
  14432. DUALCASE=1; export DUALCASE # for MKS sh
  14433. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14434. emulate sh
  14435. NULLCMD=:
  14436. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14437. # is contrary to our usage. Disable this feature.
  14438. alias -g '${1+"$@"}'='"$@"'
  14439. setopt NO_GLOB_SUBST
  14440. else
  14441. case `(set -o) 2>/dev/null` in #(
  14442. *posix*) :
  14443. set -o posix ;; #(
  14444. *) :
  14445. ;;
  14446. esac
  14447. fi
  14448. as_nl='
  14449. '
  14450. export as_nl
  14451. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14452. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14453. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14454. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14455. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14456. # but without wasting forks for bash or zsh.
  14457. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14458. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14459. as_echo='print -r --'
  14460. as_echo_n='print -rn --'
  14461. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14462. as_echo='printf %s\n'
  14463. as_echo_n='printf %s'
  14464. else
  14465. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14466. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14467. as_echo_n='/usr/ucb/echo -n'
  14468. else
  14469. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14470. as_echo_n_body='eval
  14471. arg=$1;
  14472. case $arg in #(
  14473. *"$as_nl"*)
  14474. expr "X$arg" : "X\\(.*\\)$as_nl";
  14475. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14476. esac;
  14477. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14478. '
  14479. export as_echo_n_body
  14480. as_echo_n='sh -c $as_echo_n_body as_echo'
  14481. fi
  14482. export as_echo_body
  14483. as_echo='sh -c $as_echo_body as_echo'
  14484. fi
  14485. # The user is always right.
  14486. if test "${PATH_SEPARATOR+set}" != set; then
  14487. PATH_SEPARATOR=:
  14488. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14489. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14490. PATH_SEPARATOR=';'
  14491. }
  14492. fi
  14493. # IFS
  14494. # We need space, tab and new line, in precisely that order. Quoting is
  14495. # there to prevent editors from complaining about space-tab.
  14496. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14497. # splitting by setting IFS to empty value.)
  14498. IFS=" "" $as_nl"
  14499. # Find who we are. Look in the path if we contain no directory separator.
  14500. as_myself=
  14501. case $0 in #((
  14502. *[\\/]* ) as_myself=$0 ;;
  14503. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14504. for as_dir in $PATH
  14505. do
  14506. IFS=$as_save_IFS
  14507. test -z "$as_dir" && as_dir=.
  14508. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14509. done
  14510. IFS=$as_save_IFS
  14511. ;;
  14512. esac
  14513. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14514. # in which case we are not to be found in the path.
  14515. if test "x$as_myself" = x; then
  14516. as_myself=$0
  14517. fi
  14518. if test ! -f "$as_myself"; then
  14519. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14520. exit 1
  14521. fi
  14522. # Unset variables that we do not need and which cause bugs (e.g. in
  14523. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14524. # suppresses any "Segmentation fault" message there. '((' could
  14525. # trigger a bug in pdksh 5.2.14.
  14526. for as_var in BASH_ENV ENV MAIL MAILPATH
  14527. do eval test x\${$as_var+set} = xset \
  14528. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14529. done
  14530. PS1='$ '
  14531. PS2='> '
  14532. PS4='+ '
  14533. # NLS nuisances.
  14534. LC_ALL=C
  14535. export LC_ALL
  14536. LANGUAGE=C
  14537. export LANGUAGE
  14538. # CDPATH.
  14539. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14540. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14541. # ----------------------------------------
  14542. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14543. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14544. # script with STATUS, using 1 if that was 0.
  14545. as_fn_error ()
  14546. {
  14547. as_status=$1; test $as_status -eq 0 && as_status=1
  14548. if test "$4"; then
  14549. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14550. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14551. fi
  14552. $as_echo "$as_me: error: $2" >&2
  14553. as_fn_exit $as_status
  14554. } # as_fn_error
  14555. # as_fn_set_status STATUS
  14556. # -----------------------
  14557. # Set $? to STATUS, without forking.
  14558. as_fn_set_status ()
  14559. {
  14560. return $1
  14561. } # as_fn_set_status
  14562. # as_fn_exit STATUS
  14563. # -----------------
  14564. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14565. as_fn_exit ()
  14566. {
  14567. set +e
  14568. as_fn_set_status $1
  14569. exit $1
  14570. } # as_fn_exit
  14571. # as_fn_unset VAR
  14572. # ---------------
  14573. # Portably unset VAR.
  14574. as_fn_unset ()
  14575. {
  14576. { eval $1=; unset $1;}
  14577. }
  14578. as_unset=as_fn_unset
  14579. # as_fn_append VAR VALUE
  14580. # ----------------------
  14581. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14582. # advantage of any shell optimizations that allow amortized linear growth over
  14583. # repeated appends, instead of the typical quadratic growth present in naive
  14584. # implementations.
  14585. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14586. eval 'as_fn_append ()
  14587. {
  14588. eval $1+=\$2
  14589. }'
  14590. else
  14591. as_fn_append ()
  14592. {
  14593. eval $1=\$$1\$2
  14594. }
  14595. fi # as_fn_append
  14596. # as_fn_arith ARG...
  14597. # ------------------
  14598. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14599. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14600. # must be portable across $(()) and expr.
  14601. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14602. eval 'as_fn_arith ()
  14603. {
  14604. as_val=$(( $* ))
  14605. }'
  14606. else
  14607. as_fn_arith ()
  14608. {
  14609. as_val=`expr "$@" || test $? -eq 1`
  14610. }
  14611. fi # as_fn_arith
  14612. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14613. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14614. as_expr=expr
  14615. else
  14616. as_expr=false
  14617. fi
  14618. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14619. as_basename=basename
  14620. else
  14621. as_basename=false
  14622. fi
  14623. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14624. as_dirname=dirname
  14625. else
  14626. as_dirname=false
  14627. fi
  14628. as_me=`$as_basename -- "$0" ||
  14629. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14630. X"$0" : 'X\(//\)$' \| \
  14631. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14632. $as_echo X/"$0" |
  14633. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14634. s//\1/
  14635. q
  14636. }
  14637. /^X\/\(\/\/\)$/{
  14638. s//\1/
  14639. q
  14640. }
  14641. /^X\/\(\/\).*/{
  14642. s//\1/
  14643. q
  14644. }
  14645. s/.*/./; q'`
  14646. # Avoid depending upon Character Ranges.
  14647. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14648. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14649. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14650. as_cr_digits='0123456789'
  14651. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14652. ECHO_C= ECHO_N= ECHO_T=
  14653. case `echo -n x` in #(((((
  14654. -n*)
  14655. case `echo 'xy\c'` in
  14656. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14657. xy) ECHO_C='\c';;
  14658. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14659. ECHO_T=' ';;
  14660. esac;;
  14661. *)
  14662. ECHO_N='-n';;
  14663. esac
  14664. rm -f conf$$ conf$$.exe conf$$.file
  14665. if test -d conf$$.dir; then
  14666. rm -f conf$$.dir/conf$$.file
  14667. else
  14668. rm -f conf$$.dir
  14669. mkdir conf$$.dir 2>/dev/null
  14670. fi
  14671. if (echo >conf$$.file) 2>/dev/null; then
  14672. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14673. as_ln_s='ln -s'
  14674. # ... but there are two gotchas:
  14675. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14676. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14677. # In both cases, we have to default to `cp -p'.
  14678. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14679. as_ln_s='cp -p'
  14680. elif ln conf$$.file conf$$ 2>/dev/null; then
  14681. as_ln_s=ln
  14682. else
  14683. as_ln_s='cp -p'
  14684. fi
  14685. else
  14686. as_ln_s='cp -p'
  14687. fi
  14688. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14689. rmdir conf$$.dir 2>/dev/null
  14690. # as_fn_mkdir_p
  14691. # -------------
  14692. # Create "$as_dir" as a directory, including parents if necessary.
  14693. as_fn_mkdir_p ()
  14694. {
  14695. case $as_dir in #(
  14696. -*) as_dir=./$as_dir;;
  14697. esac
  14698. test -d "$as_dir" || eval $as_mkdir_p || {
  14699. as_dirs=
  14700. while :; do
  14701. case $as_dir in #(
  14702. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14703. *) as_qdir=$as_dir;;
  14704. esac
  14705. as_dirs="'$as_qdir' $as_dirs"
  14706. as_dir=`$as_dirname -- "$as_dir" ||
  14707. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14708. X"$as_dir" : 'X\(//\)[^/]' \| \
  14709. X"$as_dir" : 'X\(//\)$' \| \
  14710. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14711. $as_echo X"$as_dir" |
  14712. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14713. s//\1/
  14714. q
  14715. }
  14716. /^X\(\/\/\)[^/].*/{
  14717. s//\1/
  14718. q
  14719. }
  14720. /^X\(\/\/\)$/{
  14721. s//\1/
  14722. q
  14723. }
  14724. /^X\(\/\).*/{
  14725. s//\1/
  14726. q
  14727. }
  14728. s/.*/./; q'`
  14729. test -d "$as_dir" && break
  14730. done
  14731. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14732. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14733. } # as_fn_mkdir_p
  14734. if mkdir -p . 2>/dev/null; then
  14735. as_mkdir_p='mkdir -p "$as_dir"'
  14736. else
  14737. test -d ./-p && rmdir ./-p
  14738. as_mkdir_p=false
  14739. fi
  14740. if test -x / >/dev/null 2>&1; then
  14741. as_test_x='test -x'
  14742. else
  14743. if ls -dL / >/dev/null 2>&1; then
  14744. as_ls_L_option=L
  14745. else
  14746. as_ls_L_option=
  14747. fi
  14748. as_test_x='
  14749. eval sh -c '\''
  14750. if test -d "$1"; then
  14751. test -d "$1/.";
  14752. else
  14753. case $1 in #(
  14754. -*)set "./$1";;
  14755. esac;
  14756. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14757. ???[sx]*):;;*)false;;esac;fi
  14758. '\'' sh
  14759. '
  14760. fi
  14761. as_executable_p=$as_test_x
  14762. # Sed expression to map a string onto a valid CPP name.
  14763. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14764. # Sed expression to map a string onto a valid variable name.
  14765. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14766. exec 6>&1
  14767. ## ----------------------------------- ##
  14768. ## Main body of $CONFIG_STATUS script. ##
  14769. ## ----------------------------------- ##
  14770. _ASEOF
  14771. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14773. # Save the log message, to keep $0 and so on meaningful, and to
  14774. # report actual input values of CONFIG_FILES etc. instead of their
  14775. # values after options handling.
  14776. ac_log="
  14777. This file was extended by klish $as_me 1.5.4, which was
  14778. generated by GNU Autoconf 2.68. Invocation command line was
  14779. CONFIG_FILES = $CONFIG_FILES
  14780. CONFIG_HEADERS = $CONFIG_HEADERS
  14781. CONFIG_LINKS = $CONFIG_LINKS
  14782. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14783. $ $0 $@
  14784. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14785. "
  14786. _ACEOF
  14787. case $ac_config_files in *"
  14788. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14789. esac
  14790. case $ac_config_headers in *"
  14791. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14792. esac
  14793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14794. # Files that config.status was made for.
  14795. config_files="$ac_config_files"
  14796. config_headers="$ac_config_headers"
  14797. config_commands="$ac_config_commands"
  14798. _ACEOF
  14799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14800. ac_cs_usage="\
  14801. \`$as_me' instantiates files and other configuration actions
  14802. from templates according to the current configuration. Unless the files
  14803. and actions are specified as TAGs, all are instantiated by default.
  14804. Usage: $0 [OPTION]... [TAG]...
  14805. -h, --help print this help, then exit
  14806. -V, --version print version number and configuration settings, then exit
  14807. --config print configuration, then exit
  14808. -q, --quiet, --silent
  14809. do not print progress messages
  14810. -d, --debug don't remove temporary files
  14811. --recheck update $as_me by reconfiguring in the same conditions
  14812. --file=FILE[:TEMPLATE]
  14813. instantiate the configuration file FILE
  14814. --header=FILE[:TEMPLATE]
  14815. instantiate the configuration header FILE
  14816. Configuration files:
  14817. $config_files
  14818. Configuration headers:
  14819. $config_headers
  14820. Configuration commands:
  14821. $config_commands
  14822. Report bugs to <serj.kalichev at gmail dot com>."
  14823. _ACEOF
  14824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14825. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14826. ac_cs_version="\\
  14827. klish config.status 1.5.4
  14828. configured by $0, generated by GNU Autoconf 2.68,
  14829. with options \\"\$ac_cs_config\\"
  14830. Copyright (C) 2010 Free Software Foundation, Inc.
  14831. This config.status script is free software; the Free Software Foundation
  14832. gives unlimited permission to copy, distribute and modify it."
  14833. ac_pwd='$ac_pwd'
  14834. srcdir='$srcdir'
  14835. INSTALL='$INSTALL'
  14836. MKDIR_P='$MKDIR_P'
  14837. AWK='$AWK'
  14838. test -n "\$AWK" || AWK=awk
  14839. _ACEOF
  14840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14841. # The default lists apply if the user does not specify any file.
  14842. ac_need_defaults=:
  14843. while test $# != 0
  14844. do
  14845. case $1 in
  14846. --*=?*)
  14847. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14848. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14849. ac_shift=:
  14850. ;;
  14851. --*=)
  14852. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14853. ac_optarg=
  14854. ac_shift=:
  14855. ;;
  14856. *)
  14857. ac_option=$1
  14858. ac_optarg=$2
  14859. ac_shift=shift
  14860. ;;
  14861. esac
  14862. case $ac_option in
  14863. # Handling of the options.
  14864. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14865. ac_cs_recheck=: ;;
  14866. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14867. $as_echo "$ac_cs_version"; exit ;;
  14868. --config | --confi | --conf | --con | --co | --c )
  14869. $as_echo "$ac_cs_config"; exit ;;
  14870. --debug | --debu | --deb | --de | --d | -d )
  14871. debug=: ;;
  14872. --file | --fil | --fi | --f )
  14873. $ac_shift
  14874. case $ac_optarg in
  14875. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14876. '') as_fn_error $? "missing file argument" ;;
  14877. esac
  14878. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14879. ac_need_defaults=false;;
  14880. --header | --heade | --head | --hea )
  14881. $ac_shift
  14882. case $ac_optarg in
  14883. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14884. esac
  14885. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14886. ac_need_defaults=false;;
  14887. --he | --h)
  14888. # Conflict between --help and --header
  14889. as_fn_error $? "ambiguous option: \`$1'
  14890. Try \`$0 --help' for more information.";;
  14891. --help | --hel | -h )
  14892. $as_echo "$ac_cs_usage"; exit ;;
  14893. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14894. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14895. ac_cs_silent=: ;;
  14896. # This is an error.
  14897. -*) as_fn_error $? "unrecognized option: \`$1'
  14898. Try \`$0 --help' for more information." ;;
  14899. *) as_fn_append ac_config_targets " $1"
  14900. ac_need_defaults=false ;;
  14901. esac
  14902. shift
  14903. done
  14904. ac_configure_extra_args=
  14905. if $ac_cs_silent; then
  14906. exec 6>/dev/null
  14907. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14908. fi
  14909. _ACEOF
  14910. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14911. if \$ac_cs_recheck; then
  14912. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14913. shift
  14914. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14915. CONFIG_SHELL='$SHELL'
  14916. export CONFIG_SHELL
  14917. exec "\$@"
  14918. fi
  14919. _ACEOF
  14920. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14921. exec 5>>config.log
  14922. {
  14923. echo
  14924. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14925. ## Running $as_me. ##
  14926. _ASBOX
  14927. $as_echo "$ac_log"
  14928. } >&5
  14929. _ACEOF
  14930. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14931. #
  14932. # INIT-COMMANDS
  14933. #
  14934. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14935. # if CDPATH is set.
  14936. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14937. sed_quote_subst='$sed_quote_subst'
  14938. double_quote_subst='$double_quote_subst'
  14939. delay_variable_subst='$delay_variable_subst'
  14940. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14941. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14942. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14943. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14944. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14945. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14946. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14947. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14948. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14949. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14950. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14951. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14952. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14953. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14954. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14955. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14956. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14957. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14958. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14959. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14960. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14961. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14962. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14963. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14964. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14965. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14966. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14967. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14968. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14969. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14970. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14971. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14972. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14973. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14974. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14975. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14976. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14977. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14978. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14979. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14980. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14981. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14982. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14983. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14984. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14985. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14986. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14987. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14988. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14989. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14990. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14991. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14992. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14993. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14994. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14995. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14996. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14997. 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"`'
  14998. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14999. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15000. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15001. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15002. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15003. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15004. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15005. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15006. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15007. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15008. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15009. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15010. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15011. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15012. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15013. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15014. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15015. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15016. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15017. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15018. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15019. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15020. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15021. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15022. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15023. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15024. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15025. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15026. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15027. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15028. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15029. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15030. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15031. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15032. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15033. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15034. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15035. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15036. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15037. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15038. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15039. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15040. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15041. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15042. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15043. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15044. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15045. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15046. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15047. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15048. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15049. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15050. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15051. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15052. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15053. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15054. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15055. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15056. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15057. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15058. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15059. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15060. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15061. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15062. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15063. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15064. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15065. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15066. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15067. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15068. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15069. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15070. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15071. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15072. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15073. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15074. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15075. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15076. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15077. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15078. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15079. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15080. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15081. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15082. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15083. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15084. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15085. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15086. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15087. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15088. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15089. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15090. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15091. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15092. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15093. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15094. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15095. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15096. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15097. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15098. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15099. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15100. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15101. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15102. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15103. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15104. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15105. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15106. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15107. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15108. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15109. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15110. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15111. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15112. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15113. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15114. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15115. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15116. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15117. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15118. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15119. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15120. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15121. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15122. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15123. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15124. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15125. LTCC='$LTCC'
  15126. LTCFLAGS='$LTCFLAGS'
  15127. compiler='$compiler_DEFAULT'
  15128. # A function that is used when there is no print builtin or printf.
  15129. func_fallback_echo ()
  15130. {
  15131. eval 'cat <<_LTECHO_EOF
  15132. \$1
  15133. _LTECHO_EOF'
  15134. }
  15135. # Quote evaled strings.
  15136. for var in AS \
  15137. DLLTOOL \
  15138. OBJDUMP \
  15139. SHELL \
  15140. ECHO \
  15141. PATH_SEPARATOR \
  15142. SED \
  15143. GREP \
  15144. EGREP \
  15145. FGREP \
  15146. LD \
  15147. NM \
  15148. LN_S \
  15149. lt_SP2NL \
  15150. lt_NL2SP \
  15151. reload_flag \
  15152. deplibs_check_method \
  15153. file_magic_cmd \
  15154. file_magic_glob \
  15155. want_nocaseglob \
  15156. sharedlib_from_linklib_cmd \
  15157. AR \
  15158. AR_FLAGS \
  15159. archiver_list_spec \
  15160. STRIP \
  15161. RANLIB \
  15162. CC \
  15163. CFLAGS \
  15164. compiler \
  15165. lt_cv_sys_global_symbol_pipe \
  15166. lt_cv_sys_global_symbol_to_cdecl \
  15167. lt_cv_sys_global_symbol_to_c_name_address \
  15168. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15169. nm_file_list_spec \
  15170. lt_prog_compiler_no_builtin_flag \
  15171. lt_prog_compiler_pic \
  15172. lt_prog_compiler_wl \
  15173. lt_prog_compiler_static \
  15174. lt_cv_prog_compiler_c_o \
  15175. need_locks \
  15176. MANIFEST_TOOL \
  15177. DSYMUTIL \
  15178. NMEDIT \
  15179. LIPO \
  15180. OTOOL \
  15181. OTOOL64 \
  15182. shrext_cmds \
  15183. export_dynamic_flag_spec \
  15184. whole_archive_flag_spec \
  15185. compiler_needs_object \
  15186. with_gnu_ld \
  15187. allow_undefined_flag \
  15188. no_undefined_flag \
  15189. hardcode_libdir_flag_spec \
  15190. hardcode_libdir_separator \
  15191. exclude_expsyms \
  15192. include_expsyms \
  15193. file_list_spec \
  15194. variables_saved_for_relink \
  15195. libname_spec \
  15196. library_names_spec \
  15197. soname_spec \
  15198. install_override_mode \
  15199. finish_eval \
  15200. old_striplib \
  15201. striplib \
  15202. compiler_lib_search_dirs \
  15203. predep_objects \
  15204. postdep_objects \
  15205. predeps \
  15206. postdeps \
  15207. compiler_lib_search_path \
  15208. LD_CXX \
  15209. reload_flag_CXX \
  15210. compiler_CXX \
  15211. lt_prog_compiler_no_builtin_flag_CXX \
  15212. lt_prog_compiler_pic_CXX \
  15213. lt_prog_compiler_wl_CXX \
  15214. lt_prog_compiler_static_CXX \
  15215. lt_cv_prog_compiler_c_o_CXX \
  15216. export_dynamic_flag_spec_CXX \
  15217. whole_archive_flag_spec_CXX \
  15218. compiler_needs_object_CXX \
  15219. with_gnu_ld_CXX \
  15220. allow_undefined_flag_CXX \
  15221. no_undefined_flag_CXX \
  15222. hardcode_libdir_flag_spec_CXX \
  15223. hardcode_libdir_separator_CXX \
  15224. exclude_expsyms_CXX \
  15225. include_expsyms_CXX \
  15226. file_list_spec_CXX \
  15227. compiler_lib_search_dirs_CXX \
  15228. predep_objects_CXX \
  15229. postdep_objects_CXX \
  15230. predeps_CXX \
  15231. postdeps_CXX \
  15232. compiler_lib_search_path_CXX; do
  15233. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15234. *[\\\\\\\`\\"\\\$]*)
  15235. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15236. ;;
  15237. *)
  15238. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15239. ;;
  15240. esac
  15241. done
  15242. # Double-quote double-evaled strings.
  15243. for var in reload_cmds \
  15244. old_postinstall_cmds \
  15245. old_postuninstall_cmds \
  15246. old_archive_cmds \
  15247. extract_expsyms_cmds \
  15248. old_archive_from_new_cmds \
  15249. old_archive_from_expsyms_cmds \
  15250. archive_cmds \
  15251. archive_expsym_cmds \
  15252. module_cmds \
  15253. module_expsym_cmds \
  15254. export_symbols_cmds \
  15255. prelink_cmds \
  15256. postlink_cmds \
  15257. postinstall_cmds \
  15258. postuninstall_cmds \
  15259. finish_cmds \
  15260. sys_lib_search_path_spec \
  15261. sys_lib_dlsearch_path_spec \
  15262. reload_cmds_CXX \
  15263. old_archive_cmds_CXX \
  15264. old_archive_from_new_cmds_CXX \
  15265. old_archive_from_expsyms_cmds_CXX \
  15266. archive_cmds_CXX \
  15267. archive_expsym_cmds_CXX \
  15268. module_cmds_CXX \
  15269. module_expsym_cmds_CXX \
  15270. export_symbols_cmds_CXX \
  15271. prelink_cmds_CXX \
  15272. postlink_cmds_CXX; do
  15273. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15274. *[\\\\\\\`\\"\\\$]*)
  15275. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15276. ;;
  15277. *)
  15278. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15279. ;;
  15280. esac
  15281. done
  15282. ac_aux_dir='$ac_aux_dir'
  15283. xsi_shell='$xsi_shell'
  15284. lt_shell_append='$lt_shell_append'
  15285. # See if we are running on zsh, and set the options which allow our
  15286. # commands through without removal of \ escapes INIT.
  15287. if test -n "\${ZSH_VERSION+set}" ; then
  15288. setopt NO_GLOB_SUBST
  15289. fi
  15290. PACKAGE='$PACKAGE'
  15291. VERSION='$VERSION'
  15292. TIMESTAMP='$TIMESTAMP'
  15293. RM='$RM'
  15294. ofile='$ofile'
  15295. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15296. _ACEOF
  15297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15298. # Handling of arguments.
  15299. for ac_config_target in $ac_config_targets
  15300. do
  15301. case $ac_config_target in
  15302. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15303. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15304. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15305. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15306. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15307. esac
  15308. done
  15309. # If the user did not use the arguments to specify the items to instantiate,
  15310. # then the envvar interface is used. Set only those that are not.
  15311. # We use the long form for the default assignment because of an extremely
  15312. # bizarre bug on SunOS 4.1.3.
  15313. if $ac_need_defaults; then
  15314. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15315. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15316. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15317. fi
  15318. # Have a temporary directory for convenience. Make it in the build tree
  15319. # simply because there is no reason against having it here, and in addition,
  15320. # creating and moving files from /tmp can sometimes cause problems.
  15321. # Hook for its removal unless debugging.
  15322. # Note that there is a small window in which the directory will not be cleaned:
  15323. # after its creation but before its name has been assigned to `$tmp'.
  15324. $debug ||
  15325. {
  15326. tmp= ac_tmp=
  15327. trap 'exit_status=$?
  15328. : "${ac_tmp:=$tmp}"
  15329. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15330. ' 0
  15331. trap 'as_fn_exit 1' 1 2 13 15
  15332. }
  15333. # Create a (secure) tmp directory for tmp files.
  15334. {
  15335. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15336. test -d "$tmp"
  15337. } ||
  15338. {
  15339. tmp=./conf$$-$RANDOM
  15340. (umask 077 && mkdir "$tmp")
  15341. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15342. ac_tmp=$tmp
  15343. # Set up the scripts for CONFIG_FILES section.
  15344. # No need to generate them if there are no CONFIG_FILES.
  15345. # This happens for instance with `./config.status config.h'.
  15346. if test -n "$CONFIG_FILES"; then
  15347. ac_cr=`echo X | tr X '\015'`
  15348. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15349. # But we know of no other shell where ac_cr would be empty at this
  15350. # point, so we can use a bashism as a fallback.
  15351. if test "x$ac_cr" = x; then
  15352. eval ac_cr=\$\'\\r\'
  15353. fi
  15354. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15355. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15356. ac_cs_awk_cr='\\r'
  15357. else
  15358. ac_cs_awk_cr=$ac_cr
  15359. fi
  15360. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15361. _ACEOF
  15362. {
  15363. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15364. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15365. echo "_ACEOF"
  15366. } >conf$$subs.sh ||
  15367. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15368. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15369. ac_delim='%!_!# '
  15370. for ac_last_try in false false false false false :; do
  15371. . ./conf$$subs.sh ||
  15372. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15373. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15374. if test $ac_delim_n = $ac_delim_num; then
  15375. break
  15376. elif $ac_last_try; then
  15377. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15378. else
  15379. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15380. fi
  15381. done
  15382. rm -f conf$$subs.sh
  15383. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15384. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15385. _ACEOF
  15386. sed -n '
  15387. h
  15388. s/^/S["/; s/!.*/"]=/
  15389. p
  15390. g
  15391. s/^[^!]*!//
  15392. :repl
  15393. t repl
  15394. s/'"$ac_delim"'$//
  15395. t delim
  15396. :nl
  15397. h
  15398. s/\(.\{148\}\)..*/\1/
  15399. t more1
  15400. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15401. p
  15402. n
  15403. b repl
  15404. :more1
  15405. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15406. p
  15407. g
  15408. s/.\{148\}//
  15409. t nl
  15410. :delim
  15411. h
  15412. s/\(.\{148\}\)..*/\1/
  15413. t more2
  15414. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15415. p
  15416. b
  15417. :more2
  15418. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15419. p
  15420. g
  15421. s/.\{148\}//
  15422. t delim
  15423. ' <conf$$subs.awk | sed '
  15424. /^[^""]/{
  15425. N
  15426. s/\n//
  15427. }
  15428. ' >>$CONFIG_STATUS || ac_write_fail=1
  15429. rm -f conf$$subs.awk
  15430. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15431. _ACAWK
  15432. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15433. for (key in S) S_is_set[key] = 1
  15434. FS = ""
  15435. }
  15436. {
  15437. line = $ 0
  15438. nfields = split(line, field, "@")
  15439. substed = 0
  15440. len = length(field[1])
  15441. for (i = 2; i < nfields; i++) {
  15442. key = field[i]
  15443. keylen = length(key)
  15444. if (S_is_set[key]) {
  15445. value = S[key]
  15446. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15447. len += length(value) + length(field[++i])
  15448. substed = 1
  15449. } else
  15450. len += 1 + keylen
  15451. }
  15452. print line
  15453. }
  15454. _ACAWK
  15455. _ACEOF
  15456. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15457. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15458. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15459. else
  15460. cat
  15461. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15462. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15463. _ACEOF
  15464. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15465. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15466. # trailing colons and then remove the whole line if VPATH becomes empty
  15467. # (actually we leave an empty line to preserve line numbers).
  15468. if test "x$srcdir" = x.; then
  15469. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15470. h
  15471. s///
  15472. s/^/:/
  15473. s/[ ]*$/:/
  15474. s/:\$(srcdir):/:/g
  15475. s/:\${srcdir}:/:/g
  15476. s/:@srcdir@:/:/g
  15477. s/^:*//
  15478. s/:*$//
  15479. x
  15480. s/\(=[ ]*\).*/\1/
  15481. G
  15482. s/\n//
  15483. s/^[^=]*=[ ]*$//
  15484. }'
  15485. fi
  15486. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15487. fi # test -n "$CONFIG_FILES"
  15488. # Set up the scripts for CONFIG_HEADERS section.
  15489. # No need to generate them if there are no CONFIG_HEADERS.
  15490. # This happens for instance with `./config.status Makefile'.
  15491. if test -n "$CONFIG_HEADERS"; then
  15492. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15493. BEGIN {
  15494. _ACEOF
  15495. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15496. # here-document in config.status, that substitutes the proper values into
  15497. # config.h.in to produce config.h.
  15498. # Create a delimiter string that does not exist in confdefs.h, to ease
  15499. # handling of long lines.
  15500. ac_delim='%!_!# '
  15501. for ac_last_try in false false :; do
  15502. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15503. if test -z "$ac_tt"; then
  15504. break
  15505. elif $ac_last_try; then
  15506. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15507. else
  15508. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15509. fi
  15510. done
  15511. # For the awk script, D is an array of macro values keyed by name,
  15512. # likewise P contains macro parameters if any. Preserve backslash
  15513. # newline sequences.
  15514. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15515. sed -n '
  15516. s/.\{148\}/&'"$ac_delim"'/g
  15517. t rset
  15518. :rset
  15519. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15520. t def
  15521. d
  15522. :def
  15523. s/\\$//
  15524. t bsnl
  15525. s/["\\]/\\&/g
  15526. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15527. D["\1"]=" \3"/p
  15528. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15529. d
  15530. :bsnl
  15531. s/["\\]/\\&/g
  15532. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15533. D["\1"]=" \3\\\\\\n"\\/p
  15534. t cont
  15535. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15536. t cont
  15537. d
  15538. :cont
  15539. n
  15540. s/.\{148\}/&'"$ac_delim"'/g
  15541. t clear
  15542. :clear
  15543. s/\\$//
  15544. t bsnlc
  15545. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15546. d
  15547. :bsnlc
  15548. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15549. b cont
  15550. ' <confdefs.h | sed '
  15551. s/'"$ac_delim"'/"\\\
  15552. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15554. for (key in D) D_is_set[key] = 1
  15555. FS = ""
  15556. }
  15557. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15558. line = \$ 0
  15559. split(line, arg, " ")
  15560. if (arg[1] == "#") {
  15561. defundef = arg[2]
  15562. mac1 = arg[3]
  15563. } else {
  15564. defundef = substr(arg[1], 2)
  15565. mac1 = arg[2]
  15566. }
  15567. split(mac1, mac2, "(") #)
  15568. macro = mac2[1]
  15569. prefix = substr(line, 1, index(line, defundef) - 1)
  15570. if (D_is_set[macro]) {
  15571. # Preserve the white space surrounding the "#".
  15572. print prefix "define", macro P[macro] D[macro]
  15573. next
  15574. } else {
  15575. # Replace #undef with comments. This is necessary, for example,
  15576. # in the case of _POSIX_SOURCE, which is predefined and required
  15577. # on some systems where configure will not decide to define it.
  15578. if (defundef == "undef") {
  15579. print "/*", prefix defundef, macro, "*/"
  15580. next
  15581. }
  15582. }
  15583. }
  15584. { print }
  15585. _ACAWK
  15586. _ACEOF
  15587. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15588. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15589. fi # test -n "$CONFIG_HEADERS"
  15590. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15591. shift
  15592. for ac_tag
  15593. do
  15594. case $ac_tag in
  15595. :[FHLC]) ac_mode=$ac_tag; continue;;
  15596. esac
  15597. case $ac_mode$ac_tag in
  15598. :[FHL]*:*);;
  15599. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15600. :[FH]-) ac_tag=-:-;;
  15601. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15602. esac
  15603. ac_save_IFS=$IFS
  15604. IFS=:
  15605. set x $ac_tag
  15606. IFS=$ac_save_IFS
  15607. shift
  15608. ac_file=$1
  15609. shift
  15610. case $ac_mode in
  15611. :L) ac_source=$1;;
  15612. :[FH])
  15613. ac_file_inputs=
  15614. for ac_f
  15615. do
  15616. case $ac_f in
  15617. -) ac_f="$ac_tmp/stdin";;
  15618. *) # Look for the file first in the build tree, then in the source tree
  15619. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15620. # because $ac_f cannot contain `:'.
  15621. test -f "$ac_f" ||
  15622. case $ac_f in
  15623. [\\/$]*) false;;
  15624. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15625. esac ||
  15626. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15627. esac
  15628. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15629. as_fn_append ac_file_inputs " '$ac_f'"
  15630. done
  15631. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15632. # use $as_me), people would be surprised to read:
  15633. # /* config.h. Generated by config.status. */
  15634. configure_input='Generated from '`
  15635. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15636. `' by configure.'
  15637. if test x"$ac_file" != x-; then
  15638. configure_input="$ac_file. $configure_input"
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15640. $as_echo "$as_me: creating $ac_file" >&6;}
  15641. fi
  15642. # Neutralize special characters interpreted by sed in replacement strings.
  15643. case $configure_input in #(
  15644. *\&* | *\|* | *\\* )
  15645. ac_sed_conf_input=`$as_echo "$configure_input" |
  15646. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15647. *) ac_sed_conf_input=$configure_input;;
  15648. esac
  15649. case $ac_tag in
  15650. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15651. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15652. esac
  15653. ;;
  15654. esac
  15655. ac_dir=`$as_dirname -- "$ac_file" ||
  15656. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15657. X"$ac_file" : 'X\(//\)[^/]' \| \
  15658. X"$ac_file" : 'X\(//\)$' \| \
  15659. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15660. $as_echo X"$ac_file" |
  15661. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15662. s//\1/
  15663. q
  15664. }
  15665. /^X\(\/\/\)[^/].*/{
  15666. s//\1/
  15667. q
  15668. }
  15669. /^X\(\/\/\)$/{
  15670. s//\1/
  15671. q
  15672. }
  15673. /^X\(\/\).*/{
  15674. s//\1/
  15675. q
  15676. }
  15677. s/.*/./; q'`
  15678. as_dir="$ac_dir"; as_fn_mkdir_p
  15679. ac_builddir=.
  15680. case "$ac_dir" in
  15681. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15682. *)
  15683. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15684. # A ".." for each directory in $ac_dir_suffix.
  15685. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15686. case $ac_top_builddir_sub in
  15687. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15688. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15689. esac ;;
  15690. esac
  15691. ac_abs_top_builddir=$ac_pwd
  15692. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15693. # for backward compatibility:
  15694. ac_top_builddir=$ac_top_build_prefix
  15695. case $srcdir in
  15696. .) # We are building in place.
  15697. ac_srcdir=.
  15698. ac_top_srcdir=$ac_top_builddir_sub
  15699. ac_abs_top_srcdir=$ac_pwd ;;
  15700. [\\/]* | ?:[\\/]* ) # Absolute name.
  15701. ac_srcdir=$srcdir$ac_dir_suffix;
  15702. ac_top_srcdir=$srcdir
  15703. ac_abs_top_srcdir=$srcdir ;;
  15704. *) # Relative name.
  15705. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15706. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15707. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15708. esac
  15709. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15710. case $ac_mode in
  15711. :F)
  15712. #
  15713. # CONFIG_FILE
  15714. #
  15715. case $INSTALL in
  15716. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15717. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15718. esac
  15719. ac_MKDIR_P=$MKDIR_P
  15720. case $MKDIR_P in
  15721. [\\/$]* | ?:[\\/]* ) ;;
  15722. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15723. esac
  15724. _ACEOF
  15725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15726. # If the template does not know about datarootdir, expand it.
  15727. # FIXME: This hack should be removed a few years after 2.60.
  15728. ac_datarootdir_hack=; ac_datarootdir_seen=
  15729. ac_sed_dataroot='
  15730. /datarootdir/ {
  15731. p
  15732. q
  15733. }
  15734. /@datadir@/p
  15735. /@docdir@/p
  15736. /@infodir@/p
  15737. /@localedir@/p
  15738. /@mandir@/p'
  15739. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15740. *datarootdir*) ac_datarootdir_seen=yes;;
  15741. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15743. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15744. _ACEOF
  15745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15746. ac_datarootdir_hack='
  15747. s&@datadir@&$datadir&g
  15748. s&@docdir@&$docdir&g
  15749. s&@infodir@&$infodir&g
  15750. s&@localedir@&$localedir&g
  15751. s&@mandir@&$mandir&g
  15752. s&\\\${datarootdir}&$datarootdir&g' ;;
  15753. esac
  15754. _ACEOF
  15755. # Neutralize VPATH when `$srcdir' = `.'.
  15756. # Shell code in configure.ac might set extrasub.
  15757. # FIXME: do we really want to maintain this feature?
  15758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15759. ac_sed_extra="$ac_vpsub
  15760. $extrasub
  15761. _ACEOF
  15762. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15763. :t
  15764. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15765. s|@configure_input@|$ac_sed_conf_input|;t t
  15766. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15767. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15768. s&@srcdir@&$ac_srcdir&;t t
  15769. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15770. s&@top_srcdir@&$ac_top_srcdir&;t t
  15771. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15772. s&@builddir@&$ac_builddir&;t t
  15773. s&@abs_builddir@&$ac_abs_builddir&;t t
  15774. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15775. s&@INSTALL@&$ac_INSTALL&;t t
  15776. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15777. $ac_datarootdir_hack
  15778. "
  15779. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15780. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15781. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15782. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15783. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15784. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15786. which seems to be undefined. Please make sure it is defined" >&5
  15787. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15788. which seems to be undefined. Please make sure it is defined" >&2;}
  15789. rm -f "$ac_tmp/stdin"
  15790. case $ac_file in
  15791. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15792. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15793. esac \
  15794. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15795. ;;
  15796. :H)
  15797. #
  15798. # CONFIG_HEADER
  15799. #
  15800. if test x"$ac_file" != x-; then
  15801. {
  15802. $as_echo "/* $configure_input */" \
  15803. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15804. } >"$ac_tmp/config.h" \
  15805. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15806. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15808. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15809. else
  15810. rm -f "$ac_file"
  15811. mv "$ac_tmp/config.h" "$ac_file" \
  15812. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15813. fi
  15814. else
  15815. $as_echo "/* $configure_input */" \
  15816. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15817. || as_fn_error $? "could not create -" "$LINENO" 5
  15818. fi
  15819. # Compute "$ac_file"'s index in $config_headers.
  15820. _am_arg="$ac_file"
  15821. _am_stamp_count=1
  15822. for _am_header in $config_headers :; do
  15823. case $_am_header in
  15824. $_am_arg | $_am_arg:* )
  15825. break ;;
  15826. * )
  15827. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15828. esac
  15829. done
  15830. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15831. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15832. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15833. X"$_am_arg" : 'X\(//\)$' \| \
  15834. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15835. $as_echo X"$_am_arg" |
  15836. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15837. s//\1/
  15838. q
  15839. }
  15840. /^X\(\/\/\)[^/].*/{
  15841. s//\1/
  15842. q
  15843. }
  15844. /^X\(\/\/\)$/{
  15845. s//\1/
  15846. q
  15847. }
  15848. /^X\(\/\).*/{
  15849. s//\1/
  15850. q
  15851. }
  15852. s/.*/./; q'`/stamp-h$_am_stamp_count
  15853. ;;
  15854. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15855. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15856. ;;
  15857. esac
  15858. case $ac_file$ac_mode in
  15859. "libtool":C)
  15860. # See if we are running on zsh, and set the options which allow our
  15861. # commands through without removal of \ escapes.
  15862. if test -n "${ZSH_VERSION+set}" ; then
  15863. setopt NO_GLOB_SUBST
  15864. fi
  15865. cfgfile="${ofile}T"
  15866. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15867. $RM "$cfgfile"
  15868. cat <<_LT_EOF >> "$cfgfile"
  15869. #! $SHELL
  15870. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15871. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15872. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15873. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15874. #
  15875. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15876. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15877. # Foundation, Inc.
  15878. # Written by Gordon Matzigkeit, 1996
  15879. #
  15880. # This file is part of GNU Libtool.
  15881. #
  15882. # GNU Libtool is free software; you can redistribute it and/or
  15883. # modify it under the terms of the GNU General Public License as
  15884. # published by the Free Software Foundation; either version 2 of
  15885. # the License, or (at your option) any later version.
  15886. #
  15887. # As a special exception to the GNU General Public License,
  15888. # if you distribute this file as part of a program or library that
  15889. # is built using GNU Libtool, you may include this file under the
  15890. # same distribution terms that you use for the rest of that program.
  15891. #
  15892. # GNU Libtool is distributed in the hope that it will be useful,
  15893. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15894. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15895. # GNU General Public License for more details.
  15896. #
  15897. # You should have received a copy of the GNU General Public License
  15898. # along with GNU Libtool; see the file COPYING. If not, a copy
  15899. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15900. # obtained by writing to the Free Software Foundation, Inc.,
  15901. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15902. # The names of the tagged configurations supported by this script.
  15903. available_tags="CXX "
  15904. # ### BEGIN LIBTOOL CONFIG
  15905. # Assembler program.
  15906. AS=$lt_AS
  15907. # DLL creation program.
  15908. DLLTOOL=$lt_DLLTOOL
  15909. # Object dumper program.
  15910. OBJDUMP=$lt_OBJDUMP
  15911. # Which release of libtool.m4 was used?
  15912. macro_version=$macro_version
  15913. macro_revision=$macro_revision
  15914. # Whether or not to build shared libraries.
  15915. build_libtool_libs=$enable_shared
  15916. # Whether or not to build static libraries.
  15917. build_old_libs=$enable_static
  15918. # What type of objects to build.
  15919. pic_mode=$pic_mode
  15920. # Whether or not to optimize for fast installation.
  15921. fast_install=$enable_fast_install
  15922. # Shell to use when invoking shell scripts.
  15923. SHELL=$lt_SHELL
  15924. # An echo program that protects backslashes.
  15925. ECHO=$lt_ECHO
  15926. # The PATH separator for the build system.
  15927. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15928. # The host system.
  15929. host_alias=$host_alias
  15930. host=$host
  15931. host_os=$host_os
  15932. # The build system.
  15933. build_alias=$build_alias
  15934. build=$build
  15935. build_os=$build_os
  15936. # A sed program that does not truncate output.
  15937. SED=$lt_SED
  15938. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15939. Xsed="\$SED -e 1s/^X//"
  15940. # A grep program that handles long lines.
  15941. GREP=$lt_GREP
  15942. # An ERE matcher.
  15943. EGREP=$lt_EGREP
  15944. # A literal string matcher.
  15945. FGREP=$lt_FGREP
  15946. # A BSD- or MS-compatible name lister.
  15947. NM=$lt_NM
  15948. # Whether we need soft or hard links.
  15949. LN_S=$lt_LN_S
  15950. # What is the maximum length of a command?
  15951. max_cmd_len=$max_cmd_len
  15952. # Object file suffix (normally "o").
  15953. objext=$ac_objext
  15954. # Executable file suffix (normally "").
  15955. exeext=$exeext
  15956. # whether the shell understands "unset".
  15957. lt_unset=$lt_unset
  15958. # turn spaces into newlines.
  15959. SP2NL=$lt_lt_SP2NL
  15960. # turn newlines into spaces.
  15961. NL2SP=$lt_lt_NL2SP
  15962. # convert \$build file names to \$host format.
  15963. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15964. # convert \$build files to toolchain format.
  15965. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15966. # Method to check whether dependent libraries are shared objects.
  15967. deplibs_check_method=$lt_deplibs_check_method
  15968. # Command to use when deplibs_check_method = "file_magic".
  15969. file_magic_cmd=$lt_file_magic_cmd
  15970. # How to find potential files when deplibs_check_method = "file_magic".
  15971. file_magic_glob=$lt_file_magic_glob
  15972. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15973. want_nocaseglob=$lt_want_nocaseglob
  15974. # Command to associate shared and link libraries.
  15975. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15976. # The archiver.
  15977. AR=$lt_AR
  15978. # Flags to create an archive.
  15979. AR_FLAGS=$lt_AR_FLAGS
  15980. # How to feed a file listing to the archiver.
  15981. archiver_list_spec=$lt_archiver_list_spec
  15982. # A symbol stripping program.
  15983. STRIP=$lt_STRIP
  15984. # Commands used to install an old-style archive.
  15985. RANLIB=$lt_RANLIB
  15986. old_postinstall_cmds=$lt_old_postinstall_cmds
  15987. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15988. # Whether to use a lock for old archive extraction.
  15989. lock_old_archive_extraction=$lock_old_archive_extraction
  15990. # A C compiler.
  15991. LTCC=$lt_CC
  15992. # LTCC compiler flags.
  15993. LTCFLAGS=$lt_CFLAGS
  15994. # Take the output of nm and produce a listing of raw symbols and C names.
  15995. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15996. # Transform the output of nm in a proper C declaration.
  15997. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15998. # Transform the output of nm in a C name address pair.
  15999. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16000. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16001. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16002. # Specify filename containing input files for \$NM.
  16003. nm_file_list_spec=$lt_nm_file_list_spec
  16004. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16005. lt_sysroot=$lt_sysroot
  16006. # The name of the directory that contains temporary libtool files.
  16007. objdir=$objdir
  16008. # Used to examine libraries when file_magic_cmd begins with "file".
  16009. MAGIC_CMD=$MAGIC_CMD
  16010. # Must we lock files when doing compilation?
  16011. need_locks=$lt_need_locks
  16012. # Manifest tool.
  16013. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16014. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16015. DSYMUTIL=$lt_DSYMUTIL
  16016. # Tool to change global to local symbols on Mac OS X.
  16017. NMEDIT=$lt_NMEDIT
  16018. # Tool to manipulate fat objects and archives on Mac OS X.
  16019. LIPO=$lt_LIPO
  16020. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16021. OTOOL=$lt_OTOOL
  16022. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16023. OTOOL64=$lt_OTOOL64
  16024. # Old archive suffix (normally "a").
  16025. libext=$libext
  16026. # Shared library suffix (normally ".so").
  16027. shrext_cmds=$lt_shrext_cmds
  16028. # The commands to extract the exported symbol list from a shared archive.
  16029. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16030. # Variables whose values should be saved in libtool wrapper scripts and
  16031. # restored at link time.
  16032. variables_saved_for_relink=$lt_variables_saved_for_relink
  16033. # Do we need the "lib" prefix for modules?
  16034. need_lib_prefix=$need_lib_prefix
  16035. # Do we need a version for libraries?
  16036. need_version=$need_version
  16037. # Library versioning type.
  16038. version_type=$version_type
  16039. # Shared library runtime path variable.
  16040. runpath_var=$runpath_var
  16041. # Shared library path variable.
  16042. shlibpath_var=$shlibpath_var
  16043. # Is shlibpath searched before the hard-coded library search path?
  16044. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16045. # Format of library name prefix.
  16046. libname_spec=$lt_libname_spec
  16047. # List of archive names. First name is the real one, the rest are links.
  16048. # The last name is the one that the linker finds with -lNAME
  16049. library_names_spec=$lt_library_names_spec
  16050. # The coded name of the library, if different from the real name.
  16051. soname_spec=$lt_soname_spec
  16052. # Permission mode override for installation of shared libraries.
  16053. install_override_mode=$lt_install_override_mode
  16054. # Command to use after installation of a shared archive.
  16055. postinstall_cmds=$lt_postinstall_cmds
  16056. # Command to use after uninstallation of a shared archive.
  16057. postuninstall_cmds=$lt_postuninstall_cmds
  16058. # Commands used to finish a libtool library installation in a directory.
  16059. finish_cmds=$lt_finish_cmds
  16060. # As "finish_cmds", except a single script fragment to be evaled but
  16061. # not shown.
  16062. finish_eval=$lt_finish_eval
  16063. # Whether we should hardcode library paths into libraries.
  16064. hardcode_into_libs=$hardcode_into_libs
  16065. # Compile-time system search path for libraries.
  16066. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16067. # Run-time system search path for libraries.
  16068. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16069. # Whether dlopen is supported.
  16070. dlopen_support=$enable_dlopen
  16071. # Whether dlopen of programs is supported.
  16072. dlopen_self=$enable_dlopen_self
  16073. # Whether dlopen of statically linked programs is supported.
  16074. dlopen_self_static=$enable_dlopen_self_static
  16075. # Commands to strip libraries.
  16076. old_striplib=$lt_old_striplib
  16077. striplib=$lt_striplib
  16078. # The linker used to build libraries.
  16079. LD=$lt_LD
  16080. # How to create reloadable object files.
  16081. reload_flag=$lt_reload_flag
  16082. reload_cmds=$lt_reload_cmds
  16083. # Commands used to build an old-style archive.
  16084. old_archive_cmds=$lt_old_archive_cmds
  16085. # A language specific compiler.
  16086. CC=$lt_compiler
  16087. # Is the compiler the GNU compiler?
  16088. with_gcc=$GCC
  16089. # Compiler flag to turn off builtin functions.
  16090. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16091. # Additional compiler flags for building library objects.
  16092. pic_flag=$lt_lt_prog_compiler_pic
  16093. # How to pass a linker flag through the compiler.
  16094. wl=$lt_lt_prog_compiler_wl
  16095. # Compiler flag to prevent dynamic linking.
  16096. link_static_flag=$lt_lt_prog_compiler_static
  16097. # Does compiler simultaneously support -c and -o options?
  16098. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16099. # Whether or not to add -lc for building shared libraries.
  16100. build_libtool_need_lc=$archive_cmds_need_lc
  16101. # Whether or not to disallow shared libs when runtime libs are static.
  16102. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16103. # Compiler flag to allow reflexive dlopens.
  16104. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16105. # Compiler flag to generate shared objects directly from archives.
  16106. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16107. # Whether the compiler copes with passing no objects directly.
  16108. compiler_needs_object=$lt_compiler_needs_object
  16109. # Create an old-style archive from a shared archive.
  16110. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16111. # Create a temporary old-style archive to link instead of a shared archive.
  16112. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16113. # Commands used to build a shared archive.
  16114. archive_cmds=$lt_archive_cmds
  16115. archive_expsym_cmds=$lt_archive_expsym_cmds
  16116. # Commands used to build a loadable module if different from building
  16117. # a shared archive.
  16118. module_cmds=$lt_module_cmds
  16119. module_expsym_cmds=$lt_module_expsym_cmds
  16120. # Whether we are building with GNU ld or not.
  16121. with_gnu_ld=$lt_with_gnu_ld
  16122. # Flag that allows shared libraries with undefined symbols to be built.
  16123. allow_undefined_flag=$lt_allow_undefined_flag
  16124. # Flag that enforces no undefined symbols.
  16125. no_undefined_flag=$lt_no_undefined_flag
  16126. # Flag to hardcode \$libdir into a binary during linking.
  16127. # This must work even if \$libdir does not exist
  16128. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16129. # Whether we need a single "-rpath" flag with a separated argument.
  16130. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16131. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16132. # DIR into the resulting binary.
  16133. hardcode_direct=$hardcode_direct
  16134. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16135. # DIR into the resulting binary and the resulting library dependency is
  16136. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16137. # library is relocated.
  16138. hardcode_direct_absolute=$hardcode_direct_absolute
  16139. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16140. # into the resulting binary.
  16141. hardcode_minus_L=$hardcode_minus_L
  16142. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16143. # into the resulting binary.
  16144. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16145. # Set to "yes" if building a shared library automatically hardcodes DIR
  16146. # into the library and all subsequent libraries and executables linked
  16147. # against it.
  16148. hardcode_automatic=$hardcode_automatic
  16149. # Set to yes if linker adds runtime paths of dependent libraries
  16150. # to runtime path list.
  16151. inherit_rpath=$inherit_rpath
  16152. # Whether libtool must link a program against all its dependency libraries.
  16153. link_all_deplibs=$link_all_deplibs
  16154. # Set to "yes" if exported symbols are required.
  16155. always_export_symbols=$always_export_symbols
  16156. # The commands to list exported symbols.
  16157. export_symbols_cmds=$lt_export_symbols_cmds
  16158. # Symbols that should not be listed in the preloaded symbols.
  16159. exclude_expsyms=$lt_exclude_expsyms
  16160. # Symbols that must always be exported.
  16161. include_expsyms=$lt_include_expsyms
  16162. # Commands necessary for linking programs (against libraries) with templates.
  16163. prelink_cmds=$lt_prelink_cmds
  16164. # Commands necessary for finishing linking programs.
  16165. postlink_cmds=$lt_postlink_cmds
  16166. # Specify filename containing input files.
  16167. file_list_spec=$lt_file_list_spec
  16168. # How to hardcode a shared library path into an executable.
  16169. hardcode_action=$hardcode_action
  16170. # The directories searched by this compiler when creating a shared library.
  16171. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16172. # Dependencies to place before and after the objects being linked to
  16173. # create a shared library.
  16174. predep_objects=$lt_predep_objects
  16175. postdep_objects=$lt_postdep_objects
  16176. predeps=$lt_predeps
  16177. postdeps=$lt_postdeps
  16178. # The library search path used internally by the compiler when linking
  16179. # a shared library.
  16180. compiler_lib_search_path=$lt_compiler_lib_search_path
  16181. # ### END LIBTOOL CONFIG
  16182. _LT_EOF
  16183. case $host_os in
  16184. aix3*)
  16185. cat <<\_LT_EOF >> "$cfgfile"
  16186. # AIX sometimes has problems with the GCC collect2 program. For some
  16187. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16188. # vanish in a puff of smoke.
  16189. if test "X${COLLECT_NAMES+set}" != Xset; then
  16190. COLLECT_NAMES=
  16191. export COLLECT_NAMES
  16192. fi
  16193. _LT_EOF
  16194. ;;
  16195. esac
  16196. ltmain="$ac_aux_dir/ltmain.sh"
  16197. # We use sed instead of cat because bash on DJGPP gets confused if
  16198. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16199. # text mode, it properly converts lines to CR/LF. This bash problem
  16200. # is reportedly fixed, but why not run on old versions too?
  16201. sed '$q' "$ltmain" >> "$cfgfile" \
  16202. || (rm -f "$cfgfile"; exit 1)
  16203. if test x"$xsi_shell" = xyes; then
  16204. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16205. func_dirname ()\
  16206. {\
  16207. \ case ${1} in\
  16208. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16209. \ * ) func_dirname_result="${3}" ;;\
  16210. \ esac\
  16211. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16212. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16213. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16214. test 0 -eq $? || _lt_function_replace_fail=:
  16215. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16216. func_basename ()\
  16217. {\
  16218. \ func_basename_result="${1##*/}"\
  16219. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16220. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16221. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16222. test 0 -eq $? || _lt_function_replace_fail=:
  16223. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16224. func_dirname_and_basename ()\
  16225. {\
  16226. \ case ${1} in\
  16227. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16228. \ * ) func_dirname_result="${3}" ;;\
  16229. \ esac\
  16230. \ func_basename_result="${1##*/}"\
  16231. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16232. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16233. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16234. test 0 -eq $? || _lt_function_replace_fail=:
  16235. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16236. func_stripname ()\
  16237. {\
  16238. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16239. \ # positional parameters, so assign one to ordinary parameter first.\
  16240. \ func_stripname_result=${3}\
  16241. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16242. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16243. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16244. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16245. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16246. test 0 -eq $? || _lt_function_replace_fail=:
  16247. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16248. func_split_long_opt ()\
  16249. {\
  16250. \ func_split_long_opt_name=${1%%=*}\
  16251. \ func_split_long_opt_arg=${1#*=}\
  16252. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16253. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16254. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16255. test 0 -eq $? || _lt_function_replace_fail=:
  16256. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16257. func_split_short_opt ()\
  16258. {\
  16259. \ func_split_short_opt_arg=${1#??}\
  16260. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16261. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16262. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16263. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16264. test 0 -eq $? || _lt_function_replace_fail=:
  16265. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16266. func_lo2o ()\
  16267. {\
  16268. \ case ${1} in\
  16269. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16270. \ *) func_lo2o_result=${1} ;;\
  16271. \ esac\
  16272. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16273. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16274. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16275. test 0 -eq $? || _lt_function_replace_fail=:
  16276. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16277. func_xform ()\
  16278. {\
  16279. func_xform_result=${1%.*}.lo\
  16280. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16283. test 0 -eq $? || _lt_function_replace_fail=:
  16284. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16285. func_arith ()\
  16286. {\
  16287. func_arith_result=$(( $* ))\
  16288. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16289. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16290. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16291. test 0 -eq $? || _lt_function_replace_fail=:
  16292. sed -e '/^func_len ()$/,/^} # func_len /c\
  16293. func_len ()\
  16294. {\
  16295. func_len_result=${#1}\
  16296. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16297. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16298. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16299. test 0 -eq $? || _lt_function_replace_fail=:
  16300. fi
  16301. if test x"$lt_shell_append" = xyes; then
  16302. sed -e '/^func_append ()$/,/^} # func_append /c\
  16303. func_append ()\
  16304. {\
  16305. eval "${1}+=\\${2}"\
  16306. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16309. test 0 -eq $? || _lt_function_replace_fail=:
  16310. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16311. func_append_quoted ()\
  16312. {\
  16313. \ func_quote_for_eval "${2}"\
  16314. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16315. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16316. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16317. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16318. test 0 -eq $? || _lt_function_replace_fail=:
  16319. # Save a `func_append' function call where possible by direct use of '+='
  16320. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16321. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16322. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16323. test 0 -eq $? || _lt_function_replace_fail=:
  16324. else
  16325. # Save a `func_append' function call even when '+=' is not available
  16326. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16329. test 0 -eq $? || _lt_function_replace_fail=:
  16330. fi
  16331. if test x"$_lt_function_replace_fail" = x":"; then
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16333. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16334. fi
  16335. mv -f "$cfgfile" "$ofile" ||
  16336. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16337. chmod +x "$ofile"
  16338. cat <<_LT_EOF >> "$ofile"
  16339. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16340. # The linker used to build libraries.
  16341. LD=$lt_LD_CXX
  16342. # How to create reloadable object files.
  16343. reload_flag=$lt_reload_flag_CXX
  16344. reload_cmds=$lt_reload_cmds_CXX
  16345. # Commands used to build an old-style archive.
  16346. old_archive_cmds=$lt_old_archive_cmds_CXX
  16347. # A language specific compiler.
  16348. CC=$lt_compiler_CXX
  16349. # Is the compiler the GNU compiler?
  16350. with_gcc=$GCC_CXX
  16351. # Compiler flag to turn off builtin functions.
  16352. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16353. # Additional compiler flags for building library objects.
  16354. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16355. # How to pass a linker flag through the compiler.
  16356. wl=$lt_lt_prog_compiler_wl_CXX
  16357. # Compiler flag to prevent dynamic linking.
  16358. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16359. # Does compiler simultaneously support -c and -o options?
  16360. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16361. # Whether or not to add -lc for building shared libraries.
  16362. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16363. # Whether or not to disallow shared libs when runtime libs are static.
  16364. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16365. # Compiler flag to allow reflexive dlopens.
  16366. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16367. # Compiler flag to generate shared objects directly from archives.
  16368. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16369. # Whether the compiler copes with passing no objects directly.
  16370. compiler_needs_object=$lt_compiler_needs_object_CXX
  16371. # Create an old-style archive from a shared archive.
  16372. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16373. # Create a temporary old-style archive to link instead of a shared archive.
  16374. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16375. # Commands used to build a shared archive.
  16376. archive_cmds=$lt_archive_cmds_CXX
  16377. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16378. # Commands used to build a loadable module if different from building
  16379. # a shared archive.
  16380. module_cmds=$lt_module_cmds_CXX
  16381. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16382. # Whether we are building with GNU ld or not.
  16383. with_gnu_ld=$lt_with_gnu_ld_CXX
  16384. # Flag that allows shared libraries with undefined symbols to be built.
  16385. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16386. # Flag that enforces no undefined symbols.
  16387. no_undefined_flag=$lt_no_undefined_flag_CXX
  16388. # Flag to hardcode \$libdir into a binary during linking.
  16389. # This must work even if \$libdir does not exist
  16390. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16391. # Whether we need a single "-rpath" flag with a separated argument.
  16392. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16393. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16394. # DIR into the resulting binary.
  16395. hardcode_direct=$hardcode_direct_CXX
  16396. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16397. # DIR into the resulting binary and the resulting library dependency is
  16398. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16399. # library is relocated.
  16400. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16401. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16402. # into the resulting binary.
  16403. hardcode_minus_L=$hardcode_minus_L_CXX
  16404. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16405. # into the resulting binary.
  16406. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16407. # Set to "yes" if building a shared library automatically hardcodes DIR
  16408. # into the library and all subsequent libraries and executables linked
  16409. # against it.
  16410. hardcode_automatic=$hardcode_automatic_CXX
  16411. # Set to yes if linker adds runtime paths of dependent libraries
  16412. # to runtime path list.
  16413. inherit_rpath=$inherit_rpath_CXX
  16414. # Whether libtool must link a program against all its dependency libraries.
  16415. link_all_deplibs=$link_all_deplibs_CXX
  16416. # Set to "yes" if exported symbols are required.
  16417. always_export_symbols=$always_export_symbols_CXX
  16418. # The commands to list exported symbols.
  16419. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16420. # Symbols that should not be listed in the preloaded symbols.
  16421. exclude_expsyms=$lt_exclude_expsyms_CXX
  16422. # Symbols that must always be exported.
  16423. include_expsyms=$lt_include_expsyms_CXX
  16424. # Commands necessary for linking programs (against libraries) with templates.
  16425. prelink_cmds=$lt_prelink_cmds_CXX
  16426. # Commands necessary for finishing linking programs.
  16427. postlink_cmds=$lt_postlink_cmds_CXX
  16428. # Specify filename containing input files.
  16429. file_list_spec=$lt_file_list_spec_CXX
  16430. # How to hardcode a shared library path into an executable.
  16431. hardcode_action=$hardcode_action_CXX
  16432. # The directories searched by this compiler when creating a shared library.
  16433. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16434. # Dependencies to place before and after the objects being linked to
  16435. # create a shared library.
  16436. predep_objects=$lt_predep_objects_CXX
  16437. postdep_objects=$lt_postdep_objects_CXX
  16438. predeps=$lt_predeps_CXX
  16439. postdeps=$lt_postdeps_CXX
  16440. # The library search path used internally by the compiler when linking
  16441. # a shared library.
  16442. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16443. # ### END LIBTOOL TAG CONFIG: CXX
  16444. _LT_EOF
  16445. ;;
  16446. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16447. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16448. # are listed without --file. Let's play safe and only enable the eval
  16449. # if we detect the quoting.
  16450. case $CONFIG_FILES in
  16451. *\'*) eval set x "$CONFIG_FILES" ;;
  16452. *) set x $CONFIG_FILES ;;
  16453. esac
  16454. shift
  16455. for mf
  16456. do
  16457. # Strip MF so we end up with the name of the file.
  16458. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16459. # Check whether this is an Automake generated Makefile or not.
  16460. # We used to match only the files named `Makefile.in', but
  16461. # some people rename them; so instead we look at the file content.
  16462. # Grep'ing the first line is not enough: some people post-process
  16463. # each Makefile.in and add a new line on top of each file to say so.
  16464. # Grep'ing the whole file is not good either: AIX grep has a line
  16465. # limit of 2048, but all sed's we know have understand at least 4000.
  16466. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16467. dirpart=`$as_dirname -- "$mf" ||
  16468. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16469. X"$mf" : 'X\(//\)[^/]' \| \
  16470. X"$mf" : 'X\(//\)$' \| \
  16471. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16472. $as_echo X"$mf" |
  16473. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16474. s//\1/
  16475. q
  16476. }
  16477. /^X\(\/\/\)[^/].*/{
  16478. s//\1/
  16479. q
  16480. }
  16481. /^X\(\/\/\)$/{
  16482. s//\1/
  16483. q
  16484. }
  16485. /^X\(\/\).*/{
  16486. s//\1/
  16487. q
  16488. }
  16489. s/.*/./; q'`
  16490. else
  16491. continue
  16492. fi
  16493. # Extract the definition of DEPDIR, am__include, and am__quote
  16494. # from the Makefile without running `make'.
  16495. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16496. test -z "$DEPDIR" && continue
  16497. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16498. test -z "am__include" && continue
  16499. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16500. # When using ansi2knr, U may be empty or an underscore; expand it
  16501. U=`sed -n 's/^U = //p' < "$mf"`
  16502. # Find all dependency output files, they are included files with
  16503. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16504. # simplest approach to changing $(DEPDIR) to its actual value in the
  16505. # expansion.
  16506. for file in `sed -n "
  16507. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16508. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16509. # Make sure the directory exists.
  16510. test -f "$dirpart/$file" && continue
  16511. fdir=`$as_dirname -- "$file" ||
  16512. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16513. X"$file" : 'X\(//\)[^/]' \| \
  16514. X"$file" : 'X\(//\)$' \| \
  16515. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16516. $as_echo X"$file" |
  16517. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16518. s//\1/
  16519. q
  16520. }
  16521. /^X\(\/\/\)[^/].*/{
  16522. s//\1/
  16523. q
  16524. }
  16525. /^X\(\/\/\)$/{
  16526. s//\1/
  16527. q
  16528. }
  16529. /^X\(\/\).*/{
  16530. s//\1/
  16531. q
  16532. }
  16533. s/.*/./; q'`
  16534. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16535. # echo "creating $dirpart/$file"
  16536. echo '# dummy' > "$dirpart/$file"
  16537. done
  16538. done
  16539. }
  16540. ;;
  16541. esac
  16542. done # for ac_tag
  16543. as_fn_exit 0
  16544. _ACEOF
  16545. ac_clean_files=$ac_clean_files_save
  16546. test $ac_write_fail = 0 ||
  16547. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16548. # configure is writing to config.log, and then calls config.status.
  16549. # config.status does its own redirection, appending to config.log.
  16550. # Unfortunately, on DOS this fails, as config.log is still kept open
  16551. # by configure, so config.status won't be able to write to it; its
  16552. # output is simply discarded. So we exec the FD to /dev/null,
  16553. # effectively closing config.log, so it can be properly (re)opened and
  16554. # appended to by config.status. When coming back to configure, we
  16555. # need to make the FD available again.
  16556. if test "$no_create" != yes; then
  16557. ac_cs_success=:
  16558. ac_config_status_args=
  16559. test "$silent" = yes &&
  16560. ac_config_status_args="$ac_config_status_args --quiet"
  16561. exec 5>/dev/null
  16562. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16563. exec 5>>config.log
  16564. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16565. # would make configure fail if this is the last instruction.
  16566. $ac_cs_success || as_fn_exit 1
  16567. fi
  16568. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16570. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16571. fi