configure 581 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.3.
  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.3'
  525. PACKAGE_STRING='klish 1.5.3'
  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. BFD_LIBS
  568. RT_CFLAGS
  569. RT_LIBS
  570. TINYXML_CXXFLAGS
  571. TINYXML_LIBS
  572. TINYRL_CFLAGS
  573. TINYRL_LIBS
  574. KONF_CFLAGS
  575. KONF_LIBS
  576. LUB_CFLAGS
  577. LUB_LIBS
  578. DEBUG_FALSE
  579. DEBUG_TRUE
  580. am__fastdepCXX_FALSE
  581. am__fastdepCXX_TRUE
  582. CXXDEPMODE
  583. am__fastdepCC_FALSE
  584. am__fastdepCC_TRUE
  585. CCDEPMODE
  586. am__nodep
  587. AMDEPBACKSLASH
  588. AMDEP_FALSE
  589. AMDEP_TRUE
  590. am__quote
  591. am__include
  592. DEPDIR
  593. am__untar
  594. am__tar
  595. AMTAR
  596. am__leading_dot
  597. SET_MAKE
  598. mkdir_p
  599. MKDIR_P
  600. INSTALL_STRIP_PROGRAM
  601. install_sh
  602. MAKEINFO
  603. AUTOHEADER
  604. AUTOMAKE
  605. AUTOCONF
  606. ACLOCAL
  607. VERSION
  608. PACKAGE
  609. CYGPATH_W
  610. am__isrc
  611. INSTALL_DATA
  612. INSTALL_SCRIPT
  613. INSTALL_PROGRAM
  614. CXXCPP
  615. OTOOL64
  616. OTOOL
  617. LIPO
  618. NMEDIT
  619. DSYMUTIL
  620. MANIFEST_TOOL
  621. AWK
  622. RANLIB
  623. STRIP
  624. ac_ct_AR
  625. AR
  626. LN_S
  627. NM
  628. ac_ct_DUMPBIN
  629. DUMPBIN
  630. LD
  631. FGREP
  632. SED
  633. LIBTOOL
  634. OBJDUMP
  635. DLLTOOL
  636. AS
  637. host_os
  638. host_vendor
  639. host_cpu
  640. host
  641. build_os
  642. build_vendor
  643. build_cpu
  644. build
  645. ac_ct_CXX
  646. CXXFLAGS
  647. CXX
  648. EGREP
  649. GREP
  650. CPP
  651. OBJEXT
  652. EXEEXT
  653. ac_ct_CC
  654. CPPFLAGS
  655. LDFLAGS
  656. CFLAGS
  657. CC
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. enable_shared
  700. enable_static
  701. with_pic
  702. enable_fast_install
  703. with_gnu_ld
  704. with_sysroot
  705. enable_libtool_lock
  706. enable_dependency_tracking
  707. enable_debug
  708. with_rt
  709. enable_gpl
  710. '
  711. ac_precious_vars='build_alias
  712. host_alias
  713. target_alias
  714. CC
  715. CFLAGS
  716. LDFLAGS
  717. LIBS
  718. CPPFLAGS
  719. CPP
  720. CXX
  721. CXXFLAGS
  722. CCC
  723. CXXCPP'
  724. # Initialize some variables set by options.
  725. ac_init_help=
  726. ac_init_version=false
  727. ac_unrecognized_opts=
  728. ac_unrecognized_sep=
  729. # The variables have the same names as the options, with
  730. # dashes changed to underlines.
  731. cache_file=/dev/null
  732. exec_prefix=NONE
  733. no_create=
  734. no_recursion=
  735. prefix=NONE
  736. program_prefix=NONE
  737. program_suffix=NONE
  738. program_transform_name=s,x,x,
  739. silent=
  740. site=
  741. srcdir=
  742. verbose=
  743. x_includes=NONE
  744. x_libraries=NONE
  745. # Installation directory options.
  746. # These are left unexpanded so users can "make install exec_prefix=/foo"
  747. # and all the variables that are supposed to be based on exec_prefix
  748. # by default will actually change.
  749. # Use braces instead of parens because sh, perl, etc. also accept them.
  750. # (The list follows the same order as the GNU Coding Standards.)
  751. bindir='${exec_prefix}/bin'
  752. sbindir='${exec_prefix}/sbin'
  753. libexecdir='${exec_prefix}/libexec'
  754. datarootdir='${prefix}/share'
  755. datadir='${datarootdir}'
  756. sysconfdir='${prefix}/etc'
  757. sharedstatedir='${prefix}/com'
  758. localstatedir='${prefix}/var'
  759. includedir='${prefix}/include'
  760. oldincludedir='/usr/include'
  761. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  762. infodir='${datarootdir}/info'
  763. htmldir='${docdir}'
  764. dvidir='${docdir}'
  765. pdfdir='${docdir}'
  766. psdir='${docdir}'
  767. libdir='${exec_prefix}/lib'
  768. localedir='${datarootdir}/locale'
  769. mandir='${datarootdir}/man'
  770. ac_prev=
  771. ac_dashdash=
  772. for ac_option
  773. do
  774. # If the previous option needs an argument, assign it.
  775. if test -n "$ac_prev"; then
  776. eval $ac_prev=\$ac_option
  777. ac_prev=
  778. continue
  779. fi
  780. case $ac_option in
  781. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  782. *=) ac_optarg= ;;
  783. *) ac_optarg=yes ;;
  784. esac
  785. # Accept the important Cygnus configure options, so we can diagnose typos.
  786. case $ac_dashdash$ac_option in
  787. --)
  788. ac_dashdash=yes ;;
  789. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  790. ac_prev=bindir ;;
  791. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  792. bindir=$ac_optarg ;;
  793. -build | --build | --buil | --bui | --bu)
  794. ac_prev=build_alias ;;
  795. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  796. build_alias=$ac_optarg ;;
  797. -cache-file | --cache-file | --cache-fil | --cache-fi \
  798. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  799. ac_prev=cache_file ;;
  800. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  801. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  802. cache_file=$ac_optarg ;;
  803. --config-cache | -C)
  804. cache_file=config.cache ;;
  805. -datadir | --datadir | --datadi | --datad)
  806. ac_prev=datadir ;;
  807. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  808. datadir=$ac_optarg ;;
  809. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  810. | --dataroo | --dataro | --datar)
  811. ac_prev=datarootdir ;;
  812. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  813. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  814. datarootdir=$ac_optarg ;;
  815. -disable-* | --disable-*)
  816. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  817. # Reject names that are not valid shell variable names.
  818. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  819. as_fn_error $? "invalid feature name: $ac_useropt"
  820. ac_useropt_orig=$ac_useropt
  821. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  822. case $ac_user_opts in
  823. *"
  824. "enable_$ac_useropt"
  825. "*) ;;
  826. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  827. ac_unrecognized_sep=', ';;
  828. esac
  829. eval enable_$ac_useropt=no ;;
  830. -docdir | --docdir | --docdi | --doc | --do)
  831. ac_prev=docdir ;;
  832. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  833. docdir=$ac_optarg ;;
  834. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  835. ac_prev=dvidir ;;
  836. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  837. dvidir=$ac_optarg ;;
  838. -enable-* | --enable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=\$ac_optarg ;;
  853. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  854. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  855. | --exec | --exe | --ex)
  856. ac_prev=exec_prefix ;;
  857. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  858. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  859. | --exec=* | --exe=* | --ex=*)
  860. exec_prefix=$ac_optarg ;;
  861. -gas | --gas | --ga | --g)
  862. # Obsolete; use --with-gas.
  863. with_gas=yes ;;
  864. -help | --help | --hel | --he | -h)
  865. ac_init_help=long ;;
  866. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  867. ac_init_help=recursive ;;
  868. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  869. ac_init_help=short ;;
  870. -host | --host | --hos | --ho)
  871. ac_prev=host_alias ;;
  872. -host=* | --host=* | --hos=* | --ho=*)
  873. host_alias=$ac_optarg ;;
  874. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  875. ac_prev=htmldir ;;
  876. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  877. | --ht=*)
  878. htmldir=$ac_optarg ;;
  879. -includedir | --includedir | --includedi | --included | --include \
  880. | --includ | --inclu | --incl | --inc)
  881. ac_prev=includedir ;;
  882. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  883. | --includ=* | --inclu=* | --incl=* | --inc=*)
  884. includedir=$ac_optarg ;;
  885. -infodir | --infodir | --infodi | --infod | --info | --inf)
  886. ac_prev=infodir ;;
  887. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  888. infodir=$ac_optarg ;;
  889. -libdir | --libdir | --libdi | --libd)
  890. ac_prev=libdir ;;
  891. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  892. libdir=$ac_optarg ;;
  893. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  894. | --libexe | --libex | --libe)
  895. ac_prev=libexecdir ;;
  896. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  897. | --libexe=* | --libex=* | --libe=*)
  898. libexecdir=$ac_optarg ;;
  899. -localedir | --localedir | --localedi | --localed | --locale)
  900. ac_prev=localedir ;;
  901. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  902. localedir=$ac_optarg ;;
  903. -localstatedir | --localstatedir | --localstatedi | --localstated \
  904. | --localstate | --localstat | --localsta | --localst | --locals)
  905. ac_prev=localstatedir ;;
  906. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  907. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  908. localstatedir=$ac_optarg ;;
  909. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  910. ac_prev=mandir ;;
  911. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  912. mandir=$ac_optarg ;;
  913. -nfp | --nfp | --nf)
  914. # Obsolete; use --without-fp.
  915. with_fp=no ;;
  916. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  917. | --no-cr | --no-c | -n)
  918. no_create=yes ;;
  919. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  920. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  921. no_recursion=yes ;;
  922. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  923. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  924. | --oldin | --oldi | --old | --ol | --o)
  925. ac_prev=oldincludedir ;;
  926. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  927. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  928. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  929. oldincludedir=$ac_optarg ;;
  930. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  931. ac_prev=prefix ;;
  932. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  933. prefix=$ac_optarg ;;
  934. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  935. | --program-pre | --program-pr | --program-p)
  936. ac_prev=program_prefix ;;
  937. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  938. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  939. program_prefix=$ac_optarg ;;
  940. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  941. | --program-suf | --program-su | --program-s)
  942. ac_prev=program_suffix ;;
  943. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  944. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  945. program_suffix=$ac_optarg ;;
  946. -program-transform-name | --program-transform-name \
  947. | --program-transform-nam | --program-transform-na \
  948. | --program-transform-n | --program-transform- \
  949. | --program-transform | --program-transfor \
  950. | --program-transfo | --program-transf \
  951. | --program-trans | --program-tran \
  952. | --progr-tra | --program-tr | --program-t)
  953. ac_prev=program_transform_name ;;
  954. -program-transform-name=* | --program-transform-name=* \
  955. | --program-transform-nam=* | --program-transform-na=* \
  956. | --program-transform-n=* | --program-transform-=* \
  957. | --program-transform=* | --program-transfor=* \
  958. | --program-transfo=* | --program-transf=* \
  959. | --program-trans=* | --program-tran=* \
  960. | --progr-tra=* | --program-tr=* | --program-t=*)
  961. program_transform_name=$ac_optarg ;;
  962. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  963. ac_prev=pdfdir ;;
  964. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  965. pdfdir=$ac_optarg ;;
  966. -psdir | --psdir | --psdi | --psd | --ps)
  967. ac_prev=psdir ;;
  968. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  969. psdir=$ac_optarg ;;
  970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  971. | -silent | --silent | --silen | --sile | --sil)
  972. silent=yes ;;
  973. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  974. ac_prev=sbindir ;;
  975. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  976. | --sbi=* | --sb=*)
  977. sbindir=$ac_optarg ;;
  978. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  979. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  980. | --sharedst | --shareds | --shared | --share | --shar \
  981. | --sha | --sh)
  982. ac_prev=sharedstatedir ;;
  983. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  984. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  985. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  986. | --sha=* | --sh=*)
  987. sharedstatedir=$ac_optarg ;;
  988. -site | --site | --sit)
  989. ac_prev=site ;;
  990. -site=* | --site=* | --sit=*)
  991. site=$ac_optarg ;;
  992. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  993. ac_prev=srcdir ;;
  994. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  995. srcdir=$ac_optarg ;;
  996. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  997. | --syscon | --sysco | --sysc | --sys | --sy)
  998. ac_prev=sysconfdir ;;
  999. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1000. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1001. sysconfdir=$ac_optarg ;;
  1002. -target | --target | --targe | --targ | --tar | --ta | --t)
  1003. ac_prev=target_alias ;;
  1004. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1005. target_alias=$ac_optarg ;;
  1006. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1007. verbose=yes ;;
  1008. -version | --version | --versio | --versi | --vers | -V)
  1009. ac_init_version=: ;;
  1010. -with-* | --with-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=\$ac_optarg ;;
  1025. -without-* | --without-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid package name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "with_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval with_$ac_useropt=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1056. Try \`$0 --help' for more information"
  1057. ;;
  1058. *=*)
  1059. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1060. # Reject names that are not valid shell variable names.
  1061. case $ac_envvar in #(
  1062. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1063. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1064. esac
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. as_fn_error $? "missing argument to $ac_option"
  1079. fi
  1080. if test -n "$ac_unrecognized_opts"; then
  1081. case $enable_option_checking in
  1082. no) ;;
  1083. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1084. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1085. esac
  1086. fi
  1087. # Check all directory arguments for consistency.
  1088. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1089. datadir sysconfdir sharedstatedir localstatedir includedir \
  1090. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1091. libdir localedir mandir
  1092. do
  1093. eval ac_val=\$$ac_var
  1094. # Remove trailing slashes.
  1095. case $ac_val in
  1096. */ )
  1097. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1098. eval $ac_var=\$ac_val;;
  1099. esac
  1100. # Be sure to have absolute directory names.
  1101. case $ac_val in
  1102. [\\/$]* | ?:[\\/]* ) continue;;
  1103. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1104. esac
  1105. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1106. done
  1107. # There might be people who depend on the old broken behavior: `$host'
  1108. # used to hold the argument of --host etc.
  1109. # FIXME: To remove some day.
  1110. build=$build_alias
  1111. host=$host_alias
  1112. target=$target_alias
  1113. # FIXME: To remove some day.
  1114. if test "x$host_alias" != x; then
  1115. if test "x$build_alias" = x; then
  1116. cross_compiling=maybe
  1117. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1118. If a cross compiler is detected then cross compile mode will be used" >&2
  1119. elif test "x$build_alias" != "x$host_alias"; then
  1120. cross_compiling=yes
  1121. fi
  1122. fi
  1123. ac_tool_prefix=
  1124. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1125. test "$silent" = yes && exec 6>/dev/null
  1126. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1127. ac_ls_di=`ls -di .` &&
  1128. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1129. as_fn_error $? "working directory cannot be determined"
  1130. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1131. as_fn_error $? "pwd does not report name of working directory"
  1132. # Find the source files, if location was not specified.
  1133. if test -z "$srcdir"; then
  1134. ac_srcdir_defaulted=yes
  1135. # Try the directory containing this script, then the parent directory.
  1136. ac_confdir=`$as_dirname -- "$as_myself" ||
  1137. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1138. X"$as_myself" : 'X\(//\)[^/]' \| \
  1139. X"$as_myself" : 'X\(//\)$' \| \
  1140. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1141. $as_echo X"$as_myself" |
  1142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)[^/].*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\).*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. s/.*/./; q'`
  1159. srcdir=$ac_confdir
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. srcdir=..
  1162. fi
  1163. else
  1164. ac_srcdir_defaulted=no
  1165. fi
  1166. if test ! -r "$srcdir/$ac_unique_file"; then
  1167. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1168. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1169. fi
  1170. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1171. ac_abs_confdir=`(
  1172. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1173. pwd)`
  1174. # When building in place, set srcdir=.
  1175. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1176. srcdir=.
  1177. fi
  1178. # Remove unnecessary trailing slashes from srcdir.
  1179. # Double slashes in file names in object file debugging info
  1180. # mess up M-x gdb in Emacs.
  1181. case $srcdir in
  1182. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1183. esac
  1184. for ac_var in $ac_precious_vars; do
  1185. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_env_${ac_var}_value=\$${ac_var}
  1187. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1189. done
  1190. #
  1191. # Report the --help message.
  1192. #
  1193. if test "$ac_init_help" = "long"; then
  1194. # Omit some internal or obsolete options to make the list less imposing.
  1195. # This message is too long to be a string in the A/UX 3.1 sh.
  1196. cat <<_ACEOF
  1197. \`configure' configures klish 1.5.3 to adapt to many kinds of systems.
  1198. Usage: $0 [OPTION]... [VAR=VALUE]...
  1199. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1200. VAR=VALUE. See below for descriptions of some of the useful variables.
  1201. Defaults for the options are specified in brackets.
  1202. Configuration:
  1203. -h, --help display this help and exit
  1204. --help=short display options specific to this package
  1205. --help=recursive display the short help of all the included packages
  1206. -V, --version display version information and exit
  1207. -q, --quiet, --silent do not print \`checking ...' messages
  1208. --cache-file=FILE cache test results in FILE [disabled]
  1209. -C, --config-cache alias for \`--cache-file=config.cache'
  1210. -n, --no-create do not create output files
  1211. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1212. Installation directories:
  1213. --prefix=PREFIX install architecture-independent files in PREFIX
  1214. [$ac_default_prefix]
  1215. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1216. [PREFIX]
  1217. By default, \`make install' will install all the files in
  1218. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1219. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1220. for instance \`--prefix=\$HOME'.
  1221. For better control, use the options below.
  1222. Fine tuning of the installation directories:
  1223. --bindir=DIR user executables [EPREFIX/bin]
  1224. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1225. --libexecdir=DIR program executables [EPREFIX/libexec]
  1226. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1227. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1228. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1229. --libdir=DIR object code libraries [EPREFIX/lib]
  1230. --includedir=DIR C header files [PREFIX/include]
  1231. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1232. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1233. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1234. --infodir=DIR info documentation [DATAROOTDIR/info]
  1235. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1236. --mandir=DIR man documentation [DATAROOTDIR/man]
  1237. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1238. --htmldir=DIR html documentation [DOCDIR]
  1239. --dvidir=DIR dvi documentation [DOCDIR]
  1240. --pdfdir=DIR pdf documentation [DOCDIR]
  1241. --psdir=DIR ps documentation [DOCDIR]
  1242. _ACEOF
  1243. cat <<\_ACEOF
  1244. Program names:
  1245. --program-prefix=PREFIX prepend PREFIX to installed program names
  1246. --program-suffix=SUFFIX append SUFFIX to installed program names
  1247. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1248. System types:
  1249. --build=BUILD configure for building on BUILD [guessed]
  1250. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1251. _ACEOF
  1252. fi
  1253. if test -n "$ac_init_help"; then
  1254. case $ac_init_help in
  1255. short | recursive ) echo "Configuration of klish 1.5.3:";;
  1256. esac
  1257. cat <<\_ACEOF
  1258. Optional Features:
  1259. --disable-option-checking ignore unrecognized --enable/--with options
  1260. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1261. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1262. --enable-shared[=PKGS] build shared libraries [default=yes]
  1263. --enable-static[=PKGS] build static libraries [default=yes]
  1264. --enable-fast-install[=PKGS]
  1265. optimize for fast installation [default=yes]
  1266. --disable-libtool-lock avoid locking (might break parallel builds)
  1267. --disable-dependency-tracking speeds up one-time build
  1268. --enable-dependency-tracking do not reject slow dependency extractors
  1269. --enable-debug Turn on debugging including asserts [default=no]
  1270. --enable-gpl Link with GPL licenced libraries [default=yes]
  1271. Optional Packages:
  1272. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1273. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1274. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1275. both]
  1276. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1277. --with-sysroot=DIR Search for dependent libraries within DIR
  1278. (or the compiler's sysroot if not specified).
  1279. --with-rt=DIR Use POSIX real time library distribution in DIR
  1280. Some influential environment variables:
  1281. CC C compiler command
  1282. CFLAGS C compiler flags
  1283. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1284. nonstandard directory <lib dir>
  1285. LIBS libraries to pass to the linker, e.g. -l<library>
  1286. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1287. you have headers in a nonstandard directory <include dir>
  1288. CPP C preprocessor
  1289. CXX C++ compiler command
  1290. CXXFLAGS C++ compiler flags
  1291. CXXCPP C++ preprocessor
  1292. Use these variables to override the choices made by `configure' or to help
  1293. it to find libraries and programs with nonstandard names/locations.
  1294. Report bugs to <serj.kalichev at gmail dot com>.
  1295. _ACEOF
  1296. ac_status=$?
  1297. fi
  1298. if test "$ac_init_help" = "recursive"; then
  1299. # If there are subdirs, report their specific --help.
  1300. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1301. test -d "$ac_dir" ||
  1302. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1303. continue
  1304. ac_builddir=.
  1305. case "$ac_dir" in
  1306. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *)
  1308. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1309. # A ".." for each directory in $ac_dir_suffix.
  1310. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1311. case $ac_top_builddir_sub in
  1312. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1314. esac ;;
  1315. esac
  1316. ac_abs_top_builddir=$ac_pwd
  1317. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1318. # for backward compatibility:
  1319. ac_top_builddir=$ac_top_build_prefix
  1320. case $srcdir in
  1321. .) # We are building in place.
  1322. ac_srcdir=.
  1323. ac_top_srcdir=$ac_top_builddir_sub
  1324. ac_abs_top_srcdir=$ac_pwd ;;
  1325. [\\/]* | ?:[\\/]* ) # Absolute name.
  1326. ac_srcdir=$srcdir$ac_dir_suffix;
  1327. ac_top_srcdir=$srcdir
  1328. ac_abs_top_srcdir=$srcdir ;;
  1329. *) # Relative name.
  1330. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1331. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1332. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1333. esac
  1334. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1335. cd "$ac_dir" || { ac_status=$?; continue; }
  1336. # Check for guested configure.
  1337. if test -f "$ac_srcdir/configure.gnu"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1340. elif test -f "$ac_srcdir/configure"; then
  1341. echo &&
  1342. $SHELL "$ac_srcdir/configure" --help=recursive
  1343. else
  1344. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1345. fi || ac_status=$?
  1346. cd "$ac_pwd" || { ac_status=$?; break; }
  1347. done
  1348. fi
  1349. test -n "$ac_init_help" && exit $ac_status
  1350. if $ac_init_version; then
  1351. cat <<\_ACEOF
  1352. klish configure 1.5.3
  1353. generated by GNU Autoconf 2.68
  1354. Copyright (C) 2010 Free Software Foundation, Inc.
  1355. This configure script is free software; the Free Software Foundation
  1356. gives unlimited permission to copy, distribute and modify it.
  1357. _ACEOF
  1358. exit
  1359. fi
  1360. ## ------------------------ ##
  1361. ## Autoconf initialization. ##
  1362. ## ------------------------ ##
  1363. # ac_fn_c_try_compile LINENO
  1364. # --------------------------
  1365. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1366. ac_fn_c_try_compile ()
  1367. {
  1368. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1369. rm -f conftest.$ac_objext
  1370. if { { ac_try="$ac_compile"
  1371. case "(($ac_try" in
  1372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1373. *) ac_try_echo=$ac_try;;
  1374. esac
  1375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1376. $as_echo "$ac_try_echo"; } >&5
  1377. (eval "$ac_compile") 2>conftest.err
  1378. ac_status=$?
  1379. if test -s conftest.err; then
  1380. grep -v '^ *+' conftest.err >conftest.er1
  1381. cat conftest.er1 >&5
  1382. mv -f conftest.er1 conftest.err
  1383. fi
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && {
  1386. test -z "$ac_c_werror_flag" ||
  1387. test ! -s conftest.err
  1388. } && test -s conftest.$ac_objext; then :
  1389. ac_retval=0
  1390. else
  1391. $as_echo "$as_me: failed program was:" >&5
  1392. sed 's/^/| /' conftest.$ac_ext >&5
  1393. ac_retval=1
  1394. fi
  1395. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1396. as_fn_set_status $ac_retval
  1397. } # ac_fn_c_try_compile
  1398. # ac_fn_c_try_cpp LINENO
  1399. # ----------------------
  1400. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_cpp ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1405. case "(($ac_try" in
  1406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1407. *) ac_try_echo=$ac_try;;
  1408. esac
  1409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1410. $as_echo "$ac_try_echo"; } >&5
  1411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1412. ac_status=$?
  1413. if test -s conftest.err; then
  1414. grep -v '^ *+' conftest.err >conftest.er1
  1415. cat conftest.er1 >&5
  1416. mv -f conftest.er1 conftest.err
  1417. fi
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } > conftest.i && {
  1420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1421. test ! -s conftest.err
  1422. }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1430. as_fn_set_status $ac_retval
  1431. } # ac_fn_c_try_cpp
  1432. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1433. # -------------------------------------------------------
  1434. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1435. # the include files in INCLUDES and setting the cache variable VAR
  1436. # accordingly.
  1437. ac_fn_c_check_header_mongrel ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. if eval \${$3+:} false; then :
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1442. $as_echo_n "checking for $2... " >&6; }
  1443. if eval \${$3+:} false; then :
  1444. $as_echo_n "(cached) " >&6
  1445. fi
  1446. eval ac_res=\$$3
  1447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1448. $as_echo "$ac_res" >&6; }
  1449. else
  1450. # Is the header compilable?
  1451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1452. $as_echo_n "checking $2 usability... " >&6; }
  1453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1454. /* end confdefs.h. */
  1455. $4
  1456. #include <$2>
  1457. _ACEOF
  1458. if ac_fn_c_try_compile "$LINENO"; then :
  1459. ac_header_compiler=yes
  1460. else
  1461. ac_header_compiler=no
  1462. fi
  1463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1465. $as_echo "$ac_header_compiler" >&6; }
  1466. # Is the header present?
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1468. $as_echo_n "checking $2 presence... " >&6; }
  1469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1470. /* end confdefs.h. */
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_cpp "$LINENO"; then :
  1474. ac_header_preproc=yes
  1475. else
  1476. ac_header_preproc=no
  1477. fi
  1478. rm -f conftest.err conftest.i conftest.$ac_ext
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1480. $as_echo "$ac_header_preproc" >&6; }
  1481. # So? What about this header?
  1482. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1483. yes:no: )
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1485. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1487. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1488. ;;
  1489. no:yes:* )
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1491. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1493. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1495. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1497. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1499. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1500. ( $as_echo "## --------------------------------------------- ##
  1501. ## Report this to serj.kalichev at gmail dot com ##
  1502. ## --------------------------------------------- ##"
  1503. ) | sed "s/^/$as_me: WARNING: /" >&2
  1504. ;;
  1505. esac
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1507. $as_echo_n "checking for $2... " >&6; }
  1508. if eval \${$3+:} false; then :
  1509. $as_echo_n "(cached) " >&6
  1510. else
  1511. eval "$3=\$ac_header_compiler"
  1512. fi
  1513. eval ac_res=\$$3
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1515. $as_echo "$ac_res" >&6; }
  1516. fi
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. } # ac_fn_c_check_header_mongrel
  1519. # ac_fn_c_try_run LINENO
  1520. # ----------------------
  1521. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1522. # that executables *can* be run.
  1523. ac_fn_c_try_run ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if { { ac_try="$ac_link"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_link") 2>&5
  1534. ac_status=$?
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1537. { { case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_try") 2>&5
  1544. ac_status=$?
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; }; }; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: program exited with status $ac_status" >&5
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=$ac_status
  1553. fi
  1554. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_c_try_run
  1558. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1559. # -------------------------------------------------------
  1560. # Tests whether HEADER exists and can be compiled using the include files in
  1561. # INCLUDES, setting the cache variable VAR accordingly.
  1562. ac_fn_c_check_header_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1566. $as_echo_n "checking for $2... " >&6; }
  1567. if eval \${$3+:} false; then :
  1568. $as_echo_n "(cached) " >&6
  1569. else
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. $4
  1573. #include <$2>
  1574. _ACEOF
  1575. if ac_fn_c_try_compile "$LINENO"; then :
  1576. eval "$3=yes"
  1577. else
  1578. eval "$3=no"
  1579. fi
  1580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1581. fi
  1582. eval ac_res=\$$3
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1584. $as_echo "$ac_res" >&6; }
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. } # ac_fn_c_check_header_compile
  1587. # ac_fn_cxx_try_compile LINENO
  1588. # ----------------------------
  1589. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_cxx_try_compile ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. rm -f conftest.$ac_objext
  1594. if { { ac_try="$ac_compile"
  1595. case "(($ac_try" in
  1596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597. *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. $as_echo "$ac_try_echo"; } >&5
  1601. (eval "$ac_compile") 2>conftest.err
  1602. ac_status=$?
  1603. if test -s conftest.err; then
  1604. grep -v '^ *+' conftest.err >conftest.er1
  1605. cat conftest.er1 >&5
  1606. mv -f conftest.er1 conftest.err
  1607. fi
  1608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; } && {
  1610. test -z "$ac_cxx_werror_flag" ||
  1611. test ! -s conftest.err
  1612. } && test -s conftest.$ac_objext; then :
  1613. ac_retval=0
  1614. else
  1615. $as_echo "$as_me: failed program was:" >&5
  1616. sed 's/^/| /' conftest.$ac_ext >&5
  1617. ac_retval=1
  1618. fi
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. as_fn_set_status $ac_retval
  1621. } # ac_fn_cxx_try_compile
  1622. # ac_fn_c_try_link LINENO
  1623. # -----------------------
  1624. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1625. ac_fn_c_try_link ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. rm -f conftest.$ac_objext conftest$ac_exeext
  1629. if { { ac_try="$ac_link"
  1630. case "(($ac_try" in
  1631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632. *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1635. $as_echo "$ac_try_echo"; } >&5
  1636. (eval "$ac_link") 2>conftest.err
  1637. ac_status=$?
  1638. if test -s conftest.err; then
  1639. grep -v '^ *+' conftest.err >conftest.er1
  1640. cat conftest.er1 >&5
  1641. mv -f conftest.er1 conftest.err
  1642. fi
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; } && {
  1645. test -z "$ac_c_werror_flag" ||
  1646. test ! -s conftest.err
  1647. } && test -s conftest$ac_exeext && {
  1648. test "$cross_compiling" = yes ||
  1649. $as_test_x conftest$ac_exeext
  1650. }; then :
  1651. ac_retval=0
  1652. else
  1653. $as_echo "$as_me: failed program was:" >&5
  1654. sed 's/^/| /' conftest.$ac_ext >&5
  1655. ac_retval=1
  1656. fi
  1657. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1658. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1659. # interfere with the next link command; also delete a directory that is
  1660. # left behind by Apple's compiler. We do this before executing the actions.
  1661. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_c_try_link
  1665. # ac_fn_c_check_func LINENO FUNC VAR
  1666. # ----------------------------------
  1667. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1668. ac_fn_c_check_func ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1679. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1680. #define $2 innocuous_$2
  1681. /* System header to define __stub macros and hopefully few prototypes,
  1682. which can conflict with char $2 (); below.
  1683. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1684. <limits.h> exists even on freestanding compilers. */
  1685. #ifdef __STDC__
  1686. # include <limits.h>
  1687. #else
  1688. # include <assert.h>
  1689. #endif
  1690. #undef $2
  1691. /* Override any GCC internal prototype to avoid an error.
  1692. Use char because int might match the return type of a GCC
  1693. builtin and then its argument prototype would still apply. */
  1694. #ifdef __cplusplus
  1695. extern "C"
  1696. #endif
  1697. char $2 ();
  1698. /* The GNU C library defines this for functions which it implements
  1699. to always fail with ENOSYS. Some functions are actually named
  1700. something starting with __ and the normal name is an alias. */
  1701. #if defined __stub_$2 || defined __stub___$2
  1702. choke me
  1703. #endif
  1704. int
  1705. main ()
  1706. {
  1707. return $2 ();
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_link "$LINENO"; then :
  1713. eval "$3=yes"
  1714. else
  1715. eval "$3=no"
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext \
  1718. conftest$ac_exeext conftest.$ac_ext
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. } # ac_fn_c_check_func
  1725. # ac_fn_cxx_try_cpp LINENO
  1726. # ------------------------
  1727. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1728. ac_fn_cxx_try_cpp ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1732. case "(($ac_try" in
  1733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1734. *) ac_try_echo=$ac_try;;
  1735. esac
  1736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1737. $as_echo "$ac_try_echo"; } >&5
  1738. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1739. ac_status=$?
  1740. if test -s conftest.err; then
  1741. grep -v '^ *+' conftest.err >conftest.er1
  1742. cat conftest.er1 >&5
  1743. mv -f conftest.er1 conftest.err
  1744. fi
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } > conftest.i && {
  1747. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1748. test ! -s conftest.err
  1749. }; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1757. as_fn_set_status $ac_retval
  1758. } # ac_fn_cxx_try_cpp
  1759. # ac_fn_cxx_try_link LINENO
  1760. # -------------------------
  1761. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1762. ac_fn_cxx_try_link ()
  1763. {
  1764. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1765. rm -f conftest.$ac_objext conftest$ac_exeext
  1766. if { { ac_try="$ac_link"
  1767. case "(($ac_try" in
  1768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1769. *) ac_try_echo=$ac_try;;
  1770. esac
  1771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1772. $as_echo "$ac_try_echo"; } >&5
  1773. (eval "$ac_link") 2>conftest.err
  1774. ac_status=$?
  1775. if test -s conftest.err; then
  1776. grep -v '^ *+' conftest.err >conftest.er1
  1777. cat conftest.er1 >&5
  1778. mv -f conftest.er1 conftest.err
  1779. fi
  1780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1781. test $ac_status = 0; } && {
  1782. test -z "$ac_cxx_werror_flag" ||
  1783. test ! -s conftest.err
  1784. } && test -s conftest$ac_exeext && {
  1785. test "$cross_compiling" = yes ||
  1786. $as_test_x conftest$ac_exeext
  1787. }; then :
  1788. ac_retval=0
  1789. else
  1790. $as_echo "$as_me: failed program was:" >&5
  1791. sed 's/^/| /' conftest.$ac_ext >&5
  1792. ac_retval=1
  1793. fi
  1794. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1795. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1796. # interfere with the next link command; also delete a directory that is
  1797. # left behind by Apple's compiler. We do this before executing the actions.
  1798. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. as_fn_set_status $ac_retval
  1801. } # ac_fn_cxx_try_link
  1802. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1803. # --------------------------------------------
  1804. # Tries to find the compile-time value of EXPR in a program that includes
  1805. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1806. # computed
  1807. ac_fn_c_compute_int ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. if test "$cross_compiling" = yes; then
  1811. # Depending upon the size, compute the lo and hi bounds.
  1812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h. */
  1814. $4
  1815. int
  1816. main ()
  1817. {
  1818. static int test_array [1 - 2 * !(($2) >= 0)];
  1819. test_array [0] = 0
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_compile "$LINENO"; then :
  1825. ac_lo=0 ac_mid=0
  1826. while :; do
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. $4
  1830. int
  1831. main ()
  1832. {
  1833. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1834. test_array [0] = 0
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. if ac_fn_c_try_compile "$LINENO"; then :
  1840. ac_hi=$ac_mid; break
  1841. else
  1842. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1843. if test $ac_lo -le $ac_mid; then
  1844. ac_lo= ac_hi=
  1845. break
  1846. fi
  1847. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1850. done
  1851. else
  1852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1853. /* end confdefs.h. */
  1854. $4
  1855. int
  1856. main ()
  1857. {
  1858. static int test_array [1 - 2 * !(($2) < 0)];
  1859. test_array [0] = 0
  1860. ;
  1861. return 0;
  1862. }
  1863. _ACEOF
  1864. if ac_fn_c_try_compile "$LINENO"; then :
  1865. ac_hi=-1 ac_mid=-1
  1866. while :; do
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. int
  1871. main ()
  1872. {
  1873. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1874. test_array [0] = 0
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. ac_lo=$ac_mid; break
  1881. else
  1882. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1883. if test $ac_mid -le $ac_hi; then
  1884. ac_lo= ac_hi=
  1885. break
  1886. fi
  1887. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. done
  1891. else
  1892. ac_lo= ac_hi=
  1893. fi
  1894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1897. # Binary search between lo and hi bounds.
  1898. while test "x$ac_lo" != "x$ac_hi"; do
  1899. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. $4
  1903. int
  1904. main ()
  1905. {
  1906. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1907. test_array [0] = 0
  1908. ;
  1909. return 0;
  1910. }
  1911. _ACEOF
  1912. if ac_fn_c_try_compile "$LINENO"; then :
  1913. ac_hi=$ac_mid
  1914. else
  1915. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1916. fi
  1917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1918. done
  1919. case $ac_lo in #((
  1920. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1921. '') ac_retval=1 ;;
  1922. esac
  1923. else
  1924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1925. /* end confdefs.h. */
  1926. $4
  1927. static long int longval () { return $2; }
  1928. static unsigned long int ulongval () { return $2; }
  1929. #include <stdio.h>
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. FILE *f = fopen ("conftest.val", "w");
  1935. if (! f)
  1936. return 1;
  1937. if (($2) < 0)
  1938. {
  1939. long int i = longval ();
  1940. if (i != ($2))
  1941. return 1;
  1942. fprintf (f, "%ld", i);
  1943. }
  1944. else
  1945. {
  1946. unsigned long int i = ulongval ();
  1947. if (i != ($2))
  1948. return 1;
  1949. fprintf (f, "%lu", i);
  1950. }
  1951. /* Do not output a trailing newline, as this causes \r\n confusion
  1952. on some platforms. */
  1953. return ferror (f) || fclose (f) != 0;
  1954. ;
  1955. return 0;
  1956. }
  1957. _ACEOF
  1958. if ac_fn_c_try_run "$LINENO"; then :
  1959. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1960. else
  1961. ac_retval=1
  1962. fi
  1963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1964. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1965. rm -f conftest.val
  1966. fi
  1967. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1968. as_fn_set_status $ac_retval
  1969. } # ac_fn_c_compute_int
  1970. cat >config.log <<_ACEOF
  1971. This file contains any messages produced by compilers while
  1972. running configure, to aid debugging if configure makes a mistake.
  1973. It was created by klish $as_me 1.5.3, which was
  1974. generated by GNU Autoconf 2.68. Invocation command line was
  1975. $ $0 $@
  1976. _ACEOF
  1977. exec 5>>config.log
  1978. {
  1979. cat <<_ASUNAME
  1980. ## --------- ##
  1981. ## Platform. ##
  1982. ## --------- ##
  1983. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1984. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1985. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1986. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1987. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1988. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1989. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1990. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1991. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1992. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1993. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1994. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1995. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1996. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1997. _ASUNAME
  1998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999. for as_dir in $PATH
  2000. do
  2001. IFS=$as_save_IFS
  2002. test -z "$as_dir" && as_dir=.
  2003. $as_echo "PATH: $as_dir"
  2004. done
  2005. IFS=$as_save_IFS
  2006. } >&5
  2007. cat >&5 <<_ACEOF
  2008. ## ----------- ##
  2009. ## Core tests. ##
  2010. ## ----------- ##
  2011. _ACEOF
  2012. # Keep a trace of the command line.
  2013. # Strip out --no-create and --no-recursion so they do not pile up.
  2014. # Strip out --silent because we don't want to record it for future runs.
  2015. # Also quote any args containing shell meta-characters.
  2016. # Make two passes to allow for proper duplicate-argument suppression.
  2017. ac_configure_args=
  2018. ac_configure_args0=
  2019. ac_configure_args1=
  2020. ac_must_keep_next=false
  2021. for ac_pass in 1 2
  2022. do
  2023. for ac_arg
  2024. do
  2025. case $ac_arg in
  2026. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2028. | -silent | --silent | --silen | --sile | --sil)
  2029. continue ;;
  2030. *\'*)
  2031. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2032. esac
  2033. case $ac_pass in
  2034. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2035. 2)
  2036. as_fn_append ac_configure_args1 " '$ac_arg'"
  2037. if test $ac_must_keep_next = true; then
  2038. ac_must_keep_next=false # Got value, back to normal.
  2039. else
  2040. case $ac_arg in
  2041. *=* | --config-cache | -C | -disable-* | --disable-* \
  2042. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2043. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2044. | -with-* | --with-* | -without-* | --without-* | --x)
  2045. case "$ac_configure_args0 " in
  2046. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2047. esac
  2048. ;;
  2049. -* ) ac_must_keep_next=true ;;
  2050. esac
  2051. fi
  2052. as_fn_append ac_configure_args " '$ac_arg'"
  2053. ;;
  2054. esac
  2055. done
  2056. done
  2057. { ac_configure_args0=; unset ac_configure_args0;}
  2058. { ac_configure_args1=; unset ac_configure_args1;}
  2059. # When interrupted or exit'd, cleanup temporary files, and complete
  2060. # config.log. We remove comments because anyway the quotes in there
  2061. # would cause problems or look ugly.
  2062. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2063. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2064. trap 'exit_status=$?
  2065. # Save into config.log some information that might help in debugging.
  2066. {
  2067. echo
  2068. $as_echo "## ---------------- ##
  2069. ## Cache variables. ##
  2070. ## ---------------- ##"
  2071. echo
  2072. # The following way of writing the cache mishandles newlines in values,
  2073. (
  2074. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2075. eval ac_val=\$$ac_var
  2076. case $ac_val in #(
  2077. *${as_nl}*)
  2078. case $ac_var in #(
  2079. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2080. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2081. esac
  2082. case $ac_var in #(
  2083. _ | IFS | as_nl) ;; #(
  2084. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2085. *) { eval $ac_var=; unset $ac_var;} ;;
  2086. esac ;;
  2087. esac
  2088. done
  2089. (set) 2>&1 |
  2090. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2091. *${as_nl}ac_space=\ *)
  2092. sed -n \
  2093. "s/'\''/'\''\\\\'\'''\''/g;
  2094. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2095. ;; #(
  2096. *)
  2097. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2098. ;;
  2099. esac |
  2100. sort
  2101. )
  2102. echo
  2103. $as_echo "## ----------------- ##
  2104. ## Output variables. ##
  2105. ## ----------------- ##"
  2106. echo
  2107. for ac_var in $ac_subst_vars
  2108. do
  2109. eval ac_val=\$$ac_var
  2110. case $ac_val in
  2111. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2112. esac
  2113. $as_echo "$ac_var='\''$ac_val'\''"
  2114. done | sort
  2115. echo
  2116. if test -n "$ac_subst_files"; then
  2117. $as_echo "## ------------------- ##
  2118. ## File substitutions. ##
  2119. ## ------------------- ##"
  2120. echo
  2121. for ac_var in $ac_subst_files
  2122. do
  2123. eval ac_val=\$$ac_var
  2124. case $ac_val in
  2125. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2126. esac
  2127. $as_echo "$ac_var='\''$ac_val'\''"
  2128. done | sort
  2129. echo
  2130. fi
  2131. if test -s confdefs.h; then
  2132. $as_echo "## ----------- ##
  2133. ## confdefs.h. ##
  2134. ## ----------- ##"
  2135. echo
  2136. cat confdefs.h
  2137. echo
  2138. fi
  2139. test "$ac_signal" != 0 &&
  2140. $as_echo "$as_me: caught signal $ac_signal"
  2141. $as_echo "$as_me: exit $exit_status"
  2142. } >&5
  2143. rm -f core *.core core.conftest.* &&
  2144. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2145. exit $exit_status
  2146. ' 0
  2147. for ac_signal in 1 2 13 15; do
  2148. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2149. done
  2150. ac_signal=0
  2151. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2152. rm -f -r conftest* confdefs.h
  2153. $as_echo "/* confdefs.h */" > confdefs.h
  2154. # Predefined preprocessor variables.
  2155. cat >>confdefs.h <<_ACEOF
  2156. #define PACKAGE_NAME "$PACKAGE_NAME"
  2157. _ACEOF
  2158. cat >>confdefs.h <<_ACEOF
  2159. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2160. _ACEOF
  2161. cat >>confdefs.h <<_ACEOF
  2162. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2163. _ACEOF
  2164. cat >>confdefs.h <<_ACEOF
  2165. #define PACKAGE_STRING "$PACKAGE_STRING"
  2166. _ACEOF
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2169. _ACEOF
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_URL "$PACKAGE_URL"
  2172. _ACEOF
  2173. # Let the site file select an alternate cache file if it wants to.
  2174. # Prefer an explicitly selected file to automatically selected ones.
  2175. ac_site_file1=NONE
  2176. ac_site_file2=NONE
  2177. if test -n "$CONFIG_SITE"; then
  2178. # We do not want a PATH search for config.site.
  2179. case $CONFIG_SITE in #((
  2180. -*) ac_site_file1=./$CONFIG_SITE;;
  2181. */*) ac_site_file1=$CONFIG_SITE;;
  2182. *) ac_site_file1=./$CONFIG_SITE;;
  2183. esac
  2184. elif test "x$prefix" != xNONE; then
  2185. ac_site_file1=$prefix/share/config.site
  2186. ac_site_file2=$prefix/etc/config.site
  2187. else
  2188. ac_site_file1=$ac_default_prefix/share/config.site
  2189. ac_site_file2=$ac_default_prefix/etc/config.site
  2190. fi
  2191. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2192. do
  2193. test "x$ac_site_file" = xNONE && continue
  2194. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2196. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2197. sed 's/^/| /' "$ac_site_file" >&5
  2198. . "$ac_site_file" \
  2199. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2201. as_fn_error $? "failed to load site script $ac_site_file
  2202. See \`config.log' for more details" "$LINENO" 5; }
  2203. fi
  2204. done
  2205. if test -r "$cache_file"; then
  2206. # Some versions of bash will fail to source /dev/null (special files
  2207. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2208. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2210. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2211. case $cache_file in
  2212. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2213. *) . "./$cache_file";;
  2214. esac
  2215. fi
  2216. else
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2218. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2219. >$cache_file
  2220. fi
  2221. # Check that the precious variables saved in the cache have kept the same
  2222. # value.
  2223. ac_cache_corrupted=false
  2224. for ac_var in $ac_precious_vars; do
  2225. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2226. eval ac_new_set=\$ac_env_${ac_var}_set
  2227. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2228. eval ac_new_val=\$ac_env_${ac_var}_value
  2229. case $ac_old_set,$ac_new_set in
  2230. set,)
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2232. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2233. ac_cache_corrupted=: ;;
  2234. ,set)
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2236. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2237. ac_cache_corrupted=: ;;
  2238. ,);;
  2239. *)
  2240. if test "x$ac_old_val" != "x$ac_new_val"; then
  2241. # differences in whitespace do not lead to failure.
  2242. ac_old_val_w=`echo x $ac_old_val`
  2243. ac_new_val_w=`echo x $ac_new_val`
  2244. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2246. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2247. ac_cache_corrupted=:
  2248. else
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2250. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2251. eval $ac_var=\$ac_old_val
  2252. fi
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2254. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2256. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2257. fi;;
  2258. esac
  2259. # Pass precious variables to config.status.
  2260. if test "$ac_new_set" = set; then
  2261. case $ac_new_val in
  2262. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2263. *) ac_arg=$ac_var=$ac_new_val ;;
  2264. esac
  2265. case " $ac_configure_args " in
  2266. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2267. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2268. esac
  2269. fi
  2270. done
  2271. if $ac_cache_corrupted; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2275. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2276. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2277. fi
  2278. ## -------------------- ##
  2279. ## Main body of script. ##
  2280. ## -------------------- ##
  2281. ac_ext=c
  2282. ac_cpp='$CPP $CPPFLAGS'
  2283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2286. ac_aux_dir=
  2287. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2288. if test -f "$ac_dir/install-sh"; then
  2289. ac_aux_dir=$ac_dir
  2290. ac_install_sh="$ac_aux_dir/install-sh -c"
  2291. break
  2292. elif test -f "$ac_dir/install.sh"; then
  2293. ac_aux_dir=$ac_dir
  2294. ac_install_sh="$ac_aux_dir/install.sh -c"
  2295. break
  2296. elif test -f "$ac_dir/shtool"; then
  2297. ac_aux_dir=$ac_dir
  2298. ac_install_sh="$ac_aux_dir/shtool install -c"
  2299. break
  2300. fi
  2301. done
  2302. if test -z "$ac_aux_dir"; then
  2303. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2304. fi
  2305. # These three variables are undocumented and unsupported,
  2306. # and are intended to be withdrawn in a future Autoconf release.
  2307. # They can cause serious problems if a builder's source tree is in a directory
  2308. # whose full name contains unusual characters.
  2309. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2310. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2311. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2312. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2313. ac_ext=c
  2314. ac_cpp='$CPP $CPPFLAGS'
  2315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2318. if test -n "$ac_tool_prefix"; then
  2319. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2320. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2322. $as_echo_n "checking for $ac_word... " >&6; }
  2323. if ${ac_cv_prog_CC+:} false; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. if test -n "$CC"; then
  2327. ac_cv_prog_CC="$CC" # Let the user override the test.
  2328. else
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2338. break 2
  2339. fi
  2340. done
  2341. done
  2342. IFS=$as_save_IFS
  2343. fi
  2344. fi
  2345. CC=$ac_cv_prog_CC
  2346. if test -n "$CC"; then
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2348. $as_echo "$CC" >&6; }
  2349. else
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2351. $as_echo "no" >&6; }
  2352. fi
  2353. fi
  2354. if test -z "$ac_cv_prog_CC"; then
  2355. ac_ct_CC=$CC
  2356. # Extract the first word of "gcc", so it can be a program name with args.
  2357. set dummy gcc; ac_word=$2
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2359. $as_echo_n "checking for $ac_word... " >&6; }
  2360. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2361. $as_echo_n "(cached) " >&6
  2362. else
  2363. if test -n "$ac_ct_CC"; then
  2364. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2365. else
  2366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2367. for as_dir in $PATH
  2368. do
  2369. IFS=$as_save_IFS
  2370. test -z "$as_dir" && as_dir=.
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2373. ac_cv_prog_ac_ct_CC="gcc"
  2374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2375. break 2
  2376. fi
  2377. done
  2378. done
  2379. IFS=$as_save_IFS
  2380. fi
  2381. fi
  2382. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2383. if test -n "$ac_ct_CC"; then
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2385. $as_echo "$ac_ct_CC" >&6; }
  2386. else
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2388. $as_echo "no" >&6; }
  2389. fi
  2390. if test "x$ac_ct_CC" = x; then
  2391. CC=""
  2392. else
  2393. case $cross_compiling:$ac_tool_warned in
  2394. yes:)
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2396. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2397. ac_tool_warned=yes ;;
  2398. esac
  2399. CC=$ac_ct_CC
  2400. fi
  2401. else
  2402. CC="$ac_cv_prog_CC"
  2403. fi
  2404. if test -z "$CC"; then
  2405. if test -n "$ac_tool_prefix"; then
  2406. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2407. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2409. $as_echo_n "checking for $ac_word... " >&6; }
  2410. if ${ac_cv_prog_CC+:} false; then :
  2411. $as_echo_n "(cached) " >&6
  2412. else
  2413. if test -n "$CC"; then
  2414. ac_cv_prog_CC="$CC" # Let the user override the test.
  2415. else
  2416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417. for as_dir in $PATH
  2418. do
  2419. IFS=$as_save_IFS
  2420. test -z "$as_dir" && as_dir=.
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2423. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2425. break 2
  2426. fi
  2427. done
  2428. done
  2429. IFS=$as_save_IFS
  2430. fi
  2431. fi
  2432. CC=$ac_cv_prog_CC
  2433. if test -n "$CC"; then
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2435. $as_echo "$CC" >&6; }
  2436. else
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2438. $as_echo "no" >&6; }
  2439. fi
  2440. fi
  2441. fi
  2442. if test -z "$CC"; then
  2443. # Extract the first word of "cc", so it can be a program name with args.
  2444. set dummy cc; ac_word=$2
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2446. $as_echo_n "checking for $ac_word... " >&6; }
  2447. if ${ac_cv_prog_CC+:} false; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. if test -n "$CC"; then
  2451. ac_cv_prog_CC="$CC" # Let the user override the test.
  2452. else
  2453. ac_prog_rejected=no
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2462. ac_prog_rejected=yes
  2463. continue
  2464. fi
  2465. ac_cv_prog_CC="cc"
  2466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2467. break 2
  2468. fi
  2469. done
  2470. done
  2471. IFS=$as_save_IFS
  2472. if test $ac_prog_rejected = yes; then
  2473. # We found a bogon in the path, so make sure we never use it.
  2474. set dummy $ac_cv_prog_CC
  2475. shift
  2476. if test $# != 0; then
  2477. # We chose a different compiler from the bogus one.
  2478. # However, it has the same basename, so the bogon will be chosen
  2479. # first if we set CC to just the basename; use the full file name.
  2480. shift
  2481. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2482. fi
  2483. fi
  2484. fi
  2485. fi
  2486. CC=$ac_cv_prog_CC
  2487. if test -n "$CC"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2489. $as_echo "$CC" >&6; }
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. fi
  2495. if test -z "$CC"; then
  2496. if test -n "$ac_tool_prefix"; then
  2497. for ac_prog in cl.exe
  2498. do
  2499. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2500. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2502. $as_echo_n "checking for $ac_word... " >&6; }
  2503. if ${ac_cv_prog_CC+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. if test -n "$CC"; then
  2507. ac_cv_prog_CC="$CC" # Let the user override the test.
  2508. else
  2509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2510. for as_dir in $PATH
  2511. do
  2512. IFS=$as_save_IFS
  2513. test -z "$as_dir" && as_dir=.
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2516. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2518. break 2
  2519. fi
  2520. done
  2521. done
  2522. IFS=$as_save_IFS
  2523. fi
  2524. fi
  2525. CC=$ac_cv_prog_CC
  2526. if test -n "$CC"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2528. $as_echo "$CC" >&6; }
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. fi
  2533. test -n "$CC" && break
  2534. done
  2535. fi
  2536. if test -z "$CC"; then
  2537. ac_ct_CC=$CC
  2538. for ac_prog in cl.exe
  2539. do
  2540. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2541. set dummy $ac_prog; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$ac_ct_CC"; then
  2548. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2557. ac_cv_prog_ac_ct_CC="$ac_prog"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2567. if test -n "$ac_ct_CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2569. $as_echo "$ac_ct_CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. test -n "$ac_ct_CC" && break
  2575. done
  2576. if test "x$ac_ct_CC" = x; then
  2577. CC=""
  2578. else
  2579. case $cross_compiling:$ac_tool_warned in
  2580. yes:)
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2583. ac_tool_warned=yes ;;
  2584. esac
  2585. CC=$ac_ct_CC
  2586. fi
  2587. fi
  2588. fi
  2589. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2591. as_fn_error $? "no acceptable C compiler found in \$PATH
  2592. See \`config.log' for more details" "$LINENO" 5; }
  2593. # Provide some information about the compiler.
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2595. set X $ac_compile
  2596. ac_compiler=$2
  2597. for ac_option in --version -v -V -qversion; do
  2598. { { ac_try="$ac_compiler $ac_option >&5"
  2599. case "(($ac_try" in
  2600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2601. *) ac_try_echo=$ac_try;;
  2602. esac
  2603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2604. $as_echo "$ac_try_echo"; } >&5
  2605. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2606. ac_status=$?
  2607. if test -s conftest.err; then
  2608. sed '10a\
  2609. ... rest of stderr output deleted ...
  2610. 10q' conftest.err >conftest.er1
  2611. cat conftest.er1 >&5
  2612. fi
  2613. rm -f conftest.er1 conftest.err
  2614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2615. test $ac_status = 0; }
  2616. done
  2617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2618. /* end confdefs.h. */
  2619. int
  2620. main ()
  2621. {
  2622. ;
  2623. return 0;
  2624. }
  2625. _ACEOF
  2626. ac_clean_files_save=$ac_clean_files
  2627. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2628. # Try to create an executable without -o first, disregard a.out.
  2629. # It will help us diagnose broken compilers, and finding out an intuition
  2630. # of exeext.
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2632. $as_echo_n "checking whether the C compiler works... " >&6; }
  2633. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2634. # The possible output files:
  2635. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2636. ac_rmfiles=
  2637. for ac_file in $ac_files
  2638. do
  2639. case $ac_file in
  2640. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2641. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2642. esac
  2643. done
  2644. rm -f $ac_rmfiles
  2645. if { { ac_try="$ac_link_default"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2651. $as_echo "$ac_try_echo"; } >&5
  2652. (eval "$ac_link_default") 2>&5
  2653. ac_status=$?
  2654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2655. test $ac_status = 0; }; then :
  2656. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2657. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2658. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2659. # so that the user can short-circuit this test for compilers unknown to
  2660. # Autoconf.
  2661. for ac_file in $ac_files ''
  2662. do
  2663. test -f "$ac_file" || continue
  2664. case $ac_file in
  2665. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2666. ;;
  2667. [ab].out )
  2668. # We found the default executable, but exeext='' is most
  2669. # certainly right.
  2670. break;;
  2671. *.* )
  2672. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2673. then :; else
  2674. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2675. fi
  2676. # We set ac_cv_exeext here because the later test for it is not
  2677. # safe: cross compilers may not add the suffix if given an `-o'
  2678. # argument, so we may need to know it at that point already.
  2679. # Even if this section looks crufty: it has the advantage of
  2680. # actually working.
  2681. break;;
  2682. * )
  2683. break;;
  2684. esac
  2685. done
  2686. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2687. else
  2688. ac_file=''
  2689. fi
  2690. if test -z "$ac_file"; then :
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. $as_echo "$as_me: failed program was:" >&5
  2694. sed 's/^/| /' conftest.$ac_ext >&5
  2695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2697. as_fn_error 77 "C compiler cannot create executables
  2698. See \`config.log' for more details" "$LINENO" 5; }
  2699. else
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2704. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2706. $as_echo "$ac_file" >&6; }
  2707. ac_exeext=$ac_cv_exeext
  2708. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2709. ac_clean_files=$ac_clean_files_save
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2711. $as_echo_n "checking for suffix of executables... " >&6; }
  2712. if { { ac_try="$ac_link"
  2713. case "(($ac_try" in
  2714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715. *) ac_try_echo=$ac_try;;
  2716. esac
  2717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2718. $as_echo "$ac_try_echo"; } >&5
  2719. (eval "$ac_link") 2>&5
  2720. ac_status=$?
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2722. test $ac_status = 0; }; then :
  2723. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2724. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2725. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2726. # `rm'.
  2727. for ac_file in conftest.exe conftest conftest.*; do
  2728. test -f "$ac_file" || continue
  2729. case $ac_file in
  2730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2731. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2732. break;;
  2733. * ) break;;
  2734. esac
  2735. done
  2736. else
  2737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2739. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2740. See \`config.log' for more details" "$LINENO" 5; }
  2741. fi
  2742. rm -f conftest conftest$ac_cv_exeext
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2744. $as_echo "$ac_cv_exeext" >&6; }
  2745. rm -f conftest.$ac_ext
  2746. EXEEXT=$ac_cv_exeext
  2747. ac_exeext=$EXEEXT
  2748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2749. /* end confdefs.h. */
  2750. #include <stdio.h>
  2751. int
  2752. main ()
  2753. {
  2754. FILE *f = fopen ("conftest.out", "w");
  2755. return ferror (f) || fclose (f) != 0;
  2756. ;
  2757. return 0;
  2758. }
  2759. _ACEOF
  2760. ac_clean_files="$ac_clean_files conftest.out"
  2761. # Check that the compiler produces executables we can run. If not, either
  2762. # the compiler is broken, or we cross compile.
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2764. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2765. if test "$cross_compiling" != yes; then
  2766. { { ac_try="$ac_link"
  2767. case "(($ac_try" in
  2768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2769. *) ac_try_echo=$ac_try;;
  2770. esac
  2771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2772. $as_echo "$ac_try_echo"; } >&5
  2773. (eval "$ac_link") 2>&5
  2774. ac_status=$?
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2776. test $ac_status = 0; }
  2777. if { ac_try='./conftest$ac_cv_exeext'
  2778. { { case "(($ac_try" in
  2779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780. *) ac_try_echo=$ac_try;;
  2781. esac
  2782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2783. $as_echo "$ac_try_echo"; } >&5
  2784. (eval "$ac_try") 2>&5
  2785. ac_status=$?
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2787. test $ac_status = 0; }; }; then
  2788. cross_compiling=no
  2789. else
  2790. if test "$cross_compiling" = maybe; then
  2791. cross_compiling=yes
  2792. else
  2793. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2794. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2795. as_fn_error $? "cannot run C compiled programs.
  2796. If you meant to cross compile, use \`--host'.
  2797. See \`config.log' for more details" "$LINENO" 5; }
  2798. fi
  2799. fi
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2802. $as_echo "$cross_compiling" >&6; }
  2803. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2804. ac_clean_files=$ac_clean_files_save
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2806. $as_echo_n "checking for suffix of object files... " >&6; }
  2807. if ${ac_cv_objext+:} false; then :
  2808. $as_echo_n "(cached) " >&6
  2809. else
  2810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2811. /* end confdefs.h. */
  2812. int
  2813. main ()
  2814. {
  2815. ;
  2816. return 0;
  2817. }
  2818. _ACEOF
  2819. rm -f conftest.o conftest.obj
  2820. if { { ac_try="$ac_compile"
  2821. case "(($ac_try" in
  2822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2823. *) ac_try_echo=$ac_try;;
  2824. esac
  2825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2826. $as_echo "$ac_try_echo"; } >&5
  2827. (eval "$ac_compile") 2>&5
  2828. ac_status=$?
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2830. test $ac_status = 0; }; then :
  2831. for ac_file in conftest.o conftest.obj conftest.*; do
  2832. test -f "$ac_file" || continue;
  2833. case $ac_file in
  2834. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2835. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2836. break;;
  2837. esac
  2838. done
  2839. else
  2840. $as_echo "$as_me: failed program was:" >&5
  2841. sed 's/^/| /' conftest.$ac_ext >&5
  2842. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2844. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2845. See \`config.log' for more details" "$LINENO" 5; }
  2846. fi
  2847. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2850. $as_echo "$ac_cv_objext" >&6; }
  2851. OBJEXT=$ac_cv_objext
  2852. ac_objext=$OBJEXT
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2854. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2855. if ${ac_cv_c_compiler_gnu+:} false; then :
  2856. $as_echo_n "(cached) " >&6
  2857. else
  2858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2859. /* end confdefs.h. */
  2860. int
  2861. main ()
  2862. {
  2863. #ifndef __GNUC__
  2864. choke me
  2865. #endif
  2866. ;
  2867. return 0;
  2868. }
  2869. _ACEOF
  2870. if ac_fn_c_try_compile "$LINENO"; then :
  2871. ac_compiler_gnu=yes
  2872. else
  2873. ac_compiler_gnu=no
  2874. fi
  2875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2876. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2877. fi
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2879. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2880. if test $ac_compiler_gnu = yes; then
  2881. GCC=yes
  2882. else
  2883. GCC=
  2884. fi
  2885. ac_test_CFLAGS=${CFLAGS+set}
  2886. ac_save_CFLAGS=$CFLAGS
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2888. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2889. if ${ac_cv_prog_cc_g+:} false; then :
  2890. $as_echo_n "(cached) " >&6
  2891. else
  2892. ac_save_c_werror_flag=$ac_c_werror_flag
  2893. ac_c_werror_flag=yes
  2894. ac_cv_prog_cc_g=no
  2895. CFLAGS="-g"
  2896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2897. /* end confdefs.h. */
  2898. int
  2899. main ()
  2900. {
  2901. ;
  2902. return 0;
  2903. }
  2904. _ACEOF
  2905. if ac_fn_c_try_compile "$LINENO"; then :
  2906. ac_cv_prog_cc_g=yes
  2907. else
  2908. CFLAGS=""
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. int
  2912. main ()
  2913. {
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. if ac_fn_c_try_compile "$LINENO"; then :
  2919. else
  2920. ac_c_werror_flag=$ac_save_c_werror_flag
  2921. CFLAGS="-g"
  2922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2923. /* end confdefs.h. */
  2924. int
  2925. main ()
  2926. {
  2927. ;
  2928. return 0;
  2929. }
  2930. _ACEOF
  2931. if ac_fn_c_try_compile "$LINENO"; then :
  2932. ac_cv_prog_cc_g=yes
  2933. fi
  2934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. fi
  2936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2937. fi
  2938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2939. ac_c_werror_flag=$ac_save_c_werror_flag
  2940. fi
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2942. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2943. if test "$ac_test_CFLAGS" = set; then
  2944. CFLAGS=$ac_save_CFLAGS
  2945. elif test $ac_cv_prog_cc_g = yes; then
  2946. if test "$GCC" = yes; then
  2947. CFLAGS="-g -O2"
  2948. else
  2949. CFLAGS="-g"
  2950. fi
  2951. else
  2952. if test "$GCC" = yes; then
  2953. CFLAGS="-O2"
  2954. else
  2955. CFLAGS=
  2956. fi
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2959. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2960. if ${ac_cv_prog_cc_c89+:} false; then :
  2961. $as_echo_n "(cached) " >&6
  2962. else
  2963. ac_cv_prog_cc_c89=no
  2964. ac_save_CC=$CC
  2965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2966. /* end confdefs.h. */
  2967. #include <stdarg.h>
  2968. #include <stdio.h>
  2969. #include <sys/types.h>
  2970. #include <sys/stat.h>
  2971. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2972. struct buf { int x; };
  2973. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2974. static char *e (p, i)
  2975. char **p;
  2976. int i;
  2977. {
  2978. return p[i];
  2979. }
  2980. static char *f (char * (*g) (char **, int), char **p, ...)
  2981. {
  2982. char *s;
  2983. va_list v;
  2984. va_start (v,p);
  2985. s = g (p, va_arg (v,int));
  2986. va_end (v);
  2987. return s;
  2988. }
  2989. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2990. function prototypes and stuff, but not '\xHH' hex character constants.
  2991. These don't provoke an error unfortunately, instead are silently treated
  2992. as 'x'. The following induces an error, until -std is added to get
  2993. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2994. array size at least. It's necessary to write '\x00'==0 to get something
  2995. that's true only with -std. */
  2996. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2997. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2998. inside strings and character constants. */
  2999. #define FOO(x) 'x'
  3000. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3001. int test (int i, double x);
  3002. struct s1 {int (*f) (int a);};
  3003. struct s2 {int (*f) (double a);};
  3004. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3005. int argc;
  3006. char **argv;
  3007. int
  3008. main ()
  3009. {
  3010. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3011. ;
  3012. return 0;
  3013. }
  3014. _ACEOF
  3015. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3016. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3017. do
  3018. CC="$ac_save_CC $ac_arg"
  3019. if ac_fn_c_try_compile "$LINENO"; then :
  3020. ac_cv_prog_cc_c89=$ac_arg
  3021. fi
  3022. rm -f core conftest.err conftest.$ac_objext
  3023. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3024. done
  3025. rm -f conftest.$ac_ext
  3026. CC=$ac_save_CC
  3027. fi
  3028. # AC_CACHE_VAL
  3029. case "x$ac_cv_prog_cc_c89" in
  3030. x)
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3032. $as_echo "none needed" >&6; } ;;
  3033. xno)
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3035. $as_echo "unsupported" >&6; } ;;
  3036. *)
  3037. CC="$CC $ac_cv_prog_cc_c89"
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3039. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3040. esac
  3041. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3042. fi
  3043. ac_ext=c
  3044. ac_cpp='$CPP $CPPFLAGS'
  3045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3048. ac_ext=c
  3049. ac_cpp='$CPP $CPPFLAGS'
  3050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3054. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3055. # On Suns, sometimes $CPP names a directory.
  3056. if test -n "$CPP" && test -d "$CPP"; then
  3057. CPP=
  3058. fi
  3059. if test -z "$CPP"; then
  3060. if ${ac_cv_prog_CPP+:} false; then :
  3061. $as_echo_n "(cached) " >&6
  3062. else
  3063. # Double quotes because CPP needs to be expanded
  3064. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3065. do
  3066. ac_preproc_ok=false
  3067. for ac_c_preproc_warn_flag in '' yes
  3068. do
  3069. # Use a header file that comes with gcc, so configuring glibc
  3070. # with a fresh cross-compiler works.
  3071. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3072. # <limits.h> exists even on freestanding compilers.
  3073. # On the NeXT, cc -E runs the code through the compiler's parser,
  3074. # not just through cpp. "Syntax error" is here to catch this case.
  3075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3076. /* end confdefs.h. */
  3077. #ifdef __STDC__
  3078. # include <limits.h>
  3079. #else
  3080. # include <assert.h>
  3081. #endif
  3082. Syntax error
  3083. _ACEOF
  3084. if ac_fn_c_try_cpp "$LINENO"; then :
  3085. else
  3086. # Broken: fails on valid input.
  3087. continue
  3088. fi
  3089. rm -f conftest.err conftest.i conftest.$ac_ext
  3090. # OK, works on sane cases. Now check whether nonexistent headers
  3091. # can be detected and how.
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. #include <ac_nonexistent.h>
  3095. _ACEOF
  3096. if ac_fn_c_try_cpp "$LINENO"; then :
  3097. # Broken: success on invalid input.
  3098. continue
  3099. else
  3100. # Passes both tests.
  3101. ac_preproc_ok=:
  3102. break
  3103. fi
  3104. rm -f conftest.err conftest.i conftest.$ac_ext
  3105. done
  3106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3107. rm -f conftest.i conftest.err conftest.$ac_ext
  3108. if $ac_preproc_ok; then :
  3109. break
  3110. fi
  3111. done
  3112. ac_cv_prog_CPP=$CPP
  3113. fi
  3114. CPP=$ac_cv_prog_CPP
  3115. else
  3116. ac_cv_prog_CPP=$CPP
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3119. $as_echo "$CPP" >&6; }
  3120. ac_preproc_ok=false
  3121. for ac_c_preproc_warn_flag in '' yes
  3122. do
  3123. # Use a header file that comes with gcc, so configuring glibc
  3124. # with a fresh cross-compiler works.
  3125. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3126. # <limits.h> exists even on freestanding compilers.
  3127. # On the NeXT, cc -E runs the code through the compiler's parser,
  3128. # not just through cpp. "Syntax error" is here to catch this case.
  3129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3130. /* end confdefs.h. */
  3131. #ifdef __STDC__
  3132. # include <limits.h>
  3133. #else
  3134. # include <assert.h>
  3135. #endif
  3136. Syntax error
  3137. _ACEOF
  3138. if ac_fn_c_try_cpp "$LINENO"; then :
  3139. else
  3140. # Broken: fails on valid input.
  3141. continue
  3142. fi
  3143. rm -f conftest.err conftest.i conftest.$ac_ext
  3144. # OK, works on sane cases. Now check whether nonexistent headers
  3145. # can be detected and how.
  3146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3147. /* end confdefs.h. */
  3148. #include <ac_nonexistent.h>
  3149. _ACEOF
  3150. if ac_fn_c_try_cpp "$LINENO"; then :
  3151. # Broken: success on invalid input.
  3152. continue
  3153. else
  3154. # Passes both tests.
  3155. ac_preproc_ok=:
  3156. break
  3157. fi
  3158. rm -f conftest.err conftest.i conftest.$ac_ext
  3159. done
  3160. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3161. rm -f conftest.i conftest.err conftest.$ac_ext
  3162. if $ac_preproc_ok; then :
  3163. else
  3164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3166. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3167. See \`config.log' for more details" "$LINENO" 5; }
  3168. fi
  3169. ac_ext=c
  3170. ac_cpp='$CPP $CPPFLAGS'
  3171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3175. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3176. if ${ac_cv_path_GREP+:} false; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. if test -z "$GREP"; then
  3180. ac_path_GREP_found=false
  3181. # Loop through the user's path and test for each of PROGNAME-LIST
  3182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3183. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3184. do
  3185. IFS=$as_save_IFS
  3186. test -z "$as_dir" && as_dir=.
  3187. for ac_prog in grep ggrep; do
  3188. for ac_exec_ext in '' $ac_executable_extensions; do
  3189. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3190. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3191. # Check for GNU ac_path_GREP and select it if it is found.
  3192. # Check for GNU $ac_path_GREP
  3193. case `"$ac_path_GREP" --version 2>&1` in
  3194. *GNU*)
  3195. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3196. *)
  3197. ac_count=0
  3198. $as_echo_n 0123456789 >"conftest.in"
  3199. while :
  3200. do
  3201. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3202. mv "conftest.tmp" "conftest.in"
  3203. cp "conftest.in" "conftest.nl"
  3204. $as_echo 'GREP' >> "conftest.nl"
  3205. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3206. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3207. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3208. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3209. # Best one so far, save it but keep looking for a better one
  3210. ac_cv_path_GREP="$ac_path_GREP"
  3211. ac_path_GREP_max=$ac_count
  3212. fi
  3213. # 10*(2^10) chars as input seems more than enough
  3214. test $ac_count -gt 10 && break
  3215. done
  3216. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3217. esac
  3218. $ac_path_GREP_found && break 3
  3219. done
  3220. done
  3221. done
  3222. IFS=$as_save_IFS
  3223. if test -z "$ac_cv_path_GREP"; then
  3224. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3225. fi
  3226. else
  3227. ac_cv_path_GREP=$GREP
  3228. fi
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3231. $as_echo "$ac_cv_path_GREP" >&6; }
  3232. GREP="$ac_cv_path_GREP"
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3234. $as_echo_n "checking for egrep... " >&6; }
  3235. if ${ac_cv_path_EGREP+:} false; then :
  3236. $as_echo_n "(cached) " >&6
  3237. else
  3238. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3239. then ac_cv_path_EGREP="$GREP -E"
  3240. else
  3241. if test -z "$EGREP"; then
  3242. ac_path_EGREP_found=false
  3243. # Loop through the user's path and test for each of PROGNAME-LIST
  3244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3245. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3246. do
  3247. IFS=$as_save_IFS
  3248. test -z "$as_dir" && as_dir=.
  3249. for ac_prog in egrep; do
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3252. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3253. # Check for GNU ac_path_EGREP and select it if it is found.
  3254. # Check for GNU $ac_path_EGREP
  3255. case `"$ac_path_EGREP" --version 2>&1` in
  3256. *GNU*)
  3257. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3258. *)
  3259. ac_count=0
  3260. $as_echo_n 0123456789 >"conftest.in"
  3261. while :
  3262. do
  3263. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3264. mv "conftest.tmp" "conftest.in"
  3265. cp "conftest.in" "conftest.nl"
  3266. $as_echo 'EGREP' >> "conftest.nl"
  3267. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3268. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3269. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3270. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3271. # Best one so far, save it but keep looking for a better one
  3272. ac_cv_path_EGREP="$ac_path_EGREP"
  3273. ac_path_EGREP_max=$ac_count
  3274. fi
  3275. # 10*(2^10) chars as input seems more than enough
  3276. test $ac_count -gt 10 && break
  3277. done
  3278. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3279. esac
  3280. $ac_path_EGREP_found && break 3
  3281. done
  3282. done
  3283. done
  3284. IFS=$as_save_IFS
  3285. if test -z "$ac_cv_path_EGREP"; then
  3286. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3287. fi
  3288. else
  3289. ac_cv_path_EGREP=$EGREP
  3290. fi
  3291. fi
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3294. $as_echo "$ac_cv_path_EGREP" >&6; }
  3295. EGREP="$ac_cv_path_EGREP"
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3297. $as_echo_n "checking for ANSI C header files... " >&6; }
  3298. if ${ac_cv_header_stdc+:} false; then :
  3299. $as_echo_n "(cached) " >&6
  3300. else
  3301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3302. /* end confdefs.h. */
  3303. #include <stdlib.h>
  3304. #include <stdarg.h>
  3305. #include <string.h>
  3306. #include <float.h>
  3307. int
  3308. main ()
  3309. {
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_cv_header_stdc=yes
  3316. else
  3317. ac_cv_header_stdc=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. if test $ac_cv_header_stdc = yes; then
  3321. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. #include <string.h>
  3325. _ACEOF
  3326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3327. $EGREP "memchr" >/dev/null 2>&1; then :
  3328. else
  3329. ac_cv_header_stdc=no
  3330. fi
  3331. rm -f conftest*
  3332. fi
  3333. if test $ac_cv_header_stdc = yes; then
  3334. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3336. /* end confdefs.h. */
  3337. #include <stdlib.h>
  3338. _ACEOF
  3339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3340. $EGREP "free" >/dev/null 2>&1; then :
  3341. else
  3342. ac_cv_header_stdc=no
  3343. fi
  3344. rm -f conftest*
  3345. fi
  3346. if test $ac_cv_header_stdc = yes; then
  3347. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3348. if test "$cross_compiling" = yes; then :
  3349. :
  3350. else
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. #include <ctype.h>
  3354. #include <stdlib.h>
  3355. #if ((' ' & 0x0FF) == 0x020)
  3356. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3357. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3358. #else
  3359. # define ISLOWER(c) \
  3360. (('a' <= (c) && (c) <= 'i') \
  3361. || ('j' <= (c) && (c) <= 'r') \
  3362. || ('s' <= (c) && (c) <= 'z'))
  3363. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3364. #endif
  3365. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3366. int
  3367. main ()
  3368. {
  3369. int i;
  3370. for (i = 0; i < 256; i++)
  3371. if (XOR (islower (i), ISLOWER (i))
  3372. || toupper (i) != TOUPPER (i))
  3373. return 2;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_c_try_run "$LINENO"; then :
  3378. else
  3379. ac_cv_header_stdc=no
  3380. fi
  3381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3383. fi
  3384. fi
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3387. $as_echo "$ac_cv_header_stdc" >&6; }
  3388. if test $ac_cv_header_stdc = yes; then
  3389. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3390. fi
  3391. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3392. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3393. inttypes.h stdint.h unistd.h
  3394. do :
  3395. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3396. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3397. "
  3398. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3399. cat >>confdefs.h <<_ACEOF
  3400. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3401. _ACEOF
  3402. fi
  3403. done
  3404. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3405. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3406. MINIX=yes
  3407. else
  3408. MINIX=
  3409. fi
  3410. if test "$MINIX" = yes; then
  3411. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3412. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3413. $as_echo "#define _MINIX 1" >>confdefs.h
  3414. fi
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3416. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3417. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. # define __EXTENSIONS__ 1
  3423. $ac_includes_default
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. if ac_fn_c_try_compile "$LINENO"; then :
  3432. ac_cv_safe_to_define___extensions__=yes
  3433. else
  3434. ac_cv_safe_to_define___extensions__=no
  3435. fi
  3436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3439. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3440. test $ac_cv_safe_to_define___extensions__ = yes &&
  3441. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3442. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3443. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3444. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3445. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3446. # Checks for programs.
  3447. ac_ext=c
  3448. ac_cpp='$CPP $CPPFLAGS'
  3449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3452. if test -n "$ac_tool_prefix"; then
  3453. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3454. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3456. $as_echo_n "checking for $ac_word... " >&6; }
  3457. if ${ac_cv_prog_CC+:} false; then :
  3458. $as_echo_n "(cached) " >&6
  3459. else
  3460. if test -n "$CC"; then
  3461. ac_cv_prog_CC="$CC" # Let the user override the test.
  3462. else
  3463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3464. for as_dir in $PATH
  3465. do
  3466. IFS=$as_save_IFS
  3467. test -z "$as_dir" && as_dir=.
  3468. for ac_exec_ext in '' $ac_executable_extensions; do
  3469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3470. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3472. break 2
  3473. fi
  3474. done
  3475. done
  3476. IFS=$as_save_IFS
  3477. fi
  3478. fi
  3479. CC=$ac_cv_prog_CC
  3480. if test -n "$CC"; then
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3482. $as_echo "$CC" >&6; }
  3483. else
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3485. $as_echo "no" >&6; }
  3486. fi
  3487. fi
  3488. if test -z "$ac_cv_prog_CC"; then
  3489. ac_ct_CC=$CC
  3490. # Extract the first word of "gcc", so it can be a program name with args.
  3491. set dummy gcc; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$ac_ct_CC"; then
  3498. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3507. ac_cv_prog_ac_ct_CC="gcc"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3517. if test -n "$ac_ct_CC"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3519. $as_echo "$ac_ct_CC" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. if test "x$ac_ct_CC" = x; then
  3525. CC=""
  3526. else
  3527. case $cross_compiling:$ac_tool_warned in
  3528. yes:)
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3530. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3531. ac_tool_warned=yes ;;
  3532. esac
  3533. CC=$ac_ct_CC
  3534. fi
  3535. else
  3536. CC="$ac_cv_prog_CC"
  3537. fi
  3538. if test -z "$CC"; then
  3539. if test -n "$ac_tool_prefix"; then
  3540. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3541. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3543. $as_echo_n "checking for $ac_word... " >&6; }
  3544. if ${ac_cv_prog_CC+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if test -n "$CC"; then
  3548. ac_cv_prog_CC="$CC" # Let the user override the test.
  3549. else
  3550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551. for as_dir in $PATH
  3552. do
  3553. IFS=$as_save_IFS
  3554. test -z "$as_dir" && as_dir=.
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3557. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3559. break 2
  3560. fi
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. fi
  3565. fi
  3566. CC=$ac_cv_prog_CC
  3567. if test -n "$CC"; then
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3569. $as_echo "$CC" >&6; }
  3570. else
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3572. $as_echo "no" >&6; }
  3573. fi
  3574. fi
  3575. fi
  3576. if test -z "$CC"; then
  3577. # Extract the first word of "cc", so it can be a program name with args.
  3578. set dummy cc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if ${ac_cv_prog_CC+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. ac_prog_rejected=no
  3588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3589. for as_dir in $PATH
  3590. do
  3591. IFS=$as_save_IFS
  3592. test -z "$as_dir" && as_dir=.
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3595. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3596. ac_prog_rejected=yes
  3597. continue
  3598. fi
  3599. ac_cv_prog_CC="cc"
  3600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3601. break 2
  3602. fi
  3603. done
  3604. done
  3605. IFS=$as_save_IFS
  3606. if test $ac_prog_rejected = yes; then
  3607. # We found a bogon in the path, so make sure we never use it.
  3608. set dummy $ac_cv_prog_CC
  3609. shift
  3610. if test $# != 0; then
  3611. # We chose a different compiler from the bogus one.
  3612. # However, it has the same basename, so the bogon will be chosen
  3613. # first if we set CC to just the basename; use the full file name.
  3614. shift
  3615. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3616. fi
  3617. fi
  3618. fi
  3619. fi
  3620. CC=$ac_cv_prog_CC
  3621. if test -n "$CC"; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3623. $as_echo "$CC" >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. fi
  3628. fi
  3629. if test -z "$CC"; then
  3630. if test -n "$ac_tool_prefix"; then
  3631. for ac_prog in cl.exe
  3632. do
  3633. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3634. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3636. $as_echo_n "checking for $ac_word... " >&6; }
  3637. if ${ac_cv_prog_CC+:} false; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. if test -n "$CC"; then
  3641. ac_cv_prog_CC="$CC" # Let the user override the test.
  3642. else
  3643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3644. for as_dir in $PATH
  3645. do
  3646. IFS=$as_save_IFS
  3647. test -z "$as_dir" && as_dir=.
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3650. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3652. break 2
  3653. fi
  3654. done
  3655. done
  3656. IFS=$as_save_IFS
  3657. fi
  3658. fi
  3659. CC=$ac_cv_prog_CC
  3660. if test -n "$CC"; then
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3662. $as_echo "$CC" >&6; }
  3663. else
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3665. $as_echo "no" >&6; }
  3666. fi
  3667. test -n "$CC" && break
  3668. done
  3669. fi
  3670. if test -z "$CC"; then
  3671. ac_ct_CC=$CC
  3672. for ac_prog in cl.exe
  3673. do
  3674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3675. set dummy $ac_prog; ac_word=$2
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3677. $as_echo_n "checking for $ac_word... " >&6; }
  3678. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3679. $as_echo_n "(cached) " >&6
  3680. else
  3681. if test -n "$ac_ct_CC"; then
  3682. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3683. else
  3684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3685. for as_dir in $PATH
  3686. do
  3687. IFS=$as_save_IFS
  3688. test -z "$as_dir" && as_dir=.
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3691. ac_cv_prog_ac_ct_CC="$ac_prog"
  3692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3693. break 2
  3694. fi
  3695. done
  3696. done
  3697. IFS=$as_save_IFS
  3698. fi
  3699. fi
  3700. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3701. if test -n "$ac_ct_CC"; then
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3703. $as_echo "$ac_ct_CC" >&6; }
  3704. else
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3706. $as_echo "no" >&6; }
  3707. fi
  3708. test -n "$ac_ct_CC" && break
  3709. done
  3710. if test "x$ac_ct_CC" = x; then
  3711. CC=""
  3712. else
  3713. case $cross_compiling:$ac_tool_warned in
  3714. yes:)
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3716. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3717. ac_tool_warned=yes ;;
  3718. esac
  3719. CC=$ac_ct_CC
  3720. fi
  3721. fi
  3722. fi
  3723. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3725. as_fn_error $? "no acceptable C compiler found in \$PATH
  3726. See \`config.log' for more details" "$LINENO" 5; }
  3727. # Provide some information about the compiler.
  3728. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3729. set X $ac_compile
  3730. ac_compiler=$2
  3731. for ac_option in --version -v -V -qversion; do
  3732. { { ac_try="$ac_compiler $ac_option >&5"
  3733. case "(($ac_try" in
  3734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3735. *) ac_try_echo=$ac_try;;
  3736. esac
  3737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3738. $as_echo "$ac_try_echo"; } >&5
  3739. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3740. ac_status=$?
  3741. if test -s conftest.err; then
  3742. sed '10a\
  3743. ... rest of stderr output deleted ...
  3744. 10q' conftest.err >conftest.er1
  3745. cat conftest.er1 >&5
  3746. fi
  3747. rm -f conftest.er1 conftest.err
  3748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3749. test $ac_status = 0; }
  3750. done
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3752. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3753. if ${ac_cv_c_compiler_gnu+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h. */
  3758. int
  3759. main ()
  3760. {
  3761. #ifndef __GNUC__
  3762. choke me
  3763. #endif
  3764. ;
  3765. return 0;
  3766. }
  3767. _ACEOF
  3768. if ac_fn_c_try_compile "$LINENO"; then :
  3769. ac_compiler_gnu=yes
  3770. else
  3771. ac_compiler_gnu=no
  3772. fi
  3773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3774. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3777. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3778. if test $ac_compiler_gnu = yes; then
  3779. GCC=yes
  3780. else
  3781. GCC=
  3782. fi
  3783. ac_test_CFLAGS=${CFLAGS+set}
  3784. ac_save_CFLAGS=$CFLAGS
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3786. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3787. if ${ac_cv_prog_cc_g+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. ac_save_c_werror_flag=$ac_c_werror_flag
  3791. ac_c_werror_flag=yes
  3792. ac_cv_prog_cc_g=no
  3793. CFLAGS="-g"
  3794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3795. /* end confdefs.h. */
  3796. int
  3797. main ()
  3798. {
  3799. ;
  3800. return 0;
  3801. }
  3802. _ACEOF
  3803. if ac_fn_c_try_compile "$LINENO"; then :
  3804. ac_cv_prog_cc_g=yes
  3805. else
  3806. CFLAGS=""
  3807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3808. /* end confdefs.h. */
  3809. int
  3810. main ()
  3811. {
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. if ac_fn_c_try_compile "$LINENO"; then :
  3817. else
  3818. ac_c_werror_flag=$ac_save_c_werror_flag
  3819. CFLAGS="-g"
  3820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3821. /* end confdefs.h. */
  3822. int
  3823. main ()
  3824. {
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. if ac_fn_c_try_compile "$LINENO"; then :
  3830. ac_cv_prog_cc_g=yes
  3831. fi
  3832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3835. fi
  3836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3837. ac_c_werror_flag=$ac_save_c_werror_flag
  3838. fi
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3840. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3841. if test "$ac_test_CFLAGS" = set; then
  3842. CFLAGS=$ac_save_CFLAGS
  3843. elif test $ac_cv_prog_cc_g = yes; then
  3844. if test "$GCC" = yes; then
  3845. CFLAGS="-g -O2"
  3846. else
  3847. CFLAGS="-g"
  3848. fi
  3849. else
  3850. if test "$GCC" = yes; then
  3851. CFLAGS="-O2"
  3852. else
  3853. CFLAGS=
  3854. fi
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3857. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3858. if ${ac_cv_prog_cc_c89+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. ac_cv_prog_cc_c89=no
  3862. ac_save_CC=$CC
  3863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3864. /* end confdefs.h. */
  3865. #include <stdarg.h>
  3866. #include <stdio.h>
  3867. #include <sys/types.h>
  3868. #include <sys/stat.h>
  3869. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3870. struct buf { int x; };
  3871. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3872. static char *e (p, i)
  3873. char **p;
  3874. int i;
  3875. {
  3876. return p[i];
  3877. }
  3878. static char *f (char * (*g) (char **, int), char **p, ...)
  3879. {
  3880. char *s;
  3881. va_list v;
  3882. va_start (v,p);
  3883. s = g (p, va_arg (v,int));
  3884. va_end (v);
  3885. return s;
  3886. }
  3887. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3888. function prototypes and stuff, but not '\xHH' hex character constants.
  3889. These don't provoke an error unfortunately, instead are silently treated
  3890. as 'x'. The following induces an error, until -std is added to get
  3891. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3892. array size at least. It's necessary to write '\x00'==0 to get something
  3893. that's true only with -std. */
  3894. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3895. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3896. inside strings and character constants. */
  3897. #define FOO(x) 'x'
  3898. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3899. int test (int i, double x);
  3900. struct s1 {int (*f) (int a);};
  3901. struct s2 {int (*f) (double a);};
  3902. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3903. int argc;
  3904. char **argv;
  3905. int
  3906. main ()
  3907. {
  3908. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3909. ;
  3910. return 0;
  3911. }
  3912. _ACEOF
  3913. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3914. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3915. do
  3916. CC="$ac_save_CC $ac_arg"
  3917. if ac_fn_c_try_compile "$LINENO"; then :
  3918. ac_cv_prog_cc_c89=$ac_arg
  3919. fi
  3920. rm -f core conftest.err conftest.$ac_objext
  3921. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3922. done
  3923. rm -f conftest.$ac_ext
  3924. CC=$ac_save_CC
  3925. fi
  3926. # AC_CACHE_VAL
  3927. case "x$ac_cv_prog_cc_c89" in
  3928. x)
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3930. $as_echo "none needed" >&6; } ;;
  3931. xno)
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3933. $as_echo "unsupported" >&6; } ;;
  3934. *)
  3935. CC="$CC $ac_cv_prog_cc_c89"
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3937. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3938. esac
  3939. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3940. fi
  3941. ac_ext=c
  3942. ac_cpp='$CPP $CPPFLAGS'
  3943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3946. ac_ext=cpp
  3947. ac_cpp='$CXXCPP $CPPFLAGS'
  3948. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3949. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3950. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3951. if test -z "$CXX"; then
  3952. if test -n "$CCC"; then
  3953. CXX=$CCC
  3954. else
  3955. if test -n "$ac_tool_prefix"; then
  3956. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3957. do
  3958. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3959. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3961. $as_echo_n "checking for $ac_word... " >&6; }
  3962. if ${ac_cv_prog_CXX+:} false; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. if test -n "$CXX"; then
  3966. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3967. else
  3968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3969. for as_dir in $PATH
  3970. do
  3971. IFS=$as_save_IFS
  3972. test -z "$as_dir" && as_dir=.
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3975. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3977. break 2
  3978. fi
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. fi
  3984. CXX=$ac_cv_prog_CXX
  3985. if test -n "$CXX"; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3987. $as_echo "$CXX" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3990. $as_echo "no" >&6; }
  3991. fi
  3992. test -n "$CXX" && break
  3993. done
  3994. fi
  3995. if test -z "$CXX"; then
  3996. ac_ct_CXX=$CXX
  3997. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3998. do
  3999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4000. set dummy $ac_prog; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$ac_ct_CXX"; then
  4007. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4016. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4026. if test -n "$ac_ct_CXX"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4028. $as_echo "$ac_ct_CXX" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. test -n "$ac_ct_CXX" && break
  4034. done
  4035. if test "x$ac_ct_CXX" = x; then
  4036. CXX="g++"
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4042. ac_tool_warned=yes ;;
  4043. esac
  4044. CXX=$ac_ct_CXX
  4045. fi
  4046. fi
  4047. fi
  4048. fi
  4049. # Provide some information about the compiler.
  4050. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4051. set X $ac_compile
  4052. ac_compiler=$2
  4053. for ac_option in --version -v -V -qversion; do
  4054. { { ac_try="$ac_compiler $ac_option >&5"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4060. $as_echo "$ac_try_echo"; } >&5
  4061. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4062. ac_status=$?
  4063. if test -s conftest.err; then
  4064. sed '10a\
  4065. ... rest of stderr output deleted ...
  4066. 10q' conftest.err >conftest.er1
  4067. cat conftest.er1 >&5
  4068. fi
  4069. rm -f conftest.er1 conftest.err
  4070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4071. test $ac_status = 0; }
  4072. done
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4074. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4075. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. int
  4081. main ()
  4082. {
  4083. #ifndef __GNUC__
  4084. choke me
  4085. #endif
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. if ac_fn_cxx_try_compile "$LINENO"; then :
  4091. ac_compiler_gnu=yes
  4092. else
  4093. ac_compiler_gnu=no
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4096. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4099. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4100. if test $ac_compiler_gnu = yes; then
  4101. GXX=yes
  4102. else
  4103. GXX=
  4104. fi
  4105. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4106. ac_save_CXXFLAGS=$CXXFLAGS
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4108. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4109. if ${ac_cv_prog_cxx_g+:} false; then :
  4110. $as_echo_n "(cached) " >&6
  4111. else
  4112. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4113. ac_cxx_werror_flag=yes
  4114. ac_cv_prog_cxx_g=no
  4115. CXXFLAGS="-g"
  4116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4117. /* end confdefs.h. */
  4118. int
  4119. main ()
  4120. {
  4121. ;
  4122. return 0;
  4123. }
  4124. _ACEOF
  4125. if ac_fn_cxx_try_compile "$LINENO"; then :
  4126. ac_cv_prog_cxx_g=yes
  4127. else
  4128. CXXFLAGS=""
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. int
  4132. main ()
  4133. {
  4134. ;
  4135. return 0;
  4136. }
  4137. _ACEOF
  4138. if ac_fn_cxx_try_compile "$LINENO"; then :
  4139. else
  4140. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4141. CXXFLAGS="-g"
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. int
  4145. main ()
  4146. {
  4147. ;
  4148. return 0;
  4149. }
  4150. _ACEOF
  4151. if ac_fn_cxx_try_compile "$LINENO"; then :
  4152. ac_cv_prog_cxx_g=yes
  4153. fi
  4154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4155. fi
  4156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4157. fi
  4158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4159. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4162. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4163. if test "$ac_test_CXXFLAGS" = set; then
  4164. CXXFLAGS=$ac_save_CXXFLAGS
  4165. elif test $ac_cv_prog_cxx_g = yes; then
  4166. if test "$GXX" = yes; then
  4167. CXXFLAGS="-g -O2"
  4168. else
  4169. CXXFLAGS="-g"
  4170. fi
  4171. else
  4172. if test "$GXX" = yes; then
  4173. CXXFLAGS="-O2"
  4174. else
  4175. CXXFLAGS=
  4176. fi
  4177. fi
  4178. ac_ext=c
  4179. ac_cpp='$CPP $CPPFLAGS'
  4180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4183. # Make sure we can run config.sub.
  4184. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4185. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4187. $as_echo_n "checking build system type... " >&6; }
  4188. if ${ac_cv_build+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. ac_build_alias=$build_alias
  4192. test "x$ac_build_alias" = x &&
  4193. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4194. test "x$ac_build_alias" = x &&
  4195. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4196. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4197. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4198. fi
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4200. $as_echo "$ac_cv_build" >&6; }
  4201. case $ac_cv_build in
  4202. *-*-*) ;;
  4203. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4204. esac
  4205. build=$ac_cv_build
  4206. ac_save_IFS=$IFS; IFS='-'
  4207. set x $ac_cv_build
  4208. shift
  4209. build_cpu=$1
  4210. build_vendor=$2
  4211. shift; shift
  4212. # Remember, the first character of IFS is used to create $*,
  4213. # except with old shells:
  4214. build_os=$*
  4215. IFS=$ac_save_IFS
  4216. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4218. $as_echo_n "checking host system type... " >&6; }
  4219. if ${ac_cv_host+:} false; then :
  4220. $as_echo_n "(cached) " >&6
  4221. else
  4222. if test "x$host_alias" = x; then
  4223. ac_cv_host=$ac_cv_build
  4224. else
  4225. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4226. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4227. fi
  4228. fi
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4230. $as_echo "$ac_cv_host" >&6; }
  4231. case $ac_cv_host in
  4232. *-*-*) ;;
  4233. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4234. esac
  4235. host=$ac_cv_host
  4236. ac_save_IFS=$IFS; IFS='-'
  4237. set x $ac_cv_host
  4238. shift
  4239. host_cpu=$1
  4240. host_vendor=$2
  4241. shift; shift
  4242. # Remember, the first character of IFS is used to create $*,
  4243. # except with old shells:
  4244. host_os=$*
  4245. IFS=$ac_save_IFS
  4246. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4247. enable_win32_dll=yes
  4248. case $host in
  4249. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4250. if test -n "$ac_tool_prefix"; then
  4251. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4252. set dummy ${ac_tool_prefix}as; ac_word=$2
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4254. $as_echo_n "checking for $ac_word... " >&6; }
  4255. if ${ac_cv_prog_AS+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. if test -n "$AS"; then
  4259. ac_cv_prog_AS="$AS" # Let the user override the test.
  4260. else
  4261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4262. for as_dir in $PATH
  4263. do
  4264. IFS=$as_save_IFS
  4265. test -z "$as_dir" && as_dir=.
  4266. for ac_exec_ext in '' $ac_executable_extensions; do
  4267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4268. ac_cv_prog_AS="${ac_tool_prefix}as"
  4269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4270. break 2
  4271. fi
  4272. done
  4273. done
  4274. IFS=$as_save_IFS
  4275. fi
  4276. fi
  4277. AS=$ac_cv_prog_AS
  4278. if test -n "$AS"; then
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4280. $as_echo "$AS" >&6; }
  4281. else
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4283. $as_echo "no" >&6; }
  4284. fi
  4285. fi
  4286. if test -z "$ac_cv_prog_AS"; then
  4287. ac_ct_AS=$AS
  4288. # Extract the first word of "as", so it can be a program name with args.
  4289. set dummy as; ac_word=$2
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4291. $as_echo_n "checking for $ac_word... " >&6; }
  4292. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. if test -n "$ac_ct_AS"; then
  4296. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4297. else
  4298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4299. for as_dir in $PATH
  4300. do
  4301. IFS=$as_save_IFS
  4302. test -z "$as_dir" && as_dir=.
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4305. ac_cv_prog_ac_ct_AS="as"
  4306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4307. break 2
  4308. fi
  4309. done
  4310. done
  4311. IFS=$as_save_IFS
  4312. fi
  4313. fi
  4314. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4315. if test -n "$ac_ct_AS"; then
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4317. $as_echo "$ac_ct_AS" >&6; }
  4318. else
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4320. $as_echo "no" >&6; }
  4321. fi
  4322. if test "x$ac_ct_AS" = x; then
  4323. AS="false"
  4324. else
  4325. case $cross_compiling:$ac_tool_warned in
  4326. yes:)
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4329. ac_tool_warned=yes ;;
  4330. esac
  4331. AS=$ac_ct_AS
  4332. fi
  4333. else
  4334. AS="$ac_cv_prog_AS"
  4335. fi
  4336. if test -n "$ac_tool_prefix"; then
  4337. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4338. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4340. $as_echo_n "checking for $ac_word... " >&6; }
  4341. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4342. $as_echo_n "(cached) " >&6
  4343. else
  4344. if test -n "$DLLTOOL"; then
  4345. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4346. else
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH
  4349. do
  4350. IFS=$as_save_IFS
  4351. test -z "$as_dir" && as_dir=.
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4354. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4356. break 2
  4357. fi
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. fi
  4362. fi
  4363. DLLTOOL=$ac_cv_prog_DLLTOOL
  4364. if test -n "$DLLTOOL"; then
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4366. $as_echo "$DLLTOOL" >&6; }
  4367. else
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4369. $as_echo "no" >&6; }
  4370. fi
  4371. fi
  4372. if test -z "$ac_cv_prog_DLLTOOL"; then
  4373. ac_ct_DLLTOOL=$DLLTOOL
  4374. # Extract the first word of "dlltool", so it can be a program name with args.
  4375. set dummy dlltool; ac_word=$2
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4377. $as_echo_n "checking for $ac_word... " >&6; }
  4378. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4379. $as_echo_n "(cached) " >&6
  4380. else
  4381. if test -n "$ac_ct_DLLTOOL"; then
  4382. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4383. else
  4384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4385. for as_dir in $PATH
  4386. do
  4387. IFS=$as_save_IFS
  4388. test -z "$as_dir" && as_dir=.
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4391. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4393. break 2
  4394. fi
  4395. done
  4396. done
  4397. IFS=$as_save_IFS
  4398. fi
  4399. fi
  4400. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4401. if test -n "$ac_ct_DLLTOOL"; then
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4403. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4404. else
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4406. $as_echo "no" >&6; }
  4407. fi
  4408. if test "x$ac_ct_DLLTOOL" = x; then
  4409. DLLTOOL="false"
  4410. else
  4411. case $cross_compiling:$ac_tool_warned in
  4412. yes:)
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4415. ac_tool_warned=yes ;;
  4416. esac
  4417. DLLTOOL=$ac_ct_DLLTOOL
  4418. fi
  4419. else
  4420. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4421. fi
  4422. if test -n "$ac_tool_prefix"; then
  4423. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4424. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4426. $as_echo_n "checking for $ac_word... " >&6; }
  4427. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. if test -n "$OBJDUMP"; then
  4431. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4432. else
  4433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4434. for as_dir in $PATH
  4435. do
  4436. IFS=$as_save_IFS
  4437. test -z "$as_dir" && as_dir=.
  4438. for ac_exec_ext in '' $ac_executable_extensions; do
  4439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4440. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4442. break 2
  4443. fi
  4444. done
  4445. done
  4446. IFS=$as_save_IFS
  4447. fi
  4448. fi
  4449. OBJDUMP=$ac_cv_prog_OBJDUMP
  4450. if test -n "$OBJDUMP"; then
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4452. $as_echo "$OBJDUMP" >&6; }
  4453. else
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4455. $as_echo "no" >&6; }
  4456. fi
  4457. fi
  4458. if test -z "$ac_cv_prog_OBJDUMP"; then
  4459. ac_ct_OBJDUMP=$OBJDUMP
  4460. # Extract the first word of "objdump", so it can be a program name with args.
  4461. set dummy objdump; ac_word=$2
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4463. $as_echo_n "checking for $ac_word... " >&6; }
  4464. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. if test -n "$ac_ct_OBJDUMP"; then
  4468. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4469. else
  4470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4471. for as_dir in $PATH
  4472. do
  4473. IFS=$as_save_IFS
  4474. test -z "$as_dir" && as_dir=.
  4475. for ac_exec_ext in '' $ac_executable_extensions; do
  4476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4477. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4479. break 2
  4480. fi
  4481. done
  4482. done
  4483. IFS=$as_save_IFS
  4484. fi
  4485. fi
  4486. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4487. if test -n "$ac_ct_OBJDUMP"; then
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4489. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4490. else
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4492. $as_echo "no" >&6; }
  4493. fi
  4494. if test "x$ac_ct_OBJDUMP" = x; then
  4495. OBJDUMP="false"
  4496. else
  4497. case $cross_compiling:$ac_tool_warned in
  4498. yes:)
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4501. ac_tool_warned=yes ;;
  4502. esac
  4503. OBJDUMP=$ac_ct_OBJDUMP
  4504. fi
  4505. else
  4506. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4507. fi
  4508. ;;
  4509. esac
  4510. test -z "$AS" && AS=as
  4511. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4512. test -z "$OBJDUMP" && OBJDUMP=objdump
  4513. case `pwd` in
  4514. *\ * | *\ *)
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4516. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4517. esac
  4518. macro_version='2.4.2'
  4519. macro_revision='1.3337'
  4520. ltmain="$ac_aux_dir/ltmain.sh"
  4521. # Backslashify metacharacters that are still active within
  4522. # double-quoted strings.
  4523. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4524. # Same as above, but do not quote variable references.
  4525. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4526. # Sed substitution to delay expansion of an escaped shell variable in a
  4527. # double_quote_subst'ed string.
  4528. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4529. # Sed substitution to delay expansion of an escaped single quote.
  4530. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4531. # Sed substitution to avoid accidental globbing in evaled expressions
  4532. no_glob_subst='s/\*/\\\*/g'
  4533. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4534. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4535. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4537. $as_echo_n "checking how to print strings... " >&6; }
  4538. # Test print first, because it will be a builtin if present.
  4539. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4540. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4541. ECHO='print -r --'
  4542. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4543. ECHO='printf %s\n'
  4544. else
  4545. # Use this function as a fallback that always works.
  4546. func_fallback_echo ()
  4547. {
  4548. eval 'cat <<_LTECHO_EOF
  4549. $1
  4550. _LTECHO_EOF'
  4551. }
  4552. ECHO='func_fallback_echo'
  4553. fi
  4554. # func_echo_all arg...
  4555. # Invoke $ECHO with all args, space-separated.
  4556. func_echo_all ()
  4557. {
  4558. $ECHO ""
  4559. }
  4560. case "$ECHO" in
  4561. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4562. $as_echo "printf" >&6; } ;;
  4563. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4564. $as_echo "print -r" >&6; } ;;
  4565. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4566. $as_echo "cat" >&6; } ;;
  4567. esac
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4569. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4570. if ${ac_cv_path_SED+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4574. for ac_i in 1 2 3 4 5 6 7; do
  4575. ac_script="$ac_script$as_nl$ac_script"
  4576. done
  4577. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4578. { ac_script=; unset ac_script;}
  4579. if test -z "$SED"; then
  4580. ac_path_SED_found=false
  4581. # Loop through the user's path and test for each of PROGNAME-LIST
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_prog in sed gsed; do
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4590. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4591. # Check for GNU ac_path_SED and select it if it is found.
  4592. # Check for GNU $ac_path_SED
  4593. case `"$ac_path_SED" --version 2>&1` in
  4594. *GNU*)
  4595. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4596. *)
  4597. ac_count=0
  4598. $as_echo_n 0123456789 >"conftest.in"
  4599. while :
  4600. do
  4601. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4602. mv "conftest.tmp" "conftest.in"
  4603. cp "conftest.in" "conftest.nl"
  4604. $as_echo '' >> "conftest.nl"
  4605. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4606. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4607. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4608. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4609. # Best one so far, save it but keep looking for a better one
  4610. ac_cv_path_SED="$ac_path_SED"
  4611. ac_path_SED_max=$ac_count
  4612. fi
  4613. # 10*(2^10) chars as input seems more than enough
  4614. test $ac_count -gt 10 && break
  4615. done
  4616. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4617. esac
  4618. $ac_path_SED_found && break 3
  4619. done
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. if test -z "$ac_cv_path_SED"; then
  4624. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4625. fi
  4626. else
  4627. ac_cv_path_SED=$SED
  4628. fi
  4629. fi
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4631. $as_echo "$ac_cv_path_SED" >&6; }
  4632. SED="$ac_cv_path_SED"
  4633. rm -f conftest.sed
  4634. test -z "$SED" && SED=sed
  4635. Xsed="$SED -e 1s/^X//"
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4637. $as_echo_n "checking for fgrep... " >&6; }
  4638. if ${ac_cv_path_FGREP+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4642. then ac_cv_path_FGREP="$GREP -F"
  4643. else
  4644. if test -z "$FGREP"; then
  4645. ac_path_FGREP_found=false
  4646. # Loop through the user's path and test for each of PROGNAME-LIST
  4647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4648. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4649. do
  4650. IFS=$as_save_IFS
  4651. test -z "$as_dir" && as_dir=.
  4652. for ac_prog in fgrep; do
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4655. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4656. # Check for GNU ac_path_FGREP and select it if it is found.
  4657. # Check for GNU $ac_path_FGREP
  4658. case `"$ac_path_FGREP" --version 2>&1` in
  4659. *GNU*)
  4660. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4661. *)
  4662. ac_count=0
  4663. $as_echo_n 0123456789 >"conftest.in"
  4664. while :
  4665. do
  4666. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4667. mv "conftest.tmp" "conftest.in"
  4668. cp "conftest.in" "conftest.nl"
  4669. $as_echo 'FGREP' >> "conftest.nl"
  4670. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4671. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4672. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4673. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4674. # Best one so far, save it but keep looking for a better one
  4675. ac_cv_path_FGREP="$ac_path_FGREP"
  4676. ac_path_FGREP_max=$ac_count
  4677. fi
  4678. # 10*(2^10) chars as input seems more than enough
  4679. test $ac_count -gt 10 && break
  4680. done
  4681. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4682. esac
  4683. $ac_path_FGREP_found && break 3
  4684. done
  4685. done
  4686. done
  4687. IFS=$as_save_IFS
  4688. if test -z "$ac_cv_path_FGREP"; then
  4689. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4690. fi
  4691. else
  4692. ac_cv_path_FGREP=$FGREP
  4693. fi
  4694. fi
  4695. fi
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4697. $as_echo "$ac_cv_path_FGREP" >&6; }
  4698. FGREP="$ac_cv_path_FGREP"
  4699. test -z "$GREP" && GREP=grep
  4700. # Check whether --with-gnu-ld was given.
  4701. if test "${with_gnu_ld+set}" = set; then :
  4702. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4703. else
  4704. with_gnu_ld=no
  4705. fi
  4706. ac_prog=ld
  4707. if test "$GCC" = yes; then
  4708. # Check if gcc -print-prog-name=ld gives a path.
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4710. $as_echo_n "checking for ld used by $CC... " >&6; }
  4711. case $host in
  4712. *-*-mingw*)
  4713. # gcc leaves a trailing carriage return which upsets mingw
  4714. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4715. *)
  4716. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4717. esac
  4718. case $ac_prog in
  4719. # Accept absolute paths.
  4720. [\\/]* | ?:[\\/]*)
  4721. re_direlt='/[^/][^/]*/\.\./'
  4722. # Canonicalize the pathname of ld
  4723. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4724. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4725. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4726. done
  4727. test -z "$LD" && LD="$ac_prog"
  4728. ;;
  4729. "")
  4730. # If it fails, then pretend we aren't using GCC.
  4731. ac_prog=ld
  4732. ;;
  4733. *)
  4734. # If it is relative, then search for the first ld in PATH.
  4735. with_gnu_ld=unknown
  4736. ;;
  4737. esac
  4738. elif test "$with_gnu_ld" = yes; then
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4740. $as_echo_n "checking for GNU ld... " >&6; }
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4743. $as_echo_n "checking for non-GNU ld... " >&6; }
  4744. fi
  4745. if ${lt_cv_path_LD+:} false; then :
  4746. $as_echo_n "(cached) " >&6
  4747. else
  4748. if test -z "$LD"; then
  4749. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4750. for ac_dir in $PATH; do
  4751. IFS="$lt_save_ifs"
  4752. test -z "$ac_dir" && ac_dir=.
  4753. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4754. lt_cv_path_LD="$ac_dir/$ac_prog"
  4755. # Check to see if the program is GNU ld. I'd rather use --version,
  4756. # but apparently some variants of GNU ld only accept -v.
  4757. # Break only if it was the GNU/non-GNU ld that we prefer.
  4758. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4759. *GNU* | *'with BFD'*)
  4760. test "$with_gnu_ld" != no && break
  4761. ;;
  4762. *)
  4763. test "$with_gnu_ld" != yes && break
  4764. ;;
  4765. esac
  4766. fi
  4767. done
  4768. IFS="$lt_save_ifs"
  4769. else
  4770. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4771. fi
  4772. fi
  4773. LD="$lt_cv_path_LD"
  4774. if test -n "$LD"; then
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4776. $as_echo "$LD" >&6; }
  4777. else
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4779. $as_echo "no" >&6; }
  4780. fi
  4781. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4783. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4784. if ${lt_cv_prog_gnu_ld+:} false; then :
  4785. $as_echo_n "(cached) " >&6
  4786. else
  4787. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4788. case `$LD -v 2>&1 </dev/null` in
  4789. *GNU* | *'with BFD'*)
  4790. lt_cv_prog_gnu_ld=yes
  4791. ;;
  4792. *)
  4793. lt_cv_prog_gnu_ld=no
  4794. ;;
  4795. esac
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4798. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4799. with_gnu_ld=$lt_cv_prog_gnu_ld
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4801. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4802. if ${lt_cv_path_NM+:} false; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. if test -n "$NM"; then
  4806. # Let the user override the test.
  4807. lt_cv_path_NM="$NM"
  4808. else
  4809. lt_nm_to_check="${ac_tool_prefix}nm"
  4810. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4811. lt_nm_to_check="$lt_nm_to_check nm"
  4812. fi
  4813. for lt_tmp_nm in $lt_nm_to_check; do
  4814. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4815. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4816. IFS="$lt_save_ifs"
  4817. test -z "$ac_dir" && ac_dir=.
  4818. tmp_nm="$ac_dir/$lt_tmp_nm"
  4819. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4820. # Check to see if the nm accepts a BSD-compat flag.
  4821. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4822. # nm: unknown option "B" ignored
  4823. # Tru64's nm complains that /dev/null is an invalid object file
  4824. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4825. */dev/null* | *'Invalid file or object type'*)
  4826. lt_cv_path_NM="$tmp_nm -B"
  4827. break
  4828. ;;
  4829. *)
  4830. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4831. */dev/null*)
  4832. lt_cv_path_NM="$tmp_nm -p"
  4833. break
  4834. ;;
  4835. *)
  4836. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4837. continue # so that we can try to find one that supports BSD flags
  4838. ;;
  4839. esac
  4840. ;;
  4841. esac
  4842. fi
  4843. done
  4844. IFS="$lt_save_ifs"
  4845. done
  4846. : ${lt_cv_path_NM=no}
  4847. fi
  4848. fi
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4850. $as_echo "$lt_cv_path_NM" >&6; }
  4851. if test "$lt_cv_path_NM" != "no"; then
  4852. NM="$lt_cv_path_NM"
  4853. else
  4854. # Didn't find any BSD compatible name lister, look for dumpbin.
  4855. if test -n "$DUMPBIN"; then :
  4856. # Let the user override the test.
  4857. else
  4858. if test -n "$ac_tool_prefix"; then
  4859. for ac_prog in dumpbin "link -dump"
  4860. do
  4861. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4862. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4864. $as_echo_n "checking for $ac_word... " >&6; }
  4865. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. if test -n "$DUMPBIN"; then
  4869. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4870. else
  4871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4872. for as_dir in $PATH
  4873. do
  4874. IFS=$as_save_IFS
  4875. test -z "$as_dir" && as_dir=.
  4876. for ac_exec_ext in '' $ac_executable_extensions; do
  4877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4878. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4880. break 2
  4881. fi
  4882. done
  4883. done
  4884. IFS=$as_save_IFS
  4885. fi
  4886. fi
  4887. DUMPBIN=$ac_cv_prog_DUMPBIN
  4888. if test -n "$DUMPBIN"; then
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4890. $as_echo "$DUMPBIN" >&6; }
  4891. else
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4893. $as_echo "no" >&6; }
  4894. fi
  4895. test -n "$DUMPBIN" && break
  4896. done
  4897. fi
  4898. if test -z "$DUMPBIN"; then
  4899. ac_ct_DUMPBIN=$DUMPBIN
  4900. for ac_prog in dumpbin "link -dump"
  4901. do
  4902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4903. set dummy $ac_prog; ac_word=$2
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4905. $as_echo_n "checking for $ac_word... " >&6; }
  4906. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. if test -n "$ac_ct_DUMPBIN"; then
  4910. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4911. else
  4912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4913. for as_dir in $PATH
  4914. do
  4915. IFS=$as_save_IFS
  4916. test -z "$as_dir" && as_dir=.
  4917. for ac_exec_ext in '' $ac_executable_extensions; do
  4918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4919. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4921. break 2
  4922. fi
  4923. done
  4924. done
  4925. IFS=$as_save_IFS
  4926. fi
  4927. fi
  4928. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4929. if test -n "$ac_ct_DUMPBIN"; then
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4931. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4932. else
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4934. $as_echo "no" >&6; }
  4935. fi
  4936. test -n "$ac_ct_DUMPBIN" && break
  4937. done
  4938. if test "x$ac_ct_DUMPBIN" = x; then
  4939. DUMPBIN=":"
  4940. else
  4941. case $cross_compiling:$ac_tool_warned in
  4942. yes:)
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4945. ac_tool_warned=yes ;;
  4946. esac
  4947. DUMPBIN=$ac_ct_DUMPBIN
  4948. fi
  4949. fi
  4950. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4951. *COFF*)
  4952. DUMPBIN="$DUMPBIN -symbols"
  4953. ;;
  4954. *)
  4955. DUMPBIN=:
  4956. ;;
  4957. esac
  4958. fi
  4959. if test "$DUMPBIN" != ":"; then
  4960. NM="$DUMPBIN"
  4961. fi
  4962. fi
  4963. test -z "$NM" && NM=nm
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4965. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4966. if ${lt_cv_nm_interface+:} false; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. lt_cv_nm_interface="BSD nm"
  4970. echo "int some_variable = 0;" > conftest.$ac_ext
  4971. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4972. (eval "$ac_compile" 2>conftest.err)
  4973. cat conftest.err >&5
  4974. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4975. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4976. cat conftest.err >&5
  4977. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4978. cat conftest.out >&5
  4979. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4980. lt_cv_nm_interface="MS dumpbin"
  4981. fi
  4982. rm -f conftest*
  4983. fi
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4985. $as_echo "$lt_cv_nm_interface" >&6; }
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4987. $as_echo_n "checking whether ln -s works... " >&6; }
  4988. LN_S=$as_ln_s
  4989. if test "$LN_S" = "ln -s"; then
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4991. $as_echo "yes" >&6; }
  4992. else
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4994. $as_echo "no, using $LN_S" >&6; }
  4995. fi
  4996. # find the maximum length of command line arguments
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4998. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4999. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. i=0
  5003. teststring="ABCD"
  5004. case $build_os in
  5005. msdosdjgpp*)
  5006. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5007. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5008. # during glob expansion). Even if it were fixed, the result of this
  5009. # check would be larger than it should be.
  5010. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5011. ;;
  5012. gnu*)
  5013. # Under GNU Hurd, this test is not required because there is
  5014. # no limit to the length of command line arguments.
  5015. # Libtool will interpret -1 as no limit whatsoever
  5016. lt_cv_sys_max_cmd_len=-1;
  5017. ;;
  5018. cygwin* | mingw* | cegcc*)
  5019. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5020. # about 5 minutes as the teststring grows exponentially.
  5021. # Worse, since 9x/ME are not pre-emptively multitasking,
  5022. # you end up with a "frozen" computer, even though with patience
  5023. # the test eventually succeeds (with a max line length of 256k).
  5024. # Instead, let's just punt: use the minimum linelength reported by
  5025. # all of the supported platforms: 8192 (on NT/2K/XP).
  5026. lt_cv_sys_max_cmd_len=8192;
  5027. ;;
  5028. mint*)
  5029. # On MiNT this can take a long time and run out of memory.
  5030. lt_cv_sys_max_cmd_len=8192;
  5031. ;;
  5032. amigaos*)
  5033. # On AmigaOS with pdksh, this test takes hours, literally.
  5034. # So we just punt and use a minimum line length of 8192.
  5035. lt_cv_sys_max_cmd_len=8192;
  5036. ;;
  5037. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5038. # This has been around since 386BSD, at least. Likely further.
  5039. if test -x /sbin/sysctl; then
  5040. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5041. elif test -x /usr/sbin/sysctl; then
  5042. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5043. else
  5044. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5045. fi
  5046. # And add a safety zone
  5047. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5048. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5049. ;;
  5050. interix*)
  5051. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5052. lt_cv_sys_max_cmd_len=196608
  5053. ;;
  5054. os2*)
  5055. # The test takes a long time on OS/2.
  5056. lt_cv_sys_max_cmd_len=8192
  5057. ;;
  5058. osf*)
  5059. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5060. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5061. # nice to cause kernel panics so lets avoid the loop below.
  5062. # First set a reasonable default.
  5063. lt_cv_sys_max_cmd_len=16384
  5064. #
  5065. if test -x /sbin/sysconfig; then
  5066. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5067. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5068. esac
  5069. fi
  5070. ;;
  5071. sco3.2v5*)
  5072. lt_cv_sys_max_cmd_len=102400
  5073. ;;
  5074. sysv5* | sco5v6* | sysv4.2uw2*)
  5075. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5076. if test -n "$kargmax"; then
  5077. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5078. else
  5079. lt_cv_sys_max_cmd_len=32768
  5080. fi
  5081. ;;
  5082. *)
  5083. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5084. if test -n "$lt_cv_sys_max_cmd_len"; then
  5085. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5086. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5087. else
  5088. # Make teststring a little bigger before we do anything with it.
  5089. # a 1K string should be a reasonable start.
  5090. for i in 1 2 3 4 5 6 7 8 ; do
  5091. teststring=$teststring$teststring
  5092. done
  5093. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5094. # If test is not a shell built-in, we'll probably end up computing a
  5095. # maximum length that is only half of the actual maximum length, but
  5096. # we can't tell.
  5097. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5098. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5099. test $i != 17 # 1/2 MB should be enough
  5100. do
  5101. i=`expr $i + 1`
  5102. teststring=$teststring$teststring
  5103. done
  5104. # Only check the string length outside the loop.
  5105. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5106. teststring=
  5107. # Add a significant safety factor because C++ compilers can tack on
  5108. # massive amounts of additional arguments before passing them to the
  5109. # linker. It appears as though 1/2 is a usable value.
  5110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5111. fi
  5112. ;;
  5113. esac
  5114. fi
  5115. if test -n $lt_cv_sys_max_cmd_len ; then
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5117. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5118. else
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5120. $as_echo "none" >&6; }
  5121. fi
  5122. max_cmd_len=$lt_cv_sys_max_cmd_len
  5123. : ${CP="cp -f"}
  5124. : ${MV="mv -f"}
  5125. : ${RM="rm -f"}
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5127. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5128. # Try some XSI features
  5129. xsi_shell=no
  5130. ( _lt_dummy="a/b/c"
  5131. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5132. = c,a/b,b/c, \
  5133. && eval 'test $(( 1 + 1 )) -eq 2 \
  5134. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5135. && xsi_shell=yes
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5137. $as_echo "$xsi_shell" >&6; }
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5139. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5140. lt_shell_append=no
  5141. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5142. >/dev/null 2>&1 \
  5143. && lt_shell_append=yes
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5145. $as_echo "$lt_shell_append" >&6; }
  5146. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5147. lt_unset=unset
  5148. else
  5149. lt_unset=false
  5150. fi
  5151. # test EBCDIC or ASCII
  5152. case `echo X|tr X '\101'` in
  5153. A) # ASCII based system
  5154. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5155. lt_SP2NL='tr \040 \012'
  5156. lt_NL2SP='tr \015\012 \040\040'
  5157. ;;
  5158. *) # EBCDIC based system
  5159. lt_SP2NL='tr \100 \n'
  5160. lt_NL2SP='tr \r\n \100\100'
  5161. ;;
  5162. esac
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5164. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5165. if ${lt_cv_to_host_file_cmd+:} false; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. case $host in
  5169. *-*-mingw* )
  5170. case $build in
  5171. *-*-mingw* ) # actually msys
  5172. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5173. ;;
  5174. *-*-cygwin* )
  5175. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5176. ;;
  5177. * ) # otherwise, assume *nix
  5178. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5179. ;;
  5180. esac
  5181. ;;
  5182. *-*-cygwin* )
  5183. case $build in
  5184. *-*-mingw* ) # actually msys
  5185. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5186. ;;
  5187. *-*-cygwin* )
  5188. lt_cv_to_host_file_cmd=func_convert_file_noop
  5189. ;;
  5190. * ) # otherwise, assume *nix
  5191. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5192. ;;
  5193. esac
  5194. ;;
  5195. * ) # unhandled hosts (and "normal" native builds)
  5196. lt_cv_to_host_file_cmd=func_convert_file_noop
  5197. ;;
  5198. esac
  5199. fi
  5200. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5202. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5204. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5205. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. #assume ordinary cross tools, or native build.
  5209. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5210. case $host in
  5211. *-*-mingw* )
  5212. case $build in
  5213. *-*-mingw* ) # actually msys
  5214. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5215. ;;
  5216. esac
  5217. ;;
  5218. esac
  5219. fi
  5220. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5222. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5224. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5225. if ${lt_cv_ld_reload_flag+:} false; then :
  5226. $as_echo_n "(cached) " >&6
  5227. else
  5228. lt_cv_ld_reload_flag='-r'
  5229. fi
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5231. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5232. reload_flag=$lt_cv_ld_reload_flag
  5233. case $reload_flag in
  5234. "" | " "*) ;;
  5235. *) reload_flag=" $reload_flag" ;;
  5236. esac
  5237. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5238. case $host_os in
  5239. cygwin* | mingw* | pw32* | cegcc*)
  5240. if test "$GCC" != yes; then
  5241. reload_cmds=false
  5242. fi
  5243. ;;
  5244. darwin*)
  5245. if test "$GCC" = yes; then
  5246. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5247. else
  5248. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5249. fi
  5250. ;;
  5251. esac
  5252. if test -n "$ac_tool_prefix"; then
  5253. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5254. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5256. $as_echo_n "checking for $ac_word... " >&6; }
  5257. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. if test -n "$OBJDUMP"; then
  5261. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5262. else
  5263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5264. for as_dir in $PATH
  5265. do
  5266. IFS=$as_save_IFS
  5267. test -z "$as_dir" && as_dir=.
  5268. for ac_exec_ext in '' $ac_executable_extensions; do
  5269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5270. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5272. break 2
  5273. fi
  5274. done
  5275. done
  5276. IFS=$as_save_IFS
  5277. fi
  5278. fi
  5279. OBJDUMP=$ac_cv_prog_OBJDUMP
  5280. if test -n "$OBJDUMP"; then
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5282. $as_echo "$OBJDUMP" >&6; }
  5283. else
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5285. $as_echo "no" >&6; }
  5286. fi
  5287. fi
  5288. if test -z "$ac_cv_prog_OBJDUMP"; then
  5289. ac_ct_OBJDUMP=$OBJDUMP
  5290. # Extract the first word of "objdump", so it can be a program name with args.
  5291. set dummy objdump; ac_word=$2
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5293. $as_echo_n "checking for $ac_word... " >&6; }
  5294. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. if test -n "$ac_ct_OBJDUMP"; then
  5298. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5299. else
  5300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5301. for as_dir in $PATH
  5302. do
  5303. IFS=$as_save_IFS
  5304. test -z "$as_dir" && as_dir=.
  5305. for ac_exec_ext in '' $ac_executable_extensions; do
  5306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5307. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5309. break 2
  5310. fi
  5311. done
  5312. done
  5313. IFS=$as_save_IFS
  5314. fi
  5315. fi
  5316. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5317. if test -n "$ac_ct_OBJDUMP"; then
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5319. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5320. else
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5322. $as_echo "no" >&6; }
  5323. fi
  5324. if test "x$ac_ct_OBJDUMP" = x; then
  5325. OBJDUMP="false"
  5326. else
  5327. case $cross_compiling:$ac_tool_warned in
  5328. yes:)
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5331. ac_tool_warned=yes ;;
  5332. esac
  5333. OBJDUMP=$ac_ct_OBJDUMP
  5334. fi
  5335. else
  5336. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5337. fi
  5338. test -z "$OBJDUMP" && OBJDUMP=objdump
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5340. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5341. if ${lt_cv_deplibs_check_method+:} false; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5345. lt_cv_file_magic_test_file=
  5346. lt_cv_deplibs_check_method='unknown'
  5347. # Need to set the preceding variable on all platforms that support
  5348. # interlibrary dependencies.
  5349. # 'none' -- dependencies not supported.
  5350. # `unknown' -- same as none, but documents that we really don't know.
  5351. # 'pass_all' -- all dependencies passed with no checks.
  5352. # 'test_compile' -- check by making test program.
  5353. # 'file_magic [[regex]]' -- check by looking for files in library path
  5354. # which responds to the $file_magic_cmd with a given extended regex.
  5355. # If you have `file' or equivalent on your system and you're not sure
  5356. # whether `pass_all' will *always* work, you probably want this one.
  5357. case $host_os in
  5358. aix[4-9]*)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. beos*)
  5362. lt_cv_deplibs_check_method=pass_all
  5363. ;;
  5364. bsdi[45]*)
  5365. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5366. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5367. lt_cv_file_magic_test_file=/shlib/libc.so
  5368. ;;
  5369. cygwin*)
  5370. # func_win32_libid is a shell function defined in ltmain.sh
  5371. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5372. lt_cv_file_magic_cmd='func_win32_libid'
  5373. ;;
  5374. mingw* | pw32*)
  5375. # Base MSYS/MinGW do not provide the 'file' command needed by
  5376. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5377. # unless we find 'file', for example because we are cross-compiling.
  5378. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5379. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5380. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5381. lt_cv_file_magic_cmd='func_win32_libid'
  5382. else
  5383. # Keep this pattern in sync with the one in func_win32_libid.
  5384. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5385. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5386. fi
  5387. ;;
  5388. cegcc*)
  5389. # use the weaker test based on 'objdump'. See mingw*.
  5390. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5391. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5392. ;;
  5393. darwin* | rhapsody*)
  5394. lt_cv_deplibs_check_method=pass_all
  5395. ;;
  5396. freebsd* | dragonfly*)
  5397. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5398. case $host_cpu in
  5399. i*86 )
  5400. # Not sure whether the presence of OpenBSD here was a mistake.
  5401. # Let's accept both of them until this is cleared up.
  5402. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5403. lt_cv_file_magic_cmd=/usr/bin/file
  5404. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5405. ;;
  5406. esac
  5407. else
  5408. lt_cv_deplibs_check_method=pass_all
  5409. fi
  5410. ;;
  5411. gnu*)
  5412. lt_cv_deplibs_check_method=pass_all
  5413. ;;
  5414. haiku*)
  5415. lt_cv_deplibs_check_method=pass_all
  5416. ;;
  5417. hpux10.20* | hpux11*)
  5418. lt_cv_file_magic_cmd=/usr/bin/file
  5419. case $host_cpu in
  5420. ia64*)
  5421. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5422. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5423. ;;
  5424. hppa*64*)
  5425. 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]'
  5426. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5427. ;;
  5428. *)
  5429. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5430. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5431. ;;
  5432. esac
  5433. ;;
  5434. interix[3-9]*)
  5435. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5436. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5437. ;;
  5438. irix5* | irix6* | nonstopux*)
  5439. case $LD in
  5440. *-32|*"-32 ") libmagic=32-bit;;
  5441. *-n32|*"-n32 ") libmagic=N32;;
  5442. *-64|*"-64 ") libmagic=64-bit;;
  5443. *) libmagic=never-match;;
  5444. esac
  5445. lt_cv_deplibs_check_method=pass_all
  5446. ;;
  5447. # This must be glibc/ELF.
  5448. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5449. lt_cv_deplibs_check_method=pass_all
  5450. ;;
  5451. netbsd*)
  5452. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5454. else
  5455. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5456. fi
  5457. ;;
  5458. newos6*)
  5459. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5460. lt_cv_file_magic_cmd=/usr/bin/file
  5461. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5462. ;;
  5463. *nto* | *qnx*)
  5464. lt_cv_deplibs_check_method=pass_all
  5465. ;;
  5466. openbsd*)
  5467. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5469. else
  5470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5471. fi
  5472. ;;
  5473. osf3* | osf4* | osf5*)
  5474. lt_cv_deplibs_check_method=pass_all
  5475. ;;
  5476. rdos*)
  5477. lt_cv_deplibs_check_method=pass_all
  5478. ;;
  5479. solaris*)
  5480. lt_cv_deplibs_check_method=pass_all
  5481. ;;
  5482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5483. lt_cv_deplibs_check_method=pass_all
  5484. ;;
  5485. sysv4 | sysv4.3*)
  5486. case $host_vendor in
  5487. motorola)
  5488. 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]'
  5489. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5490. ;;
  5491. ncr)
  5492. lt_cv_deplibs_check_method=pass_all
  5493. ;;
  5494. sequent)
  5495. lt_cv_file_magic_cmd='/bin/file'
  5496. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5497. ;;
  5498. sni)
  5499. lt_cv_file_magic_cmd='/bin/file'
  5500. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5501. lt_cv_file_magic_test_file=/lib/libc.so
  5502. ;;
  5503. siemens)
  5504. lt_cv_deplibs_check_method=pass_all
  5505. ;;
  5506. pc)
  5507. lt_cv_deplibs_check_method=pass_all
  5508. ;;
  5509. esac
  5510. ;;
  5511. tpf*)
  5512. lt_cv_deplibs_check_method=pass_all
  5513. ;;
  5514. esac
  5515. fi
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5517. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5518. file_magic_glob=
  5519. want_nocaseglob=no
  5520. if test "$build" = "$host"; then
  5521. case $host_os in
  5522. mingw* | pw32*)
  5523. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5524. want_nocaseglob=yes
  5525. else
  5526. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5527. fi
  5528. ;;
  5529. esac
  5530. fi
  5531. file_magic_cmd=$lt_cv_file_magic_cmd
  5532. deplibs_check_method=$lt_cv_deplibs_check_method
  5533. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5534. if test -n "$ac_tool_prefix"; then
  5535. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5536. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$DLLTOOL"; then
  5543. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5544. else
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for ac_exec_ext in '' $ac_executable_extensions; do
  5551. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5552. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5554. break 2
  5555. fi
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. fi
  5560. fi
  5561. DLLTOOL=$ac_cv_prog_DLLTOOL
  5562. if test -n "$DLLTOOL"; then
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5564. $as_echo "$DLLTOOL" >&6; }
  5565. else
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. fi
  5570. if test -z "$ac_cv_prog_DLLTOOL"; then
  5571. ac_ct_DLLTOOL=$DLLTOOL
  5572. # Extract the first word of "dlltool", so it can be a program name with args.
  5573. set dummy dlltool; ac_word=$2
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. $as_echo_n "checking for $ac_word... " >&6; }
  5576. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$ac_ct_DLLTOOL"; then
  5580. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5589. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. IFS=$as_save_IFS
  5596. fi
  5597. fi
  5598. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5599. if test -n "$ac_ct_DLLTOOL"; then
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5601. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5602. else
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. if test "x$ac_ct_DLLTOOL" = x; then
  5607. DLLTOOL="false"
  5608. else
  5609. case $cross_compiling:$ac_tool_warned in
  5610. yes:)
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5613. ac_tool_warned=yes ;;
  5614. esac
  5615. DLLTOOL=$ac_ct_DLLTOOL
  5616. fi
  5617. else
  5618. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5619. fi
  5620. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5622. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5623. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5627. case $host_os in
  5628. cygwin* | mingw* | pw32* | cegcc*)
  5629. # two different shell functions defined in ltmain.sh
  5630. # decide which to use based on capabilities of $DLLTOOL
  5631. case `$DLLTOOL --help 2>&1` in
  5632. *--identify-strict*)
  5633. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5634. ;;
  5635. *)
  5636. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5637. ;;
  5638. esac
  5639. ;;
  5640. *)
  5641. # fallback: assume linklib IS sharedlib
  5642. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5643. ;;
  5644. esac
  5645. fi
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5647. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5648. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5649. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5650. if test -n "$ac_tool_prefix"; then
  5651. for ac_prog in ar
  5652. do
  5653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5656. $as_echo_n "checking for $ac_word... " >&6; }
  5657. if ${ac_cv_prog_AR+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. if test -n "$AR"; then
  5661. ac_cv_prog_AR="$AR" # Let the user override the test.
  5662. else
  5663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5664. for as_dir in $PATH
  5665. do
  5666. IFS=$as_save_IFS
  5667. test -z "$as_dir" && as_dir=.
  5668. for ac_exec_ext in '' $ac_executable_extensions; do
  5669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5670. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5672. break 2
  5673. fi
  5674. done
  5675. done
  5676. IFS=$as_save_IFS
  5677. fi
  5678. fi
  5679. AR=$ac_cv_prog_AR
  5680. if test -n "$AR"; then
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5682. $as_echo "$AR" >&6; }
  5683. else
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5685. $as_echo "no" >&6; }
  5686. fi
  5687. test -n "$AR" && break
  5688. done
  5689. fi
  5690. if test -z "$AR"; then
  5691. ac_ct_AR=$AR
  5692. for ac_prog in ar
  5693. do
  5694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5695. set dummy $ac_prog; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$ac_ct_AR"; then
  5702. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5711. ac_cv_prog_ac_ct_AR="$ac_prog"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5721. if test -n "$ac_ct_AR"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5723. $as_echo "$ac_ct_AR" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. test -n "$ac_ct_AR" && break
  5729. done
  5730. if test "x$ac_ct_AR" = x; then
  5731. AR="false"
  5732. else
  5733. case $cross_compiling:$ac_tool_warned in
  5734. yes:)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5737. ac_tool_warned=yes ;;
  5738. esac
  5739. AR=$ac_ct_AR
  5740. fi
  5741. fi
  5742. : ${AR=ar}
  5743. : ${AR_FLAGS=cru}
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5745. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5746. if ${lt_cv_ar_at_file+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. lt_cv_ar_at_file=no
  5750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5751. /* end confdefs.h. */
  5752. int
  5753. main ()
  5754. {
  5755. ;
  5756. return 0;
  5757. }
  5758. _ACEOF
  5759. if ac_fn_c_try_compile "$LINENO"; then :
  5760. echo conftest.$ac_objext > conftest.lst
  5761. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5762. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5763. (eval $lt_ar_try) 2>&5
  5764. ac_status=$?
  5765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5766. test $ac_status = 0; }
  5767. if test "$ac_status" -eq 0; then
  5768. # Ensure the archiver fails upon bogus file names.
  5769. rm -f conftest.$ac_objext libconftest.a
  5770. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5771. (eval $lt_ar_try) 2>&5
  5772. ac_status=$?
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5774. test $ac_status = 0; }
  5775. if test "$ac_status" -ne 0; then
  5776. lt_cv_ar_at_file=@
  5777. fi
  5778. fi
  5779. rm -f conftest.* libconftest.a
  5780. fi
  5781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5782. fi
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5784. $as_echo "$lt_cv_ar_at_file" >&6; }
  5785. if test "x$lt_cv_ar_at_file" = xno; then
  5786. archiver_list_spec=
  5787. else
  5788. archiver_list_spec=$lt_cv_ar_at_file
  5789. fi
  5790. if test -n "$ac_tool_prefix"; then
  5791. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5792. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_STRIP+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$STRIP"; then
  5799. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5808. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. STRIP=$ac_cv_prog_STRIP
  5818. if test -n "$STRIP"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5820. $as_echo "$STRIP" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. fi
  5826. if test -z "$ac_cv_prog_STRIP"; then
  5827. ac_ct_STRIP=$STRIP
  5828. # Extract the first word of "strip", so it can be a program name with args.
  5829. set dummy strip; ac_word=$2
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. $as_echo_n "checking for $ac_word... " >&6; }
  5832. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. if test -n "$ac_ct_STRIP"; then
  5836. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. test -z "$as_dir" && as_dir=.
  5843. for ac_exec_ext in '' $ac_executable_extensions; do
  5844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5845. ac_cv_prog_ac_ct_STRIP="strip"
  5846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5847. break 2
  5848. fi
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. fi
  5853. fi
  5854. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5855. if test -n "$ac_ct_STRIP"; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5857. $as_echo "$ac_ct_STRIP" >&6; }
  5858. else
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5860. $as_echo "no" >&6; }
  5861. fi
  5862. if test "x$ac_ct_STRIP" = x; then
  5863. STRIP=":"
  5864. else
  5865. case $cross_compiling:$ac_tool_warned in
  5866. yes:)
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5869. ac_tool_warned=yes ;;
  5870. esac
  5871. STRIP=$ac_ct_STRIP
  5872. fi
  5873. else
  5874. STRIP="$ac_cv_prog_STRIP"
  5875. fi
  5876. test -z "$STRIP" && STRIP=:
  5877. if test -n "$ac_tool_prefix"; then
  5878. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5879. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5881. $as_echo_n "checking for $ac_word... " >&6; }
  5882. if ${ac_cv_prog_RANLIB+:} false; then :
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. if test -n "$RANLIB"; then
  5886. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5887. else
  5888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5889. for as_dir in $PATH
  5890. do
  5891. IFS=$as_save_IFS
  5892. test -z "$as_dir" && as_dir=.
  5893. for ac_exec_ext in '' $ac_executable_extensions; do
  5894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5895. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5897. break 2
  5898. fi
  5899. done
  5900. done
  5901. IFS=$as_save_IFS
  5902. fi
  5903. fi
  5904. RANLIB=$ac_cv_prog_RANLIB
  5905. if test -n "$RANLIB"; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5907. $as_echo "$RANLIB" >&6; }
  5908. else
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5910. $as_echo "no" >&6; }
  5911. fi
  5912. fi
  5913. if test -z "$ac_cv_prog_RANLIB"; then
  5914. ac_ct_RANLIB=$RANLIB
  5915. # Extract the first word of "ranlib", so it can be a program name with args.
  5916. set dummy ranlib; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$ac_ct_RANLIB"; then
  5923. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5932. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5942. if test -n "$ac_ct_RANLIB"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5944. $as_echo "$ac_ct_RANLIB" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. if test "x$ac_ct_RANLIB" = x; then
  5950. RANLIB=":"
  5951. else
  5952. case $cross_compiling:$ac_tool_warned in
  5953. yes:)
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5956. ac_tool_warned=yes ;;
  5957. esac
  5958. RANLIB=$ac_ct_RANLIB
  5959. fi
  5960. else
  5961. RANLIB="$ac_cv_prog_RANLIB"
  5962. fi
  5963. test -z "$RANLIB" && RANLIB=:
  5964. # Determine commands to create old-style static archives.
  5965. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5966. old_postinstall_cmds='chmod 644 $oldlib'
  5967. old_postuninstall_cmds=
  5968. if test -n "$RANLIB"; then
  5969. case $host_os in
  5970. openbsd*)
  5971. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5972. ;;
  5973. *)
  5974. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5975. ;;
  5976. esac
  5977. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5978. fi
  5979. case $host_os in
  5980. darwin*)
  5981. lock_old_archive_extraction=yes ;;
  5982. *)
  5983. lock_old_archive_extraction=no ;;
  5984. esac
  5985. for ac_prog in gawk mawk nawk awk
  5986. do
  5987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5988. set dummy $ac_prog; ac_word=$2
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5990. $as_echo_n "checking for $ac_word... " >&6; }
  5991. if ${ac_cv_prog_AWK+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. if test -n "$AWK"; then
  5995. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5996. else
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6004. ac_cv_prog_AWK="$ac_prog"
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. AWK=$ac_cv_prog_AWK
  6014. if test -n "$AWK"; then
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6016. $as_echo "$AWK" >&6; }
  6017. else
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. $as_echo "no" >&6; }
  6020. fi
  6021. test -n "$AWK" && break
  6022. done
  6023. # If no C compiler was specified, use CC.
  6024. LTCC=${LTCC-"$CC"}
  6025. # If no C compiler flags were specified, use CFLAGS.
  6026. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6027. # Allow CC to be a program name with arguments.
  6028. compiler=$CC
  6029. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6031. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6032. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6033. $as_echo_n "(cached) " >&6
  6034. else
  6035. # These are sane defaults that work on at least a few old systems.
  6036. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6037. # Character class describing NM global symbol codes.
  6038. symcode='[BCDEGRST]'
  6039. # Regexp to match symbols that can be accessed directly from C.
  6040. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6041. # Define system-specific variables.
  6042. case $host_os in
  6043. aix*)
  6044. symcode='[BCDT]'
  6045. ;;
  6046. cygwin* | mingw* | pw32* | cegcc*)
  6047. symcode='[ABCDGISTW]'
  6048. ;;
  6049. hpux*)
  6050. if test "$host_cpu" = ia64; then
  6051. symcode='[ABCDEGRST]'
  6052. fi
  6053. ;;
  6054. irix* | nonstopux*)
  6055. symcode='[BCDEGRST]'
  6056. ;;
  6057. osf*)
  6058. symcode='[BCDEGQRST]'
  6059. ;;
  6060. solaris*)
  6061. symcode='[BDRT]'
  6062. ;;
  6063. sco3.2v5*)
  6064. symcode='[DT]'
  6065. ;;
  6066. sysv4.2uw2*)
  6067. symcode='[DT]'
  6068. ;;
  6069. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6070. symcode='[ABDT]'
  6071. ;;
  6072. sysv4)
  6073. symcode='[DFNSTU]'
  6074. ;;
  6075. esac
  6076. # If we're using GNU nm, then use its standard symbol codes.
  6077. case `$NM -V 2>&1` in
  6078. *GNU* | *'with BFD'*)
  6079. symcode='[ABCDGIRSTW]' ;;
  6080. esac
  6081. # Transform an extracted symbol line into a proper C declaration.
  6082. # Some systems (esp. on ia64) link data and code symbols differently,
  6083. # so use this general approach.
  6084. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6085. # Transform an extracted symbol line into symbol name and symbol address
  6086. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6087. 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'"
  6088. # Handle CRLF in mingw tool chain
  6089. opt_cr=
  6090. case $build_os in
  6091. mingw*)
  6092. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6093. ;;
  6094. esac
  6095. # Try without a prefix underscore, then with it.
  6096. for ac_symprfx in "" "_"; do
  6097. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6098. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6099. # Write the raw and C identifiers.
  6100. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6101. # Fake it for dumpbin and say T for any non-static function
  6102. # and D for any global variable.
  6103. # Also find C++ and __fastcall symbols from MSVC++,
  6104. # which start with @ or ?.
  6105. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6106. " {last_section=section; section=\$ 3};"\
  6107. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6108. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6109. " \$ 0!~/External *\|/{next};"\
  6110. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6111. " {if(hide[section]) next};"\
  6112. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6113. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6114. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6115. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6116. " ' prfx=^$ac_symprfx"
  6117. else
  6118. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6119. fi
  6120. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6121. # Check to see that the pipe works correctly.
  6122. pipe_works=no
  6123. rm -f conftest*
  6124. cat > conftest.$ac_ext <<_LT_EOF
  6125. #ifdef __cplusplus
  6126. extern "C" {
  6127. #endif
  6128. char nm_test_var;
  6129. void nm_test_func(void);
  6130. void nm_test_func(void){}
  6131. #ifdef __cplusplus
  6132. }
  6133. #endif
  6134. int main(){nm_test_var='a';nm_test_func();return(0);}
  6135. _LT_EOF
  6136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6137. (eval $ac_compile) 2>&5
  6138. ac_status=$?
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6140. test $ac_status = 0; }; then
  6141. # Now try to grab the symbols.
  6142. nlist=conftest.nm
  6143. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6144. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6145. ac_status=$?
  6146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6147. test $ac_status = 0; } && test -s "$nlist"; then
  6148. # Try sorting and uniquifying the output.
  6149. if sort "$nlist" | uniq > "$nlist"T; then
  6150. mv -f "$nlist"T "$nlist"
  6151. else
  6152. rm -f "$nlist"T
  6153. fi
  6154. # Make sure that we snagged all the symbols we need.
  6155. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6156. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6157. cat <<_LT_EOF > conftest.$ac_ext
  6158. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6159. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6160. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6161. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6162. # define LT_DLSYM_CONST
  6163. #elif defined(__osf__)
  6164. /* This system does not cope well with relocations in const data. */
  6165. # define LT_DLSYM_CONST
  6166. #else
  6167. # define LT_DLSYM_CONST const
  6168. #endif
  6169. #ifdef __cplusplus
  6170. extern "C" {
  6171. #endif
  6172. _LT_EOF
  6173. # Now generate the symbol file.
  6174. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6175. cat <<_LT_EOF >> conftest.$ac_ext
  6176. /* The mapping between symbol names and symbols. */
  6177. LT_DLSYM_CONST struct {
  6178. const char *name;
  6179. void *address;
  6180. }
  6181. lt__PROGRAM__LTX_preloaded_symbols[] =
  6182. {
  6183. { "@PROGRAM@", (void *) 0 },
  6184. _LT_EOF
  6185. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6186. cat <<\_LT_EOF >> conftest.$ac_ext
  6187. {0, (void *) 0}
  6188. };
  6189. /* This works around a problem in FreeBSD linker */
  6190. #ifdef FREEBSD_WORKAROUND
  6191. static const void *lt_preloaded_setup() {
  6192. return lt__PROGRAM__LTX_preloaded_symbols;
  6193. }
  6194. #endif
  6195. #ifdef __cplusplus
  6196. }
  6197. #endif
  6198. _LT_EOF
  6199. # Now try linking the two files.
  6200. mv conftest.$ac_objext conftstm.$ac_objext
  6201. lt_globsym_save_LIBS=$LIBS
  6202. lt_globsym_save_CFLAGS=$CFLAGS
  6203. LIBS="conftstm.$ac_objext"
  6204. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6206. (eval $ac_link) 2>&5
  6207. ac_status=$?
  6208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6209. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6210. pipe_works=yes
  6211. fi
  6212. LIBS=$lt_globsym_save_LIBS
  6213. CFLAGS=$lt_globsym_save_CFLAGS
  6214. else
  6215. echo "cannot find nm_test_func in $nlist" >&5
  6216. fi
  6217. else
  6218. echo "cannot find nm_test_var in $nlist" >&5
  6219. fi
  6220. else
  6221. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6222. fi
  6223. else
  6224. echo "$progname: failed program was:" >&5
  6225. cat conftest.$ac_ext >&5
  6226. fi
  6227. rm -rf conftest* conftst*
  6228. # Do not use the global_symbol_pipe unless it works.
  6229. if test "$pipe_works" = yes; then
  6230. break
  6231. else
  6232. lt_cv_sys_global_symbol_pipe=
  6233. fi
  6234. done
  6235. fi
  6236. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6237. lt_cv_sys_global_symbol_to_cdecl=
  6238. fi
  6239. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6241. $as_echo "failed" >&6; }
  6242. else
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6244. $as_echo "ok" >&6; }
  6245. fi
  6246. # Response file support.
  6247. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6248. nm_file_list_spec='@'
  6249. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6250. nm_file_list_spec='@'
  6251. fi
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6253. $as_echo_n "checking for sysroot... " >&6; }
  6254. # Check whether --with-sysroot was given.
  6255. if test "${with_sysroot+set}" = set; then :
  6256. withval=$with_sysroot;
  6257. else
  6258. with_sysroot=no
  6259. fi
  6260. lt_sysroot=
  6261. case ${with_sysroot} in #(
  6262. yes)
  6263. if test "$GCC" = yes; then
  6264. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6265. fi
  6266. ;; #(
  6267. /*)
  6268. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6269. ;; #(
  6270. no|'')
  6271. ;; #(
  6272. *)
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6274. $as_echo "${with_sysroot}" >&6; }
  6275. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6276. ;;
  6277. esac
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6279. $as_echo "${lt_sysroot:-no}" >&6; }
  6280. # Check whether --enable-libtool-lock was given.
  6281. if test "${enable_libtool_lock+set}" = set; then :
  6282. enableval=$enable_libtool_lock;
  6283. fi
  6284. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6285. # Some flags need to be propagated to the compiler or linker for good
  6286. # libtool support.
  6287. case $host in
  6288. ia64-*-hpux*)
  6289. # Find out which ABI we are using.
  6290. echo 'int i;' > conftest.$ac_ext
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6292. (eval $ac_compile) 2>&5
  6293. ac_status=$?
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; }; then
  6296. case `/usr/bin/file conftest.$ac_objext` in
  6297. *ELF-32*)
  6298. HPUX_IA64_MODE="32"
  6299. ;;
  6300. *ELF-64*)
  6301. HPUX_IA64_MODE="64"
  6302. ;;
  6303. esac
  6304. fi
  6305. rm -rf conftest*
  6306. ;;
  6307. *-*-irix6*)
  6308. # Find out which ABI we are using.
  6309. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6311. (eval $ac_compile) 2>&5
  6312. ac_status=$?
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6314. test $ac_status = 0; }; then
  6315. if test "$lt_cv_prog_gnu_ld" = yes; then
  6316. case `/usr/bin/file conftest.$ac_objext` in
  6317. *32-bit*)
  6318. LD="${LD-ld} -melf32bsmip"
  6319. ;;
  6320. *N32*)
  6321. LD="${LD-ld} -melf32bmipn32"
  6322. ;;
  6323. *64-bit*)
  6324. LD="${LD-ld} -melf64bmip"
  6325. ;;
  6326. esac
  6327. else
  6328. case `/usr/bin/file conftest.$ac_objext` in
  6329. *32-bit*)
  6330. LD="${LD-ld} -32"
  6331. ;;
  6332. *N32*)
  6333. LD="${LD-ld} -n32"
  6334. ;;
  6335. *64-bit*)
  6336. LD="${LD-ld} -64"
  6337. ;;
  6338. esac
  6339. fi
  6340. fi
  6341. rm -rf conftest*
  6342. ;;
  6343. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6344. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6345. # Find out which ABI we are using.
  6346. echo 'int i;' > conftest.$ac_ext
  6347. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6348. (eval $ac_compile) 2>&5
  6349. ac_status=$?
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6351. test $ac_status = 0; }; then
  6352. case `/usr/bin/file conftest.o` in
  6353. *32-bit*)
  6354. case $host in
  6355. x86_64-*kfreebsd*-gnu)
  6356. LD="${LD-ld} -m elf_i386_fbsd"
  6357. ;;
  6358. x86_64-*linux*)
  6359. LD="${LD-ld} -m elf_i386"
  6360. ;;
  6361. ppc64-*linux*|powerpc64-*linux*)
  6362. LD="${LD-ld} -m elf32ppclinux"
  6363. ;;
  6364. s390x-*linux*)
  6365. LD="${LD-ld} -m elf_s390"
  6366. ;;
  6367. sparc64-*linux*)
  6368. LD="${LD-ld} -m elf32_sparc"
  6369. ;;
  6370. esac
  6371. ;;
  6372. *64-bit*)
  6373. case $host in
  6374. x86_64-*kfreebsd*-gnu)
  6375. LD="${LD-ld} -m elf_x86_64_fbsd"
  6376. ;;
  6377. x86_64-*linux*)
  6378. LD="${LD-ld} -m elf_x86_64"
  6379. ;;
  6380. ppc*-*linux*|powerpc*-*linux*)
  6381. LD="${LD-ld} -m elf64ppc"
  6382. ;;
  6383. s390*-*linux*|s390*-*tpf*)
  6384. LD="${LD-ld} -m elf64_s390"
  6385. ;;
  6386. sparc*-*linux*)
  6387. LD="${LD-ld} -m elf64_sparc"
  6388. ;;
  6389. esac
  6390. ;;
  6391. esac
  6392. fi
  6393. rm -rf conftest*
  6394. ;;
  6395. *-*-sco3.2v5*)
  6396. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6397. SAVE_CFLAGS="$CFLAGS"
  6398. CFLAGS="$CFLAGS -belf"
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6400. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6401. if ${lt_cv_cc_needs_belf+:} false; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. ac_ext=c
  6405. ac_cpp='$CPP $CPPFLAGS'
  6406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. int
  6412. main ()
  6413. {
  6414. ;
  6415. return 0;
  6416. }
  6417. _ACEOF
  6418. if ac_fn_c_try_link "$LINENO"; then :
  6419. lt_cv_cc_needs_belf=yes
  6420. else
  6421. lt_cv_cc_needs_belf=no
  6422. fi
  6423. rm -f core conftest.err conftest.$ac_objext \
  6424. conftest$ac_exeext conftest.$ac_ext
  6425. ac_ext=c
  6426. ac_cpp='$CPP $CPPFLAGS'
  6427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6430. fi
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6432. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6433. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6434. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6435. CFLAGS="$SAVE_CFLAGS"
  6436. fi
  6437. ;;
  6438. *-*solaris*)
  6439. # Find out which ABI we are using.
  6440. echo 'int i;' > conftest.$ac_ext
  6441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6442. (eval $ac_compile) 2>&5
  6443. ac_status=$?
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6445. test $ac_status = 0; }; then
  6446. case `/usr/bin/file conftest.o` in
  6447. *64-bit*)
  6448. case $lt_cv_prog_gnu_ld in
  6449. yes*)
  6450. case $host in
  6451. i?86-*-solaris*)
  6452. LD="${LD-ld} -m elf_x86_64"
  6453. ;;
  6454. sparc*-*-solaris*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6459. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6460. LD="${LD-ld}_sol2"
  6461. fi
  6462. ;;
  6463. *)
  6464. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6465. LD="${LD-ld} -64"
  6466. fi
  6467. ;;
  6468. esac
  6469. ;;
  6470. esac
  6471. fi
  6472. rm -rf conftest*
  6473. ;;
  6474. esac
  6475. need_locks="$enable_libtool_lock"
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$MANIFEST_TOOL"; then
  6485. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6494. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6504. if test -n "$MANIFEST_TOOL"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6506. $as_echo "$MANIFEST_TOOL" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6513. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6514. # Extract the first word of "mt", so it can be a program name with args.
  6515. set dummy mt; ac_word=$2
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6522. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6531. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6541. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6543. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6549. MANIFEST_TOOL=":"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6558. fi
  6559. else
  6560. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6561. fi
  6562. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6564. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6565. if ${lt_cv_path_mainfest_tool+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. lt_cv_path_mainfest_tool=no
  6569. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6570. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6571. cat conftest.err >&5
  6572. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6573. lt_cv_path_mainfest_tool=yes
  6574. fi
  6575. rm -f conftest*
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6578. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6579. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6580. MANIFEST_TOOL=:
  6581. fi
  6582. case $host_os in
  6583. rhapsody* | darwin*)
  6584. if test -n "$ac_tool_prefix"; then
  6585. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6586. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6588. $as_echo_n "checking for $ac_word... " >&6; }
  6589. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. if test -n "$DSYMUTIL"; then
  6593. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6594. else
  6595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6596. for as_dir in $PATH
  6597. do
  6598. IFS=$as_save_IFS
  6599. test -z "$as_dir" && as_dir=.
  6600. for ac_exec_ext in '' $ac_executable_extensions; do
  6601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6602. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6604. break 2
  6605. fi
  6606. done
  6607. done
  6608. IFS=$as_save_IFS
  6609. fi
  6610. fi
  6611. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6612. if test -n "$DSYMUTIL"; then
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6614. $as_echo "$DSYMUTIL" >&6; }
  6615. else
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. $as_echo "no" >&6; }
  6618. fi
  6619. fi
  6620. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6621. ac_ct_DSYMUTIL=$DSYMUTIL
  6622. # Extract the first word of "dsymutil", so it can be a program name with args.
  6623. set dummy dsymutil; ac_word=$2
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6625. $as_echo_n "checking for $ac_word... " >&6; }
  6626. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6627. $as_echo_n "(cached) " >&6
  6628. else
  6629. if test -n "$ac_ct_DSYMUTIL"; then
  6630. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6631. else
  6632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6633. for as_dir in $PATH
  6634. do
  6635. IFS=$as_save_IFS
  6636. test -z "$as_dir" && as_dir=.
  6637. for ac_exec_ext in '' $ac_executable_extensions; do
  6638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6639. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6641. break 2
  6642. fi
  6643. done
  6644. done
  6645. IFS=$as_save_IFS
  6646. fi
  6647. fi
  6648. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6649. if test -n "$ac_ct_DSYMUTIL"; then
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6651. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6652. else
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. $as_echo "no" >&6; }
  6655. fi
  6656. if test "x$ac_ct_DSYMUTIL" = x; then
  6657. DSYMUTIL=":"
  6658. else
  6659. case $cross_compiling:$ac_tool_warned in
  6660. yes:)
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6662. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6663. ac_tool_warned=yes ;;
  6664. esac
  6665. DSYMUTIL=$ac_ct_DSYMUTIL
  6666. fi
  6667. else
  6668. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6669. fi
  6670. if test -n "$ac_tool_prefix"; then
  6671. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6672. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6674. $as_echo_n "checking for $ac_word... " >&6; }
  6675. if ${ac_cv_prog_NMEDIT+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. if test -n "$NMEDIT"; then
  6679. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6680. else
  6681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6682. for as_dir in $PATH
  6683. do
  6684. IFS=$as_save_IFS
  6685. test -z "$as_dir" && as_dir=.
  6686. for ac_exec_ext in '' $ac_executable_extensions; do
  6687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6688. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6690. break 2
  6691. fi
  6692. done
  6693. done
  6694. IFS=$as_save_IFS
  6695. fi
  6696. fi
  6697. NMEDIT=$ac_cv_prog_NMEDIT
  6698. if test -n "$NMEDIT"; then
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6700. $as_echo "$NMEDIT" >&6; }
  6701. else
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6703. $as_echo "no" >&6; }
  6704. fi
  6705. fi
  6706. if test -z "$ac_cv_prog_NMEDIT"; then
  6707. ac_ct_NMEDIT=$NMEDIT
  6708. # Extract the first word of "nmedit", so it can be a program name with args.
  6709. set dummy nmedit; ac_word=$2
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6711. $as_echo_n "checking for $ac_word... " >&6; }
  6712. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. if test -n "$ac_ct_NMEDIT"; then
  6716. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6717. else
  6718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6719. for as_dir in $PATH
  6720. do
  6721. IFS=$as_save_IFS
  6722. test -z "$as_dir" && as_dir=.
  6723. for ac_exec_ext in '' $ac_executable_extensions; do
  6724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6725. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6727. break 2
  6728. fi
  6729. done
  6730. done
  6731. IFS=$as_save_IFS
  6732. fi
  6733. fi
  6734. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6735. if test -n "$ac_ct_NMEDIT"; then
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6737. $as_echo "$ac_ct_NMEDIT" >&6; }
  6738. else
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6740. $as_echo "no" >&6; }
  6741. fi
  6742. if test "x$ac_ct_NMEDIT" = x; then
  6743. NMEDIT=":"
  6744. else
  6745. case $cross_compiling:$ac_tool_warned in
  6746. yes:)
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6749. ac_tool_warned=yes ;;
  6750. esac
  6751. NMEDIT=$ac_ct_NMEDIT
  6752. fi
  6753. else
  6754. NMEDIT="$ac_cv_prog_NMEDIT"
  6755. fi
  6756. if test -n "$ac_tool_prefix"; then
  6757. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6758. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6760. $as_echo_n "checking for $ac_word... " >&6; }
  6761. if ${ac_cv_prog_LIPO+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. if test -n "$LIPO"; then
  6765. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6766. else
  6767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6768. for as_dir in $PATH
  6769. do
  6770. IFS=$as_save_IFS
  6771. test -z "$as_dir" && as_dir=.
  6772. for ac_exec_ext in '' $ac_executable_extensions; do
  6773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6774. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6776. break 2
  6777. fi
  6778. done
  6779. done
  6780. IFS=$as_save_IFS
  6781. fi
  6782. fi
  6783. LIPO=$ac_cv_prog_LIPO
  6784. if test -n "$LIPO"; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6786. $as_echo "$LIPO" >&6; }
  6787. else
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6789. $as_echo "no" >&6; }
  6790. fi
  6791. fi
  6792. if test -z "$ac_cv_prog_LIPO"; then
  6793. ac_ct_LIPO=$LIPO
  6794. # Extract the first word of "lipo", so it can be a program name with args.
  6795. set dummy lipo; ac_word=$2
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6797. $as_echo_n "checking for $ac_word... " >&6; }
  6798. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. if test -n "$ac_ct_LIPO"; then
  6802. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6803. else
  6804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6805. for as_dir in $PATH
  6806. do
  6807. IFS=$as_save_IFS
  6808. test -z "$as_dir" && as_dir=.
  6809. for ac_exec_ext in '' $ac_executable_extensions; do
  6810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6811. ac_cv_prog_ac_ct_LIPO="lipo"
  6812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6813. break 2
  6814. fi
  6815. done
  6816. done
  6817. IFS=$as_save_IFS
  6818. fi
  6819. fi
  6820. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6821. if test -n "$ac_ct_LIPO"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6823. $as_echo "$ac_ct_LIPO" >&6; }
  6824. else
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. $as_echo "no" >&6; }
  6827. fi
  6828. if test "x$ac_ct_LIPO" = x; then
  6829. LIPO=":"
  6830. else
  6831. case $cross_compiling:$ac_tool_warned in
  6832. yes:)
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6835. ac_tool_warned=yes ;;
  6836. esac
  6837. LIPO=$ac_ct_LIPO
  6838. fi
  6839. else
  6840. LIPO="$ac_cv_prog_LIPO"
  6841. fi
  6842. if test -n "$ac_tool_prefix"; then
  6843. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6844. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6846. $as_echo_n "checking for $ac_word... " >&6; }
  6847. if ${ac_cv_prog_OTOOL+:} false; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. if test -n "$OTOOL"; then
  6851. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6852. else
  6853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6854. for as_dir in $PATH
  6855. do
  6856. IFS=$as_save_IFS
  6857. test -z "$as_dir" && as_dir=.
  6858. for ac_exec_ext in '' $ac_executable_extensions; do
  6859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6860. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6862. break 2
  6863. fi
  6864. done
  6865. done
  6866. IFS=$as_save_IFS
  6867. fi
  6868. fi
  6869. OTOOL=$ac_cv_prog_OTOOL
  6870. if test -n "$OTOOL"; then
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6872. $as_echo "$OTOOL" >&6; }
  6873. else
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6875. $as_echo "no" >&6; }
  6876. fi
  6877. fi
  6878. if test -z "$ac_cv_prog_OTOOL"; then
  6879. ac_ct_OTOOL=$OTOOL
  6880. # Extract the first word of "otool", so it can be a program name with args.
  6881. set dummy otool; ac_word=$2
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6883. $as_echo_n "checking for $ac_word... " >&6; }
  6884. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. if test -n "$ac_ct_OTOOL"; then
  6888. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6889. else
  6890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6891. for as_dir in $PATH
  6892. do
  6893. IFS=$as_save_IFS
  6894. test -z "$as_dir" && as_dir=.
  6895. for ac_exec_ext in '' $ac_executable_extensions; do
  6896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6897. ac_cv_prog_ac_ct_OTOOL="otool"
  6898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6899. break 2
  6900. fi
  6901. done
  6902. done
  6903. IFS=$as_save_IFS
  6904. fi
  6905. fi
  6906. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6907. if test -n "$ac_ct_OTOOL"; then
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6909. $as_echo "$ac_ct_OTOOL" >&6; }
  6910. else
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6912. $as_echo "no" >&6; }
  6913. fi
  6914. if test "x$ac_ct_OTOOL" = x; then
  6915. OTOOL=":"
  6916. else
  6917. case $cross_compiling:$ac_tool_warned in
  6918. yes:)
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6921. ac_tool_warned=yes ;;
  6922. esac
  6923. OTOOL=$ac_ct_OTOOL
  6924. fi
  6925. else
  6926. OTOOL="$ac_cv_prog_OTOOL"
  6927. fi
  6928. if test -n "$ac_tool_prefix"; then
  6929. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6930. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6932. $as_echo_n "checking for $ac_word... " >&6; }
  6933. if ${ac_cv_prog_OTOOL64+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. if test -n "$OTOOL64"; then
  6937. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6938. else
  6939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6940. for as_dir in $PATH
  6941. do
  6942. IFS=$as_save_IFS
  6943. test -z "$as_dir" && as_dir=.
  6944. for ac_exec_ext in '' $ac_executable_extensions; do
  6945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6946. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6948. break 2
  6949. fi
  6950. done
  6951. done
  6952. IFS=$as_save_IFS
  6953. fi
  6954. fi
  6955. OTOOL64=$ac_cv_prog_OTOOL64
  6956. if test -n "$OTOOL64"; then
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6958. $as_echo "$OTOOL64" >&6; }
  6959. else
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6961. $as_echo "no" >&6; }
  6962. fi
  6963. fi
  6964. if test -z "$ac_cv_prog_OTOOL64"; then
  6965. ac_ct_OTOOL64=$OTOOL64
  6966. # Extract the first word of "otool64", so it can be a program name with args.
  6967. set dummy otool64; ac_word=$2
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6969. $as_echo_n "checking for $ac_word... " >&6; }
  6970. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. if test -n "$ac_ct_OTOOL64"; then
  6974. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6975. else
  6976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6977. for as_dir in $PATH
  6978. do
  6979. IFS=$as_save_IFS
  6980. test -z "$as_dir" && as_dir=.
  6981. for ac_exec_ext in '' $ac_executable_extensions; do
  6982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6983. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6985. break 2
  6986. fi
  6987. done
  6988. done
  6989. IFS=$as_save_IFS
  6990. fi
  6991. fi
  6992. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6993. if test -n "$ac_ct_OTOOL64"; then
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6995. $as_echo "$ac_ct_OTOOL64" >&6; }
  6996. else
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6998. $as_echo "no" >&6; }
  6999. fi
  7000. if test "x$ac_ct_OTOOL64" = x; then
  7001. OTOOL64=":"
  7002. else
  7003. case $cross_compiling:$ac_tool_warned in
  7004. yes:)
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7007. ac_tool_warned=yes ;;
  7008. esac
  7009. OTOOL64=$ac_ct_OTOOL64
  7010. fi
  7011. else
  7012. OTOOL64="$ac_cv_prog_OTOOL64"
  7013. fi
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7015. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7016. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. lt_cv_apple_cc_single_mod=no
  7020. if test -z "${LT_MULTI_MODULE}"; then
  7021. # By default we will add the -single_module flag. You can override
  7022. # by either setting the environment variable LT_MULTI_MODULE
  7023. # non-empty at configure time, or by adding -multi_module to the
  7024. # link flags.
  7025. rm -rf libconftest.dylib*
  7026. echo "int foo(void){return 1;}" > conftest.c
  7027. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7028. -dynamiclib -Wl,-single_module conftest.c" >&5
  7029. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7030. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7031. _lt_result=$?
  7032. # If there is a non-empty error log, and "single_module"
  7033. # appears in it, assume the flag caused a linker warning
  7034. if test -s conftest.err && $GREP single_module conftest.err; then
  7035. cat conftest.err >&5
  7036. # Otherwise, if the output was created with a 0 exit code from
  7037. # the compiler, it worked.
  7038. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7039. lt_cv_apple_cc_single_mod=yes
  7040. else
  7041. cat conftest.err >&5
  7042. fi
  7043. rm -rf libconftest.dylib*
  7044. rm -f conftest.*
  7045. fi
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7048. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7050. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7051. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. lt_cv_ld_exported_symbols_list=no
  7055. save_LDFLAGS=$LDFLAGS
  7056. echo "_main" > conftest.sym
  7057. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7059. /* end confdefs.h. */
  7060. int
  7061. main ()
  7062. {
  7063. ;
  7064. return 0;
  7065. }
  7066. _ACEOF
  7067. if ac_fn_c_try_link "$LINENO"; then :
  7068. lt_cv_ld_exported_symbols_list=yes
  7069. else
  7070. lt_cv_ld_exported_symbols_list=no
  7071. fi
  7072. rm -f core conftest.err conftest.$ac_objext \
  7073. conftest$ac_exeext conftest.$ac_ext
  7074. LDFLAGS="$save_LDFLAGS"
  7075. fi
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7077. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7079. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7080. if ${lt_cv_ld_force_load+:} false; then :
  7081. $as_echo_n "(cached) " >&6
  7082. else
  7083. lt_cv_ld_force_load=no
  7084. cat > conftest.c << _LT_EOF
  7085. int forced_loaded() { return 2;}
  7086. _LT_EOF
  7087. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7088. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7089. echo "$AR cru libconftest.a conftest.o" >&5
  7090. $AR cru libconftest.a conftest.o 2>&5
  7091. echo "$RANLIB libconftest.a" >&5
  7092. $RANLIB libconftest.a 2>&5
  7093. cat > conftest.c << _LT_EOF
  7094. int main() { return 0;}
  7095. _LT_EOF
  7096. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7097. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7098. _lt_result=$?
  7099. if test -s conftest.err && $GREP force_load conftest.err; then
  7100. cat conftest.err >&5
  7101. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7102. lt_cv_ld_force_load=yes
  7103. else
  7104. cat conftest.err >&5
  7105. fi
  7106. rm -f conftest.err libconftest.a conftest conftest.c
  7107. rm -rf conftest.dSYM
  7108. fi
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7110. $as_echo "$lt_cv_ld_force_load" >&6; }
  7111. case $host_os in
  7112. rhapsody* | darwin1.[012])
  7113. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7114. darwin1.*)
  7115. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7116. darwin*) # darwin 5.x on
  7117. # if running on 10.5 or later, the deployment target defaults
  7118. # to the OS version, if on x86, and 10.4, the deployment
  7119. # target defaults to 10.4. Don't you love it?
  7120. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7121. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7122. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7123. 10.[012]*)
  7124. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7125. 10.*)
  7126. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7127. esac
  7128. ;;
  7129. esac
  7130. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7131. _lt_dar_single_mod='$single_module'
  7132. fi
  7133. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7134. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7135. else
  7136. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7137. fi
  7138. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7139. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7140. else
  7141. _lt_dsymutil=
  7142. fi
  7143. ;;
  7144. esac
  7145. for ac_header in dlfcn.h
  7146. do :
  7147. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7148. "
  7149. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7150. cat >>confdefs.h <<_ACEOF
  7151. #define HAVE_DLFCN_H 1
  7152. _ACEOF
  7153. fi
  7154. done
  7155. func_stripname_cnf ()
  7156. {
  7157. case ${2} in
  7158. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7159. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7160. esac
  7161. } # func_stripname_cnf
  7162. # Set options
  7163. enable_dlopen=no
  7164. # Check whether --enable-shared was given.
  7165. if test "${enable_shared+set}" = set; then :
  7166. enableval=$enable_shared; p=${PACKAGE-default}
  7167. case $enableval in
  7168. yes) enable_shared=yes ;;
  7169. no) enable_shared=no ;;
  7170. *)
  7171. enable_shared=no
  7172. # Look at the argument we got. We use all the common list separators.
  7173. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7174. for pkg in $enableval; do
  7175. IFS="$lt_save_ifs"
  7176. if test "X$pkg" = "X$p"; then
  7177. enable_shared=yes
  7178. fi
  7179. done
  7180. IFS="$lt_save_ifs"
  7181. ;;
  7182. esac
  7183. else
  7184. enable_shared=yes
  7185. fi
  7186. # Check whether --enable-static was given.
  7187. if test "${enable_static+set}" = set; then :
  7188. enableval=$enable_static; p=${PACKAGE-default}
  7189. case $enableval in
  7190. yes) enable_static=yes ;;
  7191. no) enable_static=no ;;
  7192. *)
  7193. enable_static=no
  7194. # Look at the argument we got. We use all the common list separators.
  7195. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7196. for pkg in $enableval; do
  7197. IFS="$lt_save_ifs"
  7198. if test "X$pkg" = "X$p"; then
  7199. enable_static=yes
  7200. fi
  7201. done
  7202. IFS="$lt_save_ifs"
  7203. ;;
  7204. esac
  7205. else
  7206. enable_static=yes
  7207. fi
  7208. # Check whether --with-pic was given.
  7209. if test "${with_pic+set}" = set; then :
  7210. withval=$with_pic; lt_p=${PACKAGE-default}
  7211. case $withval in
  7212. yes|no) pic_mode=$withval ;;
  7213. *)
  7214. pic_mode=default
  7215. # Look at the argument we got. We use all the common list separators.
  7216. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7217. for lt_pkg in $withval; do
  7218. IFS="$lt_save_ifs"
  7219. if test "X$lt_pkg" = "X$lt_p"; then
  7220. pic_mode=yes
  7221. fi
  7222. done
  7223. IFS="$lt_save_ifs"
  7224. ;;
  7225. esac
  7226. else
  7227. pic_mode=default
  7228. fi
  7229. test -z "$pic_mode" && pic_mode=default
  7230. # Check whether --enable-fast-install was given.
  7231. if test "${enable_fast_install+set}" = set; then :
  7232. enableval=$enable_fast_install; p=${PACKAGE-default}
  7233. case $enableval in
  7234. yes) enable_fast_install=yes ;;
  7235. no) enable_fast_install=no ;;
  7236. *)
  7237. enable_fast_install=no
  7238. # Look at the argument we got. We use all the common list separators.
  7239. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7240. for pkg in $enableval; do
  7241. IFS="$lt_save_ifs"
  7242. if test "X$pkg" = "X$p"; then
  7243. enable_fast_install=yes
  7244. fi
  7245. done
  7246. IFS="$lt_save_ifs"
  7247. ;;
  7248. esac
  7249. else
  7250. enable_fast_install=yes
  7251. fi
  7252. # This can be used to rebuild libtool when needed
  7253. LIBTOOL_DEPS="$ltmain"
  7254. # Always use our own libtool.
  7255. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7256. test -z "$LN_S" && LN_S="ln -s"
  7257. if test -n "${ZSH_VERSION+set}" ; then
  7258. setopt NO_GLOB_SUBST
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7261. $as_echo_n "checking for objdir... " >&6; }
  7262. if ${lt_cv_objdir+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. rm -f .libs 2>/dev/null
  7266. mkdir .libs 2>/dev/null
  7267. if test -d .libs; then
  7268. lt_cv_objdir=.libs
  7269. else
  7270. # MS-DOS does not allow filenames that begin with a dot.
  7271. lt_cv_objdir=_libs
  7272. fi
  7273. rmdir .libs 2>/dev/null
  7274. fi
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7276. $as_echo "$lt_cv_objdir" >&6; }
  7277. objdir=$lt_cv_objdir
  7278. cat >>confdefs.h <<_ACEOF
  7279. #define LT_OBJDIR "$lt_cv_objdir/"
  7280. _ACEOF
  7281. case $host_os in
  7282. aix3*)
  7283. # AIX sometimes has problems with the GCC collect2 program. For some
  7284. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7285. # vanish in a puff of smoke.
  7286. if test "X${COLLECT_NAMES+set}" != Xset; then
  7287. COLLECT_NAMES=
  7288. export COLLECT_NAMES
  7289. fi
  7290. ;;
  7291. esac
  7292. # Global variables:
  7293. ofile=libtool
  7294. can_build_shared=yes
  7295. # All known linkers require a `.a' archive for static linking (except MSVC,
  7296. # which needs '.lib').
  7297. libext=a
  7298. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7299. old_CC="$CC"
  7300. old_CFLAGS="$CFLAGS"
  7301. # Set sane defaults for various variables
  7302. test -z "$CC" && CC=cc
  7303. test -z "$LTCC" && LTCC=$CC
  7304. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7305. test -z "$LD" && LD=ld
  7306. test -z "$ac_objext" && ac_objext=o
  7307. for cc_temp in $compiler""; do
  7308. case $cc_temp in
  7309. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7310. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7311. \-*) ;;
  7312. *) break;;
  7313. esac
  7314. done
  7315. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7316. # Only perform the check for file, if the check method requires it
  7317. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7318. case $deplibs_check_method in
  7319. file_magic*)
  7320. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7322. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7323. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. case $MAGIC_CMD in
  7327. [\\/*] | ?:[\\/]*)
  7328. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7329. ;;
  7330. *)
  7331. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7332. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7333. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7334. for ac_dir in $ac_dummy; do
  7335. IFS="$lt_save_ifs"
  7336. test -z "$ac_dir" && ac_dir=.
  7337. if test -f $ac_dir/${ac_tool_prefix}file; then
  7338. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7339. if test -n "$file_magic_test_file"; then
  7340. case $deplibs_check_method in
  7341. "file_magic "*)
  7342. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7343. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7344. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7345. $EGREP "$file_magic_regex" > /dev/null; then
  7346. :
  7347. else
  7348. cat <<_LT_EOF 1>&2
  7349. *** Warning: the command libtool uses to detect shared libraries,
  7350. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7351. *** The result is that libtool may fail to recognize shared libraries
  7352. *** as such. This will affect the creation of libtool libraries that
  7353. *** depend on shared libraries, but programs linked with such libtool
  7354. *** libraries will work regardless of this problem. Nevertheless, you
  7355. *** may want to report the problem to your system manager and/or to
  7356. *** bug-libtool@gnu.org
  7357. _LT_EOF
  7358. fi ;;
  7359. esac
  7360. fi
  7361. break
  7362. fi
  7363. done
  7364. IFS="$lt_save_ifs"
  7365. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7366. ;;
  7367. esac
  7368. fi
  7369. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7370. if test -n "$MAGIC_CMD"; then
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7372. $as_echo "$MAGIC_CMD" >&6; }
  7373. else
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7375. $as_echo "no" >&6; }
  7376. fi
  7377. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7378. if test -n "$ac_tool_prefix"; then
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7380. $as_echo_n "checking for file... " >&6; }
  7381. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7382. $as_echo_n "(cached) " >&6
  7383. else
  7384. case $MAGIC_CMD in
  7385. [\\/*] | ?:[\\/]*)
  7386. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7387. ;;
  7388. *)
  7389. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7390. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7391. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7392. for ac_dir in $ac_dummy; do
  7393. IFS="$lt_save_ifs"
  7394. test -z "$ac_dir" && ac_dir=.
  7395. if test -f $ac_dir/file; then
  7396. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7397. if test -n "$file_magic_test_file"; then
  7398. case $deplibs_check_method in
  7399. "file_magic "*)
  7400. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7401. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7402. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7403. $EGREP "$file_magic_regex" > /dev/null; then
  7404. :
  7405. else
  7406. cat <<_LT_EOF 1>&2
  7407. *** Warning: the command libtool uses to detect shared libraries,
  7408. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7409. *** The result is that libtool may fail to recognize shared libraries
  7410. *** as such. This will affect the creation of libtool libraries that
  7411. *** depend on shared libraries, but programs linked with such libtool
  7412. *** libraries will work regardless of this problem. Nevertheless, you
  7413. *** may want to report the problem to your system manager and/or to
  7414. *** bug-libtool@gnu.org
  7415. _LT_EOF
  7416. fi ;;
  7417. esac
  7418. fi
  7419. break
  7420. fi
  7421. done
  7422. IFS="$lt_save_ifs"
  7423. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7424. ;;
  7425. esac
  7426. fi
  7427. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7428. if test -n "$MAGIC_CMD"; then
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7430. $as_echo "$MAGIC_CMD" >&6; }
  7431. else
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7433. $as_echo "no" >&6; }
  7434. fi
  7435. else
  7436. MAGIC_CMD=:
  7437. fi
  7438. fi
  7439. fi
  7440. ;;
  7441. esac
  7442. # Use C for the default configuration in the libtool script
  7443. lt_save_CC="$CC"
  7444. ac_ext=c
  7445. ac_cpp='$CPP $CPPFLAGS'
  7446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7449. # Source file extension for C test sources.
  7450. ac_ext=c
  7451. # Object file extension for compiled C test sources.
  7452. objext=o
  7453. objext=$objext
  7454. # Code to be used in simple compile tests
  7455. lt_simple_compile_test_code="int some_variable = 0;"
  7456. # Code to be used in simple link tests
  7457. lt_simple_link_test_code='int main(){return(0);}'
  7458. # If no C compiler was specified, use CC.
  7459. LTCC=${LTCC-"$CC"}
  7460. # If no C compiler flags were specified, use CFLAGS.
  7461. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7462. # Allow CC to be a program name with arguments.
  7463. compiler=$CC
  7464. # Save the default compiler, since it gets overwritten when the other
  7465. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7466. compiler_DEFAULT=$CC
  7467. # save warnings/boilerplate of simple test code
  7468. ac_outfile=conftest.$ac_objext
  7469. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7470. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7471. _lt_compiler_boilerplate=`cat conftest.err`
  7472. $RM conftest*
  7473. ac_outfile=conftest.$ac_objext
  7474. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7475. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7476. _lt_linker_boilerplate=`cat conftest.err`
  7477. $RM -r conftest*
  7478. if test -n "$compiler"; then
  7479. lt_prog_compiler_no_builtin_flag=
  7480. if test "$GCC" = yes; then
  7481. case $cc_basename in
  7482. nvcc*)
  7483. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7484. *)
  7485. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7486. esac
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7488. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7489. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7490. $as_echo_n "(cached) " >&6
  7491. else
  7492. lt_cv_prog_compiler_rtti_exceptions=no
  7493. ac_outfile=conftest.$ac_objext
  7494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7495. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7496. # Insert the option either (1) after the last *FLAGS variable, or
  7497. # (2) before a word containing "conftest.", or (3) at the end.
  7498. # Note that $ac_compile itself does not contain backslashes and begins
  7499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7500. # The option is referenced via a variable to avoid confusing sed.
  7501. lt_compile=`echo "$ac_compile" | $SED \
  7502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7504. -e 's:$: $lt_compiler_flag:'`
  7505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7506. (eval "$lt_compile" 2>conftest.err)
  7507. ac_status=$?
  7508. cat conftest.err >&5
  7509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7510. if (exit $ac_status) && test -s "$ac_outfile"; then
  7511. # The compiler can only warn and ignore the option if not recognized
  7512. # So say no if there are warnings other than the usual output.
  7513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7514. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7515. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7516. lt_cv_prog_compiler_rtti_exceptions=yes
  7517. fi
  7518. fi
  7519. $RM conftest*
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7522. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7523. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7524. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7525. else
  7526. :
  7527. fi
  7528. fi
  7529. lt_prog_compiler_wl=
  7530. lt_prog_compiler_pic=
  7531. lt_prog_compiler_static=
  7532. if test "$GCC" = yes; then
  7533. lt_prog_compiler_wl='-Wl,'
  7534. lt_prog_compiler_static='-static'
  7535. case $host_os in
  7536. aix*)
  7537. # All AIX code is PIC.
  7538. if test "$host_cpu" = ia64; then
  7539. # AIX 5 now supports IA64 processor
  7540. lt_prog_compiler_static='-Bstatic'
  7541. fi
  7542. ;;
  7543. amigaos*)
  7544. case $host_cpu in
  7545. powerpc)
  7546. # see comment about AmigaOS4 .so support
  7547. lt_prog_compiler_pic='-fPIC'
  7548. ;;
  7549. m68k)
  7550. # FIXME: we need at least 68020 code to build shared libraries, but
  7551. # adding the `-m68020' flag to GCC prevents building anything better,
  7552. # like `-m68040'.
  7553. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7554. ;;
  7555. esac
  7556. ;;
  7557. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7558. # PIC is the default for these OSes.
  7559. ;;
  7560. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7561. # This hack is so that the source file can tell whether it is being
  7562. # built for inclusion in a dll (and should export symbols for example).
  7563. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7564. # (--disable-auto-import) libraries
  7565. lt_prog_compiler_pic='-DDLL_EXPORT'
  7566. ;;
  7567. darwin* | rhapsody*)
  7568. # PIC is the default on this platform
  7569. # Common symbols not allowed in MH_DYLIB files
  7570. lt_prog_compiler_pic='-fno-common'
  7571. ;;
  7572. haiku*)
  7573. # PIC is the default for Haiku.
  7574. # The "-static" flag exists, but is broken.
  7575. lt_prog_compiler_static=
  7576. ;;
  7577. hpux*)
  7578. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7579. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7580. # sets the default TLS model and affects inlining.
  7581. case $host_cpu in
  7582. hppa*64*)
  7583. # +Z the default
  7584. ;;
  7585. *)
  7586. lt_prog_compiler_pic='-fPIC'
  7587. ;;
  7588. esac
  7589. ;;
  7590. interix[3-9]*)
  7591. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7592. # Instead, we relocate shared libraries at runtime.
  7593. ;;
  7594. msdosdjgpp*)
  7595. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7596. # on systems that don't support them.
  7597. lt_prog_compiler_can_build_shared=no
  7598. enable_shared=no
  7599. ;;
  7600. *nto* | *qnx*)
  7601. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7602. # it will coredump.
  7603. lt_prog_compiler_pic='-fPIC -shared'
  7604. ;;
  7605. sysv4*MP*)
  7606. if test -d /usr/nec; then
  7607. lt_prog_compiler_pic=-Kconform_pic
  7608. fi
  7609. ;;
  7610. *)
  7611. lt_prog_compiler_pic='-fPIC'
  7612. ;;
  7613. esac
  7614. case $cc_basename in
  7615. nvcc*) # Cuda Compiler Driver 2.2
  7616. lt_prog_compiler_wl='-Xlinker '
  7617. if test -n "$lt_prog_compiler_pic"; then
  7618. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7619. fi
  7620. ;;
  7621. esac
  7622. else
  7623. # PORTME Check for flag to pass linker flags through the system compiler.
  7624. case $host_os in
  7625. aix*)
  7626. lt_prog_compiler_wl='-Wl,'
  7627. if test "$host_cpu" = ia64; then
  7628. # AIX 5 now supports IA64 processor
  7629. lt_prog_compiler_static='-Bstatic'
  7630. else
  7631. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7632. fi
  7633. ;;
  7634. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7635. # This hack is so that the source file can tell whether it is being
  7636. # built for inclusion in a dll (and should export symbols for example).
  7637. lt_prog_compiler_pic='-DDLL_EXPORT'
  7638. ;;
  7639. hpux9* | hpux10* | hpux11*)
  7640. lt_prog_compiler_wl='-Wl,'
  7641. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7642. # not for PA HP-UX.
  7643. case $host_cpu in
  7644. hppa*64*|ia64*)
  7645. # +Z the default
  7646. ;;
  7647. *)
  7648. lt_prog_compiler_pic='+Z'
  7649. ;;
  7650. esac
  7651. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7652. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7653. ;;
  7654. irix5* | irix6* | nonstopux*)
  7655. lt_prog_compiler_wl='-Wl,'
  7656. # PIC (with -KPIC) is the default.
  7657. lt_prog_compiler_static='-non_shared'
  7658. ;;
  7659. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7660. case $cc_basename in
  7661. # old Intel for x86_64 which still supported -KPIC.
  7662. ecc*)
  7663. lt_prog_compiler_wl='-Wl,'
  7664. lt_prog_compiler_pic='-KPIC'
  7665. lt_prog_compiler_static='-static'
  7666. ;;
  7667. # icc used to be incompatible with GCC.
  7668. # ICC 10 doesn't accept -KPIC any more.
  7669. icc* | ifort*)
  7670. lt_prog_compiler_wl='-Wl,'
  7671. lt_prog_compiler_pic='-fPIC'
  7672. lt_prog_compiler_static='-static'
  7673. ;;
  7674. # Lahey Fortran 8.1.
  7675. lf95*)
  7676. lt_prog_compiler_wl='-Wl,'
  7677. lt_prog_compiler_pic='--shared'
  7678. lt_prog_compiler_static='--static'
  7679. ;;
  7680. nagfor*)
  7681. # NAG Fortran compiler
  7682. lt_prog_compiler_wl='-Wl,-Wl,,'
  7683. lt_prog_compiler_pic='-PIC'
  7684. lt_prog_compiler_static='-Bstatic'
  7685. ;;
  7686. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7687. # Portland Group compilers (*not* the Pentium gcc compiler,
  7688. # which looks to be a dead project)
  7689. lt_prog_compiler_wl='-Wl,'
  7690. lt_prog_compiler_pic='-fpic'
  7691. lt_prog_compiler_static='-Bstatic'
  7692. ;;
  7693. ccc*)
  7694. lt_prog_compiler_wl='-Wl,'
  7695. # All Alpha code is PIC.
  7696. lt_prog_compiler_static='-non_shared'
  7697. ;;
  7698. xl* | bgxl* | bgf* | mpixl*)
  7699. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7700. lt_prog_compiler_wl='-Wl,'
  7701. lt_prog_compiler_pic='-qpic'
  7702. lt_prog_compiler_static='-qstaticlink'
  7703. ;;
  7704. *)
  7705. case `$CC -V 2>&1 | sed 5q` in
  7706. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7707. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7708. lt_prog_compiler_pic='-KPIC'
  7709. lt_prog_compiler_static='-Bstatic'
  7710. lt_prog_compiler_wl=''
  7711. ;;
  7712. *Sun\ F* | *Sun*Fortran*)
  7713. lt_prog_compiler_pic='-KPIC'
  7714. lt_prog_compiler_static='-Bstatic'
  7715. lt_prog_compiler_wl='-Qoption ld '
  7716. ;;
  7717. *Sun\ C*)
  7718. # Sun C 5.9
  7719. lt_prog_compiler_pic='-KPIC'
  7720. lt_prog_compiler_static='-Bstatic'
  7721. lt_prog_compiler_wl='-Wl,'
  7722. ;;
  7723. *Intel*\ [CF]*Compiler*)
  7724. lt_prog_compiler_wl='-Wl,'
  7725. lt_prog_compiler_pic='-fPIC'
  7726. lt_prog_compiler_static='-static'
  7727. ;;
  7728. *Portland\ Group*)
  7729. lt_prog_compiler_wl='-Wl,'
  7730. lt_prog_compiler_pic='-fpic'
  7731. lt_prog_compiler_static='-Bstatic'
  7732. ;;
  7733. esac
  7734. ;;
  7735. esac
  7736. ;;
  7737. newsos6)
  7738. lt_prog_compiler_pic='-KPIC'
  7739. lt_prog_compiler_static='-Bstatic'
  7740. ;;
  7741. *nto* | *qnx*)
  7742. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7743. # it will coredump.
  7744. lt_prog_compiler_pic='-fPIC -shared'
  7745. ;;
  7746. osf3* | osf4* | osf5*)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. # All OSF/1 code is PIC.
  7749. lt_prog_compiler_static='-non_shared'
  7750. ;;
  7751. rdos*)
  7752. lt_prog_compiler_static='-non_shared'
  7753. ;;
  7754. solaris*)
  7755. lt_prog_compiler_pic='-KPIC'
  7756. lt_prog_compiler_static='-Bstatic'
  7757. case $cc_basename in
  7758. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7759. lt_prog_compiler_wl='-Qoption ld ';;
  7760. *)
  7761. lt_prog_compiler_wl='-Wl,';;
  7762. esac
  7763. ;;
  7764. sunos4*)
  7765. lt_prog_compiler_wl='-Qoption ld '
  7766. lt_prog_compiler_pic='-PIC'
  7767. lt_prog_compiler_static='-Bstatic'
  7768. ;;
  7769. sysv4 | sysv4.2uw2* | sysv4.3*)
  7770. lt_prog_compiler_wl='-Wl,'
  7771. lt_prog_compiler_pic='-KPIC'
  7772. lt_prog_compiler_static='-Bstatic'
  7773. ;;
  7774. sysv4*MP*)
  7775. if test -d /usr/nec ;then
  7776. lt_prog_compiler_pic='-Kconform_pic'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. fi
  7779. ;;
  7780. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7781. lt_prog_compiler_wl='-Wl,'
  7782. lt_prog_compiler_pic='-KPIC'
  7783. lt_prog_compiler_static='-Bstatic'
  7784. ;;
  7785. unicos*)
  7786. lt_prog_compiler_wl='-Wl,'
  7787. lt_prog_compiler_can_build_shared=no
  7788. ;;
  7789. uts4*)
  7790. lt_prog_compiler_pic='-pic'
  7791. lt_prog_compiler_static='-Bstatic'
  7792. ;;
  7793. *)
  7794. lt_prog_compiler_can_build_shared=no
  7795. ;;
  7796. esac
  7797. fi
  7798. case $host_os in
  7799. # For platforms which do not support PIC, -DPIC is meaningless:
  7800. *djgpp*)
  7801. lt_prog_compiler_pic=
  7802. ;;
  7803. *)
  7804. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7805. ;;
  7806. esac
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7808. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7809. if ${lt_cv_prog_compiler_pic+:} false; then :
  7810. $as_echo_n "(cached) " >&6
  7811. else
  7812. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7813. fi
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7815. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7816. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7817. #
  7818. # Check to make sure the PIC flag actually works.
  7819. #
  7820. if test -n "$lt_prog_compiler_pic"; then
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7822. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7823. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. lt_cv_prog_compiler_pic_works=no
  7827. ac_outfile=conftest.$ac_objext
  7828. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7829. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7830. # Insert the option either (1) after the last *FLAGS variable, or
  7831. # (2) before a word containing "conftest.", or (3) at the end.
  7832. # Note that $ac_compile itself does not contain backslashes and begins
  7833. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7834. # The option is referenced via a variable to avoid confusing sed.
  7835. lt_compile=`echo "$ac_compile" | $SED \
  7836. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7837. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7838. -e 's:$: $lt_compiler_flag:'`
  7839. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7840. (eval "$lt_compile" 2>conftest.err)
  7841. ac_status=$?
  7842. cat conftest.err >&5
  7843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7844. if (exit $ac_status) && test -s "$ac_outfile"; then
  7845. # The compiler can only warn and ignore the option if not recognized
  7846. # So say no if there are warnings other than the usual output.
  7847. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7848. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7849. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7850. lt_cv_prog_compiler_pic_works=yes
  7851. fi
  7852. fi
  7853. $RM conftest*
  7854. fi
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7856. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7857. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7858. case $lt_prog_compiler_pic in
  7859. "" | " "*) ;;
  7860. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7861. esac
  7862. else
  7863. lt_prog_compiler_pic=
  7864. lt_prog_compiler_can_build_shared=no
  7865. fi
  7866. fi
  7867. #
  7868. # Check to make sure the static flag actually works.
  7869. #
  7870. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7872. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7873. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7874. $as_echo_n "(cached) " >&6
  7875. else
  7876. lt_cv_prog_compiler_static_works=no
  7877. save_LDFLAGS="$LDFLAGS"
  7878. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7879. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7880. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7881. # The linker can only warn and ignore the option if not recognized
  7882. # So say no if there are warnings
  7883. if test -s conftest.err; then
  7884. # Append any errors to the config.log.
  7885. cat conftest.err 1>&5
  7886. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7887. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7888. if diff conftest.exp conftest.er2 >/dev/null; then
  7889. lt_cv_prog_compiler_static_works=yes
  7890. fi
  7891. else
  7892. lt_cv_prog_compiler_static_works=yes
  7893. fi
  7894. fi
  7895. $RM -r conftest*
  7896. LDFLAGS="$save_LDFLAGS"
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7899. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7900. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7901. :
  7902. else
  7903. lt_prog_compiler_static=
  7904. fi
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7906. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7907. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7908. $as_echo_n "(cached) " >&6
  7909. else
  7910. lt_cv_prog_compiler_c_o=no
  7911. $RM -r conftest 2>/dev/null
  7912. mkdir conftest
  7913. cd conftest
  7914. mkdir out
  7915. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7916. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7917. # Insert the option either (1) after the last *FLAGS variable, or
  7918. # (2) before a word containing "conftest.", or (3) at the end.
  7919. # Note that $ac_compile itself does not contain backslashes and begins
  7920. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7921. lt_compile=`echo "$ac_compile" | $SED \
  7922. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7923. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7924. -e 's:$: $lt_compiler_flag:'`
  7925. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7926. (eval "$lt_compile" 2>out/conftest.err)
  7927. ac_status=$?
  7928. cat out/conftest.err >&5
  7929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7930. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7931. then
  7932. # The compiler can only warn and ignore the option if not recognized
  7933. # So say no if there are warnings
  7934. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7935. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7936. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7937. lt_cv_prog_compiler_c_o=yes
  7938. fi
  7939. fi
  7940. chmod u+w . 2>&5
  7941. $RM conftest*
  7942. # SGI C++ compiler will create directory out/ii_files/ for
  7943. # template instantiation
  7944. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7945. $RM out/* && rmdir out
  7946. cd ..
  7947. $RM -r conftest
  7948. $RM conftest*
  7949. fi
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7951. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7953. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7954. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7955. $as_echo_n "(cached) " >&6
  7956. else
  7957. lt_cv_prog_compiler_c_o=no
  7958. $RM -r conftest 2>/dev/null
  7959. mkdir conftest
  7960. cd conftest
  7961. mkdir out
  7962. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7963. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7964. # Insert the option either (1) after the last *FLAGS variable, or
  7965. # (2) before a word containing "conftest.", or (3) at the end.
  7966. # Note that $ac_compile itself does not contain backslashes and begins
  7967. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7968. lt_compile=`echo "$ac_compile" | $SED \
  7969. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7970. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7971. -e 's:$: $lt_compiler_flag:'`
  7972. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7973. (eval "$lt_compile" 2>out/conftest.err)
  7974. ac_status=$?
  7975. cat out/conftest.err >&5
  7976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7977. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7978. then
  7979. # The compiler can only warn and ignore the option if not recognized
  7980. # So say no if there are warnings
  7981. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7982. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7983. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7984. lt_cv_prog_compiler_c_o=yes
  7985. fi
  7986. fi
  7987. chmod u+w . 2>&5
  7988. $RM conftest*
  7989. # SGI C++ compiler will create directory out/ii_files/ for
  7990. # template instantiation
  7991. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7992. $RM out/* && rmdir out
  7993. cd ..
  7994. $RM -r conftest
  7995. $RM conftest*
  7996. fi
  7997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7998. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7999. hard_links="nottested"
  8000. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8001. # do not overwrite the value of need_locks provided by the user
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8003. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8004. hard_links=yes
  8005. $RM conftest*
  8006. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8007. touch conftest.a
  8008. ln conftest.a conftest.b 2>&5 || hard_links=no
  8009. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8011. $as_echo "$hard_links" >&6; }
  8012. if test "$hard_links" = no; then
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8014. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8015. need_locks=warn
  8016. fi
  8017. else
  8018. need_locks=no
  8019. fi
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8021. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8022. runpath_var=
  8023. allow_undefined_flag=
  8024. always_export_symbols=no
  8025. archive_cmds=
  8026. archive_expsym_cmds=
  8027. compiler_needs_object=no
  8028. enable_shared_with_static_runtimes=no
  8029. export_dynamic_flag_spec=
  8030. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8031. hardcode_automatic=no
  8032. hardcode_direct=no
  8033. hardcode_direct_absolute=no
  8034. hardcode_libdir_flag_spec=
  8035. hardcode_libdir_separator=
  8036. hardcode_minus_L=no
  8037. hardcode_shlibpath_var=unsupported
  8038. inherit_rpath=no
  8039. link_all_deplibs=unknown
  8040. module_cmds=
  8041. module_expsym_cmds=
  8042. old_archive_from_new_cmds=
  8043. old_archive_from_expsyms_cmds=
  8044. thread_safe_flag_spec=
  8045. whole_archive_flag_spec=
  8046. # include_expsyms should be a list of space-separated symbols to be *always*
  8047. # included in the symbol list
  8048. include_expsyms=
  8049. # exclude_expsyms can be an extended regexp of symbols to exclude
  8050. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8051. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8052. # as well as any symbol that contains `d'.
  8053. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8054. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8055. # platforms (ab)use it in PIC code, but their linkers get confused if
  8056. # the symbol is explicitly referenced. Since portable code cannot
  8057. # rely on this symbol name, it's probably fine to never include it in
  8058. # preloaded symbol tables.
  8059. # Exclude shared library initialization/finalization symbols.
  8060. extract_expsyms_cmds=
  8061. case $host_os in
  8062. cygwin* | mingw* | pw32* | cegcc*)
  8063. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8064. # When not using gcc, we currently assume that we are using
  8065. # Microsoft Visual C++.
  8066. if test "$GCC" != yes; then
  8067. with_gnu_ld=no
  8068. fi
  8069. ;;
  8070. interix*)
  8071. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8072. with_gnu_ld=yes
  8073. ;;
  8074. openbsd*)
  8075. with_gnu_ld=no
  8076. ;;
  8077. esac
  8078. ld_shlibs=yes
  8079. # On some targets, GNU ld is compatible enough with the native linker
  8080. # that we're better off using the native interface for both.
  8081. lt_use_gnu_ld_interface=no
  8082. if test "$with_gnu_ld" = yes; then
  8083. case $host_os in
  8084. aix*)
  8085. # The AIX port of GNU ld has always aspired to compatibility
  8086. # with the native linker. However, as the warning in the GNU ld
  8087. # block says, versions before 2.19.5* couldn't really create working
  8088. # shared libraries, regardless of the interface used.
  8089. case `$LD -v 2>&1` in
  8090. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8091. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8092. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8093. *)
  8094. lt_use_gnu_ld_interface=yes
  8095. ;;
  8096. esac
  8097. ;;
  8098. *)
  8099. lt_use_gnu_ld_interface=yes
  8100. ;;
  8101. esac
  8102. fi
  8103. if test "$lt_use_gnu_ld_interface" = yes; then
  8104. # If archive_cmds runs LD, not CC, wlarc should be empty
  8105. wlarc='${wl}'
  8106. # Set some defaults for GNU ld with shared library support. These
  8107. # are reset later if shared libraries are not supported. Putting them
  8108. # here allows them to be overridden if necessary.
  8109. runpath_var=LD_RUN_PATH
  8110. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8111. export_dynamic_flag_spec='${wl}--export-dynamic'
  8112. # ancient GNU ld didn't support --whole-archive et. al.
  8113. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8114. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8115. else
  8116. whole_archive_flag_spec=
  8117. fi
  8118. supports_anon_versioning=no
  8119. case `$LD -v 2>&1` in
  8120. *GNU\ gold*) supports_anon_versioning=yes ;;
  8121. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8122. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8123. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8124. *\ 2.11.*) ;; # other 2.11 versions
  8125. *) supports_anon_versioning=yes ;;
  8126. esac
  8127. # See if GNU ld supports shared libraries.
  8128. case $host_os in
  8129. aix[3-9]*)
  8130. # On AIX/PPC, the GNU linker is very broken
  8131. if test "$host_cpu" != ia64; then
  8132. ld_shlibs=no
  8133. cat <<_LT_EOF 1>&2
  8134. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8135. *** to be unable to reliably create shared libraries on AIX.
  8136. *** Therefore, libtool is disabling shared libraries support. If you
  8137. *** really care for shared libraries, you may want to install binutils
  8138. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8139. *** You will then need to restart the configuration process.
  8140. _LT_EOF
  8141. fi
  8142. ;;
  8143. amigaos*)
  8144. case $host_cpu in
  8145. powerpc)
  8146. # see comment about AmigaOS4 .so support
  8147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8148. archive_expsym_cmds=''
  8149. ;;
  8150. m68k)
  8151. 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)'
  8152. hardcode_libdir_flag_spec='-L$libdir'
  8153. hardcode_minus_L=yes
  8154. ;;
  8155. esac
  8156. ;;
  8157. beos*)
  8158. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8159. allow_undefined_flag=unsupported
  8160. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8161. # support --undefined. This deserves some investigation. FIXME
  8162. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8163. else
  8164. ld_shlibs=no
  8165. fi
  8166. ;;
  8167. cygwin* | mingw* | pw32* | cegcc*)
  8168. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8169. # as there is no search path for DLLs.
  8170. hardcode_libdir_flag_spec='-L$libdir'
  8171. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8172. allow_undefined_flag=unsupported
  8173. always_export_symbols=no
  8174. enable_shared_with_static_runtimes=yes
  8175. 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'
  8176. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8177. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8178. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8179. # If the export-symbols file already is a .def file (1st line
  8180. # is EXPORTS), use it as is; otherwise, prepend...
  8181. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8182. cp $export_symbols $output_objdir/$soname.def;
  8183. else
  8184. echo EXPORTS > $output_objdir/$soname.def;
  8185. cat $export_symbols >> $output_objdir/$soname.def;
  8186. fi~
  8187. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8188. else
  8189. ld_shlibs=no
  8190. fi
  8191. ;;
  8192. haiku*)
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8194. link_all_deplibs=yes
  8195. ;;
  8196. interix[3-9]*)
  8197. hardcode_direct=no
  8198. hardcode_shlibpath_var=no
  8199. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8200. export_dynamic_flag_spec='${wl}-E'
  8201. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8202. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8203. # default) and relocated if they conflict, which is a slow very memory
  8204. # consuming and fragmenting process. To avoid this, we pick a random,
  8205. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8206. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8207. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8208. 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'
  8209. ;;
  8210. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8211. tmp_diet=no
  8212. if test "$host_os" = linux-dietlibc; then
  8213. case $cc_basename in
  8214. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8215. esac
  8216. fi
  8217. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8218. && test "$tmp_diet" = no
  8219. then
  8220. tmp_addflag=' $pic_flag'
  8221. tmp_sharedflag='-shared'
  8222. case $cc_basename,$host_cpu in
  8223. pgcc*) # Portland Group C compiler
  8224. 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'
  8225. tmp_addflag=' $pic_flag'
  8226. ;;
  8227. pgf77* | pgf90* | pgf95* | pgfortran*)
  8228. # Portland Group f77 and f90 compilers
  8229. 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'
  8230. tmp_addflag=' $pic_flag -Mnomain' ;;
  8231. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8232. tmp_addflag=' -i_dynamic' ;;
  8233. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8234. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8235. ifc* | ifort*) # Intel Fortran compiler
  8236. tmp_addflag=' -nofor_main' ;;
  8237. lf95*) # Lahey Fortran 8.1
  8238. whole_archive_flag_spec=
  8239. tmp_sharedflag='--shared' ;;
  8240. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8241. tmp_sharedflag='-qmkshrobj'
  8242. tmp_addflag= ;;
  8243. nvcc*) # Cuda Compiler Driver 2.2
  8244. 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'
  8245. compiler_needs_object=yes
  8246. ;;
  8247. esac
  8248. case `$CC -V 2>&1 | sed 5q` in
  8249. *Sun\ C*) # Sun C 5.9
  8250. 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'
  8251. compiler_needs_object=yes
  8252. tmp_sharedflag='-G' ;;
  8253. *Sun\ F*) # Sun Fortran 8.3
  8254. tmp_sharedflag='-G' ;;
  8255. esac
  8256. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8257. if test "x$supports_anon_versioning" = xyes; then
  8258. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8259. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8260. echo "local: *; };" >> $output_objdir/$libname.ver~
  8261. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8262. fi
  8263. case $cc_basename in
  8264. xlf* | bgf* | bgxlf* | mpixlf*)
  8265. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8266. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8267. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8268. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8269. if test "x$supports_anon_versioning" = xyes; then
  8270. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8271. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8272. echo "local: *; };" >> $output_objdir/$libname.ver~
  8273. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8274. fi
  8275. ;;
  8276. esac
  8277. else
  8278. ld_shlibs=no
  8279. fi
  8280. ;;
  8281. netbsd*)
  8282. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8283. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8284. wlarc=
  8285. else
  8286. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8287. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8288. fi
  8289. ;;
  8290. solaris*)
  8291. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8292. ld_shlibs=no
  8293. cat <<_LT_EOF 1>&2
  8294. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8295. *** create shared libraries on Solaris systems. Therefore, libtool
  8296. *** is disabling shared libraries support. We urge you to upgrade GNU
  8297. *** binutils to release 2.9.1 or newer. Another option is to modify
  8298. *** your PATH or compiler configuration so that the native linker is
  8299. *** used, and then restart.
  8300. _LT_EOF
  8301. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8302. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8303. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8304. else
  8305. ld_shlibs=no
  8306. fi
  8307. ;;
  8308. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8309. case `$LD -v 2>&1` in
  8310. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8311. ld_shlibs=no
  8312. cat <<_LT_EOF 1>&2
  8313. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8314. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8315. *** is disabling shared libraries support. We urge you to upgrade GNU
  8316. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8317. *** your PATH or compiler configuration so that the native linker is
  8318. *** used, and then restart.
  8319. _LT_EOF
  8320. ;;
  8321. *)
  8322. # For security reasons, it is highly recommended that you always
  8323. # use absolute paths for naming shared libraries, and exclude the
  8324. # DT_RUNPATH tag from executables and libraries. But doing so
  8325. # requires that you compile everything twice, which is a pain.
  8326. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8329. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8330. else
  8331. ld_shlibs=no
  8332. fi
  8333. ;;
  8334. esac
  8335. ;;
  8336. sunos4*)
  8337. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8338. wlarc=
  8339. hardcode_direct=yes
  8340. hardcode_shlibpath_var=no
  8341. ;;
  8342. *)
  8343. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8344. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8345. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8346. else
  8347. ld_shlibs=no
  8348. fi
  8349. ;;
  8350. esac
  8351. if test "$ld_shlibs" = no; then
  8352. runpath_var=
  8353. hardcode_libdir_flag_spec=
  8354. export_dynamic_flag_spec=
  8355. whole_archive_flag_spec=
  8356. fi
  8357. else
  8358. # PORTME fill in a description of your system's linker (not GNU ld)
  8359. case $host_os in
  8360. aix3*)
  8361. allow_undefined_flag=unsupported
  8362. always_export_symbols=yes
  8363. 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'
  8364. # Note: this linker hardcodes the directories in LIBPATH if there
  8365. # are no directories specified by -L.
  8366. hardcode_minus_L=yes
  8367. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8368. # Neither direct hardcoding nor static linking is supported with a
  8369. # broken collect2.
  8370. hardcode_direct=unsupported
  8371. fi
  8372. ;;
  8373. aix[4-9]*)
  8374. if test "$host_cpu" = ia64; then
  8375. # On IA64, the linker does run time linking by default, so we don't
  8376. # have to do anything special.
  8377. aix_use_runtimelinking=no
  8378. exp_sym_flag='-Bexport'
  8379. no_entry_flag=""
  8380. else
  8381. # If we're using GNU nm, then we don't want the "-C" option.
  8382. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8383. # Also, AIX nm treats weak defined symbols like other global
  8384. # defined symbols, whereas GNU nm marks them as "W".
  8385. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8386. 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'
  8387. else
  8388. 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'
  8389. fi
  8390. aix_use_runtimelinking=no
  8391. # Test if we are trying to use run time linking or normal
  8392. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8393. # need to do runtime linking.
  8394. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8395. for ld_flag in $LDFLAGS; do
  8396. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8397. aix_use_runtimelinking=yes
  8398. break
  8399. fi
  8400. done
  8401. ;;
  8402. esac
  8403. exp_sym_flag='-bexport'
  8404. no_entry_flag='-bnoentry'
  8405. fi
  8406. # When large executables or shared objects are built, AIX ld can
  8407. # have problems creating the table of contents. If linking a library
  8408. # or program results in "error TOC overflow" add -mminimal-toc to
  8409. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8410. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8411. archive_cmds=''
  8412. hardcode_direct=yes
  8413. hardcode_direct_absolute=yes
  8414. hardcode_libdir_separator=':'
  8415. link_all_deplibs=yes
  8416. file_list_spec='${wl}-f,'
  8417. if test "$GCC" = yes; then
  8418. case $host_os in aix4.[012]|aix4.[012].*)
  8419. # We only want to do this on AIX 4.2 and lower, the check
  8420. # below for broken collect2 doesn't work under 4.3+
  8421. collect2name=`${CC} -print-prog-name=collect2`
  8422. if test -f "$collect2name" &&
  8423. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8424. then
  8425. # We have reworked collect2
  8426. :
  8427. else
  8428. # We have old collect2
  8429. hardcode_direct=unsupported
  8430. # It fails to find uninstalled libraries when the uninstalled
  8431. # path is not listed in the libpath. Setting hardcode_minus_L
  8432. # to unsupported forces relinking
  8433. hardcode_minus_L=yes
  8434. hardcode_libdir_flag_spec='-L$libdir'
  8435. hardcode_libdir_separator=
  8436. fi
  8437. ;;
  8438. esac
  8439. shared_flag='-shared'
  8440. if test "$aix_use_runtimelinking" = yes; then
  8441. shared_flag="$shared_flag "'${wl}-G'
  8442. fi
  8443. else
  8444. # not using gcc
  8445. if test "$host_cpu" = ia64; then
  8446. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8447. # chokes on -Wl,-G. The following line is correct:
  8448. shared_flag='-G'
  8449. else
  8450. if test "$aix_use_runtimelinking" = yes; then
  8451. shared_flag='${wl}-G'
  8452. else
  8453. shared_flag='${wl}-bM:SRE'
  8454. fi
  8455. fi
  8456. fi
  8457. export_dynamic_flag_spec='${wl}-bexpall'
  8458. # It seems that -bexpall does not export symbols beginning with
  8459. # underscore (_), so it is better to generate a list of symbols to export.
  8460. always_export_symbols=yes
  8461. if test "$aix_use_runtimelinking" = yes; then
  8462. # Warning - without using the other runtime loading flags (-brtl),
  8463. # -berok will link without error, but may produce a broken library.
  8464. allow_undefined_flag='-berok'
  8465. # Determine the default libpath from the value encoded in an
  8466. # empty executable.
  8467. if test "${lt_cv_aix_libpath+set}" = set; then
  8468. aix_libpath=$lt_cv_aix_libpath
  8469. else
  8470. if ${lt_cv_aix_libpath_+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. int
  8476. main ()
  8477. {
  8478. ;
  8479. return 0;
  8480. }
  8481. _ACEOF
  8482. if ac_fn_c_try_link "$LINENO"; then :
  8483. lt_aix_libpath_sed='
  8484. /Import File Strings/,/^$/ {
  8485. /^0/ {
  8486. s/^0 *\([^ ]*\) *$/\1/
  8487. p
  8488. }
  8489. }'
  8490. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8491. # Check for a 64-bit object if we didn't find anything.
  8492. if test -z "$lt_cv_aix_libpath_"; then
  8493. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8494. fi
  8495. fi
  8496. rm -f core conftest.err conftest.$ac_objext \
  8497. conftest$ac_exeext conftest.$ac_ext
  8498. if test -z "$lt_cv_aix_libpath_"; then
  8499. lt_cv_aix_libpath_="/usr/lib:/lib"
  8500. fi
  8501. fi
  8502. aix_libpath=$lt_cv_aix_libpath_
  8503. fi
  8504. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8505. 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"
  8506. else
  8507. if test "$host_cpu" = ia64; then
  8508. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8509. allow_undefined_flag="-z nodefs"
  8510. 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"
  8511. else
  8512. # Determine the default libpath from the value encoded in an
  8513. # empty executable.
  8514. if test "${lt_cv_aix_libpath+set}" = set; then
  8515. aix_libpath=$lt_cv_aix_libpath
  8516. else
  8517. if ${lt_cv_aix_libpath_+:} false; then :
  8518. $as_echo_n "(cached) " >&6
  8519. else
  8520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8521. /* end confdefs.h. */
  8522. int
  8523. main ()
  8524. {
  8525. ;
  8526. return 0;
  8527. }
  8528. _ACEOF
  8529. if ac_fn_c_try_link "$LINENO"; then :
  8530. lt_aix_libpath_sed='
  8531. /Import File Strings/,/^$/ {
  8532. /^0/ {
  8533. s/^0 *\([^ ]*\) *$/\1/
  8534. p
  8535. }
  8536. }'
  8537. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8538. # Check for a 64-bit object if we didn't find anything.
  8539. if test -z "$lt_cv_aix_libpath_"; then
  8540. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8541. fi
  8542. fi
  8543. rm -f core conftest.err conftest.$ac_objext \
  8544. conftest$ac_exeext conftest.$ac_ext
  8545. if test -z "$lt_cv_aix_libpath_"; then
  8546. lt_cv_aix_libpath_="/usr/lib:/lib"
  8547. fi
  8548. fi
  8549. aix_libpath=$lt_cv_aix_libpath_
  8550. fi
  8551. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8552. # Warning - without using the other run time loading flags,
  8553. # -berok will link without error, but may produce a broken library.
  8554. no_undefined_flag=' ${wl}-bernotok'
  8555. allow_undefined_flag=' ${wl}-berok'
  8556. if test "$with_gnu_ld" = yes; then
  8557. # We only use this code for GNU lds that support --whole-archive.
  8558. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8559. else
  8560. # Exported symbols can be pulled into shared objects from archives
  8561. whole_archive_flag_spec='$convenience'
  8562. fi
  8563. archive_cmds_need_lc=yes
  8564. # This is similar to how AIX traditionally builds its shared libraries.
  8565. 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'
  8566. fi
  8567. fi
  8568. ;;
  8569. amigaos*)
  8570. case $host_cpu in
  8571. powerpc)
  8572. # see comment about AmigaOS4 .so support
  8573. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8574. archive_expsym_cmds=''
  8575. ;;
  8576. m68k)
  8577. 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)'
  8578. hardcode_libdir_flag_spec='-L$libdir'
  8579. hardcode_minus_L=yes
  8580. ;;
  8581. esac
  8582. ;;
  8583. bsdi[45]*)
  8584. export_dynamic_flag_spec=-rdynamic
  8585. ;;
  8586. cygwin* | mingw* | pw32* | cegcc*)
  8587. # When not using gcc, we currently assume that we are using
  8588. # Microsoft Visual C++.
  8589. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8590. # no search path for DLLs.
  8591. case $cc_basename in
  8592. cl*)
  8593. # Native MSVC
  8594. hardcode_libdir_flag_spec=' '
  8595. allow_undefined_flag=unsupported
  8596. always_export_symbols=yes
  8597. file_list_spec='@'
  8598. # Tell ltmain to make .lib files, not .a files.
  8599. libext=lib
  8600. # Tell ltmain to make .dll files, not .so files.
  8601. shrext_cmds=".dll"
  8602. # FIXME: Setting linknames here is a bad hack.
  8603. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8604. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8605. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8606. else
  8607. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8608. fi~
  8609. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8610. linknames='
  8611. # The linker will not automatically build a static lib if we build a DLL.
  8612. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8613. enable_shared_with_static_runtimes=yes
  8614. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8615. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8616. # Don't use ranlib
  8617. old_postinstall_cmds='chmod 644 $oldlib'
  8618. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8619. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8620. case $lt_outputfile in
  8621. *.exe|*.EXE) ;;
  8622. *)
  8623. lt_outputfile="$lt_outputfile.exe"
  8624. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8625. ;;
  8626. esac~
  8627. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8628. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8629. $RM "$lt_outputfile.manifest";
  8630. fi'
  8631. ;;
  8632. *)
  8633. # Assume MSVC wrapper
  8634. hardcode_libdir_flag_spec=' '
  8635. allow_undefined_flag=unsupported
  8636. # Tell ltmain to make .lib files, not .a files.
  8637. libext=lib
  8638. # Tell ltmain to make .dll files, not .so files.
  8639. shrext_cmds=".dll"
  8640. # FIXME: Setting linknames here is a bad hack.
  8641. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8642. # The linker will automatically build a .lib file if we build a DLL.
  8643. old_archive_from_new_cmds='true'
  8644. # FIXME: Should let the user specify the lib program.
  8645. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8646. enable_shared_with_static_runtimes=yes
  8647. ;;
  8648. esac
  8649. ;;
  8650. darwin* | rhapsody*)
  8651. archive_cmds_need_lc=no
  8652. hardcode_direct=no
  8653. hardcode_automatic=yes
  8654. hardcode_shlibpath_var=unsupported
  8655. if test "$lt_cv_ld_force_load" = "yes"; then
  8656. 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\"`'
  8657. else
  8658. whole_archive_flag_spec=''
  8659. fi
  8660. link_all_deplibs=yes
  8661. allow_undefined_flag="$_lt_dar_allow_undefined"
  8662. case $cc_basename in
  8663. ifort*) _lt_dar_can_shared=yes ;;
  8664. *) _lt_dar_can_shared=$GCC ;;
  8665. esac
  8666. if test "$_lt_dar_can_shared" = "yes"; then
  8667. output_verbose_link_cmd=func_echo_all
  8668. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8669. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8670. 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}"
  8671. 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}"
  8672. else
  8673. ld_shlibs=no
  8674. fi
  8675. ;;
  8676. dgux*)
  8677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8678. hardcode_libdir_flag_spec='-L$libdir'
  8679. hardcode_shlibpath_var=no
  8680. ;;
  8681. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8682. # support. Future versions do this automatically, but an explicit c++rt0.o
  8683. # does not break anything, and helps significantly (at the cost of a little
  8684. # extra space).
  8685. freebsd2.2*)
  8686. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8687. hardcode_libdir_flag_spec='-R$libdir'
  8688. hardcode_direct=yes
  8689. hardcode_shlibpath_var=no
  8690. ;;
  8691. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8692. freebsd2.*)
  8693. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8694. hardcode_direct=yes
  8695. hardcode_minus_L=yes
  8696. hardcode_shlibpath_var=no
  8697. ;;
  8698. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8699. freebsd* | dragonfly*)
  8700. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8701. hardcode_libdir_flag_spec='-R$libdir'
  8702. hardcode_direct=yes
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. hpux9*)
  8706. if test "$GCC" = yes; then
  8707. 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'
  8708. else
  8709. 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'
  8710. fi
  8711. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8712. hardcode_libdir_separator=:
  8713. hardcode_direct=yes
  8714. # hardcode_minus_L: Not really in the search PATH,
  8715. # but as the default location of the library.
  8716. hardcode_minus_L=yes
  8717. export_dynamic_flag_spec='${wl}-E'
  8718. ;;
  8719. hpux10*)
  8720. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8721. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8722. else
  8723. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8724. fi
  8725. if test "$with_gnu_ld" = no; then
  8726. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8727. hardcode_libdir_separator=:
  8728. hardcode_direct=yes
  8729. hardcode_direct_absolute=yes
  8730. export_dynamic_flag_spec='${wl}-E'
  8731. # hardcode_minus_L: Not really in the search PATH,
  8732. # but as the default location of the library.
  8733. hardcode_minus_L=yes
  8734. fi
  8735. ;;
  8736. hpux11*)
  8737. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8738. case $host_cpu in
  8739. hppa*64*)
  8740. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8741. ;;
  8742. ia64*)
  8743. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8744. ;;
  8745. *)
  8746. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8747. ;;
  8748. esac
  8749. else
  8750. case $host_cpu in
  8751. hppa*64*)
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8753. ;;
  8754. ia64*)
  8755. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8756. ;;
  8757. *)
  8758. # Older versions of the 11.00 compiler do not understand -b yet
  8759. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8761. $as_echo_n "checking if $CC understands -b... " >&6; }
  8762. if ${lt_cv_prog_compiler__b+:} false; then :
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. lt_cv_prog_compiler__b=no
  8766. save_LDFLAGS="$LDFLAGS"
  8767. LDFLAGS="$LDFLAGS -b"
  8768. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8769. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8770. # The linker can only warn and ignore the option if not recognized
  8771. # So say no if there are warnings
  8772. if test -s conftest.err; then
  8773. # Append any errors to the config.log.
  8774. cat conftest.err 1>&5
  8775. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8776. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8777. if diff conftest.exp conftest.er2 >/dev/null; then
  8778. lt_cv_prog_compiler__b=yes
  8779. fi
  8780. else
  8781. lt_cv_prog_compiler__b=yes
  8782. fi
  8783. fi
  8784. $RM -r conftest*
  8785. LDFLAGS="$save_LDFLAGS"
  8786. fi
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8788. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8789. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8790. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8791. else
  8792. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8793. fi
  8794. ;;
  8795. esac
  8796. fi
  8797. if test "$with_gnu_ld" = no; then
  8798. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8799. hardcode_libdir_separator=:
  8800. case $host_cpu in
  8801. hppa*64*|ia64*)
  8802. hardcode_direct=no
  8803. hardcode_shlibpath_var=no
  8804. ;;
  8805. *)
  8806. hardcode_direct=yes
  8807. hardcode_direct_absolute=yes
  8808. export_dynamic_flag_spec='${wl}-E'
  8809. # hardcode_minus_L: Not really in the search PATH,
  8810. # but as the default location of the library.
  8811. hardcode_minus_L=yes
  8812. ;;
  8813. esac
  8814. fi
  8815. ;;
  8816. irix5* | irix6* | nonstopux*)
  8817. if test "$GCC" = yes; then
  8818. 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'
  8819. # Try to use the -exported_symbol ld option, if it does not
  8820. # work, assume that -exports_file does not work either and
  8821. # implicitly export all symbols.
  8822. # This should be the same for all languages, so no per-tag cache variable.
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8824. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8825. if ${lt_cv_irix_exported_symbol+:} false; then :
  8826. $as_echo_n "(cached) " >&6
  8827. else
  8828. save_LDFLAGS="$LDFLAGS"
  8829. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8831. /* end confdefs.h. */
  8832. int foo (void) { return 0; }
  8833. _ACEOF
  8834. if ac_fn_c_try_link "$LINENO"; then :
  8835. lt_cv_irix_exported_symbol=yes
  8836. else
  8837. lt_cv_irix_exported_symbol=no
  8838. fi
  8839. rm -f core conftest.err conftest.$ac_objext \
  8840. conftest$ac_exeext conftest.$ac_ext
  8841. LDFLAGS="$save_LDFLAGS"
  8842. fi
  8843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8844. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8845. if test "$lt_cv_irix_exported_symbol" = yes; then
  8846. 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'
  8847. fi
  8848. else
  8849. 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'
  8850. 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'
  8851. fi
  8852. archive_cmds_need_lc='no'
  8853. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8854. hardcode_libdir_separator=:
  8855. inherit_rpath=yes
  8856. link_all_deplibs=yes
  8857. ;;
  8858. netbsd*)
  8859. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8860. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8861. else
  8862. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8863. fi
  8864. hardcode_libdir_flag_spec='-R$libdir'
  8865. hardcode_direct=yes
  8866. hardcode_shlibpath_var=no
  8867. ;;
  8868. newsos6)
  8869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8870. hardcode_direct=yes
  8871. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8872. hardcode_libdir_separator=:
  8873. hardcode_shlibpath_var=no
  8874. ;;
  8875. *nto* | *qnx*)
  8876. ;;
  8877. openbsd*)
  8878. if test -f /usr/libexec/ld.so; then
  8879. hardcode_direct=yes
  8880. hardcode_shlibpath_var=no
  8881. hardcode_direct_absolute=yes
  8882. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8883. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8884. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8885. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8886. export_dynamic_flag_spec='${wl}-E'
  8887. else
  8888. case $host_os in
  8889. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8890. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8891. hardcode_libdir_flag_spec='-R$libdir'
  8892. ;;
  8893. *)
  8894. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8895. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8896. ;;
  8897. esac
  8898. fi
  8899. else
  8900. ld_shlibs=no
  8901. fi
  8902. ;;
  8903. os2*)
  8904. hardcode_libdir_flag_spec='-L$libdir'
  8905. hardcode_minus_L=yes
  8906. allow_undefined_flag=unsupported
  8907. 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'
  8908. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8909. ;;
  8910. osf3*)
  8911. if test "$GCC" = yes; then
  8912. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8913. 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'
  8914. else
  8915. allow_undefined_flag=' -expect_unresolved \*'
  8916. 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'
  8917. fi
  8918. archive_cmds_need_lc='no'
  8919. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8920. hardcode_libdir_separator=:
  8921. ;;
  8922. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8923. if test "$GCC" = yes; then
  8924. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8925. 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'
  8926. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8927. else
  8928. allow_undefined_flag=' -expect_unresolved \*'
  8929. 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'
  8930. 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~
  8931. $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'
  8932. # Both c and cxx compiler support -rpath directly
  8933. hardcode_libdir_flag_spec='-rpath $libdir'
  8934. fi
  8935. archive_cmds_need_lc='no'
  8936. hardcode_libdir_separator=:
  8937. ;;
  8938. solaris*)
  8939. no_undefined_flag=' -z defs'
  8940. if test "$GCC" = yes; then
  8941. wlarc='${wl}'
  8942. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8944. $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'
  8945. else
  8946. case `$CC -V 2>&1` in
  8947. *"Compilers 5.0"*)
  8948. wlarc=''
  8949. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8950. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8951. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8952. ;;
  8953. *)
  8954. wlarc='${wl}'
  8955. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8956. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8957. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8958. ;;
  8959. esac
  8960. fi
  8961. hardcode_libdir_flag_spec='-R$libdir'
  8962. hardcode_shlibpath_var=no
  8963. case $host_os in
  8964. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8965. *)
  8966. # The compiler driver will combine and reorder linker options,
  8967. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8968. # but is careful enough not to reorder.
  8969. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8970. if test "$GCC" = yes; then
  8971. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8972. else
  8973. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8974. fi
  8975. ;;
  8976. esac
  8977. link_all_deplibs=yes
  8978. ;;
  8979. sunos4*)
  8980. if test "x$host_vendor" = xsequent; then
  8981. # Use $CC to link under sequent, because it throws in some extra .o
  8982. # files that make .init and .fini sections work.
  8983. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8984. else
  8985. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8986. fi
  8987. hardcode_libdir_flag_spec='-L$libdir'
  8988. hardcode_direct=yes
  8989. hardcode_minus_L=yes
  8990. hardcode_shlibpath_var=no
  8991. ;;
  8992. sysv4)
  8993. case $host_vendor in
  8994. sni)
  8995. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8996. hardcode_direct=yes # is this really true???
  8997. ;;
  8998. siemens)
  8999. ## LD is ld it makes a PLAMLIB
  9000. ## CC just makes a GrossModule.
  9001. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9002. reload_cmds='$CC -r -o $output$reload_objs'
  9003. hardcode_direct=no
  9004. ;;
  9005. motorola)
  9006. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9007. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9008. ;;
  9009. esac
  9010. runpath_var='LD_RUN_PATH'
  9011. hardcode_shlibpath_var=no
  9012. ;;
  9013. sysv4.3*)
  9014. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9015. hardcode_shlibpath_var=no
  9016. export_dynamic_flag_spec='-Bexport'
  9017. ;;
  9018. sysv4*MP*)
  9019. if test -d /usr/nec; then
  9020. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9021. hardcode_shlibpath_var=no
  9022. runpath_var=LD_RUN_PATH
  9023. hardcode_runpath_var=yes
  9024. ld_shlibs=yes
  9025. fi
  9026. ;;
  9027. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9028. no_undefined_flag='${wl}-z,text'
  9029. archive_cmds_need_lc=no
  9030. hardcode_shlibpath_var=no
  9031. runpath_var='LD_RUN_PATH'
  9032. if test "$GCC" = yes; then
  9033. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9034. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. else
  9036. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9037. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9038. fi
  9039. ;;
  9040. sysv5* | sco3.2v5* | sco5v6*)
  9041. # Note: We can NOT use -z defs as we might desire, because we do not
  9042. # link with -lc, and that would cause any symbols used from libc to
  9043. # always be unresolved, which means just about no library would
  9044. # ever link correctly. If we're not using GNU ld we use -z text
  9045. # though, which does catch some bad symbols but isn't as heavy-handed
  9046. # as -z defs.
  9047. no_undefined_flag='${wl}-z,text'
  9048. allow_undefined_flag='${wl}-z,nodefs'
  9049. archive_cmds_need_lc=no
  9050. hardcode_shlibpath_var=no
  9051. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9052. hardcode_libdir_separator=':'
  9053. link_all_deplibs=yes
  9054. export_dynamic_flag_spec='${wl}-Bexport'
  9055. runpath_var='LD_RUN_PATH'
  9056. if test "$GCC" = yes; then
  9057. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9058. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9059. else
  9060. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9061. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9062. fi
  9063. ;;
  9064. uts4*)
  9065. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9066. hardcode_libdir_flag_spec='-L$libdir'
  9067. hardcode_shlibpath_var=no
  9068. ;;
  9069. *)
  9070. ld_shlibs=no
  9071. ;;
  9072. esac
  9073. if test x$host_vendor = xsni; then
  9074. case $host in
  9075. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9076. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9077. ;;
  9078. esac
  9079. fi
  9080. fi
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9082. $as_echo "$ld_shlibs" >&6; }
  9083. test "$ld_shlibs" = no && can_build_shared=no
  9084. with_gnu_ld=$with_gnu_ld
  9085. #
  9086. # Do we need to explicitly link libc?
  9087. #
  9088. case "x$archive_cmds_need_lc" in
  9089. x|xyes)
  9090. # Assume -lc should be added
  9091. archive_cmds_need_lc=yes
  9092. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9093. case $archive_cmds in
  9094. *'~'*)
  9095. # FIXME: we may have to deal with multi-command sequences.
  9096. ;;
  9097. '$CC '*)
  9098. # Test whether the compiler implicitly links with -lc since on some
  9099. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9100. # to ld, don't add -lc before -lgcc.
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9102. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9103. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9104. $as_echo_n "(cached) " >&6
  9105. else
  9106. $RM conftest*
  9107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9108. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9109. (eval $ac_compile) 2>&5
  9110. ac_status=$?
  9111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9112. test $ac_status = 0; } 2>conftest.err; then
  9113. soname=conftest
  9114. lib=conftest
  9115. libobjs=conftest.$ac_objext
  9116. deplibs=
  9117. wl=$lt_prog_compiler_wl
  9118. pic_flag=$lt_prog_compiler_pic
  9119. compiler_flags=-v
  9120. linker_flags=-v
  9121. verstring=
  9122. output_objdir=.
  9123. libname=conftest
  9124. lt_save_allow_undefined_flag=$allow_undefined_flag
  9125. allow_undefined_flag=
  9126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9127. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9128. ac_status=$?
  9129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9130. test $ac_status = 0; }
  9131. then
  9132. lt_cv_archive_cmds_need_lc=no
  9133. else
  9134. lt_cv_archive_cmds_need_lc=yes
  9135. fi
  9136. allow_undefined_flag=$lt_save_allow_undefined_flag
  9137. else
  9138. cat conftest.err 1>&5
  9139. fi
  9140. $RM conftest*
  9141. fi
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9143. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9144. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9145. ;;
  9146. esac
  9147. fi
  9148. ;;
  9149. esac
  9150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9151. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9152. if test "$GCC" = yes; then
  9153. case $host_os in
  9154. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9155. *) lt_awk_arg="/^libraries:/" ;;
  9156. esac
  9157. case $host_os in
  9158. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9159. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9160. esac
  9161. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9162. case $lt_search_path_spec in
  9163. *\;*)
  9164. # if the path contains ";" then we assume it to be the separator
  9165. # otherwise default to the standard path separator (i.e. ":") - it is
  9166. # assumed that no part of a normal pathname contains ";" but that should
  9167. # okay in the real world where ";" in dirpaths is itself problematic.
  9168. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9169. ;;
  9170. *)
  9171. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9172. ;;
  9173. esac
  9174. # Ok, now we have the path, separated by spaces, we can step through it
  9175. # and add multilib dir if necessary.
  9176. lt_tmp_lt_search_path_spec=
  9177. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9178. for lt_sys_path in $lt_search_path_spec; do
  9179. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9180. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9181. else
  9182. test -d "$lt_sys_path" && \
  9183. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9184. fi
  9185. done
  9186. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9187. BEGIN {RS=" "; FS="/|\n";} {
  9188. lt_foo="";
  9189. lt_count=0;
  9190. for (lt_i = NF; lt_i > 0; lt_i--) {
  9191. if ($lt_i != "" && $lt_i != ".") {
  9192. if ($lt_i == "..") {
  9193. lt_count++;
  9194. } else {
  9195. if (lt_count == 0) {
  9196. lt_foo="/" $lt_i lt_foo;
  9197. } else {
  9198. lt_count--;
  9199. }
  9200. }
  9201. }
  9202. }
  9203. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9204. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9205. }'`
  9206. # AWK program above erroneously prepends '/' to C:/dos/paths
  9207. # for these hosts.
  9208. case $host_os in
  9209. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9210. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9211. esac
  9212. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9213. else
  9214. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9215. fi
  9216. library_names_spec=
  9217. libname_spec='lib$name'
  9218. soname_spec=
  9219. shrext_cmds=".so"
  9220. postinstall_cmds=
  9221. postuninstall_cmds=
  9222. finish_cmds=
  9223. finish_eval=
  9224. shlibpath_var=
  9225. shlibpath_overrides_runpath=unknown
  9226. version_type=none
  9227. dynamic_linker="$host_os ld.so"
  9228. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9229. need_lib_prefix=unknown
  9230. hardcode_into_libs=no
  9231. # when you set need_version to no, make sure it does not cause -set_version
  9232. # flags to be left without arguments
  9233. need_version=unknown
  9234. case $host_os in
  9235. aix3*)
  9236. version_type=linux # correct to gnu/linux during the next big refactor
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9238. shlibpath_var=LIBPATH
  9239. # AIX 3 has no versioning support, so we append a major version to the name.
  9240. soname_spec='${libname}${release}${shared_ext}$major'
  9241. ;;
  9242. aix[4-9]*)
  9243. version_type=linux # correct to gnu/linux during the next big refactor
  9244. need_lib_prefix=no
  9245. need_version=no
  9246. hardcode_into_libs=yes
  9247. if test "$host_cpu" = ia64; then
  9248. # AIX 5 supports IA64
  9249. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. else
  9252. # With GCC up to 2.95.x, collect2 would create an import file
  9253. # for dependence libraries. The import file would start with
  9254. # the line `#! .'. This would cause the generated library to
  9255. # depend on `.', always an invalid library. This was fixed in
  9256. # development snapshots of GCC prior to 3.0.
  9257. case $host_os in
  9258. aix4 | aix4.[01] | aix4.[01].*)
  9259. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9260. echo ' yes '
  9261. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9262. :
  9263. else
  9264. can_build_shared=no
  9265. fi
  9266. ;;
  9267. esac
  9268. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9269. # soname into executable. Probably we can add versioning support to
  9270. # collect2, so additional links can be useful in future.
  9271. if test "$aix_use_runtimelinking" = yes; then
  9272. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9273. # instead of lib<name>.a to let people know that these are not
  9274. # typical AIX shared libraries.
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9276. else
  9277. # We preserve .a as extension for shared libraries through AIX4.2
  9278. # and later when we are not doing run time linking.
  9279. library_names_spec='${libname}${release}.a $libname.a'
  9280. soname_spec='${libname}${release}${shared_ext}$major'
  9281. fi
  9282. shlibpath_var=LIBPATH
  9283. fi
  9284. ;;
  9285. amigaos*)
  9286. case $host_cpu in
  9287. powerpc)
  9288. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9289. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. ;;
  9292. m68k)
  9293. library_names_spec='$libname.ixlibrary $libname.a'
  9294. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9295. 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'
  9296. ;;
  9297. esac
  9298. ;;
  9299. beos*)
  9300. library_names_spec='${libname}${shared_ext}'
  9301. dynamic_linker="$host_os ld.so"
  9302. shlibpath_var=LIBRARY_PATH
  9303. ;;
  9304. bsdi[45]*)
  9305. version_type=linux # correct to gnu/linux during the next big refactor
  9306. need_version=no
  9307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9308. soname_spec='${libname}${release}${shared_ext}$major'
  9309. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9310. shlibpath_var=LD_LIBRARY_PATH
  9311. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9312. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9313. # the default ld.so.conf also contains /usr/contrib/lib and
  9314. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9315. # libtool to hard-code these into programs
  9316. ;;
  9317. cygwin* | mingw* | pw32* | cegcc*)
  9318. version_type=windows
  9319. shrext_cmds=".dll"
  9320. need_version=no
  9321. need_lib_prefix=no
  9322. case $GCC,$cc_basename in
  9323. yes,*)
  9324. # gcc
  9325. library_names_spec='$libname.dll.a'
  9326. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9327. postinstall_cmds='base_file=`basename \${file}`~
  9328. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9329. dldir=$destdir/`dirname \$dlpath`~
  9330. test -d \$dldir || mkdir -p \$dldir~
  9331. $install_prog $dir/$dlname \$dldir/$dlname~
  9332. chmod a+x \$dldir/$dlname~
  9333. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9334. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9335. fi'
  9336. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9337. dlpath=$dir/\$dldll~
  9338. $RM \$dlpath'
  9339. shlibpath_overrides_runpath=yes
  9340. case $host_os in
  9341. cygwin*)
  9342. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9343. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9344. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9345. ;;
  9346. mingw* | cegcc*)
  9347. # MinGW DLLs use traditional 'lib' prefix
  9348. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9349. ;;
  9350. pw32*)
  9351. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9352. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9353. ;;
  9354. esac
  9355. dynamic_linker='Win32 ld.exe'
  9356. ;;
  9357. *,cl*)
  9358. # Native MSVC
  9359. libname_spec='$name'
  9360. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9361. library_names_spec='${libname}.dll.lib'
  9362. case $build_os in
  9363. mingw*)
  9364. sys_lib_search_path_spec=
  9365. lt_save_ifs=$IFS
  9366. IFS=';'
  9367. for lt_path in $LIB
  9368. do
  9369. IFS=$lt_save_ifs
  9370. # Let DOS variable expansion print the short 8.3 style file name.
  9371. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9372. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9373. done
  9374. IFS=$lt_save_ifs
  9375. # Convert to MSYS style.
  9376. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9377. ;;
  9378. cygwin*)
  9379. # Convert to unix form, then to dos form, then back to unix form
  9380. # but this time dos style (no spaces!) so that the unix form looks
  9381. # like /cygdrive/c/PROGRA~1:/cygdr...
  9382. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9383. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9384. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9385. ;;
  9386. *)
  9387. sys_lib_search_path_spec="$LIB"
  9388. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9389. # It is most probably a Windows format PATH.
  9390. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9391. else
  9392. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9393. fi
  9394. # FIXME: find the short name or the path components, as spaces are
  9395. # common. (e.g. "Program Files" -> "PROGRA~1")
  9396. ;;
  9397. esac
  9398. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9399. postinstall_cmds='base_file=`basename \${file}`~
  9400. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9401. dldir=$destdir/`dirname \$dlpath`~
  9402. test -d \$dldir || mkdir -p \$dldir~
  9403. $install_prog $dir/$dlname \$dldir/$dlname'
  9404. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9405. dlpath=$dir/\$dldll~
  9406. $RM \$dlpath'
  9407. shlibpath_overrides_runpath=yes
  9408. dynamic_linker='Win32 link.exe'
  9409. ;;
  9410. *)
  9411. # Assume MSVC wrapper
  9412. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9413. dynamic_linker='Win32 ld.exe'
  9414. ;;
  9415. esac
  9416. # FIXME: first we should search . and the directory the executable is in
  9417. shlibpath_var=PATH
  9418. ;;
  9419. darwin* | rhapsody*)
  9420. dynamic_linker="$host_os dyld"
  9421. version_type=darwin
  9422. need_lib_prefix=no
  9423. need_version=no
  9424. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9425. soname_spec='${libname}${release}${major}$shared_ext'
  9426. shlibpath_overrides_runpath=yes
  9427. shlibpath_var=DYLD_LIBRARY_PATH
  9428. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9429. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9430. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9431. ;;
  9432. dgux*)
  9433. version_type=linux # correct to gnu/linux during the next big refactor
  9434. need_lib_prefix=no
  9435. need_version=no
  9436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9437. soname_spec='${libname}${release}${shared_ext}$major'
  9438. shlibpath_var=LD_LIBRARY_PATH
  9439. ;;
  9440. freebsd* | dragonfly*)
  9441. # DragonFly does not have aout. When/if they implement a new
  9442. # versioning mechanism, adjust this.
  9443. if test -x /usr/bin/objformat; then
  9444. objformat=`/usr/bin/objformat`
  9445. else
  9446. case $host_os in
  9447. freebsd[23].*) objformat=aout ;;
  9448. *) objformat=elf ;;
  9449. esac
  9450. fi
  9451. version_type=freebsd-$objformat
  9452. case $version_type in
  9453. freebsd-elf*)
  9454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9455. need_version=no
  9456. need_lib_prefix=no
  9457. ;;
  9458. freebsd-*)
  9459. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9460. need_version=yes
  9461. ;;
  9462. esac
  9463. shlibpath_var=LD_LIBRARY_PATH
  9464. case $host_os in
  9465. freebsd2.*)
  9466. shlibpath_overrides_runpath=yes
  9467. ;;
  9468. freebsd3.[01]* | freebsdelf3.[01]*)
  9469. shlibpath_overrides_runpath=yes
  9470. hardcode_into_libs=yes
  9471. ;;
  9472. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9473. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9474. shlibpath_overrides_runpath=no
  9475. hardcode_into_libs=yes
  9476. ;;
  9477. *) # from 4.6 on, and DragonFly
  9478. shlibpath_overrides_runpath=yes
  9479. hardcode_into_libs=yes
  9480. ;;
  9481. esac
  9482. ;;
  9483. gnu*)
  9484. version_type=linux # correct to gnu/linux during the next big refactor
  9485. need_lib_prefix=no
  9486. need_version=no
  9487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9488. soname_spec='${libname}${release}${shared_ext}$major'
  9489. shlibpath_var=LD_LIBRARY_PATH
  9490. shlibpath_overrides_runpath=no
  9491. hardcode_into_libs=yes
  9492. ;;
  9493. haiku*)
  9494. version_type=linux # correct to gnu/linux during the next big refactor
  9495. need_lib_prefix=no
  9496. need_version=no
  9497. dynamic_linker="$host_os runtime_loader"
  9498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9499. soname_spec='${libname}${release}${shared_ext}$major'
  9500. shlibpath_var=LIBRARY_PATH
  9501. shlibpath_overrides_runpath=yes
  9502. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9503. hardcode_into_libs=yes
  9504. ;;
  9505. hpux9* | hpux10* | hpux11*)
  9506. # Give a soname corresponding to the major version so that dld.sl refuses to
  9507. # link against other versions.
  9508. version_type=sunos
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. case $host_cpu in
  9512. ia64*)
  9513. shrext_cmds='.so'
  9514. hardcode_into_libs=yes
  9515. dynamic_linker="$host_os dld.so"
  9516. shlibpath_var=LD_LIBRARY_PATH
  9517. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9519. soname_spec='${libname}${release}${shared_ext}$major'
  9520. if test "X$HPUX_IA64_MODE" = X32; then
  9521. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9522. else
  9523. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9524. fi
  9525. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9526. ;;
  9527. hppa*64*)
  9528. shrext_cmds='.sl'
  9529. hardcode_into_libs=yes
  9530. dynamic_linker="$host_os dld.sl"
  9531. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9532. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9534. soname_spec='${libname}${release}${shared_ext}$major'
  9535. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9536. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9537. ;;
  9538. *)
  9539. shrext_cmds='.sl'
  9540. dynamic_linker="$host_os dld.sl"
  9541. shlibpath_var=SHLIB_PATH
  9542. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9544. soname_spec='${libname}${release}${shared_ext}$major'
  9545. ;;
  9546. esac
  9547. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9548. postinstall_cmds='chmod 555 $lib'
  9549. # or fails outright, so override atomically:
  9550. install_override_mode=555
  9551. ;;
  9552. interix[3-9]*)
  9553. version_type=linux # correct to gnu/linux during the next big refactor
  9554. need_lib_prefix=no
  9555. need_version=no
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9557. soname_spec='${libname}${release}${shared_ext}$major'
  9558. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9559. shlibpath_var=LD_LIBRARY_PATH
  9560. shlibpath_overrides_runpath=no
  9561. hardcode_into_libs=yes
  9562. ;;
  9563. irix5* | irix6* | nonstopux*)
  9564. case $host_os in
  9565. nonstopux*) version_type=nonstopux ;;
  9566. *)
  9567. if test "$lt_cv_prog_gnu_ld" = yes; then
  9568. version_type=linux # correct to gnu/linux during the next big refactor
  9569. else
  9570. version_type=irix
  9571. fi ;;
  9572. esac
  9573. need_lib_prefix=no
  9574. need_version=no
  9575. soname_spec='${libname}${release}${shared_ext}$major'
  9576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9577. case $host_os in
  9578. irix5* | nonstopux*)
  9579. libsuff= shlibsuff=
  9580. ;;
  9581. *)
  9582. case $LD in # libtool.m4 will add one of these switches to LD
  9583. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9584. libsuff= shlibsuff= libmagic=32-bit;;
  9585. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9586. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9587. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9588. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9589. *) libsuff= shlibsuff= libmagic=never-match;;
  9590. esac
  9591. ;;
  9592. esac
  9593. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9594. shlibpath_overrides_runpath=no
  9595. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9596. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9597. hardcode_into_libs=yes
  9598. ;;
  9599. # No shared lib support for Linux oldld, aout, or coff.
  9600. linux*oldld* | linux*aout* | linux*coff*)
  9601. dynamic_linker=no
  9602. ;;
  9603. # This must be glibc/ELF.
  9604. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9605. version_type=linux # correct to gnu/linux during the next big refactor
  9606. need_lib_prefix=no
  9607. need_version=no
  9608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9609. soname_spec='${libname}${release}${shared_ext}$major'
  9610. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9611. shlibpath_var=LD_LIBRARY_PATH
  9612. shlibpath_overrides_runpath=no
  9613. # Some binutils ld are patched to set DT_RUNPATH
  9614. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9615. $as_echo_n "(cached) " >&6
  9616. else
  9617. lt_cv_shlibpath_overrides_runpath=no
  9618. save_LDFLAGS=$LDFLAGS
  9619. save_libdir=$libdir
  9620. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9621. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9623. /* end confdefs.h. */
  9624. int
  9625. main ()
  9626. {
  9627. ;
  9628. return 0;
  9629. }
  9630. _ACEOF
  9631. if ac_fn_c_try_link "$LINENO"; then :
  9632. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9633. lt_cv_shlibpath_overrides_runpath=yes
  9634. fi
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637. conftest$ac_exeext conftest.$ac_ext
  9638. LDFLAGS=$save_LDFLAGS
  9639. libdir=$save_libdir
  9640. fi
  9641. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9642. # This implies no fast_install, which is unacceptable.
  9643. # Some rework will be needed to allow for fast_install
  9644. # before this can be enabled.
  9645. hardcode_into_libs=yes
  9646. # Append ld.so.conf contents to the search path
  9647. if test -f /etc/ld.so.conf; then
  9648. 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' ' '`
  9649. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9650. fi
  9651. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9652. # powerpc, because MkLinux only supported shared libraries with the
  9653. # GNU dynamic linker. Since this was broken with cross compilers,
  9654. # most powerpc-linux boxes support dynamic linking these days and
  9655. # people can always --disable-shared, the test was removed, and we
  9656. # assume the GNU/Linux dynamic linker is in use.
  9657. dynamic_linker='GNU/Linux ld.so'
  9658. ;;
  9659. netbsd*)
  9660. version_type=sunos
  9661. need_lib_prefix=no
  9662. need_version=no
  9663. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9665. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9666. dynamic_linker='NetBSD (a.out) ld.so'
  9667. else
  9668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9669. soname_spec='${libname}${release}${shared_ext}$major'
  9670. dynamic_linker='NetBSD ld.elf_so'
  9671. fi
  9672. shlibpath_var=LD_LIBRARY_PATH
  9673. shlibpath_overrides_runpath=yes
  9674. hardcode_into_libs=yes
  9675. ;;
  9676. newsos6)
  9677. version_type=linux # correct to gnu/linux during the next big refactor
  9678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9679. shlibpath_var=LD_LIBRARY_PATH
  9680. shlibpath_overrides_runpath=yes
  9681. ;;
  9682. *nto* | *qnx*)
  9683. version_type=qnx
  9684. need_lib_prefix=no
  9685. need_version=no
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9687. soname_spec='${libname}${release}${shared_ext}$major'
  9688. shlibpath_var=LD_LIBRARY_PATH
  9689. shlibpath_overrides_runpath=no
  9690. hardcode_into_libs=yes
  9691. dynamic_linker='ldqnx.so'
  9692. ;;
  9693. openbsd*)
  9694. version_type=sunos
  9695. sys_lib_dlsearch_path_spec="/usr/lib"
  9696. need_lib_prefix=no
  9697. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9698. case $host_os in
  9699. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9700. *) need_version=no ;;
  9701. esac
  9702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9703. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9704. shlibpath_var=LD_LIBRARY_PATH
  9705. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9706. case $host_os in
  9707. openbsd2.[89] | openbsd2.[89].*)
  9708. shlibpath_overrides_runpath=no
  9709. ;;
  9710. *)
  9711. shlibpath_overrides_runpath=yes
  9712. ;;
  9713. esac
  9714. else
  9715. shlibpath_overrides_runpath=yes
  9716. fi
  9717. ;;
  9718. os2*)
  9719. libname_spec='$name'
  9720. shrext_cmds=".dll"
  9721. need_lib_prefix=no
  9722. library_names_spec='$libname${shared_ext} $libname.a'
  9723. dynamic_linker='OS/2 ld.exe'
  9724. shlibpath_var=LIBPATH
  9725. ;;
  9726. osf3* | osf4* | osf5*)
  9727. version_type=osf
  9728. need_lib_prefix=no
  9729. need_version=no
  9730. soname_spec='${libname}${release}${shared_ext}$major'
  9731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9732. shlibpath_var=LD_LIBRARY_PATH
  9733. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9734. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9735. ;;
  9736. rdos*)
  9737. dynamic_linker=no
  9738. ;;
  9739. solaris*)
  9740. version_type=linux # correct to gnu/linux during the next big refactor
  9741. need_lib_prefix=no
  9742. need_version=no
  9743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9744. soname_spec='${libname}${release}${shared_ext}$major'
  9745. shlibpath_var=LD_LIBRARY_PATH
  9746. shlibpath_overrides_runpath=yes
  9747. hardcode_into_libs=yes
  9748. # ldd complains unless libraries are executable
  9749. postinstall_cmds='chmod +x $lib'
  9750. ;;
  9751. sunos4*)
  9752. version_type=sunos
  9753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9754. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9755. shlibpath_var=LD_LIBRARY_PATH
  9756. shlibpath_overrides_runpath=yes
  9757. if test "$with_gnu_ld" = yes; then
  9758. need_lib_prefix=no
  9759. fi
  9760. need_version=yes
  9761. ;;
  9762. sysv4 | sysv4.3*)
  9763. version_type=linux # correct to gnu/linux during the next big refactor
  9764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9765. soname_spec='${libname}${release}${shared_ext}$major'
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. case $host_vendor in
  9768. sni)
  9769. shlibpath_overrides_runpath=no
  9770. need_lib_prefix=no
  9771. runpath_var=LD_RUN_PATH
  9772. ;;
  9773. siemens)
  9774. need_lib_prefix=no
  9775. ;;
  9776. motorola)
  9777. need_lib_prefix=no
  9778. need_version=no
  9779. shlibpath_overrides_runpath=no
  9780. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9781. ;;
  9782. esac
  9783. ;;
  9784. sysv4*MP*)
  9785. if test -d /usr/nec ;then
  9786. version_type=linux # correct to gnu/linux during the next big refactor
  9787. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9788. soname_spec='$libname${shared_ext}.$major'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. fi
  9791. ;;
  9792. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9793. version_type=freebsd-elf
  9794. need_lib_prefix=no
  9795. need_version=no
  9796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9797. soname_spec='${libname}${release}${shared_ext}$major'
  9798. shlibpath_var=LD_LIBRARY_PATH
  9799. shlibpath_overrides_runpath=yes
  9800. hardcode_into_libs=yes
  9801. if test "$with_gnu_ld" = yes; then
  9802. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9803. else
  9804. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9805. case $host_os in
  9806. sco3.2v5*)
  9807. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9808. ;;
  9809. esac
  9810. fi
  9811. sys_lib_dlsearch_path_spec='/usr/lib'
  9812. ;;
  9813. tpf*)
  9814. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9815. version_type=linux # correct to gnu/linux during the next big refactor
  9816. need_lib_prefix=no
  9817. need_version=no
  9818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9819. shlibpath_var=LD_LIBRARY_PATH
  9820. shlibpath_overrides_runpath=no
  9821. hardcode_into_libs=yes
  9822. ;;
  9823. uts4*)
  9824. version_type=linux # correct to gnu/linux during the next big refactor
  9825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9826. soname_spec='${libname}${release}${shared_ext}$major'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. ;;
  9829. *)
  9830. dynamic_linker=no
  9831. ;;
  9832. esac
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9834. $as_echo "$dynamic_linker" >&6; }
  9835. test "$dynamic_linker" = no && can_build_shared=no
  9836. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9837. if test "$GCC" = yes; then
  9838. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9839. fi
  9840. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9841. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9842. fi
  9843. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9844. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9847. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9848. hardcode_action=
  9849. if test -n "$hardcode_libdir_flag_spec" ||
  9850. test -n "$runpath_var" ||
  9851. test "X$hardcode_automatic" = "Xyes" ; then
  9852. # We can hardcode non-existent directories.
  9853. if test "$hardcode_direct" != no &&
  9854. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9855. # have to relink, otherwise we might link with an installed library
  9856. # when we should be linking with a yet-to-be-installed one
  9857. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9858. test "$hardcode_minus_L" != no; then
  9859. # Linking always hardcodes the temporary library directory.
  9860. hardcode_action=relink
  9861. else
  9862. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9863. hardcode_action=immediate
  9864. fi
  9865. else
  9866. # We cannot hardcode anything, or else we can only hardcode existing
  9867. # directories.
  9868. hardcode_action=unsupported
  9869. fi
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9871. $as_echo "$hardcode_action" >&6; }
  9872. if test "$hardcode_action" = relink ||
  9873. test "$inherit_rpath" = yes; then
  9874. # Fast installation is not supported
  9875. enable_fast_install=no
  9876. elif test "$shlibpath_overrides_runpath" = yes ||
  9877. test "$enable_shared" = no; then
  9878. # Fast installation is not necessary
  9879. enable_fast_install=needless
  9880. fi
  9881. if test "x$enable_dlopen" != xyes; then
  9882. enable_dlopen=unknown
  9883. enable_dlopen_self=unknown
  9884. enable_dlopen_self_static=unknown
  9885. else
  9886. lt_cv_dlopen=no
  9887. lt_cv_dlopen_libs=
  9888. case $host_os in
  9889. beos*)
  9890. lt_cv_dlopen="load_add_on"
  9891. lt_cv_dlopen_libs=
  9892. lt_cv_dlopen_self=yes
  9893. ;;
  9894. mingw* | pw32* | cegcc*)
  9895. lt_cv_dlopen="LoadLibrary"
  9896. lt_cv_dlopen_libs=
  9897. ;;
  9898. cygwin*)
  9899. lt_cv_dlopen="dlopen"
  9900. lt_cv_dlopen_libs=
  9901. ;;
  9902. darwin*)
  9903. # if libdl is installed we need to link against it
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9905. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9906. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9907. $as_echo_n "(cached) " >&6
  9908. else
  9909. ac_check_lib_save_LIBS=$LIBS
  9910. LIBS="-ldl $LIBS"
  9911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9912. /* end confdefs.h. */
  9913. /* Override any GCC internal prototype to avoid an error.
  9914. Use char because int might match the return type of a GCC
  9915. builtin and then its argument prototype would still apply. */
  9916. #ifdef __cplusplus
  9917. extern "C"
  9918. #endif
  9919. char dlopen ();
  9920. int
  9921. main ()
  9922. {
  9923. return dlopen ();
  9924. ;
  9925. return 0;
  9926. }
  9927. _ACEOF
  9928. if ac_fn_c_try_link "$LINENO"; then :
  9929. ac_cv_lib_dl_dlopen=yes
  9930. else
  9931. ac_cv_lib_dl_dlopen=no
  9932. fi
  9933. rm -f core conftest.err conftest.$ac_objext \
  9934. conftest$ac_exeext conftest.$ac_ext
  9935. LIBS=$ac_check_lib_save_LIBS
  9936. fi
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9938. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9939. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9940. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9941. else
  9942. lt_cv_dlopen="dyld"
  9943. lt_cv_dlopen_libs=
  9944. lt_cv_dlopen_self=yes
  9945. fi
  9946. ;;
  9947. *)
  9948. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9949. if test "x$ac_cv_func_shl_load" = xyes; then :
  9950. lt_cv_dlopen="shl_load"
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9953. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9954. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9955. $as_echo_n "(cached) " >&6
  9956. else
  9957. ac_check_lib_save_LIBS=$LIBS
  9958. LIBS="-ldld $LIBS"
  9959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9960. /* end confdefs.h. */
  9961. /* Override any GCC internal prototype to avoid an error.
  9962. Use char because int might match the return type of a GCC
  9963. builtin and then its argument prototype would still apply. */
  9964. #ifdef __cplusplus
  9965. extern "C"
  9966. #endif
  9967. char shl_load ();
  9968. int
  9969. main ()
  9970. {
  9971. return shl_load ();
  9972. ;
  9973. return 0;
  9974. }
  9975. _ACEOF
  9976. if ac_fn_c_try_link "$LINENO"; then :
  9977. ac_cv_lib_dld_shl_load=yes
  9978. else
  9979. ac_cv_lib_dld_shl_load=no
  9980. fi
  9981. rm -f core conftest.err conftest.$ac_objext \
  9982. conftest$ac_exeext conftest.$ac_ext
  9983. LIBS=$ac_check_lib_save_LIBS
  9984. fi
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9986. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9987. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9988. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9989. else
  9990. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9991. if test "x$ac_cv_func_dlopen" = xyes; then :
  9992. lt_cv_dlopen="dlopen"
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9995. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9996. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. ac_check_lib_save_LIBS=$LIBS
  10000. LIBS="-ldl $LIBS"
  10001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10002. /* end confdefs.h. */
  10003. /* Override any GCC internal prototype to avoid an error.
  10004. Use char because int might match the return type of a GCC
  10005. builtin and then its argument prototype would still apply. */
  10006. #ifdef __cplusplus
  10007. extern "C"
  10008. #endif
  10009. char dlopen ();
  10010. int
  10011. main ()
  10012. {
  10013. return dlopen ();
  10014. ;
  10015. return 0;
  10016. }
  10017. _ACEOF
  10018. if ac_fn_c_try_link "$LINENO"; then :
  10019. ac_cv_lib_dl_dlopen=yes
  10020. else
  10021. ac_cv_lib_dl_dlopen=no
  10022. fi
  10023. rm -f core conftest.err conftest.$ac_objext \
  10024. conftest$ac_exeext conftest.$ac_ext
  10025. LIBS=$ac_check_lib_save_LIBS
  10026. fi
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10028. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10029. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10030. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10033. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10034. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10035. $as_echo_n "(cached) " >&6
  10036. else
  10037. ac_check_lib_save_LIBS=$LIBS
  10038. LIBS="-lsvld $LIBS"
  10039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10040. /* end confdefs.h. */
  10041. /* Override any GCC internal prototype to avoid an error.
  10042. Use char because int might match the return type of a GCC
  10043. builtin and then its argument prototype would still apply. */
  10044. #ifdef __cplusplus
  10045. extern "C"
  10046. #endif
  10047. char dlopen ();
  10048. int
  10049. main ()
  10050. {
  10051. return dlopen ();
  10052. ;
  10053. return 0;
  10054. }
  10055. _ACEOF
  10056. if ac_fn_c_try_link "$LINENO"; then :
  10057. ac_cv_lib_svld_dlopen=yes
  10058. else
  10059. ac_cv_lib_svld_dlopen=no
  10060. fi
  10061. rm -f core conftest.err conftest.$ac_objext \
  10062. conftest$ac_exeext conftest.$ac_ext
  10063. LIBS=$ac_check_lib_save_LIBS
  10064. fi
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10066. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10067. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10068. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10069. else
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10071. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10072. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. ac_check_lib_save_LIBS=$LIBS
  10076. LIBS="-ldld $LIBS"
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. /* Override any GCC internal prototype to avoid an error.
  10080. Use char because int might match the return type of a GCC
  10081. builtin and then its argument prototype would still apply. */
  10082. #ifdef __cplusplus
  10083. extern "C"
  10084. #endif
  10085. char dld_link ();
  10086. int
  10087. main ()
  10088. {
  10089. return dld_link ();
  10090. ;
  10091. return 0;
  10092. }
  10093. _ACEOF
  10094. if ac_fn_c_try_link "$LINENO"; then :
  10095. ac_cv_lib_dld_dld_link=yes
  10096. else
  10097. ac_cv_lib_dld_dld_link=no
  10098. fi
  10099. rm -f core conftest.err conftest.$ac_objext \
  10100. conftest$ac_exeext conftest.$ac_ext
  10101. LIBS=$ac_check_lib_save_LIBS
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10104. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10105. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10106. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10107. fi
  10108. fi
  10109. fi
  10110. fi
  10111. fi
  10112. fi
  10113. ;;
  10114. esac
  10115. if test "x$lt_cv_dlopen" != xno; then
  10116. enable_dlopen=yes
  10117. else
  10118. enable_dlopen=no
  10119. fi
  10120. case $lt_cv_dlopen in
  10121. dlopen)
  10122. save_CPPFLAGS="$CPPFLAGS"
  10123. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10124. save_LDFLAGS="$LDFLAGS"
  10125. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10126. save_LIBS="$LIBS"
  10127. LIBS="$lt_cv_dlopen_libs $LIBS"
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10129. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10130. if ${lt_cv_dlopen_self+:} false; then :
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. if test "$cross_compiling" = yes; then :
  10134. lt_cv_dlopen_self=cross
  10135. else
  10136. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10137. lt_status=$lt_dlunknown
  10138. cat > conftest.$ac_ext <<_LT_EOF
  10139. #line $LINENO "configure"
  10140. #include "confdefs.h"
  10141. #if HAVE_DLFCN_H
  10142. #include <dlfcn.h>
  10143. #endif
  10144. #include <stdio.h>
  10145. #ifdef RTLD_GLOBAL
  10146. # define LT_DLGLOBAL RTLD_GLOBAL
  10147. #else
  10148. # ifdef DL_GLOBAL
  10149. # define LT_DLGLOBAL DL_GLOBAL
  10150. # else
  10151. # define LT_DLGLOBAL 0
  10152. # endif
  10153. #endif
  10154. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10155. find out it does not work in some platform. */
  10156. #ifndef LT_DLLAZY_OR_NOW
  10157. # ifdef RTLD_LAZY
  10158. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10159. # else
  10160. # ifdef DL_LAZY
  10161. # define LT_DLLAZY_OR_NOW DL_LAZY
  10162. # else
  10163. # ifdef RTLD_NOW
  10164. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10165. # else
  10166. # ifdef DL_NOW
  10167. # define LT_DLLAZY_OR_NOW DL_NOW
  10168. # else
  10169. # define LT_DLLAZY_OR_NOW 0
  10170. # endif
  10171. # endif
  10172. # endif
  10173. # endif
  10174. #endif
  10175. /* When -fvisbility=hidden is used, assume the code has been annotated
  10176. correspondingly for the symbols needed. */
  10177. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10178. int fnord () __attribute__((visibility("default")));
  10179. #endif
  10180. int fnord () { return 42; }
  10181. int main ()
  10182. {
  10183. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10184. int status = $lt_dlunknown;
  10185. if (self)
  10186. {
  10187. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10188. else
  10189. {
  10190. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10191. else puts (dlerror ());
  10192. }
  10193. /* dlclose (self); */
  10194. }
  10195. else
  10196. puts (dlerror ());
  10197. return status;
  10198. }
  10199. _LT_EOF
  10200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10201. (eval $ac_link) 2>&5
  10202. ac_status=$?
  10203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10204. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10205. (./conftest; exit; ) >&5 2>/dev/null
  10206. lt_status=$?
  10207. case x$lt_status in
  10208. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10209. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10210. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10211. esac
  10212. else :
  10213. # compilation failed
  10214. lt_cv_dlopen_self=no
  10215. fi
  10216. fi
  10217. rm -fr conftest*
  10218. fi
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10220. $as_echo "$lt_cv_dlopen_self" >&6; }
  10221. if test "x$lt_cv_dlopen_self" = xyes; then
  10222. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10224. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10225. if ${lt_cv_dlopen_self_static+:} false; then :
  10226. $as_echo_n "(cached) " >&6
  10227. else
  10228. if test "$cross_compiling" = yes; then :
  10229. lt_cv_dlopen_self_static=cross
  10230. else
  10231. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10232. lt_status=$lt_dlunknown
  10233. cat > conftest.$ac_ext <<_LT_EOF
  10234. #line $LINENO "configure"
  10235. #include "confdefs.h"
  10236. #if HAVE_DLFCN_H
  10237. #include <dlfcn.h>
  10238. #endif
  10239. #include <stdio.h>
  10240. #ifdef RTLD_GLOBAL
  10241. # define LT_DLGLOBAL RTLD_GLOBAL
  10242. #else
  10243. # ifdef DL_GLOBAL
  10244. # define LT_DLGLOBAL DL_GLOBAL
  10245. # else
  10246. # define LT_DLGLOBAL 0
  10247. # endif
  10248. #endif
  10249. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10250. find out it does not work in some platform. */
  10251. #ifndef LT_DLLAZY_OR_NOW
  10252. # ifdef RTLD_LAZY
  10253. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10254. # else
  10255. # ifdef DL_LAZY
  10256. # define LT_DLLAZY_OR_NOW DL_LAZY
  10257. # else
  10258. # ifdef RTLD_NOW
  10259. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10260. # else
  10261. # ifdef DL_NOW
  10262. # define LT_DLLAZY_OR_NOW DL_NOW
  10263. # else
  10264. # define LT_DLLAZY_OR_NOW 0
  10265. # endif
  10266. # endif
  10267. # endif
  10268. # endif
  10269. #endif
  10270. /* When -fvisbility=hidden is used, assume the code has been annotated
  10271. correspondingly for the symbols needed. */
  10272. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10273. int fnord () __attribute__((visibility("default")));
  10274. #endif
  10275. int fnord () { return 42; }
  10276. int main ()
  10277. {
  10278. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10279. int status = $lt_dlunknown;
  10280. if (self)
  10281. {
  10282. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10283. else
  10284. {
  10285. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10286. else puts (dlerror ());
  10287. }
  10288. /* dlclose (self); */
  10289. }
  10290. else
  10291. puts (dlerror ());
  10292. return status;
  10293. }
  10294. _LT_EOF
  10295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10296. (eval $ac_link) 2>&5
  10297. ac_status=$?
  10298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10299. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10300. (./conftest; exit; ) >&5 2>/dev/null
  10301. lt_status=$?
  10302. case x$lt_status in
  10303. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10304. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10305. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10306. esac
  10307. else :
  10308. # compilation failed
  10309. lt_cv_dlopen_self_static=no
  10310. fi
  10311. fi
  10312. rm -fr conftest*
  10313. fi
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10315. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10316. fi
  10317. CPPFLAGS="$save_CPPFLAGS"
  10318. LDFLAGS="$save_LDFLAGS"
  10319. LIBS="$save_LIBS"
  10320. ;;
  10321. esac
  10322. case $lt_cv_dlopen_self in
  10323. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10324. *) enable_dlopen_self=unknown ;;
  10325. esac
  10326. case $lt_cv_dlopen_self_static in
  10327. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10328. *) enable_dlopen_self_static=unknown ;;
  10329. esac
  10330. fi
  10331. striplib=
  10332. old_striplib=
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10334. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10335. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10336. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10337. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10339. $as_echo "yes" >&6; }
  10340. else
  10341. # FIXME - insert some real tests, host_os isn't really good enough
  10342. case $host_os in
  10343. darwin*)
  10344. if test -n "$STRIP" ; then
  10345. striplib="$STRIP -x"
  10346. old_striplib="$STRIP -S"
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10348. $as_echo "yes" >&6; }
  10349. else
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. fi
  10353. ;;
  10354. *)
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10356. $as_echo "no" >&6; }
  10357. ;;
  10358. esac
  10359. fi
  10360. # Report which library types will actually be built
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10362. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10364. $as_echo "$can_build_shared" >&6; }
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10366. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10367. test "$can_build_shared" = "no" && enable_shared=no
  10368. # On AIX, shared libraries and static libraries use the same namespace, and
  10369. # are all built from PIC.
  10370. case $host_os in
  10371. aix3*)
  10372. test "$enable_shared" = yes && enable_static=no
  10373. if test -n "$RANLIB"; then
  10374. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10375. postinstall_cmds='$RANLIB $lib'
  10376. fi
  10377. ;;
  10378. aix[4-9]*)
  10379. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10380. test "$enable_shared" = yes && enable_static=no
  10381. fi
  10382. ;;
  10383. esac
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10385. $as_echo "$enable_shared" >&6; }
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10387. $as_echo_n "checking whether to build static libraries... " >&6; }
  10388. # Make sure either enable_shared or enable_static is yes.
  10389. test "$enable_shared" = yes || enable_static=yes
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10391. $as_echo "$enable_static" >&6; }
  10392. fi
  10393. ac_ext=c
  10394. ac_cpp='$CPP $CPPFLAGS'
  10395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10398. CC="$lt_save_CC"
  10399. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10400. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10401. (test "X$CXX" != "Xg++"))) ; then
  10402. ac_ext=cpp
  10403. ac_cpp='$CXXCPP $CPPFLAGS'
  10404. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10405. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10406. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10408. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10409. if test -z "$CXXCPP"; then
  10410. if ${ac_cv_prog_CXXCPP+:} false; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. # Double quotes because CXXCPP needs to be expanded
  10414. for CXXCPP in "$CXX -E" "/lib/cpp"
  10415. do
  10416. ac_preproc_ok=false
  10417. for ac_cxx_preproc_warn_flag in '' yes
  10418. do
  10419. # Use a header file that comes with gcc, so configuring glibc
  10420. # with a fresh cross-compiler works.
  10421. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10422. # <limits.h> exists even on freestanding compilers.
  10423. # On the NeXT, cc -E runs the code through the compiler's parser,
  10424. # not just through cpp. "Syntax error" is here to catch this case.
  10425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10426. /* end confdefs.h. */
  10427. #ifdef __STDC__
  10428. # include <limits.h>
  10429. #else
  10430. # include <assert.h>
  10431. #endif
  10432. Syntax error
  10433. _ACEOF
  10434. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10435. else
  10436. # Broken: fails on valid input.
  10437. continue
  10438. fi
  10439. rm -f conftest.err conftest.i conftest.$ac_ext
  10440. # OK, works on sane cases. Now check whether nonexistent headers
  10441. # can be detected and how.
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. #include <ac_nonexistent.h>
  10445. _ACEOF
  10446. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10447. # Broken: success on invalid input.
  10448. continue
  10449. else
  10450. # Passes both tests.
  10451. ac_preproc_ok=:
  10452. break
  10453. fi
  10454. rm -f conftest.err conftest.i conftest.$ac_ext
  10455. done
  10456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10457. rm -f conftest.i conftest.err conftest.$ac_ext
  10458. if $ac_preproc_ok; then :
  10459. break
  10460. fi
  10461. done
  10462. ac_cv_prog_CXXCPP=$CXXCPP
  10463. fi
  10464. CXXCPP=$ac_cv_prog_CXXCPP
  10465. else
  10466. ac_cv_prog_CXXCPP=$CXXCPP
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10469. $as_echo "$CXXCPP" >&6; }
  10470. ac_preproc_ok=false
  10471. for ac_cxx_preproc_warn_flag in '' yes
  10472. do
  10473. # Use a header file that comes with gcc, so configuring glibc
  10474. # with a fresh cross-compiler works.
  10475. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10476. # <limits.h> exists even on freestanding compilers.
  10477. # On the NeXT, cc -E runs the code through the compiler's parser,
  10478. # not just through cpp. "Syntax error" is here to catch this case.
  10479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h. */
  10481. #ifdef __STDC__
  10482. # include <limits.h>
  10483. #else
  10484. # include <assert.h>
  10485. #endif
  10486. Syntax error
  10487. _ACEOF
  10488. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10489. else
  10490. # Broken: fails on valid input.
  10491. continue
  10492. fi
  10493. rm -f conftest.err conftest.i conftest.$ac_ext
  10494. # OK, works on sane cases. Now check whether nonexistent headers
  10495. # can be detected and how.
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h. */
  10498. #include <ac_nonexistent.h>
  10499. _ACEOF
  10500. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10501. # Broken: success on invalid input.
  10502. continue
  10503. else
  10504. # Passes both tests.
  10505. ac_preproc_ok=:
  10506. break
  10507. fi
  10508. rm -f conftest.err conftest.i conftest.$ac_ext
  10509. done
  10510. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10511. rm -f conftest.i conftest.err conftest.$ac_ext
  10512. if $ac_preproc_ok; then :
  10513. else
  10514. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10515. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10516. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10517. See \`config.log' for more details" "$LINENO" 5; }
  10518. fi
  10519. ac_ext=c
  10520. ac_cpp='$CPP $CPPFLAGS'
  10521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10524. else
  10525. _lt_caught_CXX_error=yes
  10526. fi
  10527. ac_ext=cpp
  10528. ac_cpp='$CXXCPP $CPPFLAGS'
  10529. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10530. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10531. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10532. archive_cmds_need_lc_CXX=no
  10533. allow_undefined_flag_CXX=
  10534. always_export_symbols_CXX=no
  10535. archive_expsym_cmds_CXX=
  10536. compiler_needs_object_CXX=no
  10537. export_dynamic_flag_spec_CXX=
  10538. hardcode_direct_CXX=no
  10539. hardcode_direct_absolute_CXX=no
  10540. hardcode_libdir_flag_spec_CXX=
  10541. hardcode_libdir_separator_CXX=
  10542. hardcode_minus_L_CXX=no
  10543. hardcode_shlibpath_var_CXX=unsupported
  10544. hardcode_automatic_CXX=no
  10545. inherit_rpath_CXX=no
  10546. module_cmds_CXX=
  10547. module_expsym_cmds_CXX=
  10548. link_all_deplibs_CXX=unknown
  10549. old_archive_cmds_CXX=$old_archive_cmds
  10550. reload_flag_CXX=$reload_flag
  10551. reload_cmds_CXX=$reload_cmds
  10552. no_undefined_flag_CXX=
  10553. whole_archive_flag_spec_CXX=
  10554. enable_shared_with_static_runtimes_CXX=no
  10555. # Source file extension for C++ test sources.
  10556. ac_ext=cpp
  10557. # Object file extension for compiled C++ test sources.
  10558. objext=o
  10559. objext_CXX=$objext
  10560. # No sense in running all these tests if we already determined that
  10561. # the CXX compiler isn't working. Some variables (like enable_shared)
  10562. # are currently assumed to apply to all compilers on this platform,
  10563. # and will be corrupted by setting them based on a non-working compiler.
  10564. if test "$_lt_caught_CXX_error" != yes; then
  10565. # Code to be used in simple compile tests
  10566. lt_simple_compile_test_code="int some_variable = 0;"
  10567. # Code to be used in simple link tests
  10568. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10569. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10570. # If no C compiler was specified, use CC.
  10571. LTCC=${LTCC-"$CC"}
  10572. # If no C compiler flags were specified, use CFLAGS.
  10573. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10574. # Allow CC to be a program name with arguments.
  10575. compiler=$CC
  10576. # save warnings/boilerplate of simple test code
  10577. ac_outfile=conftest.$ac_objext
  10578. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10579. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10580. _lt_compiler_boilerplate=`cat conftest.err`
  10581. $RM conftest*
  10582. ac_outfile=conftest.$ac_objext
  10583. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10584. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10585. _lt_linker_boilerplate=`cat conftest.err`
  10586. $RM -r conftest*
  10587. # Allow CC to be a program name with arguments.
  10588. lt_save_CC=$CC
  10589. lt_save_CFLAGS=$CFLAGS
  10590. lt_save_LD=$LD
  10591. lt_save_GCC=$GCC
  10592. GCC=$GXX
  10593. lt_save_with_gnu_ld=$with_gnu_ld
  10594. lt_save_path_LD=$lt_cv_path_LD
  10595. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10596. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10597. else
  10598. $as_unset lt_cv_prog_gnu_ld
  10599. fi
  10600. if test -n "${lt_cv_path_LDCXX+set}"; then
  10601. lt_cv_path_LD=$lt_cv_path_LDCXX
  10602. else
  10603. $as_unset lt_cv_path_LD
  10604. fi
  10605. test -z "${LDCXX+set}" || LD=$LDCXX
  10606. CC=${CXX-"c++"}
  10607. CFLAGS=$CXXFLAGS
  10608. compiler=$CC
  10609. compiler_CXX=$CC
  10610. for cc_temp in $compiler""; do
  10611. case $cc_temp in
  10612. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10613. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10614. \-*) ;;
  10615. *) break;;
  10616. esac
  10617. done
  10618. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10619. if test -n "$compiler"; then
  10620. # We don't want -fno-exception when compiling C++ code, so set the
  10621. # no_builtin_flag separately
  10622. if test "$GXX" = yes; then
  10623. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10624. else
  10625. lt_prog_compiler_no_builtin_flag_CXX=
  10626. fi
  10627. if test "$GXX" = yes; then
  10628. # Set up default GNU C++ configuration
  10629. # Check whether --with-gnu-ld was given.
  10630. if test "${with_gnu_ld+set}" = set; then :
  10631. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10632. else
  10633. with_gnu_ld=no
  10634. fi
  10635. ac_prog=ld
  10636. if test "$GCC" = yes; then
  10637. # Check if gcc -print-prog-name=ld gives a path.
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10639. $as_echo_n "checking for ld used by $CC... " >&6; }
  10640. case $host in
  10641. *-*-mingw*)
  10642. # gcc leaves a trailing carriage return which upsets mingw
  10643. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10644. *)
  10645. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10646. esac
  10647. case $ac_prog in
  10648. # Accept absolute paths.
  10649. [\\/]* | ?:[\\/]*)
  10650. re_direlt='/[^/][^/]*/\.\./'
  10651. # Canonicalize the pathname of ld
  10652. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10653. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10654. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10655. done
  10656. test -z "$LD" && LD="$ac_prog"
  10657. ;;
  10658. "")
  10659. # If it fails, then pretend we aren't using GCC.
  10660. ac_prog=ld
  10661. ;;
  10662. *)
  10663. # If it is relative, then search for the first ld in PATH.
  10664. with_gnu_ld=unknown
  10665. ;;
  10666. esac
  10667. elif test "$with_gnu_ld" = yes; then
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10669. $as_echo_n "checking for GNU ld... " >&6; }
  10670. else
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10672. $as_echo_n "checking for non-GNU ld... " >&6; }
  10673. fi
  10674. if ${lt_cv_path_LD+:} false; then :
  10675. $as_echo_n "(cached) " >&6
  10676. else
  10677. if test -z "$LD"; then
  10678. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10679. for ac_dir in $PATH; do
  10680. IFS="$lt_save_ifs"
  10681. test -z "$ac_dir" && ac_dir=.
  10682. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10683. lt_cv_path_LD="$ac_dir/$ac_prog"
  10684. # Check to see if the program is GNU ld. I'd rather use --version,
  10685. # but apparently some variants of GNU ld only accept -v.
  10686. # Break only if it was the GNU/non-GNU ld that we prefer.
  10687. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10688. *GNU* | *'with BFD'*)
  10689. test "$with_gnu_ld" != no && break
  10690. ;;
  10691. *)
  10692. test "$with_gnu_ld" != yes && break
  10693. ;;
  10694. esac
  10695. fi
  10696. done
  10697. IFS="$lt_save_ifs"
  10698. else
  10699. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10700. fi
  10701. fi
  10702. LD="$lt_cv_path_LD"
  10703. if test -n "$LD"; then
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10705. $as_echo "$LD" >&6; }
  10706. else
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10708. $as_echo "no" >&6; }
  10709. fi
  10710. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10712. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10713. if ${lt_cv_prog_gnu_ld+:} false; then :
  10714. $as_echo_n "(cached) " >&6
  10715. else
  10716. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10717. case `$LD -v 2>&1 </dev/null` in
  10718. *GNU* | *'with BFD'*)
  10719. lt_cv_prog_gnu_ld=yes
  10720. ;;
  10721. *)
  10722. lt_cv_prog_gnu_ld=no
  10723. ;;
  10724. esac
  10725. fi
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10727. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10728. with_gnu_ld=$lt_cv_prog_gnu_ld
  10729. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10730. # archiving commands below assume that GNU ld is being used.
  10731. if test "$with_gnu_ld" = yes; then
  10732. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10733. 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'
  10734. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10735. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10736. # If archive_cmds runs LD, not CC, wlarc should be empty
  10737. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10738. # investigate it a little bit more. (MM)
  10739. wlarc='${wl}'
  10740. # ancient GNU ld didn't support --whole-archive et. al.
  10741. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10742. $GREP 'no-whole-archive' > /dev/null; then
  10743. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10744. else
  10745. whole_archive_flag_spec_CXX=
  10746. fi
  10747. else
  10748. with_gnu_ld=no
  10749. wlarc=
  10750. # A generic and very simple default shared library creation
  10751. # command for GNU C++ for the case where it uses the native
  10752. # linker, instead of GNU ld. If possible, this setting should
  10753. # overridden to take advantage of the native linker features on
  10754. # the platform it is being used on.
  10755. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10756. fi
  10757. # Commands to make compiler produce verbose output that lists
  10758. # what "hidden" libraries, object files and flags are used when
  10759. # linking a shared library.
  10760. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10761. else
  10762. GXX=no
  10763. with_gnu_ld=no
  10764. wlarc=
  10765. fi
  10766. # PORTME: fill in a description of your system's C++ link characteristics
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10768. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10769. ld_shlibs_CXX=yes
  10770. case $host_os in
  10771. aix3*)
  10772. # FIXME: insert proper C++ library support
  10773. ld_shlibs_CXX=no
  10774. ;;
  10775. aix[4-9]*)
  10776. if test "$host_cpu" = ia64; then
  10777. # On IA64, the linker does run time linking by default, so we don't
  10778. # have to do anything special.
  10779. aix_use_runtimelinking=no
  10780. exp_sym_flag='-Bexport'
  10781. no_entry_flag=""
  10782. else
  10783. aix_use_runtimelinking=no
  10784. # Test if we are trying to use run time linking or normal
  10785. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10786. # need to do runtime linking.
  10787. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10788. for ld_flag in $LDFLAGS; do
  10789. case $ld_flag in
  10790. *-brtl*)
  10791. aix_use_runtimelinking=yes
  10792. break
  10793. ;;
  10794. esac
  10795. done
  10796. ;;
  10797. esac
  10798. exp_sym_flag='-bexport'
  10799. no_entry_flag='-bnoentry'
  10800. fi
  10801. # When large executables or shared objects are built, AIX ld can
  10802. # have problems creating the table of contents. If linking a library
  10803. # or program results in "error TOC overflow" add -mminimal-toc to
  10804. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10805. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10806. archive_cmds_CXX=''
  10807. hardcode_direct_CXX=yes
  10808. hardcode_direct_absolute_CXX=yes
  10809. hardcode_libdir_separator_CXX=':'
  10810. link_all_deplibs_CXX=yes
  10811. file_list_spec_CXX='${wl}-f,'
  10812. if test "$GXX" = yes; then
  10813. case $host_os in aix4.[012]|aix4.[012].*)
  10814. # We only want to do this on AIX 4.2 and lower, the check
  10815. # below for broken collect2 doesn't work under 4.3+
  10816. collect2name=`${CC} -print-prog-name=collect2`
  10817. if test -f "$collect2name" &&
  10818. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10819. then
  10820. # We have reworked collect2
  10821. :
  10822. else
  10823. # We have old collect2
  10824. hardcode_direct_CXX=unsupported
  10825. # It fails to find uninstalled libraries when the uninstalled
  10826. # path is not listed in the libpath. Setting hardcode_minus_L
  10827. # to unsupported forces relinking
  10828. hardcode_minus_L_CXX=yes
  10829. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10830. hardcode_libdir_separator_CXX=
  10831. fi
  10832. esac
  10833. shared_flag='-shared'
  10834. if test "$aix_use_runtimelinking" = yes; then
  10835. shared_flag="$shared_flag "'${wl}-G'
  10836. fi
  10837. else
  10838. # not using gcc
  10839. if test "$host_cpu" = ia64; then
  10840. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10841. # chokes on -Wl,-G. The following line is correct:
  10842. shared_flag='-G'
  10843. else
  10844. if test "$aix_use_runtimelinking" = yes; then
  10845. shared_flag='${wl}-G'
  10846. else
  10847. shared_flag='${wl}-bM:SRE'
  10848. fi
  10849. fi
  10850. fi
  10851. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10852. # It seems that -bexpall does not export symbols beginning with
  10853. # underscore (_), so it is better to generate a list of symbols to
  10854. # export.
  10855. always_export_symbols_CXX=yes
  10856. if test "$aix_use_runtimelinking" = yes; then
  10857. # Warning - without using the other runtime loading flags (-brtl),
  10858. # -berok will link without error, but may produce a broken library.
  10859. allow_undefined_flag_CXX='-berok'
  10860. # Determine the default libpath from the value encoded in an empty
  10861. # executable.
  10862. if test "${lt_cv_aix_libpath+set}" = set; then
  10863. aix_libpath=$lt_cv_aix_libpath
  10864. else
  10865. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10866. $as_echo_n "(cached) " >&6
  10867. else
  10868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10869. /* end confdefs.h. */
  10870. int
  10871. main ()
  10872. {
  10873. ;
  10874. return 0;
  10875. }
  10876. _ACEOF
  10877. if ac_fn_cxx_try_link "$LINENO"; then :
  10878. lt_aix_libpath_sed='
  10879. /Import File Strings/,/^$/ {
  10880. /^0/ {
  10881. s/^0 *\([^ ]*\) *$/\1/
  10882. p
  10883. }
  10884. }'
  10885. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10886. # Check for a 64-bit object if we didn't find anything.
  10887. if test -z "$lt_cv_aix_libpath__CXX"; then
  10888. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10889. fi
  10890. fi
  10891. rm -f core conftest.err conftest.$ac_objext \
  10892. conftest$ac_exeext conftest.$ac_ext
  10893. if test -z "$lt_cv_aix_libpath__CXX"; then
  10894. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10895. fi
  10896. fi
  10897. aix_libpath=$lt_cv_aix_libpath__CXX
  10898. fi
  10899. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10900. 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"
  10901. else
  10902. if test "$host_cpu" = ia64; then
  10903. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10904. allow_undefined_flag_CXX="-z nodefs"
  10905. 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"
  10906. else
  10907. # Determine the default libpath from the value encoded in an
  10908. # empty executable.
  10909. if test "${lt_cv_aix_libpath+set}" = set; then
  10910. aix_libpath=$lt_cv_aix_libpath
  10911. else
  10912. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10913. $as_echo_n "(cached) " >&6
  10914. else
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. int
  10918. main ()
  10919. {
  10920. ;
  10921. return 0;
  10922. }
  10923. _ACEOF
  10924. if ac_fn_cxx_try_link "$LINENO"; then :
  10925. lt_aix_libpath_sed='
  10926. /Import File Strings/,/^$/ {
  10927. /^0/ {
  10928. s/^0 *\([^ ]*\) *$/\1/
  10929. p
  10930. }
  10931. }'
  10932. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10933. # Check for a 64-bit object if we didn't find anything.
  10934. if test -z "$lt_cv_aix_libpath__CXX"; then
  10935. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10936. fi
  10937. fi
  10938. rm -f core conftest.err conftest.$ac_objext \
  10939. conftest$ac_exeext conftest.$ac_ext
  10940. if test -z "$lt_cv_aix_libpath__CXX"; then
  10941. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10942. fi
  10943. fi
  10944. aix_libpath=$lt_cv_aix_libpath__CXX
  10945. fi
  10946. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10947. # Warning - without using the other run time loading flags,
  10948. # -berok will link without error, but may produce a broken library.
  10949. no_undefined_flag_CXX=' ${wl}-bernotok'
  10950. allow_undefined_flag_CXX=' ${wl}-berok'
  10951. if test "$with_gnu_ld" = yes; then
  10952. # We only use this code for GNU lds that support --whole-archive.
  10953. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10954. else
  10955. # Exported symbols can be pulled into shared objects from archives
  10956. whole_archive_flag_spec_CXX='$convenience'
  10957. fi
  10958. archive_cmds_need_lc_CXX=yes
  10959. # This is similar to how AIX traditionally builds its shared
  10960. # libraries.
  10961. 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'
  10962. fi
  10963. fi
  10964. ;;
  10965. beos*)
  10966. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10967. allow_undefined_flag_CXX=unsupported
  10968. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10969. # support --undefined. This deserves some investigation. FIXME
  10970. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10971. else
  10972. ld_shlibs_CXX=no
  10973. fi
  10974. ;;
  10975. chorus*)
  10976. case $cc_basename in
  10977. *)
  10978. # FIXME: insert proper C++ library support
  10979. ld_shlibs_CXX=no
  10980. ;;
  10981. esac
  10982. ;;
  10983. cygwin* | mingw* | pw32* | cegcc*)
  10984. case $GXX,$cc_basename in
  10985. ,cl* | no,cl*)
  10986. # Native MSVC
  10987. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10988. # no search path for DLLs.
  10989. hardcode_libdir_flag_spec_CXX=' '
  10990. allow_undefined_flag_CXX=unsupported
  10991. always_export_symbols_CXX=yes
  10992. file_list_spec_CXX='@'
  10993. # Tell ltmain to make .lib files, not .a files.
  10994. libext=lib
  10995. # Tell ltmain to make .dll files, not .so files.
  10996. shrext_cmds=".dll"
  10997. # FIXME: Setting linknames here is a bad hack.
  10998. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10999. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11000. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11001. else
  11002. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11003. fi~
  11004. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11005. linknames='
  11006. # The linker will not automatically build a static lib if we build a DLL.
  11007. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11008. enable_shared_with_static_runtimes_CXX=yes
  11009. # Don't use ranlib
  11010. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11011. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11012. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11013. case $lt_outputfile in
  11014. *.exe|*.EXE) ;;
  11015. *)
  11016. lt_outputfile="$lt_outputfile.exe"
  11017. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11018. ;;
  11019. esac~
  11020. func_to_tool_file "$lt_outputfile"~
  11021. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11022. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11023. $RM "$lt_outputfile.manifest";
  11024. fi'
  11025. ;;
  11026. *)
  11027. # g++
  11028. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11029. # as there is no search path for DLLs.
  11030. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11031. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11032. allow_undefined_flag_CXX=unsupported
  11033. always_export_symbols_CXX=no
  11034. enable_shared_with_static_runtimes_CXX=yes
  11035. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11036. 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'
  11037. # If the export-symbols file already is a .def file (1st line
  11038. # is EXPORTS), use it as is; otherwise, prepend...
  11039. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11040. cp $export_symbols $output_objdir/$soname.def;
  11041. else
  11042. echo EXPORTS > $output_objdir/$soname.def;
  11043. cat $export_symbols >> $output_objdir/$soname.def;
  11044. fi~
  11045. $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'
  11046. else
  11047. ld_shlibs_CXX=no
  11048. fi
  11049. ;;
  11050. esac
  11051. ;;
  11052. darwin* | rhapsody*)
  11053. archive_cmds_need_lc_CXX=no
  11054. hardcode_direct_CXX=no
  11055. hardcode_automatic_CXX=yes
  11056. hardcode_shlibpath_var_CXX=unsupported
  11057. if test "$lt_cv_ld_force_load" = "yes"; then
  11058. 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\"`'
  11059. else
  11060. whole_archive_flag_spec_CXX=''
  11061. fi
  11062. link_all_deplibs_CXX=yes
  11063. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11064. case $cc_basename in
  11065. ifort*) _lt_dar_can_shared=yes ;;
  11066. *) _lt_dar_can_shared=$GCC ;;
  11067. esac
  11068. if test "$_lt_dar_can_shared" = "yes"; then
  11069. output_verbose_link_cmd=func_echo_all
  11070. 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}"
  11071. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11072. 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}"
  11073. 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}"
  11074. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11075. 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}"
  11076. 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}"
  11077. fi
  11078. else
  11079. ld_shlibs_CXX=no
  11080. fi
  11081. ;;
  11082. dgux*)
  11083. case $cc_basename in
  11084. ec++*)
  11085. # FIXME: insert proper C++ library support
  11086. ld_shlibs_CXX=no
  11087. ;;
  11088. ghcx*)
  11089. # Green Hills C++ Compiler
  11090. # FIXME: insert proper C++ library support
  11091. ld_shlibs_CXX=no
  11092. ;;
  11093. *)
  11094. # FIXME: insert proper C++ library support
  11095. ld_shlibs_CXX=no
  11096. ;;
  11097. esac
  11098. ;;
  11099. freebsd2.*)
  11100. # C++ shared libraries reported to be fairly broken before
  11101. # switch to ELF
  11102. ld_shlibs_CXX=no
  11103. ;;
  11104. freebsd-elf*)
  11105. archive_cmds_need_lc_CXX=no
  11106. ;;
  11107. freebsd* | dragonfly*)
  11108. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11109. # conventions
  11110. ld_shlibs_CXX=yes
  11111. ;;
  11112. gnu*)
  11113. ;;
  11114. haiku*)
  11115. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11116. link_all_deplibs_CXX=yes
  11117. ;;
  11118. hpux9*)
  11119. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11120. hardcode_libdir_separator_CXX=:
  11121. export_dynamic_flag_spec_CXX='${wl}-E'
  11122. hardcode_direct_CXX=yes
  11123. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11124. # but as the default
  11125. # location of the library.
  11126. case $cc_basename in
  11127. CC*)
  11128. # FIXME: insert proper C++ library support
  11129. ld_shlibs_CXX=no
  11130. ;;
  11131. aCC*)
  11132. 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'
  11133. # Commands to make compiler produce verbose output that lists
  11134. # what "hidden" libraries, object files and flags are used when
  11135. # linking a shared library.
  11136. #
  11137. # There doesn't appear to be a way to prevent this compiler from
  11138. # explicitly linking system object files so we need to strip them
  11139. # from the output so that they don't get included in the library
  11140. # dependencies.
  11141. 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"'
  11142. ;;
  11143. *)
  11144. if test "$GXX" = yes; then
  11145. 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'
  11146. else
  11147. # FIXME: insert proper C++ library support
  11148. ld_shlibs_CXX=no
  11149. fi
  11150. ;;
  11151. esac
  11152. ;;
  11153. hpux10*|hpux11*)
  11154. if test $with_gnu_ld = no; then
  11155. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11156. hardcode_libdir_separator_CXX=:
  11157. case $host_cpu in
  11158. hppa*64*|ia64*)
  11159. ;;
  11160. *)
  11161. export_dynamic_flag_spec_CXX='${wl}-E'
  11162. ;;
  11163. esac
  11164. fi
  11165. case $host_cpu in
  11166. hppa*64*|ia64*)
  11167. hardcode_direct_CXX=no
  11168. hardcode_shlibpath_var_CXX=no
  11169. ;;
  11170. *)
  11171. hardcode_direct_CXX=yes
  11172. hardcode_direct_absolute_CXX=yes
  11173. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11174. # but as the default
  11175. # location of the library.
  11176. ;;
  11177. esac
  11178. case $cc_basename in
  11179. CC*)
  11180. # FIXME: insert proper C++ library support
  11181. ld_shlibs_CXX=no
  11182. ;;
  11183. aCC*)
  11184. case $host_cpu in
  11185. hppa*64*)
  11186. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11187. ;;
  11188. ia64*)
  11189. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11190. ;;
  11191. *)
  11192. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11193. ;;
  11194. esac
  11195. # Commands to make compiler produce verbose output that lists
  11196. # what "hidden" libraries, object files and flags are used when
  11197. # linking a shared library.
  11198. #
  11199. # There doesn't appear to be a way to prevent this compiler from
  11200. # explicitly linking system object files so we need to strip them
  11201. # from the output so that they don't get included in the library
  11202. # dependencies.
  11203. 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"'
  11204. ;;
  11205. *)
  11206. if test "$GXX" = yes; then
  11207. if test $with_gnu_ld = no; then
  11208. case $host_cpu in
  11209. hppa*64*)
  11210. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11211. ;;
  11212. ia64*)
  11213. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11214. ;;
  11215. *)
  11216. 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'
  11217. ;;
  11218. esac
  11219. fi
  11220. else
  11221. # FIXME: insert proper C++ library support
  11222. ld_shlibs_CXX=no
  11223. fi
  11224. ;;
  11225. esac
  11226. ;;
  11227. interix[3-9]*)
  11228. hardcode_direct_CXX=no
  11229. hardcode_shlibpath_var_CXX=no
  11230. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11231. export_dynamic_flag_spec_CXX='${wl}-E'
  11232. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11233. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11234. # default) and relocated if they conflict, which is a slow very memory
  11235. # consuming and fragmenting process. To avoid this, we pick a random,
  11236. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11237. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11238. 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'
  11239. 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'
  11240. ;;
  11241. irix5* | irix6*)
  11242. case $cc_basename in
  11243. CC*)
  11244. # SGI C++
  11245. 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'
  11246. # Archives containing C++ object files must be created using
  11247. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11248. # necessary to make sure instantiated templates are included
  11249. # in the archive.
  11250. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11251. ;;
  11252. *)
  11253. if test "$GXX" = yes; then
  11254. if test "$with_gnu_ld" = no; then
  11255. 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'
  11256. else
  11257. 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'
  11258. fi
  11259. fi
  11260. link_all_deplibs_CXX=yes
  11261. ;;
  11262. esac
  11263. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11264. hardcode_libdir_separator_CXX=:
  11265. inherit_rpath_CXX=yes
  11266. ;;
  11267. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11268. case $cc_basename in
  11269. KCC*)
  11270. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11271. # KCC will only create a shared library if the output file
  11272. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11273. # to its proper name (with version) after linking.
  11274. 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'
  11275. 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'
  11276. # Commands to make compiler produce verbose output that lists
  11277. # what "hidden" libraries, object files and flags are used when
  11278. # linking a shared library.
  11279. #
  11280. # There doesn't appear to be a way to prevent this compiler from
  11281. # explicitly linking system object files so we need to strip them
  11282. # from the output so that they don't get included in the library
  11283. # dependencies.
  11284. 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"'
  11285. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11286. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11287. # Archives containing C++ object files must be created using
  11288. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11289. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11290. ;;
  11291. icpc* | ecpc* )
  11292. # Intel C++
  11293. with_gnu_ld=yes
  11294. # version 8.0 and above of icpc choke on multiply defined symbols
  11295. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11296. # earlier do not add the objects themselves.
  11297. case `$CC -V 2>&1` in
  11298. *"Version 7."*)
  11299. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11300. 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'
  11301. ;;
  11302. *) # Version 8.0 or newer
  11303. tmp_idyn=
  11304. case $host_cpu in
  11305. ia64*) tmp_idyn=' -i_dynamic';;
  11306. esac
  11307. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11308. 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'
  11309. ;;
  11310. esac
  11311. archive_cmds_need_lc_CXX=no
  11312. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11313. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11314. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11315. ;;
  11316. pgCC* | pgcpp*)
  11317. # Portland Group C++ compiler
  11318. case `$CC -V` in
  11319. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11320. prelink_cmds_CXX='tpldir=Template.dir~
  11321. rm -rf $tpldir~
  11322. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11323. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11324. old_archive_cmds_CXX='tpldir=Template.dir~
  11325. rm -rf $tpldir~
  11326. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11327. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11328. $RANLIB $oldlib'
  11329. archive_cmds_CXX='tpldir=Template.dir~
  11330. rm -rf $tpldir~
  11331. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11332. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11333. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11334. rm -rf $tpldir~
  11335. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11336. $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'
  11337. ;;
  11338. *) # Version 6 and above use weak symbols
  11339. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11340. 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'
  11341. ;;
  11342. esac
  11343. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11344. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11345. 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'
  11346. ;;
  11347. cxx*)
  11348. # Compaq C++
  11349. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11350. 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'
  11351. runpath_var=LD_RUN_PATH
  11352. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11353. hardcode_libdir_separator_CXX=:
  11354. # Commands to make compiler produce verbose output that lists
  11355. # what "hidden" libraries, object files and flags are used when
  11356. # linking a shared library.
  11357. #
  11358. # There doesn't appear to be a way to prevent this compiler from
  11359. # explicitly linking system object files so we need to strip them
  11360. # from the output so that they don't get included in the library
  11361. # dependencies.
  11362. 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'
  11363. ;;
  11364. xl* | mpixl* | bgxl*)
  11365. # IBM XL 8.0 on PPC, with GNU ld
  11366. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11367. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11368. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11369. if test "x$supports_anon_versioning" = xyes; then
  11370. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11371. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11372. echo "local: *; };" >> $output_objdir/$libname.ver~
  11373. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11374. fi
  11375. ;;
  11376. *)
  11377. case `$CC -V 2>&1 | sed 5q` in
  11378. *Sun\ C*)
  11379. # Sun C++ 5.9
  11380. no_undefined_flag_CXX=' -zdefs'
  11381. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11382. 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'
  11383. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11384. 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'
  11385. compiler_needs_object_CXX=yes
  11386. # Not sure whether something based on
  11387. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11388. # would be better.
  11389. output_verbose_link_cmd='func_echo_all'
  11390. # Archives containing C++ object files must be created using
  11391. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11392. # necessary to make sure instantiated templates are included
  11393. # in the archive.
  11394. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11395. ;;
  11396. esac
  11397. ;;
  11398. esac
  11399. ;;
  11400. lynxos*)
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. ;;
  11404. m88k*)
  11405. # FIXME: insert proper C++ library support
  11406. ld_shlibs_CXX=no
  11407. ;;
  11408. mvs*)
  11409. case $cc_basename in
  11410. cxx*)
  11411. # FIXME: insert proper C++ library support
  11412. ld_shlibs_CXX=no
  11413. ;;
  11414. *)
  11415. # FIXME: insert proper C++ library support
  11416. ld_shlibs_CXX=no
  11417. ;;
  11418. esac
  11419. ;;
  11420. netbsd*)
  11421. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11422. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11423. wlarc=
  11424. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11425. hardcode_direct_CXX=yes
  11426. hardcode_shlibpath_var_CXX=no
  11427. fi
  11428. # Workaround some broken pre-1.5 toolchains
  11429. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11430. ;;
  11431. *nto* | *qnx*)
  11432. ld_shlibs_CXX=yes
  11433. ;;
  11434. openbsd2*)
  11435. # C++ shared libraries are fairly broken
  11436. ld_shlibs_CXX=no
  11437. ;;
  11438. openbsd*)
  11439. if test -f /usr/libexec/ld.so; then
  11440. hardcode_direct_CXX=yes
  11441. hardcode_shlibpath_var_CXX=no
  11442. hardcode_direct_absolute_CXX=yes
  11443. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11444. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11445. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11446. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11447. export_dynamic_flag_spec_CXX='${wl}-E'
  11448. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11449. fi
  11450. output_verbose_link_cmd=func_echo_all
  11451. else
  11452. ld_shlibs_CXX=no
  11453. fi
  11454. ;;
  11455. osf3* | osf4* | osf5*)
  11456. case $cc_basename in
  11457. KCC*)
  11458. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11459. # KCC will only create a shared library if the output file
  11460. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11461. # to its proper name (with version) after linking.
  11462. 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'
  11463. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11464. hardcode_libdir_separator_CXX=:
  11465. # Archives containing C++ object files must be created using
  11466. # the KAI C++ compiler.
  11467. case $host in
  11468. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11469. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11470. esac
  11471. ;;
  11472. RCC*)
  11473. # Rational C++ 2.4.1
  11474. # FIXME: insert proper C++ library support
  11475. ld_shlibs_CXX=no
  11476. ;;
  11477. cxx*)
  11478. case $host in
  11479. osf3*)
  11480. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11481. 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'
  11482. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11483. ;;
  11484. *)
  11485. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11486. 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'
  11487. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11488. echo "-hidden">> $lib.exp~
  11489. $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~
  11490. $RM $lib.exp'
  11491. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11492. ;;
  11493. esac
  11494. hardcode_libdir_separator_CXX=:
  11495. # Commands to make compiler produce verbose output that lists
  11496. # what "hidden" libraries, object files and flags are used when
  11497. # linking a shared library.
  11498. #
  11499. # There doesn't appear to be a way to prevent this compiler from
  11500. # explicitly linking system object files so we need to strip them
  11501. # from the output so that they don't get included in the library
  11502. # dependencies.
  11503. 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"'
  11504. ;;
  11505. *)
  11506. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11507. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11508. case $host in
  11509. osf3*)
  11510. 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'
  11511. ;;
  11512. *)
  11513. 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'
  11514. ;;
  11515. esac
  11516. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11517. hardcode_libdir_separator_CXX=:
  11518. # Commands to make compiler produce verbose output that lists
  11519. # what "hidden" libraries, object files and flags are used when
  11520. # linking a shared library.
  11521. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11522. else
  11523. # FIXME: insert proper C++ library support
  11524. ld_shlibs_CXX=no
  11525. fi
  11526. ;;
  11527. esac
  11528. ;;
  11529. psos*)
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. sunos4*)
  11534. case $cc_basename in
  11535. CC*)
  11536. # Sun C++ 4.x
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. lcc*)
  11541. # Lucid
  11542. # FIXME: insert proper C++ library support
  11543. ld_shlibs_CXX=no
  11544. ;;
  11545. *)
  11546. # FIXME: insert proper C++ library support
  11547. ld_shlibs_CXX=no
  11548. ;;
  11549. esac
  11550. ;;
  11551. solaris*)
  11552. case $cc_basename in
  11553. CC* | sunCC*)
  11554. # Sun C++ 4.2, 5.x and Centerline C++
  11555. archive_cmds_need_lc_CXX=yes
  11556. no_undefined_flag_CXX=' -zdefs'
  11557. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11558. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11559. $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'
  11560. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11561. hardcode_shlibpath_var_CXX=no
  11562. case $host_os in
  11563. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11564. *)
  11565. # The compiler driver will combine and reorder linker options,
  11566. # but understands `-z linker_flag'.
  11567. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11568. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11569. ;;
  11570. esac
  11571. link_all_deplibs_CXX=yes
  11572. output_verbose_link_cmd='func_echo_all'
  11573. # Archives containing C++ object files must be created using
  11574. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11575. # necessary to make sure instantiated templates are included
  11576. # in the archive.
  11577. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11578. ;;
  11579. gcx*)
  11580. # Green Hills C++ Compiler
  11581. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11582. # The C++ compiler must be used to create the archive.
  11583. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11584. ;;
  11585. *)
  11586. # GNU C++ compiler with Solaris linker
  11587. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11588. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11589. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11590. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11591. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11592. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11593. # Commands to make compiler produce verbose output that lists
  11594. # what "hidden" libraries, object files and flags are used when
  11595. # linking a shared library.
  11596. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11597. else
  11598. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11599. # platform.
  11600. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11601. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11602. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11603. # Commands to make compiler produce verbose output that lists
  11604. # what "hidden" libraries, object files and flags are used when
  11605. # linking a shared library.
  11606. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11607. fi
  11608. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11609. case $host_os in
  11610. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11611. *)
  11612. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11613. ;;
  11614. esac
  11615. fi
  11616. ;;
  11617. esac
  11618. ;;
  11619. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11620. no_undefined_flag_CXX='${wl}-z,text'
  11621. archive_cmds_need_lc_CXX=no
  11622. hardcode_shlibpath_var_CXX=no
  11623. runpath_var='LD_RUN_PATH'
  11624. case $cc_basename in
  11625. CC*)
  11626. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11627. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11628. ;;
  11629. *)
  11630. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11631. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11632. ;;
  11633. esac
  11634. ;;
  11635. sysv5* | sco3.2v5* | sco5v6*)
  11636. # Note: We can NOT use -z defs as we might desire, because we do not
  11637. # link with -lc, and that would cause any symbols used from libc to
  11638. # always be unresolved, which means just about no library would
  11639. # ever link correctly. If we're not using GNU ld we use -z text
  11640. # though, which does catch some bad symbols but isn't as heavy-handed
  11641. # as -z defs.
  11642. no_undefined_flag_CXX='${wl}-z,text'
  11643. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11644. archive_cmds_need_lc_CXX=no
  11645. hardcode_shlibpath_var_CXX=no
  11646. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11647. hardcode_libdir_separator_CXX=':'
  11648. link_all_deplibs_CXX=yes
  11649. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11650. runpath_var='LD_RUN_PATH'
  11651. case $cc_basename in
  11652. CC*)
  11653. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11654. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11655. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11656. '"$old_archive_cmds_CXX"
  11657. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11658. '"$reload_cmds_CXX"
  11659. ;;
  11660. *)
  11661. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11662. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11663. ;;
  11664. esac
  11665. ;;
  11666. tandem*)
  11667. case $cc_basename in
  11668. NCC*)
  11669. # NonStop-UX NCC 3.20
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. ;;
  11673. *)
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. ;;
  11677. esac
  11678. ;;
  11679. vxworks*)
  11680. # FIXME: insert proper C++ library support
  11681. ld_shlibs_CXX=no
  11682. ;;
  11683. *)
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. esac
  11688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11689. $as_echo "$ld_shlibs_CXX" >&6; }
  11690. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11691. GCC_CXX="$GXX"
  11692. LD_CXX="$LD"
  11693. ## CAVEAT EMPTOR:
  11694. ## There is no encapsulation within the following macros, do not change
  11695. ## the running order or otherwise move them around unless you know exactly
  11696. ## what you are doing...
  11697. # Dependencies to place before and after the object being linked:
  11698. predep_objects_CXX=
  11699. postdep_objects_CXX=
  11700. predeps_CXX=
  11701. postdeps_CXX=
  11702. compiler_lib_search_path_CXX=
  11703. cat > conftest.$ac_ext <<_LT_EOF
  11704. class Foo
  11705. {
  11706. public:
  11707. Foo (void) { a = 0; }
  11708. private:
  11709. int a;
  11710. };
  11711. _LT_EOF
  11712. _lt_libdeps_save_CFLAGS=$CFLAGS
  11713. case "$CC $CFLAGS " in #(
  11714. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11715. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11716. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11717. esac
  11718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11719. (eval $ac_compile) 2>&5
  11720. ac_status=$?
  11721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11722. test $ac_status = 0; }; then
  11723. # Parse the compiler output and extract the necessary
  11724. # objects, libraries and library flags.
  11725. # Sentinel used to keep track of whether or not we are before
  11726. # the conftest object file.
  11727. pre_test_object_deps_done=no
  11728. for p in `eval "$output_verbose_link_cmd"`; do
  11729. case ${prev}${p} in
  11730. -L* | -R* | -l*)
  11731. # Some compilers place space between "-{L,R}" and the path.
  11732. # Remove the space.
  11733. if test $p = "-L" ||
  11734. test $p = "-R"; then
  11735. prev=$p
  11736. continue
  11737. fi
  11738. # Expand the sysroot to ease extracting the directories later.
  11739. if test -z "$prev"; then
  11740. case $p in
  11741. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11742. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11743. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11744. esac
  11745. fi
  11746. case $p in
  11747. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11748. esac
  11749. if test "$pre_test_object_deps_done" = no; then
  11750. case ${prev} in
  11751. -L | -R)
  11752. # Internal compiler library paths should come after those
  11753. # provided the user. The postdeps already come after the
  11754. # user supplied libs so there is no need to process them.
  11755. if test -z "$compiler_lib_search_path_CXX"; then
  11756. compiler_lib_search_path_CXX="${prev}${p}"
  11757. else
  11758. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11759. fi
  11760. ;;
  11761. # The "-l" case would never come before the object being
  11762. # linked, so don't bother handling this case.
  11763. esac
  11764. else
  11765. if test -z "$postdeps_CXX"; then
  11766. postdeps_CXX="${prev}${p}"
  11767. else
  11768. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11769. fi
  11770. fi
  11771. prev=
  11772. ;;
  11773. *.lto.$objext) ;; # Ignore GCC LTO objects
  11774. *.$objext)
  11775. # This assumes that the test object file only shows up
  11776. # once in the compiler output.
  11777. if test "$p" = "conftest.$objext"; then
  11778. pre_test_object_deps_done=yes
  11779. continue
  11780. fi
  11781. if test "$pre_test_object_deps_done" = no; then
  11782. if test -z "$predep_objects_CXX"; then
  11783. predep_objects_CXX="$p"
  11784. else
  11785. predep_objects_CXX="$predep_objects_CXX $p"
  11786. fi
  11787. else
  11788. if test -z "$postdep_objects_CXX"; then
  11789. postdep_objects_CXX="$p"
  11790. else
  11791. postdep_objects_CXX="$postdep_objects_CXX $p"
  11792. fi
  11793. fi
  11794. ;;
  11795. *) ;; # Ignore the rest.
  11796. esac
  11797. done
  11798. # Clean up.
  11799. rm -f a.out a.exe
  11800. else
  11801. echo "libtool.m4: error: problem compiling CXX test program"
  11802. fi
  11803. $RM -f confest.$objext
  11804. CFLAGS=$_lt_libdeps_save_CFLAGS
  11805. # PORTME: override above test on systems where it is broken
  11806. case $host_os in
  11807. interix[3-9]*)
  11808. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11809. # hack all around it, let's just trust "g++" to DTRT.
  11810. predep_objects_CXX=
  11811. postdep_objects_CXX=
  11812. postdeps_CXX=
  11813. ;;
  11814. linux*)
  11815. case `$CC -V 2>&1 | sed 5q` in
  11816. *Sun\ C*)
  11817. # Sun C++ 5.9
  11818. # The more standards-conforming stlport4 library is
  11819. # incompatible with the Cstd library. Avoid specifying
  11820. # it if it's in CXXFLAGS. Ignore libCrun as
  11821. # -library=stlport4 depends on it.
  11822. case " $CXX $CXXFLAGS " in
  11823. *" -library=stlport4 "*)
  11824. solaris_use_stlport4=yes
  11825. ;;
  11826. esac
  11827. if test "$solaris_use_stlport4" != yes; then
  11828. postdeps_CXX='-library=Cstd -library=Crun'
  11829. fi
  11830. ;;
  11831. esac
  11832. ;;
  11833. solaris*)
  11834. case $cc_basename in
  11835. CC* | sunCC*)
  11836. # The more standards-conforming stlport4 library is
  11837. # incompatible with the Cstd library. Avoid specifying
  11838. # it if it's in CXXFLAGS. Ignore libCrun as
  11839. # -library=stlport4 depends on it.
  11840. case " $CXX $CXXFLAGS " in
  11841. *" -library=stlport4 "*)
  11842. solaris_use_stlport4=yes
  11843. ;;
  11844. esac
  11845. # Adding this requires a known-good setup of shared libraries for
  11846. # Sun compiler versions before 5.6, else PIC objects from an old
  11847. # archive will be linked into the output, leading to subtle bugs.
  11848. if test "$solaris_use_stlport4" != yes; then
  11849. postdeps_CXX='-library=Cstd -library=Crun'
  11850. fi
  11851. ;;
  11852. esac
  11853. ;;
  11854. esac
  11855. case " $postdeps_CXX " in
  11856. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11857. esac
  11858. compiler_lib_search_dirs_CXX=
  11859. if test -n "${compiler_lib_search_path_CXX}"; then
  11860. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11861. fi
  11862. lt_prog_compiler_wl_CXX=
  11863. lt_prog_compiler_pic_CXX=
  11864. lt_prog_compiler_static_CXX=
  11865. # C++ specific cases for pic, static, wl, etc.
  11866. if test "$GXX" = yes; then
  11867. lt_prog_compiler_wl_CXX='-Wl,'
  11868. lt_prog_compiler_static_CXX='-static'
  11869. case $host_os in
  11870. aix*)
  11871. # All AIX code is PIC.
  11872. if test "$host_cpu" = ia64; then
  11873. # AIX 5 now supports IA64 processor
  11874. lt_prog_compiler_static_CXX='-Bstatic'
  11875. fi
  11876. ;;
  11877. amigaos*)
  11878. case $host_cpu in
  11879. powerpc)
  11880. # see comment about AmigaOS4 .so support
  11881. lt_prog_compiler_pic_CXX='-fPIC'
  11882. ;;
  11883. m68k)
  11884. # FIXME: we need at least 68020 code to build shared libraries, but
  11885. # adding the `-m68020' flag to GCC prevents building anything better,
  11886. # like `-m68040'.
  11887. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11888. ;;
  11889. esac
  11890. ;;
  11891. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11892. # PIC is the default for these OSes.
  11893. ;;
  11894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11895. # This hack is so that the source file can tell whether it is being
  11896. # built for inclusion in a dll (and should export symbols for example).
  11897. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11898. # (--disable-auto-import) libraries
  11899. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11900. ;;
  11901. darwin* | rhapsody*)
  11902. # PIC is the default on this platform
  11903. # Common symbols not allowed in MH_DYLIB files
  11904. lt_prog_compiler_pic_CXX='-fno-common'
  11905. ;;
  11906. *djgpp*)
  11907. # DJGPP does not support shared libraries at all
  11908. lt_prog_compiler_pic_CXX=
  11909. ;;
  11910. haiku*)
  11911. # PIC is the default for Haiku.
  11912. # The "-static" flag exists, but is broken.
  11913. lt_prog_compiler_static_CXX=
  11914. ;;
  11915. interix[3-9]*)
  11916. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11917. # Instead, we relocate shared libraries at runtime.
  11918. ;;
  11919. sysv4*MP*)
  11920. if test -d /usr/nec; then
  11921. lt_prog_compiler_pic_CXX=-Kconform_pic
  11922. fi
  11923. ;;
  11924. hpux*)
  11925. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11926. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11927. # sets the default TLS model and affects inlining.
  11928. case $host_cpu in
  11929. hppa*64*)
  11930. ;;
  11931. *)
  11932. lt_prog_compiler_pic_CXX='-fPIC'
  11933. ;;
  11934. esac
  11935. ;;
  11936. *qnx* | *nto*)
  11937. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11938. # it will coredump.
  11939. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11940. ;;
  11941. *)
  11942. lt_prog_compiler_pic_CXX='-fPIC'
  11943. ;;
  11944. esac
  11945. else
  11946. case $host_os in
  11947. aix[4-9]*)
  11948. # All AIX code is PIC.
  11949. if test "$host_cpu" = ia64; then
  11950. # AIX 5 now supports IA64 processor
  11951. lt_prog_compiler_static_CXX='-Bstatic'
  11952. else
  11953. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11954. fi
  11955. ;;
  11956. chorus*)
  11957. case $cc_basename in
  11958. cxch68*)
  11959. # Green Hills C++ Compiler
  11960. # _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"
  11961. ;;
  11962. esac
  11963. ;;
  11964. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11965. # This hack is so that the source file can tell whether it is being
  11966. # built for inclusion in a dll (and should export symbols for example).
  11967. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11968. ;;
  11969. dgux*)
  11970. case $cc_basename in
  11971. ec++*)
  11972. lt_prog_compiler_pic_CXX='-KPIC'
  11973. ;;
  11974. ghcx*)
  11975. # Green Hills C++ Compiler
  11976. lt_prog_compiler_pic_CXX='-pic'
  11977. ;;
  11978. *)
  11979. ;;
  11980. esac
  11981. ;;
  11982. freebsd* | dragonfly*)
  11983. # FreeBSD uses GNU C++
  11984. ;;
  11985. hpux9* | hpux10* | hpux11*)
  11986. case $cc_basename in
  11987. CC*)
  11988. lt_prog_compiler_wl_CXX='-Wl,'
  11989. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11990. if test "$host_cpu" != ia64; then
  11991. lt_prog_compiler_pic_CXX='+Z'
  11992. fi
  11993. ;;
  11994. aCC*)
  11995. lt_prog_compiler_wl_CXX='-Wl,'
  11996. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11997. case $host_cpu in
  11998. hppa*64*|ia64*)
  11999. # +Z the default
  12000. ;;
  12001. *)
  12002. lt_prog_compiler_pic_CXX='+Z'
  12003. ;;
  12004. esac
  12005. ;;
  12006. *)
  12007. ;;
  12008. esac
  12009. ;;
  12010. interix*)
  12011. # This is c89, which is MS Visual C++ (no shared libs)
  12012. # Anyone wants to do a port?
  12013. ;;
  12014. irix5* | irix6* | nonstopux*)
  12015. case $cc_basename in
  12016. CC*)
  12017. lt_prog_compiler_wl_CXX='-Wl,'
  12018. lt_prog_compiler_static_CXX='-non_shared'
  12019. # CC pic flag -KPIC is the default.
  12020. ;;
  12021. *)
  12022. ;;
  12023. esac
  12024. ;;
  12025. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12026. case $cc_basename in
  12027. KCC*)
  12028. # KAI C++ Compiler
  12029. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12030. lt_prog_compiler_pic_CXX='-fPIC'
  12031. ;;
  12032. ecpc* )
  12033. # old Intel C++ for x86_64 which still supported -KPIC.
  12034. lt_prog_compiler_wl_CXX='-Wl,'
  12035. lt_prog_compiler_pic_CXX='-KPIC'
  12036. lt_prog_compiler_static_CXX='-static'
  12037. ;;
  12038. icpc* )
  12039. # Intel C++, used to be incompatible with GCC.
  12040. # ICC 10 doesn't accept -KPIC any more.
  12041. lt_prog_compiler_wl_CXX='-Wl,'
  12042. lt_prog_compiler_pic_CXX='-fPIC'
  12043. lt_prog_compiler_static_CXX='-static'
  12044. ;;
  12045. pgCC* | pgcpp*)
  12046. # Portland Group C++ compiler
  12047. lt_prog_compiler_wl_CXX='-Wl,'
  12048. lt_prog_compiler_pic_CXX='-fpic'
  12049. lt_prog_compiler_static_CXX='-Bstatic'
  12050. ;;
  12051. cxx*)
  12052. # Compaq C++
  12053. # Make sure the PIC flag is empty. It appears that all Alpha
  12054. # Linux and Compaq Tru64 Unix objects are PIC.
  12055. lt_prog_compiler_pic_CXX=
  12056. lt_prog_compiler_static_CXX='-non_shared'
  12057. ;;
  12058. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12059. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12060. lt_prog_compiler_wl_CXX='-Wl,'
  12061. lt_prog_compiler_pic_CXX='-qpic'
  12062. lt_prog_compiler_static_CXX='-qstaticlink'
  12063. ;;
  12064. *)
  12065. case `$CC -V 2>&1 | sed 5q` in
  12066. *Sun\ C*)
  12067. # Sun C++ 5.9
  12068. lt_prog_compiler_pic_CXX='-KPIC'
  12069. lt_prog_compiler_static_CXX='-Bstatic'
  12070. lt_prog_compiler_wl_CXX='-Qoption ld '
  12071. ;;
  12072. esac
  12073. ;;
  12074. esac
  12075. ;;
  12076. lynxos*)
  12077. ;;
  12078. m88k*)
  12079. ;;
  12080. mvs*)
  12081. case $cc_basename in
  12082. cxx*)
  12083. lt_prog_compiler_pic_CXX='-W c,exportall'
  12084. ;;
  12085. *)
  12086. ;;
  12087. esac
  12088. ;;
  12089. netbsd*)
  12090. ;;
  12091. *qnx* | *nto*)
  12092. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12093. # it will coredump.
  12094. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12095. ;;
  12096. osf3* | osf4* | osf5*)
  12097. case $cc_basename in
  12098. KCC*)
  12099. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12100. ;;
  12101. RCC*)
  12102. # Rational C++ 2.4.1
  12103. lt_prog_compiler_pic_CXX='-pic'
  12104. ;;
  12105. cxx*)
  12106. # Digital/Compaq C++
  12107. lt_prog_compiler_wl_CXX='-Wl,'
  12108. # Make sure the PIC flag is empty. It appears that all Alpha
  12109. # Linux and Compaq Tru64 Unix objects are PIC.
  12110. lt_prog_compiler_pic_CXX=
  12111. lt_prog_compiler_static_CXX='-non_shared'
  12112. ;;
  12113. *)
  12114. ;;
  12115. esac
  12116. ;;
  12117. psos*)
  12118. ;;
  12119. solaris*)
  12120. case $cc_basename in
  12121. CC* | sunCC*)
  12122. # Sun C++ 4.2, 5.x and Centerline C++
  12123. lt_prog_compiler_pic_CXX='-KPIC'
  12124. lt_prog_compiler_static_CXX='-Bstatic'
  12125. lt_prog_compiler_wl_CXX='-Qoption ld '
  12126. ;;
  12127. gcx*)
  12128. # Green Hills C++ Compiler
  12129. lt_prog_compiler_pic_CXX='-PIC'
  12130. ;;
  12131. *)
  12132. ;;
  12133. esac
  12134. ;;
  12135. sunos4*)
  12136. case $cc_basename in
  12137. CC*)
  12138. # Sun C++ 4.x
  12139. lt_prog_compiler_pic_CXX='-pic'
  12140. lt_prog_compiler_static_CXX='-Bstatic'
  12141. ;;
  12142. lcc*)
  12143. # Lucid
  12144. lt_prog_compiler_pic_CXX='-pic'
  12145. ;;
  12146. *)
  12147. ;;
  12148. esac
  12149. ;;
  12150. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12151. case $cc_basename in
  12152. CC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_pic_CXX='-KPIC'
  12155. lt_prog_compiler_static_CXX='-Bstatic'
  12156. ;;
  12157. esac
  12158. ;;
  12159. tandem*)
  12160. case $cc_basename in
  12161. NCC*)
  12162. # NonStop-UX NCC 3.20
  12163. lt_prog_compiler_pic_CXX='-KPIC'
  12164. ;;
  12165. *)
  12166. ;;
  12167. esac
  12168. ;;
  12169. vxworks*)
  12170. ;;
  12171. *)
  12172. lt_prog_compiler_can_build_shared_CXX=no
  12173. ;;
  12174. esac
  12175. fi
  12176. case $host_os in
  12177. # For platforms which do not support PIC, -DPIC is meaningless:
  12178. *djgpp*)
  12179. lt_prog_compiler_pic_CXX=
  12180. ;;
  12181. *)
  12182. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12183. ;;
  12184. esac
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12186. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12187. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12188. $as_echo_n "(cached) " >&6
  12189. else
  12190. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12191. fi
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12193. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12194. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12195. #
  12196. # Check to make sure the PIC flag actually works.
  12197. #
  12198. if test -n "$lt_prog_compiler_pic_CXX"; then
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12200. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12201. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12202. $as_echo_n "(cached) " >&6
  12203. else
  12204. lt_cv_prog_compiler_pic_works_CXX=no
  12205. ac_outfile=conftest.$ac_objext
  12206. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12207. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12208. # Insert the option either (1) after the last *FLAGS variable, or
  12209. # (2) before a word containing "conftest.", or (3) at the end.
  12210. # Note that $ac_compile itself does not contain backslashes and begins
  12211. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12212. # The option is referenced via a variable to avoid confusing sed.
  12213. lt_compile=`echo "$ac_compile" | $SED \
  12214. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12215. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12216. -e 's:$: $lt_compiler_flag:'`
  12217. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12218. (eval "$lt_compile" 2>conftest.err)
  12219. ac_status=$?
  12220. cat conftest.err >&5
  12221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12222. if (exit $ac_status) && test -s "$ac_outfile"; then
  12223. # The compiler can only warn and ignore the option if not recognized
  12224. # So say no if there are warnings other than the usual output.
  12225. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12226. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12227. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12228. lt_cv_prog_compiler_pic_works_CXX=yes
  12229. fi
  12230. fi
  12231. $RM conftest*
  12232. fi
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12234. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12235. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12236. case $lt_prog_compiler_pic_CXX in
  12237. "" | " "*) ;;
  12238. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12239. esac
  12240. else
  12241. lt_prog_compiler_pic_CXX=
  12242. lt_prog_compiler_can_build_shared_CXX=no
  12243. fi
  12244. fi
  12245. #
  12246. # Check to make sure the static flag actually works.
  12247. #
  12248. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12250. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12251. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12252. $as_echo_n "(cached) " >&6
  12253. else
  12254. lt_cv_prog_compiler_static_works_CXX=no
  12255. save_LDFLAGS="$LDFLAGS"
  12256. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12257. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12258. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12259. # The linker can only warn and ignore the option if not recognized
  12260. # So say no if there are warnings
  12261. if test -s conftest.err; then
  12262. # Append any errors to the config.log.
  12263. cat conftest.err 1>&5
  12264. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12265. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12266. if diff conftest.exp conftest.er2 >/dev/null; then
  12267. lt_cv_prog_compiler_static_works_CXX=yes
  12268. fi
  12269. else
  12270. lt_cv_prog_compiler_static_works_CXX=yes
  12271. fi
  12272. fi
  12273. $RM -r conftest*
  12274. LDFLAGS="$save_LDFLAGS"
  12275. fi
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12277. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12278. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12279. :
  12280. else
  12281. lt_prog_compiler_static_CXX=
  12282. fi
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12284. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12285. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. lt_cv_prog_compiler_c_o_CXX=no
  12289. $RM -r conftest 2>/dev/null
  12290. mkdir conftest
  12291. cd conftest
  12292. mkdir out
  12293. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12294. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12295. # Insert the option either (1) after the last *FLAGS variable, or
  12296. # (2) before a word containing "conftest.", or (3) at the end.
  12297. # Note that $ac_compile itself does not contain backslashes and begins
  12298. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12299. lt_compile=`echo "$ac_compile" | $SED \
  12300. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12301. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12302. -e 's:$: $lt_compiler_flag:'`
  12303. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12304. (eval "$lt_compile" 2>out/conftest.err)
  12305. ac_status=$?
  12306. cat out/conftest.err >&5
  12307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12308. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12309. then
  12310. # The compiler can only warn and ignore the option if not recognized
  12311. # So say no if there are warnings
  12312. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12313. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12314. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12315. lt_cv_prog_compiler_c_o_CXX=yes
  12316. fi
  12317. fi
  12318. chmod u+w . 2>&5
  12319. $RM conftest*
  12320. # SGI C++ compiler will create directory out/ii_files/ for
  12321. # template instantiation
  12322. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12323. $RM out/* && rmdir out
  12324. cd ..
  12325. $RM -r conftest
  12326. $RM conftest*
  12327. fi
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12329. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12331. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12332. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12333. $as_echo_n "(cached) " >&6
  12334. else
  12335. lt_cv_prog_compiler_c_o_CXX=no
  12336. $RM -r conftest 2>/dev/null
  12337. mkdir conftest
  12338. cd conftest
  12339. mkdir out
  12340. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12341. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12342. # Insert the option either (1) after the last *FLAGS variable, or
  12343. # (2) before a word containing "conftest.", or (3) at the end.
  12344. # Note that $ac_compile itself does not contain backslashes and begins
  12345. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12346. lt_compile=`echo "$ac_compile" | $SED \
  12347. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12348. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12349. -e 's:$: $lt_compiler_flag:'`
  12350. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12351. (eval "$lt_compile" 2>out/conftest.err)
  12352. ac_status=$?
  12353. cat out/conftest.err >&5
  12354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12355. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12356. then
  12357. # The compiler can only warn and ignore the option if not recognized
  12358. # So say no if there are warnings
  12359. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12360. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12361. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12362. lt_cv_prog_compiler_c_o_CXX=yes
  12363. fi
  12364. fi
  12365. chmod u+w . 2>&5
  12366. $RM conftest*
  12367. # SGI C++ compiler will create directory out/ii_files/ for
  12368. # template instantiation
  12369. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12370. $RM out/* && rmdir out
  12371. cd ..
  12372. $RM -r conftest
  12373. $RM conftest*
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12376. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12377. hard_links="nottested"
  12378. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12379. # do not overwrite the value of need_locks provided by the user
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12381. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12382. hard_links=yes
  12383. $RM conftest*
  12384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12385. touch conftest.a
  12386. ln conftest.a conftest.b 2>&5 || hard_links=no
  12387. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12389. $as_echo "$hard_links" >&6; }
  12390. if test "$hard_links" = no; then
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12392. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12393. need_locks=warn
  12394. fi
  12395. else
  12396. need_locks=no
  12397. fi
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12399. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12400. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12401. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12402. case $host_os in
  12403. aix[4-9]*)
  12404. # If we're using GNU nm, then we don't want the "-C" option.
  12405. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12406. # Also, AIX nm treats weak defined symbols like other global defined
  12407. # symbols, whereas GNU nm marks them as "W".
  12408. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12409. 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'
  12410. else
  12411. 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'
  12412. fi
  12413. ;;
  12414. pw32*)
  12415. export_symbols_cmds_CXX="$ltdll_cmds"
  12416. ;;
  12417. cygwin* | mingw* | cegcc*)
  12418. case $cc_basename in
  12419. cl*)
  12420. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12421. ;;
  12422. *)
  12423. 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'
  12424. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12425. ;;
  12426. esac
  12427. ;;
  12428. *)
  12429. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12430. ;;
  12431. esac
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12433. $as_echo "$ld_shlibs_CXX" >&6; }
  12434. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12435. with_gnu_ld_CXX=$with_gnu_ld
  12436. #
  12437. # Do we need to explicitly link libc?
  12438. #
  12439. case "x$archive_cmds_need_lc_CXX" in
  12440. x|xyes)
  12441. # Assume -lc should be added
  12442. archive_cmds_need_lc_CXX=yes
  12443. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12444. case $archive_cmds_CXX in
  12445. *'~'*)
  12446. # FIXME: we may have to deal with multi-command sequences.
  12447. ;;
  12448. '$CC '*)
  12449. # Test whether the compiler implicitly links with -lc since on some
  12450. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12451. # to ld, don't add -lc before -lgcc.
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12453. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12454. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12455. $as_echo_n "(cached) " >&6
  12456. else
  12457. $RM conftest*
  12458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12460. (eval $ac_compile) 2>&5
  12461. ac_status=$?
  12462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12463. test $ac_status = 0; } 2>conftest.err; then
  12464. soname=conftest
  12465. lib=conftest
  12466. libobjs=conftest.$ac_objext
  12467. deplibs=
  12468. wl=$lt_prog_compiler_wl_CXX
  12469. pic_flag=$lt_prog_compiler_pic_CXX
  12470. compiler_flags=-v
  12471. linker_flags=-v
  12472. verstring=
  12473. output_objdir=.
  12474. libname=conftest
  12475. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12476. allow_undefined_flag_CXX=
  12477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12478. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12479. ac_status=$?
  12480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12481. test $ac_status = 0; }
  12482. then
  12483. lt_cv_archive_cmds_need_lc_CXX=no
  12484. else
  12485. lt_cv_archive_cmds_need_lc_CXX=yes
  12486. fi
  12487. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12488. else
  12489. cat conftest.err 1>&5
  12490. fi
  12491. $RM conftest*
  12492. fi
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12494. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12495. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12496. ;;
  12497. esac
  12498. fi
  12499. ;;
  12500. esac
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12502. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12503. library_names_spec=
  12504. libname_spec='lib$name'
  12505. soname_spec=
  12506. shrext_cmds=".so"
  12507. postinstall_cmds=
  12508. postuninstall_cmds=
  12509. finish_cmds=
  12510. finish_eval=
  12511. shlibpath_var=
  12512. shlibpath_overrides_runpath=unknown
  12513. version_type=none
  12514. dynamic_linker="$host_os ld.so"
  12515. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12516. need_lib_prefix=unknown
  12517. hardcode_into_libs=no
  12518. # when you set need_version to no, make sure it does not cause -set_version
  12519. # flags to be left without arguments
  12520. need_version=unknown
  12521. case $host_os in
  12522. aix3*)
  12523. version_type=linux # correct to gnu/linux during the next big refactor
  12524. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12525. shlibpath_var=LIBPATH
  12526. # AIX 3 has no versioning support, so we append a major version to the name.
  12527. soname_spec='${libname}${release}${shared_ext}$major'
  12528. ;;
  12529. aix[4-9]*)
  12530. version_type=linux # correct to gnu/linux during the next big refactor
  12531. need_lib_prefix=no
  12532. need_version=no
  12533. hardcode_into_libs=yes
  12534. if test "$host_cpu" = ia64; then
  12535. # AIX 5 supports IA64
  12536. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12537. shlibpath_var=LD_LIBRARY_PATH
  12538. else
  12539. # With GCC up to 2.95.x, collect2 would create an import file
  12540. # for dependence libraries. The import file would start with
  12541. # the line `#! .'. This would cause the generated library to
  12542. # depend on `.', always an invalid library. This was fixed in
  12543. # development snapshots of GCC prior to 3.0.
  12544. case $host_os in
  12545. aix4 | aix4.[01] | aix4.[01].*)
  12546. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12547. echo ' yes '
  12548. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12549. :
  12550. else
  12551. can_build_shared=no
  12552. fi
  12553. ;;
  12554. esac
  12555. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12556. # soname into executable. Probably we can add versioning support to
  12557. # collect2, so additional links can be useful in future.
  12558. if test "$aix_use_runtimelinking" = yes; then
  12559. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12560. # instead of lib<name>.a to let people know that these are not
  12561. # typical AIX shared libraries.
  12562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12563. else
  12564. # We preserve .a as extension for shared libraries through AIX4.2
  12565. # and later when we are not doing run time linking.
  12566. library_names_spec='${libname}${release}.a $libname.a'
  12567. soname_spec='${libname}${release}${shared_ext}$major'
  12568. fi
  12569. shlibpath_var=LIBPATH
  12570. fi
  12571. ;;
  12572. amigaos*)
  12573. case $host_cpu in
  12574. powerpc)
  12575. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12576. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12578. ;;
  12579. m68k)
  12580. library_names_spec='$libname.ixlibrary $libname.a'
  12581. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12582. 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'
  12583. ;;
  12584. esac
  12585. ;;
  12586. beos*)
  12587. library_names_spec='${libname}${shared_ext}'
  12588. dynamic_linker="$host_os ld.so"
  12589. shlibpath_var=LIBRARY_PATH
  12590. ;;
  12591. bsdi[45]*)
  12592. version_type=linux # correct to gnu/linux during the next big refactor
  12593. need_version=no
  12594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12595. soname_spec='${libname}${release}${shared_ext}$major'
  12596. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12597. shlibpath_var=LD_LIBRARY_PATH
  12598. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12599. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12600. # the default ld.so.conf also contains /usr/contrib/lib and
  12601. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12602. # libtool to hard-code these into programs
  12603. ;;
  12604. cygwin* | mingw* | pw32* | cegcc*)
  12605. version_type=windows
  12606. shrext_cmds=".dll"
  12607. need_version=no
  12608. need_lib_prefix=no
  12609. case $GCC,$cc_basename in
  12610. yes,*)
  12611. # gcc
  12612. library_names_spec='$libname.dll.a'
  12613. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12614. postinstall_cmds='base_file=`basename \${file}`~
  12615. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12616. dldir=$destdir/`dirname \$dlpath`~
  12617. test -d \$dldir || mkdir -p \$dldir~
  12618. $install_prog $dir/$dlname \$dldir/$dlname~
  12619. chmod a+x \$dldir/$dlname~
  12620. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12621. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12622. fi'
  12623. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12624. dlpath=$dir/\$dldll~
  12625. $RM \$dlpath'
  12626. shlibpath_overrides_runpath=yes
  12627. case $host_os in
  12628. cygwin*)
  12629. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12630. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12631. ;;
  12632. mingw* | cegcc*)
  12633. # MinGW DLLs use traditional 'lib' prefix
  12634. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12635. ;;
  12636. pw32*)
  12637. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12638. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12639. ;;
  12640. esac
  12641. dynamic_linker='Win32 ld.exe'
  12642. ;;
  12643. *,cl*)
  12644. # Native MSVC
  12645. libname_spec='$name'
  12646. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12647. library_names_spec='${libname}.dll.lib'
  12648. case $build_os in
  12649. mingw*)
  12650. sys_lib_search_path_spec=
  12651. lt_save_ifs=$IFS
  12652. IFS=';'
  12653. for lt_path in $LIB
  12654. do
  12655. IFS=$lt_save_ifs
  12656. # Let DOS variable expansion print the short 8.3 style file name.
  12657. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12658. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12659. done
  12660. IFS=$lt_save_ifs
  12661. # Convert to MSYS style.
  12662. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12663. ;;
  12664. cygwin*)
  12665. # Convert to unix form, then to dos form, then back to unix form
  12666. # but this time dos style (no spaces!) so that the unix form looks
  12667. # like /cygdrive/c/PROGRA~1:/cygdr...
  12668. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12669. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12670. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12671. ;;
  12672. *)
  12673. sys_lib_search_path_spec="$LIB"
  12674. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12675. # It is most probably a Windows format PATH.
  12676. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12677. else
  12678. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12679. fi
  12680. # FIXME: find the short name or the path components, as spaces are
  12681. # common. (e.g. "Program Files" -> "PROGRA~1")
  12682. ;;
  12683. esac
  12684. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12685. postinstall_cmds='base_file=`basename \${file}`~
  12686. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12687. dldir=$destdir/`dirname \$dlpath`~
  12688. test -d \$dldir || mkdir -p \$dldir~
  12689. $install_prog $dir/$dlname \$dldir/$dlname'
  12690. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12691. dlpath=$dir/\$dldll~
  12692. $RM \$dlpath'
  12693. shlibpath_overrides_runpath=yes
  12694. dynamic_linker='Win32 link.exe'
  12695. ;;
  12696. *)
  12697. # Assume MSVC wrapper
  12698. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12699. dynamic_linker='Win32 ld.exe'
  12700. ;;
  12701. esac
  12702. # FIXME: first we should search . and the directory the executable is in
  12703. shlibpath_var=PATH
  12704. ;;
  12705. darwin* | rhapsody*)
  12706. dynamic_linker="$host_os dyld"
  12707. version_type=darwin
  12708. need_lib_prefix=no
  12709. need_version=no
  12710. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12711. soname_spec='${libname}${release}${major}$shared_ext'
  12712. shlibpath_overrides_runpath=yes
  12713. shlibpath_var=DYLD_LIBRARY_PATH
  12714. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12715. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12716. ;;
  12717. dgux*)
  12718. version_type=linux # correct to gnu/linux during the next big refactor
  12719. need_lib_prefix=no
  12720. need_version=no
  12721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12722. soname_spec='${libname}${release}${shared_ext}$major'
  12723. shlibpath_var=LD_LIBRARY_PATH
  12724. ;;
  12725. freebsd* | dragonfly*)
  12726. # DragonFly does not have aout. When/if they implement a new
  12727. # versioning mechanism, adjust this.
  12728. if test -x /usr/bin/objformat; then
  12729. objformat=`/usr/bin/objformat`
  12730. else
  12731. case $host_os in
  12732. freebsd[23].*) objformat=aout ;;
  12733. *) objformat=elf ;;
  12734. esac
  12735. fi
  12736. version_type=freebsd-$objformat
  12737. case $version_type in
  12738. freebsd-elf*)
  12739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12740. need_version=no
  12741. need_lib_prefix=no
  12742. ;;
  12743. freebsd-*)
  12744. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12745. need_version=yes
  12746. ;;
  12747. esac
  12748. shlibpath_var=LD_LIBRARY_PATH
  12749. case $host_os in
  12750. freebsd2.*)
  12751. shlibpath_overrides_runpath=yes
  12752. ;;
  12753. freebsd3.[01]* | freebsdelf3.[01]*)
  12754. shlibpath_overrides_runpath=yes
  12755. hardcode_into_libs=yes
  12756. ;;
  12757. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12758. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12759. shlibpath_overrides_runpath=no
  12760. hardcode_into_libs=yes
  12761. ;;
  12762. *) # from 4.6 on, and DragonFly
  12763. shlibpath_overrides_runpath=yes
  12764. hardcode_into_libs=yes
  12765. ;;
  12766. esac
  12767. ;;
  12768. gnu*)
  12769. version_type=linux # correct to gnu/linux during the next big refactor
  12770. need_lib_prefix=no
  12771. need_version=no
  12772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12773. soname_spec='${libname}${release}${shared_ext}$major'
  12774. shlibpath_var=LD_LIBRARY_PATH
  12775. shlibpath_overrides_runpath=no
  12776. hardcode_into_libs=yes
  12777. ;;
  12778. haiku*)
  12779. version_type=linux # correct to gnu/linux during the next big refactor
  12780. need_lib_prefix=no
  12781. need_version=no
  12782. dynamic_linker="$host_os runtime_loader"
  12783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12784. soname_spec='${libname}${release}${shared_ext}$major'
  12785. shlibpath_var=LIBRARY_PATH
  12786. shlibpath_overrides_runpath=yes
  12787. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12788. hardcode_into_libs=yes
  12789. ;;
  12790. hpux9* | hpux10* | hpux11*)
  12791. # Give a soname corresponding to the major version so that dld.sl refuses to
  12792. # link against other versions.
  12793. version_type=sunos
  12794. need_lib_prefix=no
  12795. need_version=no
  12796. case $host_cpu in
  12797. ia64*)
  12798. shrext_cmds='.so'
  12799. hardcode_into_libs=yes
  12800. dynamic_linker="$host_os dld.so"
  12801. shlibpath_var=LD_LIBRARY_PATH
  12802. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12804. soname_spec='${libname}${release}${shared_ext}$major'
  12805. if test "X$HPUX_IA64_MODE" = X32; then
  12806. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12807. else
  12808. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12809. fi
  12810. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12811. ;;
  12812. hppa*64*)
  12813. shrext_cmds='.sl'
  12814. hardcode_into_libs=yes
  12815. dynamic_linker="$host_os dld.sl"
  12816. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12817. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12819. soname_spec='${libname}${release}${shared_ext}$major'
  12820. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12821. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12822. ;;
  12823. *)
  12824. shrext_cmds='.sl'
  12825. dynamic_linker="$host_os dld.sl"
  12826. shlibpath_var=SHLIB_PATH
  12827. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12829. soname_spec='${libname}${release}${shared_ext}$major'
  12830. ;;
  12831. esac
  12832. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12833. postinstall_cmds='chmod 555 $lib'
  12834. # or fails outright, so override atomically:
  12835. install_override_mode=555
  12836. ;;
  12837. interix[3-9]*)
  12838. version_type=linux # correct to gnu/linux during the next big refactor
  12839. need_lib_prefix=no
  12840. need_version=no
  12841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12842. soname_spec='${libname}${release}${shared_ext}$major'
  12843. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12844. shlibpath_var=LD_LIBRARY_PATH
  12845. shlibpath_overrides_runpath=no
  12846. hardcode_into_libs=yes
  12847. ;;
  12848. irix5* | irix6* | nonstopux*)
  12849. case $host_os in
  12850. nonstopux*) version_type=nonstopux ;;
  12851. *)
  12852. if test "$lt_cv_prog_gnu_ld" = yes; then
  12853. version_type=linux # correct to gnu/linux during the next big refactor
  12854. else
  12855. version_type=irix
  12856. fi ;;
  12857. esac
  12858. need_lib_prefix=no
  12859. need_version=no
  12860. soname_spec='${libname}${release}${shared_ext}$major'
  12861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12862. case $host_os in
  12863. irix5* | nonstopux*)
  12864. libsuff= shlibsuff=
  12865. ;;
  12866. *)
  12867. case $LD in # libtool.m4 will add one of these switches to LD
  12868. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12869. libsuff= shlibsuff= libmagic=32-bit;;
  12870. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12871. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12872. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12873. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12874. *) libsuff= shlibsuff= libmagic=never-match;;
  12875. esac
  12876. ;;
  12877. esac
  12878. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12879. shlibpath_overrides_runpath=no
  12880. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12881. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12882. hardcode_into_libs=yes
  12883. ;;
  12884. # No shared lib support for Linux oldld, aout, or coff.
  12885. linux*oldld* | linux*aout* | linux*coff*)
  12886. dynamic_linker=no
  12887. ;;
  12888. # This must be glibc/ELF.
  12889. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12890. version_type=linux # correct to gnu/linux during the next big refactor
  12891. need_lib_prefix=no
  12892. need_version=no
  12893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12894. soname_spec='${libname}${release}${shared_ext}$major'
  12895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12896. shlibpath_var=LD_LIBRARY_PATH
  12897. shlibpath_overrides_runpath=no
  12898. # Some binutils ld are patched to set DT_RUNPATH
  12899. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12900. $as_echo_n "(cached) " >&6
  12901. else
  12902. lt_cv_shlibpath_overrides_runpath=no
  12903. save_LDFLAGS=$LDFLAGS
  12904. save_libdir=$libdir
  12905. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12906. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12908. /* end confdefs.h. */
  12909. int
  12910. main ()
  12911. {
  12912. ;
  12913. return 0;
  12914. }
  12915. _ACEOF
  12916. if ac_fn_cxx_try_link "$LINENO"; then :
  12917. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12918. lt_cv_shlibpath_overrides_runpath=yes
  12919. fi
  12920. fi
  12921. rm -f core conftest.err conftest.$ac_objext \
  12922. conftest$ac_exeext conftest.$ac_ext
  12923. LDFLAGS=$save_LDFLAGS
  12924. libdir=$save_libdir
  12925. fi
  12926. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12927. # This implies no fast_install, which is unacceptable.
  12928. # Some rework will be needed to allow for fast_install
  12929. # before this can be enabled.
  12930. hardcode_into_libs=yes
  12931. # Append ld.so.conf contents to the search path
  12932. if test -f /etc/ld.so.conf; then
  12933. 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' ' '`
  12934. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12935. fi
  12936. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12937. # powerpc, because MkLinux only supported shared libraries with the
  12938. # GNU dynamic linker. Since this was broken with cross compilers,
  12939. # most powerpc-linux boxes support dynamic linking these days and
  12940. # people can always --disable-shared, the test was removed, and we
  12941. # assume the GNU/Linux dynamic linker is in use.
  12942. dynamic_linker='GNU/Linux ld.so'
  12943. ;;
  12944. netbsd*)
  12945. version_type=sunos
  12946. need_lib_prefix=no
  12947. need_version=no
  12948. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12950. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12951. dynamic_linker='NetBSD (a.out) ld.so'
  12952. else
  12953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. dynamic_linker='NetBSD ld.elf_so'
  12956. fi
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. shlibpath_overrides_runpath=yes
  12959. hardcode_into_libs=yes
  12960. ;;
  12961. newsos6)
  12962. version_type=linux # correct to gnu/linux during the next big refactor
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12964. shlibpath_var=LD_LIBRARY_PATH
  12965. shlibpath_overrides_runpath=yes
  12966. ;;
  12967. *nto* | *qnx*)
  12968. version_type=qnx
  12969. need_lib_prefix=no
  12970. need_version=no
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. shlibpath_var=LD_LIBRARY_PATH
  12974. shlibpath_overrides_runpath=no
  12975. hardcode_into_libs=yes
  12976. dynamic_linker='ldqnx.so'
  12977. ;;
  12978. openbsd*)
  12979. version_type=sunos
  12980. sys_lib_dlsearch_path_spec="/usr/lib"
  12981. need_lib_prefix=no
  12982. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12983. case $host_os in
  12984. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12985. *) need_version=no ;;
  12986. esac
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12988. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12989. shlibpath_var=LD_LIBRARY_PATH
  12990. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12991. case $host_os in
  12992. openbsd2.[89] | openbsd2.[89].*)
  12993. shlibpath_overrides_runpath=no
  12994. ;;
  12995. *)
  12996. shlibpath_overrides_runpath=yes
  12997. ;;
  12998. esac
  12999. else
  13000. shlibpath_overrides_runpath=yes
  13001. fi
  13002. ;;
  13003. os2*)
  13004. libname_spec='$name'
  13005. shrext_cmds=".dll"
  13006. need_lib_prefix=no
  13007. library_names_spec='$libname${shared_ext} $libname.a'
  13008. dynamic_linker='OS/2 ld.exe'
  13009. shlibpath_var=LIBPATH
  13010. ;;
  13011. osf3* | osf4* | osf5*)
  13012. version_type=osf
  13013. need_lib_prefix=no
  13014. need_version=no
  13015. soname_spec='${libname}${release}${shared_ext}$major'
  13016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13017. shlibpath_var=LD_LIBRARY_PATH
  13018. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13019. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13020. ;;
  13021. rdos*)
  13022. dynamic_linker=no
  13023. ;;
  13024. solaris*)
  13025. version_type=linux # correct to gnu/linux during the next big refactor
  13026. need_lib_prefix=no
  13027. need_version=no
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. shlibpath_var=LD_LIBRARY_PATH
  13031. shlibpath_overrides_runpath=yes
  13032. hardcode_into_libs=yes
  13033. # ldd complains unless libraries are executable
  13034. postinstall_cmds='chmod +x $lib'
  13035. ;;
  13036. sunos4*)
  13037. version_type=sunos
  13038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13039. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13040. shlibpath_var=LD_LIBRARY_PATH
  13041. shlibpath_overrides_runpath=yes
  13042. if test "$with_gnu_ld" = yes; then
  13043. need_lib_prefix=no
  13044. fi
  13045. need_version=yes
  13046. ;;
  13047. sysv4 | sysv4.3*)
  13048. version_type=linux # correct to gnu/linux during the next big refactor
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13050. soname_spec='${libname}${release}${shared_ext}$major'
  13051. shlibpath_var=LD_LIBRARY_PATH
  13052. case $host_vendor in
  13053. sni)
  13054. shlibpath_overrides_runpath=no
  13055. need_lib_prefix=no
  13056. runpath_var=LD_RUN_PATH
  13057. ;;
  13058. siemens)
  13059. need_lib_prefix=no
  13060. ;;
  13061. motorola)
  13062. need_lib_prefix=no
  13063. need_version=no
  13064. shlibpath_overrides_runpath=no
  13065. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13066. ;;
  13067. esac
  13068. ;;
  13069. sysv4*MP*)
  13070. if test -d /usr/nec ;then
  13071. version_type=linux # correct to gnu/linux during the next big refactor
  13072. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13073. soname_spec='$libname${shared_ext}.$major'
  13074. shlibpath_var=LD_LIBRARY_PATH
  13075. fi
  13076. ;;
  13077. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13078. version_type=freebsd-elf
  13079. need_lib_prefix=no
  13080. need_version=no
  13081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13082. soname_spec='${libname}${release}${shared_ext}$major'
  13083. shlibpath_var=LD_LIBRARY_PATH
  13084. shlibpath_overrides_runpath=yes
  13085. hardcode_into_libs=yes
  13086. if test "$with_gnu_ld" = yes; then
  13087. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13088. else
  13089. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13090. case $host_os in
  13091. sco3.2v5*)
  13092. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13093. ;;
  13094. esac
  13095. fi
  13096. sys_lib_dlsearch_path_spec='/usr/lib'
  13097. ;;
  13098. tpf*)
  13099. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13100. version_type=linux # correct to gnu/linux during the next big refactor
  13101. need_lib_prefix=no
  13102. need_version=no
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13104. shlibpath_var=LD_LIBRARY_PATH
  13105. shlibpath_overrides_runpath=no
  13106. hardcode_into_libs=yes
  13107. ;;
  13108. uts4*)
  13109. version_type=linux # correct to gnu/linux during the next big refactor
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. ;;
  13114. *)
  13115. dynamic_linker=no
  13116. ;;
  13117. esac
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13119. $as_echo "$dynamic_linker" >&6; }
  13120. test "$dynamic_linker" = no && can_build_shared=no
  13121. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13122. if test "$GCC" = yes; then
  13123. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13124. fi
  13125. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13126. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13127. fi
  13128. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13129. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13130. fi
  13131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13132. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13133. hardcode_action_CXX=
  13134. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13135. test -n "$runpath_var_CXX" ||
  13136. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13137. # We can hardcode non-existent directories.
  13138. if test "$hardcode_direct_CXX" != no &&
  13139. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13140. # have to relink, otherwise we might link with an installed library
  13141. # when we should be linking with a yet-to-be-installed one
  13142. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13143. test "$hardcode_minus_L_CXX" != no; then
  13144. # Linking always hardcodes the temporary library directory.
  13145. hardcode_action_CXX=relink
  13146. else
  13147. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13148. hardcode_action_CXX=immediate
  13149. fi
  13150. else
  13151. # We cannot hardcode anything, or else we can only hardcode existing
  13152. # directories.
  13153. hardcode_action_CXX=unsupported
  13154. fi
  13155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13156. $as_echo "$hardcode_action_CXX" >&6; }
  13157. if test "$hardcode_action_CXX" = relink ||
  13158. test "$inherit_rpath_CXX" = yes; then
  13159. # Fast installation is not supported
  13160. enable_fast_install=no
  13161. elif test "$shlibpath_overrides_runpath" = yes ||
  13162. test "$enable_shared" = no; then
  13163. # Fast installation is not necessary
  13164. enable_fast_install=needless
  13165. fi
  13166. fi # test -n "$compiler"
  13167. CC=$lt_save_CC
  13168. CFLAGS=$lt_save_CFLAGS
  13169. LDCXX=$LD
  13170. LD=$lt_save_LD
  13171. GCC=$lt_save_GCC
  13172. with_gnu_ld=$lt_save_with_gnu_ld
  13173. lt_cv_path_LDCXX=$lt_cv_path_LD
  13174. lt_cv_path_LD=$lt_save_path_LD
  13175. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13176. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13177. fi # test "$_lt_caught_CXX_error" != yes
  13178. ac_ext=c
  13179. ac_cpp='$CPP $CPPFLAGS'
  13180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13183. ac_config_commands="$ac_config_commands libtool"
  13184. # Only expand once:
  13185. ac_config_headers="$ac_config_headers config.h"
  13186. am__api_version='1.11'
  13187. # Find a good install program. We prefer a C program (faster),
  13188. # so one script is as good as another. But avoid the broken or
  13189. # incompatible versions:
  13190. # SysV /etc/install, /usr/sbin/install
  13191. # SunOS /usr/etc/install
  13192. # IRIX /sbin/install
  13193. # AIX /bin/install
  13194. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13195. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13196. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13197. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13198. # OS/2's system install, which has a completely different semantic
  13199. # ./install, which can be erroneously created by make from ./install.sh.
  13200. # Reject install programs that cannot install multiple files.
  13201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13202. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13203. if test -z "$INSTALL"; then
  13204. if ${ac_cv_path_install+:} false; then :
  13205. $as_echo_n "(cached) " >&6
  13206. else
  13207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13208. for as_dir in $PATH
  13209. do
  13210. IFS=$as_save_IFS
  13211. test -z "$as_dir" && as_dir=.
  13212. # Account for people who put trailing slashes in PATH elements.
  13213. case $as_dir/ in #((
  13214. ./ | .// | /[cC]/* | \
  13215. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13216. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13217. /usr/ucb/* ) ;;
  13218. *)
  13219. # OSF1 and SCO ODT 3.0 have their own names for install.
  13220. # Don't use installbsd from OSF since it installs stuff as root
  13221. # by default.
  13222. for ac_prog in ginstall scoinst install; do
  13223. for ac_exec_ext in '' $ac_executable_extensions; do
  13224. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13225. if test $ac_prog = install &&
  13226. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13227. # AIX install. It has an incompatible calling convention.
  13228. :
  13229. elif test $ac_prog = install &&
  13230. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13231. # program-specific install script used by HP pwplus--don't use.
  13232. :
  13233. else
  13234. rm -rf conftest.one conftest.two conftest.dir
  13235. echo one > conftest.one
  13236. echo two > conftest.two
  13237. mkdir conftest.dir
  13238. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13239. test -s conftest.one && test -s conftest.two &&
  13240. test -s conftest.dir/conftest.one &&
  13241. test -s conftest.dir/conftest.two
  13242. then
  13243. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13244. break 3
  13245. fi
  13246. fi
  13247. fi
  13248. done
  13249. done
  13250. ;;
  13251. esac
  13252. done
  13253. IFS=$as_save_IFS
  13254. rm -rf conftest.one conftest.two conftest.dir
  13255. fi
  13256. if test "${ac_cv_path_install+set}" = set; then
  13257. INSTALL=$ac_cv_path_install
  13258. else
  13259. # As a last resort, use the slow shell script. Don't cache a
  13260. # value for INSTALL within a source directory, because that will
  13261. # break other packages using the cache if that directory is
  13262. # removed, or if the value is a relative name.
  13263. INSTALL=$ac_install_sh
  13264. fi
  13265. fi
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13267. $as_echo "$INSTALL" >&6; }
  13268. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13269. # It thinks the first close brace ends the variable substitution.
  13270. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13271. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13272. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13274. $as_echo_n "checking whether build environment is sane... " >&6; }
  13275. # Just in case
  13276. sleep 1
  13277. echo timestamp > conftest.file
  13278. # Reject unsafe characters in $srcdir or the absolute working directory
  13279. # name. Accept space and tab only in the latter.
  13280. am_lf='
  13281. '
  13282. case `pwd` in
  13283. *[\\\"\#\$\&\'\`$am_lf]*)
  13284. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13285. esac
  13286. case $srcdir in
  13287. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13288. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13289. esac
  13290. # Do `set' in a subshell so we don't clobber the current shell's
  13291. # arguments. Must try -L first in case configure is actually a
  13292. # symlink; some systems play weird games with the mod time of symlinks
  13293. # (eg FreeBSD returns the mod time of the symlink's containing
  13294. # directory).
  13295. if (
  13296. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13297. if test "$*" = "X"; then
  13298. # -L didn't work.
  13299. set X `ls -t "$srcdir/configure" conftest.file`
  13300. fi
  13301. rm -f conftest.file
  13302. if test "$*" != "X $srcdir/configure conftest.file" \
  13303. && test "$*" != "X conftest.file $srcdir/configure"; then
  13304. # If neither matched, then we have a broken ls. This can happen
  13305. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13306. # broken ls alias from the environment. This has actually
  13307. # happened. Such a system could not be considered "sane".
  13308. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13309. alias in your environment" "$LINENO" 5
  13310. fi
  13311. test "$2" = conftest.file
  13312. )
  13313. then
  13314. # Ok.
  13315. :
  13316. else
  13317. as_fn_error $? "newly created file is older than distributed files!
  13318. Check your system clock" "$LINENO" 5
  13319. fi
  13320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13321. $as_echo "yes" >&6; }
  13322. test "$program_prefix" != NONE &&
  13323. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13324. # Use a double $ so make ignores it.
  13325. test "$program_suffix" != NONE &&
  13326. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13327. # Double any \ or $.
  13328. # By default was `s,x,x', remove it if useless.
  13329. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13330. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13331. # expand $ac_aux_dir to an absolute path
  13332. am_aux_dir=`cd $ac_aux_dir && pwd`
  13333. if test x"${MISSING+set}" != xset; then
  13334. case $am_aux_dir in
  13335. *\ * | *\ *)
  13336. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13337. *)
  13338. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13339. esac
  13340. fi
  13341. # Use eval to expand $SHELL
  13342. if eval "$MISSING --run true"; then
  13343. am_missing_run="$MISSING --run "
  13344. else
  13345. am_missing_run=
  13346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13347. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13348. fi
  13349. if test x"${install_sh}" != xset; then
  13350. case $am_aux_dir in
  13351. *\ * | *\ *)
  13352. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13353. *)
  13354. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13355. esac
  13356. fi
  13357. # Installed binaries are usually stripped using `strip' when the user
  13358. # run `make install-strip'. However `strip' might not be the right
  13359. # tool to use in cross-compilation environments, therefore Automake
  13360. # will honor the `STRIP' environment variable to overrule this program.
  13361. if test "$cross_compiling" != no; then
  13362. if test -n "$ac_tool_prefix"; then
  13363. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13364. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13366. $as_echo_n "checking for $ac_word... " >&6; }
  13367. if ${ac_cv_prog_STRIP+:} false; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. if test -n "$STRIP"; then
  13371. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13372. else
  13373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13374. for as_dir in $PATH
  13375. do
  13376. IFS=$as_save_IFS
  13377. test -z "$as_dir" && as_dir=.
  13378. for ac_exec_ext in '' $ac_executable_extensions; do
  13379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13380. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13382. break 2
  13383. fi
  13384. done
  13385. done
  13386. IFS=$as_save_IFS
  13387. fi
  13388. fi
  13389. STRIP=$ac_cv_prog_STRIP
  13390. if test -n "$STRIP"; then
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13392. $as_echo "$STRIP" >&6; }
  13393. else
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13395. $as_echo "no" >&6; }
  13396. fi
  13397. fi
  13398. if test -z "$ac_cv_prog_STRIP"; then
  13399. ac_ct_STRIP=$STRIP
  13400. # Extract the first word of "strip", so it can be a program name with args.
  13401. set dummy strip; ac_word=$2
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13403. $as_echo_n "checking for $ac_word... " >&6; }
  13404. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13405. $as_echo_n "(cached) " >&6
  13406. else
  13407. if test -n "$ac_ct_STRIP"; then
  13408. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13409. else
  13410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13411. for as_dir in $PATH
  13412. do
  13413. IFS=$as_save_IFS
  13414. test -z "$as_dir" && as_dir=.
  13415. for ac_exec_ext in '' $ac_executable_extensions; do
  13416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13417. ac_cv_prog_ac_ct_STRIP="strip"
  13418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13419. break 2
  13420. fi
  13421. done
  13422. done
  13423. IFS=$as_save_IFS
  13424. fi
  13425. fi
  13426. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13427. if test -n "$ac_ct_STRIP"; then
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13429. $as_echo "$ac_ct_STRIP" >&6; }
  13430. else
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13432. $as_echo "no" >&6; }
  13433. fi
  13434. if test "x$ac_ct_STRIP" = x; then
  13435. STRIP=":"
  13436. else
  13437. case $cross_compiling:$ac_tool_warned in
  13438. yes:)
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13441. ac_tool_warned=yes ;;
  13442. esac
  13443. STRIP=$ac_ct_STRIP
  13444. fi
  13445. else
  13446. STRIP="$ac_cv_prog_STRIP"
  13447. fi
  13448. fi
  13449. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13451. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13452. if test -z "$MKDIR_P"; then
  13453. if ${ac_cv_path_mkdir+:} false; then :
  13454. $as_echo_n "(cached) " >&6
  13455. else
  13456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13457. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13458. do
  13459. IFS=$as_save_IFS
  13460. test -z "$as_dir" && as_dir=.
  13461. for ac_prog in mkdir gmkdir; do
  13462. for ac_exec_ext in '' $ac_executable_extensions; do
  13463. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13464. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13465. 'mkdir (GNU coreutils) '* | \
  13466. 'mkdir (coreutils) '* | \
  13467. 'mkdir (fileutils) '4.1*)
  13468. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13469. break 3;;
  13470. esac
  13471. done
  13472. done
  13473. done
  13474. IFS=$as_save_IFS
  13475. fi
  13476. test -d ./--version && rmdir ./--version
  13477. if test "${ac_cv_path_mkdir+set}" = set; then
  13478. MKDIR_P="$ac_cv_path_mkdir -p"
  13479. else
  13480. # As a last resort, use the slow shell script. Don't cache a
  13481. # value for MKDIR_P within a source directory, because that will
  13482. # break other packages using the cache if that directory is
  13483. # removed, or if the value is a relative name.
  13484. MKDIR_P="$ac_install_sh -d"
  13485. fi
  13486. fi
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13488. $as_echo "$MKDIR_P" >&6; }
  13489. mkdir_p="$MKDIR_P"
  13490. case $mkdir_p in
  13491. [\\/$]* | ?:[\\/]*) ;;
  13492. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13493. esac
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13495. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13496. set x ${MAKE-make}
  13497. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13498. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13499. $as_echo_n "(cached) " >&6
  13500. else
  13501. cat >conftest.make <<\_ACEOF
  13502. SHELL = /bin/sh
  13503. all:
  13504. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13505. _ACEOF
  13506. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13507. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13508. *@@@%%%=?*=@@@%%%*)
  13509. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13510. *)
  13511. eval ac_cv_prog_make_${ac_make}_set=no;;
  13512. esac
  13513. rm -f conftest.make
  13514. fi
  13515. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13517. $as_echo "yes" >&6; }
  13518. SET_MAKE=
  13519. else
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13521. $as_echo "no" >&6; }
  13522. SET_MAKE="MAKE=${MAKE-make}"
  13523. fi
  13524. rm -rf .tst 2>/dev/null
  13525. mkdir .tst 2>/dev/null
  13526. if test -d .tst; then
  13527. am__leading_dot=.
  13528. else
  13529. am__leading_dot=_
  13530. fi
  13531. rmdir .tst 2>/dev/null
  13532. DEPDIR="${am__leading_dot}deps"
  13533. ac_config_commands="$ac_config_commands depfiles"
  13534. am_make=${MAKE-make}
  13535. cat > confinc << 'END'
  13536. am__doit:
  13537. @echo this is the am__doit target
  13538. .PHONY: am__doit
  13539. END
  13540. # If we don't find an include directive, just comment out the code.
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13542. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13543. am__include="#"
  13544. am__quote=
  13545. _am_result=none
  13546. # First try GNU make style include.
  13547. echo "include confinc" > confmf
  13548. # Ignore all kinds of additional output from `make'.
  13549. case `$am_make -s -f confmf 2> /dev/null` in #(
  13550. *the\ am__doit\ target*)
  13551. am__include=include
  13552. am__quote=
  13553. _am_result=GNU
  13554. ;;
  13555. esac
  13556. # Now try BSD make style include.
  13557. if test "$am__include" = "#"; then
  13558. echo '.include "confinc"' > confmf
  13559. case `$am_make -s -f confmf 2> /dev/null` in #(
  13560. *the\ am__doit\ target*)
  13561. am__include=.include
  13562. am__quote="\""
  13563. _am_result=BSD
  13564. ;;
  13565. esac
  13566. fi
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13568. $as_echo "$_am_result" >&6; }
  13569. rm -f confinc confmf
  13570. # Check whether --enable-dependency-tracking was given.
  13571. if test "${enable_dependency_tracking+set}" = set; then :
  13572. enableval=$enable_dependency_tracking;
  13573. fi
  13574. if test "x$enable_dependency_tracking" != xno; then
  13575. am_depcomp="$ac_aux_dir/depcomp"
  13576. AMDEPBACKSLASH='\'
  13577. am__nodep='_no'
  13578. fi
  13579. if test "x$enable_dependency_tracking" != xno; then
  13580. AMDEP_TRUE=
  13581. AMDEP_FALSE='#'
  13582. else
  13583. AMDEP_TRUE='#'
  13584. AMDEP_FALSE=
  13585. fi
  13586. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13587. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13588. # is not polluted with repeated "-I."
  13589. am__isrc=' -I$(srcdir)'
  13590. # test to see if srcdir already configured
  13591. if test -f $srcdir/config.status; then
  13592. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13593. fi
  13594. fi
  13595. # test whether we have cygpath
  13596. if test -z "$CYGPATH_W"; then
  13597. if (cygpath --version) >/dev/null 2>/dev/null; then
  13598. CYGPATH_W='cygpath -w'
  13599. else
  13600. CYGPATH_W=echo
  13601. fi
  13602. fi
  13603. # Define the identity of the package.
  13604. PACKAGE='klish'
  13605. VERSION='1.5.3'
  13606. cat >>confdefs.h <<_ACEOF
  13607. #define PACKAGE "$PACKAGE"
  13608. _ACEOF
  13609. cat >>confdefs.h <<_ACEOF
  13610. #define VERSION "$VERSION"
  13611. _ACEOF
  13612. # Some tools Automake needs.
  13613. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13614. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13615. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13616. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13617. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13618. # We need awk for the "check" target. The system "awk" is bad on
  13619. # some platforms.
  13620. # Always define AMTAR for backward compatibility. Yes, it's still used
  13621. # in the wild :-( We should find a proper way to deprecate it ...
  13622. AMTAR='$${TAR-tar}'
  13623. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13624. depcc="$CC" am_compiler_list=
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13626. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13627. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13628. $as_echo_n "(cached) " >&6
  13629. else
  13630. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13631. # We make a subdir and do the tests there. Otherwise we can end up
  13632. # making bogus files that we don't know about and never remove. For
  13633. # instance it was reported that on HP-UX the gcc test will end up
  13634. # making a dummy file named `D' -- because `-MD' means `put the output
  13635. # in D'.
  13636. rm -rf conftest.dir
  13637. mkdir conftest.dir
  13638. # Copy depcomp to subdir because otherwise we won't find it if we're
  13639. # using a relative directory.
  13640. cp "$am_depcomp" conftest.dir
  13641. cd conftest.dir
  13642. # We will build objects and dependencies in a subdirectory because
  13643. # it helps to detect inapplicable dependency modes. For instance
  13644. # both Tru64's cc and ICC support -MD to output dependencies as a
  13645. # side effect of compilation, but ICC will put the dependencies in
  13646. # the current directory while Tru64 will put them in the object
  13647. # directory.
  13648. mkdir sub
  13649. am_cv_CC_dependencies_compiler_type=none
  13650. if test "$am_compiler_list" = ""; then
  13651. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13652. fi
  13653. am__universal=false
  13654. case " $depcc " in #(
  13655. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13656. esac
  13657. for depmode in $am_compiler_list; do
  13658. # Setup a source with many dependencies, because some compilers
  13659. # like to wrap large dependency lists on column 80 (with \), and
  13660. # we should not choose a depcomp mode which is confused by this.
  13661. #
  13662. # We need to recreate these files for each test, as the compiler may
  13663. # overwrite some of them when testing with obscure command lines.
  13664. # This happens at least with the AIX C compiler.
  13665. : > sub/conftest.c
  13666. for i in 1 2 3 4 5 6; do
  13667. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13668. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13669. # Solaris 8's {/usr,}/bin/sh.
  13670. touch sub/conftst$i.h
  13671. done
  13672. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13673. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13674. # mode. It turns out that the SunPro C++ compiler does not properly
  13675. # handle `-M -o', and we need to detect this. Also, some Intel
  13676. # versions had trouble with output in subdirs
  13677. am__obj=sub/conftest.${OBJEXT-o}
  13678. am__minus_obj="-o $am__obj"
  13679. case $depmode in
  13680. gcc)
  13681. # This depmode causes a compiler race in universal mode.
  13682. test "$am__universal" = false || continue
  13683. ;;
  13684. nosideeffect)
  13685. # after this tag, mechanisms are not by side-effect, so they'll
  13686. # only be used when explicitly requested
  13687. if test "x$enable_dependency_tracking" = xyes; then
  13688. continue
  13689. else
  13690. break
  13691. fi
  13692. ;;
  13693. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13694. # This compiler won't grok `-c -o', but also, the minuso test has
  13695. # not run yet. These depmodes are late enough in the game, and
  13696. # so weak that their functioning should not be impacted.
  13697. am__obj=conftest.${OBJEXT-o}
  13698. am__minus_obj=
  13699. ;;
  13700. none) break ;;
  13701. esac
  13702. if depmode=$depmode \
  13703. source=sub/conftest.c object=$am__obj \
  13704. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13705. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13706. >/dev/null 2>conftest.err &&
  13707. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13708. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13709. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13710. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13711. # icc doesn't choke on unknown options, it will just issue warnings
  13712. # or remarks (even with -Werror). So we grep stderr for any message
  13713. # that says an option was ignored or not supported.
  13714. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13715. # icc: Command line warning: ignoring option '-M'; no argument required
  13716. # The diagnosis changed in icc 8.0:
  13717. # icc: Command line remark: option '-MP' not supported
  13718. if (grep 'ignoring option' conftest.err ||
  13719. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13720. am_cv_CC_dependencies_compiler_type=$depmode
  13721. break
  13722. fi
  13723. fi
  13724. done
  13725. cd ..
  13726. rm -rf conftest.dir
  13727. else
  13728. am_cv_CC_dependencies_compiler_type=none
  13729. fi
  13730. fi
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13732. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13733. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13734. if
  13735. test "x$enable_dependency_tracking" != xno \
  13736. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13737. am__fastdepCC_TRUE=
  13738. am__fastdepCC_FALSE='#'
  13739. else
  13740. am__fastdepCC_TRUE='#'
  13741. am__fastdepCC_FALSE=
  13742. fi
  13743. depcc="$CXX" am_compiler_list=
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13745. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13746. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13747. $as_echo_n "(cached) " >&6
  13748. else
  13749. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13750. # We make a subdir and do the tests there. Otherwise we can end up
  13751. # making bogus files that we don't know about and never remove. For
  13752. # instance it was reported that on HP-UX the gcc test will end up
  13753. # making a dummy file named `D' -- because `-MD' means `put the output
  13754. # in D'.
  13755. rm -rf conftest.dir
  13756. mkdir conftest.dir
  13757. # Copy depcomp to subdir because otherwise we won't find it if we're
  13758. # using a relative directory.
  13759. cp "$am_depcomp" conftest.dir
  13760. cd conftest.dir
  13761. # We will build objects and dependencies in a subdirectory because
  13762. # it helps to detect inapplicable dependency modes. For instance
  13763. # both Tru64's cc and ICC support -MD to output dependencies as a
  13764. # side effect of compilation, but ICC will put the dependencies in
  13765. # the current directory while Tru64 will put them in the object
  13766. # directory.
  13767. mkdir sub
  13768. am_cv_CXX_dependencies_compiler_type=none
  13769. if test "$am_compiler_list" = ""; then
  13770. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13771. fi
  13772. am__universal=false
  13773. case " $depcc " in #(
  13774. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13775. esac
  13776. for depmode in $am_compiler_list; do
  13777. # Setup a source with many dependencies, because some compilers
  13778. # like to wrap large dependency lists on column 80 (with \), and
  13779. # we should not choose a depcomp mode which is confused by this.
  13780. #
  13781. # We need to recreate these files for each test, as the compiler may
  13782. # overwrite some of them when testing with obscure command lines.
  13783. # This happens at least with the AIX C compiler.
  13784. : > sub/conftest.c
  13785. for i in 1 2 3 4 5 6; do
  13786. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13787. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13788. # Solaris 8's {/usr,}/bin/sh.
  13789. touch sub/conftst$i.h
  13790. done
  13791. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13792. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13793. # mode. It turns out that the SunPro C++ compiler does not properly
  13794. # handle `-M -o', and we need to detect this. Also, some Intel
  13795. # versions had trouble with output in subdirs
  13796. am__obj=sub/conftest.${OBJEXT-o}
  13797. am__minus_obj="-o $am__obj"
  13798. case $depmode in
  13799. gcc)
  13800. # This depmode causes a compiler race in universal mode.
  13801. test "$am__universal" = false || continue
  13802. ;;
  13803. nosideeffect)
  13804. # after this tag, mechanisms are not by side-effect, so they'll
  13805. # only be used when explicitly requested
  13806. if test "x$enable_dependency_tracking" = xyes; then
  13807. continue
  13808. else
  13809. break
  13810. fi
  13811. ;;
  13812. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13813. # This compiler won't grok `-c -o', but also, the minuso test has
  13814. # not run yet. These depmodes are late enough in the game, and
  13815. # so weak that their functioning should not be impacted.
  13816. am__obj=conftest.${OBJEXT-o}
  13817. am__minus_obj=
  13818. ;;
  13819. none) break ;;
  13820. esac
  13821. if depmode=$depmode \
  13822. source=sub/conftest.c object=$am__obj \
  13823. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13824. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13825. >/dev/null 2>conftest.err &&
  13826. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13827. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13828. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13829. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13830. # icc doesn't choke on unknown options, it will just issue warnings
  13831. # or remarks (even with -Werror). So we grep stderr for any message
  13832. # that says an option was ignored or not supported.
  13833. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13834. # icc: Command line warning: ignoring option '-M'; no argument required
  13835. # The diagnosis changed in icc 8.0:
  13836. # icc: Command line remark: option '-MP' not supported
  13837. if (grep 'ignoring option' conftest.err ||
  13838. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13839. am_cv_CXX_dependencies_compiler_type=$depmode
  13840. break
  13841. fi
  13842. fi
  13843. done
  13844. cd ..
  13845. rm -rf conftest.dir
  13846. else
  13847. am_cv_CXX_dependencies_compiler_type=none
  13848. fi
  13849. fi
  13850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13851. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13852. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13853. if
  13854. test "x$enable_dependency_tracking" != xno \
  13855. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13856. am__fastdepCXX_TRUE=
  13857. am__fastdepCXX_FALSE='#'
  13858. else
  13859. am__fastdepCXX_TRUE='#'
  13860. am__fastdepCXX_FALSE=
  13861. fi
  13862. if test "x$CC" != xcc; then
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13864. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13865. else
  13866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13867. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13868. fi
  13869. set dummy $CC; ac_cc=`$as_echo "$2" |
  13870. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13871. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. int
  13877. main ()
  13878. {
  13879. ;
  13880. return 0;
  13881. }
  13882. _ACEOF
  13883. # Make sure it works both with $CC and with simple cc.
  13884. # We do the test twice because some compilers refuse to overwrite an
  13885. # existing .o file with -o, though they will create one.
  13886. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13887. rm -f conftest2.*
  13888. if { { case "(($ac_try" in
  13889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13890. *) ac_try_echo=$ac_try;;
  13891. esac
  13892. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13893. $as_echo "$ac_try_echo"; } >&5
  13894. (eval "$ac_try") 2>&5
  13895. ac_status=$?
  13896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13897. test $ac_status = 0; } &&
  13898. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13900. *) ac_try_echo=$ac_try;;
  13901. esac
  13902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13903. $as_echo "$ac_try_echo"; } >&5
  13904. (eval "$ac_try") 2>&5
  13905. ac_status=$?
  13906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13907. test $ac_status = 0; };
  13908. then
  13909. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13910. if test "x$CC" != xcc; then
  13911. # Test first that cc exists at all.
  13912. if { ac_try='cc -c conftest.$ac_ext >&5'
  13913. { { case "(($ac_try" in
  13914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13915. *) ac_try_echo=$ac_try;;
  13916. esac
  13917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13918. $as_echo "$ac_try_echo"; } >&5
  13919. (eval "$ac_try") 2>&5
  13920. ac_status=$?
  13921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13922. test $ac_status = 0; }; }; then
  13923. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13924. rm -f conftest2.*
  13925. if { { case "(($ac_try" in
  13926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13927. *) ac_try_echo=$ac_try;;
  13928. esac
  13929. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13930. $as_echo "$ac_try_echo"; } >&5
  13931. (eval "$ac_try") 2>&5
  13932. ac_status=$?
  13933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13934. test $ac_status = 0; } &&
  13935. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13937. *) ac_try_echo=$ac_try;;
  13938. esac
  13939. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13940. $as_echo "$ac_try_echo"; } >&5
  13941. (eval "$ac_try") 2>&5
  13942. ac_status=$?
  13943. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13944. test $ac_status = 0; };
  13945. then
  13946. # cc works too.
  13947. :
  13948. else
  13949. # cc exists but doesn't like -o.
  13950. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13951. fi
  13952. fi
  13953. fi
  13954. else
  13955. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13956. fi
  13957. rm -f core conftest*
  13958. fi
  13959. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13961. $as_echo "yes" >&6; }
  13962. else
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13964. $as_echo "no" >&6; }
  13965. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13966. fi
  13967. # FIXME: we rely on the cache variable name because
  13968. # there is no other way.
  13969. set dummy $CC
  13970. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13971. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13972. if test "$am_t" != yes; then
  13973. # Losing compiler, so override with the script.
  13974. # FIXME: It is wrong to rewrite CC.
  13975. # But if we don't then we get into trouble of one sort or another.
  13976. # A longer-term fix would be to have automake use am__CC in this case,
  13977. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13978. CC="$am_aux_dir/compile $CC"
  13979. fi
  13980. # needed to handle 64-bit architecture
  13981. # The cast to long int works around a bug in the HP C Compiler
  13982. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13983. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13984. # This bug is HP SR number 8606223364.
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13986. $as_echo_n "checking size of int... " >&6; }
  13987. if ${ac_cv_sizeof_int+:} false; then :
  13988. $as_echo_n "(cached) " >&6
  13989. else
  13990. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13991. else
  13992. if test "$ac_cv_type_int" = yes; then
  13993. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13995. as_fn_error 77 "cannot compute sizeof (int)
  13996. See \`config.log' for more details" "$LINENO" 5; }
  13997. else
  13998. ac_cv_sizeof_int=0
  13999. fi
  14000. fi
  14001. fi
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14003. $as_echo "$ac_cv_sizeof_int" >&6; }
  14004. cat >>confdefs.h <<_ACEOF
  14005. #define SIZEOF_INT $ac_cv_sizeof_int
  14006. _ACEOF
  14007. # The cast to long int works around a bug in the HP C Compiler
  14008. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14009. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14010. # This bug is HP SR number 8606223364.
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14012. $as_echo_n "checking size of long... " >&6; }
  14013. if ${ac_cv_sizeof_long+:} false; then :
  14014. $as_echo_n "(cached) " >&6
  14015. else
  14016. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14017. else
  14018. if test "$ac_cv_type_long" = yes; then
  14019. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14020. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14021. as_fn_error 77 "cannot compute sizeof (long)
  14022. See \`config.log' for more details" "$LINENO" 5; }
  14023. else
  14024. ac_cv_sizeof_long=0
  14025. fi
  14026. fi
  14027. fi
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14029. $as_echo "$ac_cv_sizeof_long" >&6; }
  14030. cat >>confdefs.h <<_ACEOF
  14031. #define SIZEOF_LONG $ac_cv_sizeof_long
  14032. _ACEOF
  14033. # The cast to long int works around a bug in the HP C Compiler
  14034. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14035. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14036. # This bug is HP SR number 8606223364.
  14037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14038. $as_echo_n "checking size of size_t... " >&6; }
  14039. if ${ac_cv_sizeof_size_t+:} false; then :
  14040. $as_echo_n "(cached) " >&6
  14041. else
  14042. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14043. else
  14044. if test "$ac_cv_type_size_t" = yes; then
  14045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14047. as_fn_error 77 "cannot compute sizeof (size_t)
  14048. See \`config.log' for more details" "$LINENO" 5; }
  14049. else
  14050. ac_cv_sizeof_size_t=0
  14051. fi
  14052. fi
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14055. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14056. cat >>confdefs.h <<_ACEOF
  14057. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14058. _ACEOF
  14059. #------------------------------------------------------------------------
  14060. # Handle the --prefix=... option
  14061. #------------------------------------------------------------------------
  14062. if test "${prefix}" = "NONE"; then
  14063. prefix=/usr/local
  14064. fi
  14065. if test "${exec_prefix}" = "NONE"; then
  14066. exec_prefix=$prefix
  14067. fi
  14068. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14069. eval libdir="$libdir"
  14070. ################################
  14071. # Deal with debugging options
  14072. ################################
  14073. # Check whether --enable-debug was given.
  14074. if test "${enable_debug+set}" = set; then :
  14075. enableval=$enable_debug;
  14076. else
  14077. enable_debug=no
  14078. fi
  14079. if test x$enable_debug = xyes; then
  14080. DEBUG_TRUE=
  14081. DEBUG_FALSE='#'
  14082. else
  14083. DEBUG_TRUE='#'
  14084. DEBUG_FALSE=
  14085. fi
  14086. ################################
  14087. # Check for the LUB library
  14088. ################################
  14089. LUB_LIBS="-llub"
  14090. LUB_CFLAGS=""
  14091. if test "x$LUB_LIBS" = "x"; then
  14092. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14093. fi
  14094. ################################
  14095. # Check for the KONF library
  14096. ################################
  14097. KONF_LIBS="-lkonf"
  14098. KONF_CFLAGS=""
  14099. if test "x$KONF_LIBS" = "x"; then
  14100. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14101. fi
  14102. ################################
  14103. # Check for the TINYRL library
  14104. ################################
  14105. TINYRL_LIBS="-ltinyrl"
  14106. TINYRL_CFLAGS=""
  14107. if test "x$TINYRL_LIBS" = "x"; then
  14108. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14109. fi
  14110. ################################
  14111. # Check for the TINYXML library
  14112. ################################
  14113. TINYXML_LIBS="-ltinyxml"
  14114. TINYXML_CXXFLAGS="-std=gnu++98"
  14115. if test "x$TINYXML_LIBS" = "x"; then
  14116. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14117. fi
  14118. ################################
  14119. # Check for the PTHREAD library
  14120. ################################
  14121. #C_ARG_WITH(pthread,
  14122. # [AS_HELP_STRING([--with-pthread=DIR],
  14123. # [Use POSIX threads library distribution in DIR])
  14124. # ])
  14125. for ac_header in pthread.h
  14126. do :
  14127. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  14128. if test "x$ac_cv_header_pthread_h" = xyes; then :
  14129. cat >>confdefs.h <<_ACEOF
  14130. #define HAVE_PTHREAD_H 1
  14131. _ACEOF
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  14133. $as_echo_n "checking for library containing pthread_create... " >&6; }
  14134. if ${ac_cv_search_pthread_create+:} false; then :
  14135. $as_echo_n "(cached) " >&6
  14136. else
  14137. ac_func_search_save_LIBS=$LIBS
  14138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14139. /* end confdefs.h. */
  14140. /* Override any GCC internal prototype to avoid an error.
  14141. Use char because int might match the return type of a GCC
  14142. builtin and then its argument prototype would still apply. */
  14143. #ifdef __cplusplus
  14144. extern "C"
  14145. #endif
  14146. char pthread_create ();
  14147. int
  14148. main ()
  14149. {
  14150. return pthread_create ();
  14151. ;
  14152. return 0;
  14153. }
  14154. _ACEOF
  14155. for ac_lib in '' pthread; do
  14156. if test -z "$ac_lib"; then
  14157. ac_res="none required"
  14158. else
  14159. ac_res=-l$ac_lib
  14160. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14161. fi
  14162. if ac_fn_c_try_link "$LINENO"; then :
  14163. ac_cv_search_pthread_create=$ac_res
  14164. fi
  14165. rm -f core conftest.err conftest.$ac_objext \
  14166. conftest$ac_exeext
  14167. if ${ac_cv_search_pthread_create+:} false; then :
  14168. break
  14169. fi
  14170. done
  14171. if ${ac_cv_search_pthread_create+:} false; then :
  14172. else
  14173. ac_cv_search_pthread_create=no
  14174. fi
  14175. rm conftest.$ac_ext
  14176. LIBS=$ac_func_search_save_LIBS
  14177. fi
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  14179. $as_echo "$ac_cv_search_pthread_create" >&6; }
  14180. ac_res=$ac_cv_search_pthread_create
  14181. if test "$ac_res" != no; then :
  14182. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14183. else
  14184. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  14185. fi
  14186. fi
  14187. done
  14188. ################################
  14189. # Check for the RT library
  14190. ################################
  14191. # Check whether --with-rt was given.
  14192. if test "${with_rt+set}" = set; then :
  14193. withval=$with_rt;
  14194. fi
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  14196. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  14197. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  14198. $as_echo_n "(cached) " >&6
  14199. else
  14200. ac_check_lib_save_LIBS=$LIBS
  14201. LIBS="-lrt $LIBS"
  14202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14203. /* end confdefs.h. */
  14204. /* Override any GCC internal prototype to avoid an error.
  14205. Use char because int might match the return type of a GCC
  14206. builtin and then its argument prototype would still apply. */
  14207. #ifdef __cplusplus
  14208. extern "C"
  14209. #endif
  14210. char clock_gettime ();
  14211. int
  14212. main ()
  14213. {
  14214. return clock_gettime ();
  14215. ;
  14216. return 0;
  14217. }
  14218. _ACEOF
  14219. if ac_fn_c_try_link "$LINENO"; then :
  14220. ac_cv_lib_rt_clock_gettime=yes
  14221. else
  14222. ac_cv_lib_rt_clock_gettime=no
  14223. fi
  14224. rm -f core conftest.err conftest.$ac_objext \
  14225. conftest$ac_exeext conftest.$ac_ext
  14226. LIBS=$ac_check_lib_save_LIBS
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  14229. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  14230. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  14231. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  14232. if test "x$with_rt" = "x"; then
  14233. RT_LIBS="-lrt"
  14234. else
  14235. RT_CFLAGS="-I$with_rt/include"
  14236. RT_LIBS="-L$with_rt/lib -lrt"
  14237. fi
  14238. fi
  14239. ################################
  14240. # Check for linkage with GPL libraries
  14241. ################################
  14242. # Check whether --enable-gpl was given.
  14243. if test "${enable_gpl+set}" = set; then :
  14244. enableval=$enable_gpl;
  14245. else
  14246. enable_gpl=yes
  14247. fi
  14248. if test "x$enable_gpl" = "xyes"; then
  14249. ################################
  14250. # Check for BFD library
  14251. ################################
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  14253. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  14254. for ac_header in bfd.h
  14255. do :
  14256. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14257. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14258. cat >>confdefs.h <<_ACEOF
  14259. #define HAVE_BFD_H 1
  14260. _ACEOF
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  14262. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  14263. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  14264. $as_echo_n "(cached) " >&6
  14265. else
  14266. ac_check_lib_save_LIBS=$LIBS
  14267. LIBS="-lbfd $LIBS"
  14268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14269. /* end confdefs.h. */
  14270. /* Override any GCC internal prototype to avoid an error.
  14271. Use char because int might match the return type of a GCC
  14272. builtin and then its argument prototype would still apply. */
  14273. #ifdef __cplusplus
  14274. extern "C"
  14275. #endif
  14276. char bfd_init ();
  14277. int
  14278. main ()
  14279. {
  14280. return bfd_init ();
  14281. ;
  14282. return 0;
  14283. }
  14284. _ACEOF
  14285. if ac_fn_c_try_link "$LINENO"; then :
  14286. ac_cv_lib_bfd_bfd_init=yes
  14287. else
  14288. ac_cv_lib_bfd_bfd_init=no
  14289. fi
  14290. rm -f core conftest.err conftest.$ac_objext \
  14291. conftest$ac_exeext conftest.$ac_ext
  14292. LIBS=$ac_check_lib_save_LIBS
  14293. fi
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  14295. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  14296. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  14297. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  14298. BFD_LIBS="-lbfd -liberty"
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  14300. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  14301. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  14302. $as_echo_n "(cached) " >&6
  14303. else
  14304. ac_check_lib_save_LIBS=$LIBS
  14305. LIBS="-lintl $LIBS"
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. /* Override any GCC internal prototype to avoid an error.
  14309. Use char because int might match the return type of a GCC
  14310. builtin and then its argument prototype would still apply. */
  14311. #ifdef __cplusplus
  14312. extern "C"
  14313. #endif
  14314. char libintl_dgettext ();
  14315. int
  14316. main ()
  14317. {
  14318. return libintl_dgettext ();
  14319. ;
  14320. return 0;
  14321. }
  14322. _ACEOF
  14323. if ac_fn_c_try_link "$LINENO"; then :
  14324. ac_cv_lib_intl_libintl_dgettext=yes
  14325. else
  14326. ac_cv_lib_intl_libintl_dgettext=no
  14327. fi
  14328. rm -f core conftest.err conftest.$ac_objext \
  14329. conftest$ac_exeext conftest.$ac_ext
  14330. LIBS=$ac_check_lib_save_LIBS
  14331. fi
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  14333. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  14334. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  14335. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  14336. BFD_LIBS="$BFD_LIBS -lintl"
  14337. fi
  14338. fi
  14339. fi
  14340. done
  14341. else
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  14343. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  14344. fi
  14345. ################################
  14346. # Search for network functions (like connect())
  14347. ################################
  14348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14349. $as_echo_n "checking for library containing socket... " >&6; }
  14350. if ${ac_cv_search_socket+:} false; then :
  14351. $as_echo_n "(cached) " >&6
  14352. else
  14353. ac_func_search_save_LIBS=$LIBS
  14354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14355. /* end confdefs.h. */
  14356. /* Override any GCC internal prototype to avoid an error.
  14357. Use char because int might match the return type of a GCC
  14358. builtin and then its argument prototype would still apply. */
  14359. #ifdef __cplusplus
  14360. extern "C"
  14361. #endif
  14362. char socket ();
  14363. int
  14364. main ()
  14365. {
  14366. return socket ();
  14367. ;
  14368. return 0;
  14369. }
  14370. _ACEOF
  14371. for ac_lib in '' socket; do
  14372. if test -z "$ac_lib"; then
  14373. ac_res="none required"
  14374. else
  14375. ac_res=-l$ac_lib
  14376. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14377. fi
  14378. if ac_fn_c_try_link "$LINENO"; then :
  14379. ac_cv_search_socket=$ac_res
  14380. fi
  14381. rm -f core conftest.err conftest.$ac_objext \
  14382. conftest$ac_exeext
  14383. if ${ac_cv_search_socket+:} false; then :
  14384. break
  14385. fi
  14386. done
  14387. if ${ac_cv_search_socket+:} false; then :
  14388. else
  14389. ac_cv_search_socket=no
  14390. fi
  14391. rm conftest.$ac_ext
  14392. LIBS=$ac_func_search_save_LIBS
  14393. fi
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14395. $as_echo "$ac_cv_search_socket" >&6; }
  14396. ac_res=$ac_cv_search_socket
  14397. if test "$ac_res" != no; then :
  14398. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14399. fi
  14400. ################################
  14401. # Check for regex.h
  14402. ################################
  14403. for ac_header in regex.h
  14404. do :
  14405. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14406. if test "x$ac_cv_header_regex_h" = xyes; then :
  14407. cat >>confdefs.h <<_ACEOF
  14408. #define HAVE_REGEX_H 1
  14409. _ACEOF
  14410. else
  14411. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14412. fi
  14413. done
  14414. ################################
  14415. # Check for getopt_long()
  14416. ################################
  14417. for ac_header in getopt.h
  14418. do :
  14419. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14420. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14421. cat >>confdefs.h <<_ACEOF
  14422. #define HAVE_GETOPT_H 1
  14423. _ACEOF
  14424. else
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14426. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14427. fi
  14428. done
  14429. ################################
  14430. # Check for locale.h
  14431. ################################
  14432. for ac_header in locale.h
  14433. do :
  14434. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14435. if test "x$ac_cv_header_locale_h" = xyes; then :
  14436. cat >>confdefs.h <<_ACEOF
  14437. #define HAVE_LOCALE_H 1
  14438. _ACEOF
  14439. else
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14441. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14442. fi
  14443. done
  14444. ################################
  14445. # Check for CODESET within nl_langinfo
  14446. ################################
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14448. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14449. if ${am_cv_langinfo_codeset+:} false; then :
  14450. $as_echo_n "(cached) " >&6
  14451. else
  14452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14453. /* end confdefs.h. */
  14454. #include <langinfo.h>
  14455. int
  14456. main ()
  14457. {
  14458. char* cs = nl_langinfo(CODESET); return !cs;
  14459. ;
  14460. return 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_link "$LINENO"; then :
  14464. am_cv_langinfo_codeset=yes
  14465. else
  14466. am_cv_langinfo_codeset=no
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext \
  14469. conftest$ac_exeext conftest.$ac_ext
  14470. fi
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14472. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14473. if test $am_cv_langinfo_codeset = yes; then
  14474. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14475. fi
  14476. ################################
  14477. # Check for pwd.h and grp.h
  14478. ################################
  14479. for ac_header in pwd.h
  14480. do :
  14481. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14482. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14483. cat >>confdefs.h <<_ACEOF
  14484. #define HAVE_PWD_H 1
  14485. _ACEOF
  14486. else
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14488. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14489. fi
  14490. done
  14491. for ac_header in grp.h
  14492. do :
  14493. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14494. if test "x$ac_cv_header_grp_h" = xyes; then :
  14495. cat >>confdefs.h <<_ACEOF
  14496. #define HAVE_GRP_H 1
  14497. _ACEOF
  14498. else
  14499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14500. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14501. fi
  14502. done
  14503. ################################
  14504. # Check for chroot
  14505. ################################
  14506. for ac_func in chroot
  14507. do :
  14508. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14509. if test "x$ac_cv_func_chroot" = xyes; then :
  14510. cat >>confdefs.h <<_ACEOF
  14511. #define HAVE_CHROOT 1
  14512. _ACEOF
  14513. else
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14515. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14516. fi
  14517. done
  14518. ac_config_files="$ac_config_files Makefile"
  14519. cat >confcache <<\_ACEOF
  14520. # This file is a shell script that caches the results of configure
  14521. # tests run on this system so they can be shared between configure
  14522. # scripts and configure runs, see configure's option --config-cache.
  14523. # It is not useful on other systems. If it contains results you don't
  14524. # want to keep, you may remove or edit it.
  14525. #
  14526. # config.status only pays attention to the cache file if you give it
  14527. # the --recheck option to rerun configure.
  14528. #
  14529. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14530. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14531. # following values.
  14532. _ACEOF
  14533. # The following way of writing the cache mishandles newlines in values,
  14534. # but we know of no workaround that is simple, portable, and efficient.
  14535. # So, we kill variables containing newlines.
  14536. # Ultrix sh set writes to stderr and can't be redirected directly,
  14537. # and sets the high bit in the cache file unless we assign to the vars.
  14538. (
  14539. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14540. eval ac_val=\$$ac_var
  14541. case $ac_val in #(
  14542. *${as_nl}*)
  14543. case $ac_var in #(
  14544. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14545. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14546. esac
  14547. case $ac_var in #(
  14548. _ | IFS | as_nl) ;; #(
  14549. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14550. *) { eval $ac_var=; unset $ac_var;} ;;
  14551. esac ;;
  14552. esac
  14553. done
  14554. (set) 2>&1 |
  14555. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14556. *${as_nl}ac_space=\ *)
  14557. # `set' does not quote correctly, so add quotes: double-quote
  14558. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14559. sed -n \
  14560. "s/'/'\\\\''/g;
  14561. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14562. ;; #(
  14563. *)
  14564. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14565. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14566. ;;
  14567. esac |
  14568. sort
  14569. ) |
  14570. sed '
  14571. /^ac_cv_env_/b end
  14572. t clear
  14573. :clear
  14574. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14575. t end
  14576. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14577. :end' >>confcache
  14578. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14579. if test -w "$cache_file"; then
  14580. if test "x$cache_file" != "x/dev/null"; then
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14582. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14583. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14584. cat confcache >"$cache_file"
  14585. else
  14586. case $cache_file in #(
  14587. */* | ?:*)
  14588. mv -f confcache "$cache_file"$$ &&
  14589. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14590. *)
  14591. mv -f confcache "$cache_file" ;;
  14592. esac
  14593. fi
  14594. fi
  14595. else
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14597. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14598. fi
  14599. fi
  14600. rm -f confcache
  14601. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14602. # Let make expand exec_prefix.
  14603. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14604. DEFS=-DHAVE_CONFIG_H
  14605. ac_libobjs=
  14606. ac_ltlibobjs=
  14607. U=
  14608. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14609. # 1. Remove the extension, and $U if already installed.
  14610. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14611. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14612. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14613. # will be set to the directory where LIBOBJS objects are built.
  14614. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14615. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14616. done
  14617. LIBOBJS=$ac_libobjs
  14618. LTLIBOBJS=$ac_ltlibobjs
  14619. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14620. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14622. fi
  14623. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14624. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14626. fi
  14627. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14628. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14630. fi
  14631. if test -n "$EXEEXT"; then
  14632. am__EXEEXT_TRUE=
  14633. am__EXEEXT_FALSE='#'
  14634. else
  14635. am__EXEEXT_TRUE='#'
  14636. am__EXEEXT_FALSE=
  14637. fi
  14638. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14639. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14640. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14641. fi
  14642. : "${CONFIG_STATUS=./config.status}"
  14643. ac_write_fail=0
  14644. ac_clean_files_save=$ac_clean_files
  14645. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14646. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14647. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14648. as_write_fail=0
  14649. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14650. #! $SHELL
  14651. # Generated by $as_me.
  14652. # Run this file to recreate the current configuration.
  14653. # Compiler output produced by configure, useful for debugging
  14654. # configure, is in config.log if it exists.
  14655. debug=false
  14656. ac_cs_recheck=false
  14657. ac_cs_silent=false
  14658. SHELL=\${CONFIG_SHELL-$SHELL}
  14659. export SHELL
  14660. _ASEOF
  14661. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14662. ## -------------------- ##
  14663. ## M4sh Initialization. ##
  14664. ## -------------------- ##
  14665. # Be more Bourne compatible
  14666. DUALCASE=1; export DUALCASE # for MKS sh
  14667. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14668. emulate sh
  14669. NULLCMD=:
  14670. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14671. # is contrary to our usage. Disable this feature.
  14672. alias -g '${1+"$@"}'='"$@"'
  14673. setopt NO_GLOB_SUBST
  14674. else
  14675. case `(set -o) 2>/dev/null` in #(
  14676. *posix*) :
  14677. set -o posix ;; #(
  14678. *) :
  14679. ;;
  14680. esac
  14681. fi
  14682. as_nl='
  14683. '
  14684. export as_nl
  14685. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14686. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14687. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14688. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14689. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14690. # but without wasting forks for bash or zsh.
  14691. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14692. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14693. as_echo='print -r --'
  14694. as_echo_n='print -rn --'
  14695. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14696. as_echo='printf %s\n'
  14697. as_echo_n='printf %s'
  14698. else
  14699. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14700. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14701. as_echo_n='/usr/ucb/echo -n'
  14702. else
  14703. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14704. as_echo_n_body='eval
  14705. arg=$1;
  14706. case $arg in #(
  14707. *"$as_nl"*)
  14708. expr "X$arg" : "X\\(.*\\)$as_nl";
  14709. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14710. esac;
  14711. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14712. '
  14713. export as_echo_n_body
  14714. as_echo_n='sh -c $as_echo_n_body as_echo'
  14715. fi
  14716. export as_echo_body
  14717. as_echo='sh -c $as_echo_body as_echo'
  14718. fi
  14719. # The user is always right.
  14720. if test "${PATH_SEPARATOR+set}" != set; then
  14721. PATH_SEPARATOR=:
  14722. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14723. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14724. PATH_SEPARATOR=';'
  14725. }
  14726. fi
  14727. # IFS
  14728. # We need space, tab and new line, in precisely that order. Quoting is
  14729. # there to prevent editors from complaining about space-tab.
  14730. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14731. # splitting by setting IFS to empty value.)
  14732. IFS=" "" $as_nl"
  14733. # Find who we are. Look in the path if we contain no directory separator.
  14734. as_myself=
  14735. case $0 in #((
  14736. *[\\/]* ) as_myself=$0 ;;
  14737. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14738. for as_dir in $PATH
  14739. do
  14740. IFS=$as_save_IFS
  14741. test -z "$as_dir" && as_dir=.
  14742. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14743. done
  14744. IFS=$as_save_IFS
  14745. ;;
  14746. esac
  14747. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14748. # in which case we are not to be found in the path.
  14749. if test "x$as_myself" = x; then
  14750. as_myself=$0
  14751. fi
  14752. if test ! -f "$as_myself"; then
  14753. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14754. exit 1
  14755. fi
  14756. # Unset variables that we do not need and which cause bugs (e.g. in
  14757. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14758. # suppresses any "Segmentation fault" message there. '((' could
  14759. # trigger a bug in pdksh 5.2.14.
  14760. for as_var in BASH_ENV ENV MAIL MAILPATH
  14761. do eval test x\${$as_var+set} = xset \
  14762. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14763. done
  14764. PS1='$ '
  14765. PS2='> '
  14766. PS4='+ '
  14767. # NLS nuisances.
  14768. LC_ALL=C
  14769. export LC_ALL
  14770. LANGUAGE=C
  14771. export LANGUAGE
  14772. # CDPATH.
  14773. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14774. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14775. # ----------------------------------------
  14776. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14777. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14778. # script with STATUS, using 1 if that was 0.
  14779. as_fn_error ()
  14780. {
  14781. as_status=$1; test $as_status -eq 0 && as_status=1
  14782. if test "$4"; then
  14783. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14784. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14785. fi
  14786. $as_echo "$as_me: error: $2" >&2
  14787. as_fn_exit $as_status
  14788. } # as_fn_error
  14789. # as_fn_set_status STATUS
  14790. # -----------------------
  14791. # Set $? to STATUS, without forking.
  14792. as_fn_set_status ()
  14793. {
  14794. return $1
  14795. } # as_fn_set_status
  14796. # as_fn_exit STATUS
  14797. # -----------------
  14798. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14799. as_fn_exit ()
  14800. {
  14801. set +e
  14802. as_fn_set_status $1
  14803. exit $1
  14804. } # as_fn_exit
  14805. # as_fn_unset VAR
  14806. # ---------------
  14807. # Portably unset VAR.
  14808. as_fn_unset ()
  14809. {
  14810. { eval $1=; unset $1;}
  14811. }
  14812. as_unset=as_fn_unset
  14813. # as_fn_append VAR VALUE
  14814. # ----------------------
  14815. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14816. # advantage of any shell optimizations that allow amortized linear growth over
  14817. # repeated appends, instead of the typical quadratic growth present in naive
  14818. # implementations.
  14819. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14820. eval 'as_fn_append ()
  14821. {
  14822. eval $1+=\$2
  14823. }'
  14824. else
  14825. as_fn_append ()
  14826. {
  14827. eval $1=\$$1\$2
  14828. }
  14829. fi # as_fn_append
  14830. # as_fn_arith ARG...
  14831. # ------------------
  14832. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14833. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14834. # must be portable across $(()) and expr.
  14835. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14836. eval 'as_fn_arith ()
  14837. {
  14838. as_val=$(( $* ))
  14839. }'
  14840. else
  14841. as_fn_arith ()
  14842. {
  14843. as_val=`expr "$@" || test $? -eq 1`
  14844. }
  14845. fi # as_fn_arith
  14846. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14847. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14848. as_expr=expr
  14849. else
  14850. as_expr=false
  14851. fi
  14852. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14853. as_basename=basename
  14854. else
  14855. as_basename=false
  14856. fi
  14857. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14858. as_dirname=dirname
  14859. else
  14860. as_dirname=false
  14861. fi
  14862. as_me=`$as_basename -- "$0" ||
  14863. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14864. X"$0" : 'X\(//\)$' \| \
  14865. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14866. $as_echo X/"$0" |
  14867. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14868. s//\1/
  14869. q
  14870. }
  14871. /^X\/\(\/\/\)$/{
  14872. s//\1/
  14873. q
  14874. }
  14875. /^X\/\(\/\).*/{
  14876. s//\1/
  14877. q
  14878. }
  14879. s/.*/./; q'`
  14880. # Avoid depending upon Character Ranges.
  14881. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14882. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14883. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14884. as_cr_digits='0123456789'
  14885. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14886. ECHO_C= ECHO_N= ECHO_T=
  14887. case `echo -n x` in #(((((
  14888. -n*)
  14889. case `echo 'xy\c'` in
  14890. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14891. xy) ECHO_C='\c';;
  14892. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14893. ECHO_T=' ';;
  14894. esac;;
  14895. *)
  14896. ECHO_N='-n';;
  14897. esac
  14898. rm -f conf$$ conf$$.exe conf$$.file
  14899. if test -d conf$$.dir; then
  14900. rm -f conf$$.dir/conf$$.file
  14901. else
  14902. rm -f conf$$.dir
  14903. mkdir conf$$.dir 2>/dev/null
  14904. fi
  14905. if (echo >conf$$.file) 2>/dev/null; then
  14906. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14907. as_ln_s='ln -s'
  14908. # ... but there are two gotchas:
  14909. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14910. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14911. # In both cases, we have to default to `cp -p'.
  14912. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14913. as_ln_s='cp -p'
  14914. elif ln conf$$.file conf$$ 2>/dev/null; then
  14915. as_ln_s=ln
  14916. else
  14917. as_ln_s='cp -p'
  14918. fi
  14919. else
  14920. as_ln_s='cp -p'
  14921. fi
  14922. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14923. rmdir conf$$.dir 2>/dev/null
  14924. # as_fn_mkdir_p
  14925. # -------------
  14926. # Create "$as_dir" as a directory, including parents if necessary.
  14927. as_fn_mkdir_p ()
  14928. {
  14929. case $as_dir in #(
  14930. -*) as_dir=./$as_dir;;
  14931. esac
  14932. test -d "$as_dir" || eval $as_mkdir_p || {
  14933. as_dirs=
  14934. while :; do
  14935. case $as_dir in #(
  14936. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14937. *) as_qdir=$as_dir;;
  14938. esac
  14939. as_dirs="'$as_qdir' $as_dirs"
  14940. as_dir=`$as_dirname -- "$as_dir" ||
  14941. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14942. X"$as_dir" : 'X\(//\)[^/]' \| \
  14943. X"$as_dir" : 'X\(//\)$' \| \
  14944. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14945. $as_echo X"$as_dir" |
  14946. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14947. s//\1/
  14948. q
  14949. }
  14950. /^X\(\/\/\)[^/].*/{
  14951. s//\1/
  14952. q
  14953. }
  14954. /^X\(\/\/\)$/{
  14955. s//\1/
  14956. q
  14957. }
  14958. /^X\(\/\).*/{
  14959. s//\1/
  14960. q
  14961. }
  14962. s/.*/./; q'`
  14963. test -d "$as_dir" && break
  14964. done
  14965. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14966. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14967. } # as_fn_mkdir_p
  14968. if mkdir -p . 2>/dev/null; then
  14969. as_mkdir_p='mkdir -p "$as_dir"'
  14970. else
  14971. test -d ./-p && rmdir ./-p
  14972. as_mkdir_p=false
  14973. fi
  14974. if test -x / >/dev/null 2>&1; then
  14975. as_test_x='test -x'
  14976. else
  14977. if ls -dL / >/dev/null 2>&1; then
  14978. as_ls_L_option=L
  14979. else
  14980. as_ls_L_option=
  14981. fi
  14982. as_test_x='
  14983. eval sh -c '\''
  14984. if test -d "$1"; then
  14985. test -d "$1/.";
  14986. else
  14987. case $1 in #(
  14988. -*)set "./$1";;
  14989. esac;
  14990. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14991. ???[sx]*):;;*)false;;esac;fi
  14992. '\'' sh
  14993. '
  14994. fi
  14995. as_executable_p=$as_test_x
  14996. # Sed expression to map a string onto a valid CPP name.
  14997. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14998. # Sed expression to map a string onto a valid variable name.
  14999. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15000. exec 6>&1
  15001. ## ----------------------------------- ##
  15002. ## Main body of $CONFIG_STATUS script. ##
  15003. ## ----------------------------------- ##
  15004. _ASEOF
  15005. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15007. # Save the log message, to keep $0 and so on meaningful, and to
  15008. # report actual input values of CONFIG_FILES etc. instead of their
  15009. # values after options handling.
  15010. ac_log="
  15011. This file was extended by klish $as_me 1.5.3, which was
  15012. generated by GNU Autoconf 2.68. Invocation command line was
  15013. CONFIG_FILES = $CONFIG_FILES
  15014. CONFIG_HEADERS = $CONFIG_HEADERS
  15015. CONFIG_LINKS = $CONFIG_LINKS
  15016. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15017. $ $0 $@
  15018. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15019. "
  15020. _ACEOF
  15021. case $ac_config_files in *"
  15022. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15023. esac
  15024. case $ac_config_headers in *"
  15025. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15026. esac
  15027. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15028. # Files that config.status was made for.
  15029. config_files="$ac_config_files"
  15030. config_headers="$ac_config_headers"
  15031. config_commands="$ac_config_commands"
  15032. _ACEOF
  15033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15034. ac_cs_usage="\
  15035. \`$as_me' instantiates files and other configuration actions
  15036. from templates according to the current configuration. Unless the files
  15037. and actions are specified as TAGs, all are instantiated by default.
  15038. Usage: $0 [OPTION]... [TAG]...
  15039. -h, --help print this help, then exit
  15040. -V, --version print version number and configuration settings, then exit
  15041. --config print configuration, then exit
  15042. -q, --quiet, --silent
  15043. do not print progress messages
  15044. -d, --debug don't remove temporary files
  15045. --recheck update $as_me by reconfiguring in the same conditions
  15046. --file=FILE[:TEMPLATE]
  15047. instantiate the configuration file FILE
  15048. --header=FILE[:TEMPLATE]
  15049. instantiate the configuration header FILE
  15050. Configuration files:
  15051. $config_files
  15052. Configuration headers:
  15053. $config_headers
  15054. Configuration commands:
  15055. $config_commands
  15056. Report bugs to <serj.kalichev at gmail dot com>."
  15057. _ACEOF
  15058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15059. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15060. ac_cs_version="\\
  15061. klish config.status 1.5.3
  15062. configured by $0, generated by GNU Autoconf 2.68,
  15063. with options \\"\$ac_cs_config\\"
  15064. Copyright (C) 2010 Free Software Foundation, Inc.
  15065. This config.status script is free software; the Free Software Foundation
  15066. gives unlimited permission to copy, distribute and modify it."
  15067. ac_pwd='$ac_pwd'
  15068. srcdir='$srcdir'
  15069. INSTALL='$INSTALL'
  15070. MKDIR_P='$MKDIR_P'
  15071. AWK='$AWK'
  15072. test -n "\$AWK" || AWK=awk
  15073. _ACEOF
  15074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15075. # The default lists apply if the user does not specify any file.
  15076. ac_need_defaults=:
  15077. while test $# != 0
  15078. do
  15079. case $1 in
  15080. --*=?*)
  15081. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15082. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15083. ac_shift=:
  15084. ;;
  15085. --*=)
  15086. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15087. ac_optarg=
  15088. ac_shift=:
  15089. ;;
  15090. *)
  15091. ac_option=$1
  15092. ac_optarg=$2
  15093. ac_shift=shift
  15094. ;;
  15095. esac
  15096. case $ac_option in
  15097. # Handling of the options.
  15098. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15099. ac_cs_recheck=: ;;
  15100. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15101. $as_echo "$ac_cs_version"; exit ;;
  15102. --config | --confi | --conf | --con | --co | --c )
  15103. $as_echo "$ac_cs_config"; exit ;;
  15104. --debug | --debu | --deb | --de | --d | -d )
  15105. debug=: ;;
  15106. --file | --fil | --fi | --f )
  15107. $ac_shift
  15108. case $ac_optarg in
  15109. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15110. '') as_fn_error $? "missing file argument" ;;
  15111. esac
  15112. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15113. ac_need_defaults=false;;
  15114. --header | --heade | --head | --hea )
  15115. $ac_shift
  15116. case $ac_optarg in
  15117. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15118. esac
  15119. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15120. ac_need_defaults=false;;
  15121. --he | --h)
  15122. # Conflict between --help and --header
  15123. as_fn_error $? "ambiguous option: \`$1'
  15124. Try \`$0 --help' for more information.";;
  15125. --help | --hel | -h )
  15126. $as_echo "$ac_cs_usage"; exit ;;
  15127. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15128. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15129. ac_cs_silent=: ;;
  15130. # This is an error.
  15131. -*) as_fn_error $? "unrecognized option: \`$1'
  15132. Try \`$0 --help' for more information." ;;
  15133. *) as_fn_append ac_config_targets " $1"
  15134. ac_need_defaults=false ;;
  15135. esac
  15136. shift
  15137. done
  15138. ac_configure_extra_args=
  15139. if $ac_cs_silent; then
  15140. exec 6>/dev/null
  15141. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15142. fi
  15143. _ACEOF
  15144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15145. if \$ac_cs_recheck; then
  15146. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15147. shift
  15148. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15149. CONFIG_SHELL='$SHELL'
  15150. export CONFIG_SHELL
  15151. exec "\$@"
  15152. fi
  15153. _ACEOF
  15154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15155. exec 5>>config.log
  15156. {
  15157. echo
  15158. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15159. ## Running $as_me. ##
  15160. _ASBOX
  15161. $as_echo "$ac_log"
  15162. } >&5
  15163. _ACEOF
  15164. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15165. #
  15166. # INIT-COMMANDS
  15167. #
  15168. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15169. # if CDPATH is set.
  15170. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15171. sed_quote_subst='$sed_quote_subst'
  15172. double_quote_subst='$double_quote_subst'
  15173. delay_variable_subst='$delay_variable_subst'
  15174. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15175. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15176. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15177. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15178. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15179. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15180. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15181. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15182. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15183. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15184. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15185. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15186. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15187. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15188. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15189. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15190. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15191. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15192. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15193. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15194. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15195. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15196. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15197. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15198. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15199. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15200. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15201. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15202. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15203. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15204. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15205. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15206. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15207. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15208. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15209. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15210. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15211. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15212. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15213. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15214. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15215. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15216. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15217. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15218. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15219. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15220. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15221. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15222. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15223. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15224. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15225. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15226. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15227. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15228. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15229. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15230. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15231. 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"`'
  15232. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15233. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15234. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15235. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15236. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15237. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15238. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15239. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15240. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15241. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15242. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15243. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15244. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15245. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15246. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15247. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15248. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15249. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15250. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15251. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15252. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15253. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15254. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15255. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15256. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15257. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15258. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15259. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15260. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15261. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15262. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15263. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15264. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15265. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15266. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15267. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15268. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15269. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15270. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15271. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15272. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15273. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15274. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15275. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15276. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15277. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15278. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15279. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15280. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15281. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15282. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15283. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15284. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15285. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15286. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15287. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15288. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15289. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15290. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15291. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15292. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15293. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15294. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15295. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15296. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15297. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15298. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15299. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15300. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15301. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15302. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15303. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15304. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15305. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15306. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15307. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15308. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15309. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15310. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15311. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15312. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15313. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15314. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15315. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15316. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15317. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15318. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15319. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15320. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15321. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15322. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15323. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15324. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15325. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15326. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15327. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15328. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15329. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15330. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15331. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15332. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15333. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15334. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15335. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15336. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15337. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15338. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15339. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15340. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15341. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15342. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15343. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15344. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15345. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15346. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15347. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15348. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15349. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15350. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15351. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15352. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15353. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15354. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15355. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15356. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15357. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15358. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15359. LTCC='$LTCC'
  15360. LTCFLAGS='$LTCFLAGS'
  15361. compiler='$compiler_DEFAULT'
  15362. # A function that is used when there is no print builtin or printf.
  15363. func_fallback_echo ()
  15364. {
  15365. eval 'cat <<_LTECHO_EOF
  15366. \$1
  15367. _LTECHO_EOF'
  15368. }
  15369. # Quote evaled strings.
  15370. for var in AS \
  15371. DLLTOOL \
  15372. OBJDUMP \
  15373. SHELL \
  15374. ECHO \
  15375. PATH_SEPARATOR \
  15376. SED \
  15377. GREP \
  15378. EGREP \
  15379. FGREP \
  15380. LD \
  15381. NM \
  15382. LN_S \
  15383. lt_SP2NL \
  15384. lt_NL2SP \
  15385. reload_flag \
  15386. deplibs_check_method \
  15387. file_magic_cmd \
  15388. file_magic_glob \
  15389. want_nocaseglob \
  15390. sharedlib_from_linklib_cmd \
  15391. AR \
  15392. AR_FLAGS \
  15393. archiver_list_spec \
  15394. STRIP \
  15395. RANLIB \
  15396. CC \
  15397. CFLAGS \
  15398. compiler \
  15399. lt_cv_sys_global_symbol_pipe \
  15400. lt_cv_sys_global_symbol_to_cdecl \
  15401. lt_cv_sys_global_symbol_to_c_name_address \
  15402. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15403. nm_file_list_spec \
  15404. lt_prog_compiler_no_builtin_flag \
  15405. lt_prog_compiler_pic \
  15406. lt_prog_compiler_wl \
  15407. lt_prog_compiler_static \
  15408. lt_cv_prog_compiler_c_o \
  15409. need_locks \
  15410. MANIFEST_TOOL \
  15411. DSYMUTIL \
  15412. NMEDIT \
  15413. LIPO \
  15414. OTOOL \
  15415. OTOOL64 \
  15416. shrext_cmds \
  15417. export_dynamic_flag_spec \
  15418. whole_archive_flag_spec \
  15419. compiler_needs_object \
  15420. with_gnu_ld \
  15421. allow_undefined_flag \
  15422. no_undefined_flag \
  15423. hardcode_libdir_flag_spec \
  15424. hardcode_libdir_separator \
  15425. exclude_expsyms \
  15426. include_expsyms \
  15427. file_list_spec \
  15428. variables_saved_for_relink \
  15429. libname_spec \
  15430. library_names_spec \
  15431. soname_spec \
  15432. install_override_mode \
  15433. finish_eval \
  15434. old_striplib \
  15435. striplib \
  15436. compiler_lib_search_dirs \
  15437. predep_objects \
  15438. postdep_objects \
  15439. predeps \
  15440. postdeps \
  15441. compiler_lib_search_path \
  15442. LD_CXX \
  15443. reload_flag_CXX \
  15444. compiler_CXX \
  15445. lt_prog_compiler_no_builtin_flag_CXX \
  15446. lt_prog_compiler_pic_CXX \
  15447. lt_prog_compiler_wl_CXX \
  15448. lt_prog_compiler_static_CXX \
  15449. lt_cv_prog_compiler_c_o_CXX \
  15450. export_dynamic_flag_spec_CXX \
  15451. whole_archive_flag_spec_CXX \
  15452. compiler_needs_object_CXX \
  15453. with_gnu_ld_CXX \
  15454. allow_undefined_flag_CXX \
  15455. no_undefined_flag_CXX \
  15456. hardcode_libdir_flag_spec_CXX \
  15457. hardcode_libdir_separator_CXX \
  15458. exclude_expsyms_CXX \
  15459. include_expsyms_CXX \
  15460. file_list_spec_CXX \
  15461. compiler_lib_search_dirs_CXX \
  15462. predep_objects_CXX \
  15463. postdep_objects_CXX \
  15464. predeps_CXX \
  15465. postdeps_CXX \
  15466. compiler_lib_search_path_CXX; do
  15467. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15468. *[\\\\\\\`\\"\\\$]*)
  15469. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15470. ;;
  15471. *)
  15472. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15473. ;;
  15474. esac
  15475. done
  15476. # Double-quote double-evaled strings.
  15477. for var in reload_cmds \
  15478. old_postinstall_cmds \
  15479. old_postuninstall_cmds \
  15480. old_archive_cmds \
  15481. extract_expsyms_cmds \
  15482. old_archive_from_new_cmds \
  15483. old_archive_from_expsyms_cmds \
  15484. archive_cmds \
  15485. archive_expsym_cmds \
  15486. module_cmds \
  15487. module_expsym_cmds \
  15488. export_symbols_cmds \
  15489. prelink_cmds \
  15490. postlink_cmds \
  15491. postinstall_cmds \
  15492. postuninstall_cmds \
  15493. finish_cmds \
  15494. sys_lib_search_path_spec \
  15495. sys_lib_dlsearch_path_spec \
  15496. reload_cmds_CXX \
  15497. old_archive_cmds_CXX \
  15498. old_archive_from_new_cmds_CXX \
  15499. old_archive_from_expsyms_cmds_CXX \
  15500. archive_cmds_CXX \
  15501. archive_expsym_cmds_CXX \
  15502. module_cmds_CXX \
  15503. module_expsym_cmds_CXX \
  15504. export_symbols_cmds_CXX \
  15505. prelink_cmds_CXX \
  15506. postlink_cmds_CXX; do
  15507. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15508. *[\\\\\\\`\\"\\\$]*)
  15509. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15510. ;;
  15511. *)
  15512. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15513. ;;
  15514. esac
  15515. done
  15516. ac_aux_dir='$ac_aux_dir'
  15517. xsi_shell='$xsi_shell'
  15518. lt_shell_append='$lt_shell_append'
  15519. # See if we are running on zsh, and set the options which allow our
  15520. # commands through without removal of \ escapes INIT.
  15521. if test -n "\${ZSH_VERSION+set}" ; then
  15522. setopt NO_GLOB_SUBST
  15523. fi
  15524. PACKAGE='$PACKAGE'
  15525. VERSION='$VERSION'
  15526. TIMESTAMP='$TIMESTAMP'
  15527. RM='$RM'
  15528. ofile='$ofile'
  15529. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15530. _ACEOF
  15531. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15532. # Handling of arguments.
  15533. for ac_config_target in $ac_config_targets
  15534. do
  15535. case $ac_config_target in
  15536. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15537. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15538. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15539. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15540. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15541. esac
  15542. done
  15543. # If the user did not use the arguments to specify the items to instantiate,
  15544. # then the envvar interface is used. Set only those that are not.
  15545. # We use the long form for the default assignment because of an extremely
  15546. # bizarre bug on SunOS 4.1.3.
  15547. if $ac_need_defaults; then
  15548. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15549. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15550. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15551. fi
  15552. # Have a temporary directory for convenience. Make it in the build tree
  15553. # simply because there is no reason against having it here, and in addition,
  15554. # creating and moving files from /tmp can sometimes cause problems.
  15555. # Hook for its removal unless debugging.
  15556. # Note that there is a small window in which the directory will not be cleaned:
  15557. # after its creation but before its name has been assigned to `$tmp'.
  15558. $debug ||
  15559. {
  15560. tmp= ac_tmp=
  15561. trap 'exit_status=$?
  15562. : "${ac_tmp:=$tmp}"
  15563. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15564. ' 0
  15565. trap 'as_fn_exit 1' 1 2 13 15
  15566. }
  15567. # Create a (secure) tmp directory for tmp files.
  15568. {
  15569. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15570. test -d "$tmp"
  15571. } ||
  15572. {
  15573. tmp=./conf$$-$RANDOM
  15574. (umask 077 && mkdir "$tmp")
  15575. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15576. ac_tmp=$tmp
  15577. # Set up the scripts for CONFIG_FILES section.
  15578. # No need to generate them if there are no CONFIG_FILES.
  15579. # This happens for instance with `./config.status config.h'.
  15580. if test -n "$CONFIG_FILES"; then
  15581. ac_cr=`echo X | tr X '\015'`
  15582. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15583. # But we know of no other shell where ac_cr would be empty at this
  15584. # point, so we can use a bashism as a fallback.
  15585. if test "x$ac_cr" = x; then
  15586. eval ac_cr=\$\'\\r\'
  15587. fi
  15588. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15589. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15590. ac_cs_awk_cr='\\r'
  15591. else
  15592. ac_cs_awk_cr=$ac_cr
  15593. fi
  15594. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15595. _ACEOF
  15596. {
  15597. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15598. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15599. echo "_ACEOF"
  15600. } >conf$$subs.sh ||
  15601. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15602. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15603. ac_delim='%!_!# '
  15604. for ac_last_try in false false false false false :; do
  15605. . ./conf$$subs.sh ||
  15606. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15607. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15608. if test $ac_delim_n = $ac_delim_num; then
  15609. break
  15610. elif $ac_last_try; then
  15611. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15612. else
  15613. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15614. fi
  15615. done
  15616. rm -f conf$$subs.sh
  15617. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15618. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15619. _ACEOF
  15620. sed -n '
  15621. h
  15622. s/^/S["/; s/!.*/"]=/
  15623. p
  15624. g
  15625. s/^[^!]*!//
  15626. :repl
  15627. t repl
  15628. s/'"$ac_delim"'$//
  15629. t delim
  15630. :nl
  15631. h
  15632. s/\(.\{148\}\)..*/\1/
  15633. t more1
  15634. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15635. p
  15636. n
  15637. b repl
  15638. :more1
  15639. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15640. p
  15641. g
  15642. s/.\{148\}//
  15643. t nl
  15644. :delim
  15645. h
  15646. s/\(.\{148\}\)..*/\1/
  15647. t more2
  15648. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15649. p
  15650. b
  15651. :more2
  15652. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15653. p
  15654. g
  15655. s/.\{148\}//
  15656. t delim
  15657. ' <conf$$subs.awk | sed '
  15658. /^[^""]/{
  15659. N
  15660. s/\n//
  15661. }
  15662. ' >>$CONFIG_STATUS || ac_write_fail=1
  15663. rm -f conf$$subs.awk
  15664. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15665. _ACAWK
  15666. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15667. for (key in S) S_is_set[key] = 1
  15668. FS = ""
  15669. }
  15670. {
  15671. line = $ 0
  15672. nfields = split(line, field, "@")
  15673. substed = 0
  15674. len = length(field[1])
  15675. for (i = 2; i < nfields; i++) {
  15676. key = field[i]
  15677. keylen = length(key)
  15678. if (S_is_set[key]) {
  15679. value = S[key]
  15680. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15681. len += length(value) + length(field[++i])
  15682. substed = 1
  15683. } else
  15684. len += 1 + keylen
  15685. }
  15686. print line
  15687. }
  15688. _ACAWK
  15689. _ACEOF
  15690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15691. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15692. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15693. else
  15694. cat
  15695. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15696. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15697. _ACEOF
  15698. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15699. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15700. # trailing colons and then remove the whole line if VPATH becomes empty
  15701. # (actually we leave an empty line to preserve line numbers).
  15702. if test "x$srcdir" = x.; then
  15703. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15704. h
  15705. s///
  15706. s/^/:/
  15707. s/[ ]*$/:/
  15708. s/:\$(srcdir):/:/g
  15709. s/:\${srcdir}:/:/g
  15710. s/:@srcdir@:/:/g
  15711. s/^:*//
  15712. s/:*$//
  15713. x
  15714. s/\(=[ ]*\).*/\1/
  15715. G
  15716. s/\n//
  15717. s/^[^=]*=[ ]*$//
  15718. }'
  15719. fi
  15720. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15721. fi # test -n "$CONFIG_FILES"
  15722. # Set up the scripts for CONFIG_HEADERS section.
  15723. # No need to generate them if there are no CONFIG_HEADERS.
  15724. # This happens for instance with `./config.status Makefile'.
  15725. if test -n "$CONFIG_HEADERS"; then
  15726. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15727. BEGIN {
  15728. _ACEOF
  15729. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15730. # here-document in config.status, that substitutes the proper values into
  15731. # config.h.in to produce config.h.
  15732. # Create a delimiter string that does not exist in confdefs.h, to ease
  15733. # handling of long lines.
  15734. ac_delim='%!_!# '
  15735. for ac_last_try in false false :; do
  15736. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15737. if test -z "$ac_tt"; then
  15738. break
  15739. elif $ac_last_try; then
  15740. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15741. else
  15742. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15743. fi
  15744. done
  15745. # For the awk script, D is an array of macro values keyed by name,
  15746. # likewise P contains macro parameters if any. Preserve backslash
  15747. # newline sequences.
  15748. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15749. sed -n '
  15750. s/.\{148\}/&'"$ac_delim"'/g
  15751. t rset
  15752. :rset
  15753. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15754. t def
  15755. d
  15756. :def
  15757. s/\\$//
  15758. t bsnl
  15759. s/["\\]/\\&/g
  15760. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15761. D["\1"]=" \3"/p
  15762. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15763. d
  15764. :bsnl
  15765. s/["\\]/\\&/g
  15766. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15767. D["\1"]=" \3\\\\\\n"\\/p
  15768. t cont
  15769. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15770. t cont
  15771. d
  15772. :cont
  15773. n
  15774. s/.\{148\}/&'"$ac_delim"'/g
  15775. t clear
  15776. :clear
  15777. s/\\$//
  15778. t bsnlc
  15779. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15780. d
  15781. :bsnlc
  15782. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15783. b cont
  15784. ' <confdefs.h | sed '
  15785. s/'"$ac_delim"'/"\\\
  15786. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15788. for (key in D) D_is_set[key] = 1
  15789. FS = ""
  15790. }
  15791. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15792. line = \$ 0
  15793. split(line, arg, " ")
  15794. if (arg[1] == "#") {
  15795. defundef = arg[2]
  15796. mac1 = arg[3]
  15797. } else {
  15798. defundef = substr(arg[1], 2)
  15799. mac1 = arg[2]
  15800. }
  15801. split(mac1, mac2, "(") #)
  15802. macro = mac2[1]
  15803. prefix = substr(line, 1, index(line, defundef) - 1)
  15804. if (D_is_set[macro]) {
  15805. # Preserve the white space surrounding the "#".
  15806. print prefix "define", macro P[macro] D[macro]
  15807. next
  15808. } else {
  15809. # Replace #undef with comments. This is necessary, for example,
  15810. # in the case of _POSIX_SOURCE, which is predefined and required
  15811. # on some systems where configure will not decide to define it.
  15812. if (defundef == "undef") {
  15813. print "/*", prefix defundef, macro, "*/"
  15814. next
  15815. }
  15816. }
  15817. }
  15818. { print }
  15819. _ACAWK
  15820. _ACEOF
  15821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15822. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15823. fi # test -n "$CONFIG_HEADERS"
  15824. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15825. shift
  15826. for ac_tag
  15827. do
  15828. case $ac_tag in
  15829. :[FHLC]) ac_mode=$ac_tag; continue;;
  15830. esac
  15831. case $ac_mode$ac_tag in
  15832. :[FHL]*:*);;
  15833. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15834. :[FH]-) ac_tag=-:-;;
  15835. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15836. esac
  15837. ac_save_IFS=$IFS
  15838. IFS=:
  15839. set x $ac_tag
  15840. IFS=$ac_save_IFS
  15841. shift
  15842. ac_file=$1
  15843. shift
  15844. case $ac_mode in
  15845. :L) ac_source=$1;;
  15846. :[FH])
  15847. ac_file_inputs=
  15848. for ac_f
  15849. do
  15850. case $ac_f in
  15851. -) ac_f="$ac_tmp/stdin";;
  15852. *) # Look for the file first in the build tree, then in the source tree
  15853. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15854. # because $ac_f cannot contain `:'.
  15855. test -f "$ac_f" ||
  15856. case $ac_f in
  15857. [\\/$]*) false;;
  15858. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15859. esac ||
  15860. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15861. esac
  15862. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15863. as_fn_append ac_file_inputs " '$ac_f'"
  15864. done
  15865. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15866. # use $as_me), people would be surprised to read:
  15867. # /* config.h. Generated by config.status. */
  15868. configure_input='Generated from '`
  15869. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15870. `' by configure.'
  15871. if test x"$ac_file" != x-; then
  15872. configure_input="$ac_file. $configure_input"
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15874. $as_echo "$as_me: creating $ac_file" >&6;}
  15875. fi
  15876. # Neutralize special characters interpreted by sed in replacement strings.
  15877. case $configure_input in #(
  15878. *\&* | *\|* | *\\* )
  15879. ac_sed_conf_input=`$as_echo "$configure_input" |
  15880. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15881. *) ac_sed_conf_input=$configure_input;;
  15882. esac
  15883. case $ac_tag in
  15884. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15885. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15886. esac
  15887. ;;
  15888. esac
  15889. ac_dir=`$as_dirname -- "$ac_file" ||
  15890. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15891. X"$ac_file" : 'X\(//\)[^/]' \| \
  15892. X"$ac_file" : 'X\(//\)$' \| \
  15893. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15894. $as_echo X"$ac_file" |
  15895. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15896. s//\1/
  15897. q
  15898. }
  15899. /^X\(\/\/\)[^/].*/{
  15900. s//\1/
  15901. q
  15902. }
  15903. /^X\(\/\/\)$/{
  15904. s//\1/
  15905. q
  15906. }
  15907. /^X\(\/\).*/{
  15908. s//\1/
  15909. q
  15910. }
  15911. s/.*/./; q'`
  15912. as_dir="$ac_dir"; as_fn_mkdir_p
  15913. ac_builddir=.
  15914. case "$ac_dir" in
  15915. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15916. *)
  15917. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15918. # A ".." for each directory in $ac_dir_suffix.
  15919. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15920. case $ac_top_builddir_sub in
  15921. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15922. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15923. esac ;;
  15924. esac
  15925. ac_abs_top_builddir=$ac_pwd
  15926. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15927. # for backward compatibility:
  15928. ac_top_builddir=$ac_top_build_prefix
  15929. case $srcdir in
  15930. .) # We are building in place.
  15931. ac_srcdir=.
  15932. ac_top_srcdir=$ac_top_builddir_sub
  15933. ac_abs_top_srcdir=$ac_pwd ;;
  15934. [\\/]* | ?:[\\/]* ) # Absolute name.
  15935. ac_srcdir=$srcdir$ac_dir_suffix;
  15936. ac_top_srcdir=$srcdir
  15937. ac_abs_top_srcdir=$srcdir ;;
  15938. *) # Relative name.
  15939. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15940. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15941. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15942. esac
  15943. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15944. case $ac_mode in
  15945. :F)
  15946. #
  15947. # CONFIG_FILE
  15948. #
  15949. case $INSTALL in
  15950. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15951. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15952. esac
  15953. ac_MKDIR_P=$MKDIR_P
  15954. case $MKDIR_P in
  15955. [\\/$]* | ?:[\\/]* ) ;;
  15956. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15957. esac
  15958. _ACEOF
  15959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15960. # If the template does not know about datarootdir, expand it.
  15961. # FIXME: This hack should be removed a few years after 2.60.
  15962. ac_datarootdir_hack=; ac_datarootdir_seen=
  15963. ac_sed_dataroot='
  15964. /datarootdir/ {
  15965. p
  15966. q
  15967. }
  15968. /@datadir@/p
  15969. /@docdir@/p
  15970. /@infodir@/p
  15971. /@localedir@/p
  15972. /@mandir@/p'
  15973. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15974. *datarootdir*) ac_datarootdir_seen=yes;;
  15975. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15977. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15978. _ACEOF
  15979. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15980. ac_datarootdir_hack='
  15981. s&@datadir@&$datadir&g
  15982. s&@docdir@&$docdir&g
  15983. s&@infodir@&$infodir&g
  15984. s&@localedir@&$localedir&g
  15985. s&@mandir@&$mandir&g
  15986. s&\\\${datarootdir}&$datarootdir&g' ;;
  15987. esac
  15988. _ACEOF
  15989. # Neutralize VPATH when `$srcdir' = `.'.
  15990. # Shell code in configure.ac might set extrasub.
  15991. # FIXME: do we really want to maintain this feature?
  15992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15993. ac_sed_extra="$ac_vpsub
  15994. $extrasub
  15995. _ACEOF
  15996. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15997. :t
  15998. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15999. s|@configure_input@|$ac_sed_conf_input|;t t
  16000. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16001. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16002. s&@srcdir@&$ac_srcdir&;t t
  16003. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16004. s&@top_srcdir@&$ac_top_srcdir&;t t
  16005. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16006. s&@builddir@&$ac_builddir&;t t
  16007. s&@abs_builddir@&$ac_abs_builddir&;t t
  16008. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16009. s&@INSTALL@&$ac_INSTALL&;t t
  16010. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16011. $ac_datarootdir_hack
  16012. "
  16013. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16014. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16015. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16016. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16017. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16018. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16020. which seems to be undefined. Please make sure it is defined" >&5
  16021. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16022. which seems to be undefined. Please make sure it is defined" >&2;}
  16023. rm -f "$ac_tmp/stdin"
  16024. case $ac_file in
  16025. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16026. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16027. esac \
  16028. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16029. ;;
  16030. :H)
  16031. #
  16032. # CONFIG_HEADER
  16033. #
  16034. if test x"$ac_file" != x-; then
  16035. {
  16036. $as_echo "/* $configure_input */" \
  16037. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16038. } >"$ac_tmp/config.h" \
  16039. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16040. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16042. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16043. else
  16044. rm -f "$ac_file"
  16045. mv "$ac_tmp/config.h" "$ac_file" \
  16046. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16047. fi
  16048. else
  16049. $as_echo "/* $configure_input */" \
  16050. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16051. || as_fn_error $? "could not create -" "$LINENO" 5
  16052. fi
  16053. # Compute "$ac_file"'s index in $config_headers.
  16054. _am_arg="$ac_file"
  16055. _am_stamp_count=1
  16056. for _am_header in $config_headers :; do
  16057. case $_am_header in
  16058. $_am_arg | $_am_arg:* )
  16059. break ;;
  16060. * )
  16061. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16062. esac
  16063. done
  16064. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16065. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16066. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16067. X"$_am_arg" : 'X\(//\)$' \| \
  16068. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16069. $as_echo X"$_am_arg" |
  16070. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16071. s//\1/
  16072. q
  16073. }
  16074. /^X\(\/\/\)[^/].*/{
  16075. s//\1/
  16076. q
  16077. }
  16078. /^X\(\/\/\)$/{
  16079. s//\1/
  16080. q
  16081. }
  16082. /^X\(\/\).*/{
  16083. s//\1/
  16084. q
  16085. }
  16086. s/.*/./; q'`/stamp-h$_am_stamp_count
  16087. ;;
  16088. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16089. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16090. ;;
  16091. esac
  16092. case $ac_file$ac_mode in
  16093. "libtool":C)
  16094. # See if we are running on zsh, and set the options which allow our
  16095. # commands through without removal of \ escapes.
  16096. if test -n "${ZSH_VERSION+set}" ; then
  16097. setopt NO_GLOB_SUBST
  16098. fi
  16099. cfgfile="${ofile}T"
  16100. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16101. $RM "$cfgfile"
  16102. cat <<_LT_EOF >> "$cfgfile"
  16103. #! $SHELL
  16104. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16105. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16106. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16107. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16108. #
  16109. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16110. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16111. # Foundation, Inc.
  16112. # Written by Gordon Matzigkeit, 1996
  16113. #
  16114. # This file is part of GNU Libtool.
  16115. #
  16116. # GNU Libtool is free software; you can redistribute it and/or
  16117. # modify it under the terms of the GNU General Public License as
  16118. # published by the Free Software Foundation; either version 2 of
  16119. # the License, or (at your option) any later version.
  16120. #
  16121. # As a special exception to the GNU General Public License,
  16122. # if you distribute this file as part of a program or library that
  16123. # is built using GNU Libtool, you may include this file under the
  16124. # same distribution terms that you use for the rest of that program.
  16125. #
  16126. # GNU Libtool is distributed in the hope that it will be useful,
  16127. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16128. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16129. # GNU General Public License for more details.
  16130. #
  16131. # You should have received a copy of the GNU General Public License
  16132. # along with GNU Libtool; see the file COPYING. If not, a copy
  16133. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16134. # obtained by writing to the Free Software Foundation, Inc.,
  16135. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16136. # The names of the tagged configurations supported by this script.
  16137. available_tags="CXX "
  16138. # ### BEGIN LIBTOOL CONFIG
  16139. # Assembler program.
  16140. AS=$lt_AS
  16141. # DLL creation program.
  16142. DLLTOOL=$lt_DLLTOOL
  16143. # Object dumper program.
  16144. OBJDUMP=$lt_OBJDUMP
  16145. # Which release of libtool.m4 was used?
  16146. macro_version=$macro_version
  16147. macro_revision=$macro_revision
  16148. # Whether or not to build shared libraries.
  16149. build_libtool_libs=$enable_shared
  16150. # Whether or not to build static libraries.
  16151. build_old_libs=$enable_static
  16152. # What type of objects to build.
  16153. pic_mode=$pic_mode
  16154. # Whether or not to optimize for fast installation.
  16155. fast_install=$enable_fast_install
  16156. # Shell to use when invoking shell scripts.
  16157. SHELL=$lt_SHELL
  16158. # An echo program that protects backslashes.
  16159. ECHO=$lt_ECHO
  16160. # The PATH separator for the build system.
  16161. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16162. # The host system.
  16163. host_alias=$host_alias
  16164. host=$host
  16165. host_os=$host_os
  16166. # The build system.
  16167. build_alias=$build_alias
  16168. build=$build
  16169. build_os=$build_os
  16170. # A sed program that does not truncate output.
  16171. SED=$lt_SED
  16172. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16173. Xsed="\$SED -e 1s/^X//"
  16174. # A grep program that handles long lines.
  16175. GREP=$lt_GREP
  16176. # An ERE matcher.
  16177. EGREP=$lt_EGREP
  16178. # A literal string matcher.
  16179. FGREP=$lt_FGREP
  16180. # A BSD- or MS-compatible name lister.
  16181. NM=$lt_NM
  16182. # Whether we need soft or hard links.
  16183. LN_S=$lt_LN_S
  16184. # What is the maximum length of a command?
  16185. max_cmd_len=$max_cmd_len
  16186. # Object file suffix (normally "o").
  16187. objext=$ac_objext
  16188. # Executable file suffix (normally "").
  16189. exeext=$exeext
  16190. # whether the shell understands "unset".
  16191. lt_unset=$lt_unset
  16192. # turn spaces into newlines.
  16193. SP2NL=$lt_lt_SP2NL
  16194. # turn newlines into spaces.
  16195. NL2SP=$lt_lt_NL2SP
  16196. # convert \$build file names to \$host format.
  16197. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16198. # convert \$build files to toolchain format.
  16199. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16200. # Method to check whether dependent libraries are shared objects.
  16201. deplibs_check_method=$lt_deplibs_check_method
  16202. # Command to use when deplibs_check_method = "file_magic".
  16203. file_magic_cmd=$lt_file_magic_cmd
  16204. # How to find potential files when deplibs_check_method = "file_magic".
  16205. file_magic_glob=$lt_file_magic_glob
  16206. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16207. want_nocaseglob=$lt_want_nocaseglob
  16208. # Command to associate shared and link libraries.
  16209. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16210. # The archiver.
  16211. AR=$lt_AR
  16212. # Flags to create an archive.
  16213. AR_FLAGS=$lt_AR_FLAGS
  16214. # How to feed a file listing to the archiver.
  16215. archiver_list_spec=$lt_archiver_list_spec
  16216. # A symbol stripping program.
  16217. STRIP=$lt_STRIP
  16218. # Commands used to install an old-style archive.
  16219. RANLIB=$lt_RANLIB
  16220. old_postinstall_cmds=$lt_old_postinstall_cmds
  16221. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16222. # Whether to use a lock for old archive extraction.
  16223. lock_old_archive_extraction=$lock_old_archive_extraction
  16224. # A C compiler.
  16225. LTCC=$lt_CC
  16226. # LTCC compiler flags.
  16227. LTCFLAGS=$lt_CFLAGS
  16228. # Take the output of nm and produce a listing of raw symbols and C names.
  16229. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16230. # Transform the output of nm in a proper C declaration.
  16231. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16232. # Transform the output of nm in a C name address pair.
  16233. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16234. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16235. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16236. # Specify filename containing input files for \$NM.
  16237. nm_file_list_spec=$lt_nm_file_list_spec
  16238. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16239. lt_sysroot=$lt_sysroot
  16240. # The name of the directory that contains temporary libtool files.
  16241. objdir=$objdir
  16242. # Used to examine libraries when file_magic_cmd begins with "file".
  16243. MAGIC_CMD=$MAGIC_CMD
  16244. # Must we lock files when doing compilation?
  16245. need_locks=$lt_need_locks
  16246. # Manifest tool.
  16247. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16248. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16249. DSYMUTIL=$lt_DSYMUTIL
  16250. # Tool to change global to local symbols on Mac OS X.
  16251. NMEDIT=$lt_NMEDIT
  16252. # Tool to manipulate fat objects and archives on Mac OS X.
  16253. LIPO=$lt_LIPO
  16254. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16255. OTOOL=$lt_OTOOL
  16256. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16257. OTOOL64=$lt_OTOOL64
  16258. # Old archive suffix (normally "a").
  16259. libext=$libext
  16260. # Shared library suffix (normally ".so").
  16261. shrext_cmds=$lt_shrext_cmds
  16262. # The commands to extract the exported symbol list from a shared archive.
  16263. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16264. # Variables whose values should be saved in libtool wrapper scripts and
  16265. # restored at link time.
  16266. variables_saved_for_relink=$lt_variables_saved_for_relink
  16267. # Do we need the "lib" prefix for modules?
  16268. need_lib_prefix=$need_lib_prefix
  16269. # Do we need a version for libraries?
  16270. need_version=$need_version
  16271. # Library versioning type.
  16272. version_type=$version_type
  16273. # Shared library runtime path variable.
  16274. runpath_var=$runpath_var
  16275. # Shared library path variable.
  16276. shlibpath_var=$shlibpath_var
  16277. # Is shlibpath searched before the hard-coded library search path?
  16278. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16279. # Format of library name prefix.
  16280. libname_spec=$lt_libname_spec
  16281. # List of archive names. First name is the real one, the rest are links.
  16282. # The last name is the one that the linker finds with -lNAME
  16283. library_names_spec=$lt_library_names_spec
  16284. # The coded name of the library, if different from the real name.
  16285. soname_spec=$lt_soname_spec
  16286. # Permission mode override for installation of shared libraries.
  16287. install_override_mode=$lt_install_override_mode
  16288. # Command to use after installation of a shared archive.
  16289. postinstall_cmds=$lt_postinstall_cmds
  16290. # Command to use after uninstallation of a shared archive.
  16291. postuninstall_cmds=$lt_postuninstall_cmds
  16292. # Commands used to finish a libtool library installation in a directory.
  16293. finish_cmds=$lt_finish_cmds
  16294. # As "finish_cmds", except a single script fragment to be evaled but
  16295. # not shown.
  16296. finish_eval=$lt_finish_eval
  16297. # Whether we should hardcode library paths into libraries.
  16298. hardcode_into_libs=$hardcode_into_libs
  16299. # Compile-time system search path for libraries.
  16300. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16301. # Run-time system search path for libraries.
  16302. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16303. # Whether dlopen is supported.
  16304. dlopen_support=$enable_dlopen
  16305. # Whether dlopen of programs is supported.
  16306. dlopen_self=$enable_dlopen_self
  16307. # Whether dlopen of statically linked programs is supported.
  16308. dlopen_self_static=$enable_dlopen_self_static
  16309. # Commands to strip libraries.
  16310. old_striplib=$lt_old_striplib
  16311. striplib=$lt_striplib
  16312. # The linker used to build libraries.
  16313. LD=$lt_LD
  16314. # How to create reloadable object files.
  16315. reload_flag=$lt_reload_flag
  16316. reload_cmds=$lt_reload_cmds
  16317. # Commands used to build an old-style archive.
  16318. old_archive_cmds=$lt_old_archive_cmds
  16319. # A language specific compiler.
  16320. CC=$lt_compiler
  16321. # Is the compiler the GNU compiler?
  16322. with_gcc=$GCC
  16323. # Compiler flag to turn off builtin functions.
  16324. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16325. # Additional compiler flags for building library objects.
  16326. pic_flag=$lt_lt_prog_compiler_pic
  16327. # How to pass a linker flag through the compiler.
  16328. wl=$lt_lt_prog_compiler_wl
  16329. # Compiler flag to prevent dynamic linking.
  16330. link_static_flag=$lt_lt_prog_compiler_static
  16331. # Does compiler simultaneously support -c and -o options?
  16332. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16333. # Whether or not to add -lc for building shared libraries.
  16334. build_libtool_need_lc=$archive_cmds_need_lc
  16335. # Whether or not to disallow shared libs when runtime libs are static.
  16336. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16337. # Compiler flag to allow reflexive dlopens.
  16338. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16339. # Compiler flag to generate shared objects directly from archives.
  16340. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16341. # Whether the compiler copes with passing no objects directly.
  16342. compiler_needs_object=$lt_compiler_needs_object
  16343. # Create an old-style archive from a shared archive.
  16344. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16345. # Create a temporary old-style archive to link instead of a shared archive.
  16346. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16347. # Commands used to build a shared archive.
  16348. archive_cmds=$lt_archive_cmds
  16349. archive_expsym_cmds=$lt_archive_expsym_cmds
  16350. # Commands used to build a loadable module if different from building
  16351. # a shared archive.
  16352. module_cmds=$lt_module_cmds
  16353. module_expsym_cmds=$lt_module_expsym_cmds
  16354. # Whether we are building with GNU ld or not.
  16355. with_gnu_ld=$lt_with_gnu_ld
  16356. # Flag that allows shared libraries with undefined symbols to be built.
  16357. allow_undefined_flag=$lt_allow_undefined_flag
  16358. # Flag that enforces no undefined symbols.
  16359. no_undefined_flag=$lt_no_undefined_flag
  16360. # Flag to hardcode \$libdir into a binary during linking.
  16361. # This must work even if \$libdir does not exist
  16362. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16363. # Whether we need a single "-rpath" flag with a separated argument.
  16364. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16365. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16366. # DIR into the resulting binary.
  16367. hardcode_direct=$hardcode_direct
  16368. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16369. # DIR into the resulting binary and the resulting library dependency is
  16370. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16371. # library is relocated.
  16372. hardcode_direct_absolute=$hardcode_direct_absolute
  16373. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16374. # into the resulting binary.
  16375. hardcode_minus_L=$hardcode_minus_L
  16376. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16377. # into the resulting binary.
  16378. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16379. # Set to "yes" if building a shared library automatically hardcodes DIR
  16380. # into the library and all subsequent libraries and executables linked
  16381. # against it.
  16382. hardcode_automatic=$hardcode_automatic
  16383. # Set to yes if linker adds runtime paths of dependent libraries
  16384. # to runtime path list.
  16385. inherit_rpath=$inherit_rpath
  16386. # Whether libtool must link a program against all its dependency libraries.
  16387. link_all_deplibs=$link_all_deplibs
  16388. # Set to "yes" if exported symbols are required.
  16389. always_export_symbols=$always_export_symbols
  16390. # The commands to list exported symbols.
  16391. export_symbols_cmds=$lt_export_symbols_cmds
  16392. # Symbols that should not be listed in the preloaded symbols.
  16393. exclude_expsyms=$lt_exclude_expsyms
  16394. # Symbols that must always be exported.
  16395. include_expsyms=$lt_include_expsyms
  16396. # Commands necessary for linking programs (against libraries) with templates.
  16397. prelink_cmds=$lt_prelink_cmds
  16398. # Commands necessary for finishing linking programs.
  16399. postlink_cmds=$lt_postlink_cmds
  16400. # Specify filename containing input files.
  16401. file_list_spec=$lt_file_list_spec
  16402. # How to hardcode a shared library path into an executable.
  16403. hardcode_action=$hardcode_action
  16404. # The directories searched by this compiler when creating a shared library.
  16405. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16406. # Dependencies to place before and after the objects being linked to
  16407. # create a shared library.
  16408. predep_objects=$lt_predep_objects
  16409. postdep_objects=$lt_postdep_objects
  16410. predeps=$lt_predeps
  16411. postdeps=$lt_postdeps
  16412. # The library search path used internally by the compiler when linking
  16413. # a shared library.
  16414. compiler_lib_search_path=$lt_compiler_lib_search_path
  16415. # ### END LIBTOOL CONFIG
  16416. _LT_EOF
  16417. case $host_os in
  16418. aix3*)
  16419. cat <<\_LT_EOF >> "$cfgfile"
  16420. # AIX sometimes has problems with the GCC collect2 program. For some
  16421. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16422. # vanish in a puff of smoke.
  16423. if test "X${COLLECT_NAMES+set}" != Xset; then
  16424. COLLECT_NAMES=
  16425. export COLLECT_NAMES
  16426. fi
  16427. _LT_EOF
  16428. ;;
  16429. esac
  16430. ltmain="$ac_aux_dir/ltmain.sh"
  16431. # We use sed instead of cat because bash on DJGPP gets confused if
  16432. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16433. # text mode, it properly converts lines to CR/LF. This bash problem
  16434. # is reportedly fixed, but why not run on old versions too?
  16435. sed '$q' "$ltmain" >> "$cfgfile" \
  16436. || (rm -f "$cfgfile"; exit 1)
  16437. if test x"$xsi_shell" = xyes; then
  16438. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16439. func_dirname ()\
  16440. {\
  16441. \ case ${1} in\
  16442. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16443. \ * ) func_dirname_result="${3}" ;;\
  16444. \ esac\
  16445. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16446. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16447. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16448. test 0 -eq $? || _lt_function_replace_fail=:
  16449. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16450. func_basename ()\
  16451. {\
  16452. \ func_basename_result="${1##*/}"\
  16453. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16454. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16455. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16456. test 0 -eq $? || _lt_function_replace_fail=:
  16457. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16458. func_dirname_and_basename ()\
  16459. {\
  16460. \ case ${1} in\
  16461. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16462. \ * ) func_dirname_result="${3}" ;;\
  16463. \ esac\
  16464. \ func_basename_result="${1##*/}"\
  16465. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16466. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16467. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16468. test 0 -eq $? || _lt_function_replace_fail=:
  16469. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16470. func_stripname ()\
  16471. {\
  16472. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16473. \ # positional parameters, so assign one to ordinary parameter first.\
  16474. \ func_stripname_result=${3}\
  16475. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16476. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16477. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16478. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16479. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16480. test 0 -eq $? || _lt_function_replace_fail=:
  16481. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16482. func_split_long_opt ()\
  16483. {\
  16484. \ func_split_long_opt_name=${1%%=*}\
  16485. \ func_split_long_opt_arg=${1#*=}\
  16486. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16487. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16488. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16489. test 0 -eq $? || _lt_function_replace_fail=:
  16490. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16491. func_split_short_opt ()\
  16492. {\
  16493. \ func_split_short_opt_arg=${1#??}\
  16494. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16495. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16496. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16497. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16498. test 0 -eq $? || _lt_function_replace_fail=:
  16499. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16500. func_lo2o ()\
  16501. {\
  16502. \ case ${1} in\
  16503. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16504. \ *) func_lo2o_result=${1} ;;\
  16505. \ esac\
  16506. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16507. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16508. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16509. test 0 -eq $? || _lt_function_replace_fail=:
  16510. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16511. func_xform ()\
  16512. {\
  16513. func_xform_result=${1%.*}.lo\
  16514. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16515. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16516. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16517. test 0 -eq $? || _lt_function_replace_fail=:
  16518. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16519. func_arith ()\
  16520. {\
  16521. func_arith_result=$(( $* ))\
  16522. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16523. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16524. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16525. test 0 -eq $? || _lt_function_replace_fail=:
  16526. sed -e '/^func_len ()$/,/^} # func_len /c\
  16527. func_len ()\
  16528. {\
  16529. func_len_result=${#1}\
  16530. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16531. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16532. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16533. test 0 -eq $? || _lt_function_replace_fail=:
  16534. fi
  16535. if test x"$lt_shell_append" = xyes; then
  16536. sed -e '/^func_append ()$/,/^} # func_append /c\
  16537. func_append ()\
  16538. {\
  16539. eval "${1}+=\\${2}"\
  16540. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16541. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16542. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16543. test 0 -eq $? || _lt_function_replace_fail=:
  16544. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16545. func_append_quoted ()\
  16546. {\
  16547. \ func_quote_for_eval "${2}"\
  16548. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16549. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16550. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16551. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16552. test 0 -eq $? || _lt_function_replace_fail=:
  16553. # Save a `func_append' function call where possible by direct use of '+='
  16554. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16555. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16556. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16557. test 0 -eq $? || _lt_function_replace_fail=:
  16558. else
  16559. # Save a `func_append' function call even when '+=' is not available
  16560. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16561. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16562. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16563. test 0 -eq $? || _lt_function_replace_fail=:
  16564. fi
  16565. if test x"$_lt_function_replace_fail" = x":"; then
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16567. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16568. fi
  16569. mv -f "$cfgfile" "$ofile" ||
  16570. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16571. chmod +x "$ofile"
  16572. cat <<_LT_EOF >> "$ofile"
  16573. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16574. # The linker used to build libraries.
  16575. LD=$lt_LD_CXX
  16576. # How to create reloadable object files.
  16577. reload_flag=$lt_reload_flag_CXX
  16578. reload_cmds=$lt_reload_cmds_CXX
  16579. # Commands used to build an old-style archive.
  16580. old_archive_cmds=$lt_old_archive_cmds_CXX
  16581. # A language specific compiler.
  16582. CC=$lt_compiler_CXX
  16583. # Is the compiler the GNU compiler?
  16584. with_gcc=$GCC_CXX
  16585. # Compiler flag to turn off builtin functions.
  16586. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16587. # Additional compiler flags for building library objects.
  16588. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16589. # How to pass a linker flag through the compiler.
  16590. wl=$lt_lt_prog_compiler_wl_CXX
  16591. # Compiler flag to prevent dynamic linking.
  16592. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16593. # Does compiler simultaneously support -c and -o options?
  16594. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16595. # Whether or not to add -lc for building shared libraries.
  16596. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16597. # Whether or not to disallow shared libs when runtime libs are static.
  16598. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16599. # Compiler flag to allow reflexive dlopens.
  16600. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16601. # Compiler flag to generate shared objects directly from archives.
  16602. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16603. # Whether the compiler copes with passing no objects directly.
  16604. compiler_needs_object=$lt_compiler_needs_object_CXX
  16605. # Create an old-style archive from a shared archive.
  16606. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16607. # Create a temporary old-style archive to link instead of a shared archive.
  16608. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16609. # Commands used to build a shared archive.
  16610. archive_cmds=$lt_archive_cmds_CXX
  16611. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16612. # Commands used to build a loadable module if different from building
  16613. # a shared archive.
  16614. module_cmds=$lt_module_cmds_CXX
  16615. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16616. # Whether we are building with GNU ld or not.
  16617. with_gnu_ld=$lt_with_gnu_ld_CXX
  16618. # Flag that allows shared libraries with undefined symbols to be built.
  16619. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16620. # Flag that enforces no undefined symbols.
  16621. no_undefined_flag=$lt_no_undefined_flag_CXX
  16622. # Flag to hardcode \$libdir into a binary during linking.
  16623. # This must work even if \$libdir does not exist
  16624. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16625. # Whether we need a single "-rpath" flag with a separated argument.
  16626. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16627. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16628. # DIR into the resulting binary.
  16629. hardcode_direct=$hardcode_direct_CXX
  16630. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16631. # DIR into the resulting binary and the resulting library dependency is
  16632. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16633. # library is relocated.
  16634. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16635. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16636. # into the resulting binary.
  16637. hardcode_minus_L=$hardcode_minus_L_CXX
  16638. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16639. # into the resulting binary.
  16640. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16641. # Set to "yes" if building a shared library automatically hardcodes DIR
  16642. # into the library and all subsequent libraries and executables linked
  16643. # against it.
  16644. hardcode_automatic=$hardcode_automatic_CXX
  16645. # Set to yes if linker adds runtime paths of dependent libraries
  16646. # to runtime path list.
  16647. inherit_rpath=$inherit_rpath_CXX
  16648. # Whether libtool must link a program against all its dependency libraries.
  16649. link_all_deplibs=$link_all_deplibs_CXX
  16650. # Set to "yes" if exported symbols are required.
  16651. always_export_symbols=$always_export_symbols_CXX
  16652. # The commands to list exported symbols.
  16653. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16654. # Symbols that should not be listed in the preloaded symbols.
  16655. exclude_expsyms=$lt_exclude_expsyms_CXX
  16656. # Symbols that must always be exported.
  16657. include_expsyms=$lt_include_expsyms_CXX
  16658. # Commands necessary for linking programs (against libraries) with templates.
  16659. prelink_cmds=$lt_prelink_cmds_CXX
  16660. # Commands necessary for finishing linking programs.
  16661. postlink_cmds=$lt_postlink_cmds_CXX
  16662. # Specify filename containing input files.
  16663. file_list_spec=$lt_file_list_spec_CXX
  16664. # How to hardcode a shared library path into an executable.
  16665. hardcode_action=$hardcode_action_CXX
  16666. # The directories searched by this compiler when creating a shared library.
  16667. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16668. # Dependencies to place before and after the objects being linked to
  16669. # create a shared library.
  16670. predep_objects=$lt_predep_objects_CXX
  16671. postdep_objects=$lt_postdep_objects_CXX
  16672. predeps=$lt_predeps_CXX
  16673. postdeps=$lt_postdeps_CXX
  16674. # The library search path used internally by the compiler when linking
  16675. # a shared library.
  16676. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16677. # ### END LIBTOOL TAG CONFIG: CXX
  16678. _LT_EOF
  16679. ;;
  16680. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16681. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16682. # are listed without --file. Let's play safe and only enable the eval
  16683. # if we detect the quoting.
  16684. case $CONFIG_FILES in
  16685. *\'*) eval set x "$CONFIG_FILES" ;;
  16686. *) set x $CONFIG_FILES ;;
  16687. esac
  16688. shift
  16689. for mf
  16690. do
  16691. # Strip MF so we end up with the name of the file.
  16692. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16693. # Check whether this is an Automake generated Makefile or not.
  16694. # We used to match only the files named `Makefile.in', but
  16695. # some people rename them; so instead we look at the file content.
  16696. # Grep'ing the first line is not enough: some people post-process
  16697. # each Makefile.in and add a new line on top of each file to say so.
  16698. # Grep'ing the whole file is not good either: AIX grep has a line
  16699. # limit of 2048, but all sed's we know have understand at least 4000.
  16700. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16701. dirpart=`$as_dirname -- "$mf" ||
  16702. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16703. X"$mf" : 'X\(//\)[^/]' \| \
  16704. X"$mf" : 'X\(//\)$' \| \
  16705. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16706. $as_echo X"$mf" |
  16707. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16708. s//\1/
  16709. q
  16710. }
  16711. /^X\(\/\/\)[^/].*/{
  16712. s//\1/
  16713. q
  16714. }
  16715. /^X\(\/\/\)$/{
  16716. s//\1/
  16717. q
  16718. }
  16719. /^X\(\/\).*/{
  16720. s//\1/
  16721. q
  16722. }
  16723. s/.*/./; q'`
  16724. else
  16725. continue
  16726. fi
  16727. # Extract the definition of DEPDIR, am__include, and am__quote
  16728. # from the Makefile without running `make'.
  16729. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16730. test -z "$DEPDIR" && continue
  16731. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16732. test -z "am__include" && continue
  16733. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16734. # When using ansi2knr, U may be empty or an underscore; expand it
  16735. U=`sed -n 's/^U = //p' < "$mf"`
  16736. # Find all dependency output files, they are included files with
  16737. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16738. # simplest approach to changing $(DEPDIR) to its actual value in the
  16739. # expansion.
  16740. for file in `sed -n "
  16741. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16742. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16743. # Make sure the directory exists.
  16744. test -f "$dirpart/$file" && continue
  16745. fdir=`$as_dirname -- "$file" ||
  16746. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16747. X"$file" : 'X\(//\)[^/]' \| \
  16748. X"$file" : 'X\(//\)$' \| \
  16749. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16750. $as_echo X"$file" |
  16751. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16752. s//\1/
  16753. q
  16754. }
  16755. /^X\(\/\/\)[^/].*/{
  16756. s//\1/
  16757. q
  16758. }
  16759. /^X\(\/\/\)$/{
  16760. s//\1/
  16761. q
  16762. }
  16763. /^X\(\/\).*/{
  16764. s//\1/
  16765. q
  16766. }
  16767. s/.*/./; q'`
  16768. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16769. # echo "creating $dirpart/$file"
  16770. echo '# dummy' > "$dirpart/$file"
  16771. done
  16772. done
  16773. }
  16774. ;;
  16775. esac
  16776. done # for ac_tag
  16777. as_fn_exit 0
  16778. _ACEOF
  16779. ac_clean_files=$ac_clean_files_save
  16780. test $ac_write_fail = 0 ||
  16781. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16782. # configure is writing to config.log, and then calls config.status.
  16783. # config.status does its own redirection, appending to config.log.
  16784. # Unfortunately, on DOS this fails, as config.log is still kept open
  16785. # by configure, so config.status won't be able to write to it; its
  16786. # output is simply discarded. So we exec the FD to /dev/null,
  16787. # effectively closing config.log, so it can be properly (re)opened and
  16788. # appended to by config.status. When coming back to configure, we
  16789. # need to make the FD available again.
  16790. if test "$no_create" != yes; then
  16791. ac_cs_success=:
  16792. ac_config_status_args=
  16793. test "$silent" = yes &&
  16794. ac_config_status_args="$ac_config_status_args --quiet"
  16795. exec 5>/dev/null
  16796. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16797. exec 5>>config.log
  16798. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16799. # would make configure fail if this is the last instruction.
  16800. $ac_cs_success || as_fn_exit 1
  16801. fi
  16802. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16804. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16805. fi