configure 535 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for clish 1.3.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  214. $0: gmail dot com about your system, including any error
  215. $0: possibly output before this message. Then install a
  216. $0: modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$lt_ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. ECHO=${lt_ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $ECHO works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<_LT_EOF
  512. $*
  513. _LT_EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$lt_ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  525. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. ECHO="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$ECHO" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. ECHO='print -r'
  560. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. ECHO='printf %s\n'
  571. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. ECHO=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. lt_ECHO=$ECHO
  616. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. exec 7<&0 </dev/null 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='clish'
  637. PACKAGE_TARNAME='clish'
  638. PACKAGE_VERSION='1.3.0'
  639. PACKAGE_STRING='clish 1.3.0'
  640. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. BFD_LIBS
  682. LUBHEAP_CFLAGS
  683. LUBHEAP_LIBS
  684. LUBHEAP_FALSE
  685. LUBHEAP_TRUE
  686. TCL_FALSE
  687. TCL_TRUE
  688. TCL_VERSION
  689. TCL_LIBS
  690. TCL_CFLAGS
  691. RT_CFLAGS
  692. RT_LIBS
  693. PTHREAD_CFLAGS
  694. PTHREAD_LIBS
  695. TINYXML_CXXFLAGS
  696. TINYXML_LIBS
  697. TINYRL_CFLAGS
  698. TINYRL_LIBS
  699. KONF_CFLAGS
  700. KONF_LIBS
  701. LUB_CFLAGS
  702. LUB_LIBS
  703. DEBUG_FALSE
  704. DEBUG_TRUE
  705. am__fastdepCXX_FALSE
  706. am__fastdepCXX_TRUE
  707. CXXDEPMODE
  708. am__fastdepCC_FALSE
  709. am__fastdepCC_TRUE
  710. CCDEPMODE
  711. AMDEPBACKSLASH
  712. AMDEP_FALSE
  713. AMDEP_TRUE
  714. am__quote
  715. am__include
  716. DEPDIR
  717. am__untar
  718. am__tar
  719. AMTAR
  720. am__leading_dot
  721. SET_MAKE
  722. AWK
  723. mkdir_p
  724. MKDIR_P
  725. INSTALL_STRIP_PROGRAM
  726. install_sh
  727. MAKEINFO
  728. AUTOHEADER
  729. AUTOMAKE
  730. AUTOCONF
  731. ACLOCAL
  732. VERSION
  733. PACKAGE
  734. CYGPATH_W
  735. am__isrc
  736. INSTALL_DATA
  737. INSTALL_SCRIPT
  738. INSTALL_PROGRAM
  739. CXXCPP
  740. CPP
  741. OTOOL64
  742. OTOOL
  743. LIPO
  744. NMEDIT
  745. DSYMUTIL
  746. lt_ECHO
  747. RANLIB
  748. STRIP
  749. AR
  750. LN_S
  751. NM
  752. ac_ct_DUMPBIN
  753. DUMPBIN
  754. LD
  755. FGREP
  756. EGREP
  757. GREP
  758. SED
  759. LIBTOOL
  760. OBJDUMP
  761. DLLTOOL
  762. AS
  763. host_os
  764. host_vendor
  765. host_cpu
  766. host
  767. build_os
  768. build_vendor
  769. build_cpu
  770. build
  771. ac_ct_CXX
  772. CXXFLAGS
  773. CXX
  774. OBJEXT
  775. EXEEXT
  776. ac_ct_CC
  777. CPPFLAGS
  778. LDFLAGS
  779. CFLAGS
  780. CC
  781. target_alias
  782. host_alias
  783. build_alias
  784. LIBS
  785. ECHO_T
  786. ECHO_N
  787. ECHO_C
  788. DEFS
  789. mandir
  790. localedir
  791. libdir
  792. psdir
  793. pdfdir
  794. dvidir
  795. htmldir
  796. infodir
  797. docdir
  798. oldincludedir
  799. includedir
  800. localstatedir
  801. sharedstatedir
  802. sysconfdir
  803. datadir
  804. datarootdir
  805. libexecdir
  806. sbindir
  807. bindir
  808. program_transform_name
  809. prefix
  810. exec_prefix
  811. PACKAGE_URL
  812. PACKAGE_BUGREPORT
  813. PACKAGE_STRING
  814. PACKAGE_VERSION
  815. PACKAGE_TARNAME
  816. PACKAGE_NAME
  817. PATH_SEPARATOR
  818. SHELL'
  819. ac_subst_files=''
  820. ac_user_opts='
  821. enable_option_checking
  822. enable_shared
  823. enable_static
  824. with_pic
  825. enable_fast_install
  826. with_gnu_ld
  827. enable_libtool_lock
  828. enable_dependency_tracking
  829. enable_debug
  830. with_pthread
  831. with_rt
  832. with_tcl
  833. enable_lubheap
  834. enable_gpl
  835. '
  836. ac_precious_vars='build_alias
  837. host_alias
  838. target_alias
  839. CC
  840. CFLAGS
  841. LDFLAGS
  842. LIBS
  843. CPPFLAGS
  844. CXX
  845. CXXFLAGS
  846. CCC
  847. CPP
  848. CXXCPP'
  849. # Initialize some variables set by options.
  850. ac_init_help=
  851. ac_init_version=false
  852. ac_unrecognized_opts=
  853. ac_unrecognized_sep=
  854. # The variables have the same names as the options, with
  855. # dashes changed to underlines.
  856. cache_file=/dev/null
  857. exec_prefix=NONE
  858. no_create=
  859. no_recursion=
  860. prefix=NONE
  861. program_prefix=NONE
  862. program_suffix=NONE
  863. program_transform_name=s,x,x,
  864. silent=
  865. site=
  866. srcdir=
  867. verbose=
  868. x_includes=NONE
  869. x_libraries=NONE
  870. # Installation directory options.
  871. # These are left unexpanded so users can "make install exec_prefix=/foo"
  872. # and all the variables that are supposed to be based on exec_prefix
  873. # by default will actually change.
  874. # Use braces instead of parens because sh, perl, etc. also accept them.
  875. # (The list follows the same order as the GNU Coding Standards.)
  876. bindir='${exec_prefix}/bin'
  877. sbindir='${exec_prefix}/sbin'
  878. libexecdir='${exec_prefix}/libexec'
  879. datarootdir='${prefix}/share'
  880. datadir='${datarootdir}'
  881. sysconfdir='${prefix}/etc'
  882. sharedstatedir='${prefix}/com'
  883. localstatedir='${prefix}/var'
  884. includedir='${prefix}/include'
  885. oldincludedir='/usr/include'
  886. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  887. infodir='${datarootdir}/info'
  888. htmldir='${docdir}'
  889. dvidir='${docdir}'
  890. pdfdir='${docdir}'
  891. psdir='${docdir}'
  892. libdir='${exec_prefix}/lib'
  893. localedir='${datarootdir}/locale'
  894. mandir='${datarootdir}/man'
  895. ac_prev=
  896. ac_dashdash=
  897. for ac_option
  898. do
  899. # If the previous option needs an argument, assign it.
  900. if test -n "$ac_prev"; then
  901. eval $ac_prev=\$ac_option
  902. ac_prev=
  903. continue
  904. fi
  905. case $ac_option in
  906. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  907. *) ac_optarg=yes ;;
  908. esac
  909. # Accept the important Cygnus configure options, so we can diagnose typos.
  910. case $ac_dashdash$ac_option in
  911. --)
  912. ac_dashdash=yes ;;
  913. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  914. ac_prev=bindir ;;
  915. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  916. bindir=$ac_optarg ;;
  917. -build | --build | --buil | --bui | --bu)
  918. ac_prev=build_alias ;;
  919. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  920. build_alias=$ac_optarg ;;
  921. -cache-file | --cache-file | --cache-fil | --cache-fi \
  922. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  923. ac_prev=cache_file ;;
  924. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  925. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  926. cache_file=$ac_optarg ;;
  927. --config-cache | -C)
  928. cache_file=config.cache ;;
  929. -datadir | --datadir | --datadi | --datad)
  930. ac_prev=datadir ;;
  931. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  932. datadir=$ac_optarg ;;
  933. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  934. | --dataroo | --dataro | --datar)
  935. ac_prev=datarootdir ;;
  936. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  937. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  938. datarootdir=$ac_optarg ;;
  939. -disable-* | --disable-*)
  940. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  941. # Reject names that are not valid shell variable names.
  942. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943. as_fn_error "invalid feature name: $ac_useropt"
  944. ac_useropt_orig=$ac_useropt
  945. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  946. case $ac_user_opts in
  947. *"
  948. "enable_$ac_useropt"
  949. "*) ;;
  950. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  951. ac_unrecognized_sep=', ';;
  952. esac
  953. eval enable_$ac_useropt=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  966. as_fn_error "invalid feature name: $ac_useropt"
  967. ac_useropt_orig=$ac_useropt
  968. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  969. case $ac_user_opts in
  970. *"
  971. "enable_$ac_useropt"
  972. "*) ;;
  973. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  974. ac_unrecognized_sep=', ';;
  975. esac
  976. eval enable_$ac_useropt=\$ac_optarg ;;
  977. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  978. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  979. | --exec | --exe | --ex)
  980. ac_prev=exec_prefix ;;
  981. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  982. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  983. | --exec=* | --exe=* | --ex=*)
  984. exec_prefix=$ac_optarg ;;
  985. -gas | --gas | --ga | --g)
  986. # Obsolete; use --with-gas.
  987. with_gas=yes ;;
  988. -help | --help | --hel | --he | -h)
  989. ac_init_help=long ;;
  990. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  991. ac_init_help=recursive ;;
  992. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  993. ac_init_help=short ;;
  994. -host | --host | --hos | --ho)
  995. ac_prev=host_alias ;;
  996. -host=* | --host=* | --hos=* | --ho=*)
  997. host_alias=$ac_optarg ;;
  998. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  999. ac_prev=htmldir ;;
  1000. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1001. | --ht=*)
  1002. htmldir=$ac_optarg ;;
  1003. -includedir | --includedir | --includedi | --included | --include \
  1004. | --includ | --inclu | --incl | --inc)
  1005. ac_prev=includedir ;;
  1006. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1007. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1008. includedir=$ac_optarg ;;
  1009. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1010. ac_prev=infodir ;;
  1011. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1012. infodir=$ac_optarg ;;
  1013. -libdir | --libdir | --libdi | --libd)
  1014. ac_prev=libdir ;;
  1015. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1016. libdir=$ac_optarg ;;
  1017. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1018. | --libexe | --libex | --libe)
  1019. ac_prev=libexecdir ;;
  1020. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1021. | --libexe=* | --libex=* | --libe=*)
  1022. libexecdir=$ac_optarg ;;
  1023. -localedir | --localedir | --localedi | --localed | --locale)
  1024. ac_prev=localedir ;;
  1025. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1026. localedir=$ac_optarg ;;
  1027. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1028. | --localstate | --localstat | --localsta | --localst | --locals)
  1029. ac_prev=localstatedir ;;
  1030. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1031. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1032. localstatedir=$ac_optarg ;;
  1033. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1034. ac_prev=mandir ;;
  1035. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1036. mandir=$ac_optarg ;;
  1037. -nfp | --nfp | --nf)
  1038. # Obsolete; use --without-fp.
  1039. with_fp=no ;;
  1040. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1041. | --no-cr | --no-c | -n)
  1042. no_create=yes ;;
  1043. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1044. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1045. no_recursion=yes ;;
  1046. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1047. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1048. | --oldin | --oldi | --old | --ol | --o)
  1049. ac_prev=oldincludedir ;;
  1050. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1051. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1052. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1053. oldincludedir=$ac_optarg ;;
  1054. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1055. ac_prev=prefix ;;
  1056. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1057. prefix=$ac_optarg ;;
  1058. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1059. | --program-pre | --program-pr | --program-p)
  1060. ac_prev=program_prefix ;;
  1061. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1062. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1063. program_prefix=$ac_optarg ;;
  1064. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1065. | --program-suf | --program-su | --program-s)
  1066. ac_prev=program_suffix ;;
  1067. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1068. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1069. program_suffix=$ac_optarg ;;
  1070. -program-transform-name | --program-transform-name \
  1071. | --program-transform-nam | --program-transform-na \
  1072. | --program-transform-n | --program-transform- \
  1073. | --program-transform | --program-transfor \
  1074. | --program-transfo | --program-transf \
  1075. | --program-trans | --program-tran \
  1076. | --progr-tra | --program-tr | --program-t)
  1077. ac_prev=program_transform_name ;;
  1078. -program-transform-name=* | --program-transform-name=* \
  1079. | --program-transform-nam=* | --program-transform-na=* \
  1080. | --program-transform-n=* | --program-transform-=* \
  1081. | --program-transform=* | --program-transfor=* \
  1082. | --program-transfo=* | --program-transf=* \
  1083. | --program-trans=* | --program-tran=* \
  1084. | --progr-tra=* | --program-tr=* | --program-t=*)
  1085. program_transform_name=$ac_optarg ;;
  1086. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1087. ac_prev=pdfdir ;;
  1088. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1089. pdfdir=$ac_optarg ;;
  1090. -psdir | --psdir | --psdi | --psd | --ps)
  1091. ac_prev=psdir ;;
  1092. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1093. psdir=$ac_optarg ;;
  1094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1095. | -silent | --silent | --silen | --sile | --sil)
  1096. silent=yes ;;
  1097. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1098. ac_prev=sbindir ;;
  1099. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1100. | --sbi=* | --sb=*)
  1101. sbindir=$ac_optarg ;;
  1102. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1103. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1104. | --sharedst | --shareds | --shared | --share | --shar \
  1105. | --sha | --sh)
  1106. ac_prev=sharedstatedir ;;
  1107. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1108. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1109. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1110. | --sha=* | --sh=*)
  1111. sharedstatedir=$ac_optarg ;;
  1112. -site | --site | --sit)
  1113. ac_prev=site ;;
  1114. -site=* | --site=* | --sit=*)
  1115. site=$ac_optarg ;;
  1116. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1117. ac_prev=srcdir ;;
  1118. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1119. srcdir=$ac_optarg ;;
  1120. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1121. | --syscon | --sysco | --sysc | --sys | --sy)
  1122. ac_prev=sysconfdir ;;
  1123. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1124. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1125. sysconfdir=$ac_optarg ;;
  1126. -target | --target | --targe | --targ | --tar | --ta | --t)
  1127. ac_prev=target_alias ;;
  1128. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1129. target_alias=$ac_optarg ;;
  1130. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1131. verbose=yes ;;
  1132. -version | --version | --versio | --versi | --vers | -V)
  1133. ac_init_version=: ;;
  1134. -with-* | --with-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=\$ac_optarg ;;
  1149. -without-* | --without-*)
  1150. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1153. as_fn_error "invalid package name: $ac_useropt"
  1154. ac_useropt_orig=$ac_useropt
  1155. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1156. case $ac_user_opts in
  1157. *"
  1158. "with_$ac_useropt"
  1159. "*) ;;
  1160. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1161. ac_unrecognized_sep=', ';;
  1162. esac
  1163. eval with_$ac_useropt=no ;;
  1164. --x)
  1165. # Obsolete; use --with-x.
  1166. with_x=yes ;;
  1167. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1168. | --x-incl | --x-inc | --x-in | --x-i)
  1169. ac_prev=x_includes ;;
  1170. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1171. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1172. x_includes=$ac_optarg ;;
  1173. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1174. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1175. ac_prev=x_libraries ;;
  1176. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1177. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1178. x_libraries=$ac_optarg ;;
  1179. -*) as_fn_error "unrecognized option: \`$ac_option'
  1180. Try \`$0 --help' for more information."
  1181. ;;
  1182. *=*)
  1183. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1184. # Reject names that are not valid shell variable names.
  1185. case $ac_envvar in #(
  1186. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1187. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1188. esac
  1189. eval $ac_envvar=\$ac_optarg
  1190. export $ac_envvar ;;
  1191. *)
  1192. # FIXME: should be removed in autoconf 3.0.
  1193. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1194. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1195. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1196. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1197. ;;
  1198. esac
  1199. done
  1200. if test -n "$ac_prev"; then
  1201. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1202. as_fn_error "missing argument to $ac_option"
  1203. fi
  1204. if test -n "$ac_unrecognized_opts"; then
  1205. case $enable_option_checking in
  1206. no) ;;
  1207. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1208. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1209. esac
  1210. fi
  1211. # Check all directory arguments for consistency.
  1212. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1213. datadir sysconfdir sharedstatedir localstatedir includedir \
  1214. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1215. libdir localedir mandir
  1216. do
  1217. eval ac_val=\$$ac_var
  1218. # Remove trailing slashes.
  1219. case $ac_val in
  1220. */ )
  1221. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1222. eval $ac_var=\$ac_val;;
  1223. esac
  1224. # Be sure to have absolute directory names.
  1225. case $ac_val in
  1226. [\\/$]* | ?:[\\/]* ) continue;;
  1227. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1228. esac
  1229. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1230. done
  1231. # There might be people who depend on the old broken behavior: `$host'
  1232. # used to hold the argument of --host etc.
  1233. # FIXME: To remove some day.
  1234. build=$build_alias
  1235. host=$host_alias
  1236. target=$target_alias
  1237. # FIXME: To remove some day.
  1238. if test "x$host_alias" != x; then
  1239. if test "x$build_alias" = x; then
  1240. cross_compiling=maybe
  1241. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1242. If a cross compiler is detected then cross compile mode will be used." >&2
  1243. elif test "x$build_alias" != "x$host_alias"; then
  1244. cross_compiling=yes
  1245. fi
  1246. fi
  1247. ac_tool_prefix=
  1248. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1249. test "$silent" = yes && exec 6>/dev/null
  1250. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1251. ac_ls_di=`ls -di .` &&
  1252. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1253. as_fn_error "working directory cannot be determined"
  1254. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255. as_fn_error "pwd does not report name of working directory"
  1256. # Find the source files, if location was not specified.
  1257. if test -z "$srcdir"; then
  1258. ac_srcdir_defaulted=yes
  1259. # Try the directory containing this script, then the parent directory.
  1260. ac_confdir=`$as_dirname -- "$as_myself" ||
  1261. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1262. X"$as_myself" : 'X\(//\)[^/]' \| \
  1263. X"$as_myself" : 'X\(//\)$' \| \
  1264. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1265. $as_echo X"$as_myself" |
  1266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)[^/].*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\/\)$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\).*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. s/.*/./; q'`
  1283. srcdir=$ac_confdir
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. srcdir=..
  1286. fi
  1287. else
  1288. ac_srcdir_defaulted=no
  1289. fi
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1292. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1293. fi
  1294. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1295. ac_abs_confdir=`(
  1296. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1297. pwd)`
  1298. # When building in place, set srcdir=.
  1299. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1300. srcdir=.
  1301. fi
  1302. # Remove unnecessary trailing slashes from srcdir.
  1303. # Double slashes in file names in object file debugging info
  1304. # mess up M-x gdb in Emacs.
  1305. case $srcdir in
  1306. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1307. esac
  1308. for ac_var in $ac_precious_vars; do
  1309. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_env_${ac_var}_value=\$${ac_var}
  1311. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1312. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1313. done
  1314. #
  1315. # Report the --help message.
  1316. #
  1317. if test "$ac_init_help" = "long"; then
  1318. # Omit some internal or obsolete options to make the list less imposing.
  1319. # This message is too long to be a string in the A/UX 3.1 sh.
  1320. cat <<_ACEOF
  1321. \`configure' configures clish 1.3.0 to adapt to many kinds of systems.
  1322. Usage: $0 [OPTION]... [VAR=VALUE]...
  1323. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1324. VAR=VALUE. See below for descriptions of some of the useful variables.
  1325. Defaults for the options are specified in brackets.
  1326. Configuration:
  1327. -h, --help display this help and exit
  1328. --help=short display options specific to this package
  1329. --help=recursive display the short help of all the included packages
  1330. -V, --version display version information and exit
  1331. -q, --quiet, --silent do not print \`checking...' messages
  1332. --cache-file=FILE cache test results in FILE [disabled]
  1333. -C, --config-cache alias for \`--cache-file=config.cache'
  1334. -n, --no-create do not create output files
  1335. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1336. Installation directories:
  1337. --prefix=PREFIX install architecture-independent files in PREFIX
  1338. [$ac_default_prefix]
  1339. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1340. [PREFIX]
  1341. By default, \`make install' will install all the files in
  1342. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1343. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1344. for instance \`--prefix=\$HOME'.
  1345. For better control, use the options below.
  1346. Fine tuning of the installation directories:
  1347. --bindir=DIR user executables [EPREFIX/bin]
  1348. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1349. --libexecdir=DIR program executables [EPREFIX/libexec]
  1350. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1351. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1352. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1353. --libdir=DIR object code libraries [EPREFIX/lib]
  1354. --includedir=DIR C header files [PREFIX/include]
  1355. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1356. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1357. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1358. --infodir=DIR info documentation [DATAROOTDIR/info]
  1359. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1360. --mandir=DIR man documentation [DATAROOTDIR/man]
  1361. --docdir=DIR documentation root [DATAROOTDIR/doc/clish]
  1362. --htmldir=DIR html documentation [DOCDIR]
  1363. --dvidir=DIR dvi documentation [DOCDIR]
  1364. --pdfdir=DIR pdf documentation [DOCDIR]
  1365. --psdir=DIR ps documentation [DOCDIR]
  1366. _ACEOF
  1367. cat <<\_ACEOF
  1368. Program names:
  1369. --program-prefix=PREFIX prepend PREFIX to installed program names
  1370. --program-suffix=SUFFIX append SUFFIX to installed program names
  1371. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1372. System types:
  1373. --build=BUILD configure for building on BUILD [guessed]
  1374. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1375. _ACEOF
  1376. fi
  1377. if test -n "$ac_init_help"; then
  1378. case $ac_init_help in
  1379. short | recursive ) echo "Configuration of clish 1.3.0:";;
  1380. esac
  1381. cat <<\_ACEOF
  1382. Optional Features:
  1383. --disable-option-checking ignore unrecognized --enable/--with options
  1384. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1385. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1386. --enable-shared[=PKGS] build shared libraries [default=yes]
  1387. --enable-static[=PKGS] build static libraries [default=yes]
  1388. --enable-fast-install[=PKGS]
  1389. optimize for fast installation [default=yes]
  1390. --disable-libtool-lock avoid locking (might break parallel builds)
  1391. --disable-dependency-tracking speeds up one-time build
  1392. --enable-dependency-tracking do not reject slow dependency extractors
  1393. --enable-debug Turn on debugging including asserts [default=no]
  1394. --enable-lubheap Replace standard memory libaries with lubheap
  1395. (EXPERIMENTAL) [default=no]
  1396. --enable-gpl Link with GPL licenced libraries [default=yes]
  1397. Optional Packages:
  1398. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1399. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1400. --with-pic try to use only PIC/non-PIC objects [default=use
  1401. both]
  1402. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1403. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1404. --with-rt=DIR Use POSIX real time library distribution in DIR
  1405. --with-tcl=DIR Use TCL library distribution in DIR
  1406. Some influential environment variables:
  1407. CC C compiler command
  1408. CFLAGS C compiler flags
  1409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1410. nonstandard directory <lib dir>
  1411. LIBS libraries to pass to the linker, e.g. -l<library>
  1412. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1413. you have headers in a nonstandard directory <include dir>
  1414. CXX C++ compiler command
  1415. CXXFLAGS C++ compiler flags
  1416. CPP C preprocessor
  1417. CXXCPP C++ preprocessor
  1418. Use these variables to override the choices made by `configure' or to help
  1419. it to find libraries and programs with nonstandard names/locations.
  1420. Report bugs to <serj.kalichev at gmail dot com>.
  1421. _ACEOF
  1422. ac_status=$?
  1423. fi
  1424. if test "$ac_init_help" = "recursive"; then
  1425. # If there are subdirs, report their specific --help.
  1426. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1427. test -d "$ac_dir" ||
  1428. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1429. continue
  1430. ac_builddir=.
  1431. case "$ac_dir" in
  1432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433. *)
  1434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1435. # A ".." for each directory in $ac_dir_suffix.
  1436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1437. case $ac_top_builddir_sub in
  1438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1440. esac ;;
  1441. esac
  1442. ac_abs_top_builddir=$ac_pwd
  1443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1444. # for backward compatibility:
  1445. ac_top_builddir=$ac_top_build_prefix
  1446. case $srcdir in
  1447. .) # We are building in place.
  1448. ac_srcdir=.
  1449. ac_top_srcdir=$ac_top_builddir_sub
  1450. ac_abs_top_srcdir=$ac_pwd ;;
  1451. [\\/]* | ?:[\\/]* ) # Absolute name.
  1452. ac_srcdir=$srcdir$ac_dir_suffix;
  1453. ac_top_srcdir=$srcdir
  1454. ac_abs_top_srcdir=$srcdir ;;
  1455. *) # Relative name.
  1456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1459. esac
  1460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1461. cd "$ac_dir" || { ac_status=$?; continue; }
  1462. # Check for guested configure.
  1463. if test -f "$ac_srcdir/configure.gnu"; then
  1464. echo &&
  1465. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1466. elif test -f "$ac_srcdir/configure"; then
  1467. echo &&
  1468. $SHELL "$ac_srcdir/configure" --help=recursive
  1469. else
  1470. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1471. fi || ac_status=$?
  1472. cd "$ac_pwd" || { ac_status=$?; break; }
  1473. done
  1474. fi
  1475. test -n "$ac_init_help" && exit $ac_status
  1476. if $ac_init_version; then
  1477. cat <<\_ACEOF
  1478. clish configure 1.3.0
  1479. generated by GNU Autoconf 2.64
  1480. Copyright (C) 2009 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. ## ------------------------ ##
  1487. ## Autoconf initialization. ##
  1488. ## ------------------------ ##
  1489. # ac_fn_c_try_compile LINENO
  1490. # --------------------------
  1491. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_compile ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext
  1496. if { { ac_try="$ac_compile"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_compile") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest.$ac_objext; then :
  1515. ac_retval=0
  1516. else
  1517. $as_echo "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1522. return $ac_retval
  1523. } # ac_fn_c_try_compile
  1524. # ac_fn_cxx_try_compile LINENO
  1525. # ----------------------------
  1526. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1527. ac_fn_cxx_try_compile ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. rm -f conftest.$ac_objext
  1531. if { { ac_try="$ac_compile"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_compile") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && {
  1547. test -z "$ac_cxx_werror_flag" ||
  1548. test ! -s conftest.err
  1549. } && test -s conftest.$ac_objext; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1557. return $ac_retval
  1558. } # ac_fn_cxx_try_compile
  1559. # ac_fn_c_try_link LINENO
  1560. # -----------------------
  1561. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_link ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext conftest$ac_exeext
  1566. if { { ac_try="$ac_link"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_link") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest$ac_exeext && {
  1585. test "$cross_compiling" = yes ||
  1586. $as_test_x conftest$ac_exeext
  1587. }; then :
  1588. ac_retval=0
  1589. else
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=1
  1593. fi
  1594. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1595. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1596. # interfere with the next link command; also delete a directory that is
  1597. # left behind by Apple's compiler. We do this before executing the actions.
  1598. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1599. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1600. return $ac_retval
  1601. } # ac_fn_c_try_link
  1602. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1603. # -------------------------------------------------------
  1604. # Tests whether HEADER exists and can be compiled using the include files in
  1605. # INCLUDES, setting the cache variable VAR accordingly.
  1606. ac_fn_c_check_header_compile ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1610. $as_echo_n "checking for $2... " >&6; }
  1611. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1612. $as_echo_n "(cached) " >&6
  1613. else
  1614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1615. /* end confdefs.h. */
  1616. $4
  1617. #include <$2>
  1618. _ACEOF
  1619. if ac_fn_c_try_compile "$LINENO"; then :
  1620. eval "$3=yes"
  1621. else
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1625. fi
  1626. eval ac_res=\$$3
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1628. $as_echo "$ac_res" >&6; }
  1629. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1630. } # ac_fn_c_check_header_compile
  1631. # ac_fn_c_try_cpp LINENO
  1632. # ----------------------
  1633. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1634. ac_fn_c_try_cpp ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1638. case "(($ac_try" in
  1639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640. *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1645. ac_status=$?
  1646. if test -s conftest.err; then
  1647. grep -v '^ *+' conftest.err >conftest.er1
  1648. cat conftest.er1 >&5
  1649. mv -f conftest.er1 conftest.err
  1650. fi
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; } >/dev/null && {
  1653. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1654. test ! -s conftest.err
  1655. }; then :
  1656. ac_retval=0
  1657. else
  1658. $as_echo "$as_me: failed program was:" >&5
  1659. sed 's/^/| /' conftest.$ac_ext >&5
  1660. ac_retval=1
  1661. fi
  1662. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1663. return $ac_retval
  1664. } # ac_fn_c_try_cpp
  1665. # ac_fn_c_try_run LINENO
  1666. # ----------------------
  1667. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1668. # that executables *can* be run.
  1669. ac_fn_c_try_run ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_link"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_link") 2>&5
  1680. ac_status=$?
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1683. { { case "(($ac_try" in
  1684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1685. *) ac_try_echo=$ac_try;;
  1686. esac
  1687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1688. $as_echo "$ac_try_echo"; } >&5
  1689. (eval "$ac_try") 2>&5
  1690. ac_status=$?
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; }; }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: program exited with status $ac_status" >&5
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=$ac_status
  1699. fi
  1700. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1702. return $ac_retval
  1703. } # ac_fn_c_try_run
  1704. # ac_fn_c_check_func LINENO FUNC VAR
  1705. # ----------------------------------
  1706. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1707. ac_fn_c_check_func ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1711. $as_echo_n "checking for $2... " >&6; }
  1712. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1713. $as_echo_n "(cached) " >&6
  1714. else
  1715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1716. /* end confdefs.h. */
  1717. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1719. #define $2 innocuous_$2
  1720. /* System header to define __stub macros and hopefully few prototypes,
  1721. which can conflict with char $2 (); below.
  1722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1723. <limits.h> exists even on freestanding compilers. */
  1724. #ifdef __STDC__
  1725. # include <limits.h>
  1726. #else
  1727. # include <assert.h>
  1728. #endif
  1729. #undef $2
  1730. /* Override any GCC internal prototype to avoid an error.
  1731. Use char because int might match the return type of a GCC
  1732. builtin and then its argument prototype would still apply. */
  1733. #ifdef __cplusplus
  1734. extern "C"
  1735. #endif
  1736. char $2 ();
  1737. /* The GNU C library defines this for functions which it implements
  1738. to always fail with ENOSYS. Some functions are actually named
  1739. something starting with __ and the normal name is an alias. */
  1740. #if defined __stub_$2 || defined __stub___$2
  1741. choke me
  1742. #endif
  1743. int
  1744. main ()
  1745. {
  1746. return $2 ();
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. if ac_fn_c_try_link "$LINENO"; then :
  1752. eval "$3=yes"
  1753. else
  1754. eval "$3=no"
  1755. fi
  1756. rm -f core conftest.err conftest.$ac_objext \
  1757. conftest$ac_exeext conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1763. } # ac_fn_c_check_func
  1764. # ac_fn_cxx_try_cpp LINENO
  1765. # ------------------------
  1766. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1767. ac_fn_cxx_try_cpp ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. $as_echo "$ac_try_echo"; } >&5
  1777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } >/dev/null && {
  1786. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1787. test ! -s conftest.err
  1788. }; then :
  1789. ac_retval=0
  1790. else
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1796. return $ac_retval
  1797. } # ac_fn_cxx_try_cpp
  1798. # ac_fn_cxx_try_link LINENO
  1799. # -------------------------
  1800. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_cxx_try_link ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest$ac_exeext
  1805. if { { ac_try="$ac_link"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_link") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_cxx_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest$ac_exeext && {
  1824. test "$cross_compiling" = yes ||
  1825. $as_test_x conftest$ac_exeext
  1826. }; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1834. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1835. # interfere with the next link command; also delete a directory that is
  1836. # left behind by Apple's compiler. We do this before executing the actions.
  1837. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1838. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1839. return $ac_retval
  1840. } # ac_fn_cxx_try_link
  1841. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1842. # --------------------------------------------
  1843. # Tries to find the compile-time value of EXPR in a program that includes
  1844. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1845. # computed
  1846. ac_fn_c_compute_int ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if test "$cross_compiling" = yes; then
  1850. # Depending upon the size, compute the lo and hi bounds.
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. $4
  1854. int
  1855. main ()
  1856. {
  1857. static int test_array [1 - 2 * !(($2) >= 0)];
  1858. test_array [0] = 0
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"; then :
  1864. ac_lo=0 ac_mid=0
  1865. while :; do
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $4
  1869. int
  1870. main ()
  1871. {
  1872. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1873. test_array [0] = 0
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_c_try_compile "$LINENO"; then :
  1879. ac_hi=$ac_mid; break
  1880. else
  1881. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1882. if test $ac_lo -le $ac_mid; then
  1883. ac_lo= ac_hi=
  1884. break
  1885. fi
  1886. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1889. done
  1890. else
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. int
  1895. main ()
  1896. {
  1897. static int test_array [1 - 2 * !(($2) < 0)];
  1898. test_array [0] = 0
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. if ac_fn_c_try_compile "$LINENO"; then :
  1904. ac_hi=-1 ac_mid=-1
  1905. while :; do
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h. */
  1908. $4
  1909. int
  1910. main ()
  1911. {
  1912. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1913. test_array [0] = 0
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. ac_lo=$ac_mid; break
  1920. else
  1921. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1922. if test $ac_mid -le $ac_hi; then
  1923. ac_lo= ac_hi=
  1924. break
  1925. fi
  1926. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. done
  1930. else
  1931. ac_lo= ac_hi=
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. # Binary search between lo and hi bounds.
  1937. while test "x$ac_lo" != "x$ac_hi"; do
  1938. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1940. /* end confdefs.h. */
  1941. $4
  1942. int
  1943. main ()
  1944. {
  1945. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1946. test_array [0] = 0
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. ac_hi=$ac_mid
  1953. else
  1954. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1957. done
  1958. case $ac_lo in #((
  1959. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1960. '') ac_retval=1 ;;
  1961. esac
  1962. else
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $4
  1966. static long int longval () { return $2; }
  1967. static unsigned long int ulongval () { return $2; }
  1968. #include <stdio.h>
  1969. #include <stdlib.h>
  1970. int
  1971. main ()
  1972. {
  1973. FILE *f = fopen ("conftest.val", "w");
  1974. if (! f)
  1975. return 1;
  1976. if (($2) < 0)
  1977. {
  1978. long int i = longval ();
  1979. if (i != ($2))
  1980. return 1;
  1981. fprintf (f, "%ld", i);
  1982. }
  1983. else
  1984. {
  1985. unsigned long int i = ulongval ();
  1986. if (i != ($2))
  1987. return 1;
  1988. fprintf (f, "%lu", i);
  1989. }
  1990. /* Do not output a trailing newline, as this causes \r\n confusion
  1991. on some platforms. */
  1992. return ferror (f) || fclose (f) != 0;
  1993. ;
  1994. return 0;
  1995. }
  1996. _ACEOF
  1997. if ac_fn_c_try_run "$LINENO"; then :
  1998. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1999. else
  2000. ac_retval=1
  2001. fi
  2002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2004. rm -f conftest.val
  2005. fi
  2006. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2007. return $ac_retval
  2008. } # ac_fn_c_compute_int
  2009. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2010. # -------------------------------------------------------
  2011. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2012. # the include files in INCLUDES and setting the cache variable VAR
  2013. # accordingly.
  2014. ac_fn_c_check_header_mongrel ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2019. $as_echo_n "checking for $2... " >&6; }
  2020. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2021. $as_echo_n "(cached) " >&6
  2022. fi
  2023. eval ac_res=\$$3
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2025. $as_echo "$ac_res" >&6; }
  2026. else
  2027. # Is the header compilable?
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2029. $as_echo_n "checking $2 usability... " >&6; }
  2030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2031. /* end confdefs.h. */
  2032. $4
  2033. #include <$2>
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. ac_header_compiler=yes
  2037. else
  2038. ac_header_compiler=no
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2042. $as_echo "$ac_header_compiler" >&6; }
  2043. # Is the header present?
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2045. $as_echo_n "checking $2 presence... " >&6; }
  2046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h. */
  2048. #include <$2>
  2049. _ACEOF
  2050. if ac_fn_c_try_cpp "$LINENO"; then :
  2051. ac_header_preproc=yes
  2052. else
  2053. ac_header_preproc=no
  2054. fi
  2055. rm -f conftest.err conftest.$ac_ext
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2057. $as_echo "$ac_header_preproc" >&6; }
  2058. # So? What about this header?
  2059. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2060. yes:no: )
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2062. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2064. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2065. ;;
  2066. no:yes:* )
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2068. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2070. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2072. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2074. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2076. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2077. ( cat <<\_ASBOX
  2078. ## --------------------------------------------- ##
  2079. ## Report this to serj.kalichev at gmail dot com ##
  2080. ## --------------------------------------------- ##
  2081. _ASBOX
  2082. ) | sed "s/^/$as_me: WARNING: /" >&2
  2083. ;;
  2084. esac
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2086. $as_echo_n "checking for $2... " >&6; }
  2087. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2088. $as_echo_n "(cached) " >&6
  2089. else
  2090. eval "$3=\$ac_header_compiler"
  2091. fi
  2092. eval ac_res=\$$3
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2094. $as_echo "$ac_res" >&6; }
  2095. fi
  2096. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2097. } # ac_fn_c_check_header_mongrel
  2098. cat >config.log <<_ACEOF
  2099. This file contains any messages produced by compilers while
  2100. running configure, to aid debugging if configure makes a mistake.
  2101. It was created by clish $as_me 1.3.0, which was
  2102. generated by GNU Autoconf 2.64. Invocation command line was
  2103. $ $0 $@
  2104. _ACEOF
  2105. exec 5>>config.log
  2106. {
  2107. cat <<_ASUNAME
  2108. ## --------- ##
  2109. ## Platform. ##
  2110. ## --------- ##
  2111. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2112. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2113. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2114. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2115. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2116. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2117. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2118. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2119. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2120. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2121. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2122. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2123. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2124. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2125. _ASUNAME
  2126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2127. for as_dir in $PATH
  2128. do
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. $as_echo "PATH: $as_dir"
  2132. done
  2133. IFS=$as_save_IFS
  2134. } >&5
  2135. cat >&5 <<_ACEOF
  2136. ## ----------- ##
  2137. ## Core tests. ##
  2138. ## ----------- ##
  2139. _ACEOF
  2140. # Keep a trace of the command line.
  2141. # Strip out --no-create and --no-recursion so they do not pile up.
  2142. # Strip out --silent because we don't want to record it for future runs.
  2143. # Also quote any args containing shell meta-characters.
  2144. # Make two passes to allow for proper duplicate-argument suppression.
  2145. ac_configure_args=
  2146. ac_configure_args0=
  2147. ac_configure_args1=
  2148. ac_must_keep_next=false
  2149. for ac_pass in 1 2
  2150. do
  2151. for ac_arg
  2152. do
  2153. case $ac_arg in
  2154. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2155. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2156. | -silent | --silent | --silen | --sile | --sil)
  2157. continue ;;
  2158. *\'*)
  2159. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2160. esac
  2161. case $ac_pass in
  2162. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2163. 2)
  2164. as_fn_append ac_configure_args1 " '$ac_arg'"
  2165. if test $ac_must_keep_next = true; then
  2166. ac_must_keep_next=false # Got value, back to normal.
  2167. else
  2168. case $ac_arg in
  2169. *=* | --config-cache | -C | -disable-* | --disable-* \
  2170. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2171. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2172. | -with-* | --with-* | -without-* | --without-* | --x)
  2173. case "$ac_configure_args0 " in
  2174. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2175. esac
  2176. ;;
  2177. -* ) ac_must_keep_next=true ;;
  2178. esac
  2179. fi
  2180. as_fn_append ac_configure_args " '$ac_arg'"
  2181. ;;
  2182. esac
  2183. done
  2184. done
  2185. { ac_configure_args0=; unset ac_configure_args0;}
  2186. { ac_configure_args1=; unset ac_configure_args1;}
  2187. # When interrupted or exit'd, cleanup temporary files, and complete
  2188. # config.log. We remove comments because anyway the quotes in there
  2189. # would cause problems or look ugly.
  2190. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2191. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2192. trap 'exit_status=$?
  2193. # Save into config.log some information that might help in debugging.
  2194. {
  2195. echo
  2196. cat <<\_ASBOX
  2197. ## ---------------- ##
  2198. ## Cache variables. ##
  2199. ## ---------------- ##
  2200. _ASBOX
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. cat <<\_ASBOX
  2234. ## ----------------- ##
  2235. ## Output variables. ##
  2236. ## ----------------- ##
  2237. _ASBOX
  2238. echo
  2239. for ac_var in $ac_subst_vars
  2240. do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in
  2243. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2244. esac
  2245. $as_echo "$ac_var='\''$ac_val'\''"
  2246. done | sort
  2247. echo
  2248. if test -n "$ac_subst_files"; then
  2249. cat <<\_ASBOX
  2250. ## ------------------- ##
  2251. ## File substitutions. ##
  2252. ## ------------------- ##
  2253. _ASBOX
  2254. echo
  2255. for ac_var in $ac_subst_files
  2256. do
  2257. eval ac_val=\$$ac_var
  2258. case $ac_val in
  2259. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2260. esac
  2261. $as_echo "$ac_var='\''$ac_val'\''"
  2262. done | sort
  2263. echo
  2264. fi
  2265. if test -s confdefs.h; then
  2266. cat <<\_ASBOX
  2267. ## ----------- ##
  2268. ## confdefs.h. ##
  2269. ## ----------- ##
  2270. _ASBOX
  2271. echo
  2272. cat confdefs.h
  2273. echo
  2274. fi
  2275. test "$ac_signal" != 0 &&
  2276. $as_echo "$as_me: caught signal $ac_signal"
  2277. $as_echo "$as_me: exit $exit_status"
  2278. } >&5
  2279. rm -f core *.core core.conftest.* &&
  2280. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2281. exit $exit_status
  2282. ' 0
  2283. for ac_signal in 1 2 13 15; do
  2284. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2285. done
  2286. ac_signal=0
  2287. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2288. rm -f -r conftest* confdefs.h
  2289. $as_echo "/* confdefs.h */" > confdefs.h
  2290. # Predefined preprocessor variables.
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_NAME "$PACKAGE_NAME"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_STRING "$PACKAGE_STRING"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2305. _ACEOF
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_URL "$PACKAGE_URL"
  2308. _ACEOF
  2309. # Let the site file select an alternate cache file if it wants to.
  2310. # Prefer an explicitly selected file to automatically selected ones.
  2311. ac_site_file1=NONE
  2312. ac_site_file2=NONE
  2313. if test -n "$CONFIG_SITE"; then
  2314. ac_site_file1=$CONFIG_SITE
  2315. elif test "x$prefix" != xNONE; then
  2316. ac_site_file1=$prefix/share/config.site
  2317. ac_site_file2=$prefix/etc/config.site
  2318. else
  2319. ac_site_file1=$ac_default_prefix/share/config.site
  2320. ac_site_file2=$ac_default_prefix/etc/config.site
  2321. fi
  2322. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2323. do
  2324. test "x$ac_site_file" = xNONE && continue
  2325. if test -r "$ac_site_file"; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2327. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2328. sed 's/^/| /' "$ac_site_file" >&5
  2329. . "$ac_site_file"
  2330. fi
  2331. done
  2332. if test -r "$cache_file"; then
  2333. # Some versions of bash will fail to source /dev/null (special
  2334. # files actually), so we avoid doing that.
  2335. if test -f "$cache_file"; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2337. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2338. case $cache_file in
  2339. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2340. *) . "./$cache_file";;
  2341. esac
  2342. fi
  2343. else
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2345. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2346. >$cache_file
  2347. fi
  2348. # Check that the precious variables saved in the cache have kept the same
  2349. # value.
  2350. ac_cache_corrupted=false
  2351. for ac_var in $ac_precious_vars; do
  2352. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2353. eval ac_new_set=\$ac_env_${ac_var}_set
  2354. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2355. eval ac_new_val=\$ac_env_${ac_var}_value
  2356. case $ac_old_set,$ac_new_set in
  2357. set,)
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2359. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2360. ac_cache_corrupted=: ;;
  2361. ,set)
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2363. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2364. ac_cache_corrupted=: ;;
  2365. ,);;
  2366. *)
  2367. if test "x$ac_old_val" != "x$ac_new_val"; then
  2368. # differences in whitespace do not lead to failure.
  2369. ac_old_val_w=`echo x $ac_old_val`
  2370. ac_new_val_w=`echo x $ac_new_val`
  2371. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2373. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2374. ac_cache_corrupted=:
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2377. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2378. eval $ac_var=\$ac_old_val
  2379. fi
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2381. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2383. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2384. fi;;
  2385. esac
  2386. # Pass precious variables to config.status.
  2387. if test "$ac_new_set" = set; then
  2388. case $ac_new_val in
  2389. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2390. *) ac_arg=$ac_var=$ac_new_val ;;
  2391. esac
  2392. case " $ac_configure_args " in
  2393. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2394. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2395. esac
  2396. fi
  2397. done
  2398. if $ac_cache_corrupted; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2402. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2403. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2404. fi
  2405. ## -------------------- ##
  2406. ## Main body of script. ##
  2407. ## -------------------- ##
  2408. ac_ext=c
  2409. ac_cpp='$CPP $CPPFLAGS'
  2410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2413. ac_aux_dir=
  2414. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2415. for ac_t in install-sh install.sh shtool; do
  2416. if test -f "$ac_dir/$ac_t"; then
  2417. ac_aux_dir=$ac_dir
  2418. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. if test -z "$ac_aux_dir"; then
  2424. as_fn_error "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2425. fi
  2426. # These three variables are undocumented and unsupported,
  2427. # and are intended to be withdrawn in a future Autoconf release.
  2428. # They can cause serious problems if a builder's source tree is in a directory
  2429. # whose full name contains unusual characters.
  2430. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2431. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2432. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2433. # Checks for programs.
  2434. ac_ext=c
  2435. ac_cpp='$CPP $CPPFLAGS'
  2436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2439. if test -n "$ac_tool_prefix"; then
  2440. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2441. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2443. $as_echo_n "checking for $ac_word... " >&6; }
  2444. if test "${ac_cv_prog_CC+set}" = set; then :
  2445. $as_echo_n "(cached) " >&6
  2446. else
  2447. if test -n "$CC"; then
  2448. ac_cv_prog_CC="$CC" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. CC=$ac_cv_prog_CC
  2467. if test -n "$CC"; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2469. $as_echo "$CC" >&6; }
  2470. else
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. fi
  2474. fi
  2475. if test -z "$ac_cv_prog_CC"; then
  2476. ac_ct_CC=$CC
  2477. # Extract the first word of "gcc", so it can be a program name with args.
  2478. set dummy gcc; ac_word=$2
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2480. $as_echo_n "checking for $ac_word... " >&6; }
  2481. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2482. $as_echo_n "(cached) " >&6
  2483. else
  2484. if test -n "$ac_ct_CC"; then
  2485. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2486. else
  2487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2488. for as_dir in $PATH
  2489. do
  2490. IFS=$as_save_IFS
  2491. test -z "$as_dir" && as_dir=.
  2492. for ac_exec_ext in '' $ac_executable_extensions; do
  2493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2494. ac_cv_prog_ac_ct_CC="gcc"
  2495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2496. break 2
  2497. fi
  2498. done
  2499. done
  2500. IFS=$as_save_IFS
  2501. fi
  2502. fi
  2503. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2504. if test -n "$ac_ct_CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2506. $as_echo "$ac_ct_CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. if test "x$ac_ct_CC" = x; then
  2512. CC=""
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2518. ac_tool_warned=yes ;;
  2519. esac
  2520. CC=$ac_ct_CC
  2521. fi
  2522. else
  2523. CC="$ac_cv_prog_CC"
  2524. fi
  2525. if test -z "$CC"; then
  2526. if test -n "$ac_tool_prefix"; then
  2527. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2528. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if test "${ac_cv_prog_CC+set}" = set; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$CC"; then
  2535. ac_cv_prog_CC="$CC" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2544. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. CC=$ac_cv_prog_CC
  2554. if test -n "$CC"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2556. $as_echo "$CC" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. fi
  2562. fi
  2563. if test -z "$CC"; then
  2564. # Extract the first word of "cc", so it can be a program name with args.
  2565. set dummy cc; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if test "${ac_cv_prog_CC+set}" = set; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$CC"; then
  2572. ac_cv_prog_CC="$CC" # Let the user override the test.
  2573. else
  2574. ac_prog_rejected=no
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2582. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2583. ac_prog_rejected=yes
  2584. continue
  2585. fi
  2586. ac_cv_prog_CC="cc"
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. if test $ac_prog_rejected = yes; then
  2594. # We found a bogon in the path, so make sure we never use it.
  2595. set dummy $ac_cv_prog_CC
  2596. shift
  2597. if test $# != 0; then
  2598. # We chose a different compiler from the bogus one.
  2599. # However, it has the same basename, so the bogon will be chosen
  2600. # first if we set CC to just the basename; use the full file name.
  2601. shift
  2602. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2603. fi
  2604. fi
  2605. fi
  2606. fi
  2607. CC=$ac_cv_prog_CC
  2608. if test -n "$CC"; then
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2610. $as_echo "$CC" >&6; }
  2611. else
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2613. $as_echo "no" >&6; }
  2614. fi
  2615. fi
  2616. if test -z "$CC"; then
  2617. if test -n "$ac_tool_prefix"; then
  2618. for ac_prog in cl.exe
  2619. do
  2620. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2621. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if test "${ac_cv_prog_CC+set}" = set; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$CC"; then
  2628. ac_cv_prog_CC="$CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2637. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. $as_echo "$CC" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. test -n "$CC" && break
  2655. done
  2656. fi
  2657. if test -z "$CC"; then
  2658. ac_ct_CC=$CC
  2659. for ac_prog in cl.exe
  2660. do
  2661. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2662. set dummy $ac_prog; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2678. ac_cv_prog_ac_ct_CC="$ac_prog"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. test -n "$ac_ct_CC" && break
  2696. done
  2697. if test "x$ac_ct_CC" = x; then
  2698. CC=""
  2699. else
  2700. case $cross_compiling:$ac_tool_warned in
  2701. yes:)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2704. ac_tool_warned=yes ;;
  2705. esac
  2706. CC=$ac_ct_CC
  2707. fi
  2708. fi
  2709. fi
  2710. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2712. as_fn_error "no acceptable C compiler found in \$PATH
  2713. See \`config.log' for more details." "$LINENO" 5; }
  2714. # Provide some information about the compiler.
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2716. set X $ac_compile
  2717. ac_compiler=$2
  2718. for ac_option in --version -v -V -qversion; do
  2719. { { ac_try="$ac_compiler $ac_option >&5"
  2720. case "(($ac_try" in
  2721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722. *) ac_try_echo=$ac_try;;
  2723. esac
  2724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2725. $as_echo "$ac_try_echo"; } >&5
  2726. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2727. ac_status=$?
  2728. if test -s conftest.err; then
  2729. sed '10a\
  2730. ... rest of stderr output deleted ...
  2731. 10q' conftest.err >conftest.er1
  2732. cat conftest.er1 >&5
  2733. rm -f conftest.er1 conftest.err
  2734. fi
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }
  2737. done
  2738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2739. /* end confdefs.h. */
  2740. #include <stdio.h>
  2741. int
  2742. main ()
  2743. {
  2744. FILE *f = fopen ("conftest.out", "w");
  2745. return ferror (f) || fclose (f) != 0;
  2746. ;
  2747. return 0;
  2748. }
  2749. _ACEOF
  2750. ac_clean_files_save=$ac_clean_files
  2751. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2752. # Try to create an executable without -o first, disregard a.out.
  2753. # It will help us diagnose broken compilers, and finding out an intuition
  2754. # of exeext.
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2756. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2757. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2758. # The possible output files:
  2759. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2760. ac_rmfiles=
  2761. for ac_file in $ac_files
  2762. do
  2763. case $ac_file in
  2764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2765. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2766. esac
  2767. done
  2768. rm -f $ac_rmfiles
  2769. if { { ac_try="$ac_link_default"
  2770. case "(($ac_try" in
  2771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2772. *) ac_try_echo=$ac_try;;
  2773. esac
  2774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2775. $as_echo "$ac_try_echo"; } >&5
  2776. (eval "$ac_link_default") 2>&5
  2777. ac_status=$?
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2779. test $ac_status = 0; }; then :
  2780. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2781. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2782. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2783. # so that the user can short-circuit this test for compilers unknown to
  2784. # Autoconf.
  2785. for ac_file in $ac_files ''
  2786. do
  2787. test -f "$ac_file" || continue
  2788. case $ac_file in
  2789. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2790. ;;
  2791. [ab].out )
  2792. # We found the default executable, but exeext='' is most
  2793. # certainly right.
  2794. break;;
  2795. *.* )
  2796. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2797. then :; else
  2798. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2799. fi
  2800. # We set ac_cv_exeext here because the later test for it is not
  2801. # safe: cross compilers may not add the suffix if given an `-o'
  2802. # argument, so we may need to know it at that point already.
  2803. # Even if this section looks crufty: it has the advantage of
  2804. # actually working.
  2805. break;;
  2806. * )
  2807. break;;
  2808. esac
  2809. done
  2810. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2811. else
  2812. ac_file=''
  2813. fi
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2815. $as_echo "$ac_file" >&6; }
  2816. if test -z "$ac_file"; then :
  2817. $as_echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2820. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2821. { as_fn_set_status 77
  2822. as_fn_error "C compiler cannot create executables
  2823. See \`config.log' for more details." "$LINENO" 5; }; }
  2824. fi
  2825. ac_exeext=$ac_cv_exeext
  2826. # Check that the compiler produces executables we can run. If not, either
  2827. # the compiler is broken, or we cross compile.
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2829. $as_echo_n "checking whether the C compiler works... " >&6; }
  2830. # If not cross compiling, check that we can run a simple program.
  2831. if test "$cross_compiling" != yes; then
  2832. if { ac_try='./$ac_file'
  2833. { { case "(($ac_try" in
  2834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2835. *) ac_try_echo=$ac_try;;
  2836. esac
  2837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2838. $as_echo "$ac_try_echo"; } >&5
  2839. (eval "$ac_try") 2>&5
  2840. ac_status=$?
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2842. test $ac_status = 0; }; }; then
  2843. cross_compiling=no
  2844. else
  2845. if test "$cross_compiling" = maybe; then
  2846. cross_compiling=yes
  2847. else
  2848. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2850. as_fn_error "cannot run C compiled programs.
  2851. If you meant to cross compile, use \`--host'.
  2852. See \`config.log' for more details." "$LINENO" 5; }
  2853. fi
  2854. fi
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2857. $as_echo "yes" >&6; }
  2858. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2859. ac_clean_files=$ac_clean_files_save
  2860. # Check that the compiler produces executables we can run. If not, either
  2861. # the compiler is broken, or we cross compile.
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2863. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2865. $as_echo "$cross_compiling" >&6; }
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2867. $as_echo_n "checking for suffix of executables... " >&6; }
  2868. if { { ac_try="$ac_link"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_link") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }; then :
  2879. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2880. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2881. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2882. # `rm'.
  2883. for ac_file in conftest.exe conftest conftest.*; do
  2884. test -f "$ac_file" || continue
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2887. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2888. break;;
  2889. * ) break;;
  2890. esac
  2891. done
  2892. else
  2893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2895. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2896. See \`config.log' for more details." "$LINENO" 5; }
  2897. fi
  2898. rm -f conftest$ac_cv_exeext
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2900. $as_echo "$ac_cv_exeext" >&6; }
  2901. rm -f conftest.$ac_ext
  2902. EXEEXT=$ac_cv_exeext
  2903. ac_exeext=$EXEEXT
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2905. $as_echo_n "checking for suffix of object files... " >&6; }
  2906. if test "${ac_cv_objext+set}" = set; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  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. rm -f conftest.o conftest.obj
  2919. if { { ac_try="$ac_compile"
  2920. case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo"; } >&5
  2926. (eval "$ac_compile") 2>&5
  2927. ac_status=$?
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2929. test $ac_status = 0; }; then :
  2930. for ac_file in conftest.o conftest.obj conftest.*; do
  2931. test -f "$ac_file" || continue;
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2934. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2935. break;;
  2936. esac
  2937. done
  2938. else
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2943. as_fn_error "cannot compute suffix of object files: cannot compile
  2944. See \`config.log' for more details." "$LINENO" 5; }
  2945. fi
  2946. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2949. $as_echo "$ac_cv_objext" >&6; }
  2950. OBJEXT=$ac_cv_objext
  2951. ac_objext=$OBJEXT
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2953. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2954. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2958. /* end confdefs.h. */
  2959. int
  2960. main ()
  2961. {
  2962. #ifndef __GNUC__
  2963. choke me
  2964. #endif
  2965. ;
  2966. return 0;
  2967. }
  2968. _ACEOF
  2969. if ac_fn_c_try_compile "$LINENO"; then :
  2970. ac_compiler_gnu=yes
  2971. else
  2972. ac_compiler_gnu=no
  2973. fi
  2974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2975. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2976. fi
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2978. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2979. if test $ac_compiler_gnu = yes; then
  2980. GCC=yes
  2981. else
  2982. GCC=
  2983. fi
  2984. ac_test_CFLAGS=${CFLAGS+set}
  2985. ac_save_CFLAGS=$CFLAGS
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2987. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2988. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. ac_save_c_werror_flag=$ac_c_werror_flag
  2992. ac_c_werror_flag=yes
  2993. ac_cv_prog_cc_g=no
  2994. CFLAGS="-g"
  2995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2996. /* end confdefs.h. */
  2997. int
  2998. main ()
  2999. {
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. if ac_fn_c_try_compile "$LINENO"; then :
  3005. ac_cv_prog_cc_g=yes
  3006. else
  3007. CFLAGS=""
  3008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3009. /* end confdefs.h. */
  3010. int
  3011. main ()
  3012. {
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. if ac_fn_c_try_compile "$LINENO"; then :
  3018. else
  3019. ac_c_werror_flag=$ac_save_c_werror_flag
  3020. CFLAGS="-g"
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. if ac_fn_c_try_compile "$LINENO"; then :
  3031. ac_cv_prog_cc_g=yes
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. ac_c_werror_flag=$ac_save_c_werror_flag
  3039. fi
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3041. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3042. if test "$ac_test_CFLAGS" = set; then
  3043. CFLAGS=$ac_save_CFLAGS
  3044. elif test $ac_cv_prog_cc_g = yes; then
  3045. if test "$GCC" = yes; then
  3046. CFLAGS="-g -O2"
  3047. else
  3048. CFLAGS="-g"
  3049. fi
  3050. else
  3051. if test "$GCC" = yes; then
  3052. CFLAGS="-O2"
  3053. else
  3054. CFLAGS=
  3055. fi
  3056. fi
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3058. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3059. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3060. $as_echo_n "(cached) " >&6
  3061. else
  3062. ac_cv_prog_cc_c89=no
  3063. ac_save_CC=$CC
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. #include <stdarg.h>
  3067. #include <stdio.h>
  3068. #include <sys/types.h>
  3069. #include <sys/stat.h>
  3070. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3071. struct buf { int x; };
  3072. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3073. static char *e (p, i)
  3074. char **p;
  3075. int i;
  3076. {
  3077. return p[i];
  3078. }
  3079. static char *f (char * (*g) (char **, int), char **p, ...)
  3080. {
  3081. char *s;
  3082. va_list v;
  3083. va_start (v,p);
  3084. s = g (p, va_arg (v,int));
  3085. va_end (v);
  3086. return s;
  3087. }
  3088. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3089. function prototypes and stuff, but not '\xHH' hex character constants.
  3090. These don't provoke an error unfortunately, instead are silently treated
  3091. as 'x'. The following induces an error, until -std is added to get
  3092. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3093. array size at least. It's necessary to write '\x00'==0 to get something
  3094. that's true only with -std. */
  3095. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3096. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3097. inside strings and character constants. */
  3098. #define FOO(x) 'x'
  3099. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3100. int test (int i, double x);
  3101. struct s1 {int (*f) (int a);};
  3102. struct s2 {int (*f) (double a);};
  3103. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3104. int argc;
  3105. char **argv;
  3106. int
  3107. main ()
  3108. {
  3109. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3115. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3116. do
  3117. CC="$ac_save_CC $ac_arg"
  3118. if ac_fn_c_try_compile "$LINENO"; then :
  3119. ac_cv_prog_cc_c89=$ac_arg
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext
  3122. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3123. done
  3124. rm -f conftest.$ac_ext
  3125. CC=$ac_save_CC
  3126. fi
  3127. # AC_CACHE_VAL
  3128. case "x$ac_cv_prog_cc_c89" in
  3129. x)
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3131. $as_echo "none needed" >&6; } ;;
  3132. xno)
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3134. $as_echo "unsupported" >&6; } ;;
  3135. *)
  3136. CC="$CC $ac_cv_prog_cc_c89"
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3138. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3139. esac
  3140. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3141. fi
  3142. ac_ext=c
  3143. ac_cpp='$CPP $CPPFLAGS'
  3144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3147. ac_ext=cpp
  3148. ac_cpp='$CXXCPP $CPPFLAGS'
  3149. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3150. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3151. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3152. if test -z "$CXX"; then
  3153. if test -n "$CCC"; then
  3154. CXX=$CCC
  3155. else
  3156. if test -n "$ac_tool_prefix"; then
  3157. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3158. do
  3159. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3160. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3162. $as_echo_n "checking for $ac_word... " >&6; }
  3163. if test "${ac_cv_prog_CXX+set}" = set; then :
  3164. $as_echo_n "(cached) " >&6
  3165. else
  3166. if test -n "$CXX"; then
  3167. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3168. else
  3169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3170. for as_dir in $PATH
  3171. do
  3172. IFS=$as_save_IFS
  3173. test -z "$as_dir" && as_dir=.
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3176. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3178. break 2
  3179. fi
  3180. done
  3181. done
  3182. IFS=$as_save_IFS
  3183. fi
  3184. fi
  3185. CXX=$ac_cv_prog_CXX
  3186. if test -n "$CXX"; then
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3188. $as_echo "$CXX" >&6; }
  3189. else
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. fi
  3193. test -n "$CXX" && break
  3194. done
  3195. fi
  3196. if test -z "$CXX"; then
  3197. ac_ct_CXX=$CXX
  3198. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3199. do
  3200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3201. set dummy $ac_prog; ac_word=$2
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3203. $as_echo_n "checking for $ac_word... " >&6; }
  3204. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. if test -n "$ac_ct_CXX"; then
  3208. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3209. else
  3210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3211. for as_dir in $PATH
  3212. do
  3213. IFS=$as_save_IFS
  3214. test -z "$as_dir" && as_dir=.
  3215. for ac_exec_ext in '' $ac_executable_extensions; do
  3216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3217. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3219. break 2
  3220. fi
  3221. done
  3222. done
  3223. IFS=$as_save_IFS
  3224. fi
  3225. fi
  3226. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3227. if test -n "$ac_ct_CXX"; then
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3229. $as_echo "$ac_ct_CXX" >&6; }
  3230. else
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3232. $as_echo "no" >&6; }
  3233. fi
  3234. test -n "$ac_ct_CXX" && break
  3235. done
  3236. if test "x$ac_ct_CXX" = x; then
  3237. CXX="g++"
  3238. else
  3239. case $cross_compiling:$ac_tool_warned in
  3240. yes:)
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3242. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3243. ac_tool_warned=yes ;;
  3244. esac
  3245. CXX=$ac_ct_CXX
  3246. fi
  3247. fi
  3248. fi
  3249. fi
  3250. # Provide some information about the compiler.
  3251. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3252. set X $ac_compile
  3253. ac_compiler=$2
  3254. for ac_option in --version -v -V -qversion; do
  3255. { { ac_try="$ac_compiler $ac_option >&5"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3261. $as_echo "$ac_try_echo"; } >&5
  3262. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3263. ac_status=$?
  3264. if test -s conftest.err; then
  3265. sed '10a\
  3266. ... rest of stderr output deleted ...
  3267. 10q' conftest.err >conftest.er1
  3268. cat conftest.er1 >&5
  3269. rm -f conftest.er1 conftest.err
  3270. fi
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3272. test $ac_status = 0; }
  3273. done
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3275. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3276. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3280. /* end confdefs.h. */
  3281. int
  3282. main ()
  3283. {
  3284. #ifndef __GNUC__
  3285. choke me
  3286. #endif
  3287. ;
  3288. return 0;
  3289. }
  3290. _ACEOF
  3291. if ac_fn_cxx_try_compile "$LINENO"; then :
  3292. ac_compiler_gnu=yes
  3293. else
  3294. ac_compiler_gnu=no
  3295. fi
  3296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3297. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3298. fi
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3300. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3301. if test $ac_compiler_gnu = yes; then
  3302. GXX=yes
  3303. else
  3304. GXX=
  3305. fi
  3306. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3307. ac_save_CXXFLAGS=$CXXFLAGS
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3309. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3310. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3314. ac_cxx_werror_flag=yes
  3315. ac_cv_prog_cxx_g=no
  3316. CXXFLAGS="-g"
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. int
  3320. main ()
  3321. {
  3322. ;
  3323. return 0;
  3324. }
  3325. _ACEOF
  3326. if ac_fn_cxx_try_compile "$LINENO"; then :
  3327. ac_cv_prog_cxx_g=yes
  3328. else
  3329. CXXFLAGS=""
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. int
  3333. main ()
  3334. {
  3335. ;
  3336. return 0;
  3337. }
  3338. _ACEOF
  3339. if ac_fn_cxx_try_compile "$LINENO"; then :
  3340. else
  3341. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3342. CXXFLAGS="-g"
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. int
  3346. main ()
  3347. {
  3348. ;
  3349. return 0;
  3350. }
  3351. _ACEOF
  3352. if ac_fn_cxx_try_compile "$LINENO"; then :
  3353. ac_cv_prog_cxx_g=yes
  3354. fi
  3355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. fi
  3357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. fi
  3359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3360. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3363. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3364. if test "$ac_test_CXXFLAGS" = set; then
  3365. CXXFLAGS=$ac_save_CXXFLAGS
  3366. elif test $ac_cv_prog_cxx_g = yes; then
  3367. if test "$GXX" = yes; then
  3368. CXXFLAGS="-g -O2"
  3369. else
  3370. CXXFLAGS="-g"
  3371. fi
  3372. else
  3373. if test "$GXX" = yes; then
  3374. CXXFLAGS="-O2"
  3375. else
  3376. CXXFLAGS=
  3377. fi
  3378. fi
  3379. ac_ext=c
  3380. ac_cpp='$CPP $CPPFLAGS'
  3381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3384. # Make sure we can run config.sub.
  3385. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3386. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3388. $as_echo_n "checking build system type... " >&6; }
  3389. if test "${ac_cv_build+set}" = set; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. ac_build_alias=$build_alias
  3393. test "x$ac_build_alias" = x &&
  3394. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3395. test "x$ac_build_alias" = x &&
  3396. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3397. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3398. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3401. $as_echo "$ac_cv_build" >&6; }
  3402. case $ac_cv_build in
  3403. *-*-*) ;;
  3404. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3405. esac
  3406. build=$ac_cv_build
  3407. ac_save_IFS=$IFS; IFS='-'
  3408. set x $ac_cv_build
  3409. shift
  3410. build_cpu=$1
  3411. build_vendor=$2
  3412. shift; shift
  3413. # Remember, the first character of IFS is used to create $*,
  3414. # except with old shells:
  3415. build_os=$*
  3416. IFS=$ac_save_IFS
  3417. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3419. $as_echo_n "checking host system type... " >&6; }
  3420. if test "${ac_cv_host+set}" = set; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. if test "x$host_alias" = x; then
  3424. ac_cv_host=$ac_cv_build
  3425. else
  3426. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3427. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3431. $as_echo "$ac_cv_host" >&6; }
  3432. case $ac_cv_host in
  3433. *-*-*) ;;
  3434. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3435. esac
  3436. host=$ac_cv_host
  3437. ac_save_IFS=$IFS; IFS='-'
  3438. set x $ac_cv_host
  3439. shift
  3440. host_cpu=$1
  3441. host_vendor=$2
  3442. shift; shift
  3443. # Remember, the first character of IFS is used to create $*,
  3444. # except with old shells:
  3445. host_os=$*
  3446. IFS=$ac_save_IFS
  3447. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3448. enable_win32_dll=yes
  3449. case $host in
  3450. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3451. if test -n "$ac_tool_prefix"; then
  3452. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3453. set dummy ${ac_tool_prefix}as; ac_word=$2
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3455. $as_echo_n "checking for $ac_word... " >&6; }
  3456. if test "${ac_cv_prog_AS+set}" = set; then :
  3457. $as_echo_n "(cached) " >&6
  3458. else
  3459. if test -n "$AS"; then
  3460. ac_cv_prog_AS="$AS" # Let the user override the test.
  3461. else
  3462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3463. for as_dir in $PATH
  3464. do
  3465. IFS=$as_save_IFS
  3466. test -z "$as_dir" && as_dir=.
  3467. for ac_exec_ext in '' $ac_executable_extensions; do
  3468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3469. ac_cv_prog_AS="${ac_tool_prefix}as"
  3470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3471. break 2
  3472. fi
  3473. done
  3474. done
  3475. IFS=$as_save_IFS
  3476. fi
  3477. fi
  3478. AS=$ac_cv_prog_AS
  3479. if test -n "$AS"; then
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3481. $as_echo "$AS" >&6; }
  3482. else
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3484. $as_echo "no" >&6; }
  3485. fi
  3486. fi
  3487. if test -z "$ac_cv_prog_AS"; then
  3488. ac_ct_AS=$AS
  3489. # Extract the first word of "as", so it can be a program name with args.
  3490. set dummy as; ac_word=$2
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. $as_echo_n "checking for $ac_word... " >&6; }
  3493. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. if test -n "$ac_ct_AS"; then
  3497. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3498. else
  3499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3500. for as_dir in $PATH
  3501. do
  3502. IFS=$as_save_IFS
  3503. test -z "$as_dir" && as_dir=.
  3504. for ac_exec_ext in '' $ac_executable_extensions; do
  3505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3506. ac_cv_prog_ac_ct_AS="as"
  3507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3508. break 2
  3509. fi
  3510. done
  3511. done
  3512. IFS=$as_save_IFS
  3513. fi
  3514. fi
  3515. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3516. if test -n "$ac_ct_AS"; then
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3518. $as_echo "$ac_ct_AS" >&6; }
  3519. else
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3521. $as_echo "no" >&6; }
  3522. fi
  3523. if test "x$ac_ct_AS" = x; then
  3524. AS="false"
  3525. else
  3526. case $cross_compiling:$ac_tool_warned in
  3527. yes:)
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3530. ac_tool_warned=yes ;;
  3531. esac
  3532. AS=$ac_ct_AS
  3533. fi
  3534. else
  3535. AS="$ac_cv_prog_AS"
  3536. fi
  3537. if test -n "$ac_tool_prefix"; then
  3538. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3539. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3541. $as_echo_n "checking for $ac_word... " >&6; }
  3542. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if test -n "$DLLTOOL"; then
  3546. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3547. else
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH
  3550. do
  3551. IFS=$as_save_IFS
  3552. test -z "$as_dir" && as_dir=.
  3553. for ac_exec_ext in '' $ac_executable_extensions; do
  3554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3555. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3557. break 2
  3558. fi
  3559. done
  3560. done
  3561. IFS=$as_save_IFS
  3562. fi
  3563. fi
  3564. DLLTOOL=$ac_cv_prog_DLLTOOL
  3565. if test -n "$DLLTOOL"; then
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3567. $as_echo "$DLLTOOL" >&6; }
  3568. else
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3570. $as_echo "no" >&6; }
  3571. fi
  3572. fi
  3573. if test -z "$ac_cv_prog_DLLTOOL"; then
  3574. ac_ct_DLLTOOL=$DLLTOOL
  3575. # Extract the first word of "dlltool", so it can be a program name with args.
  3576. set dummy dlltool; ac_word=$2
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. $as_echo_n "checking for $ac_word... " >&6; }
  3579. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. if test -n "$ac_ct_DLLTOOL"; then
  3583. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3584. else
  3585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3592. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. fi
  3600. fi
  3601. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3602. if test -n "$ac_ct_DLLTOOL"; then
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3604. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3605. else
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3607. $as_echo "no" >&6; }
  3608. fi
  3609. if test "x$ac_ct_DLLTOOL" = x; then
  3610. DLLTOOL="false"
  3611. else
  3612. case $cross_compiling:$ac_tool_warned in
  3613. yes:)
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3616. ac_tool_warned=yes ;;
  3617. esac
  3618. DLLTOOL=$ac_ct_DLLTOOL
  3619. fi
  3620. else
  3621. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3622. fi
  3623. if test -n "$ac_tool_prefix"; then
  3624. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3625. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3627. $as_echo_n "checking for $ac_word... " >&6; }
  3628. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if test -n "$OBJDUMP"; then
  3632. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3633. else
  3634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3635. for as_dir in $PATH
  3636. do
  3637. IFS=$as_save_IFS
  3638. test -z "$as_dir" && as_dir=.
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3641. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3643. break 2
  3644. fi
  3645. done
  3646. done
  3647. IFS=$as_save_IFS
  3648. fi
  3649. fi
  3650. OBJDUMP=$ac_cv_prog_OBJDUMP
  3651. if test -n "$OBJDUMP"; then
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3653. $as_echo "$OBJDUMP" >&6; }
  3654. else
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3656. $as_echo "no" >&6; }
  3657. fi
  3658. fi
  3659. if test -z "$ac_cv_prog_OBJDUMP"; then
  3660. ac_ct_OBJDUMP=$OBJDUMP
  3661. # Extract the first word of "objdump", so it can be a program name with args.
  3662. set dummy objdump; ac_word=$2
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3664. $as_echo_n "checking for $ac_word... " >&6; }
  3665. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. if test -n "$ac_ct_OBJDUMP"; then
  3669. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3670. else
  3671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3672. for as_dir in $PATH
  3673. do
  3674. IFS=$as_save_IFS
  3675. test -z "$as_dir" && as_dir=.
  3676. for ac_exec_ext in '' $ac_executable_extensions; do
  3677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3678. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3680. break 2
  3681. fi
  3682. done
  3683. done
  3684. IFS=$as_save_IFS
  3685. fi
  3686. fi
  3687. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3688. if test -n "$ac_ct_OBJDUMP"; then
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3690. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3691. else
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3693. $as_echo "no" >&6; }
  3694. fi
  3695. if test "x$ac_ct_OBJDUMP" = x; then
  3696. OBJDUMP="false"
  3697. else
  3698. case $cross_compiling:$ac_tool_warned in
  3699. yes:)
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3702. ac_tool_warned=yes ;;
  3703. esac
  3704. OBJDUMP=$ac_ct_OBJDUMP
  3705. fi
  3706. else
  3707. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3708. fi
  3709. ;;
  3710. esac
  3711. test -z "$AS" && AS=as
  3712. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3713. test -z "$OBJDUMP" && OBJDUMP=objdump
  3714. case `pwd` in
  3715. *\ * | *\ *)
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3717. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3718. esac
  3719. macro_version='2.2.6'
  3720. macro_revision='1.3012'
  3721. ltmain="$ac_aux_dir/ltmain.sh"
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3723. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3724. if test "${ac_cv_path_SED+set}" = set; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3728. for ac_i in 1 2 3 4 5 6 7; do
  3729. ac_script="$ac_script$as_nl$ac_script"
  3730. done
  3731. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3732. { ac_script=; unset ac_script;}
  3733. if test -z "$SED"; then
  3734. ac_path_SED_found=false
  3735. # Loop through the user's path and test for each of PROGNAME-LIST
  3736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3737. for as_dir in $PATH
  3738. do
  3739. IFS=$as_save_IFS
  3740. test -z "$as_dir" && as_dir=.
  3741. for ac_prog in sed gsed; do
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3744. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3745. # Check for GNU ac_path_SED and select it if it is found.
  3746. # Check for GNU $ac_path_SED
  3747. case `"$ac_path_SED" --version 2>&1` in
  3748. *GNU*)
  3749. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3750. *)
  3751. ac_count=0
  3752. $as_echo_n 0123456789 >"conftest.in"
  3753. while :
  3754. do
  3755. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3756. mv "conftest.tmp" "conftest.in"
  3757. cp "conftest.in" "conftest.nl"
  3758. $as_echo '' >> "conftest.nl"
  3759. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3760. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3761. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3762. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3763. # Best one so far, save it but keep looking for a better one
  3764. ac_cv_path_SED="$ac_path_SED"
  3765. ac_path_SED_max=$ac_count
  3766. fi
  3767. # 10*(2^10) chars as input seems more than enough
  3768. test $ac_count -gt 10 && break
  3769. done
  3770. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3771. esac
  3772. $ac_path_SED_found && break 3
  3773. done
  3774. done
  3775. done
  3776. IFS=$as_save_IFS
  3777. if test -z "$ac_cv_path_SED"; then
  3778. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3779. fi
  3780. else
  3781. ac_cv_path_SED=$SED
  3782. fi
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3785. $as_echo "$ac_cv_path_SED" >&6; }
  3786. SED="$ac_cv_path_SED"
  3787. rm -f conftest.sed
  3788. test -z "$SED" && SED=sed
  3789. Xsed="$SED -e 1s/^X//"
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3791. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3792. if test "${ac_cv_path_GREP+set}" = set; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$GREP"; then
  3796. ac_path_GREP_found=false
  3797. # Loop through the user's path and test for each of PROGNAME-LIST
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3800. do
  3801. IFS=$as_save_IFS
  3802. test -z "$as_dir" && as_dir=.
  3803. for ac_prog in grep ggrep; do
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3806. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3807. # Check for GNU ac_path_GREP and select it if it is found.
  3808. # Check for GNU $ac_path_GREP
  3809. case `"$ac_path_GREP" --version 2>&1` in
  3810. *GNU*)
  3811. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3812. *)
  3813. ac_count=0
  3814. $as_echo_n 0123456789 >"conftest.in"
  3815. while :
  3816. do
  3817. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3818. mv "conftest.tmp" "conftest.in"
  3819. cp "conftest.in" "conftest.nl"
  3820. $as_echo 'GREP' >> "conftest.nl"
  3821. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3822. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3823. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3824. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3825. # Best one so far, save it but keep looking for a better one
  3826. ac_cv_path_GREP="$ac_path_GREP"
  3827. ac_path_GREP_max=$ac_count
  3828. fi
  3829. # 10*(2^10) chars as input seems more than enough
  3830. test $ac_count -gt 10 && break
  3831. done
  3832. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3833. esac
  3834. $ac_path_GREP_found && break 3
  3835. done
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. if test -z "$ac_cv_path_GREP"; then
  3840. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3841. fi
  3842. else
  3843. ac_cv_path_GREP=$GREP
  3844. fi
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3847. $as_echo "$ac_cv_path_GREP" >&6; }
  3848. GREP="$ac_cv_path_GREP"
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3850. $as_echo_n "checking for egrep... " >&6; }
  3851. if test "${ac_cv_path_EGREP+set}" = set; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3855. then ac_cv_path_EGREP="$GREP -E"
  3856. else
  3857. if test -z "$EGREP"; then
  3858. ac_path_EGREP_found=false
  3859. # Loop through the user's path and test for each of PROGNAME-LIST
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_prog in egrep; do
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3868. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3869. # Check for GNU ac_path_EGREP and select it if it is found.
  3870. # Check for GNU $ac_path_EGREP
  3871. case `"$ac_path_EGREP" --version 2>&1` in
  3872. *GNU*)
  3873. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3874. *)
  3875. ac_count=0
  3876. $as_echo_n 0123456789 >"conftest.in"
  3877. while :
  3878. do
  3879. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3880. mv "conftest.tmp" "conftest.in"
  3881. cp "conftest.in" "conftest.nl"
  3882. $as_echo 'EGREP' >> "conftest.nl"
  3883. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3884. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3885. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3886. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3887. # Best one so far, save it but keep looking for a better one
  3888. ac_cv_path_EGREP="$ac_path_EGREP"
  3889. ac_path_EGREP_max=$ac_count
  3890. fi
  3891. # 10*(2^10) chars as input seems more than enough
  3892. test $ac_count -gt 10 && break
  3893. done
  3894. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3895. esac
  3896. $ac_path_EGREP_found && break 3
  3897. done
  3898. done
  3899. done
  3900. IFS=$as_save_IFS
  3901. if test -z "$ac_cv_path_EGREP"; then
  3902. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3903. fi
  3904. else
  3905. ac_cv_path_EGREP=$EGREP
  3906. fi
  3907. fi
  3908. fi
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3910. $as_echo "$ac_cv_path_EGREP" >&6; }
  3911. EGREP="$ac_cv_path_EGREP"
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3913. $as_echo_n "checking for fgrep... " >&6; }
  3914. if test "${ac_cv_path_FGREP+set}" = set; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3918. then ac_cv_path_FGREP="$GREP -F"
  3919. else
  3920. if test -z "$FGREP"; then
  3921. ac_path_FGREP_found=false
  3922. # Loop through the user's path and test for each of PROGNAME-LIST
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_prog in fgrep; do
  3929. for ac_exec_ext in '' $ac_executable_extensions; do
  3930. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3931. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3932. # Check for GNU ac_path_FGREP and select it if it is found.
  3933. # Check for GNU $ac_path_FGREP
  3934. case `"$ac_path_FGREP" --version 2>&1` in
  3935. *GNU*)
  3936. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3937. *)
  3938. ac_count=0
  3939. $as_echo_n 0123456789 >"conftest.in"
  3940. while :
  3941. do
  3942. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3943. mv "conftest.tmp" "conftest.in"
  3944. cp "conftest.in" "conftest.nl"
  3945. $as_echo 'FGREP' >> "conftest.nl"
  3946. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3947. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3948. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3949. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3950. # Best one so far, save it but keep looking for a better one
  3951. ac_cv_path_FGREP="$ac_path_FGREP"
  3952. ac_path_FGREP_max=$ac_count
  3953. fi
  3954. # 10*(2^10) chars as input seems more than enough
  3955. test $ac_count -gt 10 && break
  3956. done
  3957. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3958. esac
  3959. $ac_path_FGREP_found && break 3
  3960. done
  3961. done
  3962. done
  3963. IFS=$as_save_IFS
  3964. if test -z "$ac_cv_path_FGREP"; then
  3965. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3966. fi
  3967. else
  3968. ac_cv_path_FGREP=$FGREP
  3969. fi
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3973. $as_echo "$ac_cv_path_FGREP" >&6; }
  3974. FGREP="$ac_cv_path_FGREP"
  3975. test -z "$GREP" && GREP=grep
  3976. # Check whether --with-gnu-ld was given.
  3977. if test "${with_gnu_ld+set}" = set; then :
  3978. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3979. else
  3980. with_gnu_ld=no
  3981. fi
  3982. ac_prog=ld
  3983. if test "$GCC" = yes; then
  3984. # Check if gcc -print-prog-name=ld gives a path.
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3986. $as_echo_n "checking for ld used by $CC... " >&6; }
  3987. case $host in
  3988. *-*-mingw*)
  3989. # gcc leaves a trailing carriage return which upsets mingw
  3990. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3991. *)
  3992. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3993. esac
  3994. case $ac_prog in
  3995. # Accept absolute paths.
  3996. [\\/]* | ?:[\\/]*)
  3997. re_direlt='/[^/][^/]*/\.\./'
  3998. # Canonicalize the pathname of ld
  3999. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4000. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4001. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4002. done
  4003. test -z "$LD" && LD="$ac_prog"
  4004. ;;
  4005. "")
  4006. # If it fails, then pretend we aren't using GCC.
  4007. ac_prog=ld
  4008. ;;
  4009. *)
  4010. # If it is relative, then search for the first ld in PATH.
  4011. with_gnu_ld=unknown
  4012. ;;
  4013. esac
  4014. elif test "$with_gnu_ld" = yes; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4016. $as_echo_n "checking for GNU ld... " >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4019. $as_echo_n "checking for non-GNU ld... " >&6; }
  4020. fi
  4021. if test "${lt_cv_path_LD+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -z "$LD"; then
  4025. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4026. for ac_dir in $PATH; do
  4027. IFS="$lt_save_ifs"
  4028. test -z "$ac_dir" && ac_dir=.
  4029. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4030. lt_cv_path_LD="$ac_dir/$ac_prog"
  4031. # Check to see if the program is GNU ld. I'd rather use --version,
  4032. # but apparently some variants of GNU ld only accept -v.
  4033. # Break only if it was the GNU/non-GNU ld that we prefer.
  4034. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4035. *GNU* | *'with BFD'*)
  4036. test "$with_gnu_ld" != no && break
  4037. ;;
  4038. *)
  4039. test "$with_gnu_ld" != yes && break
  4040. ;;
  4041. esac
  4042. fi
  4043. done
  4044. IFS="$lt_save_ifs"
  4045. else
  4046. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4047. fi
  4048. fi
  4049. LD="$lt_cv_path_LD"
  4050. if test -n "$LD"; then
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4052. $as_echo "$LD" >&6; }
  4053. else
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4055. $as_echo "no" >&6; }
  4056. fi
  4057. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4059. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4060. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4064. case `$LD -v 2>&1 </dev/null` in
  4065. *GNU* | *'with BFD'*)
  4066. lt_cv_prog_gnu_ld=yes
  4067. ;;
  4068. *)
  4069. lt_cv_prog_gnu_ld=no
  4070. ;;
  4071. esac
  4072. fi
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4074. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4075. with_gnu_ld=$lt_cv_prog_gnu_ld
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4077. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4078. if test "${lt_cv_path_NM+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$NM"; then
  4082. # Let the user override the test.
  4083. lt_cv_path_NM="$NM"
  4084. else
  4085. lt_nm_to_check="${ac_tool_prefix}nm"
  4086. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4087. lt_nm_to_check="$lt_nm_to_check nm"
  4088. fi
  4089. for lt_tmp_nm in $lt_nm_to_check; do
  4090. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4091. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4092. IFS="$lt_save_ifs"
  4093. test -z "$ac_dir" && ac_dir=.
  4094. tmp_nm="$ac_dir/$lt_tmp_nm"
  4095. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4096. # Check to see if the nm accepts a BSD-compat flag.
  4097. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4098. # nm: unknown option "B" ignored
  4099. # Tru64's nm complains that /dev/null is an invalid object file
  4100. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4101. */dev/null* | *'Invalid file or object type'*)
  4102. lt_cv_path_NM="$tmp_nm -B"
  4103. break
  4104. ;;
  4105. *)
  4106. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4107. */dev/null*)
  4108. lt_cv_path_NM="$tmp_nm -p"
  4109. break
  4110. ;;
  4111. *)
  4112. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4113. continue # so that we can try to find one that supports BSD flags
  4114. ;;
  4115. esac
  4116. ;;
  4117. esac
  4118. fi
  4119. done
  4120. IFS="$lt_save_ifs"
  4121. done
  4122. : ${lt_cv_path_NM=no}
  4123. fi
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4126. $as_echo "$lt_cv_path_NM" >&6; }
  4127. if test "$lt_cv_path_NM" != "no"; then
  4128. NM="$lt_cv_path_NM"
  4129. else
  4130. # Didn't find any BSD compatible name lister, look for dumpbin.
  4131. if test -n "$ac_tool_prefix"; then
  4132. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4133. do
  4134. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4135. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4137. $as_echo_n "checking for $ac_word... " >&6; }
  4138. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4139. $as_echo_n "(cached) " >&6
  4140. else
  4141. if test -n "$DUMPBIN"; then
  4142. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4143. else
  4144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4145. for as_dir in $PATH
  4146. do
  4147. IFS=$as_save_IFS
  4148. test -z "$as_dir" && as_dir=.
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4151. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4153. break 2
  4154. fi
  4155. done
  4156. done
  4157. IFS=$as_save_IFS
  4158. fi
  4159. fi
  4160. DUMPBIN=$ac_cv_prog_DUMPBIN
  4161. if test -n "$DUMPBIN"; then
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4163. $as_echo "$DUMPBIN" >&6; }
  4164. else
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4166. $as_echo "no" >&6; }
  4167. fi
  4168. test -n "$DUMPBIN" && break
  4169. done
  4170. fi
  4171. if test -z "$DUMPBIN"; then
  4172. ac_ct_DUMPBIN=$DUMPBIN
  4173. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4174. do
  4175. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4176. set dummy $ac_prog; ac_word=$2
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4178. $as_echo_n "checking for $ac_word... " >&6; }
  4179. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -n "$ac_ct_DUMPBIN"; then
  4183. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4184. else
  4185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4186. for as_dir in $PATH
  4187. do
  4188. IFS=$as_save_IFS
  4189. test -z "$as_dir" && as_dir=.
  4190. for ac_exec_ext in '' $ac_executable_extensions; do
  4191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4192. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4194. break 2
  4195. fi
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. fi
  4200. fi
  4201. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4202. if test -n "$ac_ct_DUMPBIN"; then
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4204. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4207. $as_echo "no" >&6; }
  4208. fi
  4209. test -n "$ac_ct_DUMPBIN" && break
  4210. done
  4211. if test "x$ac_ct_DUMPBIN" = x; then
  4212. DUMPBIN=":"
  4213. else
  4214. case $cross_compiling:$ac_tool_warned in
  4215. yes:)
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4218. ac_tool_warned=yes ;;
  4219. esac
  4220. DUMPBIN=$ac_ct_DUMPBIN
  4221. fi
  4222. fi
  4223. if test "$DUMPBIN" != ":"; then
  4224. NM="$DUMPBIN"
  4225. fi
  4226. fi
  4227. test -z "$NM" && NM=nm
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4229. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4230. if test "${lt_cv_nm_interface+set}" = set; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. lt_cv_nm_interface="BSD nm"
  4234. echo "int some_variable = 0;" > conftest.$ac_ext
  4235. (eval echo "\"\$as_me:4685: $ac_compile\"" >&5)
  4236. (eval "$ac_compile" 2>conftest.err)
  4237. cat conftest.err >&5
  4238. (eval echo "\"\$as_me:4688: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4239. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4240. cat conftest.err >&5
  4241. (eval echo "\"\$as_me:4691: output\"" >&5)
  4242. cat conftest.out >&5
  4243. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4244. lt_cv_nm_interface="MS dumpbin"
  4245. fi
  4246. rm -f conftest*
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4249. $as_echo "$lt_cv_nm_interface" >&6; }
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4251. $as_echo_n "checking whether ln -s works... " >&6; }
  4252. LN_S=$as_ln_s
  4253. if test "$LN_S" = "ln -s"; then
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4255. $as_echo "yes" >&6; }
  4256. else
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4258. $as_echo "no, using $LN_S" >&6; }
  4259. fi
  4260. # find the maximum length of command line arguments
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4262. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4263. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. i=0
  4267. teststring="ABCD"
  4268. case $build_os in
  4269. msdosdjgpp*)
  4270. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4271. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4272. # during glob expansion). Even if it were fixed, the result of this
  4273. # check would be larger than it should be.
  4274. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4275. ;;
  4276. gnu*)
  4277. # Under GNU Hurd, this test is not required because there is
  4278. # no limit to the length of command line arguments.
  4279. # Libtool will interpret -1 as no limit whatsoever
  4280. lt_cv_sys_max_cmd_len=-1;
  4281. ;;
  4282. cygwin* | mingw* | cegcc*)
  4283. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4284. # about 5 minutes as the teststring grows exponentially.
  4285. # Worse, since 9x/ME are not pre-emptively multitasking,
  4286. # you end up with a "frozen" computer, even though with patience
  4287. # the test eventually succeeds (with a max line length of 256k).
  4288. # Instead, let's just punt: use the minimum linelength reported by
  4289. # all of the supported platforms: 8192 (on NT/2K/XP).
  4290. lt_cv_sys_max_cmd_len=8192;
  4291. ;;
  4292. amigaos*)
  4293. # On AmigaOS with pdksh, this test takes hours, literally.
  4294. # So we just punt and use a minimum line length of 8192.
  4295. lt_cv_sys_max_cmd_len=8192;
  4296. ;;
  4297. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4298. # This has been around since 386BSD, at least. Likely further.
  4299. if test -x /sbin/sysctl; then
  4300. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4301. elif test -x /usr/sbin/sysctl; then
  4302. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4303. else
  4304. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4305. fi
  4306. # And add a safety zone
  4307. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4308. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4309. ;;
  4310. interix*)
  4311. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4312. lt_cv_sys_max_cmd_len=196608
  4313. ;;
  4314. osf*)
  4315. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4316. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4317. # nice to cause kernel panics so lets avoid the loop below.
  4318. # First set a reasonable default.
  4319. lt_cv_sys_max_cmd_len=16384
  4320. #
  4321. if test -x /sbin/sysconfig; then
  4322. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4323. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4324. esac
  4325. fi
  4326. ;;
  4327. sco3.2v5*)
  4328. lt_cv_sys_max_cmd_len=102400
  4329. ;;
  4330. sysv5* | sco5v6* | sysv4.2uw2*)
  4331. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4332. if test -n "$kargmax"; then
  4333. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4334. else
  4335. lt_cv_sys_max_cmd_len=32768
  4336. fi
  4337. ;;
  4338. *)
  4339. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4340. if test -n "$lt_cv_sys_max_cmd_len"; then
  4341. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4342. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4343. else
  4344. # Make teststring a little bigger before we do anything with it.
  4345. # a 1K string should be a reasonable start.
  4346. for i in 1 2 3 4 5 6 7 8 ; do
  4347. teststring=$teststring$teststring
  4348. done
  4349. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4350. # If test is not a shell built-in, we'll probably end up computing a
  4351. # maximum length that is only half of the actual maximum length, but
  4352. # we can't tell.
  4353. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4354. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4355. test $i != 17 # 1/2 MB should be enough
  4356. do
  4357. i=`expr $i + 1`
  4358. teststring=$teststring$teststring
  4359. done
  4360. # Only check the string length outside the loop.
  4361. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4362. teststring=
  4363. # Add a significant safety factor because C++ compilers can tack on
  4364. # massive amounts of additional arguments before passing them to the
  4365. # linker. It appears as though 1/2 is a usable value.
  4366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4367. fi
  4368. ;;
  4369. esac
  4370. fi
  4371. if test -n $lt_cv_sys_max_cmd_len ; then
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4373. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4374. else
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4376. $as_echo "none" >&6; }
  4377. fi
  4378. max_cmd_len=$lt_cv_sys_max_cmd_len
  4379. : ${CP="cp -f"}
  4380. : ${MV="mv -f"}
  4381. : ${RM="rm -f"}
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4383. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4384. # Try some XSI features
  4385. xsi_shell=no
  4386. ( _lt_dummy="a/b/c"
  4387. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4388. = c,a/b,, \
  4389. && eval 'test $(( 1 + 1 )) -eq 2 \
  4390. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4391. && xsi_shell=yes
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4393. $as_echo "$xsi_shell" >&6; }
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4395. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4396. lt_shell_append=no
  4397. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4398. >/dev/null 2>&1 \
  4399. && lt_shell_append=yes
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4401. $as_echo "$lt_shell_append" >&6; }
  4402. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4403. lt_unset=unset
  4404. else
  4405. lt_unset=false
  4406. fi
  4407. # test EBCDIC or ASCII
  4408. case `echo X|tr X '\101'` in
  4409. A) # ASCII based system
  4410. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4411. lt_SP2NL='tr \040 \012'
  4412. lt_NL2SP='tr \015\012 \040\040'
  4413. ;;
  4414. *) # EBCDIC based system
  4415. lt_SP2NL='tr \100 \n'
  4416. lt_NL2SP='tr \r\n \100\100'
  4417. ;;
  4418. esac
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4420. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4421. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4422. $as_echo_n "(cached) " >&6
  4423. else
  4424. lt_cv_ld_reload_flag='-r'
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4427. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4428. reload_flag=$lt_cv_ld_reload_flag
  4429. case $reload_flag in
  4430. "" | " "*) ;;
  4431. *) reload_flag=" $reload_flag" ;;
  4432. esac
  4433. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4434. case $host_os in
  4435. darwin*)
  4436. if test "$GCC" = yes; then
  4437. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4438. else
  4439. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4440. fi
  4441. ;;
  4442. esac
  4443. if test -n "$ac_tool_prefix"; then
  4444. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4445. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4447. $as_echo_n "checking for $ac_word... " >&6; }
  4448. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. if test -n "$OBJDUMP"; then
  4452. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4453. else
  4454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. for as_dir in $PATH
  4456. do
  4457. IFS=$as_save_IFS
  4458. test -z "$as_dir" && as_dir=.
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4461. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi
  4469. fi
  4470. OBJDUMP=$ac_cv_prog_OBJDUMP
  4471. if test -n "$OBJDUMP"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4473. $as_echo "$OBJDUMP" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. fi
  4479. if test -z "$ac_cv_prog_OBJDUMP"; then
  4480. ac_ct_OBJDUMP=$OBJDUMP
  4481. # Extract the first word of "objdump", so it can be a program name with args.
  4482. set dummy objdump; ac_word=$2
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4484. $as_echo_n "checking for $ac_word... " >&6; }
  4485. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. if test -n "$ac_ct_OBJDUMP"; then
  4489. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4490. else
  4491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4492. for as_dir in $PATH
  4493. do
  4494. IFS=$as_save_IFS
  4495. test -z "$as_dir" && as_dir=.
  4496. for ac_exec_ext in '' $ac_executable_extensions; do
  4497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4498. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4500. break 2
  4501. fi
  4502. done
  4503. done
  4504. IFS=$as_save_IFS
  4505. fi
  4506. fi
  4507. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4508. if test -n "$ac_ct_OBJDUMP"; then
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4510. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4511. else
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4513. $as_echo "no" >&6; }
  4514. fi
  4515. if test "x$ac_ct_OBJDUMP" = x; then
  4516. OBJDUMP="false"
  4517. else
  4518. case $cross_compiling:$ac_tool_warned in
  4519. yes:)
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4522. ac_tool_warned=yes ;;
  4523. esac
  4524. OBJDUMP=$ac_ct_OBJDUMP
  4525. fi
  4526. else
  4527. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4528. fi
  4529. test -z "$OBJDUMP" && OBJDUMP=objdump
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4531. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4532. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4536. lt_cv_file_magic_test_file=
  4537. lt_cv_deplibs_check_method='unknown'
  4538. # Need to set the preceding variable on all platforms that support
  4539. # interlibrary dependencies.
  4540. # 'none' -- dependencies not supported.
  4541. # `unknown' -- same as none, but documents that we really don't know.
  4542. # 'pass_all' -- all dependencies passed with no checks.
  4543. # 'test_compile' -- check by making test program.
  4544. # 'file_magic [[regex]]' -- check by looking for files in library path
  4545. # which responds to the $file_magic_cmd with a given extended regex.
  4546. # If you have `file' or equivalent on your system and you're not sure
  4547. # whether `pass_all' will *always* work, you probably want this one.
  4548. case $host_os in
  4549. aix[4-9]*)
  4550. lt_cv_deplibs_check_method=pass_all
  4551. ;;
  4552. beos*)
  4553. lt_cv_deplibs_check_method=pass_all
  4554. ;;
  4555. bsdi[45]*)
  4556. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4557. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4558. lt_cv_file_magic_test_file=/shlib/libc.so
  4559. ;;
  4560. cygwin*)
  4561. # func_win32_libid is a shell function defined in ltmain.sh
  4562. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4563. lt_cv_file_magic_cmd='func_win32_libid'
  4564. ;;
  4565. mingw* | pw32*)
  4566. # Base MSYS/MinGW do not provide the 'file' command needed by
  4567. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4568. # unless we find 'file', for example because we are cross-compiling.
  4569. if ( file / ) >/dev/null 2>&1; then
  4570. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4571. lt_cv_file_magic_cmd='func_win32_libid'
  4572. else
  4573. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4574. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4575. fi
  4576. ;;
  4577. cegcc)
  4578. # use the weaker test based on 'objdump'. See mingw*.
  4579. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4580. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4581. ;;
  4582. darwin* | rhapsody*)
  4583. lt_cv_deplibs_check_method=pass_all
  4584. ;;
  4585. freebsd* | dragonfly*)
  4586. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4587. case $host_cpu in
  4588. i*86 )
  4589. # Not sure whether the presence of OpenBSD here was a mistake.
  4590. # Let's accept both of them until this is cleared up.
  4591. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4592. lt_cv_file_magic_cmd=/usr/bin/file
  4593. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4594. ;;
  4595. esac
  4596. else
  4597. lt_cv_deplibs_check_method=pass_all
  4598. fi
  4599. ;;
  4600. gnu*)
  4601. lt_cv_deplibs_check_method=pass_all
  4602. ;;
  4603. hpux10.20* | hpux11*)
  4604. lt_cv_file_magic_cmd=/usr/bin/file
  4605. case $host_cpu in
  4606. ia64*)
  4607. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4608. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4609. ;;
  4610. hppa*64*)
  4611. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4612. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4613. ;;
  4614. *)
  4615. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4616. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4617. ;;
  4618. esac
  4619. ;;
  4620. interix[3-9]*)
  4621. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4622. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4623. ;;
  4624. irix5* | irix6* | nonstopux*)
  4625. case $LD in
  4626. *-32|*"-32 ") libmagic=32-bit;;
  4627. *-n32|*"-n32 ") libmagic=N32;;
  4628. *-64|*"-64 ") libmagic=64-bit;;
  4629. *) libmagic=never-match;;
  4630. esac
  4631. lt_cv_deplibs_check_method=pass_all
  4632. ;;
  4633. # This must be Linux ELF.
  4634. linux* | k*bsd*-gnu)
  4635. lt_cv_deplibs_check_method=pass_all
  4636. ;;
  4637. netbsd* | netbsdelf*-gnu)
  4638. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4639. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4640. else
  4641. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4642. fi
  4643. ;;
  4644. newos6*)
  4645. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4646. lt_cv_file_magic_cmd=/usr/bin/file
  4647. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4648. ;;
  4649. *nto* | *qnx*)
  4650. lt_cv_deplibs_check_method=pass_all
  4651. ;;
  4652. openbsd*)
  4653. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4654. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4655. else
  4656. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4657. fi
  4658. ;;
  4659. osf3* | osf4* | osf5*)
  4660. lt_cv_deplibs_check_method=pass_all
  4661. ;;
  4662. rdos*)
  4663. lt_cv_deplibs_check_method=pass_all
  4664. ;;
  4665. solaris*)
  4666. lt_cv_deplibs_check_method=pass_all
  4667. ;;
  4668. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4669. lt_cv_deplibs_check_method=pass_all
  4670. ;;
  4671. sysv4 | sysv4.3*)
  4672. case $host_vendor in
  4673. motorola)
  4674. 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]'
  4675. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4676. ;;
  4677. ncr)
  4678. lt_cv_deplibs_check_method=pass_all
  4679. ;;
  4680. sequent)
  4681. lt_cv_file_magic_cmd='/bin/file'
  4682. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4683. ;;
  4684. sni)
  4685. lt_cv_file_magic_cmd='/bin/file'
  4686. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4687. lt_cv_file_magic_test_file=/lib/libc.so
  4688. ;;
  4689. siemens)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. pc)
  4693. lt_cv_deplibs_check_method=pass_all
  4694. ;;
  4695. esac
  4696. ;;
  4697. tpf*)
  4698. lt_cv_deplibs_check_method=pass_all
  4699. ;;
  4700. esac
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4703. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4704. file_magic_cmd=$lt_cv_file_magic_cmd
  4705. deplibs_check_method=$lt_cv_deplibs_check_method
  4706. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4707. if test -n "$ac_tool_prefix"; then
  4708. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4709. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if test "${ac_cv_prog_AR+set}" = set; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$AR"; then
  4716. ac_cv_prog_AR="$AR" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4725. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. AR=$ac_cv_prog_AR
  4735. if test -n "$AR"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4737. $as_echo "$AR" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. fi
  4743. if test -z "$ac_cv_prog_AR"; then
  4744. ac_ct_AR=$AR
  4745. # Extract the first word of "ar", so it can be a program name with args.
  4746. set dummy ar; ac_word=$2
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4748. $as_echo_n "checking for $ac_word... " >&6; }
  4749. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. if test -n "$ac_ct_AR"; then
  4753. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762. ac_cv_prog_ac_ct_AR="ar"
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. fi
  4770. fi
  4771. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4772. if test -n "$ac_ct_AR"; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4774. $as_echo "$ac_ct_AR" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. fi
  4779. if test "x$ac_ct_AR" = x; then
  4780. AR="false"
  4781. else
  4782. case $cross_compiling:$ac_tool_warned in
  4783. yes:)
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4786. ac_tool_warned=yes ;;
  4787. esac
  4788. AR=$ac_ct_AR
  4789. fi
  4790. else
  4791. AR="$ac_cv_prog_AR"
  4792. fi
  4793. test -z "$AR" && AR=ar
  4794. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4795. if test -n "$ac_tool_prefix"; then
  4796. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4797. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4799. $as_echo_n "checking for $ac_word... " >&6; }
  4800. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -n "$STRIP"; then
  4804. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4805. else
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_exec_ext in '' $ac_executable_extensions; do
  4812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4813. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4815. break 2
  4816. fi
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. fi
  4822. STRIP=$ac_cv_prog_STRIP
  4823. if test -n "$STRIP"; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4825. $as_echo "$STRIP" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. fi
  4830. fi
  4831. if test -z "$ac_cv_prog_STRIP"; then
  4832. ac_ct_STRIP=$STRIP
  4833. # Extract the first word of "strip", so it can be a program name with args.
  4834. set dummy strip; ac_word=$2
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4836. $as_echo_n "checking for $ac_word... " >&6; }
  4837. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -n "$ac_ct_STRIP"; then
  4841. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4842. else
  4843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4844. for as_dir in $PATH
  4845. do
  4846. IFS=$as_save_IFS
  4847. test -z "$as_dir" && as_dir=.
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4850. ac_cv_prog_ac_ct_STRIP="strip"
  4851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4852. break 2
  4853. fi
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. fi
  4858. fi
  4859. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4860. if test -n "$ac_ct_STRIP"; then
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4862. $as_echo "$ac_ct_STRIP" >&6; }
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867. if test "x$ac_ct_STRIP" = x; then
  4868. STRIP=":"
  4869. else
  4870. case $cross_compiling:$ac_tool_warned in
  4871. yes:)
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4874. ac_tool_warned=yes ;;
  4875. esac
  4876. STRIP=$ac_ct_STRIP
  4877. fi
  4878. else
  4879. STRIP="$ac_cv_prog_STRIP"
  4880. fi
  4881. test -z "$STRIP" && STRIP=:
  4882. if test -n "$ac_tool_prefix"; then
  4883. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4884. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4886. $as_echo_n "checking for $ac_word... " >&6; }
  4887. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if test -n "$RANLIB"; then
  4891. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4900. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. RANLIB=$ac_cv_prog_RANLIB
  4910. if test -n "$RANLIB"; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4912. $as_echo "$RANLIB" >&6; }
  4913. else
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. $as_echo "no" >&6; }
  4916. fi
  4917. fi
  4918. if test -z "$ac_cv_prog_RANLIB"; then
  4919. ac_ct_RANLIB=$RANLIB
  4920. # Extract the first word of "ranlib", so it can be a program name with args.
  4921. set dummy ranlib; ac_word=$2
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4923. $as_echo_n "checking for $ac_word... " >&6; }
  4924. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. if test -n "$ac_ct_RANLIB"; then
  4928. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4929. else
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4937. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4939. break 2
  4940. fi
  4941. done
  4942. done
  4943. IFS=$as_save_IFS
  4944. fi
  4945. fi
  4946. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4947. if test -n "$ac_ct_RANLIB"; then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4949. $as_echo "$ac_ct_RANLIB" >&6; }
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. fi
  4954. if test "x$ac_ct_RANLIB" = x; then
  4955. RANLIB=":"
  4956. else
  4957. case $cross_compiling:$ac_tool_warned in
  4958. yes:)
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4961. ac_tool_warned=yes ;;
  4962. esac
  4963. RANLIB=$ac_ct_RANLIB
  4964. fi
  4965. else
  4966. RANLIB="$ac_cv_prog_RANLIB"
  4967. fi
  4968. test -z "$RANLIB" && RANLIB=:
  4969. # Determine commands to create old-style static archives.
  4970. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4971. old_postinstall_cmds='chmod 644 $oldlib'
  4972. old_postuninstall_cmds=
  4973. if test -n "$RANLIB"; then
  4974. case $host_os in
  4975. openbsd*)
  4976. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4977. ;;
  4978. *)
  4979. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4980. ;;
  4981. esac
  4982. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4983. fi
  4984. # If no C compiler was specified, use CC.
  4985. LTCC=${LTCC-"$CC"}
  4986. # If no C compiler flags were specified, use CFLAGS.
  4987. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4988. # Allow CC to be a program name with arguments.
  4989. compiler=$CC
  4990. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4992. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4993. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. # These are sane defaults that work on at least a few old systems.
  4997. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4998. # Character class describing NM global symbol codes.
  4999. symcode='[BCDEGRST]'
  5000. # Regexp to match symbols that can be accessed directly from C.
  5001. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5002. # Define system-specific variables.
  5003. case $host_os in
  5004. aix*)
  5005. symcode='[BCDT]'
  5006. ;;
  5007. cygwin* | mingw* | pw32* | cegcc*)
  5008. symcode='[ABCDGISTW]'
  5009. ;;
  5010. hpux*)
  5011. if test "$host_cpu" = ia64; then
  5012. symcode='[ABCDEGRST]'
  5013. fi
  5014. ;;
  5015. irix* | nonstopux*)
  5016. symcode='[BCDEGRST]'
  5017. ;;
  5018. osf*)
  5019. symcode='[BCDEGQRST]'
  5020. ;;
  5021. solaris*)
  5022. symcode='[BDRT]'
  5023. ;;
  5024. sco3.2v5*)
  5025. symcode='[DT]'
  5026. ;;
  5027. sysv4.2uw2*)
  5028. symcode='[DT]'
  5029. ;;
  5030. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5031. symcode='[ABDT]'
  5032. ;;
  5033. sysv4)
  5034. symcode='[DFNSTU]'
  5035. ;;
  5036. esac
  5037. # If we're using GNU nm, then use its standard symbol codes.
  5038. case `$NM -V 2>&1` in
  5039. *GNU* | *'with BFD'*)
  5040. symcode='[ABCDGIRSTW]' ;;
  5041. esac
  5042. # Transform an extracted symbol line into a proper C declaration.
  5043. # Some systems (esp. on ia64) link data and code symbols differently,
  5044. # so use this general approach.
  5045. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5046. # Transform an extracted symbol line into symbol name and symbol address
  5047. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5048. 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'"
  5049. # Handle CRLF in mingw tool chain
  5050. opt_cr=
  5051. case $build_os in
  5052. mingw*)
  5053. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5054. ;;
  5055. esac
  5056. # Try without a prefix underscore, then with it.
  5057. for ac_symprfx in "" "_"; do
  5058. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5059. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5060. # Write the raw and C identifiers.
  5061. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5062. # Fake it for dumpbin and say T for any non-static function
  5063. # and D for any global variable.
  5064. # Also find C++ and __fastcall symbols from MSVC++,
  5065. # which start with @ or ?.
  5066. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5067. " {last_section=section; section=\$ 3};"\
  5068. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5069. " \$ 0!~/External *\|/{next};"\
  5070. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5071. " {if(hide[section]) next};"\
  5072. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5073. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5074. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5075. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5076. " ' prfx=^$ac_symprfx"
  5077. else
  5078. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5079. fi
  5080. # Check to see that the pipe works correctly.
  5081. pipe_works=no
  5082. rm -f conftest*
  5083. cat > conftest.$ac_ext <<_LT_EOF
  5084. #ifdef __cplusplus
  5085. extern "C" {
  5086. #endif
  5087. char nm_test_var;
  5088. void nm_test_func(void);
  5089. void nm_test_func(void){}
  5090. #ifdef __cplusplus
  5091. }
  5092. #endif
  5093. int main(){nm_test_var='a';nm_test_func();return(0);}
  5094. _LT_EOF
  5095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5096. (eval $ac_compile) 2>&5
  5097. ac_status=$?
  5098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5099. test $ac_status = 0; }; then
  5100. # Now try to grab the symbols.
  5101. nlist=conftest.nm
  5102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5103. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5104. ac_status=$?
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5106. test $ac_status = 0; } && test -s "$nlist"; then
  5107. # Try sorting and uniquifying the output.
  5108. if sort "$nlist" | uniq > "$nlist"T; then
  5109. mv -f "$nlist"T "$nlist"
  5110. else
  5111. rm -f "$nlist"T
  5112. fi
  5113. # Make sure that we snagged all the symbols we need.
  5114. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5115. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5116. cat <<_LT_EOF > conftest.$ac_ext
  5117. #ifdef __cplusplus
  5118. extern "C" {
  5119. #endif
  5120. _LT_EOF
  5121. # Now generate the symbol file.
  5122. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5123. cat <<_LT_EOF >> conftest.$ac_ext
  5124. /* The mapping between symbol names and symbols. */
  5125. const struct {
  5126. const char *name;
  5127. void *address;
  5128. }
  5129. lt__PROGRAM__LTX_preloaded_symbols[] =
  5130. {
  5131. { "@PROGRAM@", (void *) 0 },
  5132. _LT_EOF
  5133. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5134. cat <<\_LT_EOF >> conftest.$ac_ext
  5135. {0, (void *) 0}
  5136. };
  5137. /* This works around a problem in FreeBSD linker */
  5138. #ifdef FREEBSD_WORKAROUND
  5139. static const void *lt_preloaded_setup() {
  5140. return lt__PROGRAM__LTX_preloaded_symbols;
  5141. }
  5142. #endif
  5143. #ifdef __cplusplus
  5144. }
  5145. #endif
  5146. _LT_EOF
  5147. # Now try linking the two files.
  5148. mv conftest.$ac_objext conftstm.$ac_objext
  5149. lt_save_LIBS="$LIBS"
  5150. lt_save_CFLAGS="$CFLAGS"
  5151. LIBS="conftstm.$ac_objext"
  5152. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5154. (eval $ac_link) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5158. pipe_works=yes
  5159. fi
  5160. LIBS="$lt_save_LIBS"
  5161. CFLAGS="$lt_save_CFLAGS"
  5162. else
  5163. echo "cannot find nm_test_func in $nlist" >&5
  5164. fi
  5165. else
  5166. echo "cannot find nm_test_var in $nlist" >&5
  5167. fi
  5168. else
  5169. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5170. fi
  5171. else
  5172. echo "$progname: failed program was:" >&5
  5173. cat conftest.$ac_ext >&5
  5174. fi
  5175. rm -rf conftest* conftst*
  5176. # Do not use the global_symbol_pipe unless it works.
  5177. if test "$pipe_works" = yes; then
  5178. break
  5179. else
  5180. lt_cv_sys_global_symbol_pipe=
  5181. fi
  5182. done
  5183. fi
  5184. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5185. lt_cv_sys_global_symbol_to_cdecl=
  5186. fi
  5187. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5189. $as_echo "failed" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5192. $as_echo "ok" >&6; }
  5193. fi
  5194. # Check whether --enable-libtool-lock was given.
  5195. if test "${enable_libtool_lock+set}" = set; then :
  5196. enableval=$enable_libtool_lock;
  5197. fi
  5198. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5199. # Some flags need to be propagated to the compiler or linker for good
  5200. # libtool support.
  5201. case $host in
  5202. ia64-*-hpux*)
  5203. # Find out which ABI we are using.
  5204. echo 'int i;' > conftest.$ac_ext
  5205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5206. (eval $ac_compile) 2>&5
  5207. ac_status=$?
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5209. test $ac_status = 0; }; then
  5210. case `/usr/bin/file conftest.$ac_objext` in
  5211. *ELF-32*)
  5212. HPUX_IA64_MODE="32"
  5213. ;;
  5214. *ELF-64*)
  5215. HPUX_IA64_MODE="64"
  5216. ;;
  5217. esac
  5218. fi
  5219. rm -rf conftest*
  5220. ;;
  5221. *-*-irix6*)
  5222. # Find out which ABI we are using.
  5223. echo '#line 5894 "configure"' > conftest.$ac_ext
  5224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5225. (eval $ac_compile) 2>&5
  5226. ac_status=$?
  5227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5228. test $ac_status = 0; }; then
  5229. if test "$lt_cv_prog_gnu_ld" = yes; then
  5230. case `/usr/bin/file conftest.$ac_objext` in
  5231. *32-bit*)
  5232. LD="${LD-ld} -melf32bsmip"
  5233. ;;
  5234. *N32*)
  5235. LD="${LD-ld} -melf32bmipn32"
  5236. ;;
  5237. *64-bit*)
  5238. LD="${LD-ld} -melf64bmip"
  5239. ;;
  5240. esac
  5241. else
  5242. case `/usr/bin/file conftest.$ac_objext` in
  5243. *32-bit*)
  5244. LD="${LD-ld} -32"
  5245. ;;
  5246. *N32*)
  5247. LD="${LD-ld} -n32"
  5248. ;;
  5249. *64-bit*)
  5250. LD="${LD-ld} -64"
  5251. ;;
  5252. esac
  5253. fi
  5254. fi
  5255. rm -rf conftest*
  5256. ;;
  5257. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5258. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5259. # Find out which ABI we are using.
  5260. echo 'int i;' > conftest.$ac_ext
  5261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5262. (eval $ac_compile) 2>&5
  5263. ac_status=$?
  5264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5265. test $ac_status = 0; }; then
  5266. case `/usr/bin/file conftest.o` in
  5267. *32-bit*)
  5268. case $host in
  5269. x86_64-*kfreebsd*-gnu)
  5270. LD="${LD-ld} -m elf_i386_fbsd"
  5271. ;;
  5272. x86_64-*linux*)
  5273. LD="${LD-ld} -m elf_i386"
  5274. ;;
  5275. ppc64-*linux*|powerpc64-*linux*)
  5276. LD="${LD-ld} -m elf32ppclinux"
  5277. ;;
  5278. s390x-*linux*)
  5279. LD="${LD-ld} -m elf_s390"
  5280. ;;
  5281. sparc64-*linux*)
  5282. LD="${LD-ld} -m elf32_sparc"
  5283. ;;
  5284. esac
  5285. ;;
  5286. *64-bit*)
  5287. case $host in
  5288. x86_64-*kfreebsd*-gnu)
  5289. LD="${LD-ld} -m elf_x86_64_fbsd"
  5290. ;;
  5291. x86_64-*linux*)
  5292. LD="${LD-ld} -m elf_x86_64"
  5293. ;;
  5294. ppc*-*linux*|powerpc*-*linux*)
  5295. LD="${LD-ld} -m elf64ppc"
  5296. ;;
  5297. s390*-*linux*|s390*-*tpf*)
  5298. LD="${LD-ld} -m elf64_s390"
  5299. ;;
  5300. sparc*-*linux*)
  5301. LD="${LD-ld} -m elf64_sparc"
  5302. ;;
  5303. esac
  5304. ;;
  5305. esac
  5306. fi
  5307. rm -rf conftest*
  5308. ;;
  5309. *-*-sco3.2v5*)
  5310. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5311. SAVE_CFLAGS="$CFLAGS"
  5312. CFLAGS="$CFLAGS -belf"
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5314. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5315. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5316. $as_echo_n "(cached) " >&6
  5317. else
  5318. ac_ext=c
  5319. ac_cpp='$CPP $CPPFLAGS'
  5320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. int
  5326. main ()
  5327. {
  5328. ;
  5329. return 0;
  5330. }
  5331. _ACEOF
  5332. if ac_fn_c_try_link "$LINENO"; then :
  5333. lt_cv_cc_needs_belf=yes
  5334. else
  5335. lt_cv_cc_needs_belf=no
  5336. fi
  5337. rm -f core conftest.err conftest.$ac_objext \
  5338. conftest$ac_exeext conftest.$ac_ext
  5339. ac_ext=c
  5340. ac_cpp='$CPP $CPPFLAGS'
  5341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5344. fi
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5346. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5347. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5348. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5349. CFLAGS="$SAVE_CFLAGS"
  5350. fi
  5351. ;;
  5352. sparc*-*solaris*)
  5353. # Find out which ABI we are using.
  5354. echo 'int i;' > conftest.$ac_ext
  5355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5356. (eval $ac_compile) 2>&5
  5357. ac_status=$?
  5358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5359. test $ac_status = 0; }; then
  5360. case `/usr/bin/file conftest.o` in
  5361. *64-bit*)
  5362. case $lt_cv_prog_gnu_ld in
  5363. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5364. *)
  5365. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5366. LD="${LD-ld} -64"
  5367. fi
  5368. ;;
  5369. esac
  5370. ;;
  5371. esac
  5372. fi
  5373. rm -rf conftest*
  5374. ;;
  5375. esac
  5376. need_locks="$enable_libtool_lock"
  5377. case $host_os in
  5378. rhapsody* | darwin*)
  5379. if test -n "$ac_tool_prefix"; then
  5380. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5381. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$DSYMUTIL"; then
  5388. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5407. if test -n "$DSYMUTIL"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5409. $as_echo "$DSYMUTIL" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. fi
  5415. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5416. ac_ct_DSYMUTIL=$DSYMUTIL
  5417. # Extract the first word of "dsymutil", so it can be a program name with args.
  5418. set dummy dsymutil; ac_word=$2
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5420. $as_echo_n "checking for $ac_word... " >&6; }
  5421. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. if test -n "$ac_ct_DSYMUTIL"; then
  5425. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5426. else
  5427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5428. for as_dir in $PATH
  5429. do
  5430. IFS=$as_save_IFS
  5431. test -z "$as_dir" && as_dir=.
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5434. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5436. break 2
  5437. fi
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. fi
  5442. fi
  5443. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5444. if test -n "$ac_ct_DSYMUTIL"; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5446. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5447. else
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5449. $as_echo "no" >&6; }
  5450. fi
  5451. if test "x$ac_ct_DSYMUTIL" = x; then
  5452. DSYMUTIL=":"
  5453. else
  5454. case $cross_compiling:$ac_tool_warned in
  5455. yes:)
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5458. ac_tool_warned=yes ;;
  5459. esac
  5460. DSYMUTIL=$ac_ct_DSYMUTIL
  5461. fi
  5462. else
  5463. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5464. fi
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$NMEDIT"; then
  5474. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5483. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. NMEDIT=$ac_cv_prog_NMEDIT
  5493. if test -n "$NMEDIT"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5495. $as_echo "$NMEDIT" >&6; }
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. fi
  5501. if test -z "$ac_cv_prog_NMEDIT"; then
  5502. ac_ct_NMEDIT=$NMEDIT
  5503. # Extract the first word of "nmedit", so it can be a program name with args.
  5504. set dummy nmedit; ac_word=$2
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5506. $as_echo_n "checking for $ac_word... " >&6; }
  5507. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if test -n "$ac_ct_NMEDIT"; then
  5511. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5512. else
  5513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514. for as_dir in $PATH
  5515. do
  5516. IFS=$as_save_IFS
  5517. test -z "$as_dir" && as_dir=.
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5530. if test -n "$ac_ct_NMEDIT"; then
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5532. $as_echo "$ac_ct_NMEDIT" >&6; }
  5533. else
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5535. $as_echo "no" >&6; }
  5536. fi
  5537. if test "x$ac_ct_NMEDIT" = x; then
  5538. NMEDIT=":"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. NMEDIT=$ac_ct_NMEDIT
  5547. fi
  5548. else
  5549. NMEDIT="$ac_cv_prog_NMEDIT"
  5550. fi
  5551. if test -n "$ac_tool_prefix"; then
  5552. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5553. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5555. $as_echo_n "checking for $ac_word... " >&6; }
  5556. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. if test -n "$LIPO"; then
  5560. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. for ac_exec_ext in '' $ac_executable_extensions; do
  5568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5569. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5571. break 2
  5572. fi
  5573. done
  5574. done
  5575. IFS=$as_save_IFS
  5576. fi
  5577. fi
  5578. LIPO=$ac_cv_prog_LIPO
  5579. if test -n "$LIPO"; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5581. $as_echo "$LIPO" >&6; }
  5582. else
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5584. $as_echo "no" >&6; }
  5585. fi
  5586. fi
  5587. if test -z "$ac_cv_prog_LIPO"; then
  5588. ac_ct_LIPO=$LIPO
  5589. # Extract the first word of "lipo", so it can be a program name with args.
  5590. set dummy lipo; ac_word=$2
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5592. $as_echo_n "checking for $ac_word... " >&6; }
  5593. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. if test -n "$ac_ct_LIPO"; then
  5597. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5598. else
  5599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5600. for as_dir in $PATH
  5601. do
  5602. IFS=$as_save_IFS
  5603. test -z "$as_dir" && as_dir=.
  5604. for ac_exec_ext in '' $ac_executable_extensions; do
  5605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5606. ac_cv_prog_ac_ct_LIPO="lipo"
  5607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5608. break 2
  5609. fi
  5610. done
  5611. done
  5612. IFS=$as_save_IFS
  5613. fi
  5614. fi
  5615. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5616. if test -n "$ac_ct_LIPO"; then
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5618. $as_echo "$ac_ct_LIPO" >&6; }
  5619. else
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5621. $as_echo "no" >&6; }
  5622. fi
  5623. if test "x$ac_ct_LIPO" = x; then
  5624. LIPO=":"
  5625. else
  5626. case $cross_compiling:$ac_tool_warned in
  5627. yes:)
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5630. ac_tool_warned=yes ;;
  5631. esac
  5632. LIPO=$ac_ct_LIPO
  5633. fi
  5634. else
  5635. LIPO="$ac_cv_prog_LIPO"
  5636. fi
  5637. if test -n "$ac_tool_prefix"; then
  5638. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5639. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$OTOOL"; then
  5646. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5655. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. OTOOL=$ac_cv_prog_OTOOL
  5665. if test -n "$OTOOL"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5667. $as_echo "$OTOOL" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. fi
  5673. if test -z "$ac_cv_prog_OTOOL"; then
  5674. ac_ct_OTOOL=$OTOOL
  5675. # Extract the first word of "otool", so it can be a program name with args.
  5676. set dummy otool; ac_word=$2
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5678. $as_echo_n "checking for $ac_word... " >&6; }
  5679. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. if test -n "$ac_ct_OTOOL"; then
  5683. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5684. else
  5685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5686. for as_dir in $PATH
  5687. do
  5688. IFS=$as_save_IFS
  5689. test -z "$as_dir" && as_dir=.
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5692. ac_cv_prog_ac_ct_OTOOL="otool"
  5693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5702. if test -n "$ac_ct_OTOOL"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5704. $as_echo "$ac_ct_OTOOL" >&6; }
  5705. else
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. $as_echo "no" >&6; }
  5708. fi
  5709. if test "x$ac_ct_OTOOL" = x; then
  5710. OTOOL=":"
  5711. else
  5712. case $cross_compiling:$ac_tool_warned in
  5713. yes:)
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5716. ac_tool_warned=yes ;;
  5717. esac
  5718. OTOOL=$ac_ct_OTOOL
  5719. fi
  5720. else
  5721. OTOOL="$ac_cv_prog_OTOOL"
  5722. fi
  5723. if test -n "$ac_tool_prefix"; then
  5724. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5725. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5727. $as_echo_n "checking for $ac_word... " >&6; }
  5728. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. if test -n "$OTOOL64"; then
  5732. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5733. else
  5734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5735. for as_dir in $PATH
  5736. do
  5737. IFS=$as_save_IFS
  5738. test -z "$as_dir" && as_dir=.
  5739. for ac_exec_ext in '' $ac_executable_extensions; do
  5740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5741. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5743. break 2
  5744. fi
  5745. done
  5746. done
  5747. IFS=$as_save_IFS
  5748. fi
  5749. fi
  5750. OTOOL64=$ac_cv_prog_OTOOL64
  5751. if test -n "$OTOOL64"; then
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5753. $as_echo "$OTOOL64" >&6; }
  5754. else
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5756. $as_echo "no" >&6; }
  5757. fi
  5758. fi
  5759. if test -z "$ac_cv_prog_OTOOL64"; then
  5760. ac_ct_OTOOL64=$OTOOL64
  5761. # Extract the first word of "otool64", so it can be a program name with args.
  5762. set dummy otool64; ac_word=$2
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5764. $as_echo_n "checking for $ac_word... " >&6; }
  5765. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. if test -n "$ac_ct_OTOOL64"; then
  5769. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5770. else
  5771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5772. for as_dir in $PATH
  5773. do
  5774. IFS=$as_save_IFS
  5775. test -z "$as_dir" && as_dir=.
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5778. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5788. if test -n "$ac_ct_OTOOL64"; then
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5790. $as_echo "$ac_ct_OTOOL64" >&6; }
  5791. else
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795. if test "x$ac_ct_OTOOL64" = x; then
  5796. OTOOL64=":"
  5797. else
  5798. case $cross_compiling:$ac_tool_warned in
  5799. yes:)
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5802. ac_tool_warned=yes ;;
  5803. esac
  5804. OTOOL64=$ac_ct_OTOOL64
  5805. fi
  5806. else
  5807. OTOOL64="$ac_cv_prog_OTOOL64"
  5808. fi
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5810. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5811. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. lt_cv_apple_cc_single_mod=no
  5815. if test -z "${LT_MULTI_MODULE}"; then
  5816. # By default we will add the -single_module flag. You can override
  5817. # by either setting the environment variable LT_MULTI_MODULE
  5818. # non-empty at configure time, or by adding -multi_module to the
  5819. # link flags.
  5820. rm -rf libconftest.dylib*
  5821. echo "int foo(void){return 1;}" > conftest.c
  5822. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5823. -dynamiclib -Wl,-single_module conftest.c" >&5
  5824. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5825. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5826. _lt_result=$?
  5827. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5828. lt_cv_apple_cc_single_mod=yes
  5829. else
  5830. cat conftest.err >&5
  5831. fi
  5832. rm -rf libconftest.dylib*
  5833. rm -f conftest.*
  5834. fi
  5835. fi
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5837. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5839. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5840. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. lt_cv_ld_exported_symbols_list=no
  5844. save_LDFLAGS=$LDFLAGS
  5845. echo "_main" > conftest.sym
  5846. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5848. /* end confdefs.h. */
  5849. int
  5850. main ()
  5851. {
  5852. ;
  5853. return 0;
  5854. }
  5855. _ACEOF
  5856. if ac_fn_c_try_link "$LINENO"; then :
  5857. lt_cv_ld_exported_symbols_list=yes
  5858. else
  5859. lt_cv_ld_exported_symbols_list=no
  5860. fi
  5861. rm -f core conftest.err conftest.$ac_objext \
  5862. conftest$ac_exeext conftest.$ac_ext
  5863. LDFLAGS="$save_LDFLAGS"
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5866. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5867. case $host_os in
  5868. rhapsody* | darwin1.[012])
  5869. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5870. darwin1.*)
  5871. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5872. darwin*) # darwin 5.x on
  5873. # if running on 10.5 or later, the deployment target defaults
  5874. # to the OS version, if on x86, and 10.4, the deployment
  5875. # target defaults to 10.4. Don't you love it?
  5876. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5877. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5878. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5879. 10.[012]*)
  5880. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5881. 10.*)
  5882. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5883. esac
  5884. ;;
  5885. esac
  5886. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5887. _lt_dar_single_mod='$single_module'
  5888. fi
  5889. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5890. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5891. else
  5892. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5893. fi
  5894. if test "$DSYMUTIL" != ":"; then
  5895. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5896. else
  5897. _lt_dsymutil=
  5898. fi
  5899. ;;
  5900. esac
  5901. ac_ext=c
  5902. ac_cpp='$CPP $CPPFLAGS'
  5903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5907. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5908. # On Suns, sometimes $CPP names a directory.
  5909. if test -n "$CPP" && test -d "$CPP"; then
  5910. CPP=
  5911. fi
  5912. if test -z "$CPP"; then
  5913. if test "${ac_cv_prog_CPP+set}" = set; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. # Double quotes because CPP needs to be expanded
  5917. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5918. do
  5919. ac_preproc_ok=false
  5920. for ac_c_preproc_warn_flag in '' yes
  5921. do
  5922. # Use a header file that comes with gcc, so configuring glibc
  5923. # with a fresh cross-compiler works.
  5924. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5925. # <limits.h> exists even on freestanding compilers.
  5926. # On the NeXT, cc -E runs the code through the compiler's parser,
  5927. # not just through cpp. "Syntax error" is here to catch this case.
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. #ifdef __STDC__
  5931. # include <limits.h>
  5932. #else
  5933. # include <assert.h>
  5934. #endif
  5935. Syntax error
  5936. _ACEOF
  5937. if ac_fn_c_try_cpp "$LINENO"; then :
  5938. else
  5939. # Broken: fails on valid input.
  5940. continue
  5941. fi
  5942. rm -f conftest.err conftest.$ac_ext
  5943. # OK, works on sane cases. Now check whether nonexistent headers
  5944. # can be detected and how.
  5945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5946. /* end confdefs.h. */
  5947. #include <ac_nonexistent.h>
  5948. _ACEOF
  5949. if ac_fn_c_try_cpp "$LINENO"; then :
  5950. # Broken: success on invalid input.
  5951. continue
  5952. else
  5953. # Passes both tests.
  5954. ac_preproc_ok=:
  5955. break
  5956. fi
  5957. rm -f conftest.err conftest.$ac_ext
  5958. done
  5959. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5960. rm -f conftest.err conftest.$ac_ext
  5961. if $ac_preproc_ok; then :
  5962. break
  5963. fi
  5964. done
  5965. ac_cv_prog_CPP=$CPP
  5966. fi
  5967. CPP=$ac_cv_prog_CPP
  5968. else
  5969. ac_cv_prog_CPP=$CPP
  5970. fi
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5972. $as_echo "$CPP" >&6; }
  5973. ac_preproc_ok=false
  5974. for ac_c_preproc_warn_flag in '' yes
  5975. do
  5976. # Use a header file that comes with gcc, so configuring glibc
  5977. # with a fresh cross-compiler works.
  5978. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5979. # <limits.h> exists even on freestanding compilers.
  5980. # On the NeXT, cc -E runs the code through the compiler's parser,
  5981. # not just through cpp. "Syntax error" is here to catch this case.
  5982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5983. /* end confdefs.h. */
  5984. #ifdef __STDC__
  5985. # include <limits.h>
  5986. #else
  5987. # include <assert.h>
  5988. #endif
  5989. Syntax error
  5990. _ACEOF
  5991. if ac_fn_c_try_cpp "$LINENO"; then :
  5992. else
  5993. # Broken: fails on valid input.
  5994. continue
  5995. fi
  5996. rm -f conftest.err conftest.$ac_ext
  5997. # OK, works on sane cases. Now check whether nonexistent headers
  5998. # can be detected and how.
  5999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6000. /* end confdefs.h. */
  6001. #include <ac_nonexistent.h>
  6002. _ACEOF
  6003. if ac_fn_c_try_cpp "$LINENO"; then :
  6004. # Broken: success on invalid input.
  6005. continue
  6006. else
  6007. # Passes both tests.
  6008. ac_preproc_ok=:
  6009. break
  6010. fi
  6011. rm -f conftest.err conftest.$ac_ext
  6012. done
  6013. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6014. rm -f conftest.err conftest.$ac_ext
  6015. if $ac_preproc_ok; then :
  6016. else
  6017. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6019. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6020. See \`config.log' for more details." "$LINENO" 5; }
  6021. fi
  6022. ac_ext=c
  6023. ac_cpp='$CPP $CPPFLAGS'
  6024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6028. $as_echo_n "checking for ANSI C header files... " >&6; }
  6029. if test "${ac_cv_header_stdc+set}" = set; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. #include <stdlib.h>
  6035. #include <stdarg.h>
  6036. #include <string.h>
  6037. #include <float.h>
  6038. int
  6039. main ()
  6040. {
  6041. ;
  6042. return 0;
  6043. }
  6044. _ACEOF
  6045. if ac_fn_c_try_compile "$LINENO"; then :
  6046. ac_cv_header_stdc=yes
  6047. else
  6048. ac_cv_header_stdc=no
  6049. fi
  6050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6051. if test $ac_cv_header_stdc = yes; then
  6052. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. #include <string.h>
  6056. _ACEOF
  6057. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6058. $EGREP "memchr" >/dev/null 2>&1; then :
  6059. else
  6060. ac_cv_header_stdc=no
  6061. fi
  6062. rm -f conftest*
  6063. fi
  6064. if test $ac_cv_header_stdc = yes; then
  6065. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. #include <stdlib.h>
  6069. _ACEOF
  6070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6071. $EGREP "free" >/dev/null 2>&1; then :
  6072. else
  6073. ac_cv_header_stdc=no
  6074. fi
  6075. rm -f conftest*
  6076. fi
  6077. if test $ac_cv_header_stdc = yes; then
  6078. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6079. if test "$cross_compiling" = yes; then :
  6080. :
  6081. else
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. #include <ctype.h>
  6085. #include <stdlib.h>
  6086. #if ((' ' & 0x0FF) == 0x020)
  6087. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6088. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6089. #else
  6090. # define ISLOWER(c) \
  6091. (('a' <= (c) && (c) <= 'i') \
  6092. || ('j' <= (c) && (c) <= 'r') \
  6093. || ('s' <= (c) && (c) <= 'z'))
  6094. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6095. #endif
  6096. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6097. int
  6098. main ()
  6099. {
  6100. int i;
  6101. for (i = 0; i < 256; i++)
  6102. if (XOR (islower (i), ISLOWER (i))
  6103. || toupper (i) != TOUPPER (i))
  6104. return 2;
  6105. return 0;
  6106. }
  6107. _ACEOF
  6108. if ac_fn_c_try_run "$LINENO"; then :
  6109. else
  6110. ac_cv_header_stdc=no
  6111. fi
  6112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6113. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6114. fi
  6115. fi
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6118. $as_echo "$ac_cv_header_stdc" >&6; }
  6119. if test $ac_cv_header_stdc = yes; then
  6120. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6121. fi
  6122. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6123. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6124. inttypes.h stdint.h unistd.h
  6125. do :
  6126. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6127. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6128. "
  6129. eval as_val=\$$as_ac_Header
  6130. if test "x$as_val" = x""yes; then :
  6131. cat >>confdefs.h <<_ACEOF
  6132. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6133. _ACEOF
  6134. fi
  6135. done
  6136. for ac_header in dlfcn.h
  6137. do :
  6138. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6139. "
  6140. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6141. cat >>confdefs.h <<_ACEOF
  6142. #define HAVE_DLFCN_H 1
  6143. _ACEOF
  6144. fi
  6145. done
  6146. ac_ext=cpp
  6147. ac_cpp='$CXXCPP $CPPFLAGS'
  6148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6151. if test -z "$CXX"; then
  6152. if test -n "$CCC"; then
  6153. CXX=$CCC
  6154. else
  6155. if test -n "$ac_tool_prefix"; then
  6156. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6157. do
  6158. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6159. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if test "${ac_cv_prog_CXX+set}" = set; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$CXX"; then
  6166. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6175. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. CXX=$ac_cv_prog_CXX
  6185. if test -n "$CXX"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6187. $as_echo "$CXX" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. test -n "$CXX" && break
  6193. done
  6194. fi
  6195. if test -z "$CXX"; then
  6196. ac_ct_CXX=$CXX
  6197. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6198. do
  6199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6200. set dummy $ac_prog; ac_word=$2
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6202. $as_echo_n "checking for $ac_word... " >&6; }
  6203. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6204. $as_echo_n "(cached) " >&6
  6205. else
  6206. if test -n "$ac_ct_CXX"; then
  6207. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6208. else
  6209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6210. for as_dir in $PATH
  6211. do
  6212. IFS=$as_save_IFS
  6213. test -z "$as_dir" && as_dir=.
  6214. for ac_exec_ext in '' $ac_executable_extensions; do
  6215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6216. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6218. break 2
  6219. fi
  6220. done
  6221. done
  6222. IFS=$as_save_IFS
  6223. fi
  6224. fi
  6225. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6226. if test -n "$ac_ct_CXX"; then
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6228. $as_echo "$ac_ct_CXX" >&6; }
  6229. else
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6231. $as_echo "no" >&6; }
  6232. fi
  6233. test -n "$ac_ct_CXX" && break
  6234. done
  6235. if test "x$ac_ct_CXX" = x; then
  6236. CXX="g++"
  6237. else
  6238. case $cross_compiling:$ac_tool_warned in
  6239. yes:)
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6242. ac_tool_warned=yes ;;
  6243. esac
  6244. CXX=$ac_ct_CXX
  6245. fi
  6246. fi
  6247. fi
  6248. fi
  6249. # Provide some information about the compiler.
  6250. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6251. set X $ac_compile
  6252. ac_compiler=$2
  6253. for ac_option in --version -v -V -qversion; do
  6254. { { ac_try="$ac_compiler $ac_option >&5"
  6255. case "(($ac_try" in
  6256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6257. *) ac_try_echo=$ac_try;;
  6258. esac
  6259. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6260. $as_echo "$ac_try_echo"; } >&5
  6261. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6262. ac_status=$?
  6263. if test -s conftest.err; then
  6264. sed '10a\
  6265. ... rest of stderr output deleted ...
  6266. 10q' conftest.err >conftest.er1
  6267. cat conftest.er1 >&5
  6268. rm -f conftest.er1 conftest.err
  6269. fi
  6270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6271. test $ac_status = 0; }
  6272. done
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6274. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6275. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6279. /* end confdefs.h. */
  6280. int
  6281. main ()
  6282. {
  6283. #ifndef __GNUC__
  6284. choke me
  6285. #endif
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_compile "$LINENO"; then :
  6291. ac_compiler_gnu=yes
  6292. else
  6293. ac_compiler_gnu=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6299. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6300. if test $ac_compiler_gnu = yes; then
  6301. GXX=yes
  6302. else
  6303. GXX=
  6304. fi
  6305. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6306. ac_save_CXXFLAGS=$CXXFLAGS
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6308. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6309. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6313. ac_cxx_werror_flag=yes
  6314. ac_cv_prog_cxx_g=no
  6315. CXXFLAGS="-g"
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. int
  6319. main ()
  6320. {
  6321. ;
  6322. return 0;
  6323. }
  6324. _ACEOF
  6325. if ac_fn_cxx_try_compile "$LINENO"; then :
  6326. ac_cv_prog_cxx_g=yes
  6327. else
  6328. CXXFLAGS=""
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. int
  6332. main ()
  6333. {
  6334. ;
  6335. return 0;
  6336. }
  6337. _ACEOF
  6338. if ac_fn_cxx_try_compile "$LINENO"; then :
  6339. else
  6340. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6341. CXXFLAGS="-g"
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. int
  6345. main ()
  6346. {
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. if ac_fn_cxx_try_compile "$LINENO"; then :
  6352. ac_cv_prog_cxx_g=yes
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6357. fi
  6358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6359. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6362. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6363. if test "$ac_test_CXXFLAGS" = set; then
  6364. CXXFLAGS=$ac_save_CXXFLAGS
  6365. elif test $ac_cv_prog_cxx_g = yes; then
  6366. if test "$GXX" = yes; then
  6367. CXXFLAGS="-g -O2"
  6368. else
  6369. CXXFLAGS="-g"
  6370. fi
  6371. else
  6372. if test "$GXX" = yes; then
  6373. CXXFLAGS="-O2"
  6374. else
  6375. CXXFLAGS=
  6376. fi
  6377. fi
  6378. ac_ext=c
  6379. ac_cpp='$CPP $CPPFLAGS'
  6380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6383. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6384. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6385. (test "X$CXX" != "Xg++"))) ; then
  6386. ac_ext=cpp
  6387. ac_cpp='$CXXCPP $CPPFLAGS'
  6388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6392. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6393. if test -z "$CXXCPP"; then
  6394. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. # Double quotes because CXXCPP needs to be expanded
  6398. for CXXCPP in "$CXX -E" "/lib/cpp"
  6399. do
  6400. ac_preproc_ok=false
  6401. for ac_cxx_preproc_warn_flag in '' yes
  6402. do
  6403. # Use a header file that comes with gcc, so configuring glibc
  6404. # with a fresh cross-compiler works.
  6405. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6406. # <limits.h> exists even on freestanding compilers.
  6407. # On the NeXT, cc -E runs the code through the compiler's parser,
  6408. # not just through cpp. "Syntax error" is here to catch this case.
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. #ifdef __STDC__
  6412. # include <limits.h>
  6413. #else
  6414. # include <assert.h>
  6415. #endif
  6416. Syntax error
  6417. _ACEOF
  6418. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6419. else
  6420. # Broken: fails on valid input.
  6421. continue
  6422. fi
  6423. rm -f conftest.err conftest.$ac_ext
  6424. # OK, works on sane cases. Now check whether nonexistent headers
  6425. # can be detected and how.
  6426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6427. /* end confdefs.h. */
  6428. #include <ac_nonexistent.h>
  6429. _ACEOF
  6430. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6431. # Broken: success on invalid input.
  6432. continue
  6433. else
  6434. # Passes both tests.
  6435. ac_preproc_ok=:
  6436. break
  6437. fi
  6438. rm -f conftest.err conftest.$ac_ext
  6439. done
  6440. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6441. rm -f conftest.err conftest.$ac_ext
  6442. if $ac_preproc_ok; then :
  6443. break
  6444. fi
  6445. done
  6446. ac_cv_prog_CXXCPP=$CXXCPP
  6447. fi
  6448. CXXCPP=$ac_cv_prog_CXXCPP
  6449. else
  6450. ac_cv_prog_CXXCPP=$CXXCPP
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6453. $as_echo "$CXXCPP" >&6; }
  6454. ac_preproc_ok=false
  6455. for ac_cxx_preproc_warn_flag in '' yes
  6456. do
  6457. # Use a header file that comes with gcc, so configuring glibc
  6458. # with a fresh cross-compiler works.
  6459. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6460. # <limits.h> exists even on freestanding compilers.
  6461. # On the NeXT, cc -E runs the code through the compiler's parser,
  6462. # not just through cpp. "Syntax error" is here to catch this case.
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. #ifdef __STDC__
  6466. # include <limits.h>
  6467. #else
  6468. # include <assert.h>
  6469. #endif
  6470. Syntax error
  6471. _ACEOF
  6472. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6473. else
  6474. # Broken: fails on valid input.
  6475. continue
  6476. fi
  6477. rm -f conftest.err conftest.$ac_ext
  6478. # OK, works on sane cases. Now check whether nonexistent headers
  6479. # can be detected and how.
  6480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6481. /* end confdefs.h. */
  6482. #include <ac_nonexistent.h>
  6483. _ACEOF
  6484. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6485. # Broken: success on invalid input.
  6486. continue
  6487. else
  6488. # Passes both tests.
  6489. ac_preproc_ok=:
  6490. break
  6491. fi
  6492. rm -f conftest.err conftest.$ac_ext
  6493. done
  6494. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6495. rm -f conftest.err conftest.$ac_ext
  6496. if $ac_preproc_ok; then :
  6497. else
  6498. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6499. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6500. _lt_caught_CXX_error=yes; }
  6501. fi
  6502. ac_ext=c
  6503. ac_cpp='$CPP $CPPFLAGS'
  6504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6507. else
  6508. _lt_caught_CXX_error=yes
  6509. fi
  6510. # Set options
  6511. enable_dlopen=no
  6512. # Check whether --enable-shared was given.
  6513. if test "${enable_shared+set}" = set; then :
  6514. enableval=$enable_shared; p=${PACKAGE-default}
  6515. case $enableval in
  6516. yes) enable_shared=yes ;;
  6517. no) enable_shared=no ;;
  6518. *)
  6519. enable_shared=no
  6520. # Look at the argument we got. We use all the common list separators.
  6521. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6522. for pkg in $enableval; do
  6523. IFS="$lt_save_ifs"
  6524. if test "X$pkg" = "X$p"; then
  6525. enable_shared=yes
  6526. fi
  6527. done
  6528. IFS="$lt_save_ifs"
  6529. ;;
  6530. esac
  6531. else
  6532. enable_shared=yes
  6533. fi
  6534. # Check whether --enable-static was given.
  6535. if test "${enable_static+set}" = set; then :
  6536. enableval=$enable_static; p=${PACKAGE-default}
  6537. case $enableval in
  6538. yes) enable_static=yes ;;
  6539. no) enable_static=no ;;
  6540. *)
  6541. enable_static=no
  6542. # Look at the argument we got. We use all the common list separators.
  6543. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6544. for pkg in $enableval; do
  6545. IFS="$lt_save_ifs"
  6546. if test "X$pkg" = "X$p"; then
  6547. enable_static=yes
  6548. fi
  6549. done
  6550. IFS="$lt_save_ifs"
  6551. ;;
  6552. esac
  6553. else
  6554. enable_static=yes
  6555. fi
  6556. # Check whether --with-pic was given.
  6557. if test "${with_pic+set}" = set; then :
  6558. withval=$with_pic; pic_mode="$withval"
  6559. else
  6560. pic_mode=default
  6561. fi
  6562. test -z "$pic_mode" && pic_mode=default
  6563. # Check whether --enable-fast-install was given.
  6564. if test "${enable_fast_install+set}" = set; then :
  6565. enableval=$enable_fast_install; p=${PACKAGE-default}
  6566. case $enableval in
  6567. yes) enable_fast_install=yes ;;
  6568. no) enable_fast_install=no ;;
  6569. *)
  6570. enable_fast_install=no
  6571. # Look at the argument we got. We use all the common list separators.
  6572. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6573. for pkg in $enableval; do
  6574. IFS="$lt_save_ifs"
  6575. if test "X$pkg" = "X$p"; then
  6576. enable_fast_install=yes
  6577. fi
  6578. done
  6579. IFS="$lt_save_ifs"
  6580. ;;
  6581. esac
  6582. else
  6583. enable_fast_install=yes
  6584. fi
  6585. # This can be used to rebuild libtool when needed
  6586. LIBTOOL_DEPS="$ltmain"
  6587. # Always use our own libtool.
  6588. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6589. test -z "$LN_S" && LN_S="ln -s"
  6590. if test -n "${ZSH_VERSION+set}" ; then
  6591. setopt NO_GLOB_SUBST
  6592. fi
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6594. $as_echo_n "checking for objdir... " >&6; }
  6595. if test "${lt_cv_objdir+set}" = set; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. rm -f .libs 2>/dev/null
  6599. mkdir .libs 2>/dev/null
  6600. if test -d .libs; then
  6601. lt_cv_objdir=.libs
  6602. else
  6603. # MS-DOS does not allow filenames that begin with a dot.
  6604. lt_cv_objdir=_libs
  6605. fi
  6606. rmdir .libs 2>/dev/null
  6607. fi
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6609. $as_echo "$lt_cv_objdir" >&6; }
  6610. objdir=$lt_cv_objdir
  6611. cat >>confdefs.h <<_ACEOF
  6612. #define LT_OBJDIR "$lt_cv_objdir/"
  6613. _ACEOF
  6614. case $host_os in
  6615. aix3*)
  6616. # AIX sometimes has problems with the GCC collect2 program. For some
  6617. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6618. # vanish in a puff of smoke.
  6619. if test "X${COLLECT_NAMES+set}" != Xset; then
  6620. COLLECT_NAMES=
  6621. export COLLECT_NAMES
  6622. fi
  6623. ;;
  6624. esac
  6625. # Sed substitution that helps us do robust quoting. It backslashifies
  6626. # metacharacters that are still active within double-quoted strings.
  6627. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6628. # Same as above, but do not quote variable references.
  6629. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6630. # Sed substitution to delay expansion of an escaped shell variable in a
  6631. # double_quote_subst'ed string.
  6632. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6633. # Sed substitution to delay expansion of an escaped single quote.
  6634. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6635. # Sed substitution to avoid accidental globbing in evaled expressions
  6636. no_glob_subst='s/\*/\\\*/g'
  6637. # Global variables:
  6638. ofile=libtool
  6639. can_build_shared=yes
  6640. # All known linkers require a `.a' archive for static linking (except MSVC,
  6641. # which needs '.lib').
  6642. libext=a
  6643. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6644. old_CC="$CC"
  6645. old_CFLAGS="$CFLAGS"
  6646. # Set sane defaults for various variables
  6647. test -z "$CC" && CC=cc
  6648. test -z "$LTCC" && LTCC=$CC
  6649. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6650. test -z "$LD" && LD=ld
  6651. test -z "$ac_objext" && ac_objext=o
  6652. for cc_temp in $compiler""; do
  6653. case $cc_temp in
  6654. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6655. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6656. \-*) ;;
  6657. *) break;;
  6658. esac
  6659. done
  6660. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6661. # Only perform the check for file, if the check method requires it
  6662. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6663. case $deplibs_check_method in
  6664. file_magic*)
  6665. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6667. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6668. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. case $MAGIC_CMD in
  6672. [\\/*] | ?:[\\/]*)
  6673. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6674. ;;
  6675. *)
  6676. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6677. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6678. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6679. for ac_dir in $ac_dummy; do
  6680. IFS="$lt_save_ifs"
  6681. test -z "$ac_dir" && ac_dir=.
  6682. if test -f $ac_dir/${ac_tool_prefix}file; then
  6683. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6684. if test -n "$file_magic_test_file"; then
  6685. case $deplibs_check_method in
  6686. "file_magic "*)
  6687. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6688. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6689. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6690. $EGREP "$file_magic_regex" > /dev/null; then
  6691. :
  6692. else
  6693. cat <<_LT_EOF 1>&2
  6694. *** Warning: the command libtool uses to detect shared libraries,
  6695. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6696. *** The result is that libtool may fail to recognize shared libraries
  6697. *** as such. This will affect the creation of libtool libraries that
  6698. *** depend on shared libraries, but programs linked with such libtool
  6699. *** libraries will work regardless of this problem. Nevertheless, you
  6700. *** may want to report the problem to your system manager and/or to
  6701. *** bug-libtool@gnu.org
  6702. _LT_EOF
  6703. fi ;;
  6704. esac
  6705. fi
  6706. break
  6707. fi
  6708. done
  6709. IFS="$lt_save_ifs"
  6710. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6711. ;;
  6712. esac
  6713. fi
  6714. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6715. if test -n "$MAGIC_CMD"; then
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6717. $as_echo "$MAGIC_CMD" >&6; }
  6718. else
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6720. $as_echo "no" >&6; }
  6721. fi
  6722. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6723. if test -n "$ac_tool_prefix"; then
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6725. $as_echo_n "checking for file... " >&6; }
  6726. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. case $MAGIC_CMD in
  6730. [\\/*] | ?:[\\/]*)
  6731. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6732. ;;
  6733. *)
  6734. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6735. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6736. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6737. for ac_dir in $ac_dummy; do
  6738. IFS="$lt_save_ifs"
  6739. test -z "$ac_dir" && ac_dir=.
  6740. if test -f $ac_dir/file; then
  6741. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6742. if test -n "$file_magic_test_file"; then
  6743. case $deplibs_check_method in
  6744. "file_magic "*)
  6745. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6746. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6747. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6748. $EGREP "$file_magic_regex" > /dev/null; then
  6749. :
  6750. else
  6751. cat <<_LT_EOF 1>&2
  6752. *** Warning: the command libtool uses to detect shared libraries,
  6753. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6754. *** The result is that libtool may fail to recognize shared libraries
  6755. *** as such. This will affect the creation of libtool libraries that
  6756. *** depend on shared libraries, but programs linked with such libtool
  6757. *** libraries will work regardless of this problem. Nevertheless, you
  6758. *** may want to report the problem to your system manager and/or to
  6759. *** bug-libtool@gnu.org
  6760. _LT_EOF
  6761. fi ;;
  6762. esac
  6763. fi
  6764. break
  6765. fi
  6766. done
  6767. IFS="$lt_save_ifs"
  6768. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6769. ;;
  6770. esac
  6771. fi
  6772. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6773. if test -n "$MAGIC_CMD"; then
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6775. $as_echo "$MAGIC_CMD" >&6; }
  6776. else
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6778. $as_echo "no" >&6; }
  6779. fi
  6780. else
  6781. MAGIC_CMD=:
  6782. fi
  6783. fi
  6784. fi
  6785. ;;
  6786. esac
  6787. # Use C for the default configuration in the libtool script
  6788. lt_save_CC="$CC"
  6789. ac_ext=c
  6790. ac_cpp='$CPP $CPPFLAGS'
  6791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6794. # Source file extension for C test sources.
  6795. ac_ext=c
  6796. # Object file extension for compiled C test sources.
  6797. objext=o
  6798. objext=$objext
  6799. # Code to be used in simple compile tests
  6800. lt_simple_compile_test_code="int some_variable = 0;"
  6801. # Code to be used in simple link tests
  6802. lt_simple_link_test_code='int main(){return(0);}'
  6803. # If no C compiler was specified, use CC.
  6804. LTCC=${LTCC-"$CC"}
  6805. # If no C compiler flags were specified, use CFLAGS.
  6806. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6807. # Allow CC to be a program name with arguments.
  6808. compiler=$CC
  6809. # Save the default compiler, since it gets overwritten when the other
  6810. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6811. compiler_DEFAULT=$CC
  6812. # save warnings/boilerplate of simple test code
  6813. ac_outfile=conftest.$ac_objext
  6814. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6815. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6816. _lt_compiler_boilerplate=`cat conftest.err`
  6817. $RM conftest*
  6818. ac_outfile=conftest.$ac_objext
  6819. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6820. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6821. _lt_linker_boilerplate=`cat conftest.err`
  6822. $RM -r conftest*
  6823. if test -n "$compiler"; then
  6824. lt_prog_compiler_no_builtin_flag=
  6825. if test "$GCC" = yes; then
  6826. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6828. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6829. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. lt_cv_prog_compiler_rtti_exceptions=no
  6833. ac_outfile=conftest.$ac_objext
  6834. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6835. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6836. # Insert the option either (1) after the last *FLAGS variable, or
  6837. # (2) before a word containing "conftest.", or (3) at the end.
  6838. # Note that $ac_compile itself does not contain backslashes and begins
  6839. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6840. # The option is referenced via a variable to avoid confusing sed.
  6841. lt_compile=`echo "$ac_compile" | $SED \
  6842. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6844. -e 's:$: $lt_compiler_flag:'`
  6845. (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
  6846. (eval "$lt_compile" 2>conftest.err)
  6847. ac_status=$?
  6848. cat conftest.err >&5
  6849. echo "$as_me:7822: \$? = $ac_status" >&5
  6850. if (exit $ac_status) && test -s "$ac_outfile"; then
  6851. # The compiler can only warn and ignore the option if not recognized
  6852. # So say no if there are warnings other than the usual output.
  6853. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6854. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6855. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6856. lt_cv_prog_compiler_rtti_exceptions=yes
  6857. fi
  6858. fi
  6859. $RM conftest*
  6860. fi
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6862. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6863. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6864. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6865. else
  6866. :
  6867. fi
  6868. fi
  6869. lt_prog_compiler_wl=
  6870. lt_prog_compiler_pic=
  6871. lt_prog_compiler_static=
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6873. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6874. if test "$GCC" = yes; then
  6875. lt_prog_compiler_wl='-Wl,'
  6876. lt_prog_compiler_static='-static'
  6877. case $host_os in
  6878. aix*)
  6879. # All AIX code is PIC.
  6880. if test "$host_cpu" = ia64; then
  6881. # AIX 5 now supports IA64 processor
  6882. lt_prog_compiler_static='-Bstatic'
  6883. fi
  6884. ;;
  6885. amigaos*)
  6886. case $host_cpu in
  6887. powerpc)
  6888. # see comment about AmigaOS4 .so support
  6889. lt_prog_compiler_pic='-fPIC'
  6890. ;;
  6891. m68k)
  6892. # FIXME: we need at least 68020 code to build shared libraries, but
  6893. # adding the `-m68020' flag to GCC prevents building anything better,
  6894. # like `-m68040'.
  6895. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6896. ;;
  6897. esac
  6898. ;;
  6899. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6900. # PIC is the default for these OSes.
  6901. ;;
  6902. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6903. # This hack is so that the source file can tell whether it is being
  6904. # built for inclusion in a dll (and should export symbols for example).
  6905. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6906. # (--disable-auto-import) libraries
  6907. lt_prog_compiler_pic='-DDLL_EXPORT'
  6908. ;;
  6909. darwin* | rhapsody*)
  6910. # PIC is the default on this platform
  6911. # Common symbols not allowed in MH_DYLIB files
  6912. lt_prog_compiler_pic='-fno-common'
  6913. ;;
  6914. hpux*)
  6915. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6916. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6917. # sets the default TLS model and affects inlining.
  6918. case $host_cpu in
  6919. hppa*64*)
  6920. # +Z the default
  6921. ;;
  6922. *)
  6923. lt_prog_compiler_pic='-fPIC'
  6924. ;;
  6925. esac
  6926. ;;
  6927. interix[3-9]*)
  6928. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6929. # Instead, we relocate shared libraries at runtime.
  6930. ;;
  6931. msdosdjgpp*)
  6932. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6933. # on systems that don't support them.
  6934. lt_prog_compiler_can_build_shared=no
  6935. enable_shared=no
  6936. ;;
  6937. *nto* | *qnx*)
  6938. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6939. # it will coredump.
  6940. lt_prog_compiler_pic='-fPIC -shared'
  6941. ;;
  6942. sysv4*MP*)
  6943. if test -d /usr/nec; then
  6944. lt_prog_compiler_pic=-Kconform_pic
  6945. fi
  6946. ;;
  6947. *)
  6948. lt_prog_compiler_pic='-fPIC'
  6949. ;;
  6950. esac
  6951. else
  6952. # PORTME Check for flag to pass linker flags through the system compiler.
  6953. case $host_os in
  6954. aix*)
  6955. lt_prog_compiler_wl='-Wl,'
  6956. if test "$host_cpu" = ia64; then
  6957. # AIX 5 now supports IA64 processor
  6958. lt_prog_compiler_static='-Bstatic'
  6959. else
  6960. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6961. fi
  6962. ;;
  6963. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6964. # This hack is so that the source file can tell whether it is being
  6965. # built for inclusion in a dll (and should export symbols for example).
  6966. lt_prog_compiler_pic='-DDLL_EXPORT'
  6967. ;;
  6968. hpux9* | hpux10* | hpux11*)
  6969. lt_prog_compiler_wl='-Wl,'
  6970. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6971. # not for PA HP-UX.
  6972. case $host_cpu in
  6973. hppa*64*|ia64*)
  6974. # +Z the default
  6975. ;;
  6976. *)
  6977. lt_prog_compiler_pic='+Z'
  6978. ;;
  6979. esac
  6980. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6981. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6982. ;;
  6983. irix5* | irix6* | nonstopux*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # PIC (with -KPIC) is the default.
  6986. lt_prog_compiler_static='-non_shared'
  6987. ;;
  6988. linux* | k*bsd*-gnu)
  6989. case $cc_basename in
  6990. # old Intel for x86_64 which still supported -KPIC.
  6991. ecc*)
  6992. lt_prog_compiler_wl='-Wl,'
  6993. lt_prog_compiler_pic='-KPIC'
  6994. lt_prog_compiler_static='-static'
  6995. ;;
  6996. # icc used to be incompatible with GCC.
  6997. # ICC 10 doesn't accept -KPIC any more.
  6998. icc* | ifort*)
  6999. lt_prog_compiler_wl='-Wl,'
  7000. lt_prog_compiler_pic='-fPIC'
  7001. lt_prog_compiler_static='-static'
  7002. ;;
  7003. # Lahey Fortran 8.1.
  7004. lf95*)
  7005. lt_prog_compiler_wl='-Wl,'
  7006. lt_prog_compiler_pic='--shared'
  7007. lt_prog_compiler_static='--static'
  7008. ;;
  7009. pgcc* | pgf77* | pgf90* | pgf95*)
  7010. # Portland Group compilers (*not* the Pentium gcc compiler,
  7011. # which looks to be a dead project)
  7012. lt_prog_compiler_wl='-Wl,'
  7013. lt_prog_compiler_pic='-fpic'
  7014. lt_prog_compiler_static='-Bstatic'
  7015. ;;
  7016. ccc*)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. # All Alpha code is PIC.
  7019. lt_prog_compiler_static='-non_shared'
  7020. ;;
  7021. xl*)
  7022. # IBM XL C 8.0/Fortran 10.1 on PPC
  7023. lt_prog_compiler_wl='-Wl,'
  7024. lt_prog_compiler_pic='-qpic'
  7025. lt_prog_compiler_static='-qstaticlink'
  7026. ;;
  7027. *)
  7028. case `$CC -V 2>&1 | sed 5q` in
  7029. *Sun\ C*)
  7030. # Sun C 5.9
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-Bstatic'
  7033. lt_prog_compiler_wl='-Wl,'
  7034. ;;
  7035. *Sun\ F*)
  7036. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7037. lt_prog_compiler_pic='-KPIC'
  7038. lt_prog_compiler_static='-Bstatic'
  7039. lt_prog_compiler_wl=''
  7040. ;;
  7041. esac
  7042. ;;
  7043. esac
  7044. ;;
  7045. newsos6)
  7046. lt_prog_compiler_pic='-KPIC'
  7047. lt_prog_compiler_static='-Bstatic'
  7048. ;;
  7049. *nto* | *qnx*)
  7050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7051. # it will coredump.
  7052. lt_prog_compiler_pic='-fPIC -shared'
  7053. ;;
  7054. osf3* | osf4* | osf5*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. # All OSF/1 code is PIC.
  7057. lt_prog_compiler_static='-non_shared'
  7058. ;;
  7059. rdos*)
  7060. lt_prog_compiler_static='-non_shared'
  7061. ;;
  7062. solaris*)
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. case $cc_basename in
  7066. f77* | f90* | f95*)
  7067. lt_prog_compiler_wl='-Qoption ld ';;
  7068. *)
  7069. lt_prog_compiler_wl='-Wl,';;
  7070. esac
  7071. ;;
  7072. sunos4*)
  7073. lt_prog_compiler_wl='-Qoption ld '
  7074. lt_prog_compiler_pic='-PIC'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. ;;
  7077. sysv4 | sysv4.2uw2* | sysv4.3*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-KPIC'
  7080. lt_prog_compiler_static='-Bstatic'
  7081. ;;
  7082. sysv4*MP*)
  7083. if test -d /usr/nec ;then
  7084. lt_prog_compiler_pic='-Kconform_pic'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. fi
  7087. ;;
  7088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7089. lt_prog_compiler_wl='-Wl,'
  7090. lt_prog_compiler_pic='-KPIC'
  7091. lt_prog_compiler_static='-Bstatic'
  7092. ;;
  7093. unicos*)
  7094. lt_prog_compiler_wl='-Wl,'
  7095. lt_prog_compiler_can_build_shared=no
  7096. ;;
  7097. uts4*)
  7098. lt_prog_compiler_pic='-pic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. *)
  7102. lt_prog_compiler_can_build_shared=no
  7103. ;;
  7104. esac
  7105. fi
  7106. case $host_os in
  7107. # For platforms which do not support PIC, -DPIC is meaningless:
  7108. *djgpp*)
  7109. lt_prog_compiler_pic=
  7110. ;;
  7111. *)
  7112. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7113. ;;
  7114. esac
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7116. $as_echo "$lt_prog_compiler_pic" >&6; }
  7117. #
  7118. # Check to make sure the PIC flag actually works.
  7119. #
  7120. if test -n "$lt_prog_compiler_pic"; then
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7122. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7123. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. lt_cv_prog_compiler_pic_works=no
  7127. ac_outfile=conftest.$ac_objext
  7128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7129. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7130. # Insert the option either (1) after the last *FLAGS variable, or
  7131. # (2) before a word containing "conftest.", or (3) at the end.
  7132. # Note that $ac_compile itself does not contain backslashes and begins
  7133. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7134. # The option is referenced via a variable to avoid confusing sed.
  7135. lt_compile=`echo "$ac_compile" | $SED \
  7136. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7137. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7138. -e 's:$: $lt_compiler_flag:'`
  7139. (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
  7140. (eval "$lt_compile" 2>conftest.err)
  7141. ac_status=$?
  7142. cat conftest.err >&5
  7143. echo "$as_me:8161: \$? = $ac_status" >&5
  7144. if (exit $ac_status) && test -s "$ac_outfile"; then
  7145. # The compiler can only warn and ignore the option if not recognized
  7146. # So say no if there are warnings other than the usual output.
  7147. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7148. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7149. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7150. lt_cv_prog_compiler_pic_works=yes
  7151. fi
  7152. fi
  7153. $RM conftest*
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7156. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7157. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7158. case $lt_prog_compiler_pic in
  7159. "" | " "*) ;;
  7160. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7161. esac
  7162. else
  7163. lt_prog_compiler_pic=
  7164. lt_prog_compiler_can_build_shared=no
  7165. fi
  7166. fi
  7167. #
  7168. # Check to make sure the static flag actually works.
  7169. #
  7170. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7172. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7173. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. lt_cv_prog_compiler_static_works=no
  7177. save_LDFLAGS="$LDFLAGS"
  7178. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7179. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7181. # The linker can only warn and ignore the option if not recognized
  7182. # So say no if there are warnings
  7183. if test -s conftest.err; then
  7184. # Append any errors to the config.log.
  7185. cat conftest.err 1>&5
  7186. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7188. if diff conftest.exp conftest.er2 >/dev/null; then
  7189. lt_cv_prog_compiler_static_works=yes
  7190. fi
  7191. else
  7192. lt_cv_prog_compiler_static_works=yes
  7193. fi
  7194. fi
  7195. $RM -r conftest*
  7196. LDFLAGS="$save_LDFLAGS"
  7197. fi
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7199. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7200. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7201. :
  7202. else
  7203. lt_prog_compiler_static=
  7204. fi
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7206. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7207. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7208. $as_echo_n "(cached) " >&6
  7209. else
  7210. lt_cv_prog_compiler_c_o=no
  7211. $RM -r conftest 2>/dev/null
  7212. mkdir conftest
  7213. cd conftest
  7214. mkdir out
  7215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7216. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7217. # Insert the option either (1) after the last *FLAGS variable, or
  7218. # (2) before a word containing "conftest.", or (3) at the end.
  7219. # Note that $ac_compile itself does not contain backslashes and begins
  7220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7221. lt_compile=`echo "$ac_compile" | $SED \
  7222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7224. -e 's:$: $lt_compiler_flag:'`
  7225. (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
  7226. (eval "$lt_compile" 2>out/conftest.err)
  7227. ac_status=$?
  7228. cat out/conftest.err >&5
  7229. echo "$as_me:8266: \$? = $ac_status" >&5
  7230. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7231. then
  7232. # The compiler can only warn and ignore the option if not recognized
  7233. # So say no if there are warnings
  7234. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7235. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7236. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7237. lt_cv_prog_compiler_c_o=yes
  7238. fi
  7239. fi
  7240. chmod u+w . 2>&5
  7241. $RM conftest*
  7242. # SGI C++ compiler will create directory out/ii_files/ for
  7243. # template instantiation
  7244. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7245. $RM out/* && rmdir out
  7246. cd ..
  7247. $RM -r conftest
  7248. $RM conftest*
  7249. fi
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7251. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7253. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7254. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. lt_cv_prog_compiler_c_o=no
  7258. $RM -r conftest 2>/dev/null
  7259. mkdir conftest
  7260. cd conftest
  7261. mkdir out
  7262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7263. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7264. # Insert the option either (1) after the last *FLAGS variable, or
  7265. # (2) before a word containing "conftest.", or (3) at the end.
  7266. # Note that $ac_compile itself does not contain backslashes and begins
  7267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7268. lt_compile=`echo "$ac_compile" | $SED \
  7269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7271. -e 's:$: $lt_compiler_flag:'`
  7272. (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
  7273. (eval "$lt_compile" 2>out/conftest.err)
  7274. ac_status=$?
  7275. cat out/conftest.err >&5
  7276. echo "$as_me:8321: \$? = $ac_status" >&5
  7277. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7278. then
  7279. # The compiler can only warn and ignore the option if not recognized
  7280. # So say no if there are warnings
  7281. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7282. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7283. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7284. lt_cv_prog_compiler_c_o=yes
  7285. fi
  7286. fi
  7287. chmod u+w . 2>&5
  7288. $RM conftest*
  7289. # SGI C++ compiler will create directory out/ii_files/ for
  7290. # template instantiation
  7291. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7292. $RM out/* && rmdir out
  7293. cd ..
  7294. $RM -r conftest
  7295. $RM conftest*
  7296. fi
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7298. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7299. hard_links="nottested"
  7300. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7301. # do not overwrite the value of need_locks provided by the user
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7303. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7304. hard_links=yes
  7305. $RM conftest*
  7306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7307. touch conftest.a
  7308. ln conftest.a conftest.b 2>&5 || hard_links=no
  7309. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7311. $as_echo "$hard_links" >&6; }
  7312. if test "$hard_links" = no; then
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7314. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7315. need_locks=warn
  7316. fi
  7317. else
  7318. need_locks=no
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7321. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7322. runpath_var=
  7323. allow_undefined_flag=
  7324. always_export_symbols=no
  7325. archive_cmds=
  7326. archive_expsym_cmds=
  7327. compiler_needs_object=no
  7328. enable_shared_with_static_runtimes=no
  7329. export_dynamic_flag_spec=
  7330. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7331. hardcode_automatic=no
  7332. hardcode_direct=no
  7333. hardcode_direct_absolute=no
  7334. hardcode_libdir_flag_spec=
  7335. hardcode_libdir_flag_spec_ld=
  7336. hardcode_libdir_separator=
  7337. hardcode_minus_L=no
  7338. hardcode_shlibpath_var=unsupported
  7339. inherit_rpath=no
  7340. link_all_deplibs=unknown
  7341. module_cmds=
  7342. module_expsym_cmds=
  7343. old_archive_from_new_cmds=
  7344. old_archive_from_expsyms_cmds=
  7345. thread_safe_flag_spec=
  7346. whole_archive_flag_spec=
  7347. # include_expsyms should be a list of space-separated symbols to be *always*
  7348. # included in the symbol list
  7349. include_expsyms=
  7350. # exclude_expsyms can be an extended regexp of symbols to exclude
  7351. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7352. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7353. # as well as any symbol that contains `d'.
  7354. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7355. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7356. # platforms (ab)use it in PIC code, but their linkers get confused if
  7357. # the symbol is explicitly referenced. Since portable code cannot
  7358. # rely on this symbol name, it's probably fine to never include it in
  7359. # preloaded symbol tables.
  7360. # Exclude shared library initialization/finalization symbols.
  7361. extract_expsyms_cmds=
  7362. case $host_os in
  7363. cygwin* | mingw* | pw32* | cegcc*)
  7364. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7365. # When not using gcc, we currently assume that we are using
  7366. # Microsoft Visual C++.
  7367. if test "$GCC" != yes; then
  7368. with_gnu_ld=no
  7369. fi
  7370. ;;
  7371. interix*)
  7372. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7373. with_gnu_ld=yes
  7374. ;;
  7375. openbsd*)
  7376. with_gnu_ld=no
  7377. ;;
  7378. linux* | k*bsd*-gnu)
  7379. link_all_deplibs=no
  7380. ;;
  7381. esac
  7382. ld_shlibs=yes
  7383. if test "$with_gnu_ld" = yes; then
  7384. # If archive_cmds runs LD, not CC, wlarc should be empty
  7385. wlarc='${wl}'
  7386. # Set some defaults for GNU ld with shared library support. These
  7387. # are reset later if shared libraries are not supported. Putting them
  7388. # here allows them to be overridden if necessary.
  7389. runpath_var=LD_RUN_PATH
  7390. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7391. export_dynamic_flag_spec='${wl}--export-dynamic'
  7392. # ancient GNU ld didn't support --whole-archive et. al.
  7393. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7394. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7395. else
  7396. whole_archive_flag_spec=
  7397. fi
  7398. supports_anon_versioning=no
  7399. case `$LD -v 2>&1` in
  7400. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7401. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7402. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7403. *\ 2.11.*) ;; # other 2.11 versions
  7404. *) supports_anon_versioning=yes ;;
  7405. esac
  7406. # See if GNU ld supports shared libraries.
  7407. case $host_os in
  7408. aix[3-9]*)
  7409. # On AIX/PPC, the GNU linker is very broken
  7410. if test "$host_cpu" != ia64; then
  7411. ld_shlibs=no
  7412. cat <<_LT_EOF 1>&2
  7413. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7414. *** to be unable to reliably create shared libraries on AIX.
  7415. *** Therefore, libtool is disabling shared libraries support. If you
  7416. *** really care for shared libraries, you may want to modify your PATH
  7417. *** so that a non-GNU linker is found, and then restart.
  7418. _LT_EOF
  7419. fi
  7420. ;;
  7421. amigaos*)
  7422. case $host_cpu in
  7423. powerpc)
  7424. # see comment about AmigaOS4 .so support
  7425. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7426. archive_expsym_cmds=''
  7427. ;;
  7428. m68k)
  7429. 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)'
  7430. hardcode_libdir_flag_spec='-L$libdir'
  7431. hardcode_minus_L=yes
  7432. ;;
  7433. esac
  7434. ;;
  7435. beos*)
  7436. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7437. allow_undefined_flag=unsupported
  7438. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7439. # support --undefined. This deserves some investigation. FIXME
  7440. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7441. else
  7442. ld_shlibs=no
  7443. fi
  7444. ;;
  7445. cygwin* | mingw* | pw32* | cegcc*)
  7446. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7447. # as there is no search path for DLLs.
  7448. hardcode_libdir_flag_spec='-L$libdir'
  7449. allow_undefined_flag=unsupported
  7450. always_export_symbols=no
  7451. enable_shared_with_static_runtimes=yes
  7452. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7453. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7454. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7455. # If the export-symbols file already is a .def file (1st line
  7456. # is EXPORTS), use it as is; otherwise, prepend...
  7457. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7458. cp $export_symbols $output_objdir/$soname.def;
  7459. else
  7460. echo EXPORTS > $output_objdir/$soname.def;
  7461. cat $export_symbols >> $output_objdir/$soname.def;
  7462. fi~
  7463. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7464. else
  7465. ld_shlibs=no
  7466. fi
  7467. ;;
  7468. interix[3-9]*)
  7469. hardcode_direct=no
  7470. hardcode_shlibpath_var=no
  7471. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7472. export_dynamic_flag_spec='${wl}-E'
  7473. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7474. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7475. # default) and relocated if they conflict, which is a slow very memory
  7476. # consuming and fragmenting process. To avoid this, we pick a random,
  7477. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7478. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7479. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7480. 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'
  7481. ;;
  7482. gnu* | linux* | tpf* | k*bsd*-gnu)
  7483. tmp_diet=no
  7484. if test "$host_os" = linux-dietlibc; then
  7485. case $cc_basename in
  7486. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7487. esac
  7488. fi
  7489. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7490. && test "$tmp_diet" = no
  7491. then
  7492. tmp_addflag=
  7493. tmp_sharedflag='-shared'
  7494. case $cc_basename,$host_cpu in
  7495. pgcc*) # Portland Group C compiler
  7496. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7497. tmp_addflag=' $pic_flag'
  7498. ;;
  7499. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7500. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7501. tmp_addflag=' $pic_flag -Mnomain' ;;
  7502. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7503. tmp_addflag=' -i_dynamic' ;;
  7504. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7505. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7506. ifc* | ifort*) # Intel Fortran compiler
  7507. tmp_addflag=' -nofor_main' ;;
  7508. lf95*) # Lahey Fortran 8.1
  7509. whole_archive_flag_spec=
  7510. tmp_sharedflag='--shared' ;;
  7511. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7512. tmp_sharedflag='-qmkshrobj'
  7513. tmp_addflag= ;;
  7514. esac
  7515. case `$CC -V 2>&1 | sed 5q` in
  7516. *Sun\ C*) # Sun C 5.9
  7517. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7518. compiler_needs_object=yes
  7519. tmp_sharedflag='-G' ;;
  7520. *Sun\ F*) # Sun Fortran 8.3
  7521. tmp_sharedflag='-G' ;;
  7522. esac
  7523. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7524. if test "x$supports_anon_versioning" = xyes; then
  7525. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7526. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7527. echo "local: *; };" >> $output_objdir/$libname.ver~
  7528. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7529. fi
  7530. case $cc_basename in
  7531. xlf*)
  7532. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7533. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7534. hardcode_libdir_flag_spec=
  7535. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7536. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7537. if test "x$supports_anon_versioning" = xyes; then
  7538. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7539. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7540. echo "local: *; };" >> $output_objdir/$libname.ver~
  7541. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7542. fi
  7543. ;;
  7544. esac
  7545. else
  7546. ld_shlibs=no
  7547. fi
  7548. ;;
  7549. netbsd* | netbsdelf*-gnu)
  7550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7551. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7552. wlarc=
  7553. else
  7554. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7555. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7556. fi
  7557. ;;
  7558. solaris*)
  7559. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7560. ld_shlibs=no
  7561. cat <<_LT_EOF 1>&2
  7562. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7563. *** create shared libraries on Solaris systems. Therefore, libtool
  7564. *** is disabling shared libraries support. We urge you to upgrade GNU
  7565. *** binutils to release 2.9.1 or newer. Another option is to modify
  7566. *** your PATH or compiler configuration so that the native linker is
  7567. *** used, and then restart.
  7568. _LT_EOF
  7569. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7571. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7572. else
  7573. ld_shlibs=no
  7574. fi
  7575. ;;
  7576. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7577. case `$LD -v 2>&1` in
  7578. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7579. ld_shlibs=no
  7580. cat <<_LT_EOF 1>&2
  7581. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7582. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7583. *** is disabling shared libraries support. We urge you to upgrade GNU
  7584. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7585. *** your PATH or compiler configuration so that the native linker is
  7586. *** used, and then restart.
  7587. _LT_EOF
  7588. ;;
  7589. *)
  7590. # For security reasons, it is highly recommended that you always
  7591. # use absolute paths for naming shared libraries, and exclude the
  7592. # DT_RUNPATH tag from executables and libraries. But doing so
  7593. # requires that you compile everything twice, which is a pain.
  7594. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7595. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7597. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7598. else
  7599. ld_shlibs=no
  7600. fi
  7601. ;;
  7602. esac
  7603. ;;
  7604. sunos4*)
  7605. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7606. wlarc=
  7607. hardcode_direct=yes
  7608. hardcode_shlibpath_var=no
  7609. ;;
  7610. *)
  7611. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7613. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7614. else
  7615. ld_shlibs=no
  7616. fi
  7617. ;;
  7618. esac
  7619. if test "$ld_shlibs" = no; then
  7620. runpath_var=
  7621. hardcode_libdir_flag_spec=
  7622. export_dynamic_flag_spec=
  7623. whole_archive_flag_spec=
  7624. fi
  7625. else
  7626. # PORTME fill in a description of your system's linker (not GNU ld)
  7627. case $host_os in
  7628. aix3*)
  7629. allow_undefined_flag=unsupported
  7630. always_export_symbols=yes
  7631. 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'
  7632. # Note: this linker hardcodes the directories in LIBPATH if there
  7633. # are no directories specified by -L.
  7634. hardcode_minus_L=yes
  7635. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7636. # Neither direct hardcoding nor static linking is supported with a
  7637. # broken collect2.
  7638. hardcode_direct=unsupported
  7639. fi
  7640. ;;
  7641. aix[4-9]*)
  7642. if test "$host_cpu" = ia64; then
  7643. # On IA64, the linker does run time linking by default, so we don't
  7644. # have to do anything special.
  7645. aix_use_runtimelinking=no
  7646. exp_sym_flag='-Bexport'
  7647. no_entry_flag=""
  7648. else
  7649. # If we're using GNU nm, then we don't want the "-C" option.
  7650. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7651. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7652. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7653. else
  7654. 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'
  7655. fi
  7656. aix_use_runtimelinking=no
  7657. # Test if we are trying to use run time linking or normal
  7658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7659. # need to do runtime linking.
  7660. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7661. for ld_flag in $LDFLAGS; do
  7662. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7663. aix_use_runtimelinking=yes
  7664. break
  7665. fi
  7666. done
  7667. ;;
  7668. esac
  7669. exp_sym_flag='-bexport'
  7670. no_entry_flag='-bnoentry'
  7671. fi
  7672. # When large executables or shared objects are built, AIX ld can
  7673. # have problems creating the table of contents. If linking a library
  7674. # or program results in "error TOC overflow" add -mminimal-toc to
  7675. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7676. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7677. archive_cmds=''
  7678. hardcode_direct=yes
  7679. hardcode_direct_absolute=yes
  7680. hardcode_libdir_separator=':'
  7681. link_all_deplibs=yes
  7682. file_list_spec='${wl}-f,'
  7683. if test "$GCC" = yes; then
  7684. case $host_os in aix4.[012]|aix4.[012].*)
  7685. # We only want to do this on AIX 4.2 and lower, the check
  7686. # below for broken collect2 doesn't work under 4.3+
  7687. collect2name=`${CC} -print-prog-name=collect2`
  7688. if test -f "$collect2name" &&
  7689. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7690. then
  7691. # We have reworked collect2
  7692. :
  7693. else
  7694. # We have old collect2
  7695. hardcode_direct=unsupported
  7696. # It fails to find uninstalled libraries when the uninstalled
  7697. # path is not listed in the libpath. Setting hardcode_minus_L
  7698. # to unsupported forces relinking
  7699. hardcode_minus_L=yes
  7700. hardcode_libdir_flag_spec='-L$libdir'
  7701. hardcode_libdir_separator=
  7702. fi
  7703. ;;
  7704. esac
  7705. shared_flag='-shared'
  7706. if test "$aix_use_runtimelinking" = yes; then
  7707. shared_flag="$shared_flag "'${wl}-G'
  7708. fi
  7709. link_all_deplibs=no
  7710. else
  7711. # not using gcc
  7712. if test "$host_cpu" = ia64; then
  7713. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7714. # chokes on -Wl,-G. The following line is correct:
  7715. shared_flag='-G'
  7716. else
  7717. if test "$aix_use_runtimelinking" = yes; then
  7718. shared_flag='${wl}-G'
  7719. else
  7720. shared_flag='${wl}-bM:SRE'
  7721. fi
  7722. fi
  7723. fi
  7724. export_dynamic_flag_spec='${wl}-bexpall'
  7725. # It seems that -bexpall does not export symbols beginning with
  7726. # underscore (_), so it is better to generate a list of symbols to export.
  7727. always_export_symbols=yes
  7728. if test "$aix_use_runtimelinking" = yes; then
  7729. # Warning - without using the other runtime loading flags (-brtl),
  7730. # -berok will link without error, but may produce a broken library.
  7731. allow_undefined_flag='-berok'
  7732. # Determine the default libpath from the value encoded in an
  7733. # empty executable.
  7734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7735. /* end confdefs.h. */
  7736. int
  7737. main ()
  7738. {
  7739. ;
  7740. return 0;
  7741. }
  7742. _ACEOF
  7743. if ac_fn_c_try_link "$LINENO"; then :
  7744. lt_aix_libpath_sed='
  7745. /Import File Strings/,/^$/ {
  7746. /^0/ {
  7747. s/^0 *\(.*\)$/\1/
  7748. p
  7749. }
  7750. }'
  7751. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7752. # Check for a 64-bit object if we didn't find anything.
  7753. if test -z "$aix_libpath"; then
  7754. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7755. fi
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext \
  7758. conftest$ac_exeext conftest.$ac_ext
  7759. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7760. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7761. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7762. else
  7763. if test "$host_cpu" = ia64; then
  7764. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7765. allow_undefined_flag="-z nodefs"
  7766. 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"
  7767. else
  7768. # Determine the default libpath from the value encoded in an
  7769. # empty executable.
  7770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h. */
  7772. int
  7773. main ()
  7774. {
  7775. ;
  7776. return 0;
  7777. }
  7778. _ACEOF
  7779. if ac_fn_c_try_link "$LINENO"; then :
  7780. lt_aix_libpath_sed='
  7781. /Import File Strings/,/^$/ {
  7782. /^0/ {
  7783. s/^0 *\(.*\)$/\1/
  7784. p
  7785. }
  7786. }'
  7787. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7788. # Check for a 64-bit object if we didn't find anything.
  7789. if test -z "$aix_libpath"; then
  7790. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7791. fi
  7792. fi
  7793. rm -f core conftest.err conftest.$ac_objext \
  7794. conftest$ac_exeext conftest.$ac_ext
  7795. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7796. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7797. # Warning - without using the other run time loading flags,
  7798. # -berok will link without error, but may produce a broken library.
  7799. no_undefined_flag=' ${wl}-bernotok'
  7800. allow_undefined_flag=' ${wl}-berok'
  7801. # Exported symbols can be pulled into shared objects from archives
  7802. whole_archive_flag_spec='$convenience'
  7803. archive_cmds_need_lc=yes
  7804. # This is similar to how AIX traditionally builds its shared libraries.
  7805. 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'
  7806. fi
  7807. fi
  7808. ;;
  7809. amigaos*)
  7810. case $host_cpu in
  7811. powerpc)
  7812. # see comment about AmigaOS4 .so support
  7813. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7814. archive_expsym_cmds=''
  7815. ;;
  7816. m68k)
  7817. 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)'
  7818. hardcode_libdir_flag_spec='-L$libdir'
  7819. hardcode_minus_L=yes
  7820. ;;
  7821. esac
  7822. ;;
  7823. bsdi[45]*)
  7824. export_dynamic_flag_spec=-rdynamic
  7825. ;;
  7826. cygwin* | mingw* | pw32* | cegcc*)
  7827. # When not using gcc, we currently assume that we are using
  7828. # Microsoft Visual C++.
  7829. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7830. # no search path for DLLs.
  7831. hardcode_libdir_flag_spec=' '
  7832. allow_undefined_flag=unsupported
  7833. # Tell ltmain to make .lib files, not .a files.
  7834. libext=lib
  7835. # Tell ltmain to make .dll files, not .so files.
  7836. shrext_cmds=".dll"
  7837. # FIXME: Setting linknames here is a bad hack.
  7838. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7839. # The linker will automatically build a .lib file if we build a DLL.
  7840. old_archive_from_new_cmds='true'
  7841. # FIXME: Should let the user specify the lib program.
  7842. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7843. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7844. enable_shared_with_static_runtimes=yes
  7845. ;;
  7846. darwin* | rhapsody*)
  7847. archive_cmds_need_lc=no
  7848. hardcode_direct=no
  7849. hardcode_automatic=yes
  7850. hardcode_shlibpath_var=unsupported
  7851. whole_archive_flag_spec=''
  7852. link_all_deplibs=yes
  7853. allow_undefined_flag="$_lt_dar_allow_undefined"
  7854. case $cc_basename in
  7855. ifort*) _lt_dar_can_shared=yes ;;
  7856. *) _lt_dar_can_shared=$GCC ;;
  7857. esac
  7858. if test "$_lt_dar_can_shared" = "yes"; then
  7859. output_verbose_link_cmd=echo
  7860. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7861. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7862. 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}"
  7863. 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}"
  7864. else
  7865. ld_shlibs=no
  7866. fi
  7867. ;;
  7868. dgux*)
  7869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7870. hardcode_libdir_flag_spec='-L$libdir'
  7871. hardcode_shlibpath_var=no
  7872. ;;
  7873. freebsd1*)
  7874. ld_shlibs=no
  7875. ;;
  7876. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7877. # support. Future versions do this automatically, but an explicit c++rt0.o
  7878. # does not break anything, and helps significantly (at the cost of a little
  7879. # extra space).
  7880. freebsd2.2*)
  7881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7882. hardcode_libdir_flag_spec='-R$libdir'
  7883. hardcode_direct=yes
  7884. hardcode_shlibpath_var=no
  7885. ;;
  7886. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7887. freebsd2*)
  7888. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7889. hardcode_direct=yes
  7890. hardcode_minus_L=yes
  7891. hardcode_shlibpath_var=no
  7892. ;;
  7893. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7894. freebsd* | dragonfly*)
  7895. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7896. hardcode_libdir_flag_spec='-R$libdir'
  7897. hardcode_direct=yes
  7898. hardcode_shlibpath_var=no
  7899. ;;
  7900. hpux9*)
  7901. if test "$GCC" = yes; then
  7902. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7903. else
  7904. 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'
  7905. fi
  7906. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7907. hardcode_libdir_separator=:
  7908. hardcode_direct=yes
  7909. # hardcode_minus_L: Not really in the search PATH,
  7910. # but as the default location of the library.
  7911. hardcode_minus_L=yes
  7912. export_dynamic_flag_spec='${wl}-E'
  7913. ;;
  7914. hpux10*)
  7915. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7916. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7917. else
  7918. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7919. fi
  7920. if test "$with_gnu_ld" = no; then
  7921. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7922. hardcode_libdir_flag_spec_ld='+b $libdir'
  7923. hardcode_libdir_separator=:
  7924. hardcode_direct=yes
  7925. hardcode_direct_absolute=yes
  7926. export_dynamic_flag_spec='${wl}-E'
  7927. # hardcode_minus_L: Not really in the search PATH,
  7928. # but as the default location of the library.
  7929. hardcode_minus_L=yes
  7930. fi
  7931. ;;
  7932. hpux11*)
  7933. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7934. case $host_cpu in
  7935. hppa*64*)
  7936. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7937. ;;
  7938. ia64*)
  7939. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7940. ;;
  7941. *)
  7942. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7943. ;;
  7944. esac
  7945. else
  7946. case $host_cpu in
  7947. hppa*64*)
  7948. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7949. ;;
  7950. ia64*)
  7951. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7952. ;;
  7953. *)
  7954. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7955. ;;
  7956. esac
  7957. fi
  7958. if test "$with_gnu_ld" = no; then
  7959. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7960. hardcode_libdir_separator=:
  7961. case $host_cpu in
  7962. hppa*64*|ia64*)
  7963. hardcode_direct=no
  7964. hardcode_shlibpath_var=no
  7965. ;;
  7966. *)
  7967. hardcode_direct=yes
  7968. hardcode_direct_absolute=yes
  7969. export_dynamic_flag_spec='${wl}-E'
  7970. # hardcode_minus_L: Not really in the search PATH,
  7971. # but as the default location of the library.
  7972. hardcode_minus_L=yes
  7973. ;;
  7974. esac
  7975. fi
  7976. ;;
  7977. irix5* | irix6* | nonstopux*)
  7978. if test "$GCC" = yes; then
  7979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7980. # Try to use the -exported_symbol ld option, if it does not
  7981. # work, assume that -exports_file does not work either and
  7982. # implicitly export all symbols.
  7983. save_LDFLAGS="$LDFLAGS"
  7984. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7986. /* end confdefs.h. */
  7987. int foo(void) {}
  7988. _ACEOF
  7989. if ac_fn_c_try_link "$LINENO"; then :
  7990. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7991. fi
  7992. rm -f core conftest.err conftest.$ac_objext \
  7993. conftest$ac_exeext conftest.$ac_ext
  7994. LDFLAGS="$save_LDFLAGS"
  7995. else
  7996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7997. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7998. fi
  7999. archive_cmds_need_lc='no'
  8000. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8001. hardcode_libdir_separator=:
  8002. inherit_rpath=yes
  8003. link_all_deplibs=yes
  8004. ;;
  8005. netbsd* | netbsdelf*-gnu)
  8006. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8007. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8008. else
  8009. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8010. fi
  8011. hardcode_libdir_flag_spec='-R$libdir'
  8012. hardcode_direct=yes
  8013. hardcode_shlibpath_var=no
  8014. ;;
  8015. newsos6)
  8016. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8017. hardcode_direct=yes
  8018. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8019. hardcode_libdir_separator=:
  8020. hardcode_shlibpath_var=no
  8021. ;;
  8022. *nto* | *qnx*)
  8023. ;;
  8024. openbsd*)
  8025. if test -f /usr/libexec/ld.so; then
  8026. hardcode_direct=yes
  8027. hardcode_shlibpath_var=no
  8028. hardcode_direct_absolute=yes
  8029. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8030. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8031. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8032. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8033. export_dynamic_flag_spec='${wl}-E'
  8034. else
  8035. case $host_os in
  8036. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8037. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8038. hardcode_libdir_flag_spec='-R$libdir'
  8039. ;;
  8040. *)
  8041. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8042. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8043. ;;
  8044. esac
  8045. fi
  8046. else
  8047. ld_shlibs=no
  8048. fi
  8049. ;;
  8050. os2*)
  8051. hardcode_libdir_flag_spec='-L$libdir'
  8052. hardcode_minus_L=yes
  8053. allow_undefined_flag=unsupported
  8054. 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'
  8055. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8056. ;;
  8057. osf3*)
  8058. if test "$GCC" = yes; then
  8059. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8060. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8061. else
  8062. allow_undefined_flag=' -expect_unresolved \*'
  8063. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8064. fi
  8065. archive_cmds_need_lc='no'
  8066. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8067. hardcode_libdir_separator=:
  8068. ;;
  8069. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8070. if test "$GCC" = yes; then
  8071. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8072. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8073. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8074. else
  8075. allow_undefined_flag=' -expect_unresolved \*'
  8076. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8077. 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~
  8078. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8079. # Both c and cxx compiler support -rpath directly
  8080. hardcode_libdir_flag_spec='-rpath $libdir'
  8081. fi
  8082. archive_cmds_need_lc='no'
  8083. hardcode_libdir_separator=:
  8084. ;;
  8085. solaris*)
  8086. no_undefined_flag=' -z defs'
  8087. if test "$GCC" = yes; then
  8088. wlarc='${wl}'
  8089. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8090. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8091. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8092. else
  8093. case `$CC -V 2>&1` in
  8094. *"Compilers 5.0"*)
  8095. wlarc=''
  8096. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8097. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8098. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8099. ;;
  8100. *)
  8101. wlarc='${wl}'
  8102. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8103. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8104. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8105. ;;
  8106. esac
  8107. fi
  8108. hardcode_libdir_flag_spec='-R$libdir'
  8109. hardcode_shlibpath_var=no
  8110. case $host_os in
  8111. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8112. *)
  8113. # The compiler driver will combine and reorder linker options,
  8114. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8115. # but is careful enough not to reorder.
  8116. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8117. if test "$GCC" = yes; then
  8118. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8119. else
  8120. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8121. fi
  8122. ;;
  8123. esac
  8124. link_all_deplibs=yes
  8125. ;;
  8126. sunos4*)
  8127. if test "x$host_vendor" = xsequent; then
  8128. # Use $CC to link under sequent, because it throws in some extra .o
  8129. # files that make .init and .fini sections work.
  8130. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8131. else
  8132. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8133. fi
  8134. hardcode_libdir_flag_spec='-L$libdir'
  8135. hardcode_direct=yes
  8136. hardcode_minus_L=yes
  8137. hardcode_shlibpath_var=no
  8138. ;;
  8139. sysv4)
  8140. case $host_vendor in
  8141. sni)
  8142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8143. hardcode_direct=yes # is this really true???
  8144. ;;
  8145. siemens)
  8146. ## LD is ld it makes a PLAMLIB
  8147. ## CC just makes a GrossModule.
  8148. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8149. reload_cmds='$CC -r -o $output$reload_objs'
  8150. hardcode_direct=no
  8151. ;;
  8152. motorola)
  8153. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8154. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8155. ;;
  8156. esac
  8157. runpath_var='LD_RUN_PATH'
  8158. hardcode_shlibpath_var=no
  8159. ;;
  8160. sysv4.3*)
  8161. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8162. hardcode_shlibpath_var=no
  8163. export_dynamic_flag_spec='-Bexport'
  8164. ;;
  8165. sysv4*MP*)
  8166. if test -d /usr/nec; then
  8167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. hardcode_shlibpath_var=no
  8169. runpath_var=LD_RUN_PATH
  8170. hardcode_runpath_var=yes
  8171. ld_shlibs=yes
  8172. fi
  8173. ;;
  8174. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8175. no_undefined_flag='${wl}-z,text'
  8176. archive_cmds_need_lc=no
  8177. hardcode_shlibpath_var=no
  8178. runpath_var='LD_RUN_PATH'
  8179. if test "$GCC" = yes; then
  8180. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8181. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8182. else
  8183. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8184. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8185. fi
  8186. ;;
  8187. sysv5* | sco3.2v5* | sco5v6*)
  8188. # Note: We can NOT use -z defs as we might desire, because we do not
  8189. # link with -lc, and that would cause any symbols used from libc to
  8190. # always be unresolved, which means just about no library would
  8191. # ever link correctly. If we're not using GNU ld we use -z text
  8192. # though, which does catch some bad symbols but isn't as heavy-handed
  8193. # as -z defs.
  8194. no_undefined_flag='${wl}-z,text'
  8195. allow_undefined_flag='${wl}-z,nodefs'
  8196. archive_cmds_need_lc=no
  8197. hardcode_shlibpath_var=no
  8198. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8199. hardcode_libdir_separator=':'
  8200. link_all_deplibs=yes
  8201. export_dynamic_flag_spec='${wl}-Bexport'
  8202. runpath_var='LD_RUN_PATH'
  8203. if test "$GCC" = yes; then
  8204. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8205. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8206. else
  8207. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8208. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8209. fi
  8210. ;;
  8211. uts4*)
  8212. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8213. hardcode_libdir_flag_spec='-L$libdir'
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. *)
  8217. ld_shlibs=no
  8218. ;;
  8219. esac
  8220. if test x$host_vendor = xsni; then
  8221. case $host in
  8222. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8223. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8224. ;;
  8225. esac
  8226. fi
  8227. fi
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8229. $as_echo "$ld_shlibs" >&6; }
  8230. test "$ld_shlibs" = no && can_build_shared=no
  8231. with_gnu_ld=$with_gnu_ld
  8232. #
  8233. # Do we need to explicitly link libc?
  8234. #
  8235. case "x$archive_cmds_need_lc" in
  8236. x|xyes)
  8237. # Assume -lc should be added
  8238. archive_cmds_need_lc=yes
  8239. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8240. case $archive_cmds in
  8241. *'~'*)
  8242. # FIXME: we may have to deal with multi-command sequences.
  8243. ;;
  8244. '$CC '*)
  8245. # Test whether the compiler implicitly links with -lc since on some
  8246. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8247. # to ld, don't add -lc before -lgcc.
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8249. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8250. $RM conftest*
  8251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8252. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8253. (eval $ac_compile) 2>&5
  8254. ac_status=$?
  8255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8256. test $ac_status = 0; } 2>conftest.err; then
  8257. soname=conftest
  8258. lib=conftest
  8259. libobjs=conftest.$ac_objext
  8260. deplibs=
  8261. wl=$lt_prog_compiler_wl
  8262. pic_flag=$lt_prog_compiler_pic
  8263. compiler_flags=-v
  8264. linker_flags=-v
  8265. verstring=
  8266. output_objdir=.
  8267. libname=conftest
  8268. lt_save_allow_undefined_flag=$allow_undefined_flag
  8269. allow_undefined_flag=
  8270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8271. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8272. ac_status=$?
  8273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8274. test $ac_status = 0; }
  8275. then
  8276. archive_cmds_need_lc=no
  8277. else
  8278. archive_cmds_need_lc=yes
  8279. fi
  8280. allow_undefined_flag=$lt_save_allow_undefined_flag
  8281. else
  8282. cat conftest.err 1>&5
  8283. fi
  8284. $RM conftest*
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8286. $as_echo "$archive_cmds_need_lc" >&6; }
  8287. ;;
  8288. esac
  8289. fi
  8290. ;;
  8291. esac
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8293. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8294. if test "$GCC" = yes; then
  8295. case $host_os in
  8296. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8297. *) lt_awk_arg="/^libraries:/" ;;
  8298. esac
  8299. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8300. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8301. # if the path contains ";" then we assume it to be the separator
  8302. # otherwise default to the standard path separator (i.e. ":") - it is
  8303. # assumed that no part of a normal pathname contains ";" but that should
  8304. # okay in the real world where ";" in dirpaths is itself problematic.
  8305. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8306. else
  8307. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8308. fi
  8309. # Ok, now we have the path, separated by spaces, we can step through it
  8310. # and add multilib dir if necessary.
  8311. lt_tmp_lt_search_path_spec=
  8312. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8313. for lt_sys_path in $lt_search_path_spec; do
  8314. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8315. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8316. else
  8317. test -d "$lt_sys_path" && \
  8318. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8319. fi
  8320. done
  8321. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8322. BEGIN {RS=" "; FS="/|\n";} {
  8323. lt_foo="";
  8324. lt_count=0;
  8325. for (lt_i = NF; lt_i > 0; lt_i--) {
  8326. if ($lt_i != "" && $lt_i != ".") {
  8327. if ($lt_i == "..") {
  8328. lt_count++;
  8329. } else {
  8330. if (lt_count == 0) {
  8331. lt_foo="/" $lt_i lt_foo;
  8332. } else {
  8333. lt_count--;
  8334. }
  8335. }
  8336. }
  8337. }
  8338. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8339. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8340. }'`
  8341. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8342. else
  8343. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8344. fi
  8345. library_names_spec=
  8346. libname_spec='lib$name'
  8347. soname_spec=
  8348. shrext_cmds=".so"
  8349. postinstall_cmds=
  8350. postuninstall_cmds=
  8351. finish_cmds=
  8352. finish_eval=
  8353. shlibpath_var=
  8354. shlibpath_overrides_runpath=unknown
  8355. version_type=none
  8356. dynamic_linker="$host_os ld.so"
  8357. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8358. need_lib_prefix=unknown
  8359. hardcode_into_libs=no
  8360. # when you set need_version to no, make sure it does not cause -set_version
  8361. # flags to be left without arguments
  8362. need_version=unknown
  8363. case $host_os in
  8364. aix3*)
  8365. version_type=linux
  8366. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8367. shlibpath_var=LIBPATH
  8368. # AIX 3 has no versioning support, so we append a major version to the name.
  8369. soname_spec='${libname}${release}${shared_ext}$major'
  8370. ;;
  8371. aix[4-9]*)
  8372. version_type=linux
  8373. need_lib_prefix=no
  8374. need_version=no
  8375. hardcode_into_libs=yes
  8376. if test "$host_cpu" = ia64; then
  8377. # AIX 5 supports IA64
  8378. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8379. shlibpath_var=LD_LIBRARY_PATH
  8380. else
  8381. # With GCC up to 2.95.x, collect2 would create an import file
  8382. # for dependence libraries. The import file would start with
  8383. # the line `#! .'. This would cause the generated library to
  8384. # depend on `.', always an invalid library. This was fixed in
  8385. # development snapshots of GCC prior to 3.0.
  8386. case $host_os in
  8387. aix4 | aix4.[01] | aix4.[01].*)
  8388. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8389. echo ' yes '
  8390. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8391. :
  8392. else
  8393. can_build_shared=no
  8394. fi
  8395. ;;
  8396. esac
  8397. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8398. # soname into executable. Probably we can add versioning support to
  8399. # collect2, so additional links can be useful in future.
  8400. if test "$aix_use_runtimelinking" = yes; then
  8401. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8402. # instead of lib<name>.a to let people know that these are not
  8403. # typical AIX shared libraries.
  8404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8405. else
  8406. # We preserve .a as extension for shared libraries through AIX4.2
  8407. # and later when we are not doing run time linking.
  8408. library_names_spec='${libname}${release}.a $libname.a'
  8409. soname_spec='${libname}${release}${shared_ext}$major'
  8410. fi
  8411. shlibpath_var=LIBPATH
  8412. fi
  8413. ;;
  8414. amigaos*)
  8415. case $host_cpu in
  8416. powerpc)
  8417. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8418. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8420. ;;
  8421. m68k)
  8422. library_names_spec='$libname.ixlibrary $libname.a'
  8423. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8424. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8425. ;;
  8426. esac
  8427. ;;
  8428. beos*)
  8429. library_names_spec='${libname}${shared_ext}'
  8430. dynamic_linker="$host_os ld.so"
  8431. shlibpath_var=LIBRARY_PATH
  8432. ;;
  8433. bsdi[45]*)
  8434. version_type=linux
  8435. need_version=no
  8436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8437. soname_spec='${libname}${release}${shared_ext}$major'
  8438. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8439. shlibpath_var=LD_LIBRARY_PATH
  8440. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8441. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8442. # the default ld.so.conf also contains /usr/contrib/lib and
  8443. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8444. # libtool to hard-code these into programs
  8445. ;;
  8446. cygwin* | mingw* | pw32* | cegcc*)
  8447. version_type=windows
  8448. shrext_cmds=".dll"
  8449. need_version=no
  8450. need_lib_prefix=no
  8451. case $GCC,$host_os in
  8452. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8453. library_names_spec='$libname.dll.a'
  8454. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8455. postinstall_cmds='base_file=`basename \${file}`~
  8456. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8457. dldir=$destdir/`dirname \$dlpath`~
  8458. test -d \$dldir || mkdir -p \$dldir~
  8459. $install_prog $dir/$dlname \$dldir/$dlname~
  8460. chmod a+x \$dldir/$dlname~
  8461. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8462. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8463. fi'
  8464. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8465. dlpath=$dir/\$dldll~
  8466. $RM \$dlpath'
  8467. shlibpath_overrides_runpath=yes
  8468. case $host_os in
  8469. cygwin*)
  8470. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8471. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8472. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8473. ;;
  8474. mingw* | cegcc*)
  8475. # MinGW DLLs use traditional 'lib' prefix
  8476. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8477. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8478. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8479. # It is most probably a Windows format PATH printed by
  8480. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8481. # path with ; separators, and with drive letters. We can handle the
  8482. # drive letters (cygwin fileutils understands them), so leave them,
  8483. # especially as we might pass files found there to a mingw objdump,
  8484. # which wouldn't understand a cygwinified path. Ahh.
  8485. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8486. else
  8487. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8488. fi
  8489. ;;
  8490. pw32*)
  8491. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8492. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8493. ;;
  8494. esac
  8495. ;;
  8496. *)
  8497. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8498. ;;
  8499. esac
  8500. dynamic_linker='Win32 ld.exe'
  8501. # FIXME: first we should search . and the directory the executable is in
  8502. shlibpath_var=PATH
  8503. ;;
  8504. darwin* | rhapsody*)
  8505. dynamic_linker="$host_os dyld"
  8506. version_type=darwin
  8507. need_lib_prefix=no
  8508. need_version=no
  8509. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8510. soname_spec='${libname}${release}${major}$shared_ext'
  8511. shlibpath_overrides_runpath=yes
  8512. shlibpath_var=DYLD_LIBRARY_PATH
  8513. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8514. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8515. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8516. ;;
  8517. dgux*)
  8518. version_type=linux
  8519. need_lib_prefix=no
  8520. need_version=no
  8521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. ;;
  8525. freebsd1*)
  8526. dynamic_linker=no
  8527. ;;
  8528. freebsd* | dragonfly*)
  8529. # DragonFly does not have aout. When/if they implement a new
  8530. # versioning mechanism, adjust this.
  8531. if test -x /usr/bin/objformat; then
  8532. objformat=`/usr/bin/objformat`
  8533. else
  8534. case $host_os in
  8535. freebsd[123]*) objformat=aout ;;
  8536. *) objformat=elf ;;
  8537. esac
  8538. fi
  8539. version_type=freebsd-$objformat
  8540. case $version_type in
  8541. freebsd-elf*)
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8543. need_version=no
  8544. need_lib_prefix=no
  8545. ;;
  8546. freebsd-*)
  8547. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8548. need_version=yes
  8549. ;;
  8550. esac
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. case $host_os in
  8553. freebsd2*)
  8554. shlibpath_overrides_runpath=yes
  8555. ;;
  8556. freebsd3.[01]* | freebsdelf3.[01]*)
  8557. shlibpath_overrides_runpath=yes
  8558. hardcode_into_libs=yes
  8559. ;;
  8560. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8561. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8562. shlibpath_overrides_runpath=no
  8563. hardcode_into_libs=yes
  8564. ;;
  8565. *) # from 4.6 on, and DragonFly
  8566. shlibpath_overrides_runpath=yes
  8567. hardcode_into_libs=yes
  8568. ;;
  8569. esac
  8570. ;;
  8571. gnu*)
  8572. version_type=linux
  8573. need_lib_prefix=no
  8574. need_version=no
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8576. soname_spec='${libname}${release}${shared_ext}$major'
  8577. shlibpath_var=LD_LIBRARY_PATH
  8578. hardcode_into_libs=yes
  8579. ;;
  8580. hpux9* | hpux10* | hpux11*)
  8581. # Give a soname corresponding to the major version so that dld.sl refuses to
  8582. # link against other versions.
  8583. version_type=sunos
  8584. need_lib_prefix=no
  8585. need_version=no
  8586. case $host_cpu in
  8587. ia64*)
  8588. shrext_cmds='.so'
  8589. hardcode_into_libs=yes
  8590. dynamic_linker="$host_os dld.so"
  8591. shlibpath_var=LD_LIBRARY_PATH
  8592. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8594. soname_spec='${libname}${release}${shared_ext}$major'
  8595. if test "X$HPUX_IA64_MODE" = X32; then
  8596. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8597. else
  8598. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8599. fi
  8600. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8601. ;;
  8602. hppa*64*)
  8603. shrext_cmds='.sl'
  8604. hardcode_into_libs=yes
  8605. dynamic_linker="$host_os dld.sl"
  8606. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8607. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8609. soname_spec='${libname}${release}${shared_ext}$major'
  8610. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8611. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8612. ;;
  8613. *)
  8614. shrext_cmds='.sl'
  8615. dynamic_linker="$host_os dld.sl"
  8616. shlibpath_var=SHLIB_PATH
  8617. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. ;;
  8621. esac
  8622. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8623. postinstall_cmds='chmod 555 $lib'
  8624. ;;
  8625. interix[3-9]*)
  8626. version_type=linux
  8627. need_lib_prefix=no
  8628. need_version=no
  8629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8630. soname_spec='${libname}${release}${shared_ext}$major'
  8631. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8632. shlibpath_var=LD_LIBRARY_PATH
  8633. shlibpath_overrides_runpath=no
  8634. hardcode_into_libs=yes
  8635. ;;
  8636. irix5* | irix6* | nonstopux*)
  8637. case $host_os in
  8638. nonstopux*) version_type=nonstopux ;;
  8639. *)
  8640. if test "$lt_cv_prog_gnu_ld" = yes; then
  8641. version_type=linux
  8642. else
  8643. version_type=irix
  8644. fi ;;
  8645. esac
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. soname_spec='${libname}${release}${shared_ext}$major'
  8649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8650. case $host_os in
  8651. irix5* | nonstopux*)
  8652. libsuff= shlibsuff=
  8653. ;;
  8654. *)
  8655. case $LD in # libtool.m4 will add one of these switches to LD
  8656. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8657. libsuff= shlibsuff= libmagic=32-bit;;
  8658. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8659. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8660. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8661. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8662. *) libsuff= shlibsuff= libmagic=never-match;;
  8663. esac
  8664. ;;
  8665. esac
  8666. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8667. shlibpath_overrides_runpath=no
  8668. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8669. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8670. hardcode_into_libs=yes
  8671. ;;
  8672. # No shared lib support for Linux oldld, aout, or coff.
  8673. linux*oldld* | linux*aout* | linux*coff*)
  8674. dynamic_linker=no
  8675. ;;
  8676. # This must be Linux ELF.
  8677. linux* | k*bsd*-gnu)
  8678. version_type=linux
  8679. need_lib_prefix=no
  8680. need_version=no
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8684. shlibpath_var=LD_LIBRARY_PATH
  8685. shlibpath_overrides_runpath=no
  8686. # Some binutils ld are patched to set DT_RUNPATH
  8687. save_LDFLAGS=$LDFLAGS
  8688. save_libdir=$libdir
  8689. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8690. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8692. /* end confdefs.h. */
  8693. int
  8694. main ()
  8695. {
  8696. ;
  8697. return 0;
  8698. }
  8699. _ACEOF
  8700. if ac_fn_c_try_link "$LINENO"; then :
  8701. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8702. shlibpath_overrides_runpath=yes
  8703. fi
  8704. fi
  8705. rm -f core conftest.err conftest.$ac_objext \
  8706. conftest$ac_exeext conftest.$ac_ext
  8707. LDFLAGS=$save_LDFLAGS
  8708. libdir=$save_libdir
  8709. # This implies no fast_install, which is unacceptable.
  8710. # Some rework will be needed to allow for fast_install
  8711. # before this can be enabled.
  8712. hardcode_into_libs=yes
  8713. # Append ld.so.conf contents to the search path
  8714. if test -f /etc/ld.so.conf; then
  8715. 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;/^$/d' | tr '\n' ' '`
  8716. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8717. fi
  8718. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8719. # powerpc, because MkLinux only supported shared libraries with the
  8720. # GNU dynamic linker. Since this was broken with cross compilers,
  8721. # most powerpc-linux boxes support dynamic linking these days and
  8722. # people can always --disable-shared, the test was removed, and we
  8723. # assume the GNU/Linux dynamic linker is in use.
  8724. dynamic_linker='GNU/Linux ld.so'
  8725. ;;
  8726. netbsdelf*-gnu)
  8727. version_type=linux
  8728. need_lib_prefix=no
  8729. need_version=no
  8730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8731. soname_spec='${libname}${release}${shared_ext}$major'
  8732. shlibpath_var=LD_LIBRARY_PATH
  8733. shlibpath_overrides_runpath=no
  8734. hardcode_into_libs=yes
  8735. dynamic_linker='NetBSD ld.elf_so'
  8736. ;;
  8737. netbsd*)
  8738. version_type=sunos
  8739. need_lib_prefix=no
  8740. need_version=no
  8741. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8743. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8744. dynamic_linker='NetBSD (a.out) ld.so'
  8745. else
  8746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8747. soname_spec='${libname}${release}${shared_ext}$major'
  8748. dynamic_linker='NetBSD ld.elf_so'
  8749. fi
  8750. shlibpath_var=LD_LIBRARY_PATH
  8751. shlibpath_overrides_runpath=yes
  8752. hardcode_into_libs=yes
  8753. ;;
  8754. newsos6)
  8755. version_type=linux
  8756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. shlibpath_overrides_runpath=yes
  8759. ;;
  8760. *nto* | *qnx*)
  8761. version_type=qnx
  8762. need_lib_prefix=no
  8763. need_version=no
  8764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8765. soname_spec='${libname}${release}${shared_ext}$major'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. shlibpath_overrides_runpath=no
  8768. hardcode_into_libs=yes
  8769. dynamic_linker='ldqnx.so'
  8770. ;;
  8771. openbsd*)
  8772. version_type=sunos
  8773. sys_lib_dlsearch_path_spec="/usr/lib"
  8774. need_lib_prefix=no
  8775. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8776. case $host_os in
  8777. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8778. *) need_version=no ;;
  8779. esac
  8780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8781. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8782. shlibpath_var=LD_LIBRARY_PATH
  8783. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8784. case $host_os in
  8785. openbsd2.[89] | openbsd2.[89].*)
  8786. shlibpath_overrides_runpath=no
  8787. ;;
  8788. *)
  8789. shlibpath_overrides_runpath=yes
  8790. ;;
  8791. esac
  8792. else
  8793. shlibpath_overrides_runpath=yes
  8794. fi
  8795. ;;
  8796. os2*)
  8797. libname_spec='$name'
  8798. shrext_cmds=".dll"
  8799. need_lib_prefix=no
  8800. library_names_spec='$libname${shared_ext} $libname.a'
  8801. dynamic_linker='OS/2 ld.exe'
  8802. shlibpath_var=LIBPATH
  8803. ;;
  8804. osf3* | osf4* | osf5*)
  8805. version_type=osf
  8806. need_lib_prefix=no
  8807. need_version=no
  8808. soname_spec='${libname}${release}${shared_ext}$major'
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8810. shlibpath_var=LD_LIBRARY_PATH
  8811. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8812. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8813. ;;
  8814. rdos*)
  8815. dynamic_linker=no
  8816. ;;
  8817. solaris*)
  8818. version_type=linux
  8819. need_lib_prefix=no
  8820. need_version=no
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. shlibpath_overrides_runpath=yes
  8825. hardcode_into_libs=yes
  8826. # ldd complains unless libraries are executable
  8827. postinstall_cmds='chmod +x $lib'
  8828. ;;
  8829. sunos4*)
  8830. version_type=sunos
  8831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8832. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8833. shlibpath_var=LD_LIBRARY_PATH
  8834. shlibpath_overrides_runpath=yes
  8835. if test "$with_gnu_ld" = yes; then
  8836. need_lib_prefix=no
  8837. fi
  8838. need_version=yes
  8839. ;;
  8840. sysv4 | sysv4.3*)
  8841. version_type=linux
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. case $host_vendor in
  8846. sni)
  8847. shlibpath_overrides_runpath=no
  8848. need_lib_prefix=no
  8849. runpath_var=LD_RUN_PATH
  8850. ;;
  8851. siemens)
  8852. need_lib_prefix=no
  8853. ;;
  8854. motorola)
  8855. need_lib_prefix=no
  8856. need_version=no
  8857. shlibpath_overrides_runpath=no
  8858. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8859. ;;
  8860. esac
  8861. ;;
  8862. sysv4*MP*)
  8863. if test -d /usr/nec ;then
  8864. version_type=linux
  8865. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8866. soname_spec='$libname${shared_ext}.$major'
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. fi
  8869. ;;
  8870. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8871. version_type=freebsd-elf
  8872. need_lib_prefix=no
  8873. need_version=no
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. shlibpath_overrides_runpath=yes
  8878. hardcode_into_libs=yes
  8879. if test "$with_gnu_ld" = yes; then
  8880. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8881. else
  8882. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8883. case $host_os in
  8884. sco3.2v5*)
  8885. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8886. ;;
  8887. esac
  8888. fi
  8889. sys_lib_dlsearch_path_spec='/usr/lib'
  8890. ;;
  8891. tpf*)
  8892. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8893. version_type=linux
  8894. need_lib_prefix=no
  8895. need_version=no
  8896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=no
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. uts4*)
  8902. version_type=linux
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8904. soname_spec='${libname}${release}${shared_ext}$major'
  8905. shlibpath_var=LD_LIBRARY_PATH
  8906. ;;
  8907. *)
  8908. dynamic_linker=no
  8909. ;;
  8910. esac
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8912. $as_echo "$dynamic_linker" >&6; }
  8913. test "$dynamic_linker" = no && can_build_shared=no
  8914. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8915. if test "$GCC" = yes; then
  8916. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8917. fi
  8918. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8919. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8920. fi
  8921. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8922. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8923. fi
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8925. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8926. hardcode_action=
  8927. if test -n "$hardcode_libdir_flag_spec" ||
  8928. test -n "$runpath_var" ||
  8929. test "X$hardcode_automatic" = "Xyes" ; then
  8930. # We can hardcode non-existent directories.
  8931. if test "$hardcode_direct" != no &&
  8932. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8933. # have to relink, otherwise we might link with an installed library
  8934. # when we should be linking with a yet-to-be-installed one
  8935. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8936. test "$hardcode_minus_L" != no; then
  8937. # Linking always hardcodes the temporary library directory.
  8938. hardcode_action=relink
  8939. else
  8940. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8941. hardcode_action=immediate
  8942. fi
  8943. else
  8944. # We cannot hardcode anything, or else we can only hardcode existing
  8945. # directories.
  8946. hardcode_action=unsupported
  8947. fi
  8948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8949. $as_echo "$hardcode_action" >&6; }
  8950. if test "$hardcode_action" = relink ||
  8951. test "$inherit_rpath" = yes; then
  8952. # Fast installation is not supported
  8953. enable_fast_install=no
  8954. elif test "$shlibpath_overrides_runpath" = yes ||
  8955. test "$enable_shared" = no; then
  8956. # Fast installation is not necessary
  8957. enable_fast_install=needless
  8958. fi
  8959. if test "x$enable_dlopen" != xyes; then
  8960. enable_dlopen=unknown
  8961. enable_dlopen_self=unknown
  8962. enable_dlopen_self_static=unknown
  8963. else
  8964. lt_cv_dlopen=no
  8965. lt_cv_dlopen_libs=
  8966. case $host_os in
  8967. beos*)
  8968. lt_cv_dlopen="load_add_on"
  8969. lt_cv_dlopen_libs=
  8970. lt_cv_dlopen_self=yes
  8971. ;;
  8972. mingw* | pw32* | cegcc*)
  8973. lt_cv_dlopen="LoadLibrary"
  8974. lt_cv_dlopen_libs=
  8975. ;;
  8976. cygwin*)
  8977. lt_cv_dlopen="dlopen"
  8978. lt_cv_dlopen_libs=
  8979. ;;
  8980. darwin*)
  8981. # if libdl is installed we need to link against it
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8983. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8984. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8985. $as_echo_n "(cached) " >&6
  8986. else
  8987. ac_check_lib_save_LIBS=$LIBS
  8988. LIBS="-ldl $LIBS"
  8989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8990. /* end confdefs.h. */
  8991. /* Override any GCC internal prototype to avoid an error.
  8992. Use char because int might match the return type of a GCC
  8993. builtin and then its argument prototype would still apply. */
  8994. #ifdef __cplusplus
  8995. extern "C"
  8996. #endif
  8997. char dlopen ();
  8998. int
  8999. main ()
  9000. {
  9001. return dlopen ();
  9002. ;
  9003. return 0;
  9004. }
  9005. _ACEOF
  9006. if ac_fn_c_try_link "$LINENO"; then :
  9007. ac_cv_lib_dl_dlopen=yes
  9008. else
  9009. ac_cv_lib_dl_dlopen=no
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. LIBS=$ac_check_lib_save_LIBS
  9014. fi
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9016. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9017. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9018. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9019. else
  9020. lt_cv_dlopen="dyld"
  9021. lt_cv_dlopen_libs=
  9022. lt_cv_dlopen_self=yes
  9023. fi
  9024. ;;
  9025. *)
  9026. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9027. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9028. lt_cv_dlopen="shl_load"
  9029. else
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9031. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9032. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. ac_check_lib_save_LIBS=$LIBS
  9036. LIBS="-ldld $LIBS"
  9037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9038. /* end confdefs.h. */
  9039. /* Override any GCC internal prototype to avoid an error.
  9040. Use char because int might match the return type of a GCC
  9041. builtin and then its argument prototype would still apply. */
  9042. #ifdef __cplusplus
  9043. extern "C"
  9044. #endif
  9045. char shl_load ();
  9046. int
  9047. main ()
  9048. {
  9049. return shl_load ();
  9050. ;
  9051. return 0;
  9052. }
  9053. _ACEOF
  9054. if ac_fn_c_try_link "$LINENO"; then :
  9055. ac_cv_lib_dld_shl_load=yes
  9056. else
  9057. ac_cv_lib_dld_shl_load=no
  9058. fi
  9059. rm -f core conftest.err conftest.$ac_objext \
  9060. conftest$ac_exeext conftest.$ac_ext
  9061. LIBS=$ac_check_lib_save_LIBS
  9062. fi
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9064. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9065. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9066. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9067. else
  9068. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9069. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9070. lt_cv_dlopen="dlopen"
  9071. else
  9072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9073. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9074. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9075. $as_echo_n "(cached) " >&6
  9076. else
  9077. ac_check_lib_save_LIBS=$LIBS
  9078. LIBS="-ldl $LIBS"
  9079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9080. /* end confdefs.h. */
  9081. /* Override any GCC internal prototype to avoid an error.
  9082. Use char because int might match the return type of a GCC
  9083. builtin and then its argument prototype would still apply. */
  9084. #ifdef __cplusplus
  9085. extern "C"
  9086. #endif
  9087. char dlopen ();
  9088. int
  9089. main ()
  9090. {
  9091. return dlopen ();
  9092. ;
  9093. return 0;
  9094. }
  9095. _ACEOF
  9096. if ac_fn_c_try_link "$LINENO"; then :
  9097. ac_cv_lib_dl_dlopen=yes
  9098. else
  9099. ac_cv_lib_dl_dlopen=no
  9100. fi
  9101. rm -f core conftest.err conftest.$ac_objext \
  9102. conftest$ac_exeext conftest.$ac_ext
  9103. LIBS=$ac_check_lib_save_LIBS
  9104. fi
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9106. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9107. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9108. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9109. else
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9111. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9112. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9113. $as_echo_n "(cached) " >&6
  9114. else
  9115. ac_check_lib_save_LIBS=$LIBS
  9116. LIBS="-lsvld $LIBS"
  9117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9118. /* end confdefs.h. */
  9119. /* Override any GCC internal prototype to avoid an error.
  9120. Use char because int might match the return type of a GCC
  9121. builtin and then its argument prototype would still apply. */
  9122. #ifdef __cplusplus
  9123. extern "C"
  9124. #endif
  9125. char dlopen ();
  9126. int
  9127. main ()
  9128. {
  9129. return dlopen ();
  9130. ;
  9131. return 0;
  9132. }
  9133. _ACEOF
  9134. if ac_fn_c_try_link "$LINENO"; then :
  9135. ac_cv_lib_svld_dlopen=yes
  9136. else
  9137. ac_cv_lib_svld_dlopen=no
  9138. fi
  9139. rm -f core conftest.err conftest.$ac_objext \
  9140. conftest$ac_exeext conftest.$ac_ext
  9141. LIBS=$ac_check_lib_save_LIBS
  9142. fi
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9144. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9145. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9146. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9147. else
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9149. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9150. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9151. $as_echo_n "(cached) " >&6
  9152. else
  9153. ac_check_lib_save_LIBS=$LIBS
  9154. LIBS="-ldld $LIBS"
  9155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9156. /* end confdefs.h. */
  9157. /* Override any GCC internal prototype to avoid an error.
  9158. Use char because int might match the return type of a GCC
  9159. builtin and then its argument prototype would still apply. */
  9160. #ifdef __cplusplus
  9161. extern "C"
  9162. #endif
  9163. char dld_link ();
  9164. int
  9165. main ()
  9166. {
  9167. return dld_link ();
  9168. ;
  9169. return 0;
  9170. }
  9171. _ACEOF
  9172. if ac_fn_c_try_link "$LINENO"; then :
  9173. ac_cv_lib_dld_dld_link=yes
  9174. else
  9175. ac_cv_lib_dld_dld_link=no
  9176. fi
  9177. rm -f core conftest.err conftest.$ac_objext \
  9178. conftest$ac_exeext conftest.$ac_ext
  9179. LIBS=$ac_check_lib_save_LIBS
  9180. fi
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9182. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9183. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9184. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9185. fi
  9186. fi
  9187. fi
  9188. fi
  9189. fi
  9190. fi
  9191. ;;
  9192. esac
  9193. if test "x$lt_cv_dlopen" != xno; then
  9194. enable_dlopen=yes
  9195. else
  9196. enable_dlopen=no
  9197. fi
  9198. case $lt_cv_dlopen in
  9199. dlopen)
  9200. save_CPPFLAGS="$CPPFLAGS"
  9201. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9202. save_LDFLAGS="$LDFLAGS"
  9203. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9204. save_LIBS="$LIBS"
  9205. LIBS="$lt_cv_dlopen_libs $LIBS"
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9207. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9208. if test "${lt_cv_dlopen_self+set}" = set; then :
  9209. $as_echo_n "(cached) " >&6
  9210. else
  9211. if test "$cross_compiling" = yes; then :
  9212. lt_cv_dlopen_self=cross
  9213. else
  9214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9215. lt_status=$lt_dlunknown
  9216. cat > conftest.$ac_ext <<_LT_EOF
  9217. #line 10700 "configure"
  9218. #include "confdefs.h"
  9219. #if HAVE_DLFCN_H
  9220. #include <dlfcn.h>
  9221. #endif
  9222. #include <stdio.h>
  9223. #ifdef RTLD_GLOBAL
  9224. # define LT_DLGLOBAL RTLD_GLOBAL
  9225. #else
  9226. # ifdef DL_GLOBAL
  9227. # define LT_DLGLOBAL DL_GLOBAL
  9228. # else
  9229. # define LT_DLGLOBAL 0
  9230. # endif
  9231. #endif
  9232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9233. find out it does not work in some platform. */
  9234. #ifndef LT_DLLAZY_OR_NOW
  9235. # ifdef RTLD_LAZY
  9236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9237. # else
  9238. # ifdef DL_LAZY
  9239. # define LT_DLLAZY_OR_NOW DL_LAZY
  9240. # else
  9241. # ifdef RTLD_NOW
  9242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9243. # else
  9244. # ifdef DL_NOW
  9245. # define LT_DLLAZY_OR_NOW DL_NOW
  9246. # else
  9247. # define LT_DLLAZY_OR_NOW 0
  9248. # endif
  9249. # endif
  9250. # endif
  9251. # endif
  9252. #endif
  9253. void fnord() { int i=42;}
  9254. int main ()
  9255. {
  9256. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9257. int status = $lt_dlunknown;
  9258. if (self)
  9259. {
  9260. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9261. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9262. /* dlclose (self); */
  9263. }
  9264. else
  9265. puts (dlerror ());
  9266. return status;
  9267. }
  9268. _LT_EOF
  9269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9270. (eval $ac_link) 2>&5
  9271. ac_status=$?
  9272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9273. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9274. (./conftest; exit; ) >&5 2>/dev/null
  9275. lt_status=$?
  9276. case x$lt_status in
  9277. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9278. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9279. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9280. esac
  9281. else :
  9282. # compilation failed
  9283. lt_cv_dlopen_self=no
  9284. fi
  9285. fi
  9286. rm -fr conftest*
  9287. fi
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9289. $as_echo "$lt_cv_dlopen_self" >&6; }
  9290. if test "x$lt_cv_dlopen_self" = xyes; then
  9291. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9293. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9294. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. if test "$cross_compiling" = yes; then :
  9298. lt_cv_dlopen_self_static=cross
  9299. else
  9300. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9301. lt_status=$lt_dlunknown
  9302. cat > conftest.$ac_ext <<_LT_EOF
  9303. #line 10796 "configure"
  9304. #include "confdefs.h"
  9305. #if HAVE_DLFCN_H
  9306. #include <dlfcn.h>
  9307. #endif
  9308. #include <stdio.h>
  9309. #ifdef RTLD_GLOBAL
  9310. # define LT_DLGLOBAL RTLD_GLOBAL
  9311. #else
  9312. # ifdef DL_GLOBAL
  9313. # define LT_DLGLOBAL DL_GLOBAL
  9314. # else
  9315. # define LT_DLGLOBAL 0
  9316. # endif
  9317. #endif
  9318. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9319. find out it does not work in some platform. */
  9320. #ifndef LT_DLLAZY_OR_NOW
  9321. # ifdef RTLD_LAZY
  9322. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9323. # else
  9324. # ifdef DL_LAZY
  9325. # define LT_DLLAZY_OR_NOW DL_LAZY
  9326. # else
  9327. # ifdef RTLD_NOW
  9328. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9329. # else
  9330. # ifdef DL_NOW
  9331. # define LT_DLLAZY_OR_NOW DL_NOW
  9332. # else
  9333. # define LT_DLLAZY_OR_NOW 0
  9334. # endif
  9335. # endif
  9336. # endif
  9337. # endif
  9338. #endif
  9339. void fnord() { int i=42;}
  9340. int main ()
  9341. {
  9342. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9343. int status = $lt_dlunknown;
  9344. if (self)
  9345. {
  9346. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9347. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9348. /* dlclose (self); */
  9349. }
  9350. else
  9351. puts (dlerror ());
  9352. return status;
  9353. }
  9354. _LT_EOF
  9355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9356. (eval $ac_link) 2>&5
  9357. ac_status=$?
  9358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9359. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9360. (./conftest; exit; ) >&5 2>/dev/null
  9361. lt_status=$?
  9362. case x$lt_status in
  9363. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9364. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9365. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9366. esac
  9367. else :
  9368. # compilation failed
  9369. lt_cv_dlopen_self_static=no
  9370. fi
  9371. fi
  9372. rm -fr conftest*
  9373. fi
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9375. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9376. fi
  9377. CPPFLAGS="$save_CPPFLAGS"
  9378. LDFLAGS="$save_LDFLAGS"
  9379. LIBS="$save_LIBS"
  9380. ;;
  9381. esac
  9382. case $lt_cv_dlopen_self in
  9383. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9384. *) enable_dlopen_self=unknown ;;
  9385. esac
  9386. case $lt_cv_dlopen_self_static in
  9387. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9388. *) enable_dlopen_self_static=unknown ;;
  9389. esac
  9390. fi
  9391. striplib=
  9392. old_striplib=
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9394. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9395. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9396. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9397. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9399. $as_echo "yes" >&6; }
  9400. else
  9401. # FIXME - insert some real tests, host_os isn't really good enough
  9402. case $host_os in
  9403. darwin*)
  9404. if test -n "$STRIP" ; then
  9405. striplib="$STRIP -x"
  9406. old_striplib="$STRIP -S"
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9408. $as_echo "yes" >&6; }
  9409. else
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9411. $as_echo "no" >&6; }
  9412. fi
  9413. ;;
  9414. *)
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9416. $as_echo "no" >&6; }
  9417. ;;
  9418. esac
  9419. fi
  9420. # Report which library types will actually be built
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9422. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9424. $as_echo "$can_build_shared" >&6; }
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9426. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9427. test "$can_build_shared" = "no" && enable_shared=no
  9428. # On AIX, shared libraries and static libraries use the same namespace, and
  9429. # are all built from PIC.
  9430. case $host_os in
  9431. aix3*)
  9432. test "$enable_shared" = yes && enable_static=no
  9433. if test -n "$RANLIB"; then
  9434. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9435. postinstall_cmds='$RANLIB $lib'
  9436. fi
  9437. ;;
  9438. aix[4-9]*)
  9439. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9440. test "$enable_shared" = yes && enable_static=no
  9441. fi
  9442. ;;
  9443. esac
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9445. $as_echo "$enable_shared" >&6; }
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9447. $as_echo_n "checking whether to build static libraries... " >&6; }
  9448. # Make sure either enable_shared or enable_static is yes.
  9449. test "$enable_shared" = yes || enable_static=yes
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9451. $as_echo "$enable_static" >&6; }
  9452. fi
  9453. ac_ext=c
  9454. ac_cpp='$CPP $CPPFLAGS'
  9455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9458. CC="$lt_save_CC"
  9459. ac_ext=cpp
  9460. ac_cpp='$CXXCPP $CPPFLAGS'
  9461. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9462. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9463. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9464. archive_cmds_need_lc_CXX=no
  9465. allow_undefined_flag_CXX=
  9466. always_export_symbols_CXX=no
  9467. archive_expsym_cmds_CXX=
  9468. compiler_needs_object_CXX=no
  9469. export_dynamic_flag_spec_CXX=
  9470. hardcode_direct_CXX=no
  9471. hardcode_direct_absolute_CXX=no
  9472. hardcode_libdir_flag_spec_CXX=
  9473. hardcode_libdir_flag_spec_ld_CXX=
  9474. hardcode_libdir_separator_CXX=
  9475. hardcode_minus_L_CXX=no
  9476. hardcode_shlibpath_var_CXX=unsupported
  9477. hardcode_automatic_CXX=no
  9478. inherit_rpath_CXX=no
  9479. module_cmds_CXX=
  9480. module_expsym_cmds_CXX=
  9481. link_all_deplibs_CXX=unknown
  9482. old_archive_cmds_CXX=$old_archive_cmds
  9483. no_undefined_flag_CXX=
  9484. whole_archive_flag_spec_CXX=
  9485. enable_shared_with_static_runtimes_CXX=no
  9486. # Source file extension for C++ test sources.
  9487. ac_ext=cpp
  9488. # Object file extension for compiled C++ test sources.
  9489. objext=o
  9490. objext_CXX=$objext
  9491. # No sense in running all these tests if we already determined that
  9492. # the CXX compiler isn't working. Some variables (like enable_shared)
  9493. # are currently assumed to apply to all compilers on this platform,
  9494. # and will be corrupted by setting them based on a non-working compiler.
  9495. if test "$_lt_caught_CXX_error" != yes; then
  9496. # Code to be used in simple compile tests
  9497. lt_simple_compile_test_code="int some_variable = 0;"
  9498. # Code to be used in simple link tests
  9499. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9500. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9501. # If no C compiler was specified, use CC.
  9502. LTCC=${LTCC-"$CC"}
  9503. # If no C compiler flags were specified, use CFLAGS.
  9504. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9505. # Allow CC to be a program name with arguments.
  9506. compiler=$CC
  9507. # save warnings/boilerplate of simple test code
  9508. ac_outfile=conftest.$ac_objext
  9509. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9510. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9511. _lt_compiler_boilerplate=`cat conftest.err`
  9512. $RM conftest*
  9513. ac_outfile=conftest.$ac_objext
  9514. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9515. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9516. _lt_linker_boilerplate=`cat conftest.err`
  9517. $RM -r conftest*
  9518. # Allow CC to be a program name with arguments.
  9519. lt_save_CC=$CC
  9520. lt_save_LD=$LD
  9521. lt_save_GCC=$GCC
  9522. GCC=$GXX
  9523. lt_save_with_gnu_ld=$with_gnu_ld
  9524. lt_save_path_LD=$lt_cv_path_LD
  9525. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9526. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9527. else
  9528. $as_unset lt_cv_prog_gnu_ld
  9529. fi
  9530. if test -n "${lt_cv_path_LDCXX+set}"; then
  9531. lt_cv_path_LD=$lt_cv_path_LDCXX
  9532. else
  9533. $as_unset lt_cv_path_LD
  9534. fi
  9535. test -z "${LDCXX+set}" || LD=$LDCXX
  9536. CC=${CXX-"c++"}
  9537. compiler=$CC
  9538. compiler_CXX=$CC
  9539. for cc_temp in $compiler""; do
  9540. case $cc_temp in
  9541. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9542. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9543. \-*) ;;
  9544. *) break;;
  9545. esac
  9546. done
  9547. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9548. if test -n "$compiler"; then
  9549. # We don't want -fno-exception when compiling C++ code, so set the
  9550. # no_builtin_flag separately
  9551. if test "$GXX" = yes; then
  9552. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9553. else
  9554. lt_prog_compiler_no_builtin_flag_CXX=
  9555. fi
  9556. if test "$GXX" = yes; then
  9557. # Set up default GNU C++ configuration
  9558. # Check whether --with-gnu-ld was given.
  9559. if test "${with_gnu_ld+set}" = set; then :
  9560. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9561. else
  9562. with_gnu_ld=no
  9563. fi
  9564. ac_prog=ld
  9565. if test "$GCC" = yes; then
  9566. # Check if gcc -print-prog-name=ld gives a path.
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9568. $as_echo_n "checking for ld used by $CC... " >&6; }
  9569. case $host in
  9570. *-*-mingw*)
  9571. # gcc leaves a trailing carriage return which upsets mingw
  9572. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9573. *)
  9574. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9575. esac
  9576. case $ac_prog in
  9577. # Accept absolute paths.
  9578. [\\/]* | ?:[\\/]*)
  9579. re_direlt='/[^/][^/]*/\.\./'
  9580. # Canonicalize the pathname of ld
  9581. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9582. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9583. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9584. done
  9585. test -z "$LD" && LD="$ac_prog"
  9586. ;;
  9587. "")
  9588. # If it fails, then pretend we aren't using GCC.
  9589. ac_prog=ld
  9590. ;;
  9591. *)
  9592. # If it is relative, then search for the first ld in PATH.
  9593. with_gnu_ld=unknown
  9594. ;;
  9595. esac
  9596. elif test "$with_gnu_ld" = yes; then
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9598. $as_echo_n "checking for GNU ld... " >&6; }
  9599. else
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9601. $as_echo_n "checking for non-GNU ld... " >&6; }
  9602. fi
  9603. if test "${lt_cv_path_LD+set}" = set; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. if test -z "$LD"; then
  9607. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9608. for ac_dir in $PATH; do
  9609. IFS="$lt_save_ifs"
  9610. test -z "$ac_dir" && ac_dir=.
  9611. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9612. lt_cv_path_LD="$ac_dir/$ac_prog"
  9613. # Check to see if the program is GNU ld. I'd rather use --version,
  9614. # but apparently some variants of GNU ld only accept -v.
  9615. # Break only if it was the GNU/non-GNU ld that we prefer.
  9616. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9617. *GNU* | *'with BFD'*)
  9618. test "$with_gnu_ld" != no && break
  9619. ;;
  9620. *)
  9621. test "$with_gnu_ld" != yes && break
  9622. ;;
  9623. esac
  9624. fi
  9625. done
  9626. IFS="$lt_save_ifs"
  9627. else
  9628. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9629. fi
  9630. fi
  9631. LD="$lt_cv_path_LD"
  9632. if test -n "$LD"; then
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9634. $as_echo "$LD" >&6; }
  9635. else
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9637. $as_echo "no" >&6; }
  9638. fi
  9639. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9641. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9642. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9646. case `$LD -v 2>&1 </dev/null` in
  9647. *GNU* | *'with BFD'*)
  9648. lt_cv_prog_gnu_ld=yes
  9649. ;;
  9650. *)
  9651. lt_cv_prog_gnu_ld=no
  9652. ;;
  9653. esac
  9654. fi
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9656. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9657. with_gnu_ld=$lt_cv_prog_gnu_ld
  9658. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9659. # archiving commands below assume that GNU ld is being used.
  9660. if test "$with_gnu_ld" = yes; then
  9661. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9662. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9663. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9664. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9665. # If archive_cmds runs LD, not CC, wlarc should be empty
  9666. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9667. # investigate it a little bit more. (MM)
  9668. wlarc='${wl}'
  9669. # ancient GNU ld didn't support --whole-archive et. al.
  9670. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9671. $GREP 'no-whole-archive' > /dev/null; then
  9672. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9673. else
  9674. whole_archive_flag_spec_CXX=
  9675. fi
  9676. else
  9677. with_gnu_ld=no
  9678. wlarc=
  9679. # A generic and very simple default shared library creation
  9680. # command for GNU C++ for the case where it uses the native
  9681. # linker, instead of GNU ld. If possible, this setting should
  9682. # overridden to take advantage of the native linker features on
  9683. # the platform it is being used on.
  9684. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9685. fi
  9686. # Commands to make compiler produce verbose output that lists
  9687. # what "hidden" libraries, object files and flags are used when
  9688. # linking a shared library.
  9689. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9690. else
  9691. GXX=no
  9692. with_gnu_ld=no
  9693. wlarc=
  9694. fi
  9695. # PORTME: fill in a description of your system's C++ link characteristics
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9697. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9698. ld_shlibs_CXX=yes
  9699. case $host_os in
  9700. aix3*)
  9701. # FIXME: insert proper C++ library support
  9702. ld_shlibs_CXX=no
  9703. ;;
  9704. aix[4-9]*)
  9705. if test "$host_cpu" = ia64; then
  9706. # On IA64, the linker does run time linking by default, so we don't
  9707. # have to do anything special.
  9708. aix_use_runtimelinking=no
  9709. exp_sym_flag='-Bexport'
  9710. no_entry_flag=""
  9711. else
  9712. aix_use_runtimelinking=no
  9713. # Test if we are trying to use run time linking or normal
  9714. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9715. # need to do runtime linking.
  9716. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9717. for ld_flag in $LDFLAGS; do
  9718. case $ld_flag in
  9719. *-brtl*)
  9720. aix_use_runtimelinking=yes
  9721. break
  9722. ;;
  9723. esac
  9724. done
  9725. ;;
  9726. esac
  9727. exp_sym_flag='-bexport'
  9728. no_entry_flag='-bnoentry'
  9729. fi
  9730. # When large executables or shared objects are built, AIX ld can
  9731. # have problems creating the table of contents. If linking a library
  9732. # or program results in "error TOC overflow" add -mminimal-toc to
  9733. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9734. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9735. archive_cmds_CXX=''
  9736. hardcode_direct_CXX=yes
  9737. hardcode_direct_absolute_CXX=yes
  9738. hardcode_libdir_separator_CXX=':'
  9739. link_all_deplibs_CXX=yes
  9740. file_list_spec_CXX='${wl}-f,'
  9741. if test "$GXX" = yes; then
  9742. case $host_os in aix4.[012]|aix4.[012].*)
  9743. # We only want to do this on AIX 4.2 and lower, the check
  9744. # below for broken collect2 doesn't work under 4.3+
  9745. collect2name=`${CC} -print-prog-name=collect2`
  9746. if test -f "$collect2name" &&
  9747. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9748. then
  9749. # We have reworked collect2
  9750. :
  9751. else
  9752. # We have old collect2
  9753. hardcode_direct_CXX=unsupported
  9754. # It fails to find uninstalled libraries when the uninstalled
  9755. # path is not listed in the libpath. Setting hardcode_minus_L
  9756. # to unsupported forces relinking
  9757. hardcode_minus_L_CXX=yes
  9758. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9759. hardcode_libdir_separator_CXX=
  9760. fi
  9761. esac
  9762. shared_flag='-shared'
  9763. if test "$aix_use_runtimelinking" = yes; then
  9764. shared_flag="$shared_flag "'${wl}-G'
  9765. fi
  9766. else
  9767. # not using gcc
  9768. if test "$host_cpu" = ia64; then
  9769. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9770. # chokes on -Wl,-G. The following line is correct:
  9771. shared_flag='-G'
  9772. else
  9773. if test "$aix_use_runtimelinking" = yes; then
  9774. shared_flag='${wl}-G'
  9775. else
  9776. shared_flag='${wl}-bM:SRE'
  9777. fi
  9778. fi
  9779. fi
  9780. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  9781. # It seems that -bexpall does not export symbols beginning with
  9782. # underscore (_), so it is better to generate a list of symbols to
  9783. # export.
  9784. always_export_symbols_CXX=yes
  9785. if test "$aix_use_runtimelinking" = yes; then
  9786. # Warning - without using the other runtime loading flags (-brtl),
  9787. # -berok will link without error, but may produce a broken library.
  9788. allow_undefined_flag_CXX='-berok'
  9789. # Determine the default libpath from the value encoded in an empty
  9790. # executable.
  9791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9792. /* end confdefs.h. */
  9793. int
  9794. main ()
  9795. {
  9796. ;
  9797. return 0;
  9798. }
  9799. _ACEOF
  9800. if ac_fn_cxx_try_link "$LINENO"; then :
  9801. lt_aix_libpath_sed='
  9802. /Import File Strings/,/^$/ {
  9803. /^0/ {
  9804. s/^0 *\(.*\)$/\1/
  9805. p
  9806. }
  9807. }'
  9808. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9809. # Check for a 64-bit object if we didn't find anything.
  9810. if test -z "$aix_libpath"; then
  9811. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9812. fi
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext \
  9815. conftest$ac_exeext conftest.$ac_ext
  9816. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9817. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9818. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9819. else
  9820. if test "$host_cpu" = ia64; then
  9821. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9822. allow_undefined_flag_CXX="-z nodefs"
  9823. 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"
  9824. else
  9825. # Determine the default libpath from the value encoded in an
  9826. # empty executable.
  9827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9828. /* end confdefs.h. */
  9829. int
  9830. main ()
  9831. {
  9832. ;
  9833. return 0;
  9834. }
  9835. _ACEOF
  9836. if ac_fn_cxx_try_link "$LINENO"; then :
  9837. lt_aix_libpath_sed='
  9838. /Import File Strings/,/^$/ {
  9839. /^0/ {
  9840. s/^0 *\(.*\)$/\1/
  9841. p
  9842. }
  9843. }'
  9844. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9845. # Check for a 64-bit object if we didn't find anything.
  9846. if test -z "$aix_libpath"; then
  9847. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9848. fi
  9849. fi
  9850. rm -f core conftest.err conftest.$ac_objext \
  9851. conftest$ac_exeext conftest.$ac_ext
  9852. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9853. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9854. # Warning - without using the other run time loading flags,
  9855. # -berok will link without error, but may produce a broken library.
  9856. no_undefined_flag_CXX=' ${wl}-bernotok'
  9857. allow_undefined_flag_CXX=' ${wl}-berok'
  9858. # Exported symbols can be pulled into shared objects from archives
  9859. whole_archive_flag_spec_CXX='$convenience'
  9860. archive_cmds_need_lc_CXX=yes
  9861. # This is similar to how AIX traditionally builds its shared
  9862. # libraries.
  9863. 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'
  9864. fi
  9865. fi
  9866. ;;
  9867. beos*)
  9868. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9869. allow_undefined_flag_CXX=unsupported
  9870. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9871. # support --undefined. This deserves some investigation. FIXME
  9872. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9873. else
  9874. ld_shlibs_CXX=no
  9875. fi
  9876. ;;
  9877. chorus*)
  9878. case $cc_basename in
  9879. *)
  9880. # FIXME: insert proper C++ library support
  9881. ld_shlibs_CXX=no
  9882. ;;
  9883. esac
  9884. ;;
  9885. cygwin* | mingw* | pw32* | cegcc*)
  9886. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9887. # as there is no search path for DLLs.
  9888. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9889. allow_undefined_flag_CXX=unsupported
  9890. always_export_symbols_CXX=no
  9891. enable_shared_with_static_runtimes_CXX=yes
  9892. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9893. 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'
  9894. # If the export-symbols file already is a .def file (1st line
  9895. # is EXPORTS), use it as is; otherwise, prepend...
  9896. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9897. cp $export_symbols $output_objdir/$soname.def;
  9898. else
  9899. echo EXPORTS > $output_objdir/$soname.def;
  9900. cat $export_symbols >> $output_objdir/$soname.def;
  9901. fi~
  9902. $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'
  9903. else
  9904. ld_shlibs_CXX=no
  9905. fi
  9906. ;;
  9907. darwin* | rhapsody*)
  9908. archive_cmds_need_lc_CXX=no
  9909. hardcode_direct_CXX=no
  9910. hardcode_automatic_CXX=yes
  9911. hardcode_shlibpath_var_CXX=unsupported
  9912. whole_archive_flag_spec_CXX=''
  9913. link_all_deplibs_CXX=yes
  9914. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9915. case $cc_basename in
  9916. ifort*) _lt_dar_can_shared=yes ;;
  9917. *) _lt_dar_can_shared=$GCC ;;
  9918. esac
  9919. if test "$_lt_dar_can_shared" = "yes"; then
  9920. output_verbose_link_cmd=echo
  9921. 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}"
  9922. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9923. 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}"
  9924. 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}"
  9925. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9926. 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}"
  9927. 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}"
  9928. fi
  9929. else
  9930. ld_shlibs_CXX=no
  9931. fi
  9932. ;;
  9933. dgux*)
  9934. case $cc_basename in
  9935. ec++*)
  9936. # FIXME: insert proper C++ library support
  9937. ld_shlibs_CXX=no
  9938. ;;
  9939. ghcx*)
  9940. # Green Hills C++ Compiler
  9941. # FIXME: insert proper C++ library support
  9942. ld_shlibs_CXX=no
  9943. ;;
  9944. *)
  9945. # FIXME: insert proper C++ library support
  9946. ld_shlibs_CXX=no
  9947. ;;
  9948. esac
  9949. ;;
  9950. freebsd[12]*)
  9951. # C++ shared libraries reported to be fairly broken before
  9952. # switch to ELF
  9953. ld_shlibs_CXX=no
  9954. ;;
  9955. freebsd-elf*)
  9956. archive_cmds_need_lc_CXX=no
  9957. ;;
  9958. freebsd* | dragonfly*)
  9959. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9960. # conventions
  9961. ld_shlibs_CXX=yes
  9962. ;;
  9963. gnu*)
  9964. ;;
  9965. hpux9*)
  9966. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9967. hardcode_libdir_separator_CXX=:
  9968. export_dynamic_flag_spec_CXX='${wl}-E'
  9969. hardcode_direct_CXX=yes
  9970. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9971. # but as the default
  9972. # location of the library.
  9973. case $cc_basename in
  9974. CC*)
  9975. # FIXME: insert proper C++ library support
  9976. ld_shlibs_CXX=no
  9977. ;;
  9978. aCC*)
  9979. 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'
  9980. # Commands to make compiler produce verbose output that lists
  9981. # what "hidden" libraries, object files and flags are used when
  9982. # linking a shared library.
  9983. #
  9984. # There doesn't appear to be a way to prevent this compiler from
  9985. # explicitly linking system object files so we need to strip them
  9986. # from the output so that they don't get included in the library
  9987. # dependencies.
  9988. 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; $ECHO "X$list" | $Xsed'
  9989. ;;
  9990. *)
  9991. if test "$GXX" = yes; then
  9992. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  9993. else
  9994. # FIXME: insert proper C++ library support
  9995. ld_shlibs_CXX=no
  9996. fi
  9997. ;;
  9998. esac
  9999. ;;
  10000. hpux10*|hpux11*)
  10001. if test $with_gnu_ld = no; then
  10002. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10003. hardcode_libdir_separator_CXX=:
  10004. case $host_cpu in
  10005. hppa*64*|ia64*)
  10006. ;;
  10007. *)
  10008. export_dynamic_flag_spec_CXX='${wl}-E'
  10009. ;;
  10010. esac
  10011. fi
  10012. case $host_cpu in
  10013. hppa*64*|ia64*)
  10014. hardcode_direct_CXX=no
  10015. hardcode_shlibpath_var_CXX=no
  10016. ;;
  10017. *)
  10018. hardcode_direct_CXX=yes
  10019. hardcode_direct_absolute_CXX=yes
  10020. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10021. # but as the default
  10022. # location of the library.
  10023. ;;
  10024. esac
  10025. case $cc_basename in
  10026. CC*)
  10027. # FIXME: insert proper C++ library support
  10028. ld_shlibs_CXX=no
  10029. ;;
  10030. aCC*)
  10031. case $host_cpu in
  10032. hppa*64*)
  10033. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10034. ;;
  10035. ia64*)
  10036. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10037. ;;
  10038. *)
  10039. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10040. ;;
  10041. esac
  10042. # Commands to make compiler produce verbose output that lists
  10043. # what "hidden" libraries, object files and flags are used when
  10044. # linking a shared library.
  10045. #
  10046. # There doesn't appear to be a way to prevent this compiler from
  10047. # explicitly linking system object files so we need to strip them
  10048. # from the output so that they don't get included in the library
  10049. # dependencies.
  10050. 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; $ECHO "X$list" | $Xsed'
  10051. ;;
  10052. *)
  10053. if test "$GXX" = yes; then
  10054. if test $with_gnu_ld = no; then
  10055. case $host_cpu in
  10056. hppa*64*)
  10057. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10058. ;;
  10059. ia64*)
  10060. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10061. ;;
  10062. *)
  10063. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10064. ;;
  10065. esac
  10066. fi
  10067. else
  10068. # FIXME: insert proper C++ library support
  10069. ld_shlibs_CXX=no
  10070. fi
  10071. ;;
  10072. esac
  10073. ;;
  10074. interix[3-9]*)
  10075. hardcode_direct_CXX=no
  10076. hardcode_shlibpath_var_CXX=no
  10077. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10078. export_dynamic_flag_spec_CXX='${wl}-E'
  10079. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10080. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10081. # default) and relocated if they conflict, which is a slow very memory
  10082. # consuming and fragmenting process. To avoid this, we pick a random,
  10083. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10084. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10085. 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'
  10086. 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'
  10087. ;;
  10088. irix5* | irix6*)
  10089. case $cc_basename in
  10090. CC*)
  10091. # SGI C++
  10092. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10093. # Archives containing C++ object files must be created using
  10094. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10095. # necessary to make sure instantiated templates are included
  10096. # in the archive.
  10097. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10098. ;;
  10099. *)
  10100. if test "$GXX" = yes; then
  10101. if test "$with_gnu_ld" = no; then
  10102. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10103. else
  10104. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10105. fi
  10106. fi
  10107. link_all_deplibs_CXX=yes
  10108. ;;
  10109. esac
  10110. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10111. hardcode_libdir_separator_CXX=:
  10112. inherit_rpath_CXX=yes
  10113. ;;
  10114. linux* | k*bsd*-gnu)
  10115. case $cc_basename in
  10116. KCC*)
  10117. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10118. # KCC will only create a shared library if the output file
  10119. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10120. # to its proper name (with version) after linking.
  10121. 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'
  10122. 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'
  10123. # Commands to make compiler produce verbose output that lists
  10124. # what "hidden" libraries, object files and flags are used when
  10125. # linking a shared library.
  10126. #
  10127. # There doesn't appear to be a way to prevent this compiler from
  10128. # explicitly linking system object files so we need to strip them
  10129. # from the output so that they don't get included in the library
  10130. # dependencies.
  10131. 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; $ECHO "X$list" | $Xsed'
  10132. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10133. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10134. # Archives containing C++ object files must be created using
  10135. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10136. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10137. ;;
  10138. icpc* | ecpc* )
  10139. # Intel C++
  10140. with_gnu_ld=yes
  10141. # version 8.0 and above of icpc choke on multiply defined symbols
  10142. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10143. # earlier do not add the objects themselves.
  10144. case `$CC -V 2>&1` in
  10145. *"Version 7."*)
  10146. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10147. 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'
  10148. ;;
  10149. *) # Version 8.0 or newer
  10150. tmp_idyn=
  10151. case $host_cpu in
  10152. ia64*) tmp_idyn=' -i_dynamic';;
  10153. esac
  10154. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10155. 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'
  10156. ;;
  10157. esac
  10158. archive_cmds_need_lc_CXX=no
  10159. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10160. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10161. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10162. ;;
  10163. pgCC* | pgcpp*)
  10164. # Portland Group C++ compiler
  10165. case `$CC -V` in
  10166. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10167. prelink_cmds_CXX='tpldir=Template.dir~
  10168. rm -rf $tpldir~
  10169. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10170. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10171. old_archive_cmds_CXX='tpldir=Template.dir~
  10172. rm -rf $tpldir~
  10173. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10174. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10175. $RANLIB $oldlib'
  10176. archive_cmds_CXX='tpldir=Template.dir~
  10177. rm -rf $tpldir~
  10178. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10179. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10180. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10181. rm -rf $tpldir~
  10182. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10183. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10184. ;;
  10185. *) # Version 6 will use weak symbols
  10186. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10187. 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'
  10188. ;;
  10189. esac
  10190. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10191. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10192. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10193. ;;
  10194. cxx*)
  10195. # Compaq C++
  10196. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10197. 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'
  10198. runpath_var=LD_RUN_PATH
  10199. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10200. hardcode_libdir_separator_CXX=:
  10201. # Commands to make compiler produce verbose output that lists
  10202. # what "hidden" libraries, object files and flags are used when
  10203. # linking a shared library.
  10204. #
  10205. # There doesn't appear to be a way to prevent this compiler from
  10206. # explicitly linking system object files so we need to strip them
  10207. # from the output so that they don't get included in the library
  10208. # dependencies.
  10209. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10210. ;;
  10211. xl*)
  10212. # IBM XL 8.0 on PPC, with GNU ld
  10213. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10214. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10215. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10216. if test "x$supports_anon_versioning" = xyes; then
  10217. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10218. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10219. echo "local: *; };" >> $output_objdir/$libname.ver~
  10220. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10221. fi
  10222. ;;
  10223. *)
  10224. case `$CC -V 2>&1 | sed 5q` in
  10225. *Sun\ C*)
  10226. # Sun C++ 5.9
  10227. no_undefined_flag_CXX=' -zdefs'
  10228. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10229. 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'
  10230. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10231. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10232. compiler_needs_object_CXX=yes
  10233. # Not sure whether something based on
  10234. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10235. # would be better.
  10236. output_verbose_link_cmd='echo'
  10237. # Archives containing C++ object files must be created using
  10238. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10239. # necessary to make sure instantiated templates are included
  10240. # in the archive.
  10241. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10242. ;;
  10243. esac
  10244. ;;
  10245. esac
  10246. ;;
  10247. lynxos*)
  10248. # FIXME: insert proper C++ library support
  10249. ld_shlibs_CXX=no
  10250. ;;
  10251. m88k*)
  10252. # FIXME: insert proper C++ library support
  10253. ld_shlibs_CXX=no
  10254. ;;
  10255. mvs*)
  10256. case $cc_basename in
  10257. cxx*)
  10258. # FIXME: insert proper C++ library support
  10259. ld_shlibs_CXX=no
  10260. ;;
  10261. *)
  10262. # FIXME: insert proper C++ library support
  10263. ld_shlibs_CXX=no
  10264. ;;
  10265. esac
  10266. ;;
  10267. netbsd*)
  10268. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10269. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10270. wlarc=
  10271. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10272. hardcode_direct_CXX=yes
  10273. hardcode_shlibpath_var_CXX=no
  10274. fi
  10275. # Workaround some broken pre-1.5 toolchains
  10276. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10277. ;;
  10278. *nto* | *qnx*)
  10279. ld_shlibs_CXX=yes
  10280. ;;
  10281. openbsd2*)
  10282. # C++ shared libraries are fairly broken
  10283. ld_shlibs_CXX=no
  10284. ;;
  10285. openbsd*)
  10286. if test -f /usr/libexec/ld.so; then
  10287. hardcode_direct_CXX=yes
  10288. hardcode_shlibpath_var_CXX=no
  10289. hardcode_direct_absolute_CXX=yes
  10290. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10291. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10292. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10293. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10294. export_dynamic_flag_spec_CXX='${wl}-E'
  10295. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10296. fi
  10297. output_verbose_link_cmd=echo
  10298. else
  10299. ld_shlibs_CXX=no
  10300. fi
  10301. ;;
  10302. osf3* | osf4* | osf5*)
  10303. case $cc_basename in
  10304. KCC*)
  10305. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10306. # KCC will only create a shared library if the output file
  10307. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10308. # to its proper name (with version) after linking.
  10309. 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'
  10310. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10311. hardcode_libdir_separator_CXX=:
  10312. # Archives containing C++ object files must be created using
  10313. # the KAI C++ compiler.
  10314. case $host in
  10315. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10316. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10317. esac
  10318. ;;
  10319. RCC*)
  10320. # Rational C++ 2.4.1
  10321. # FIXME: insert proper C++ library support
  10322. ld_shlibs_CXX=no
  10323. ;;
  10324. cxx*)
  10325. case $host in
  10326. osf3*)
  10327. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10328. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10329. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10330. ;;
  10331. *)
  10332. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10333. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10334. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10335. echo "-hidden">> $lib.exp~
  10336. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10337. $RM $lib.exp'
  10338. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10339. ;;
  10340. esac
  10341. hardcode_libdir_separator_CXX=:
  10342. # Commands to make compiler produce verbose output that lists
  10343. # what "hidden" libraries, object files and flags are used when
  10344. # linking a shared library.
  10345. #
  10346. # There doesn't appear to be a way to prevent this compiler from
  10347. # explicitly linking system object files so we need to strip them
  10348. # from the output so that they don't get included in the library
  10349. # dependencies.
  10350. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10351. ;;
  10352. *)
  10353. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10354. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10355. case $host in
  10356. osf3*)
  10357. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10358. ;;
  10359. *)
  10360. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10361. ;;
  10362. esac
  10363. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10364. hardcode_libdir_separator_CXX=:
  10365. # Commands to make compiler produce verbose output that lists
  10366. # what "hidden" libraries, object files and flags are used when
  10367. # linking a shared library.
  10368. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10369. else
  10370. # FIXME: insert proper C++ library support
  10371. ld_shlibs_CXX=no
  10372. fi
  10373. ;;
  10374. esac
  10375. ;;
  10376. psos*)
  10377. # FIXME: insert proper C++ library support
  10378. ld_shlibs_CXX=no
  10379. ;;
  10380. sunos4*)
  10381. case $cc_basename in
  10382. CC*)
  10383. # Sun C++ 4.x
  10384. # FIXME: insert proper C++ library support
  10385. ld_shlibs_CXX=no
  10386. ;;
  10387. lcc*)
  10388. # Lucid
  10389. # FIXME: insert proper C++ library support
  10390. ld_shlibs_CXX=no
  10391. ;;
  10392. *)
  10393. # FIXME: insert proper C++ library support
  10394. ld_shlibs_CXX=no
  10395. ;;
  10396. esac
  10397. ;;
  10398. solaris*)
  10399. case $cc_basename in
  10400. CC*)
  10401. # Sun C++ 4.2, 5.x and Centerline C++
  10402. archive_cmds_need_lc_CXX=yes
  10403. no_undefined_flag_CXX=' -zdefs'
  10404. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10405. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10406. $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'
  10407. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10408. hardcode_shlibpath_var_CXX=no
  10409. case $host_os in
  10410. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10411. *)
  10412. # The compiler driver will combine and reorder linker options,
  10413. # but understands `-z linker_flag'.
  10414. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10415. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10416. ;;
  10417. esac
  10418. link_all_deplibs_CXX=yes
  10419. output_verbose_link_cmd='echo'
  10420. # Archives containing C++ object files must be created using
  10421. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10422. # necessary to make sure instantiated templates are included
  10423. # in the archive.
  10424. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10425. ;;
  10426. gcx*)
  10427. # Green Hills C++ Compiler
  10428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10429. # The C++ compiler must be used to create the archive.
  10430. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10431. ;;
  10432. *)
  10433. # GNU C++ compiler with Solaris linker
  10434. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10435. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10436. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10437. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10438. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10439. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10440. # Commands to make compiler produce verbose output that lists
  10441. # what "hidden" libraries, object files and flags are used when
  10442. # linking a shared library.
  10443. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10444. else
  10445. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10446. # platform.
  10447. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10448. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10449. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10450. # Commands to make compiler produce verbose output that lists
  10451. # what "hidden" libraries, object files and flags are used when
  10452. # linking a shared library.
  10453. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10454. fi
  10455. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10456. case $host_os in
  10457. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10458. *)
  10459. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10460. ;;
  10461. esac
  10462. fi
  10463. ;;
  10464. esac
  10465. ;;
  10466. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10467. no_undefined_flag_CXX='${wl}-z,text'
  10468. archive_cmds_need_lc_CXX=no
  10469. hardcode_shlibpath_var_CXX=no
  10470. runpath_var='LD_RUN_PATH'
  10471. case $cc_basename in
  10472. CC*)
  10473. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10474. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10475. ;;
  10476. *)
  10477. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10478. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10479. ;;
  10480. esac
  10481. ;;
  10482. sysv5* | sco3.2v5* | sco5v6*)
  10483. # Note: We can NOT use -z defs as we might desire, because we do not
  10484. # link with -lc, and that would cause any symbols used from libc to
  10485. # always be unresolved, which means just about no library would
  10486. # ever link correctly. If we're not using GNU ld we use -z text
  10487. # though, which does catch some bad symbols but isn't as heavy-handed
  10488. # as -z defs.
  10489. no_undefined_flag_CXX='${wl}-z,text'
  10490. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10491. archive_cmds_need_lc_CXX=no
  10492. hardcode_shlibpath_var_CXX=no
  10493. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10494. hardcode_libdir_separator_CXX=':'
  10495. link_all_deplibs_CXX=yes
  10496. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10497. runpath_var='LD_RUN_PATH'
  10498. case $cc_basename in
  10499. CC*)
  10500. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10502. ;;
  10503. *)
  10504. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10505. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10506. ;;
  10507. esac
  10508. ;;
  10509. tandem*)
  10510. case $cc_basename in
  10511. NCC*)
  10512. # NonStop-UX NCC 3.20
  10513. # FIXME: insert proper C++ library support
  10514. ld_shlibs_CXX=no
  10515. ;;
  10516. *)
  10517. # FIXME: insert proper C++ library support
  10518. ld_shlibs_CXX=no
  10519. ;;
  10520. esac
  10521. ;;
  10522. vxworks*)
  10523. # FIXME: insert proper C++ library support
  10524. ld_shlibs_CXX=no
  10525. ;;
  10526. *)
  10527. # FIXME: insert proper C++ library support
  10528. ld_shlibs_CXX=no
  10529. ;;
  10530. esac
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10532. $as_echo "$ld_shlibs_CXX" >&6; }
  10533. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10534. GCC_CXX="$GXX"
  10535. LD_CXX="$LD"
  10536. ## CAVEAT EMPTOR:
  10537. ## There is no encapsulation within the following macros, do not change
  10538. ## the running order or otherwise move them around unless you know exactly
  10539. ## what you are doing...
  10540. # Dependencies to place before and after the object being linked:
  10541. predep_objects_CXX=
  10542. postdep_objects_CXX=
  10543. predeps_CXX=
  10544. postdeps_CXX=
  10545. compiler_lib_search_path_CXX=
  10546. cat > conftest.$ac_ext <<_LT_EOF
  10547. class Foo
  10548. {
  10549. public:
  10550. Foo (void) { a = 0; }
  10551. private:
  10552. int a;
  10553. };
  10554. _LT_EOF
  10555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10556. (eval $ac_compile) 2>&5
  10557. ac_status=$?
  10558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10559. test $ac_status = 0; }; then
  10560. # Parse the compiler output and extract the necessary
  10561. # objects, libraries and library flags.
  10562. # Sentinel used to keep track of whether or not we are before
  10563. # the conftest object file.
  10564. pre_test_object_deps_done=no
  10565. for p in `eval "$output_verbose_link_cmd"`; do
  10566. case $p in
  10567. -L* | -R* | -l*)
  10568. # Some compilers place space between "-{L,R}" and the path.
  10569. # Remove the space.
  10570. if test $p = "-L" ||
  10571. test $p = "-R"; then
  10572. prev=$p
  10573. continue
  10574. else
  10575. prev=
  10576. fi
  10577. if test "$pre_test_object_deps_done" = no; then
  10578. case $p in
  10579. -L* | -R*)
  10580. # Internal compiler library paths should come after those
  10581. # provided the user. The postdeps already come after the
  10582. # user supplied libs so there is no need to process them.
  10583. if test -z "$compiler_lib_search_path_CXX"; then
  10584. compiler_lib_search_path_CXX="${prev}${p}"
  10585. else
  10586. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10587. fi
  10588. ;;
  10589. # The "-l" case would never come before the object being
  10590. # linked, so don't bother handling this case.
  10591. esac
  10592. else
  10593. if test -z "$postdeps_CXX"; then
  10594. postdeps_CXX="${prev}${p}"
  10595. else
  10596. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10597. fi
  10598. fi
  10599. ;;
  10600. *.$objext)
  10601. # This assumes that the test object file only shows up
  10602. # once in the compiler output.
  10603. if test "$p" = "conftest.$objext"; then
  10604. pre_test_object_deps_done=yes
  10605. continue
  10606. fi
  10607. if test "$pre_test_object_deps_done" = no; then
  10608. if test -z "$predep_objects_CXX"; then
  10609. predep_objects_CXX="$p"
  10610. else
  10611. predep_objects_CXX="$predep_objects_CXX $p"
  10612. fi
  10613. else
  10614. if test -z "$postdep_objects_CXX"; then
  10615. postdep_objects_CXX="$p"
  10616. else
  10617. postdep_objects_CXX="$postdep_objects_CXX $p"
  10618. fi
  10619. fi
  10620. ;;
  10621. *) ;; # Ignore the rest.
  10622. esac
  10623. done
  10624. # Clean up.
  10625. rm -f a.out a.exe
  10626. else
  10627. echo "libtool.m4: error: problem compiling CXX test program"
  10628. fi
  10629. $RM -f confest.$objext
  10630. # PORTME: override above test on systems where it is broken
  10631. case $host_os in
  10632. interix[3-9]*)
  10633. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10634. # hack all around it, let's just trust "g++" to DTRT.
  10635. predep_objects_CXX=
  10636. postdep_objects_CXX=
  10637. postdeps_CXX=
  10638. ;;
  10639. linux*)
  10640. case `$CC -V 2>&1 | sed 5q` in
  10641. *Sun\ C*)
  10642. # Sun C++ 5.9
  10643. # The more standards-conforming stlport4 library is
  10644. # incompatible with the Cstd library. Avoid specifying
  10645. # it if it's in CXXFLAGS. Ignore libCrun as
  10646. # -library=stlport4 depends on it.
  10647. case " $CXX $CXXFLAGS " in
  10648. *" -library=stlport4 "*)
  10649. solaris_use_stlport4=yes
  10650. ;;
  10651. esac
  10652. if test "$solaris_use_stlport4" != yes; then
  10653. postdeps_CXX='-library=Cstd -library=Crun'
  10654. fi
  10655. ;;
  10656. esac
  10657. ;;
  10658. solaris*)
  10659. case $cc_basename in
  10660. CC*)
  10661. # The more standards-conforming stlport4 library is
  10662. # incompatible with the Cstd library. Avoid specifying
  10663. # it if it's in CXXFLAGS. Ignore libCrun as
  10664. # -library=stlport4 depends on it.
  10665. case " $CXX $CXXFLAGS " in
  10666. *" -library=stlport4 "*)
  10667. solaris_use_stlport4=yes
  10668. ;;
  10669. esac
  10670. # Adding this requires a known-good setup of shared libraries for
  10671. # Sun compiler versions before 5.6, else PIC objects from an old
  10672. # archive will be linked into the output, leading to subtle bugs.
  10673. if test "$solaris_use_stlport4" != yes; then
  10674. postdeps_CXX='-library=Cstd -library=Crun'
  10675. fi
  10676. ;;
  10677. esac
  10678. ;;
  10679. esac
  10680. case " $postdeps_CXX " in
  10681. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10682. esac
  10683. compiler_lib_search_dirs_CXX=
  10684. if test -n "${compiler_lib_search_path_CXX}"; then
  10685. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10686. fi
  10687. lt_prog_compiler_wl_CXX=
  10688. lt_prog_compiler_pic_CXX=
  10689. lt_prog_compiler_static_CXX=
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10691. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10692. # C++ specific cases for pic, static, wl, etc.
  10693. if test "$GXX" = yes; then
  10694. lt_prog_compiler_wl_CXX='-Wl,'
  10695. lt_prog_compiler_static_CXX='-static'
  10696. case $host_os in
  10697. aix*)
  10698. # All AIX code is PIC.
  10699. if test "$host_cpu" = ia64; then
  10700. # AIX 5 now supports IA64 processor
  10701. lt_prog_compiler_static_CXX='-Bstatic'
  10702. fi
  10703. ;;
  10704. amigaos*)
  10705. case $host_cpu in
  10706. powerpc)
  10707. # see comment about AmigaOS4 .so support
  10708. lt_prog_compiler_pic_CXX='-fPIC'
  10709. ;;
  10710. m68k)
  10711. # FIXME: we need at least 68020 code to build shared libraries, but
  10712. # adding the `-m68020' flag to GCC prevents building anything better,
  10713. # like `-m68040'.
  10714. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10715. ;;
  10716. esac
  10717. ;;
  10718. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10719. # PIC is the default for these OSes.
  10720. ;;
  10721. mingw* | cygwin* | os2* | pw32* | cegcc*)
  10722. # This hack is so that the source file can tell whether it is being
  10723. # built for inclusion in a dll (and should export symbols for example).
  10724. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10725. # (--disable-auto-import) libraries
  10726. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10727. ;;
  10728. darwin* | rhapsody*)
  10729. # PIC is the default on this platform
  10730. # Common symbols not allowed in MH_DYLIB files
  10731. lt_prog_compiler_pic_CXX='-fno-common'
  10732. ;;
  10733. *djgpp*)
  10734. # DJGPP does not support shared libraries at all
  10735. lt_prog_compiler_pic_CXX=
  10736. ;;
  10737. interix[3-9]*)
  10738. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10739. # Instead, we relocate shared libraries at runtime.
  10740. ;;
  10741. sysv4*MP*)
  10742. if test -d /usr/nec; then
  10743. lt_prog_compiler_pic_CXX=-Kconform_pic
  10744. fi
  10745. ;;
  10746. hpux*)
  10747. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10748. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10749. # sets the default TLS model and affects inlining.
  10750. case $host_cpu in
  10751. hppa*64*)
  10752. ;;
  10753. *)
  10754. lt_prog_compiler_pic_CXX='-fPIC'
  10755. ;;
  10756. esac
  10757. ;;
  10758. *qnx* | *nto*)
  10759. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10760. # it will coredump.
  10761. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10762. ;;
  10763. *)
  10764. lt_prog_compiler_pic_CXX='-fPIC'
  10765. ;;
  10766. esac
  10767. else
  10768. case $host_os in
  10769. aix[4-9]*)
  10770. # All AIX code is PIC.
  10771. if test "$host_cpu" = ia64; then
  10772. # AIX 5 now supports IA64 processor
  10773. lt_prog_compiler_static_CXX='-Bstatic'
  10774. else
  10775. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10776. fi
  10777. ;;
  10778. chorus*)
  10779. case $cc_basename in
  10780. cxch68*)
  10781. # Green Hills C++ Compiler
  10782. # _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"
  10783. ;;
  10784. esac
  10785. ;;
  10786. dgux*)
  10787. case $cc_basename in
  10788. ec++*)
  10789. lt_prog_compiler_pic_CXX='-KPIC'
  10790. ;;
  10791. ghcx*)
  10792. # Green Hills C++ Compiler
  10793. lt_prog_compiler_pic_CXX='-pic'
  10794. ;;
  10795. *)
  10796. ;;
  10797. esac
  10798. ;;
  10799. freebsd* | dragonfly*)
  10800. # FreeBSD uses GNU C++
  10801. ;;
  10802. hpux9* | hpux10* | hpux11*)
  10803. case $cc_basename in
  10804. CC*)
  10805. lt_prog_compiler_wl_CXX='-Wl,'
  10806. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10807. if test "$host_cpu" != ia64; then
  10808. lt_prog_compiler_pic_CXX='+Z'
  10809. fi
  10810. ;;
  10811. aCC*)
  10812. lt_prog_compiler_wl_CXX='-Wl,'
  10813. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10814. case $host_cpu in
  10815. hppa*64*|ia64*)
  10816. # +Z the default
  10817. ;;
  10818. *)
  10819. lt_prog_compiler_pic_CXX='+Z'
  10820. ;;
  10821. esac
  10822. ;;
  10823. *)
  10824. ;;
  10825. esac
  10826. ;;
  10827. interix*)
  10828. # This is c89, which is MS Visual C++ (no shared libs)
  10829. # Anyone wants to do a port?
  10830. ;;
  10831. irix5* | irix6* | nonstopux*)
  10832. case $cc_basename in
  10833. CC*)
  10834. lt_prog_compiler_wl_CXX='-Wl,'
  10835. lt_prog_compiler_static_CXX='-non_shared'
  10836. # CC pic flag -KPIC is the default.
  10837. ;;
  10838. *)
  10839. ;;
  10840. esac
  10841. ;;
  10842. linux* | k*bsd*-gnu)
  10843. case $cc_basename in
  10844. KCC*)
  10845. # KAI C++ Compiler
  10846. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10847. lt_prog_compiler_pic_CXX='-fPIC'
  10848. ;;
  10849. ecpc* )
  10850. # old Intel C++ for x86_64 which still supported -KPIC.
  10851. lt_prog_compiler_wl_CXX='-Wl,'
  10852. lt_prog_compiler_pic_CXX='-KPIC'
  10853. lt_prog_compiler_static_CXX='-static'
  10854. ;;
  10855. icpc* )
  10856. # Intel C++, used to be incompatible with GCC.
  10857. # ICC 10 doesn't accept -KPIC any more.
  10858. lt_prog_compiler_wl_CXX='-Wl,'
  10859. lt_prog_compiler_pic_CXX='-fPIC'
  10860. lt_prog_compiler_static_CXX='-static'
  10861. ;;
  10862. pgCC* | pgcpp*)
  10863. # Portland Group C++ compiler
  10864. lt_prog_compiler_wl_CXX='-Wl,'
  10865. lt_prog_compiler_pic_CXX='-fpic'
  10866. lt_prog_compiler_static_CXX='-Bstatic'
  10867. ;;
  10868. cxx*)
  10869. # Compaq C++
  10870. # Make sure the PIC flag is empty. It appears that all Alpha
  10871. # Linux and Compaq Tru64 Unix objects are PIC.
  10872. lt_prog_compiler_pic_CXX=
  10873. lt_prog_compiler_static_CXX='-non_shared'
  10874. ;;
  10875. xlc* | xlC*)
  10876. # IBM XL 8.0 on PPC
  10877. lt_prog_compiler_wl_CXX='-Wl,'
  10878. lt_prog_compiler_pic_CXX='-qpic'
  10879. lt_prog_compiler_static_CXX='-qstaticlink'
  10880. ;;
  10881. *)
  10882. case `$CC -V 2>&1 | sed 5q` in
  10883. *Sun\ C*)
  10884. # Sun C++ 5.9
  10885. lt_prog_compiler_pic_CXX='-KPIC'
  10886. lt_prog_compiler_static_CXX='-Bstatic'
  10887. lt_prog_compiler_wl_CXX='-Qoption ld '
  10888. ;;
  10889. esac
  10890. ;;
  10891. esac
  10892. ;;
  10893. lynxos*)
  10894. ;;
  10895. m88k*)
  10896. ;;
  10897. mvs*)
  10898. case $cc_basename in
  10899. cxx*)
  10900. lt_prog_compiler_pic_CXX='-W c,exportall'
  10901. ;;
  10902. *)
  10903. ;;
  10904. esac
  10905. ;;
  10906. netbsd* | netbsdelf*-gnu)
  10907. ;;
  10908. *qnx* | *nto*)
  10909. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10910. # it will coredump.
  10911. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10912. ;;
  10913. osf3* | osf4* | osf5*)
  10914. case $cc_basename in
  10915. KCC*)
  10916. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10917. ;;
  10918. RCC*)
  10919. # Rational C++ 2.4.1
  10920. lt_prog_compiler_pic_CXX='-pic'
  10921. ;;
  10922. cxx*)
  10923. # Digital/Compaq C++
  10924. lt_prog_compiler_wl_CXX='-Wl,'
  10925. # Make sure the PIC flag is empty. It appears that all Alpha
  10926. # Linux and Compaq Tru64 Unix objects are PIC.
  10927. lt_prog_compiler_pic_CXX=
  10928. lt_prog_compiler_static_CXX='-non_shared'
  10929. ;;
  10930. *)
  10931. ;;
  10932. esac
  10933. ;;
  10934. psos*)
  10935. ;;
  10936. solaris*)
  10937. case $cc_basename in
  10938. CC*)
  10939. # Sun C++ 4.2, 5.x and Centerline C++
  10940. lt_prog_compiler_pic_CXX='-KPIC'
  10941. lt_prog_compiler_static_CXX='-Bstatic'
  10942. lt_prog_compiler_wl_CXX='-Qoption ld '
  10943. ;;
  10944. gcx*)
  10945. # Green Hills C++ Compiler
  10946. lt_prog_compiler_pic_CXX='-PIC'
  10947. ;;
  10948. *)
  10949. ;;
  10950. esac
  10951. ;;
  10952. sunos4*)
  10953. case $cc_basename in
  10954. CC*)
  10955. # Sun C++ 4.x
  10956. lt_prog_compiler_pic_CXX='-pic'
  10957. lt_prog_compiler_static_CXX='-Bstatic'
  10958. ;;
  10959. lcc*)
  10960. # Lucid
  10961. lt_prog_compiler_pic_CXX='-pic'
  10962. ;;
  10963. *)
  10964. ;;
  10965. esac
  10966. ;;
  10967. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10968. case $cc_basename in
  10969. CC*)
  10970. lt_prog_compiler_wl_CXX='-Wl,'
  10971. lt_prog_compiler_pic_CXX='-KPIC'
  10972. lt_prog_compiler_static_CXX='-Bstatic'
  10973. ;;
  10974. esac
  10975. ;;
  10976. tandem*)
  10977. case $cc_basename in
  10978. NCC*)
  10979. # NonStop-UX NCC 3.20
  10980. lt_prog_compiler_pic_CXX='-KPIC'
  10981. ;;
  10982. *)
  10983. ;;
  10984. esac
  10985. ;;
  10986. vxworks*)
  10987. ;;
  10988. *)
  10989. lt_prog_compiler_can_build_shared_CXX=no
  10990. ;;
  10991. esac
  10992. fi
  10993. case $host_os in
  10994. # For platforms which do not support PIC, -DPIC is meaningless:
  10995. *djgpp*)
  10996. lt_prog_compiler_pic_CXX=
  10997. ;;
  10998. *)
  10999. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11000. ;;
  11001. esac
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11003. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11004. #
  11005. # Check to make sure the PIC flag actually works.
  11006. #
  11007. if test -n "$lt_prog_compiler_pic_CXX"; then
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11009. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11010. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. lt_cv_prog_compiler_pic_works_CXX=no
  11014. ac_outfile=conftest.$ac_objext
  11015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11016. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11017. # Insert the option either (1) after the last *FLAGS variable, or
  11018. # (2) before a word containing "conftest.", or (3) at the end.
  11019. # Note that $ac_compile itself does not contain backslashes and begins
  11020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11021. # The option is referenced via a variable to avoid confusing sed.
  11022. lt_compile=`echo "$ac_compile" | $SED \
  11023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11025. -e 's:$: $lt_compiler_flag:'`
  11026. (eval echo "\"\$as_me:12752: $lt_compile\"" >&5)
  11027. (eval "$lt_compile" 2>conftest.err)
  11028. ac_status=$?
  11029. cat conftest.err >&5
  11030. echo "$as_me:12756: \$? = $ac_status" >&5
  11031. if (exit $ac_status) && test -s "$ac_outfile"; then
  11032. # The compiler can only warn and ignore the option if not recognized
  11033. # So say no if there are warnings other than the usual output.
  11034. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11037. lt_cv_prog_compiler_pic_works_CXX=yes
  11038. fi
  11039. fi
  11040. $RM conftest*
  11041. fi
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11043. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11044. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11045. case $lt_prog_compiler_pic_CXX in
  11046. "" | " "*) ;;
  11047. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11048. esac
  11049. else
  11050. lt_prog_compiler_pic_CXX=
  11051. lt_prog_compiler_can_build_shared_CXX=no
  11052. fi
  11053. fi
  11054. #
  11055. # Check to make sure the static flag actually works.
  11056. #
  11057. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11059. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11060. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. lt_cv_prog_compiler_static_works_CXX=no
  11064. save_LDFLAGS="$LDFLAGS"
  11065. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11066. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11067. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11068. # The linker can only warn and ignore the option if not recognized
  11069. # So say no if there are warnings
  11070. if test -s conftest.err; then
  11071. # Append any errors to the config.log.
  11072. cat conftest.err 1>&5
  11073. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11074. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11075. if diff conftest.exp conftest.er2 >/dev/null; then
  11076. lt_cv_prog_compiler_static_works_CXX=yes
  11077. fi
  11078. else
  11079. lt_cv_prog_compiler_static_works_CXX=yes
  11080. fi
  11081. fi
  11082. $RM -r conftest*
  11083. LDFLAGS="$save_LDFLAGS"
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11086. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11087. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11088. :
  11089. else
  11090. lt_prog_compiler_static_CXX=
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11093. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11094. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. lt_cv_prog_compiler_c_o_CXX=no
  11098. $RM -r conftest 2>/dev/null
  11099. mkdir conftest
  11100. cd conftest
  11101. mkdir out
  11102. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11103. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11104. # Insert the option either (1) after the last *FLAGS variable, or
  11105. # (2) before a word containing "conftest.", or (3) at the end.
  11106. # Note that $ac_compile itself does not contain backslashes and begins
  11107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11108. lt_compile=`echo "$ac_compile" | $SED \
  11109. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11110. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11111. -e 's:$: $lt_compiler_flag:'`
  11112. (eval echo "\"\$as_me:12851: $lt_compile\"" >&5)
  11113. (eval "$lt_compile" 2>out/conftest.err)
  11114. ac_status=$?
  11115. cat out/conftest.err >&5
  11116. echo "$as_me:12855: \$? = $ac_status" >&5
  11117. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11118. then
  11119. # The compiler can only warn and ignore the option if not recognized
  11120. # So say no if there are warnings
  11121. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11122. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11123. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11124. lt_cv_prog_compiler_c_o_CXX=yes
  11125. fi
  11126. fi
  11127. chmod u+w . 2>&5
  11128. $RM conftest*
  11129. # SGI C++ compiler will create directory out/ii_files/ for
  11130. # template instantiation
  11131. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11132. $RM out/* && rmdir out
  11133. cd ..
  11134. $RM -r conftest
  11135. $RM conftest*
  11136. fi
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11138. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11140. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11141. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11142. $as_echo_n "(cached) " >&6
  11143. else
  11144. lt_cv_prog_compiler_c_o_CXX=no
  11145. $RM -r conftest 2>/dev/null
  11146. mkdir conftest
  11147. cd conftest
  11148. mkdir out
  11149. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11150. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11151. # Insert the option either (1) after the last *FLAGS variable, or
  11152. # (2) before a word containing "conftest.", or (3) at the end.
  11153. # Note that $ac_compile itself does not contain backslashes and begins
  11154. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11155. lt_compile=`echo "$ac_compile" | $SED \
  11156. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11157. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11158. -e 's:$: $lt_compiler_flag:'`
  11159. (eval echo "\"\$as_me:12903: $lt_compile\"" >&5)
  11160. (eval "$lt_compile" 2>out/conftest.err)
  11161. ac_status=$?
  11162. cat out/conftest.err >&5
  11163. echo "$as_me:12907: \$? = $ac_status" >&5
  11164. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11165. then
  11166. # The compiler can only warn and ignore the option if not recognized
  11167. # So say no if there are warnings
  11168. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11169. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11170. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11171. lt_cv_prog_compiler_c_o_CXX=yes
  11172. fi
  11173. fi
  11174. chmod u+w . 2>&5
  11175. $RM conftest*
  11176. # SGI C++ compiler will create directory out/ii_files/ for
  11177. # template instantiation
  11178. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11179. $RM out/* && rmdir out
  11180. cd ..
  11181. $RM -r conftest
  11182. $RM conftest*
  11183. fi
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11185. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11186. hard_links="nottested"
  11187. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11188. # do not overwrite the value of need_locks provided by the user
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11190. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11191. hard_links=yes
  11192. $RM conftest*
  11193. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11194. touch conftest.a
  11195. ln conftest.a conftest.b 2>&5 || hard_links=no
  11196. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11198. $as_echo "$hard_links" >&6; }
  11199. if test "$hard_links" = no; then
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11201. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11202. need_locks=warn
  11203. fi
  11204. else
  11205. need_locks=no
  11206. fi
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11208. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11209. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11210. case $host_os in
  11211. aix[4-9]*)
  11212. # If we're using GNU nm, then we don't want the "-C" option.
  11213. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11214. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11215. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11216. else
  11217. 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'
  11218. fi
  11219. ;;
  11220. pw32*)
  11221. export_symbols_cmds_CXX="$ltdll_cmds"
  11222. ;;
  11223. cygwin* | mingw* | cegcc*)
  11224. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11225. ;;
  11226. linux* | k*bsd*-gnu)
  11227. link_all_deplibs_CXX=no
  11228. ;;
  11229. *)
  11230. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11231. ;;
  11232. esac
  11233. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11235. $as_echo "$ld_shlibs_CXX" >&6; }
  11236. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11237. with_gnu_ld_CXX=$with_gnu_ld
  11238. #
  11239. # Do we need to explicitly link libc?
  11240. #
  11241. case "x$archive_cmds_need_lc_CXX" in
  11242. x|xyes)
  11243. # Assume -lc should be added
  11244. archive_cmds_need_lc_CXX=yes
  11245. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11246. case $archive_cmds_CXX in
  11247. *'~'*)
  11248. # FIXME: we may have to deal with multi-command sequences.
  11249. ;;
  11250. '$CC '*)
  11251. # Test whether the compiler implicitly links with -lc since on some
  11252. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11253. # to ld, don't add -lc before -lgcc.
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11255. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11256. $RM conftest*
  11257. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11259. (eval $ac_compile) 2>&5
  11260. ac_status=$?
  11261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11262. test $ac_status = 0; } 2>conftest.err; then
  11263. soname=conftest
  11264. lib=conftest
  11265. libobjs=conftest.$ac_objext
  11266. deplibs=
  11267. wl=$lt_prog_compiler_wl_CXX
  11268. pic_flag=$lt_prog_compiler_pic_CXX
  11269. compiler_flags=-v
  11270. linker_flags=-v
  11271. verstring=
  11272. output_objdir=.
  11273. libname=conftest
  11274. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11275. allow_undefined_flag_CXX=
  11276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11277. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11278. ac_status=$?
  11279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11280. test $ac_status = 0; }
  11281. then
  11282. archive_cmds_need_lc_CXX=no
  11283. else
  11284. archive_cmds_need_lc_CXX=yes
  11285. fi
  11286. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11287. else
  11288. cat conftest.err 1>&5
  11289. fi
  11290. $RM conftest*
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11292. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11293. ;;
  11294. esac
  11295. fi
  11296. ;;
  11297. esac
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11299. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11300. library_names_spec=
  11301. libname_spec='lib$name'
  11302. soname_spec=
  11303. shrext_cmds=".so"
  11304. postinstall_cmds=
  11305. postuninstall_cmds=
  11306. finish_cmds=
  11307. finish_eval=
  11308. shlibpath_var=
  11309. shlibpath_overrides_runpath=unknown
  11310. version_type=none
  11311. dynamic_linker="$host_os ld.so"
  11312. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11313. need_lib_prefix=unknown
  11314. hardcode_into_libs=no
  11315. # when you set need_version to no, make sure it does not cause -set_version
  11316. # flags to be left without arguments
  11317. need_version=unknown
  11318. case $host_os in
  11319. aix3*)
  11320. version_type=linux
  11321. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11322. shlibpath_var=LIBPATH
  11323. # AIX 3 has no versioning support, so we append a major version to the name.
  11324. soname_spec='${libname}${release}${shared_ext}$major'
  11325. ;;
  11326. aix[4-9]*)
  11327. version_type=linux
  11328. need_lib_prefix=no
  11329. need_version=no
  11330. hardcode_into_libs=yes
  11331. if test "$host_cpu" = ia64; then
  11332. # AIX 5 supports IA64
  11333. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11334. shlibpath_var=LD_LIBRARY_PATH
  11335. else
  11336. # With GCC up to 2.95.x, collect2 would create an import file
  11337. # for dependence libraries. The import file would start with
  11338. # the line `#! .'. This would cause the generated library to
  11339. # depend on `.', always an invalid library. This was fixed in
  11340. # development snapshots of GCC prior to 3.0.
  11341. case $host_os in
  11342. aix4 | aix4.[01] | aix4.[01].*)
  11343. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11344. echo ' yes '
  11345. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11346. :
  11347. else
  11348. can_build_shared=no
  11349. fi
  11350. ;;
  11351. esac
  11352. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11353. # soname into executable. Probably we can add versioning support to
  11354. # collect2, so additional links can be useful in future.
  11355. if test "$aix_use_runtimelinking" = yes; then
  11356. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11357. # instead of lib<name>.a to let people know that these are not
  11358. # typical AIX shared libraries.
  11359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11360. else
  11361. # We preserve .a as extension for shared libraries through AIX4.2
  11362. # and later when we are not doing run time linking.
  11363. library_names_spec='${libname}${release}.a $libname.a'
  11364. soname_spec='${libname}${release}${shared_ext}$major'
  11365. fi
  11366. shlibpath_var=LIBPATH
  11367. fi
  11368. ;;
  11369. amigaos*)
  11370. case $host_cpu in
  11371. powerpc)
  11372. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11373. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11375. ;;
  11376. m68k)
  11377. library_names_spec='$libname.ixlibrary $libname.a'
  11378. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11379. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11380. ;;
  11381. esac
  11382. ;;
  11383. beos*)
  11384. library_names_spec='${libname}${shared_ext}'
  11385. dynamic_linker="$host_os ld.so"
  11386. shlibpath_var=LIBRARY_PATH
  11387. ;;
  11388. bsdi[45]*)
  11389. version_type=linux
  11390. need_version=no
  11391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11392. soname_spec='${libname}${release}${shared_ext}$major'
  11393. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11394. shlibpath_var=LD_LIBRARY_PATH
  11395. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11396. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11397. # the default ld.so.conf also contains /usr/contrib/lib and
  11398. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11399. # libtool to hard-code these into programs
  11400. ;;
  11401. cygwin* | mingw* | pw32* | cegcc*)
  11402. version_type=windows
  11403. shrext_cmds=".dll"
  11404. need_version=no
  11405. need_lib_prefix=no
  11406. case $GCC,$host_os in
  11407. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11408. library_names_spec='$libname.dll.a'
  11409. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11410. postinstall_cmds='base_file=`basename \${file}`~
  11411. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11412. dldir=$destdir/`dirname \$dlpath`~
  11413. test -d \$dldir || mkdir -p \$dldir~
  11414. $install_prog $dir/$dlname \$dldir/$dlname~
  11415. chmod a+x \$dldir/$dlname~
  11416. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11417. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11418. fi'
  11419. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11420. dlpath=$dir/\$dldll~
  11421. $RM \$dlpath'
  11422. shlibpath_overrides_runpath=yes
  11423. case $host_os in
  11424. cygwin*)
  11425. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11426. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11427. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11428. ;;
  11429. mingw* | cegcc*)
  11430. # MinGW DLLs use traditional 'lib' prefix
  11431. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11432. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11433. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11434. # It is most probably a Windows format PATH printed by
  11435. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11436. # path with ; separators, and with drive letters. We can handle the
  11437. # drive letters (cygwin fileutils understands them), so leave them,
  11438. # especially as we might pass files found there to a mingw objdump,
  11439. # which wouldn't understand a cygwinified path. Ahh.
  11440. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11441. else
  11442. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11443. fi
  11444. ;;
  11445. pw32*)
  11446. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11447. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11448. ;;
  11449. esac
  11450. ;;
  11451. *)
  11452. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11453. ;;
  11454. esac
  11455. dynamic_linker='Win32 ld.exe'
  11456. # FIXME: first we should search . and the directory the executable is in
  11457. shlibpath_var=PATH
  11458. ;;
  11459. darwin* | rhapsody*)
  11460. dynamic_linker="$host_os dyld"
  11461. version_type=darwin
  11462. need_lib_prefix=no
  11463. need_version=no
  11464. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11465. soname_spec='${libname}${release}${major}$shared_ext'
  11466. shlibpath_overrides_runpath=yes
  11467. shlibpath_var=DYLD_LIBRARY_PATH
  11468. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11469. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11470. ;;
  11471. dgux*)
  11472. version_type=linux
  11473. need_lib_prefix=no
  11474. need_version=no
  11475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11476. soname_spec='${libname}${release}${shared_ext}$major'
  11477. shlibpath_var=LD_LIBRARY_PATH
  11478. ;;
  11479. freebsd1*)
  11480. dynamic_linker=no
  11481. ;;
  11482. freebsd* | dragonfly*)
  11483. # DragonFly does not have aout. When/if they implement a new
  11484. # versioning mechanism, adjust this.
  11485. if test -x /usr/bin/objformat; then
  11486. objformat=`/usr/bin/objformat`
  11487. else
  11488. case $host_os in
  11489. freebsd[123]*) objformat=aout ;;
  11490. *) objformat=elf ;;
  11491. esac
  11492. fi
  11493. version_type=freebsd-$objformat
  11494. case $version_type in
  11495. freebsd-elf*)
  11496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11497. need_version=no
  11498. need_lib_prefix=no
  11499. ;;
  11500. freebsd-*)
  11501. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11502. need_version=yes
  11503. ;;
  11504. esac
  11505. shlibpath_var=LD_LIBRARY_PATH
  11506. case $host_os in
  11507. freebsd2*)
  11508. shlibpath_overrides_runpath=yes
  11509. ;;
  11510. freebsd3.[01]* | freebsdelf3.[01]*)
  11511. shlibpath_overrides_runpath=yes
  11512. hardcode_into_libs=yes
  11513. ;;
  11514. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11515. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11516. shlibpath_overrides_runpath=no
  11517. hardcode_into_libs=yes
  11518. ;;
  11519. *) # from 4.6 on, and DragonFly
  11520. shlibpath_overrides_runpath=yes
  11521. hardcode_into_libs=yes
  11522. ;;
  11523. esac
  11524. ;;
  11525. gnu*)
  11526. version_type=linux
  11527. need_lib_prefix=no
  11528. need_version=no
  11529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11530. soname_spec='${libname}${release}${shared_ext}$major'
  11531. shlibpath_var=LD_LIBRARY_PATH
  11532. hardcode_into_libs=yes
  11533. ;;
  11534. hpux9* | hpux10* | hpux11*)
  11535. # Give a soname corresponding to the major version so that dld.sl refuses to
  11536. # link against other versions.
  11537. version_type=sunos
  11538. need_lib_prefix=no
  11539. need_version=no
  11540. case $host_cpu in
  11541. ia64*)
  11542. shrext_cmds='.so'
  11543. hardcode_into_libs=yes
  11544. dynamic_linker="$host_os dld.so"
  11545. shlibpath_var=LD_LIBRARY_PATH
  11546. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11548. soname_spec='${libname}${release}${shared_ext}$major'
  11549. if test "X$HPUX_IA64_MODE" = X32; then
  11550. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11551. else
  11552. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11553. fi
  11554. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11555. ;;
  11556. hppa*64*)
  11557. shrext_cmds='.sl'
  11558. hardcode_into_libs=yes
  11559. dynamic_linker="$host_os dld.sl"
  11560. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11561. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11563. soname_spec='${libname}${release}${shared_ext}$major'
  11564. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11565. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11566. ;;
  11567. *)
  11568. shrext_cmds='.sl'
  11569. dynamic_linker="$host_os dld.sl"
  11570. shlibpath_var=SHLIB_PATH
  11571. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11573. soname_spec='${libname}${release}${shared_ext}$major'
  11574. ;;
  11575. esac
  11576. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11577. postinstall_cmds='chmod 555 $lib'
  11578. ;;
  11579. interix[3-9]*)
  11580. version_type=linux
  11581. need_lib_prefix=no
  11582. need_version=no
  11583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11584. soname_spec='${libname}${release}${shared_ext}$major'
  11585. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11586. shlibpath_var=LD_LIBRARY_PATH
  11587. shlibpath_overrides_runpath=no
  11588. hardcode_into_libs=yes
  11589. ;;
  11590. irix5* | irix6* | nonstopux*)
  11591. case $host_os in
  11592. nonstopux*) version_type=nonstopux ;;
  11593. *)
  11594. if test "$lt_cv_prog_gnu_ld" = yes; then
  11595. version_type=linux
  11596. else
  11597. version_type=irix
  11598. fi ;;
  11599. esac
  11600. need_lib_prefix=no
  11601. need_version=no
  11602. soname_spec='${libname}${release}${shared_ext}$major'
  11603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11604. case $host_os in
  11605. irix5* | nonstopux*)
  11606. libsuff= shlibsuff=
  11607. ;;
  11608. *)
  11609. case $LD in # libtool.m4 will add one of these switches to LD
  11610. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11611. libsuff= shlibsuff= libmagic=32-bit;;
  11612. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11613. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11614. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11615. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11616. *) libsuff= shlibsuff= libmagic=never-match;;
  11617. esac
  11618. ;;
  11619. esac
  11620. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11621. shlibpath_overrides_runpath=no
  11622. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11623. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11624. hardcode_into_libs=yes
  11625. ;;
  11626. # No shared lib support for Linux oldld, aout, or coff.
  11627. linux*oldld* | linux*aout* | linux*coff*)
  11628. dynamic_linker=no
  11629. ;;
  11630. # This must be Linux ELF.
  11631. linux* | k*bsd*-gnu)
  11632. version_type=linux
  11633. need_lib_prefix=no
  11634. need_version=no
  11635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11636. soname_spec='${libname}${release}${shared_ext}$major'
  11637. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11638. shlibpath_var=LD_LIBRARY_PATH
  11639. shlibpath_overrides_runpath=no
  11640. # Some binutils ld are patched to set DT_RUNPATH
  11641. save_LDFLAGS=$LDFLAGS
  11642. save_libdir=$libdir
  11643. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11644. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11646. /* end confdefs.h. */
  11647. int
  11648. main ()
  11649. {
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_cxx_try_link "$LINENO"; then :
  11655. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11656. shlibpath_overrides_runpath=yes
  11657. fi
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. LDFLAGS=$save_LDFLAGS
  11662. libdir=$save_libdir
  11663. # This implies no fast_install, which is unacceptable.
  11664. # Some rework will be needed to allow for fast_install
  11665. # before this can be enabled.
  11666. hardcode_into_libs=yes
  11667. # Append ld.so.conf contents to the search path
  11668. if test -f /etc/ld.so.conf; then
  11669. 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;/^$/d' | tr '\n' ' '`
  11670. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11671. fi
  11672. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11673. # powerpc, because MkLinux only supported shared libraries with the
  11674. # GNU dynamic linker. Since this was broken with cross compilers,
  11675. # most powerpc-linux boxes support dynamic linking these days and
  11676. # people can always --disable-shared, the test was removed, and we
  11677. # assume the GNU/Linux dynamic linker is in use.
  11678. dynamic_linker='GNU/Linux ld.so'
  11679. ;;
  11680. netbsdelf*-gnu)
  11681. version_type=linux
  11682. need_lib_prefix=no
  11683. need_version=no
  11684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11685. soname_spec='${libname}${release}${shared_ext}$major'
  11686. shlibpath_var=LD_LIBRARY_PATH
  11687. shlibpath_overrides_runpath=no
  11688. hardcode_into_libs=yes
  11689. dynamic_linker='NetBSD ld.elf_so'
  11690. ;;
  11691. netbsd*)
  11692. version_type=sunos
  11693. need_lib_prefix=no
  11694. need_version=no
  11695. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11697. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11698. dynamic_linker='NetBSD (a.out) ld.so'
  11699. else
  11700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11701. soname_spec='${libname}${release}${shared_ext}$major'
  11702. dynamic_linker='NetBSD ld.elf_so'
  11703. fi
  11704. shlibpath_var=LD_LIBRARY_PATH
  11705. shlibpath_overrides_runpath=yes
  11706. hardcode_into_libs=yes
  11707. ;;
  11708. newsos6)
  11709. version_type=linux
  11710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11711. shlibpath_var=LD_LIBRARY_PATH
  11712. shlibpath_overrides_runpath=yes
  11713. ;;
  11714. *nto* | *qnx*)
  11715. version_type=qnx
  11716. need_lib_prefix=no
  11717. need_version=no
  11718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11719. soname_spec='${libname}${release}${shared_ext}$major'
  11720. shlibpath_var=LD_LIBRARY_PATH
  11721. shlibpath_overrides_runpath=no
  11722. hardcode_into_libs=yes
  11723. dynamic_linker='ldqnx.so'
  11724. ;;
  11725. openbsd*)
  11726. version_type=sunos
  11727. sys_lib_dlsearch_path_spec="/usr/lib"
  11728. need_lib_prefix=no
  11729. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11730. case $host_os in
  11731. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11732. *) need_version=no ;;
  11733. esac
  11734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11735. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11736. shlibpath_var=LD_LIBRARY_PATH
  11737. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11738. case $host_os in
  11739. openbsd2.[89] | openbsd2.[89].*)
  11740. shlibpath_overrides_runpath=no
  11741. ;;
  11742. *)
  11743. shlibpath_overrides_runpath=yes
  11744. ;;
  11745. esac
  11746. else
  11747. shlibpath_overrides_runpath=yes
  11748. fi
  11749. ;;
  11750. os2*)
  11751. libname_spec='$name'
  11752. shrext_cmds=".dll"
  11753. need_lib_prefix=no
  11754. library_names_spec='$libname${shared_ext} $libname.a'
  11755. dynamic_linker='OS/2 ld.exe'
  11756. shlibpath_var=LIBPATH
  11757. ;;
  11758. osf3* | osf4* | osf5*)
  11759. version_type=osf
  11760. need_lib_prefix=no
  11761. need_version=no
  11762. soname_spec='${libname}${release}${shared_ext}$major'
  11763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11764. shlibpath_var=LD_LIBRARY_PATH
  11765. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11766. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11767. ;;
  11768. rdos*)
  11769. dynamic_linker=no
  11770. ;;
  11771. solaris*)
  11772. version_type=linux
  11773. need_lib_prefix=no
  11774. need_version=no
  11775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11776. soname_spec='${libname}${release}${shared_ext}$major'
  11777. shlibpath_var=LD_LIBRARY_PATH
  11778. shlibpath_overrides_runpath=yes
  11779. hardcode_into_libs=yes
  11780. # ldd complains unless libraries are executable
  11781. postinstall_cmds='chmod +x $lib'
  11782. ;;
  11783. sunos4*)
  11784. version_type=sunos
  11785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11786. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11787. shlibpath_var=LD_LIBRARY_PATH
  11788. shlibpath_overrides_runpath=yes
  11789. if test "$with_gnu_ld" = yes; then
  11790. need_lib_prefix=no
  11791. fi
  11792. need_version=yes
  11793. ;;
  11794. sysv4 | sysv4.3*)
  11795. version_type=linux
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11797. soname_spec='${libname}${release}${shared_ext}$major'
  11798. shlibpath_var=LD_LIBRARY_PATH
  11799. case $host_vendor in
  11800. sni)
  11801. shlibpath_overrides_runpath=no
  11802. need_lib_prefix=no
  11803. runpath_var=LD_RUN_PATH
  11804. ;;
  11805. siemens)
  11806. need_lib_prefix=no
  11807. ;;
  11808. motorola)
  11809. need_lib_prefix=no
  11810. need_version=no
  11811. shlibpath_overrides_runpath=no
  11812. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11813. ;;
  11814. esac
  11815. ;;
  11816. sysv4*MP*)
  11817. if test -d /usr/nec ;then
  11818. version_type=linux
  11819. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11820. soname_spec='$libname${shared_ext}.$major'
  11821. shlibpath_var=LD_LIBRARY_PATH
  11822. fi
  11823. ;;
  11824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11825. version_type=freebsd-elf
  11826. need_lib_prefix=no
  11827. need_version=no
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. soname_spec='${libname}${release}${shared_ext}$major'
  11830. shlibpath_var=LD_LIBRARY_PATH
  11831. shlibpath_overrides_runpath=yes
  11832. hardcode_into_libs=yes
  11833. if test "$with_gnu_ld" = yes; then
  11834. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11835. else
  11836. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11837. case $host_os in
  11838. sco3.2v5*)
  11839. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11840. ;;
  11841. esac
  11842. fi
  11843. sys_lib_dlsearch_path_spec='/usr/lib'
  11844. ;;
  11845. tpf*)
  11846. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11847. version_type=linux
  11848. need_lib_prefix=no
  11849. need_version=no
  11850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11851. shlibpath_var=LD_LIBRARY_PATH
  11852. shlibpath_overrides_runpath=no
  11853. hardcode_into_libs=yes
  11854. ;;
  11855. uts4*)
  11856. version_type=linux
  11857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. shlibpath_var=LD_LIBRARY_PATH
  11860. ;;
  11861. *)
  11862. dynamic_linker=no
  11863. ;;
  11864. esac
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11866. $as_echo "$dynamic_linker" >&6; }
  11867. test "$dynamic_linker" = no && can_build_shared=no
  11868. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11869. if test "$GCC" = yes; then
  11870. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11871. fi
  11872. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11873. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11874. fi
  11875. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11876. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11877. fi
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11879. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11880. hardcode_action_CXX=
  11881. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  11882. test -n "$runpath_var_CXX" ||
  11883. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11884. # We can hardcode non-existent directories.
  11885. if test "$hardcode_direct_CXX" != no &&
  11886. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11887. # have to relink, otherwise we might link with an installed library
  11888. # when we should be linking with a yet-to-be-installed one
  11889. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11890. test "$hardcode_minus_L_CXX" != no; then
  11891. # Linking always hardcodes the temporary library directory.
  11892. hardcode_action_CXX=relink
  11893. else
  11894. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11895. hardcode_action_CXX=immediate
  11896. fi
  11897. else
  11898. # We cannot hardcode anything, or else we can only hardcode existing
  11899. # directories.
  11900. hardcode_action_CXX=unsupported
  11901. fi
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  11903. $as_echo "$hardcode_action_CXX" >&6; }
  11904. if test "$hardcode_action_CXX" = relink ||
  11905. test "$inherit_rpath_CXX" = yes; then
  11906. # Fast installation is not supported
  11907. enable_fast_install=no
  11908. elif test "$shlibpath_overrides_runpath" = yes ||
  11909. test "$enable_shared" = no; then
  11910. # Fast installation is not necessary
  11911. enable_fast_install=needless
  11912. fi
  11913. fi # test -n "$compiler"
  11914. CC=$lt_save_CC
  11915. LDCXX=$LD
  11916. LD=$lt_save_LD
  11917. GCC=$lt_save_GCC
  11918. with_gnu_ld=$lt_save_with_gnu_ld
  11919. lt_cv_path_LDCXX=$lt_cv_path_LD
  11920. lt_cv_path_LD=$lt_save_path_LD
  11921. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11922. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11923. fi # test "$_lt_caught_CXX_error" != yes
  11924. ac_ext=c
  11925. ac_cpp='$CPP $CPPFLAGS'
  11926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11929. ac_config_commands="$ac_config_commands libtool"
  11930. # Only expand once:
  11931. ac_config_headers="$ac_config_headers config.h"
  11932. am__api_version='1.11'
  11933. # Find a good install program. We prefer a C program (faster),
  11934. # so one script is as good as another. But avoid the broken or
  11935. # incompatible versions:
  11936. # SysV /etc/install, /usr/sbin/install
  11937. # SunOS /usr/etc/install
  11938. # IRIX /sbin/install
  11939. # AIX /bin/install
  11940. # AmigaOS /C/install, which installs bootblocks on floppy discs
  11941. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  11942. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  11943. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11944. # OS/2's system install, which has a completely different semantic
  11945. # ./install, which can be erroneously created by make from ./install.sh.
  11946. # Reject install programs that cannot install multiple files.
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11948. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  11949. if test -z "$INSTALL"; then
  11950. if test "${ac_cv_path_install+set}" = set; then :
  11951. $as_echo_n "(cached) " >&6
  11952. else
  11953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11954. for as_dir in $PATH
  11955. do
  11956. IFS=$as_save_IFS
  11957. test -z "$as_dir" && as_dir=.
  11958. # Account for people who put trailing slashes in PATH elements.
  11959. case $as_dir/ in #((
  11960. ./ | .// | /[cC]/* | \
  11961. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11962. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11963. /usr/ucb/* ) ;;
  11964. *)
  11965. # OSF1 and SCO ODT 3.0 have their own names for install.
  11966. # Don't use installbsd from OSF since it installs stuff as root
  11967. # by default.
  11968. for ac_prog in ginstall scoinst install; do
  11969. for ac_exec_ext in '' $ac_executable_extensions; do
  11970. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  11971. if test $ac_prog = install &&
  11972. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11973. # AIX install. It has an incompatible calling convention.
  11974. :
  11975. elif test $ac_prog = install &&
  11976. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11977. # program-specific install script used by HP pwplus--don't use.
  11978. :
  11979. else
  11980. rm -rf conftest.one conftest.two conftest.dir
  11981. echo one > conftest.one
  11982. echo two > conftest.two
  11983. mkdir conftest.dir
  11984. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  11985. test -s conftest.one && test -s conftest.two &&
  11986. test -s conftest.dir/conftest.one &&
  11987. test -s conftest.dir/conftest.two
  11988. then
  11989. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11990. break 3
  11991. fi
  11992. fi
  11993. fi
  11994. done
  11995. done
  11996. ;;
  11997. esac
  11998. done
  11999. IFS=$as_save_IFS
  12000. rm -rf conftest.one conftest.two conftest.dir
  12001. fi
  12002. if test "${ac_cv_path_install+set}" = set; then
  12003. INSTALL=$ac_cv_path_install
  12004. else
  12005. # As a last resort, use the slow shell script. Don't cache a
  12006. # value for INSTALL within a source directory, because that will
  12007. # break other packages using the cache if that directory is
  12008. # removed, or if the value is a relative name.
  12009. INSTALL=$ac_install_sh
  12010. fi
  12011. fi
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12013. $as_echo "$INSTALL" >&6; }
  12014. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12015. # It thinks the first close brace ends the variable substitution.
  12016. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12017. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12018. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12020. $as_echo_n "checking whether build environment is sane... " >&6; }
  12021. # Just in case
  12022. sleep 1
  12023. echo timestamp > conftest.file
  12024. # Reject unsafe characters in $srcdir or the absolute working directory
  12025. # name. Accept space and tab only in the latter.
  12026. am_lf='
  12027. '
  12028. case `pwd` in
  12029. *[\\\"\#\$\&\'\`$am_lf]*)
  12030. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  12031. esac
  12032. case $srcdir in
  12033. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12034. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12035. esac
  12036. # Do `set' in a subshell so we don't clobber the current shell's
  12037. # arguments. Must try -L first in case configure is actually a
  12038. # symlink; some systems play weird games with the mod time of symlinks
  12039. # (eg FreeBSD returns the mod time of the symlink's containing
  12040. # directory).
  12041. if (
  12042. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12043. if test "$*" = "X"; then
  12044. # -L didn't work.
  12045. set X `ls -t "$srcdir/configure" conftest.file`
  12046. fi
  12047. rm -f conftest.file
  12048. if test "$*" != "X $srcdir/configure conftest.file" \
  12049. && test "$*" != "X conftest.file $srcdir/configure"; then
  12050. # If neither matched, then we have a broken ls. This can happen
  12051. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12052. # broken ls alias from the environment. This has actually
  12053. # happened. Such a system could not be considered "sane".
  12054. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  12055. alias in your environment" "$LINENO" 5
  12056. fi
  12057. test "$2" = conftest.file
  12058. )
  12059. then
  12060. # Ok.
  12061. :
  12062. else
  12063. as_fn_error "newly created file is older than distributed files!
  12064. Check your system clock" "$LINENO" 5
  12065. fi
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12067. $as_echo "yes" >&6; }
  12068. test "$program_prefix" != NONE &&
  12069. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12070. # Use a double $ so make ignores it.
  12071. test "$program_suffix" != NONE &&
  12072. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12073. # Double any \ or $.
  12074. # By default was `s,x,x', remove it if useless.
  12075. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12076. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12077. # expand $ac_aux_dir to an absolute path
  12078. am_aux_dir=`cd $ac_aux_dir && pwd`
  12079. if test x"${MISSING+set}" != xset; then
  12080. case $am_aux_dir in
  12081. *\ * | *\ *)
  12082. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12083. *)
  12084. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12085. esac
  12086. fi
  12087. # Use eval to expand $SHELL
  12088. if eval "$MISSING --run true"; then
  12089. am_missing_run="$MISSING --run "
  12090. else
  12091. am_missing_run=
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12093. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12094. fi
  12095. if test x"${install_sh}" != xset; then
  12096. case $am_aux_dir in
  12097. *\ * | *\ *)
  12098. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12099. *)
  12100. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12101. esac
  12102. fi
  12103. # Installed binaries are usually stripped using `strip' when the user
  12104. # run `make install-strip'. However `strip' might not be the right
  12105. # tool to use in cross-compilation environments, therefore Automake
  12106. # will honor the `STRIP' environment variable to overrule this program.
  12107. if test "$cross_compiling" != no; then
  12108. if test -n "$ac_tool_prefix"; then
  12109. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12110. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12112. $as_echo_n "checking for $ac_word... " >&6; }
  12113. if test "${ac_cv_prog_STRIP+set}" = set; then :
  12114. $as_echo_n "(cached) " >&6
  12115. else
  12116. if test -n "$STRIP"; then
  12117. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12118. else
  12119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12120. for as_dir in $PATH
  12121. do
  12122. IFS=$as_save_IFS
  12123. test -z "$as_dir" && as_dir=.
  12124. for ac_exec_ext in '' $ac_executable_extensions; do
  12125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12126. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12128. break 2
  12129. fi
  12130. done
  12131. done
  12132. IFS=$as_save_IFS
  12133. fi
  12134. fi
  12135. STRIP=$ac_cv_prog_STRIP
  12136. if test -n "$STRIP"; then
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12138. $as_echo "$STRIP" >&6; }
  12139. else
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12141. $as_echo "no" >&6; }
  12142. fi
  12143. fi
  12144. if test -z "$ac_cv_prog_STRIP"; then
  12145. ac_ct_STRIP=$STRIP
  12146. # Extract the first word of "strip", so it can be a program name with args.
  12147. set dummy strip; ac_word=$2
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12149. $as_echo_n "checking for $ac_word... " >&6; }
  12150. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. if test -n "$ac_ct_STRIP"; then
  12154. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12155. else
  12156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12157. for as_dir in $PATH
  12158. do
  12159. IFS=$as_save_IFS
  12160. test -z "$as_dir" && as_dir=.
  12161. for ac_exec_ext in '' $ac_executable_extensions; do
  12162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12163. ac_cv_prog_ac_ct_STRIP="strip"
  12164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12165. break 2
  12166. fi
  12167. done
  12168. done
  12169. IFS=$as_save_IFS
  12170. fi
  12171. fi
  12172. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12173. if test -n "$ac_ct_STRIP"; then
  12174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12175. $as_echo "$ac_ct_STRIP" >&6; }
  12176. else
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12178. $as_echo "no" >&6; }
  12179. fi
  12180. if test "x$ac_ct_STRIP" = x; then
  12181. STRIP=":"
  12182. else
  12183. case $cross_compiling:$ac_tool_warned in
  12184. yes:)
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12187. ac_tool_warned=yes ;;
  12188. esac
  12189. STRIP=$ac_ct_STRIP
  12190. fi
  12191. else
  12192. STRIP="$ac_cv_prog_STRIP"
  12193. fi
  12194. fi
  12195. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12197. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12198. if test -z "$MKDIR_P"; then
  12199. if test "${ac_cv_path_mkdir+set}" = set; then :
  12200. $as_echo_n "(cached) " >&6
  12201. else
  12202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12203. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12204. do
  12205. IFS=$as_save_IFS
  12206. test -z "$as_dir" && as_dir=.
  12207. for ac_prog in mkdir gmkdir; do
  12208. for ac_exec_ext in '' $ac_executable_extensions; do
  12209. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12210. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12211. 'mkdir (GNU coreutils) '* | \
  12212. 'mkdir (coreutils) '* | \
  12213. 'mkdir (fileutils) '4.1*)
  12214. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12215. break 3;;
  12216. esac
  12217. done
  12218. done
  12219. done
  12220. IFS=$as_save_IFS
  12221. fi
  12222. if test "${ac_cv_path_mkdir+set}" = set; then
  12223. MKDIR_P="$ac_cv_path_mkdir -p"
  12224. else
  12225. # As a last resort, use the slow shell script. Don't cache a
  12226. # value for MKDIR_P within a source directory, because that will
  12227. # break other packages using the cache if that directory is
  12228. # removed, or if the value is a relative name.
  12229. test -d ./--version && rmdir ./--version
  12230. MKDIR_P="$ac_install_sh -d"
  12231. fi
  12232. fi
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12234. $as_echo "$MKDIR_P" >&6; }
  12235. mkdir_p="$MKDIR_P"
  12236. case $mkdir_p in
  12237. [\\/$]* | ?:[\\/]*) ;;
  12238. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12239. esac
  12240. for ac_prog in gawk mawk nawk awk
  12241. do
  12242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12243. set dummy $ac_prog; ac_word=$2
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12245. $as_echo_n "checking for $ac_word... " >&6; }
  12246. if test "${ac_cv_prog_AWK+set}" = set; then :
  12247. $as_echo_n "(cached) " >&6
  12248. else
  12249. if test -n "$AWK"; then
  12250. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12251. else
  12252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12253. for as_dir in $PATH
  12254. do
  12255. IFS=$as_save_IFS
  12256. test -z "$as_dir" && as_dir=.
  12257. for ac_exec_ext in '' $ac_executable_extensions; do
  12258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12259. ac_cv_prog_AWK="$ac_prog"
  12260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12261. break 2
  12262. fi
  12263. done
  12264. done
  12265. IFS=$as_save_IFS
  12266. fi
  12267. fi
  12268. AWK=$ac_cv_prog_AWK
  12269. if test -n "$AWK"; then
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12271. $as_echo "$AWK" >&6; }
  12272. else
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12274. $as_echo "no" >&6; }
  12275. fi
  12276. test -n "$AWK" && break
  12277. done
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12279. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12280. set x ${MAKE-make}
  12281. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12282. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. cat >conftest.make <<\_ACEOF
  12286. SHELL = /bin/sh
  12287. all:
  12288. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12289. _ACEOF
  12290. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12291. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12292. *@@@%%%=?*=@@@%%%*)
  12293. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12294. *)
  12295. eval ac_cv_prog_make_${ac_make}_set=no;;
  12296. esac
  12297. rm -f conftest.make
  12298. fi
  12299. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12301. $as_echo "yes" >&6; }
  12302. SET_MAKE=
  12303. else
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12305. $as_echo "no" >&6; }
  12306. SET_MAKE="MAKE=${MAKE-make}"
  12307. fi
  12308. rm -rf .tst 2>/dev/null
  12309. mkdir .tst 2>/dev/null
  12310. if test -d .tst; then
  12311. am__leading_dot=.
  12312. else
  12313. am__leading_dot=_
  12314. fi
  12315. rmdir .tst 2>/dev/null
  12316. DEPDIR="${am__leading_dot}deps"
  12317. ac_config_commands="$ac_config_commands depfiles"
  12318. am_make=${MAKE-make}
  12319. cat > confinc << 'END'
  12320. am__doit:
  12321. @echo this is the am__doit target
  12322. .PHONY: am__doit
  12323. END
  12324. # If we don't find an include directive, just comment out the code.
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12326. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12327. am__include="#"
  12328. am__quote=
  12329. _am_result=none
  12330. # First try GNU make style include.
  12331. echo "include confinc" > confmf
  12332. # Ignore all kinds of additional output from `make'.
  12333. case `$am_make -s -f confmf 2> /dev/null` in #(
  12334. *the\ am__doit\ target*)
  12335. am__include=include
  12336. am__quote=
  12337. _am_result=GNU
  12338. ;;
  12339. esac
  12340. # Now try BSD make style include.
  12341. if test "$am__include" = "#"; then
  12342. echo '.include "confinc"' > confmf
  12343. case `$am_make -s -f confmf 2> /dev/null` in #(
  12344. *the\ am__doit\ target*)
  12345. am__include=.include
  12346. am__quote="\""
  12347. _am_result=BSD
  12348. ;;
  12349. esac
  12350. fi
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12352. $as_echo "$_am_result" >&6; }
  12353. rm -f confinc confmf
  12354. # Check whether --enable-dependency-tracking was given.
  12355. if test "${enable_dependency_tracking+set}" = set; then :
  12356. enableval=$enable_dependency_tracking;
  12357. fi
  12358. if test "x$enable_dependency_tracking" != xno; then
  12359. am_depcomp="$ac_aux_dir/depcomp"
  12360. AMDEPBACKSLASH='\'
  12361. fi
  12362. if test "x$enable_dependency_tracking" != xno; then
  12363. AMDEP_TRUE=
  12364. AMDEP_FALSE='#'
  12365. else
  12366. AMDEP_TRUE='#'
  12367. AMDEP_FALSE=
  12368. fi
  12369. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12370. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12371. # is not polluted with repeated "-I."
  12372. am__isrc=' -I$(srcdir)'
  12373. # test to see if srcdir already configured
  12374. if test -f $srcdir/config.status; then
  12375. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12376. fi
  12377. fi
  12378. # test whether we have cygpath
  12379. if test -z "$CYGPATH_W"; then
  12380. if (cygpath --version) >/dev/null 2>/dev/null; then
  12381. CYGPATH_W='cygpath -w'
  12382. else
  12383. CYGPATH_W=echo
  12384. fi
  12385. fi
  12386. # Define the identity of the package.
  12387. PACKAGE='clish'
  12388. VERSION='1.3.0'
  12389. cat >>confdefs.h <<_ACEOF
  12390. #define PACKAGE "$PACKAGE"
  12391. _ACEOF
  12392. cat >>confdefs.h <<_ACEOF
  12393. #define VERSION "$VERSION"
  12394. _ACEOF
  12395. # Some tools Automake needs.
  12396. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  12397. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  12398. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  12399. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  12400. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  12401. # We need awk for the "check" target. The system "awk" is bad on
  12402. # some platforms.
  12403. # Always define AMTAR for backward compatibility.
  12404. AMTAR=${AMTAR-"${am_missing_run}tar"}
  12405. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  12406. depcc="$CC" am_compiler_list=
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12408. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12409. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12413. # We make a subdir and do the tests there. Otherwise we can end up
  12414. # making bogus files that we don't know about and never remove. For
  12415. # instance it was reported that on HP-UX the gcc test will end up
  12416. # making a dummy file named `D' -- because `-MD' means `put the output
  12417. # in D'.
  12418. mkdir conftest.dir
  12419. # Copy depcomp to subdir because otherwise we won't find it if we're
  12420. # using a relative directory.
  12421. cp "$am_depcomp" conftest.dir
  12422. cd conftest.dir
  12423. # We will build objects and dependencies in a subdirectory because
  12424. # it helps to detect inapplicable dependency modes. For instance
  12425. # both Tru64's cc and ICC support -MD to output dependencies as a
  12426. # side effect of compilation, but ICC will put the dependencies in
  12427. # the current directory while Tru64 will put them in the object
  12428. # directory.
  12429. mkdir sub
  12430. am_cv_CC_dependencies_compiler_type=none
  12431. if test "$am_compiler_list" = ""; then
  12432. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12433. fi
  12434. am__universal=false
  12435. case " $depcc " in #(
  12436. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12437. esac
  12438. for depmode in $am_compiler_list; do
  12439. # Setup a source with many dependencies, because some compilers
  12440. # like to wrap large dependency lists on column 80 (with \), and
  12441. # we should not choose a depcomp mode which is confused by this.
  12442. #
  12443. # We need to recreate these files for each test, as the compiler may
  12444. # overwrite some of them when testing with obscure command lines.
  12445. # This happens at least with the AIX C compiler.
  12446. : > sub/conftest.c
  12447. for i in 1 2 3 4 5 6; do
  12448. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12449. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12450. # Solaris 8's {/usr,}/bin/sh.
  12451. touch sub/conftst$i.h
  12452. done
  12453. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12454. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12455. # mode. It turns out that the SunPro C++ compiler does not properly
  12456. # handle `-M -o', and we need to detect this. Also, some Intel
  12457. # versions had trouble with output in subdirs
  12458. am__obj=sub/conftest.${OBJEXT-o}
  12459. am__minus_obj="-o $am__obj"
  12460. case $depmode in
  12461. gcc)
  12462. # This depmode causes a compiler race in universal mode.
  12463. test "$am__universal" = false || continue
  12464. ;;
  12465. nosideeffect)
  12466. # after this tag, mechanisms are not by side-effect, so they'll
  12467. # only be used when explicitly requested
  12468. if test "x$enable_dependency_tracking" = xyes; then
  12469. continue
  12470. else
  12471. break
  12472. fi
  12473. ;;
  12474. msvisualcpp | msvcmsys)
  12475. # This compiler won't grok `-c -o', but also, the minuso test has
  12476. # not run yet. These depmodes are late enough in the game, and
  12477. # so weak that their functioning should not be impacted.
  12478. am__obj=conftest.${OBJEXT-o}
  12479. am__minus_obj=
  12480. ;;
  12481. none) break ;;
  12482. esac
  12483. if depmode=$depmode \
  12484. source=sub/conftest.c object=$am__obj \
  12485. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12486. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12487. >/dev/null 2>conftest.err &&
  12488. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12489. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12490. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12491. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12492. # icc doesn't choke on unknown options, it will just issue warnings
  12493. # or remarks (even with -Werror). So we grep stderr for any message
  12494. # that says an option was ignored or not supported.
  12495. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12496. # icc: Command line warning: ignoring option '-M'; no argument required
  12497. # The diagnosis changed in icc 8.0:
  12498. # icc: Command line remark: option '-MP' not supported
  12499. if (grep 'ignoring option' conftest.err ||
  12500. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12501. am_cv_CC_dependencies_compiler_type=$depmode
  12502. break
  12503. fi
  12504. fi
  12505. done
  12506. cd ..
  12507. rm -rf conftest.dir
  12508. else
  12509. am_cv_CC_dependencies_compiler_type=none
  12510. fi
  12511. fi
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12513. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12514. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12515. if
  12516. test "x$enable_dependency_tracking" != xno \
  12517. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12518. am__fastdepCC_TRUE=
  12519. am__fastdepCC_FALSE='#'
  12520. else
  12521. am__fastdepCC_TRUE='#'
  12522. am__fastdepCC_FALSE=
  12523. fi
  12524. depcc="$CXX" am_compiler_list=
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12526. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12527. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  12528. $as_echo_n "(cached) " >&6
  12529. else
  12530. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12531. # We make a subdir and do the tests there. Otherwise we can end up
  12532. # making bogus files that we don't know about and never remove. For
  12533. # instance it was reported that on HP-UX the gcc test will end up
  12534. # making a dummy file named `D' -- because `-MD' means `put the output
  12535. # in D'.
  12536. mkdir conftest.dir
  12537. # Copy depcomp to subdir because otherwise we won't find it if we're
  12538. # using a relative directory.
  12539. cp "$am_depcomp" conftest.dir
  12540. cd conftest.dir
  12541. # We will build objects and dependencies in a subdirectory because
  12542. # it helps to detect inapplicable dependency modes. For instance
  12543. # both Tru64's cc and ICC support -MD to output dependencies as a
  12544. # side effect of compilation, but ICC will put the dependencies in
  12545. # the current directory while Tru64 will put them in the object
  12546. # directory.
  12547. mkdir sub
  12548. am_cv_CXX_dependencies_compiler_type=none
  12549. if test "$am_compiler_list" = ""; then
  12550. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12551. fi
  12552. am__universal=false
  12553. case " $depcc " in #(
  12554. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12555. esac
  12556. for depmode in $am_compiler_list; do
  12557. # Setup a source with many dependencies, because some compilers
  12558. # like to wrap large dependency lists on column 80 (with \), and
  12559. # we should not choose a depcomp mode which is confused by this.
  12560. #
  12561. # We need to recreate these files for each test, as the compiler may
  12562. # overwrite some of them when testing with obscure command lines.
  12563. # This happens at least with the AIX C compiler.
  12564. : > sub/conftest.c
  12565. for i in 1 2 3 4 5 6; do
  12566. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12567. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12568. # Solaris 8's {/usr,}/bin/sh.
  12569. touch sub/conftst$i.h
  12570. done
  12571. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12572. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12573. # mode. It turns out that the SunPro C++ compiler does not properly
  12574. # handle `-M -o', and we need to detect this. Also, some Intel
  12575. # versions had trouble with output in subdirs
  12576. am__obj=sub/conftest.${OBJEXT-o}
  12577. am__minus_obj="-o $am__obj"
  12578. case $depmode in
  12579. gcc)
  12580. # This depmode causes a compiler race in universal mode.
  12581. test "$am__universal" = false || continue
  12582. ;;
  12583. nosideeffect)
  12584. # after this tag, mechanisms are not by side-effect, so they'll
  12585. # only be used when explicitly requested
  12586. if test "x$enable_dependency_tracking" = xyes; then
  12587. continue
  12588. else
  12589. break
  12590. fi
  12591. ;;
  12592. msvisualcpp | msvcmsys)
  12593. # This compiler won't grok `-c -o', but also, the minuso test has
  12594. # not run yet. These depmodes are late enough in the game, and
  12595. # so weak that their functioning should not be impacted.
  12596. am__obj=conftest.${OBJEXT-o}
  12597. am__minus_obj=
  12598. ;;
  12599. none) break ;;
  12600. esac
  12601. if depmode=$depmode \
  12602. source=sub/conftest.c object=$am__obj \
  12603. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12604. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12605. >/dev/null 2>conftest.err &&
  12606. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12607. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12608. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12609. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12610. # icc doesn't choke on unknown options, it will just issue warnings
  12611. # or remarks (even with -Werror). So we grep stderr for any message
  12612. # that says an option was ignored or not supported.
  12613. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12614. # icc: Command line warning: ignoring option '-M'; no argument required
  12615. # The diagnosis changed in icc 8.0:
  12616. # icc: Command line remark: option '-MP' not supported
  12617. if (grep 'ignoring option' conftest.err ||
  12618. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12619. am_cv_CXX_dependencies_compiler_type=$depmode
  12620. break
  12621. fi
  12622. fi
  12623. done
  12624. cd ..
  12625. rm -rf conftest.dir
  12626. else
  12627. am_cv_CXX_dependencies_compiler_type=none
  12628. fi
  12629. fi
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12631. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12632. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12633. if
  12634. test "x$enable_dependency_tracking" != xno \
  12635. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12636. am__fastdepCXX_TRUE=
  12637. am__fastdepCXX_FALSE='#'
  12638. else
  12639. am__fastdepCXX_TRUE='#'
  12640. am__fastdepCXX_FALSE=
  12641. fi
  12642. if test "x$CC" != xcc; then
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  12644. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  12645. else
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  12647. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  12648. fi
  12649. set dummy $CC; ac_cc=`$as_echo "$2" |
  12650. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12651. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  12652. $as_echo_n "(cached) " >&6
  12653. else
  12654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12655. /* end confdefs.h. */
  12656. int
  12657. main ()
  12658. {
  12659. ;
  12660. return 0;
  12661. }
  12662. _ACEOF
  12663. # Make sure it works both with $CC and with simple cc.
  12664. # We do the test twice because some compilers refuse to overwrite an
  12665. # existing .o file with -o, though they will create one.
  12666. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12667. rm -f conftest2.*
  12668. if { { case "(($ac_try" in
  12669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12670. *) ac_try_echo=$ac_try;;
  12671. esac
  12672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12673. $as_echo "$ac_try_echo"; } >&5
  12674. (eval "$ac_try") 2>&5
  12675. ac_status=$?
  12676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12677. test $ac_status = 0; } &&
  12678. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12680. *) ac_try_echo=$ac_try;;
  12681. esac
  12682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12683. $as_echo "$ac_try_echo"; } >&5
  12684. (eval "$ac_try") 2>&5
  12685. ac_status=$?
  12686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12687. test $ac_status = 0; };
  12688. then
  12689. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  12690. if test "x$CC" != xcc; then
  12691. # Test first that cc exists at all.
  12692. if { ac_try='cc -c conftest.$ac_ext >&5'
  12693. { { case "(($ac_try" in
  12694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12695. *) ac_try_echo=$ac_try;;
  12696. esac
  12697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12698. $as_echo "$ac_try_echo"; } >&5
  12699. (eval "$ac_try") 2>&5
  12700. ac_status=$?
  12701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12702. test $ac_status = 0; }; }; then
  12703. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12704. rm -f conftest2.*
  12705. if { { case "(($ac_try" in
  12706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12707. *) ac_try_echo=$ac_try;;
  12708. esac
  12709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12710. $as_echo "$ac_try_echo"; } >&5
  12711. (eval "$ac_try") 2>&5
  12712. ac_status=$?
  12713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12714. test $ac_status = 0; } &&
  12715. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12717. *) ac_try_echo=$ac_try;;
  12718. esac
  12719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12720. $as_echo "$ac_try_echo"; } >&5
  12721. (eval "$ac_try") 2>&5
  12722. ac_status=$?
  12723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12724. test $ac_status = 0; };
  12725. then
  12726. # cc works too.
  12727. :
  12728. else
  12729. # cc exists but doesn't like -o.
  12730. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12731. fi
  12732. fi
  12733. fi
  12734. else
  12735. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12736. fi
  12737. rm -f core conftest*
  12738. fi
  12739. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12741. $as_echo "yes" >&6; }
  12742. else
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12744. $as_echo "no" >&6; }
  12745. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  12746. fi
  12747. # FIXME: we rely on the cache variable name because
  12748. # there is no other way.
  12749. set dummy $CC
  12750. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12751. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  12752. if test "$am_t" != yes; then
  12753. # Losing compiler, so override with the script.
  12754. # FIXME: It is wrong to rewrite CC.
  12755. # But if we don't then we get into trouble of one sort or another.
  12756. # A longer-term fix would be to have automake use am__CC in this case,
  12757. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12758. CC="$am_aux_dir/compile $CC"
  12759. fi
  12760. # needed to handle 64-bit architecture
  12761. # The cast to long int works around a bug in the HP C Compiler
  12762. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12763. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12764. # This bug is HP SR number 8606223364.
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12766. $as_echo_n "checking size of int... " >&6; }
  12767. if test "${ac_cv_sizeof_int+set}" = set; then :
  12768. $as_echo_n "(cached) " >&6
  12769. else
  12770. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12771. else
  12772. if test "$ac_cv_type_int" = yes; then
  12773. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12774. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12775. { as_fn_set_status 77
  12776. as_fn_error "cannot compute sizeof (int)
  12777. See \`config.log' for more details." "$LINENO" 5; }; }
  12778. else
  12779. ac_cv_sizeof_int=0
  12780. fi
  12781. fi
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12784. $as_echo "$ac_cv_sizeof_int" >&6; }
  12785. cat >>confdefs.h <<_ACEOF
  12786. #define SIZEOF_INT $ac_cv_sizeof_int
  12787. _ACEOF
  12788. # The cast to long int works around a bug in the HP C Compiler
  12789. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12790. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12791. # This bug is HP SR number 8606223364.
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12793. $as_echo_n "checking size of long... " >&6; }
  12794. if test "${ac_cv_sizeof_long+set}" = set; then :
  12795. $as_echo_n "(cached) " >&6
  12796. else
  12797. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12798. else
  12799. if test "$ac_cv_type_long" = yes; then
  12800. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12802. { as_fn_set_status 77
  12803. as_fn_error "cannot compute sizeof (long)
  12804. See \`config.log' for more details." "$LINENO" 5; }; }
  12805. else
  12806. ac_cv_sizeof_long=0
  12807. fi
  12808. fi
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12811. $as_echo "$ac_cv_sizeof_long" >&6; }
  12812. cat >>confdefs.h <<_ACEOF
  12813. #define SIZEOF_LONG $ac_cv_sizeof_long
  12814. _ACEOF
  12815. # The cast to long int works around a bug in the HP C Compiler
  12816. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12817. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12818. # This bug is HP SR number 8606223364.
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12820. $as_echo_n "checking size of size_t... " >&6; }
  12821. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  12822. $as_echo_n "(cached) " >&6
  12823. else
  12824. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12825. else
  12826. if test "$ac_cv_type_size_t" = yes; then
  12827. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12828. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12829. { as_fn_set_status 77
  12830. as_fn_error "cannot compute sizeof (size_t)
  12831. See \`config.log' for more details." "$LINENO" 5; }; }
  12832. else
  12833. ac_cv_sizeof_size_t=0
  12834. fi
  12835. fi
  12836. fi
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12838. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12839. cat >>confdefs.h <<_ACEOF
  12840. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12841. _ACEOF
  12842. #------------------------------------------------------------------------
  12843. # Handle the --prefix=... option
  12844. #------------------------------------------------------------------------
  12845. if test "${prefix}" = "NONE"; then
  12846. prefix=/usr/local
  12847. fi
  12848. if test "${exec_prefix}" = "NONE"; then
  12849. exec_prefix=$prefix
  12850. fi
  12851. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  12852. eval libdir="$libdir"
  12853. ################################
  12854. # Deal with debugging options
  12855. ################################
  12856. # Check whether --enable-debug was given.
  12857. if test "${enable_debug+set}" = set; then :
  12858. enableval=$enable_debug;
  12859. else
  12860. enable_debug=no
  12861. fi
  12862. if test x$enable_debug = xyes; then
  12863. DEBUG_TRUE=
  12864. DEBUG_FALSE='#'
  12865. else
  12866. DEBUG_TRUE='#'
  12867. DEBUG_FALSE=
  12868. fi
  12869. ################################
  12870. # Check for the LUB library
  12871. ################################
  12872. LUB_LIBS="-llub"
  12873. LUB_CFLAGS=""
  12874. if test "x$LUB_LIBS" = "x"; then
  12875. as_fn_error "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  12876. fi
  12877. ################################
  12878. # Check for the KONF library
  12879. ################################
  12880. KONF_LIBS="-lkonf"
  12881. KONF_CFLAGS=""
  12882. if test "x$KONF_LIBS" = "x"; then
  12883. as_fn_error "Cannot find the \"CLI config\" library" "$LINENO" 5
  12884. fi
  12885. ################################
  12886. # Check for the TINYRL library
  12887. ################################
  12888. TINYRL_LIBS="-ltinyrl"
  12889. TINYRL_CFLAGS=""
  12890. if test "x$TINYRL_LIBS" = "x"; then
  12891. as_fn_error "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  12892. fi
  12893. ################################
  12894. # Check for the TINYXML library
  12895. ################################
  12896. TINYXML_LIBS="-ltinyxml"
  12897. TINYXML_CXXFLAGS="-std=gnu++98"
  12898. if test "x$TINYXML_LIBS" = "x"; then
  12899. as_fn_error "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  12900. fi
  12901. ################################
  12902. # Check for the PTHREAD library
  12903. ################################
  12904. # Check whether --with-pthread was given.
  12905. if test "${with_pthread+set}" = set; then :
  12906. withval=$with_pthread;
  12907. fi
  12908. for ac_header in pthread.h
  12909. do :
  12910. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  12911. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  12912. cat >>confdefs.h <<_ACEOF
  12913. #define HAVE_PTHREAD_H 1
  12914. _ACEOF
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12916. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12917. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. ac_check_lib_save_LIBS=$LIBS
  12921. LIBS="-lpthread $LIBS"
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. /* Override any GCC internal prototype to avoid an error.
  12925. Use char because int might match the return type of a GCC
  12926. builtin and then its argument prototype would still apply. */
  12927. #ifdef __cplusplus
  12928. extern "C"
  12929. #endif
  12930. char pthread_create ();
  12931. int
  12932. main ()
  12933. {
  12934. return pthread_create ();
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. if ac_fn_c_try_link "$LINENO"; then :
  12940. ac_cv_lib_pthread_pthread_create=yes
  12941. else
  12942. ac_cv_lib_pthread_pthread_create=no
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. LIBS=$ac_check_lib_save_LIBS
  12947. fi
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12949. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12950. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  12951. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  12952. if test "x$with_pthread" = "x"; then
  12953. PTHREAD_LIBS="-lpthread"
  12954. else
  12955. PTHREAD_CFLAGS="-I$with_pthread/include"
  12956. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  12957. fi
  12958. fi
  12959. fi
  12960. done
  12961. if test "x$PTHREAD_LIBS" = "x"; then
  12962. as_fn_error "Cannot find the POSIX threads library" "$LINENO" 5
  12963. fi
  12964. ################################
  12965. # Check for the RT library
  12966. ################################
  12967. # Check whether --with-rt was given.
  12968. if test "${with_rt+set}" = set; then :
  12969. withval=$with_rt;
  12970. fi
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  12972. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  12973. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  12974. $as_echo_n "(cached) " >&6
  12975. else
  12976. ac_check_lib_save_LIBS=$LIBS
  12977. LIBS="-lrt $LIBS"
  12978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12979. /* end confdefs.h. */
  12980. /* Override any GCC internal prototype to avoid an error.
  12981. Use char because int might match the return type of a GCC
  12982. builtin and then its argument prototype would still apply. */
  12983. #ifdef __cplusplus
  12984. extern "C"
  12985. #endif
  12986. char clock_gettime ();
  12987. int
  12988. main ()
  12989. {
  12990. return clock_gettime ();
  12991. ;
  12992. return 0;
  12993. }
  12994. _ACEOF
  12995. if ac_fn_c_try_link "$LINENO"; then :
  12996. ac_cv_lib_rt_clock_gettime=yes
  12997. else
  12998. ac_cv_lib_rt_clock_gettime=no
  12999. fi
  13000. rm -f core conftest.err conftest.$ac_objext \
  13001. conftest$ac_exeext conftest.$ac_ext
  13002. LIBS=$ac_check_lib_save_LIBS
  13003. fi
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13005. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13006. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13007. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13008. if test "x$with_rt" = "x"; then
  13009. RT_LIBS="-lrt"
  13010. else
  13011. RT_CFLAGS="-I$with_rt/include"
  13012. RT_LIBS="-L$with_rt/lib -lrt"
  13013. fi
  13014. fi
  13015. ################################
  13016. # Check for the TCL library
  13017. ################################
  13018. TCL_CONFIG=${libdir}/tclConfig.sh
  13019. # Check whether --with-tcl was given.
  13020. if test "${with_tcl+set}" = set; then :
  13021. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13022. source ${TCL_CONFIG} # get TCL_VERSION
  13023. if test "${with_tcl}" = "yes"; then
  13024. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13025. TCL_LIBS="${TCL_LIB_SPEC}"
  13026. else
  13027. TCL_CFLAGS="-I${with_tcl}/include"
  13028. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13029. fi
  13030. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13031. for ac_header in tcl.h
  13032. do :
  13033. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13034. if test "x$ac_cv_header_tcl_h" = x""yes; then :
  13035. cat >>confdefs.h <<_ACEOF
  13036. #define HAVE_TCL_H 1
  13037. _ACEOF
  13038. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13040. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13041. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13042. $as_echo_n "(cached) " >&6
  13043. else
  13044. ac_check_lib_save_LIBS=$LIBS
  13045. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13047. /* end confdefs.h. */
  13048. /* Override any GCC internal prototype to avoid an error.
  13049. Use char because int might match the return type of a GCC
  13050. builtin and then its argument prototype would still apply. */
  13051. #ifdef __cplusplus
  13052. extern "C"
  13053. #endif
  13054. char Tcl_CreateInterp ();
  13055. int
  13056. main ()
  13057. {
  13058. return Tcl_CreateInterp ();
  13059. ;
  13060. return 0;
  13061. }
  13062. _ACEOF
  13063. if ac_fn_c_try_link "$LINENO"; then :
  13064. eval "$as_ac_Lib=yes"
  13065. else
  13066. eval "$as_ac_Lib=no"
  13067. fi
  13068. rm -f core conftest.err conftest.$ac_objext \
  13069. conftest$ac_exeext conftest.$ac_ext
  13070. LIBS=$ac_check_lib_save_LIBS
  13071. fi
  13072. eval ac_res=\$$as_ac_Lib
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13074. $as_echo "$ac_res" >&6; }
  13075. eval as_val=\$$as_ac_Lib
  13076. if test "x$as_val" = x""yes; then :
  13077. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13078. have_tcl="yes"
  13079. fi
  13080. fi
  13081. done
  13082. fi
  13083. fi
  13084. if test "x${have_tcl}" = "xyes"; then
  13085. TCL_TRUE=
  13086. TCL_FALSE='#'
  13087. else
  13088. TCL_TRUE='#'
  13089. TCL_FALSE=
  13090. fi
  13091. ################################
  13092. # Check for inclusion of lub_heap
  13093. ################################
  13094. # Check whether --enable-lubheap was given.
  13095. if test "${enable_lubheap+set}" = set; then :
  13096. enableval=$enable_lubheap;
  13097. else
  13098. enable_lubheap=no
  13099. fi
  13100. if test "x$enable_lubheap" = "xyes"; then
  13101. LUBHEAP_TRUE=
  13102. LUBHEAP_FALSE='#'
  13103. else
  13104. LUBHEAP_TRUE='#'
  13105. LUBHEAP_FALSE=
  13106. fi
  13107. if test "x$enable_lubheap" = "xyes"; then
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13109. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13110. LUBHEAP_LIBS="-llubheap"
  13111. LUBHEAP_CFLAGS=""
  13112. if test "x$LUBHEAP_LIBS" = "x"; then
  13113. as_fn_error "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13114. fi
  13115. fi
  13116. ################################
  13117. # Check for linkage with GPL libraries
  13118. ################################
  13119. # Check whether --enable-gpl was given.
  13120. if test "${enable_gpl+set}" = set; then :
  13121. enableval=$enable_gpl;
  13122. else
  13123. enable_gpl=yes
  13124. fi
  13125. if test "x$enable_gpl" = "xyes"; then
  13126. ################################
  13127. # Check for BFD library
  13128. ################################
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13130. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13131. for ac_header in bfd.h
  13132. do :
  13133. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13134. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13135. cat >>confdefs.h <<_ACEOF
  13136. #define HAVE_BFD_H 1
  13137. _ACEOF
  13138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13139. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13140. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then :
  13141. $as_echo_n "(cached) " >&6
  13142. else
  13143. ac_check_lib_save_LIBS=$LIBS
  13144. LIBS="-lbfd $LIBS"
  13145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13146. /* end confdefs.h. */
  13147. /* Override any GCC internal prototype to avoid an error.
  13148. Use char because int might match the return type of a GCC
  13149. builtin and then its argument prototype would still apply. */
  13150. #ifdef __cplusplus
  13151. extern "C"
  13152. #endif
  13153. char bfd_init ();
  13154. int
  13155. main ()
  13156. {
  13157. return bfd_init ();
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_c_try_link "$LINENO"; then :
  13163. ac_cv_lib_bfd_bfd_init=yes
  13164. else
  13165. ac_cv_lib_bfd_bfd_init=no
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext \
  13168. conftest$ac_exeext conftest.$ac_ext
  13169. LIBS=$ac_check_lib_save_LIBS
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13172. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13173. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then :
  13174. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13175. BFD_LIBS="-lbfd -liberty"
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13177. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13178. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then :
  13179. $as_echo_n "(cached) " >&6
  13180. else
  13181. ac_check_lib_save_LIBS=$LIBS
  13182. LIBS="-lintl $LIBS"
  13183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13184. /* end confdefs.h. */
  13185. /* Override any GCC internal prototype to avoid an error.
  13186. Use char because int might match the return type of a GCC
  13187. builtin and then its argument prototype would still apply. */
  13188. #ifdef __cplusplus
  13189. extern "C"
  13190. #endif
  13191. char libintl_dgettext ();
  13192. int
  13193. main ()
  13194. {
  13195. return libintl_dgettext ();
  13196. ;
  13197. return 0;
  13198. }
  13199. _ACEOF
  13200. if ac_fn_c_try_link "$LINENO"; then :
  13201. ac_cv_lib_intl_libintl_dgettext=yes
  13202. else
  13203. ac_cv_lib_intl_libintl_dgettext=no
  13204. fi
  13205. rm -f core conftest.err conftest.$ac_objext \
  13206. conftest$ac_exeext conftest.$ac_ext
  13207. LIBS=$ac_check_lib_save_LIBS
  13208. fi
  13209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13210. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13211. if test "x$ac_cv_lib_intl_libintl_dgettext" = x""yes; then :
  13212. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13213. BFD_LIBS="$BFD_LIBS -lintl"
  13214. fi
  13215. fi
  13216. fi
  13217. done
  13218. else
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13220. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13221. fi
  13222. ################################
  13223. # Check for getopt_long()
  13224. ################################
  13225. for ac_header in getopt.h
  13226. do :
  13227. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13228. if test "x$ac_cv_header_getopt_h" = x""yes; then :
  13229. cat >>confdefs.h <<_ACEOF
  13230. #define HAVE_GETOPT_H 1
  13231. _ACEOF
  13232. else
  13233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13234. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13235. fi
  13236. done
  13237. ac_config_files="$ac_config_files Makefile"
  13238. cat >confcache <<\_ACEOF
  13239. # This file is a shell script that caches the results of configure
  13240. # tests run on this system so they can be shared between configure
  13241. # scripts and configure runs, see configure's option --config-cache.
  13242. # It is not useful on other systems. If it contains results you don't
  13243. # want to keep, you may remove or edit it.
  13244. #
  13245. # config.status only pays attention to the cache file if you give it
  13246. # the --recheck option to rerun configure.
  13247. #
  13248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13250. # following values.
  13251. _ACEOF
  13252. # The following way of writing the cache mishandles newlines in values,
  13253. # but we know of no workaround that is simple, portable, and efficient.
  13254. # So, we kill variables containing newlines.
  13255. # Ultrix sh set writes to stderr and can't be redirected directly,
  13256. # and sets the high bit in the cache file unless we assign to the vars.
  13257. (
  13258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13259. eval ac_val=\$$ac_var
  13260. case $ac_val in #(
  13261. *${as_nl}*)
  13262. case $ac_var in #(
  13263. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13264. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13265. esac
  13266. case $ac_var in #(
  13267. _ | IFS | as_nl) ;; #(
  13268. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13269. *) { eval $ac_var=; unset $ac_var;} ;;
  13270. esac ;;
  13271. esac
  13272. done
  13273. (set) 2>&1 |
  13274. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13275. *${as_nl}ac_space=\ *)
  13276. # `set' does not quote correctly, so add quotes: double-quote
  13277. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13278. sed -n \
  13279. "s/'/'\\\\''/g;
  13280. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13281. ;; #(
  13282. *)
  13283. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13284. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13285. ;;
  13286. esac |
  13287. sort
  13288. ) |
  13289. sed '
  13290. /^ac_cv_env_/b end
  13291. t clear
  13292. :clear
  13293. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13294. t end
  13295. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13296. :end' >>confcache
  13297. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13298. if test -w "$cache_file"; then
  13299. test "x$cache_file" != "x/dev/null" &&
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13301. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13302. cat confcache >$cache_file
  13303. else
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13305. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13306. fi
  13307. fi
  13308. rm -f confcache
  13309. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13310. # Let make expand exec_prefix.
  13311. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13312. DEFS=-DHAVE_CONFIG_H
  13313. ac_libobjs=
  13314. ac_ltlibobjs=
  13315. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13316. # 1. Remove the extension, and $U if already installed.
  13317. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13318. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13319. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13320. # will be set to the directory where LIBOBJS objects are built.
  13321. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13322. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13323. done
  13324. LIBOBJS=$ac_libobjs
  13325. LTLIBOBJS=$ac_ltlibobjs
  13326. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13327. as_fn_error "conditional \"AMDEP\" was never defined.
  13328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13329. fi
  13330. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13331. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13333. fi
  13334. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13335. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13337. fi
  13338. if test -n "$EXEEXT"; then
  13339. am__EXEEXT_TRUE=
  13340. am__EXEEXT_FALSE='#'
  13341. else
  13342. am__EXEEXT_TRUE='#'
  13343. am__EXEEXT_FALSE=
  13344. fi
  13345. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  13346. as_fn_error "conditional \"DEBUG\" was never defined.
  13347. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13348. fi
  13349. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  13350. as_fn_error "conditional \"TCL\" was never defined.
  13351. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13352. fi
  13353. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  13354. as_fn_error "conditional \"LUBHEAP\" was never defined.
  13355. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13356. fi
  13357. : ${CONFIG_STATUS=./config.status}
  13358. ac_write_fail=0
  13359. ac_clean_files_save=$ac_clean_files
  13360. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13362. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13363. as_write_fail=0
  13364. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13365. #! $SHELL
  13366. # Generated by $as_me.
  13367. # Run this file to recreate the current configuration.
  13368. # Compiler output produced by configure, useful for debugging
  13369. # configure, is in config.log if it exists.
  13370. debug=false
  13371. ac_cs_recheck=false
  13372. ac_cs_silent=false
  13373. SHELL=\${CONFIG_SHELL-$SHELL}
  13374. export SHELL
  13375. _ASEOF
  13376. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13377. ## -------------------- ##
  13378. ## M4sh Initialization. ##
  13379. ## -------------------- ##
  13380. # Be more Bourne compatible
  13381. DUALCASE=1; export DUALCASE # for MKS sh
  13382. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13383. emulate sh
  13384. NULLCMD=:
  13385. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13386. # is contrary to our usage. Disable this feature.
  13387. alias -g '${1+"$@"}'='"$@"'
  13388. setopt NO_GLOB_SUBST
  13389. else
  13390. case `(set -o) 2>/dev/null` in #(
  13391. *posix*) :
  13392. set -o posix ;; #(
  13393. *) :
  13394. ;;
  13395. esac
  13396. fi
  13397. as_nl='
  13398. '
  13399. export as_nl
  13400. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13401. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13402. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13403. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13404. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13405. # but without wasting forks for bash or zsh.
  13406. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13407. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13408. as_echo='print -r --'
  13409. as_echo_n='print -rn --'
  13410. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13411. as_echo='printf %s\n'
  13412. as_echo_n='printf %s'
  13413. else
  13414. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13415. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13416. as_echo_n='/usr/ucb/echo -n'
  13417. else
  13418. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13419. as_echo_n_body='eval
  13420. arg=$1;
  13421. case $arg in #(
  13422. *"$as_nl"*)
  13423. expr "X$arg" : "X\\(.*\\)$as_nl";
  13424. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13425. esac;
  13426. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13427. '
  13428. export as_echo_n_body
  13429. as_echo_n='sh -c $as_echo_n_body as_echo'
  13430. fi
  13431. export as_echo_body
  13432. as_echo='sh -c $as_echo_body as_echo'
  13433. fi
  13434. # The user is always right.
  13435. if test "${PATH_SEPARATOR+set}" != set; then
  13436. PATH_SEPARATOR=:
  13437. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13438. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13439. PATH_SEPARATOR=';'
  13440. }
  13441. fi
  13442. # IFS
  13443. # We need space, tab and new line, in precisely that order. Quoting is
  13444. # there to prevent editors from complaining about space-tab.
  13445. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13446. # splitting by setting IFS to empty value.)
  13447. IFS=" "" $as_nl"
  13448. # Find who we are. Look in the path if we contain no directory separator.
  13449. case $0 in #((
  13450. *[\\/]* ) as_myself=$0 ;;
  13451. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13452. for as_dir in $PATH
  13453. do
  13454. IFS=$as_save_IFS
  13455. test -z "$as_dir" && as_dir=.
  13456. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13457. done
  13458. IFS=$as_save_IFS
  13459. ;;
  13460. esac
  13461. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13462. # in which case we are not to be found in the path.
  13463. if test "x$as_myself" = x; then
  13464. as_myself=$0
  13465. fi
  13466. if test ! -f "$as_myself"; then
  13467. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13468. exit 1
  13469. fi
  13470. # Unset variables that we do not need and which cause bugs (e.g. in
  13471. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13472. # suppresses any "Segmentation fault" message there. '((' could
  13473. # trigger a bug in pdksh 5.2.14.
  13474. for as_var in BASH_ENV ENV MAIL MAILPATH
  13475. do eval test x\${$as_var+set} = xset \
  13476. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13477. done
  13478. PS1='$ '
  13479. PS2='> '
  13480. PS4='+ '
  13481. # NLS nuisances.
  13482. LC_ALL=C
  13483. export LC_ALL
  13484. LANGUAGE=C
  13485. export LANGUAGE
  13486. # CDPATH.
  13487. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13488. # as_fn_error ERROR [LINENO LOG_FD]
  13489. # ---------------------------------
  13490. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13491. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13492. # script with status $?, using 1 if that was 0.
  13493. as_fn_error ()
  13494. {
  13495. as_status=$?; test $as_status -eq 0 && as_status=1
  13496. if test "$3"; then
  13497. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13498. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13499. fi
  13500. $as_echo "$as_me: error: $1" >&2
  13501. as_fn_exit $as_status
  13502. } # as_fn_error
  13503. # as_fn_set_status STATUS
  13504. # -----------------------
  13505. # Set $? to STATUS, without forking.
  13506. as_fn_set_status ()
  13507. {
  13508. return $1
  13509. } # as_fn_set_status
  13510. # as_fn_exit STATUS
  13511. # -----------------
  13512. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13513. as_fn_exit ()
  13514. {
  13515. set +e
  13516. as_fn_set_status $1
  13517. exit $1
  13518. } # as_fn_exit
  13519. # as_fn_unset VAR
  13520. # ---------------
  13521. # Portably unset VAR.
  13522. as_fn_unset ()
  13523. {
  13524. { eval $1=; unset $1;}
  13525. }
  13526. as_unset=as_fn_unset
  13527. # as_fn_append VAR VALUE
  13528. # ----------------------
  13529. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13530. # advantage of any shell optimizations that allow amortized linear growth over
  13531. # repeated appends, instead of the typical quadratic growth present in naive
  13532. # implementations.
  13533. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13534. eval 'as_fn_append ()
  13535. {
  13536. eval $1+=\$2
  13537. }'
  13538. else
  13539. as_fn_append ()
  13540. {
  13541. eval $1=\$$1\$2
  13542. }
  13543. fi # as_fn_append
  13544. # as_fn_arith ARG...
  13545. # ------------------
  13546. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13547. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13548. # must be portable across $(()) and expr.
  13549. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13550. eval 'as_fn_arith ()
  13551. {
  13552. as_val=$(( $* ))
  13553. }'
  13554. else
  13555. as_fn_arith ()
  13556. {
  13557. as_val=`expr "$@" || test $? -eq 1`
  13558. }
  13559. fi # as_fn_arith
  13560. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13561. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13562. as_expr=expr
  13563. else
  13564. as_expr=false
  13565. fi
  13566. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13567. as_basename=basename
  13568. else
  13569. as_basename=false
  13570. fi
  13571. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13572. as_dirname=dirname
  13573. else
  13574. as_dirname=false
  13575. fi
  13576. as_me=`$as_basename -- "$0" ||
  13577. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13578. X"$0" : 'X\(//\)$' \| \
  13579. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13580. $as_echo X/"$0" |
  13581. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13582. s//\1/
  13583. q
  13584. }
  13585. /^X\/\(\/\/\)$/{
  13586. s//\1/
  13587. q
  13588. }
  13589. /^X\/\(\/\).*/{
  13590. s//\1/
  13591. q
  13592. }
  13593. s/.*/./; q'`
  13594. # Avoid depending upon Character Ranges.
  13595. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13596. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13597. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13598. as_cr_digits='0123456789'
  13599. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13600. ECHO_C= ECHO_N= ECHO_T=
  13601. case `echo -n x` in #(((((
  13602. -n*)
  13603. case `echo 'xy\c'` in
  13604. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13605. xy) ECHO_C='\c';;
  13606. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13607. ECHO_T=' ';;
  13608. esac;;
  13609. *)
  13610. ECHO_N='-n';;
  13611. esac
  13612. rm -f conf$$ conf$$.exe conf$$.file
  13613. if test -d conf$$.dir; then
  13614. rm -f conf$$.dir/conf$$.file
  13615. else
  13616. rm -f conf$$.dir
  13617. mkdir conf$$.dir 2>/dev/null
  13618. fi
  13619. if (echo >conf$$.file) 2>/dev/null; then
  13620. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13621. as_ln_s='ln -s'
  13622. # ... but there are two gotchas:
  13623. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13624. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13625. # In both cases, we have to default to `cp -p'.
  13626. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13627. as_ln_s='cp -p'
  13628. elif ln conf$$.file conf$$ 2>/dev/null; then
  13629. as_ln_s=ln
  13630. else
  13631. as_ln_s='cp -p'
  13632. fi
  13633. else
  13634. as_ln_s='cp -p'
  13635. fi
  13636. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13637. rmdir conf$$.dir 2>/dev/null
  13638. # as_fn_mkdir_p
  13639. # -------------
  13640. # Create "$as_dir" as a directory, including parents if necessary.
  13641. as_fn_mkdir_p ()
  13642. {
  13643. case $as_dir in #(
  13644. -*) as_dir=./$as_dir;;
  13645. esac
  13646. test -d "$as_dir" || eval $as_mkdir_p || {
  13647. as_dirs=
  13648. while :; do
  13649. case $as_dir in #(
  13650. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13651. *) as_qdir=$as_dir;;
  13652. esac
  13653. as_dirs="'$as_qdir' $as_dirs"
  13654. as_dir=`$as_dirname -- "$as_dir" ||
  13655. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13656. X"$as_dir" : 'X\(//\)[^/]' \| \
  13657. X"$as_dir" : 'X\(//\)$' \| \
  13658. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13659. $as_echo X"$as_dir" |
  13660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13661. s//\1/
  13662. q
  13663. }
  13664. /^X\(\/\/\)[^/].*/{
  13665. s//\1/
  13666. q
  13667. }
  13668. /^X\(\/\/\)$/{
  13669. s//\1/
  13670. q
  13671. }
  13672. /^X\(\/\).*/{
  13673. s//\1/
  13674. q
  13675. }
  13676. s/.*/./; q'`
  13677. test -d "$as_dir" && break
  13678. done
  13679. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13680. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13681. } # as_fn_mkdir_p
  13682. if mkdir -p . 2>/dev/null; then
  13683. as_mkdir_p='mkdir -p "$as_dir"'
  13684. else
  13685. test -d ./-p && rmdir ./-p
  13686. as_mkdir_p=false
  13687. fi
  13688. if test -x / >/dev/null 2>&1; then
  13689. as_test_x='test -x'
  13690. else
  13691. if ls -dL / >/dev/null 2>&1; then
  13692. as_ls_L_option=L
  13693. else
  13694. as_ls_L_option=
  13695. fi
  13696. as_test_x='
  13697. eval sh -c '\''
  13698. if test -d "$1"; then
  13699. test -d "$1/.";
  13700. else
  13701. case $1 in #(
  13702. -*)set "./$1";;
  13703. esac;
  13704. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13705. ???[sx]*):;;*)false;;esac;fi
  13706. '\'' sh
  13707. '
  13708. fi
  13709. as_executable_p=$as_test_x
  13710. # Sed expression to map a string onto a valid CPP name.
  13711. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13712. # Sed expression to map a string onto a valid variable name.
  13713. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13714. exec 6>&1
  13715. ## ----------------------------------- ##
  13716. ## Main body of $CONFIG_STATUS script. ##
  13717. ## ----------------------------------- ##
  13718. _ASEOF
  13719. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13720. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13721. # Save the log message, to keep $0 and so on meaningful, and to
  13722. # report actual input values of CONFIG_FILES etc. instead of their
  13723. # values after options handling.
  13724. ac_log="
  13725. This file was extended by clish $as_me 1.3.0, which was
  13726. generated by GNU Autoconf 2.64. Invocation command line was
  13727. CONFIG_FILES = $CONFIG_FILES
  13728. CONFIG_HEADERS = $CONFIG_HEADERS
  13729. CONFIG_LINKS = $CONFIG_LINKS
  13730. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13731. $ $0 $@
  13732. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13733. "
  13734. _ACEOF
  13735. case $ac_config_files in *"
  13736. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13737. esac
  13738. case $ac_config_headers in *"
  13739. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13740. esac
  13741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13742. # Files that config.status was made for.
  13743. config_files="$ac_config_files"
  13744. config_headers="$ac_config_headers"
  13745. config_commands="$ac_config_commands"
  13746. _ACEOF
  13747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13748. ac_cs_usage="\
  13749. \`$as_me' instantiates files and other configuration actions
  13750. from templates according to the current configuration. Unless the files
  13751. and actions are specified as TAGs, all are instantiated by default.
  13752. Usage: $0 [OPTION]... [TAG]...
  13753. -h, --help print this help, then exit
  13754. -V, --version print version number and configuration settings, then exit
  13755. -q, --quiet, --silent
  13756. do not print progress messages
  13757. -d, --debug don't remove temporary files
  13758. --recheck update $as_me by reconfiguring in the same conditions
  13759. --file=FILE[:TEMPLATE]
  13760. instantiate the configuration file FILE
  13761. --header=FILE[:TEMPLATE]
  13762. instantiate the configuration header FILE
  13763. Configuration files:
  13764. $config_files
  13765. Configuration headers:
  13766. $config_headers
  13767. Configuration commands:
  13768. $config_commands
  13769. Report bugs to <serj.kalichev at gmail dot com>."
  13770. _ACEOF
  13771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13772. ac_cs_version="\\
  13773. clish config.status 1.3.0
  13774. configured by $0, generated by GNU Autoconf 2.64,
  13775. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13776. Copyright (C) 2009 Free Software Foundation, Inc.
  13777. This config.status script is free software; the Free Software Foundation
  13778. gives unlimited permission to copy, distribute and modify it."
  13779. ac_pwd='$ac_pwd'
  13780. srcdir='$srcdir'
  13781. INSTALL='$INSTALL'
  13782. MKDIR_P='$MKDIR_P'
  13783. AWK='$AWK'
  13784. test -n "\$AWK" || AWK=awk
  13785. _ACEOF
  13786. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13787. # The default lists apply if the user does not specify any file.
  13788. ac_need_defaults=:
  13789. while test $# != 0
  13790. do
  13791. case $1 in
  13792. --*=*)
  13793. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13794. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13795. ac_shift=:
  13796. ;;
  13797. *)
  13798. ac_option=$1
  13799. ac_optarg=$2
  13800. ac_shift=shift
  13801. ;;
  13802. esac
  13803. case $ac_option in
  13804. # Handling of the options.
  13805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13806. ac_cs_recheck=: ;;
  13807. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13808. $as_echo "$ac_cs_version"; exit ;;
  13809. --debug | --debu | --deb | --de | --d | -d )
  13810. debug=: ;;
  13811. --file | --fil | --fi | --f )
  13812. $ac_shift
  13813. case $ac_optarg in
  13814. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13815. esac
  13816. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13817. ac_need_defaults=false;;
  13818. --header | --heade | --head | --hea )
  13819. $ac_shift
  13820. case $ac_optarg in
  13821. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13822. esac
  13823. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13824. ac_need_defaults=false;;
  13825. --he | --h)
  13826. # Conflict between --help and --header
  13827. as_fn_error "ambiguous option: \`$1'
  13828. Try \`$0 --help' for more information.";;
  13829. --help | --hel | -h )
  13830. $as_echo "$ac_cs_usage"; exit ;;
  13831. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13832. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13833. ac_cs_silent=: ;;
  13834. # This is an error.
  13835. -*) as_fn_error "unrecognized option: \`$1'
  13836. Try \`$0 --help' for more information." ;;
  13837. *) as_fn_append ac_config_targets " $1"
  13838. ac_need_defaults=false ;;
  13839. esac
  13840. shift
  13841. done
  13842. ac_configure_extra_args=
  13843. if $ac_cs_silent; then
  13844. exec 6>/dev/null
  13845. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13846. fi
  13847. _ACEOF
  13848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13849. if \$ac_cs_recheck; then
  13850. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13851. shift
  13852. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13853. CONFIG_SHELL='$SHELL'
  13854. export CONFIG_SHELL
  13855. exec "\$@"
  13856. fi
  13857. _ACEOF
  13858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13859. exec 5>>config.log
  13860. {
  13861. echo
  13862. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13863. ## Running $as_me. ##
  13864. _ASBOX
  13865. $as_echo "$ac_log"
  13866. } >&5
  13867. _ACEOF
  13868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13869. #
  13870. # INIT-COMMANDS
  13871. #
  13872. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13873. # if CDPATH is set.
  13874. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13875. sed_quote_subst='$sed_quote_subst'
  13876. double_quote_subst='$double_quote_subst'
  13877. delay_variable_subst='$delay_variable_subst'
  13878. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13879. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13880. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13881. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13882. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13883. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13884. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13885. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13886. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13887. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13888. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13889. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13890. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13891. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13892. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13893. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13894. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13895. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13896. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13897. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13898. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13899. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13900. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13901. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13902. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13903. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13904. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13905. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13906. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13907. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13908. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13909. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13910. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13911. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13912. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13913. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13914. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13915. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13916. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13917. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13918. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13919. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13920. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13921. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13922. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13923. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13924. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13925. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13926. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13927. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13928. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13929. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13930. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13931. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13932. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13933. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13934. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13935. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13936. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13937. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13938. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13939. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13940. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13941. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13942. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13943. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13944. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13945. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13946. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13947. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13948. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13949. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13950. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13951. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13952. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13953. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13954. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13955. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13956. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13957. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13958. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13959. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13960. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13961. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13962. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13963. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13964. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13965. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13966. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13967. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13968. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13969. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13970. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13971. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13972. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13973. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13974. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13975. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13976. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13977. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13978. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13979. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13980. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13981. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13982. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13983. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13984. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13985. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13986. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13987. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13988. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13989. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13990. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13991. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13992. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13993. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13994. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13995. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13996. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13997. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13998. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13999. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14000. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14001. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14002. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14003. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14004. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14005. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14006. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14007. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14008. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14009. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14010. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14011. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14012. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14013. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14014. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14015. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14016. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14017. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14018. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14019. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14020. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14021. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14022. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14023. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14024. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14025. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14026. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14027. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14028. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14029. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14030. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14031. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14032. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14033. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14034. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14035. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14036. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14037. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14038. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14039. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14040. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14041. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14042. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14043. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14044. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14045. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14046. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14047. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14048. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14049. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14050. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14051. LTCC='$LTCC'
  14052. LTCFLAGS='$LTCFLAGS'
  14053. compiler='$compiler_DEFAULT'
  14054. # Quote evaled strings.
  14055. for var in SED \
  14056. GREP \
  14057. EGREP \
  14058. FGREP \
  14059. LD \
  14060. NM \
  14061. LN_S \
  14062. lt_SP2NL \
  14063. lt_NL2SP \
  14064. reload_flag \
  14065. deplibs_check_method \
  14066. file_magic_cmd \
  14067. AR \
  14068. AR_FLAGS \
  14069. STRIP \
  14070. RANLIB \
  14071. CC \
  14072. CFLAGS \
  14073. compiler \
  14074. lt_cv_sys_global_symbol_pipe \
  14075. lt_cv_sys_global_symbol_to_cdecl \
  14076. lt_cv_sys_global_symbol_to_c_name_address \
  14077. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14078. SHELL \
  14079. ECHO \
  14080. lt_prog_compiler_no_builtin_flag \
  14081. lt_prog_compiler_wl \
  14082. lt_prog_compiler_pic \
  14083. lt_prog_compiler_static \
  14084. lt_cv_prog_compiler_c_o \
  14085. need_locks \
  14086. DSYMUTIL \
  14087. NMEDIT \
  14088. LIPO \
  14089. OTOOL \
  14090. OTOOL64 \
  14091. shrext_cmds \
  14092. export_dynamic_flag_spec \
  14093. whole_archive_flag_spec \
  14094. compiler_needs_object \
  14095. with_gnu_ld \
  14096. allow_undefined_flag \
  14097. no_undefined_flag \
  14098. hardcode_libdir_flag_spec \
  14099. hardcode_libdir_flag_spec_ld \
  14100. hardcode_libdir_separator \
  14101. fix_srcfile_path \
  14102. exclude_expsyms \
  14103. include_expsyms \
  14104. file_list_spec \
  14105. variables_saved_for_relink \
  14106. libname_spec \
  14107. library_names_spec \
  14108. soname_spec \
  14109. finish_eval \
  14110. old_striplib \
  14111. striplib \
  14112. compiler_lib_search_dirs \
  14113. predep_objects \
  14114. postdep_objects \
  14115. predeps \
  14116. postdeps \
  14117. compiler_lib_search_path \
  14118. LD_CXX \
  14119. compiler_CXX \
  14120. lt_prog_compiler_no_builtin_flag_CXX \
  14121. lt_prog_compiler_wl_CXX \
  14122. lt_prog_compiler_pic_CXX \
  14123. lt_prog_compiler_static_CXX \
  14124. lt_cv_prog_compiler_c_o_CXX \
  14125. export_dynamic_flag_spec_CXX \
  14126. whole_archive_flag_spec_CXX \
  14127. compiler_needs_object_CXX \
  14128. with_gnu_ld_CXX \
  14129. allow_undefined_flag_CXX \
  14130. no_undefined_flag_CXX \
  14131. hardcode_libdir_flag_spec_CXX \
  14132. hardcode_libdir_flag_spec_ld_CXX \
  14133. hardcode_libdir_separator_CXX \
  14134. fix_srcfile_path_CXX \
  14135. exclude_expsyms_CXX \
  14136. include_expsyms_CXX \
  14137. file_list_spec_CXX \
  14138. compiler_lib_search_dirs_CXX \
  14139. predep_objects_CXX \
  14140. postdep_objects_CXX \
  14141. predeps_CXX \
  14142. postdeps_CXX \
  14143. compiler_lib_search_path_CXX; do
  14144. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14145. *[\\\\\\\`\\"\\\$]*)
  14146. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14147. ;;
  14148. *)
  14149. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14150. ;;
  14151. esac
  14152. done
  14153. # Double-quote double-evaled strings.
  14154. for var in reload_cmds \
  14155. old_postinstall_cmds \
  14156. old_postuninstall_cmds \
  14157. old_archive_cmds \
  14158. extract_expsyms_cmds \
  14159. old_archive_from_new_cmds \
  14160. old_archive_from_expsyms_cmds \
  14161. archive_cmds \
  14162. archive_expsym_cmds \
  14163. module_cmds \
  14164. module_expsym_cmds \
  14165. export_symbols_cmds \
  14166. prelink_cmds \
  14167. postinstall_cmds \
  14168. postuninstall_cmds \
  14169. finish_cmds \
  14170. sys_lib_search_path_spec \
  14171. sys_lib_dlsearch_path_spec \
  14172. old_archive_cmds_CXX \
  14173. old_archive_from_new_cmds_CXX \
  14174. old_archive_from_expsyms_cmds_CXX \
  14175. archive_cmds_CXX \
  14176. archive_expsym_cmds_CXX \
  14177. module_cmds_CXX \
  14178. module_expsym_cmds_CXX \
  14179. export_symbols_cmds_CXX \
  14180. prelink_cmds_CXX; do
  14181. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14182. *[\\\\\\\`\\"\\\$]*)
  14183. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14184. ;;
  14185. *)
  14186. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14187. ;;
  14188. esac
  14189. done
  14190. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14191. case \$lt_ECHO in
  14192. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14193. ;;
  14194. esac
  14195. ac_aux_dir='$ac_aux_dir'
  14196. xsi_shell='$xsi_shell'
  14197. lt_shell_append='$lt_shell_append'
  14198. # See if we are running on zsh, and set the options which allow our
  14199. # commands through without removal of \ escapes INIT.
  14200. if test -n "\${ZSH_VERSION+set}" ; then
  14201. setopt NO_GLOB_SUBST
  14202. fi
  14203. PACKAGE='$PACKAGE'
  14204. VERSION='$VERSION'
  14205. TIMESTAMP='$TIMESTAMP'
  14206. RM='$RM'
  14207. ofile='$ofile'
  14208. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14211. # Handling of arguments.
  14212. for ac_config_target in $ac_config_targets
  14213. do
  14214. case $ac_config_target in
  14215. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14216. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14217. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14218. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14219. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14220. esac
  14221. done
  14222. # If the user did not use the arguments to specify the items to instantiate,
  14223. # then the envvar interface is used. Set only those that are not.
  14224. # We use the long form for the default assignment because of an extremely
  14225. # bizarre bug on SunOS 4.1.3.
  14226. if $ac_need_defaults; then
  14227. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14228. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14229. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14230. fi
  14231. # Have a temporary directory for convenience. Make it in the build tree
  14232. # simply because there is no reason against having it here, and in addition,
  14233. # creating and moving files from /tmp can sometimes cause problems.
  14234. # Hook for its removal unless debugging.
  14235. # Note that there is a small window in which the directory will not be cleaned:
  14236. # after its creation but before its name has been assigned to `$tmp'.
  14237. $debug ||
  14238. {
  14239. tmp=
  14240. trap 'exit_status=$?
  14241. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14242. ' 0
  14243. trap 'as_fn_exit 1' 1 2 13 15
  14244. }
  14245. # Create a (secure) tmp directory for tmp files.
  14246. {
  14247. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14248. test -n "$tmp" && test -d "$tmp"
  14249. } ||
  14250. {
  14251. tmp=./conf$$-$RANDOM
  14252. (umask 077 && mkdir "$tmp")
  14253. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14254. # Set up the scripts for CONFIG_FILES section.
  14255. # No need to generate them if there are no CONFIG_FILES.
  14256. # This happens for instance with `./config.status config.h'.
  14257. if test -n "$CONFIG_FILES"; then
  14258. ac_cr=`echo X | tr X '\015'`
  14259. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14260. # But we know of no other shell where ac_cr would be empty at this
  14261. # point, so we can use a bashism as a fallback.
  14262. if test "x$ac_cr" = x; then
  14263. eval ac_cr=\$\'\\r\'
  14264. fi
  14265. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14266. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14267. ac_cs_awk_cr='\r'
  14268. else
  14269. ac_cs_awk_cr=$ac_cr
  14270. fi
  14271. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14272. _ACEOF
  14273. {
  14274. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14275. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14276. echo "_ACEOF"
  14277. } >conf$$subs.sh ||
  14278. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14279. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14280. ac_delim='%!_!# '
  14281. for ac_last_try in false false false false false :; do
  14282. . ./conf$$subs.sh ||
  14283. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14284. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14285. if test $ac_delim_n = $ac_delim_num; then
  14286. break
  14287. elif $ac_last_try; then
  14288. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14289. else
  14290. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14291. fi
  14292. done
  14293. rm -f conf$$subs.sh
  14294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14295. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14296. _ACEOF
  14297. sed -n '
  14298. h
  14299. s/^/S["/; s/!.*/"]=/
  14300. p
  14301. g
  14302. s/^[^!]*!//
  14303. :repl
  14304. t repl
  14305. s/'"$ac_delim"'$//
  14306. t delim
  14307. :nl
  14308. h
  14309. s/\(.\{148\}\).*/\1/
  14310. t more1
  14311. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14312. p
  14313. n
  14314. b repl
  14315. :more1
  14316. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14317. p
  14318. g
  14319. s/.\{148\}//
  14320. t nl
  14321. :delim
  14322. h
  14323. s/\(.\{148\}\).*/\1/
  14324. t more2
  14325. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14326. p
  14327. b
  14328. :more2
  14329. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14330. p
  14331. g
  14332. s/.\{148\}//
  14333. t delim
  14334. ' <conf$$subs.awk | sed '
  14335. /^[^""]/{
  14336. N
  14337. s/\n//
  14338. }
  14339. ' >>$CONFIG_STATUS || ac_write_fail=1
  14340. rm -f conf$$subs.awk
  14341. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14342. _ACAWK
  14343. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14344. for (key in S) S_is_set[key] = 1
  14345. FS = ""
  14346. }
  14347. {
  14348. line = $ 0
  14349. nfields = split(line, field, "@")
  14350. substed = 0
  14351. len = length(field[1])
  14352. for (i = 2; i < nfields; i++) {
  14353. key = field[i]
  14354. keylen = length(key)
  14355. if (S_is_set[key]) {
  14356. value = S[key]
  14357. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14358. len += length(value) + length(field[++i])
  14359. substed = 1
  14360. } else
  14361. len += 1 + keylen
  14362. }
  14363. print line
  14364. }
  14365. _ACAWK
  14366. _ACEOF
  14367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14368. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14369. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14370. else
  14371. cat
  14372. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14373. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14374. _ACEOF
  14375. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14376. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14377. # trailing colons and then remove the whole line if VPATH becomes empty
  14378. # (actually we leave an empty line to preserve line numbers).
  14379. if test "x$srcdir" = x.; then
  14380. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14381. s/:*\$(srcdir):*/:/
  14382. s/:*\${srcdir}:*/:/
  14383. s/:*@srcdir@:*/:/
  14384. s/^\([^=]*=[ ]*\):*/\1/
  14385. s/:*$//
  14386. s/^[^=]*=[ ]*$//
  14387. }'
  14388. fi
  14389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14390. fi # test -n "$CONFIG_FILES"
  14391. # Set up the scripts for CONFIG_HEADERS section.
  14392. # No need to generate them if there are no CONFIG_HEADERS.
  14393. # This happens for instance with `./config.status Makefile'.
  14394. if test -n "$CONFIG_HEADERS"; then
  14395. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14396. BEGIN {
  14397. _ACEOF
  14398. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14399. # here-document in config.status, that substitutes the proper values into
  14400. # config.h.in to produce config.h.
  14401. # Create a delimiter string that does not exist in confdefs.h, to ease
  14402. # handling of long lines.
  14403. ac_delim='%!_!# '
  14404. for ac_last_try in false false :; do
  14405. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14406. if test -z "$ac_t"; then
  14407. break
  14408. elif $ac_last_try; then
  14409. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14410. else
  14411. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14412. fi
  14413. done
  14414. # For the awk script, D is an array of macro values keyed by name,
  14415. # likewise P contains macro parameters if any. Preserve backslash
  14416. # newline sequences.
  14417. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14418. sed -n '
  14419. s/.\{148\}/&'"$ac_delim"'/g
  14420. t rset
  14421. :rset
  14422. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14423. t def
  14424. d
  14425. :def
  14426. s/\\$//
  14427. t bsnl
  14428. s/["\\]/\\&/g
  14429. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14430. D["\1"]=" \3"/p
  14431. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14432. d
  14433. :bsnl
  14434. s/["\\]/\\&/g
  14435. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14436. D["\1"]=" \3\\\\\\n"\\/p
  14437. t cont
  14438. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14439. t cont
  14440. d
  14441. :cont
  14442. n
  14443. s/.\{148\}/&'"$ac_delim"'/g
  14444. t clear
  14445. :clear
  14446. s/\\$//
  14447. t bsnlc
  14448. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14449. d
  14450. :bsnlc
  14451. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14452. b cont
  14453. ' <confdefs.h | sed '
  14454. s/'"$ac_delim"'/"\\\
  14455. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14457. for (key in D) D_is_set[key] = 1
  14458. FS = ""
  14459. }
  14460. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14461. line = \$ 0
  14462. split(line, arg, " ")
  14463. if (arg[1] == "#") {
  14464. defundef = arg[2]
  14465. mac1 = arg[3]
  14466. } else {
  14467. defundef = substr(arg[1], 2)
  14468. mac1 = arg[2]
  14469. }
  14470. split(mac1, mac2, "(") #)
  14471. macro = mac2[1]
  14472. prefix = substr(line, 1, index(line, defundef) - 1)
  14473. if (D_is_set[macro]) {
  14474. # Preserve the white space surrounding the "#".
  14475. print prefix "define", macro P[macro] D[macro]
  14476. next
  14477. } else {
  14478. # Replace #undef with comments. This is necessary, for example,
  14479. # in the case of _POSIX_SOURCE, which is predefined and required
  14480. # on some systems where configure will not decide to define it.
  14481. if (defundef == "undef") {
  14482. print "/*", prefix defundef, macro, "*/"
  14483. next
  14484. }
  14485. }
  14486. }
  14487. { print }
  14488. _ACAWK
  14489. _ACEOF
  14490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14491. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14492. fi # test -n "$CONFIG_HEADERS"
  14493. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14494. shift
  14495. for ac_tag
  14496. do
  14497. case $ac_tag in
  14498. :[FHLC]) ac_mode=$ac_tag; continue;;
  14499. esac
  14500. case $ac_mode$ac_tag in
  14501. :[FHL]*:*);;
  14502. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14503. :[FH]-) ac_tag=-:-;;
  14504. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14505. esac
  14506. ac_save_IFS=$IFS
  14507. IFS=:
  14508. set x $ac_tag
  14509. IFS=$ac_save_IFS
  14510. shift
  14511. ac_file=$1
  14512. shift
  14513. case $ac_mode in
  14514. :L) ac_source=$1;;
  14515. :[FH])
  14516. ac_file_inputs=
  14517. for ac_f
  14518. do
  14519. case $ac_f in
  14520. -) ac_f="$tmp/stdin";;
  14521. *) # Look for the file first in the build tree, then in the source tree
  14522. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14523. # because $ac_f cannot contain `:'.
  14524. test -f "$ac_f" ||
  14525. case $ac_f in
  14526. [\\/$]*) false;;
  14527. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14528. esac ||
  14529. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14530. esac
  14531. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14532. as_fn_append ac_file_inputs " '$ac_f'"
  14533. done
  14534. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14535. # use $as_me), people would be surprised to read:
  14536. # /* config.h. Generated by config.status. */
  14537. configure_input='Generated from '`
  14538. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14539. `' by configure.'
  14540. if test x"$ac_file" != x-; then
  14541. configure_input="$ac_file. $configure_input"
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14543. $as_echo "$as_me: creating $ac_file" >&6;}
  14544. fi
  14545. # Neutralize special characters interpreted by sed in replacement strings.
  14546. case $configure_input in #(
  14547. *\&* | *\|* | *\\* )
  14548. ac_sed_conf_input=`$as_echo "$configure_input" |
  14549. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14550. *) ac_sed_conf_input=$configure_input;;
  14551. esac
  14552. case $ac_tag in
  14553. *:-:* | *:-) cat >"$tmp/stdin" \
  14554. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14555. esac
  14556. ;;
  14557. esac
  14558. ac_dir=`$as_dirname -- "$ac_file" ||
  14559. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14560. X"$ac_file" : 'X\(//\)[^/]' \| \
  14561. X"$ac_file" : 'X\(//\)$' \| \
  14562. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14563. $as_echo X"$ac_file" |
  14564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14565. s//\1/
  14566. q
  14567. }
  14568. /^X\(\/\/\)[^/].*/{
  14569. s//\1/
  14570. q
  14571. }
  14572. /^X\(\/\/\)$/{
  14573. s//\1/
  14574. q
  14575. }
  14576. /^X\(\/\).*/{
  14577. s//\1/
  14578. q
  14579. }
  14580. s/.*/./; q'`
  14581. as_dir="$ac_dir"; as_fn_mkdir_p
  14582. ac_builddir=.
  14583. case "$ac_dir" in
  14584. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14585. *)
  14586. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14587. # A ".." for each directory in $ac_dir_suffix.
  14588. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14589. case $ac_top_builddir_sub in
  14590. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14591. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14592. esac ;;
  14593. esac
  14594. ac_abs_top_builddir=$ac_pwd
  14595. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14596. # for backward compatibility:
  14597. ac_top_builddir=$ac_top_build_prefix
  14598. case $srcdir in
  14599. .) # We are building in place.
  14600. ac_srcdir=.
  14601. ac_top_srcdir=$ac_top_builddir_sub
  14602. ac_abs_top_srcdir=$ac_pwd ;;
  14603. [\\/]* | ?:[\\/]* ) # Absolute name.
  14604. ac_srcdir=$srcdir$ac_dir_suffix;
  14605. ac_top_srcdir=$srcdir
  14606. ac_abs_top_srcdir=$srcdir ;;
  14607. *) # Relative name.
  14608. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14609. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14610. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14611. esac
  14612. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14613. case $ac_mode in
  14614. :F)
  14615. #
  14616. # CONFIG_FILE
  14617. #
  14618. case $INSTALL in
  14619. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14620. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14621. esac
  14622. ac_MKDIR_P=$MKDIR_P
  14623. case $MKDIR_P in
  14624. [\\/$]* | ?:[\\/]* ) ;;
  14625. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14626. esac
  14627. _ACEOF
  14628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14629. # If the template does not know about datarootdir, expand it.
  14630. # FIXME: This hack should be removed a few years after 2.60.
  14631. ac_datarootdir_hack=; ac_datarootdir_seen=
  14632. ac_sed_dataroot='
  14633. /datarootdir/ {
  14634. p
  14635. q
  14636. }
  14637. /@datadir@/p
  14638. /@docdir@/p
  14639. /@infodir@/p
  14640. /@localedir@/p
  14641. /@mandir@/p'
  14642. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14643. *datarootdir*) ac_datarootdir_seen=yes;;
  14644. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14646. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14647. _ACEOF
  14648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14649. ac_datarootdir_hack='
  14650. s&@datadir@&$datadir&g
  14651. s&@docdir@&$docdir&g
  14652. s&@infodir@&$infodir&g
  14653. s&@localedir@&$localedir&g
  14654. s&@mandir@&$mandir&g
  14655. s&\\\${datarootdir}&$datarootdir&g' ;;
  14656. esac
  14657. _ACEOF
  14658. # Neutralize VPATH when `$srcdir' = `.'.
  14659. # Shell code in configure.ac might set extrasub.
  14660. # FIXME: do we really want to maintain this feature?
  14661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14662. ac_sed_extra="$ac_vpsub
  14663. $extrasub
  14664. _ACEOF
  14665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14666. :t
  14667. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14668. s|@configure_input@|$ac_sed_conf_input|;t t
  14669. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14670. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14671. s&@srcdir@&$ac_srcdir&;t t
  14672. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14673. s&@top_srcdir@&$ac_top_srcdir&;t t
  14674. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14675. s&@builddir@&$ac_builddir&;t t
  14676. s&@abs_builddir@&$ac_abs_builddir&;t t
  14677. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14678. s&@INSTALL@&$ac_INSTALL&;t t
  14679. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14680. $ac_datarootdir_hack
  14681. "
  14682. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14683. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14684. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14685. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14686. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14688. which seems to be undefined. Please make sure it is defined." >&5
  14689. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14690. which seems to be undefined. Please make sure it is defined." >&2;}
  14691. rm -f "$tmp/stdin"
  14692. case $ac_file in
  14693. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14694. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14695. esac \
  14696. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14697. ;;
  14698. :H)
  14699. #
  14700. # CONFIG_HEADER
  14701. #
  14702. if test x"$ac_file" != x-; then
  14703. {
  14704. $as_echo "/* $configure_input */" \
  14705. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14706. } >"$tmp/config.h" \
  14707. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14708. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14710. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14711. else
  14712. rm -f "$ac_file"
  14713. mv "$tmp/config.h" "$ac_file" \
  14714. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14715. fi
  14716. else
  14717. $as_echo "/* $configure_input */" \
  14718. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14719. || as_fn_error "could not create -" "$LINENO" 5
  14720. fi
  14721. # Compute "$ac_file"'s index in $config_headers.
  14722. _am_arg="$ac_file"
  14723. _am_stamp_count=1
  14724. for _am_header in $config_headers :; do
  14725. case $_am_header in
  14726. $_am_arg | $_am_arg:* )
  14727. break ;;
  14728. * )
  14729. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14730. esac
  14731. done
  14732. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14733. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14734. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14735. X"$_am_arg" : 'X\(//\)$' \| \
  14736. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14737. $as_echo X"$_am_arg" |
  14738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14739. s//\1/
  14740. q
  14741. }
  14742. /^X\(\/\/\)[^/].*/{
  14743. s//\1/
  14744. q
  14745. }
  14746. /^X\(\/\/\)$/{
  14747. s//\1/
  14748. q
  14749. }
  14750. /^X\(\/\).*/{
  14751. s//\1/
  14752. q
  14753. }
  14754. s/.*/./; q'`/stamp-h$_am_stamp_count
  14755. ;;
  14756. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14757. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14758. ;;
  14759. esac
  14760. case $ac_file$ac_mode in
  14761. "libtool":C)
  14762. # See if we are running on zsh, and set the options which allow our
  14763. # commands through without removal of \ escapes.
  14764. if test -n "${ZSH_VERSION+set}" ; then
  14765. setopt NO_GLOB_SUBST
  14766. fi
  14767. cfgfile="${ofile}T"
  14768. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14769. $RM "$cfgfile"
  14770. cat <<_LT_EOF >> "$cfgfile"
  14771. #! $SHELL
  14772. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14773. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14774. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14775. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14776. #
  14777. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14778. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14779. # Written by Gordon Matzigkeit, 1996
  14780. #
  14781. # This file is part of GNU Libtool.
  14782. #
  14783. # GNU Libtool is free software; you can redistribute it and/or
  14784. # modify it under the terms of the GNU General Public License as
  14785. # published by the Free Software Foundation; either version 2 of
  14786. # the License, or (at your option) any later version.
  14787. #
  14788. # As a special exception to the GNU General Public License,
  14789. # if you distribute this file as part of a program or library that
  14790. # is built using GNU Libtool, you may include this file under the
  14791. # same distribution terms that you use for the rest of that program.
  14792. #
  14793. # GNU Libtool is distributed in the hope that it will be useful,
  14794. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14795. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14796. # GNU General Public License for more details.
  14797. #
  14798. # You should have received a copy of the GNU General Public License
  14799. # along with GNU Libtool; see the file COPYING. If not, a copy
  14800. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14801. # obtained by writing to the Free Software Foundation, Inc.,
  14802. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14803. # The names of the tagged configurations supported by this script.
  14804. available_tags="CXX "
  14805. # ### BEGIN LIBTOOL CONFIG
  14806. # Assembler program.
  14807. AS=$AS
  14808. # DLL creation program.
  14809. DLLTOOL=$DLLTOOL
  14810. # Object dumper program.
  14811. OBJDUMP=$OBJDUMP
  14812. # Which release of libtool.m4 was used?
  14813. macro_version=$macro_version
  14814. macro_revision=$macro_revision
  14815. # Whether or not to build shared libraries.
  14816. build_libtool_libs=$enable_shared
  14817. # Whether or not to build static libraries.
  14818. build_old_libs=$enable_static
  14819. # What type of objects to build.
  14820. pic_mode=$pic_mode
  14821. # Whether or not to optimize for fast installation.
  14822. fast_install=$enable_fast_install
  14823. # The host system.
  14824. host_alias=$host_alias
  14825. host=$host
  14826. host_os=$host_os
  14827. # The build system.
  14828. build_alias=$build_alias
  14829. build=$build
  14830. build_os=$build_os
  14831. # A sed program that does not truncate output.
  14832. SED=$lt_SED
  14833. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14834. Xsed="\$SED -e 1s/^X//"
  14835. # A grep program that handles long lines.
  14836. GREP=$lt_GREP
  14837. # An ERE matcher.
  14838. EGREP=$lt_EGREP
  14839. # A literal string matcher.
  14840. FGREP=$lt_FGREP
  14841. # A BSD- or MS-compatible name lister.
  14842. NM=$lt_NM
  14843. # Whether we need soft or hard links.
  14844. LN_S=$lt_LN_S
  14845. # What is the maximum length of a command?
  14846. max_cmd_len=$max_cmd_len
  14847. # Object file suffix (normally "o").
  14848. objext=$ac_objext
  14849. # Executable file suffix (normally "").
  14850. exeext=$exeext
  14851. # whether the shell understands "unset".
  14852. lt_unset=$lt_unset
  14853. # turn spaces into newlines.
  14854. SP2NL=$lt_lt_SP2NL
  14855. # turn newlines into spaces.
  14856. NL2SP=$lt_lt_NL2SP
  14857. # How to create reloadable object files.
  14858. reload_flag=$lt_reload_flag
  14859. reload_cmds=$lt_reload_cmds
  14860. # Method to check whether dependent libraries are shared objects.
  14861. deplibs_check_method=$lt_deplibs_check_method
  14862. # Command to use when deplibs_check_method == "file_magic".
  14863. file_magic_cmd=$lt_file_magic_cmd
  14864. # The archiver.
  14865. AR=$lt_AR
  14866. AR_FLAGS=$lt_AR_FLAGS
  14867. # A symbol stripping program.
  14868. STRIP=$lt_STRIP
  14869. # Commands used to install an old-style archive.
  14870. RANLIB=$lt_RANLIB
  14871. old_postinstall_cmds=$lt_old_postinstall_cmds
  14872. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14873. # A C compiler.
  14874. LTCC=$lt_CC
  14875. # LTCC compiler flags.
  14876. LTCFLAGS=$lt_CFLAGS
  14877. # Take the output of nm and produce a listing of raw symbols and C names.
  14878. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14879. # Transform the output of nm in a proper C declaration.
  14880. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14881. # Transform the output of nm in a C name address pair.
  14882. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14883. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14884. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14885. # The name of the directory that contains temporary libtool files.
  14886. objdir=$objdir
  14887. # Shell to use when invoking shell scripts.
  14888. SHELL=$lt_SHELL
  14889. # An echo program that does not interpret backslashes.
  14890. ECHO=$lt_ECHO
  14891. # Used to examine libraries when file_magic_cmd begins with "file".
  14892. MAGIC_CMD=$MAGIC_CMD
  14893. # Must we lock files when doing compilation?
  14894. need_locks=$lt_need_locks
  14895. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14896. DSYMUTIL=$lt_DSYMUTIL
  14897. # Tool to change global to local symbols on Mac OS X.
  14898. NMEDIT=$lt_NMEDIT
  14899. # Tool to manipulate fat objects and archives on Mac OS X.
  14900. LIPO=$lt_LIPO
  14901. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14902. OTOOL=$lt_OTOOL
  14903. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14904. OTOOL64=$lt_OTOOL64
  14905. # Old archive suffix (normally "a").
  14906. libext=$libext
  14907. # Shared library suffix (normally ".so").
  14908. shrext_cmds=$lt_shrext_cmds
  14909. # The commands to extract the exported symbol list from a shared archive.
  14910. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14911. # Variables whose values should be saved in libtool wrapper scripts and
  14912. # restored at link time.
  14913. variables_saved_for_relink=$lt_variables_saved_for_relink
  14914. # Do we need the "lib" prefix for modules?
  14915. need_lib_prefix=$need_lib_prefix
  14916. # Do we need a version for libraries?
  14917. need_version=$need_version
  14918. # Library versioning type.
  14919. version_type=$version_type
  14920. # Shared library runtime path variable.
  14921. runpath_var=$runpath_var
  14922. # Shared library path variable.
  14923. shlibpath_var=$shlibpath_var
  14924. # Is shlibpath searched before the hard-coded library search path?
  14925. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14926. # Format of library name prefix.
  14927. libname_spec=$lt_libname_spec
  14928. # List of archive names. First name is the real one, the rest are links.
  14929. # The last name is the one that the linker finds with -lNAME
  14930. library_names_spec=$lt_library_names_spec
  14931. # The coded name of the library, if different from the real name.
  14932. soname_spec=$lt_soname_spec
  14933. # Command to use after installation of a shared archive.
  14934. postinstall_cmds=$lt_postinstall_cmds
  14935. # Command to use after uninstallation of a shared archive.
  14936. postuninstall_cmds=$lt_postuninstall_cmds
  14937. # Commands used to finish a libtool library installation in a directory.
  14938. finish_cmds=$lt_finish_cmds
  14939. # As "finish_cmds", except a single script fragment to be evaled but
  14940. # not shown.
  14941. finish_eval=$lt_finish_eval
  14942. # Whether we should hardcode library paths into libraries.
  14943. hardcode_into_libs=$hardcode_into_libs
  14944. # Compile-time system search path for libraries.
  14945. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14946. # Run-time system search path for libraries.
  14947. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14948. # Whether dlopen is supported.
  14949. dlopen_support=$enable_dlopen
  14950. # Whether dlopen of programs is supported.
  14951. dlopen_self=$enable_dlopen_self
  14952. # Whether dlopen of statically linked programs is supported.
  14953. dlopen_self_static=$enable_dlopen_self_static
  14954. # Commands to strip libraries.
  14955. old_striplib=$lt_old_striplib
  14956. striplib=$lt_striplib
  14957. # The linker used to build libraries.
  14958. LD=$lt_LD
  14959. # Commands used to build an old-style archive.
  14960. old_archive_cmds=$lt_old_archive_cmds
  14961. # A language specific compiler.
  14962. CC=$lt_compiler
  14963. # Is the compiler the GNU compiler?
  14964. with_gcc=$GCC
  14965. # Compiler flag to turn off builtin functions.
  14966. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14967. # How to pass a linker flag through the compiler.
  14968. wl=$lt_lt_prog_compiler_wl
  14969. # Additional compiler flags for building library objects.
  14970. pic_flag=$lt_lt_prog_compiler_pic
  14971. # Compiler flag to prevent dynamic linking.
  14972. link_static_flag=$lt_lt_prog_compiler_static
  14973. # Does compiler simultaneously support -c and -o options?
  14974. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14975. # Whether or not to add -lc for building shared libraries.
  14976. build_libtool_need_lc=$archive_cmds_need_lc
  14977. # Whether or not to disallow shared libs when runtime libs are static.
  14978. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14979. # Compiler flag to allow reflexive dlopens.
  14980. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14981. # Compiler flag to generate shared objects directly from archives.
  14982. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14983. # Whether the compiler copes with passing no objects directly.
  14984. compiler_needs_object=$lt_compiler_needs_object
  14985. # Create an old-style archive from a shared archive.
  14986. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14987. # Create a temporary old-style archive to link instead of a shared archive.
  14988. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14989. # Commands used to build a shared archive.
  14990. archive_cmds=$lt_archive_cmds
  14991. archive_expsym_cmds=$lt_archive_expsym_cmds
  14992. # Commands used to build a loadable module if different from building
  14993. # a shared archive.
  14994. module_cmds=$lt_module_cmds
  14995. module_expsym_cmds=$lt_module_expsym_cmds
  14996. # Whether we are building with GNU ld or not.
  14997. with_gnu_ld=$lt_with_gnu_ld
  14998. # Flag that allows shared libraries with undefined symbols to be built.
  14999. allow_undefined_flag=$lt_allow_undefined_flag
  15000. # Flag that enforces no undefined symbols.
  15001. no_undefined_flag=$lt_no_undefined_flag
  15002. # Flag to hardcode \$libdir into a binary during linking.
  15003. # This must work even if \$libdir does not exist
  15004. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15005. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15006. # during linking. This must work even if \$libdir does not exist.
  15007. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15008. # Whether we need a single "-rpath" flag with a separated argument.
  15009. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15010. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15011. # DIR into the resulting binary.
  15012. hardcode_direct=$hardcode_direct
  15013. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15014. # DIR into the resulting binary and the resulting library dependency is
  15015. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15016. # library is relocated.
  15017. hardcode_direct_absolute=$hardcode_direct_absolute
  15018. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15019. # into the resulting binary.
  15020. hardcode_minus_L=$hardcode_minus_L
  15021. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15022. # into the resulting binary.
  15023. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15024. # Set to "yes" if building a shared library automatically hardcodes DIR
  15025. # into the library and all subsequent libraries and executables linked
  15026. # against it.
  15027. hardcode_automatic=$hardcode_automatic
  15028. # Set to yes if linker adds runtime paths of dependent libraries
  15029. # to runtime path list.
  15030. inherit_rpath=$inherit_rpath
  15031. # Whether libtool must link a program against all its dependency libraries.
  15032. link_all_deplibs=$link_all_deplibs
  15033. # Fix the shell variable \$srcfile for the compiler.
  15034. fix_srcfile_path=$lt_fix_srcfile_path
  15035. # Set to "yes" if exported symbols are required.
  15036. always_export_symbols=$always_export_symbols
  15037. # The commands to list exported symbols.
  15038. export_symbols_cmds=$lt_export_symbols_cmds
  15039. # Symbols that should not be listed in the preloaded symbols.
  15040. exclude_expsyms=$lt_exclude_expsyms
  15041. # Symbols that must always be exported.
  15042. include_expsyms=$lt_include_expsyms
  15043. # Commands necessary for linking programs (against libraries) with templates.
  15044. prelink_cmds=$lt_prelink_cmds
  15045. # Specify filename containing input files.
  15046. file_list_spec=$lt_file_list_spec
  15047. # How to hardcode a shared library path into an executable.
  15048. hardcode_action=$hardcode_action
  15049. # The directories searched by this compiler when creating a shared library.
  15050. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15051. # Dependencies to place before and after the objects being linked to
  15052. # create a shared library.
  15053. predep_objects=$lt_predep_objects
  15054. postdep_objects=$lt_postdep_objects
  15055. predeps=$lt_predeps
  15056. postdeps=$lt_postdeps
  15057. # The library search path used internally by the compiler when linking
  15058. # a shared library.
  15059. compiler_lib_search_path=$lt_compiler_lib_search_path
  15060. # ### END LIBTOOL CONFIG
  15061. _LT_EOF
  15062. case $host_os in
  15063. aix3*)
  15064. cat <<\_LT_EOF >> "$cfgfile"
  15065. # AIX sometimes has problems with the GCC collect2 program. For some
  15066. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15067. # vanish in a puff of smoke.
  15068. if test "X${COLLECT_NAMES+set}" != Xset; then
  15069. COLLECT_NAMES=
  15070. export COLLECT_NAMES
  15071. fi
  15072. _LT_EOF
  15073. ;;
  15074. esac
  15075. ltmain="$ac_aux_dir/ltmain.sh"
  15076. # We use sed instead of cat because bash on DJGPP gets confused if
  15077. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15078. # text mode, it properly converts lines to CR/LF. This bash problem
  15079. # is reportedly fixed, but why not run on old versions too?
  15080. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15081. || (rm -f "$cfgfile"; exit 1)
  15082. case $xsi_shell in
  15083. yes)
  15084. cat << \_LT_EOF >> "$cfgfile"
  15085. # func_dirname file append nondir_replacement
  15086. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15087. # otherwise set result to NONDIR_REPLACEMENT.
  15088. func_dirname ()
  15089. {
  15090. case ${1} in
  15091. */*) func_dirname_result="${1%/*}${2}" ;;
  15092. * ) func_dirname_result="${3}" ;;
  15093. esac
  15094. }
  15095. # func_basename file
  15096. func_basename ()
  15097. {
  15098. func_basename_result="${1##*/}"
  15099. }
  15100. # func_dirname_and_basename file append nondir_replacement
  15101. # perform func_basename and func_dirname in a single function
  15102. # call:
  15103. # dirname: Compute the dirname of FILE. If nonempty,
  15104. # add APPEND to the result, otherwise set result
  15105. # to NONDIR_REPLACEMENT.
  15106. # value returned in "$func_dirname_result"
  15107. # basename: Compute filename of FILE.
  15108. # value retuned in "$func_basename_result"
  15109. # Implementation must be kept synchronized with func_dirname
  15110. # and func_basename. For efficiency, we do not delegate to
  15111. # those functions but instead duplicate the functionality here.
  15112. func_dirname_and_basename ()
  15113. {
  15114. case ${1} in
  15115. */*) func_dirname_result="${1%/*}${2}" ;;
  15116. * ) func_dirname_result="${3}" ;;
  15117. esac
  15118. func_basename_result="${1##*/}"
  15119. }
  15120. # func_stripname prefix suffix name
  15121. # strip PREFIX and SUFFIX off of NAME.
  15122. # PREFIX and SUFFIX must not contain globbing or regex special
  15123. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15124. # dot (in which case that matches only a dot).
  15125. func_stripname ()
  15126. {
  15127. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15128. # positional parameters, so assign one to ordinary parameter first.
  15129. func_stripname_result=${3}
  15130. func_stripname_result=${func_stripname_result#"${1}"}
  15131. func_stripname_result=${func_stripname_result%"${2}"}
  15132. }
  15133. # func_opt_split
  15134. func_opt_split ()
  15135. {
  15136. func_opt_split_opt=${1%%=*}
  15137. func_opt_split_arg=${1#*=}
  15138. }
  15139. # func_lo2o object
  15140. func_lo2o ()
  15141. {
  15142. case ${1} in
  15143. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15144. *) func_lo2o_result=${1} ;;
  15145. esac
  15146. }
  15147. # func_xform libobj-or-source
  15148. func_xform ()
  15149. {
  15150. func_xform_result=${1%.*}.lo
  15151. }
  15152. # func_arith arithmetic-term...
  15153. func_arith ()
  15154. {
  15155. func_arith_result=$(( $* ))
  15156. }
  15157. # func_len string
  15158. # STRING may not start with a hyphen.
  15159. func_len ()
  15160. {
  15161. func_len_result=${#1}
  15162. }
  15163. _LT_EOF
  15164. ;;
  15165. *) # Bourne compatible functions.
  15166. cat << \_LT_EOF >> "$cfgfile"
  15167. # func_dirname file append nondir_replacement
  15168. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15169. # otherwise set result to NONDIR_REPLACEMENT.
  15170. func_dirname ()
  15171. {
  15172. # Extract subdirectory from the argument.
  15173. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15174. if test "X$func_dirname_result" = "X${1}"; then
  15175. func_dirname_result="${3}"
  15176. else
  15177. func_dirname_result="$func_dirname_result${2}"
  15178. fi
  15179. }
  15180. # func_basename file
  15181. func_basename ()
  15182. {
  15183. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15184. }
  15185. # func_stripname prefix suffix name
  15186. # strip PREFIX and SUFFIX off of NAME.
  15187. # PREFIX and SUFFIX must not contain globbing or regex special
  15188. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15189. # dot (in which case that matches only a dot).
  15190. # func_strip_suffix prefix name
  15191. func_stripname ()
  15192. {
  15193. case ${2} in
  15194. .*) func_stripname_result=`$ECHO "X${3}" \
  15195. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15196. *) func_stripname_result=`$ECHO "X${3}" \
  15197. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15198. esac
  15199. }
  15200. # sed scripts:
  15201. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15202. my_sed_long_arg='1s/^-[^=]*=//'
  15203. # func_opt_split
  15204. func_opt_split ()
  15205. {
  15206. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15207. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15208. }
  15209. # func_lo2o object
  15210. func_lo2o ()
  15211. {
  15212. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15213. }
  15214. # func_xform libobj-or-source
  15215. func_xform ()
  15216. {
  15217. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15218. }
  15219. # func_arith arithmetic-term...
  15220. func_arith ()
  15221. {
  15222. func_arith_result=`expr "$@"`
  15223. }
  15224. # func_len string
  15225. # STRING may not start with a hyphen.
  15226. func_len ()
  15227. {
  15228. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15229. }
  15230. _LT_EOF
  15231. esac
  15232. case $lt_shell_append in
  15233. yes)
  15234. cat << \_LT_EOF >> "$cfgfile"
  15235. # func_append var value
  15236. # Append VALUE to the end of shell variable VAR.
  15237. func_append ()
  15238. {
  15239. eval "$1+=\$2"
  15240. }
  15241. _LT_EOF
  15242. ;;
  15243. *)
  15244. cat << \_LT_EOF >> "$cfgfile"
  15245. # func_append var value
  15246. # Append VALUE to the end of shell variable VAR.
  15247. func_append ()
  15248. {
  15249. eval "$1=\$$1\$2"
  15250. }
  15251. _LT_EOF
  15252. ;;
  15253. esac
  15254. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15255. || (rm -f "$cfgfile"; exit 1)
  15256. mv -f "$cfgfile" "$ofile" ||
  15257. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15258. chmod +x "$ofile"
  15259. cat <<_LT_EOF >> "$ofile"
  15260. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15261. # The linker used to build libraries.
  15262. LD=$lt_LD_CXX
  15263. # Commands used to build an old-style archive.
  15264. old_archive_cmds=$lt_old_archive_cmds_CXX
  15265. # A language specific compiler.
  15266. CC=$lt_compiler_CXX
  15267. # Is the compiler the GNU compiler?
  15268. with_gcc=$GCC_CXX
  15269. # Compiler flag to turn off builtin functions.
  15270. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15271. # How to pass a linker flag through the compiler.
  15272. wl=$lt_lt_prog_compiler_wl_CXX
  15273. # Additional compiler flags for building library objects.
  15274. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15275. # Compiler flag to prevent dynamic linking.
  15276. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15277. # Does compiler simultaneously support -c and -o options?
  15278. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15279. # Whether or not to add -lc for building shared libraries.
  15280. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15281. # Whether or not to disallow shared libs when runtime libs are static.
  15282. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15283. # Compiler flag to allow reflexive dlopens.
  15284. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15285. # Compiler flag to generate shared objects directly from archives.
  15286. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15287. # Whether the compiler copes with passing no objects directly.
  15288. compiler_needs_object=$lt_compiler_needs_object_CXX
  15289. # Create an old-style archive from a shared archive.
  15290. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15291. # Create a temporary old-style archive to link instead of a shared archive.
  15292. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15293. # Commands used to build a shared archive.
  15294. archive_cmds=$lt_archive_cmds_CXX
  15295. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15296. # Commands used to build a loadable module if different from building
  15297. # a shared archive.
  15298. module_cmds=$lt_module_cmds_CXX
  15299. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15300. # Whether we are building with GNU ld or not.
  15301. with_gnu_ld=$lt_with_gnu_ld_CXX
  15302. # Flag that allows shared libraries with undefined symbols to be built.
  15303. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15304. # Flag that enforces no undefined symbols.
  15305. no_undefined_flag=$lt_no_undefined_flag_CXX
  15306. # Flag to hardcode \$libdir into a binary during linking.
  15307. # This must work even if \$libdir does not exist
  15308. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15309. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15310. # during linking. This must work even if \$libdir does not exist.
  15311. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15312. # Whether we need a single "-rpath" flag with a separated argument.
  15313. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15314. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15315. # DIR into the resulting binary.
  15316. hardcode_direct=$hardcode_direct_CXX
  15317. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15318. # DIR into the resulting binary and the resulting library dependency is
  15319. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15320. # library is relocated.
  15321. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15322. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15323. # into the resulting binary.
  15324. hardcode_minus_L=$hardcode_minus_L_CXX
  15325. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15326. # into the resulting binary.
  15327. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15328. # Set to "yes" if building a shared library automatically hardcodes DIR
  15329. # into the library and all subsequent libraries and executables linked
  15330. # against it.
  15331. hardcode_automatic=$hardcode_automatic_CXX
  15332. # Set to yes if linker adds runtime paths of dependent libraries
  15333. # to runtime path list.
  15334. inherit_rpath=$inherit_rpath_CXX
  15335. # Whether libtool must link a program against all its dependency libraries.
  15336. link_all_deplibs=$link_all_deplibs_CXX
  15337. # Fix the shell variable \$srcfile for the compiler.
  15338. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15339. # Set to "yes" if exported symbols are required.
  15340. always_export_symbols=$always_export_symbols_CXX
  15341. # The commands to list exported symbols.
  15342. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15343. # Symbols that should not be listed in the preloaded symbols.
  15344. exclude_expsyms=$lt_exclude_expsyms_CXX
  15345. # Symbols that must always be exported.
  15346. include_expsyms=$lt_include_expsyms_CXX
  15347. # Commands necessary for linking programs (against libraries) with templates.
  15348. prelink_cmds=$lt_prelink_cmds_CXX
  15349. # Specify filename containing input files.
  15350. file_list_spec=$lt_file_list_spec_CXX
  15351. # How to hardcode a shared library path into an executable.
  15352. hardcode_action=$hardcode_action_CXX
  15353. # The directories searched by this compiler when creating a shared library.
  15354. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15355. # Dependencies to place before and after the objects being linked to
  15356. # create a shared library.
  15357. predep_objects=$lt_predep_objects_CXX
  15358. postdep_objects=$lt_postdep_objects_CXX
  15359. predeps=$lt_predeps_CXX
  15360. postdeps=$lt_postdeps_CXX
  15361. # The library search path used internally by the compiler when linking
  15362. # a shared library.
  15363. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15364. # ### END LIBTOOL TAG CONFIG: CXX
  15365. _LT_EOF
  15366. ;;
  15367. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15368. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15369. # are listed without --file. Let's play safe and only enable the eval
  15370. # if we detect the quoting.
  15371. case $CONFIG_FILES in
  15372. *\'*) eval set x "$CONFIG_FILES" ;;
  15373. *) set x $CONFIG_FILES ;;
  15374. esac
  15375. shift
  15376. for mf
  15377. do
  15378. # Strip MF so we end up with the name of the file.
  15379. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15380. # Check whether this is an Automake generated Makefile or not.
  15381. # We used to match only the files named `Makefile.in', but
  15382. # some people rename them; so instead we look at the file content.
  15383. # Grep'ing the first line is not enough: some people post-process
  15384. # each Makefile.in and add a new line on top of each file to say so.
  15385. # Grep'ing the whole file is not good either: AIX grep has a line
  15386. # limit of 2048, but all sed's we know have understand at least 4000.
  15387. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15388. dirpart=`$as_dirname -- "$mf" ||
  15389. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15390. X"$mf" : 'X\(//\)[^/]' \| \
  15391. X"$mf" : 'X\(//\)$' \| \
  15392. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15393. $as_echo X"$mf" |
  15394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15395. s//\1/
  15396. q
  15397. }
  15398. /^X\(\/\/\)[^/].*/{
  15399. s//\1/
  15400. q
  15401. }
  15402. /^X\(\/\/\)$/{
  15403. s//\1/
  15404. q
  15405. }
  15406. /^X\(\/\).*/{
  15407. s//\1/
  15408. q
  15409. }
  15410. s/.*/./; q'`
  15411. else
  15412. continue
  15413. fi
  15414. # Extract the definition of DEPDIR, am__include, and am__quote
  15415. # from the Makefile without running `make'.
  15416. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15417. test -z "$DEPDIR" && continue
  15418. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15419. test -z "am__include" && continue
  15420. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15421. # When using ansi2knr, U may be empty or an underscore; expand it
  15422. U=`sed -n 's/^U = //p' < "$mf"`
  15423. # Find all dependency output files, they are included files with
  15424. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15425. # simplest approach to changing $(DEPDIR) to its actual value in the
  15426. # expansion.
  15427. for file in `sed -n "
  15428. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15429. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15430. # Make sure the directory exists.
  15431. test -f "$dirpart/$file" && continue
  15432. fdir=`$as_dirname -- "$file" ||
  15433. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15434. X"$file" : 'X\(//\)[^/]' \| \
  15435. X"$file" : 'X\(//\)$' \| \
  15436. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15437. $as_echo X"$file" |
  15438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15439. s//\1/
  15440. q
  15441. }
  15442. /^X\(\/\/\)[^/].*/{
  15443. s//\1/
  15444. q
  15445. }
  15446. /^X\(\/\/\)$/{
  15447. s//\1/
  15448. q
  15449. }
  15450. /^X\(\/\).*/{
  15451. s//\1/
  15452. q
  15453. }
  15454. s/.*/./; q'`
  15455. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15456. # echo "creating $dirpart/$file"
  15457. echo '# dummy' > "$dirpart/$file"
  15458. done
  15459. done
  15460. }
  15461. ;;
  15462. esac
  15463. done # for ac_tag
  15464. as_fn_exit 0
  15465. _ACEOF
  15466. ac_clean_files=$ac_clean_files_save
  15467. test $ac_write_fail = 0 ||
  15468. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15469. # configure is writing to config.log, and then calls config.status.
  15470. # config.status does its own redirection, appending to config.log.
  15471. # Unfortunately, on DOS this fails, as config.log is still kept open
  15472. # by configure, so config.status won't be able to write to it; its
  15473. # output is simply discarded. So we exec the FD to /dev/null,
  15474. # effectively closing config.log, so it can be properly (re)opened and
  15475. # appended to by config.status. When coming back to configure, we
  15476. # need to make the FD available again.
  15477. if test "$no_create" != yes; then
  15478. ac_cs_success=:
  15479. ac_config_status_args=
  15480. test "$silent" = yes &&
  15481. ac_config_status_args="$ac_config_status_args --quiet"
  15482. exec 5>/dev/null
  15483. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15484. exec 5>>config.log
  15485. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15486. # would make configure fail if this is the last instruction.
  15487. $ac_cs_success || as_fn_exit $?
  15488. fi
  15489. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15491. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15492. fi