configure 688 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/gtkmm/main.cpp"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. PLATFORM_WIN32_FALSE
  586. PLATFORM_WIN32_TRUE
  587. DESKTOPFILE_FALSE
  588. DESKTOPFILE_TRUE
  589. POSUB
  590. LTLIBINTL
  591. LIBINTL
  592. INTLLIBS
  593. INTL_LIBTOOL_SUFFIX_PREFIX
  594. INTLOBJS
  595. GENCAT
  596. INSTOBJEXT
  597. DATADIRNAME
  598. CATOBJEXT
  599. USE_INCLUDED_LIBINTL
  600. BUILD_INCLUDED_LIBINTL
  601. INTLBISON
  602. LTLIBICONV
  603. LIBICONV
  604. HAVE_WPRINTF
  605. HAVE_SNPRINTF
  606. HAVE_ASPRINTF
  607. HAVE_POSIX_PRINTF
  608. GLIBC21
  609. ALLOCA
  610. MSGMERGE
  611. XGETTEXT
  612. GMSGFMT
  613. MSGFMT
  614. USE_NLS
  615. MKINSTALLDIRS
  616. GTKMMDEPS_LIBS
  617. GTKMMDEPS_CFLAGS
  618. GLIBMM_LIBS
  619. GLIBMM_CFLAGS
  620. GLIBMMDEPS_LIBS
  621. GLIBMMDEPS_CFLAGS
  622. PKG_CONFIG_LIBDIR
  623. PKG_CONFIG_PATH
  624. PKG_CONFIG
  625. CXXCPP
  626. LT_SYS_LIBRARY_PATH
  627. OTOOL64
  628. OTOOL
  629. LIPO
  630. NMEDIT
  631. DSYMUTIL
  632. MANIFEST_TOOL
  633. RANLIB
  634. ac_ct_AR
  635. AR
  636. DLLTOOL
  637. OBJDUMP
  638. LN_S
  639. NM
  640. ac_ct_DUMPBIN
  641. DUMPBIN
  642. LD
  643. FGREP
  644. host_os
  645. host_vendor
  646. host_cpu
  647. host
  648. build_os
  649. build_vendor
  650. build_cpu
  651. build
  652. LIBTOOL
  653. PKGCONFIG
  654. SED
  655. EGREP
  656. GREP
  657. CPP
  658. am__fastdepCC_FALSE
  659. am__fastdepCC_TRUE
  660. CCDEPMODE
  661. ac_ct_CC
  662. CFLAGS
  663. CC
  664. am__fastdepCXX_FALSE
  665. am__fastdepCXX_TRUE
  666. CXXDEPMODE
  667. am__nodep
  668. AMDEPBACKSLASH
  669. AMDEP_FALSE
  670. AMDEP_TRUE
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CXX
  676. CPPFLAGS
  677. LDFLAGS
  678. CXXFLAGS
  679. CXX
  680. AM_BACKSLASH
  681. AM_DEFAULT_VERBOSITY
  682. AM_DEFAULT_V
  683. AM_V
  684. am__untar
  685. am__tar
  686. AMTAR
  687. am__leading_dot
  688. SET_MAKE
  689. AWK
  690. mkdir_p
  691. MKDIR_P
  692. INSTALL_STRIP_PROGRAM
  693. STRIP
  694. install_sh
  695. MAKEINFO
  696. AUTOHEADER
  697. AUTOMAKE
  698. AUTOCONF
  699. ACLOCAL
  700. VERSION
  701. PACKAGE
  702. CYGPATH_W
  703. am__isrc
  704. INSTALL_DATA
  705. INSTALL_SCRIPT
  706. INSTALL_PROGRAM
  707. target_alias
  708. host_alias
  709. build_alias
  710. LIBS
  711. ECHO_T
  712. ECHO_N
  713. ECHO_C
  714. DEFS
  715. mandir
  716. localedir
  717. libdir
  718. psdir
  719. pdfdir
  720. dvidir
  721. htmldir
  722. infodir
  723. docdir
  724. oldincludedir
  725. includedir
  726. runstatedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL
  746. am__quote'
  747. ac_subst_files=''
  748. ac_user_opts='
  749. enable_option_checking
  750. enable_silent_rules
  751. enable_dependency_tracking
  752. enable_shared
  753. enable_static
  754. with_pic
  755. enable_fast_install
  756. with_aix_soname
  757. with_gnu_ld
  758. with_sysroot
  759. enable_libtool_lock
  760. enable_nls
  761. enable_rpath
  762. with_libiconv_prefix
  763. with_included_gettext
  764. with_libintl_prefix
  765. enable_logdebug
  766. enable_desktopfile
  767. '
  768. ac_precious_vars='build_alias
  769. host_alias
  770. target_alias
  771. CXX
  772. CXXFLAGS
  773. LDFLAGS
  774. LIBS
  775. CPPFLAGS
  776. CCC
  777. CC
  778. CFLAGS
  779. CPP
  780. LT_SYS_LIBRARY_PATH
  781. CXXCPP
  782. PKG_CONFIG
  783. PKG_CONFIG_PATH
  784. PKG_CONFIG_LIBDIR
  785. GLIBMMDEPS_CFLAGS
  786. GLIBMMDEPS_LIBS
  787. GTKMMDEPS_CFLAGS
  788. GTKMMDEPS_LIBS'
  789. # Initialize some variables set by options.
  790. ac_init_help=
  791. ac_init_version=false
  792. ac_unrecognized_opts=
  793. ac_unrecognized_sep=
  794. # The variables have the same names as the options, with
  795. # dashes changed to underlines.
  796. cache_file=/dev/null
  797. exec_prefix=NONE
  798. no_create=
  799. no_recursion=
  800. prefix=NONE
  801. program_prefix=NONE
  802. program_suffix=NONE
  803. program_transform_name=s,x,x,
  804. silent=
  805. site=
  806. srcdir=
  807. verbose=
  808. x_includes=NONE
  809. x_libraries=NONE
  810. # Installation directory options.
  811. # These are left unexpanded so users can "make install exec_prefix=/foo"
  812. # and all the variables that are supposed to be based on exec_prefix
  813. # by default will actually change.
  814. # Use braces instead of parens because sh, perl, etc. also accept them.
  815. # (The list follows the same order as the GNU Coding Standards.)
  816. bindir='${exec_prefix}/bin'
  817. sbindir='${exec_prefix}/sbin'
  818. libexecdir='${exec_prefix}/libexec'
  819. datarootdir='${prefix}/share'
  820. datadir='${datarootdir}'
  821. sysconfdir='${prefix}/etc'
  822. sharedstatedir='${prefix}/com'
  823. localstatedir='${prefix}/var'
  824. runstatedir='${localstatedir}/run'
  825. includedir='${prefix}/include'
  826. oldincludedir='/usr/include'
  827. docdir='${datarootdir}/doc/${PACKAGE}'
  828. infodir='${datarootdir}/info'
  829. htmldir='${docdir}'
  830. dvidir='${docdir}'
  831. pdfdir='${docdir}'
  832. psdir='${docdir}'
  833. libdir='${exec_prefix}/lib'
  834. localedir='${datarootdir}/locale'
  835. mandir='${datarootdir}/man'
  836. ac_prev=
  837. ac_dashdash=
  838. for ac_option
  839. do
  840. # If the previous option needs an argument, assign it.
  841. if test -n "$ac_prev"; then
  842. eval $ac_prev=\$ac_option
  843. ac_prev=
  844. continue
  845. fi
  846. case $ac_option in
  847. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  848. *=) ac_optarg= ;;
  849. *) ac_optarg=yes ;;
  850. esac
  851. # Accept the important Cygnus configure options, so we can diagnose typos.
  852. case $ac_dashdash$ac_option in
  853. --)
  854. ac_dashdash=yes ;;
  855. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  856. ac_prev=bindir ;;
  857. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  858. bindir=$ac_optarg ;;
  859. -build | --build | --buil | --bui | --bu)
  860. ac_prev=build_alias ;;
  861. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  862. build_alias=$ac_optarg ;;
  863. -cache-file | --cache-file | --cache-fil | --cache-fi \
  864. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865. ac_prev=cache_file ;;
  866. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868. cache_file=$ac_optarg ;;
  869. --config-cache | -C)
  870. cache_file=config.cache ;;
  871. -datadir | --datadir | --datadi | --datad)
  872. ac_prev=datadir ;;
  873. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  874. datadir=$ac_optarg ;;
  875. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  876. | --dataroo | --dataro | --datar)
  877. ac_prev=datarootdir ;;
  878. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  879. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  880. datarootdir=$ac_optarg ;;
  881. -disable-* | --disable-*)
  882. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  885. as_fn_error $? "invalid feature name: $ac_useropt"
  886. ac_useropt_orig=$ac_useropt
  887. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  888. case $ac_user_opts in
  889. *"
  890. "enable_$ac_useropt"
  891. "*) ;;
  892. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  893. ac_unrecognized_sep=', ';;
  894. esac
  895. eval enable_$ac_useropt=no ;;
  896. -docdir | --docdir | --docdi | --doc | --do)
  897. ac_prev=docdir ;;
  898. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  899. docdir=$ac_optarg ;;
  900. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  901. ac_prev=dvidir ;;
  902. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  903. dvidir=$ac_optarg ;;
  904. -enable-* | --enable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=\$ac_optarg ;;
  919. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  920. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  921. | --exec | --exe | --ex)
  922. ac_prev=exec_prefix ;;
  923. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  924. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  925. | --exec=* | --exe=* | --ex=*)
  926. exec_prefix=$ac_optarg ;;
  927. -gas | --gas | --ga | --g)
  928. # Obsolete; use --with-gas.
  929. with_gas=yes ;;
  930. -help | --help | --hel | --he | -h)
  931. ac_init_help=long ;;
  932. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  933. ac_init_help=recursive ;;
  934. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  935. ac_init_help=short ;;
  936. -host | --host | --hos | --ho)
  937. ac_prev=host_alias ;;
  938. -host=* | --host=* | --hos=* | --ho=*)
  939. host_alias=$ac_optarg ;;
  940. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  941. ac_prev=htmldir ;;
  942. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  943. | --ht=*)
  944. htmldir=$ac_optarg ;;
  945. -includedir | --includedir | --includedi | --included | --include \
  946. | --includ | --inclu | --incl | --inc)
  947. ac_prev=includedir ;;
  948. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  949. | --includ=* | --inclu=* | --incl=* | --inc=*)
  950. includedir=$ac_optarg ;;
  951. -infodir | --infodir | --infodi | --infod | --info | --inf)
  952. ac_prev=infodir ;;
  953. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  954. infodir=$ac_optarg ;;
  955. -libdir | --libdir | --libdi | --libd)
  956. ac_prev=libdir ;;
  957. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  958. libdir=$ac_optarg ;;
  959. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  960. | --libexe | --libex | --libe)
  961. ac_prev=libexecdir ;;
  962. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  963. | --libexe=* | --libex=* | --libe=*)
  964. libexecdir=$ac_optarg ;;
  965. -localedir | --localedir | --localedi | --localed | --locale)
  966. ac_prev=localedir ;;
  967. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  968. localedir=$ac_optarg ;;
  969. -localstatedir | --localstatedir | --localstatedi | --localstated \
  970. | --localstate | --localstat | --localsta | --localst | --locals)
  971. ac_prev=localstatedir ;;
  972. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  973. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  974. localstatedir=$ac_optarg ;;
  975. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  976. ac_prev=mandir ;;
  977. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  978. mandir=$ac_optarg ;;
  979. -nfp | --nfp | --nf)
  980. # Obsolete; use --without-fp.
  981. with_fp=no ;;
  982. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  983. | --no-cr | --no-c | -n)
  984. no_create=yes ;;
  985. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  986. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  987. no_recursion=yes ;;
  988. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  989. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  990. | --oldin | --oldi | --old | --ol | --o)
  991. ac_prev=oldincludedir ;;
  992. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  993. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  994. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  995. oldincludedir=$ac_optarg ;;
  996. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  997. ac_prev=prefix ;;
  998. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  999. prefix=$ac_optarg ;;
  1000. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1001. | --program-pre | --program-pr | --program-p)
  1002. ac_prev=program_prefix ;;
  1003. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1004. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1005. program_prefix=$ac_optarg ;;
  1006. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1007. | --program-suf | --program-su | --program-s)
  1008. ac_prev=program_suffix ;;
  1009. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1010. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1011. program_suffix=$ac_optarg ;;
  1012. -program-transform-name | --program-transform-name \
  1013. | --program-transform-nam | --program-transform-na \
  1014. | --program-transform-n | --program-transform- \
  1015. | --program-transform | --program-transfor \
  1016. | --program-transfo | --program-transf \
  1017. | --program-trans | --program-tran \
  1018. | --progr-tra | --program-tr | --program-t)
  1019. ac_prev=program_transform_name ;;
  1020. -program-transform-name=* | --program-transform-name=* \
  1021. | --program-transform-nam=* | --program-transform-na=* \
  1022. | --program-transform-n=* | --program-transform-=* \
  1023. | --program-transform=* | --program-transfor=* \
  1024. | --program-transfo=* | --program-transf=* \
  1025. | --program-trans=* | --program-tran=* \
  1026. | --progr-tra=* | --program-tr=* | --program-t=*)
  1027. program_transform_name=$ac_optarg ;;
  1028. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1029. ac_prev=pdfdir ;;
  1030. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1031. pdfdir=$ac_optarg ;;
  1032. -psdir | --psdir | --psdi | --psd | --ps)
  1033. ac_prev=psdir ;;
  1034. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1035. psdir=$ac_optarg ;;
  1036. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1037. | -silent | --silent | --silen | --sile | --sil)
  1038. silent=yes ;;
  1039. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1040. | --runstate | --runstat | --runsta | --runst | --runs \
  1041. | --run | --ru | --r)
  1042. ac_prev=runstatedir ;;
  1043. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1044. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1045. | --run=* | --ru=* | --r=*)
  1046. runstatedir=$ac_optarg ;;
  1047. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1048. ac_prev=sbindir ;;
  1049. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1050. | --sbi=* | --sb=*)
  1051. sbindir=$ac_optarg ;;
  1052. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1053. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1054. | --sharedst | --shareds | --shared | --share | --shar \
  1055. | --sha | --sh)
  1056. ac_prev=sharedstatedir ;;
  1057. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1058. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1059. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1060. | --sha=* | --sh=*)
  1061. sharedstatedir=$ac_optarg ;;
  1062. -site | --site | --sit)
  1063. ac_prev=site ;;
  1064. -site=* | --site=* | --sit=*)
  1065. site=$ac_optarg ;;
  1066. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1067. ac_prev=srcdir ;;
  1068. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1069. srcdir=$ac_optarg ;;
  1070. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1071. | --syscon | --sysco | --sysc | --sys | --sy)
  1072. ac_prev=sysconfdir ;;
  1073. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1074. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1075. sysconfdir=$ac_optarg ;;
  1076. -target | --target | --targe | --targ | --tar | --ta | --t)
  1077. ac_prev=target_alias ;;
  1078. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1079. target_alias=$ac_optarg ;;
  1080. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1081. verbose=yes ;;
  1082. -version | --version | --versio | --versi | --vers | -V)
  1083. ac_init_version=: ;;
  1084. -with-* | --with-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error $? "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=\$ac_optarg ;;
  1099. -without-* | --without-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error $? "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1130. Try \`$0 --help' for more information"
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. case $ac_envvar in #(
  1136. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1137. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1138. esac
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. as_fn_error $? "missing argument to $ac_option"
  1153. fi
  1154. if test -n "$ac_unrecognized_opts"; then
  1155. case $enable_option_checking in
  1156. no) ;;
  1157. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1158. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1159. esac
  1160. fi
  1161. # Check all directory arguments for consistency.
  1162. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1163. datadir sysconfdir sharedstatedir localstatedir includedir \
  1164. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1165. libdir localedir mandir runstatedir
  1166. do
  1167. eval ac_val=\$$ac_var
  1168. # Remove trailing slashes.
  1169. case $ac_val in
  1170. */ )
  1171. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1172. eval $ac_var=\$ac_val;;
  1173. esac
  1174. # Be sure to have absolute directory names.
  1175. case $ac_val in
  1176. [\\/$]* | ?:[\\/]* ) continue;;
  1177. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1178. esac
  1179. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1180. done
  1181. # There might be people who depend on the old broken behavior: `$host'
  1182. # used to hold the argument of --host etc.
  1183. # FIXME: To remove some day.
  1184. build=$build_alias
  1185. host=$host_alias
  1186. target=$target_alias
  1187. # FIXME: To remove some day.
  1188. if test "x$host_alias" != x; then
  1189. if test "x$build_alias" = x; then
  1190. cross_compiling=maybe
  1191. elif test "x$build_alias" != "x$host_alias"; then
  1192. cross_compiling=yes
  1193. fi
  1194. fi
  1195. ac_tool_prefix=
  1196. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1197. test "$silent" = yes && exec 6>/dev/null
  1198. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1199. ac_ls_di=`ls -di .` &&
  1200. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1201. as_fn_error $? "working directory cannot be determined"
  1202. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1203. as_fn_error $? "pwd does not report name of working directory"
  1204. # Find the source files, if location was not specified.
  1205. if test -z "$srcdir"; then
  1206. ac_srcdir_defaulted=yes
  1207. # Try the directory containing this script, then the parent directory.
  1208. ac_confdir=`$as_dirname -- "$as_myself" ||
  1209. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1210. X"$as_myself" : 'X\(//\)[^/]' \| \
  1211. X"$as_myself" : 'X\(//\)$' \| \
  1212. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1213. $as_echo X"$as_myself" |
  1214. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\/\)[^/].*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. /^X\(\/\/\)$/{
  1223. s//\1/
  1224. q
  1225. }
  1226. /^X\(\/\).*/{
  1227. s//\1/
  1228. q
  1229. }
  1230. s/.*/./; q'`
  1231. srcdir=$ac_confdir
  1232. if test ! -r "$srcdir/$ac_unique_file"; then
  1233. srcdir=..
  1234. fi
  1235. else
  1236. ac_srcdir_defaulted=no
  1237. fi
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1240. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1241. fi
  1242. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1243. ac_abs_confdir=`(
  1244. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1245. pwd)`
  1246. # When building in place, set srcdir=.
  1247. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1248. srcdir=.
  1249. fi
  1250. # Remove unnecessary trailing slashes from srcdir.
  1251. # Double slashes in file names in object file debugging info
  1252. # mess up M-x gdb in Emacs.
  1253. case $srcdir in
  1254. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1255. esac
  1256. for ac_var in $ac_precious_vars; do
  1257. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1258. eval ac_env_${ac_var}_value=\$${ac_var}
  1259. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1260. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1261. done
  1262. #
  1263. # Report the --help message.
  1264. #
  1265. if test "$ac_init_help" = "long"; then
  1266. # Omit some internal or obsolete options to make the list less imposing.
  1267. # This message is too long to be a string in the A/UX 3.1 sh.
  1268. cat <<_ACEOF
  1269. \`configure' configures this package to adapt to many kinds of systems.
  1270. Usage: $0 [OPTION]... [VAR=VALUE]...
  1271. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1272. VAR=VALUE. See below for descriptions of some of the useful variables.
  1273. Defaults for the options are specified in brackets.
  1274. Configuration:
  1275. -h, --help display this help and exit
  1276. --help=short display options specific to this package
  1277. --help=recursive display the short help of all the included packages
  1278. -V, --version display version information and exit
  1279. -q, --quiet, --silent do not print \`checking ...' messages
  1280. --cache-file=FILE cache test results in FILE [disabled]
  1281. -C, --config-cache alias for \`--cache-file=config.cache'
  1282. -n, --no-create do not create output files
  1283. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1284. Installation directories:
  1285. --prefix=PREFIX install architecture-independent files in PREFIX
  1286. [$ac_default_prefix]
  1287. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1288. [PREFIX]
  1289. By default, \`make install' will install all the files in
  1290. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1291. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1292. for instance \`--prefix=\$HOME'.
  1293. For better control, use the options below.
  1294. Fine tuning of the installation directories:
  1295. --bindir=DIR user executables [EPREFIX/bin]
  1296. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1297. --libexecdir=DIR program executables [EPREFIX/libexec]
  1298. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1299. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1300. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1301. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1302. --libdir=DIR object code libraries [EPREFIX/lib]
  1303. --includedir=DIR C header files [PREFIX/include]
  1304. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1305. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1306. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1307. --infodir=DIR info documentation [DATAROOTDIR/info]
  1308. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1309. --mandir=DIR man documentation [DATAROOTDIR/man]
  1310. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1311. --htmldir=DIR html documentation [DOCDIR]
  1312. --dvidir=DIR dvi documentation [DOCDIR]
  1313. --pdfdir=DIR pdf documentation [DOCDIR]
  1314. --psdir=DIR ps documentation [DOCDIR]
  1315. _ACEOF
  1316. cat <<\_ACEOF
  1317. Program names:
  1318. --program-prefix=PREFIX prepend PREFIX to installed program names
  1319. --program-suffix=SUFFIX append SUFFIX to installed program names
  1320. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1321. System types:
  1322. --build=BUILD configure for building on BUILD [guessed]
  1323. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1324. _ACEOF
  1325. fi
  1326. if test -n "$ac_init_help"; then
  1327. cat <<\_ACEOF
  1328. Optional Features:
  1329. --disable-option-checking ignore unrecognized --enable/--with options
  1330. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1331. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1332. --enable-silent-rules less verbose build output (undo: "make V=1")
  1333. --disable-silent-rules verbose build output (undo: "make V=0")
  1334. --enable-dependency-tracking
  1335. do not reject slow dependency extractors
  1336. --disable-dependency-tracking
  1337. speeds up one-time build
  1338. --enable-shared[=PKGS] build shared libraries [default=yes]
  1339. --enable-static[=PKGS] build static libraries [default=yes]
  1340. --enable-fast-install[=PKGS]
  1341. optimize for fast installation [default=yes]
  1342. --disable-libtool-lock avoid locking (might break parallel builds)
  1343. --disable-nls do not use Native Language Support
  1344. --disable-rpath do not hardcode runtime library paths
  1345. --enable-logdebug compile with log-debugging to a file
  1346. --disable-desktopfile don't install .desktop/menu entry
  1347. Optional Packages:
  1348. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1349. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1350. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1351. both]
  1352. --with-aix-soname=aix|svr4|both
  1353. shared library versioning (aka "SONAME") variant to
  1354. provide on AIX, [default=aix].
  1355. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1356. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1357. compiler's sysroot if not specified).
  1358. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1359. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1360. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1361. --with-included-gettext use the GNU gettext library included here
  1362. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1363. --without-libintl-prefix don't search for libintl in includedir and libdir
  1364. Some influential environment variables:
  1365. CXX C++ compiler command
  1366. CXXFLAGS C++ compiler flags
  1367. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1368. nonstandard directory <lib dir>
  1369. LIBS libraries to pass to the linker, e.g. -l<library>
  1370. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1371. you have headers in a nonstandard directory <include dir>
  1372. CC C compiler command
  1373. CFLAGS C compiler flags
  1374. CPP C preprocessor
  1375. LT_SYS_LIBRARY_PATH
  1376. User-defined run-time library search path.
  1377. CXXCPP C++ preprocessor
  1378. PKG_CONFIG path to pkg-config utility
  1379. PKG_CONFIG_PATH
  1380. directories to add to pkg-config's search path
  1381. PKG_CONFIG_LIBDIR
  1382. path overriding pkg-config's built-in search path
  1383. GLIBMMDEPS_CFLAGS
  1384. C compiler flags for GLIBMMDEPS, overriding pkg-config
  1385. GLIBMMDEPS_LIBS
  1386. linker flags for GLIBMMDEPS, overriding pkg-config
  1387. GTKMMDEPS_CFLAGS
  1388. C compiler flags for GTKMMDEPS, overriding pkg-config
  1389. GTKMMDEPS_LIBS
  1390. linker flags for GTKMMDEPS, overriding pkg-config
  1391. Use these variables to override the choices made by `configure' or to help
  1392. it to find libraries and programs with nonstandard names/locations.
  1393. Report bugs to the package provider.
  1394. _ACEOF
  1395. ac_status=$?
  1396. fi
  1397. if test "$ac_init_help" = "recursive"; then
  1398. # If there are subdirs, report their specific --help.
  1399. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1400. test -d "$ac_dir" ||
  1401. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1402. continue
  1403. ac_builddir=.
  1404. case "$ac_dir" in
  1405. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1406. *)
  1407. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1408. # A ".." for each directory in $ac_dir_suffix.
  1409. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1410. case $ac_top_builddir_sub in
  1411. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1413. esac ;;
  1414. esac
  1415. ac_abs_top_builddir=$ac_pwd
  1416. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1417. # for backward compatibility:
  1418. ac_top_builddir=$ac_top_build_prefix
  1419. case $srcdir in
  1420. .) # We are building in place.
  1421. ac_srcdir=.
  1422. ac_top_srcdir=$ac_top_builddir_sub
  1423. ac_abs_top_srcdir=$ac_pwd ;;
  1424. [\\/]* | ?:[\\/]* ) # Absolute name.
  1425. ac_srcdir=$srcdir$ac_dir_suffix;
  1426. ac_top_srcdir=$srcdir
  1427. ac_abs_top_srcdir=$srcdir ;;
  1428. *) # Relative name.
  1429. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1430. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1431. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1432. esac
  1433. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1434. cd "$ac_dir" || { ac_status=$?; continue; }
  1435. # Check for guested configure.
  1436. if test -f "$ac_srcdir/configure.gnu"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1439. elif test -f "$ac_srcdir/configure"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure" --help=recursive
  1442. else
  1443. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1444. fi || ac_status=$?
  1445. cd "$ac_pwd" || { ac_status=$?; break; }
  1446. done
  1447. fi
  1448. test -n "$ac_init_help" && exit $ac_status
  1449. if $ac_init_version; then
  1450. cat <<\_ACEOF
  1451. configure
  1452. generated by GNU Autoconf 2.69
  1453. Copyright (C) 2012 Free Software Foundation, Inc.
  1454. This configure script is free software; the Free Software Foundation
  1455. gives unlimited permission to copy, distribute and modify it.
  1456. _ACEOF
  1457. exit
  1458. fi
  1459. ## ------------------------ ##
  1460. ## Autoconf initialization. ##
  1461. ## ------------------------ ##
  1462. # ac_fn_cxx_try_compile LINENO
  1463. # ----------------------------
  1464. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1465. ac_fn_cxx_try_compile ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. rm -f conftest.$ac_objext
  1469. if { { ac_try="$ac_compile"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_compile") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } && {
  1485. test -z "$ac_cxx_werror_flag" ||
  1486. test ! -s conftest.err
  1487. } && test -s conftest.$ac_objext; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_cxx_try_compile
  1497. # ac_fn_c_try_compile LINENO
  1498. # --------------------------
  1499. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. rm -f conftest.$ac_objext
  1504. if { { ac_try="$ac_compile"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. $as_echo "$ac_try_echo"; } >&5
  1511. (eval "$ac_compile") 2>conftest.err
  1512. ac_status=$?
  1513. if test -s conftest.err; then
  1514. grep -v '^ *+' conftest.err >conftest.er1
  1515. cat conftest.er1 >&5
  1516. mv -f conftest.er1 conftest.err
  1517. fi
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && {
  1520. test -z "$ac_c_werror_flag" ||
  1521. test ! -s conftest.err
  1522. } && test -s conftest.$ac_objext; then :
  1523. ac_retval=0
  1524. else
  1525. $as_echo "$as_me: failed program was:" >&5
  1526. sed 's/^/| /' conftest.$ac_ext >&5
  1527. ac_retval=1
  1528. fi
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. as_fn_set_status $ac_retval
  1531. } # ac_fn_c_try_compile
  1532. # ac_fn_c_try_cpp LINENO
  1533. # ----------------------
  1534. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1535. ac_fn_c_try_cpp ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } > conftest.i && {
  1554. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1555. test ! -s conftest.err
  1556. }; then :
  1557. ac_retval=0
  1558. else
  1559. $as_echo "$as_me: failed program was:" >&5
  1560. sed 's/^/| /' conftest.$ac_ext >&5
  1561. ac_retval=1
  1562. fi
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_c_try_cpp
  1566. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1567. # -------------------------------------------------------
  1568. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1569. # the include files in INCLUDES and setting the cache variable VAR
  1570. # accordingly.
  1571. ac_fn_c_check_header_mongrel ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. if eval \${$3+:} false; then :
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1576. $as_echo_n "checking for $2... " >&6; }
  1577. if eval \${$3+:} false; then :
  1578. $as_echo_n "(cached) " >&6
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. else
  1584. # Is the header compilable?
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1586. $as_echo_n "checking $2 usability... " >&6; }
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. #include <$2>
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. ac_header_compiler=yes
  1594. else
  1595. ac_header_compiler=no
  1596. fi
  1597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1599. $as_echo "$ac_header_compiler" >&6; }
  1600. # Is the header present?
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1602. $as_echo_n "checking $2 presence... " >&6; }
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. #include <$2>
  1606. _ACEOF
  1607. if ac_fn_c_try_cpp "$LINENO"; then :
  1608. ac_header_preproc=yes
  1609. else
  1610. ac_header_preproc=no
  1611. fi
  1612. rm -f conftest.err conftest.i conftest.$ac_ext
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1614. $as_echo "$ac_header_preproc" >&6; }
  1615. # So? What about this header?
  1616. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1617. yes:no: )
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1619. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1621. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1622. ;;
  1623. no:yes:* )
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1625. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1627. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1629. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1631. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1633. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1634. ;;
  1635. esac
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if eval \${$3+:} false; then :
  1639. $as_echo_n "(cached) " >&6
  1640. else
  1641. eval "$3=\$ac_header_compiler"
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. fi
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. } # ac_fn_c_check_header_mongrel
  1649. # ac_fn_c_try_run LINENO
  1650. # ----------------------
  1651. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1652. # that executables *can* be run.
  1653. ac_fn_c_try_run ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. if { { ac_try="$ac_link"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_link") 2>&5
  1664. ac_status=$?
  1665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1666. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1667. { { case "(($ac_try" in
  1668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1669. *) ac_try_echo=$ac_try;;
  1670. esac
  1671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1672. $as_echo "$ac_try_echo"; } >&5
  1673. (eval "$ac_try") 2>&5
  1674. ac_status=$?
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; }; }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: program exited with status $ac_status" >&5
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=$ac_status
  1683. fi
  1684. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_c_try_run
  1688. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1689. # -------------------------------------------------------
  1690. # Tests whether HEADER exists and can be compiled using the include files in
  1691. # INCLUDES, setting the cache variable VAR accordingly.
  1692. ac_fn_c_check_header_compile ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if eval \${$3+:} false; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end confdefs.h. */
  1702. $4
  1703. #include <$2>
  1704. _ACEOF
  1705. if ac_fn_c_try_compile "$LINENO"; then :
  1706. eval "$3=yes"
  1707. else
  1708. eval "$3=no"
  1709. fi
  1710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1711. fi
  1712. eval ac_res=\$$3
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1714. $as_echo "$ac_res" >&6; }
  1715. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1716. } # ac_fn_c_check_header_compile
  1717. # ac_fn_c_try_link LINENO
  1718. # -----------------------
  1719. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1720. ac_fn_c_try_link ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. rm -f conftest.$ac_objext conftest$ac_exeext
  1724. if { { ac_try="$ac_link"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_link") 2>conftest.err
  1732. ac_status=$?
  1733. if test -s conftest.err; then
  1734. grep -v '^ *+' conftest.err >conftest.er1
  1735. cat conftest.er1 >&5
  1736. mv -f conftest.er1 conftest.err
  1737. fi
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } && {
  1740. test -z "$ac_c_werror_flag" ||
  1741. test ! -s conftest.err
  1742. } && test -s conftest$ac_exeext && {
  1743. test "$cross_compiling" = yes ||
  1744. test -x conftest$ac_exeext
  1745. }; then :
  1746. ac_retval=0
  1747. else
  1748. $as_echo "$as_me: failed program was:" >&5
  1749. sed 's/^/| /' conftest.$ac_ext >&5
  1750. ac_retval=1
  1751. fi
  1752. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1753. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1754. # interfere with the next link command; also delete a directory that is
  1755. # left behind by Apple's compiler. We do this before executing the actions.
  1756. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758. as_fn_set_status $ac_retval
  1759. } # ac_fn_c_try_link
  1760. # ac_fn_c_check_func LINENO FUNC VAR
  1761. # ----------------------------------
  1762. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1763. ac_fn_c_check_func ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1767. $as_echo_n "checking for $2... " >&6; }
  1768. if eval \${$3+:} false; then :
  1769. $as_echo_n "(cached) " >&6
  1770. else
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1774. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1775. #define $2 innocuous_$2
  1776. /* System header to define __stub macros and hopefully few prototypes,
  1777. which can conflict with char $2 (); below.
  1778. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1779. <limits.h> exists even on freestanding compilers. */
  1780. #ifdef __STDC__
  1781. # include <limits.h>
  1782. #else
  1783. # include <assert.h>
  1784. #endif
  1785. #undef $2
  1786. /* Override any GCC internal prototype to avoid an error.
  1787. Use char because int might match the return type of a GCC
  1788. builtin and then its argument prototype would still apply. */
  1789. #ifdef __cplusplus
  1790. extern "C"
  1791. #endif
  1792. char $2 ();
  1793. /* The GNU C library defines this for functions which it implements
  1794. to always fail with ENOSYS. Some functions are actually named
  1795. something starting with __ and the normal name is an alias. */
  1796. #if defined __stub_$2 || defined __stub___$2
  1797. choke me
  1798. #endif
  1799. int
  1800. main ()
  1801. {
  1802. return $2 ();
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_link "$LINENO"; then :
  1808. eval "$3=yes"
  1809. else
  1810. eval "$3=no"
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext \
  1813. conftest$ac_exeext conftest.$ac_ext
  1814. fi
  1815. eval ac_res=\$$3
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1817. $as_echo "$ac_res" >&6; }
  1818. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1819. } # ac_fn_c_check_func
  1820. # ac_fn_cxx_try_cpp LINENO
  1821. # ------------------------
  1822. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1823. ac_fn_cxx_try_cpp ()
  1824. {
  1825. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1826. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1827. case "(($ac_try" in
  1828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1829. *) ac_try_echo=$ac_try;;
  1830. esac
  1831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1832. $as_echo "$ac_try_echo"; } >&5
  1833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1834. ac_status=$?
  1835. if test -s conftest.err; then
  1836. grep -v '^ *+' conftest.err >conftest.er1
  1837. cat conftest.er1 >&5
  1838. mv -f conftest.er1 conftest.err
  1839. fi
  1840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1841. test $ac_status = 0; } > conftest.i && {
  1842. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1843. test ! -s conftest.err
  1844. }; then :
  1845. ac_retval=0
  1846. else
  1847. $as_echo "$as_me: failed program was:" >&5
  1848. sed 's/^/| /' conftest.$ac_ext >&5
  1849. ac_retval=1
  1850. fi
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_cxx_try_cpp
  1854. # ac_fn_cxx_try_link LINENO
  1855. # -------------------------
  1856. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1857. ac_fn_cxx_try_link ()
  1858. {
  1859. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860. rm -f conftest.$ac_objext conftest$ac_exeext
  1861. if { { ac_try="$ac_link"
  1862. case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867. $as_echo "$ac_try_echo"; } >&5
  1868. (eval "$ac_link") 2>conftest.err
  1869. ac_status=$?
  1870. if test -s conftest.err; then
  1871. grep -v '^ *+' conftest.err >conftest.er1
  1872. cat conftest.er1 >&5
  1873. mv -f conftest.er1 conftest.err
  1874. fi
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } && {
  1877. test -z "$ac_cxx_werror_flag" ||
  1878. test ! -s conftest.err
  1879. } && test -s conftest$ac_exeext && {
  1880. test "$cross_compiling" = yes ||
  1881. test -x conftest$ac_exeext
  1882. }; then :
  1883. ac_retval=0
  1884. else
  1885. $as_echo "$as_me: failed program was:" >&5
  1886. sed 's/^/| /' conftest.$ac_ext >&5
  1887. ac_retval=1
  1888. fi
  1889. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1890. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1891. # interfere with the next link command; also delete a directory that is
  1892. # left behind by Apple's compiler. We do this before executing the actions.
  1893. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_cxx_try_link
  1897. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1898. # -------------------------------------------
  1899. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1900. # variable VAR accordingly.
  1901. ac_fn_c_check_type ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1905. $as_echo_n "checking for $2... " >&6; }
  1906. if eval \${$3+:} false; then :
  1907. $as_echo_n "(cached) " >&6
  1908. else
  1909. eval "$3=no"
  1910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1911. /* end confdefs.h. */
  1912. $4
  1913. int
  1914. main ()
  1915. {
  1916. if (sizeof ($2))
  1917. return 0;
  1918. ;
  1919. return 0;
  1920. }
  1921. _ACEOF
  1922. if ac_fn_c_try_compile "$LINENO"; then :
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. $4
  1926. int
  1927. main ()
  1928. {
  1929. if (sizeof (($2)))
  1930. return 0;
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. if ac_fn_c_try_compile "$LINENO"; then :
  1936. else
  1937. eval "$3=yes"
  1938. fi
  1939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1942. fi
  1943. eval ac_res=\$$3
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1945. $as_echo "$ac_res" >&6; }
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. } # ac_fn_c_check_type
  1948. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1949. # --------------------------------------------
  1950. # Tries to find the compile-time value of EXPR in a program that includes
  1951. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1952. # computed
  1953. ac_fn_c_compute_int ()
  1954. {
  1955. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1956. if test "$cross_compiling" = yes; then
  1957. # Depending upon the size, compute the lo and hi bounds.
  1958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1959. /* end confdefs.h. */
  1960. $4
  1961. int
  1962. main ()
  1963. {
  1964. static int test_array [1 - 2 * !(($2) >= 0)];
  1965. test_array [0] = 0;
  1966. return test_array [0];
  1967. ;
  1968. return 0;
  1969. }
  1970. _ACEOF
  1971. if ac_fn_c_try_compile "$LINENO"; then :
  1972. ac_lo=0 ac_mid=0
  1973. while :; do
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h. */
  1976. $4
  1977. int
  1978. main ()
  1979. {
  1980. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1981. test_array [0] = 0;
  1982. return test_array [0];
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. if ac_fn_c_try_compile "$LINENO"; then :
  1988. ac_hi=$ac_mid; break
  1989. else
  1990. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1991. if test $ac_lo -le $ac_mid; then
  1992. ac_lo= ac_hi=
  1993. break
  1994. fi
  1995. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. done
  1999. else
  2000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2001. /* end confdefs.h. */
  2002. $4
  2003. int
  2004. main ()
  2005. {
  2006. static int test_array [1 - 2 * !(($2) < 0)];
  2007. test_array [0] = 0;
  2008. return test_array [0];
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_compile "$LINENO"; then :
  2014. ac_hi=-1 ac_mid=-1
  2015. while :; do
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $4
  2019. int
  2020. main ()
  2021. {
  2022. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2023. test_array [0] = 0;
  2024. return test_array [0];
  2025. ;
  2026. return 0;
  2027. }
  2028. _ACEOF
  2029. if ac_fn_c_try_compile "$LINENO"; then :
  2030. ac_lo=$ac_mid; break
  2031. else
  2032. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2033. if test $ac_mid -le $ac_hi; then
  2034. ac_lo= ac_hi=
  2035. break
  2036. fi
  2037. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2038. fi
  2039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2040. done
  2041. else
  2042. ac_lo= ac_hi=
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. fi
  2046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2047. # Binary search between lo and hi bounds.
  2048. while test "x$ac_lo" != "x$ac_hi"; do
  2049. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main ()
  2055. {
  2056. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2057. test_array [0] = 0;
  2058. return test_array [0];
  2059. ;
  2060. return 0;
  2061. }
  2062. _ACEOF
  2063. if ac_fn_c_try_compile "$LINENO"; then :
  2064. ac_hi=$ac_mid
  2065. else
  2066. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2067. fi
  2068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2069. done
  2070. case $ac_lo in #((
  2071. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2072. '') ac_retval=1 ;;
  2073. esac
  2074. else
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. $4
  2078. static long int longval () { return $2; }
  2079. static unsigned long int ulongval () { return $2; }
  2080. #include <stdio.h>
  2081. #include <stdlib.h>
  2082. int
  2083. main ()
  2084. {
  2085. FILE *f = fopen ("conftest.val", "w");
  2086. if (! f)
  2087. return 1;
  2088. if (($2) < 0)
  2089. {
  2090. long int i = longval ();
  2091. if (i != ($2))
  2092. return 1;
  2093. fprintf (f, "%ld", i);
  2094. }
  2095. else
  2096. {
  2097. unsigned long int i = ulongval ();
  2098. if (i != ($2))
  2099. return 1;
  2100. fprintf (f, "%lu", i);
  2101. }
  2102. /* Do not output a trailing newline, as this causes \r\n confusion
  2103. on some platforms. */
  2104. return ferror (f) || fclose (f) != 0;
  2105. ;
  2106. return 0;
  2107. }
  2108. _ACEOF
  2109. if ac_fn_c_try_run "$LINENO"; then :
  2110. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2111. else
  2112. ac_retval=1
  2113. fi
  2114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2115. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2116. rm -f conftest.val
  2117. fi
  2118. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2119. as_fn_set_status $ac_retval
  2120. } # ac_fn_c_compute_int
  2121. cat >config.log <<_ACEOF
  2122. This file contains any messages produced by compilers while
  2123. running configure, to aid debugging if configure makes a mistake.
  2124. It was created by $as_me, which was
  2125. generated by GNU Autoconf 2.69. Invocation command line was
  2126. $ $0 $@
  2127. _ACEOF
  2128. exec 5>>config.log
  2129. {
  2130. cat <<_ASUNAME
  2131. ## --------- ##
  2132. ## Platform. ##
  2133. ## --------- ##
  2134. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2135. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2136. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2137. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2138. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2139. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2140. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2141. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2142. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2143. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2144. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2145. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2146. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2147. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2148. _ASUNAME
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. $as_echo "PATH: $as_dir"
  2155. done
  2156. IFS=$as_save_IFS
  2157. } >&5
  2158. cat >&5 <<_ACEOF
  2159. ## ----------- ##
  2160. ## Core tests. ##
  2161. ## ----------- ##
  2162. _ACEOF
  2163. # Keep a trace of the command line.
  2164. # Strip out --no-create and --no-recursion so they do not pile up.
  2165. # Strip out --silent because we don't want to record it for future runs.
  2166. # Also quote any args containing shell meta-characters.
  2167. # Make two passes to allow for proper duplicate-argument suppression.
  2168. ac_configure_args=
  2169. ac_configure_args0=
  2170. ac_configure_args1=
  2171. ac_must_keep_next=false
  2172. for ac_pass in 1 2
  2173. do
  2174. for ac_arg
  2175. do
  2176. case $ac_arg in
  2177. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2179. | -silent | --silent | --silen | --sile | --sil)
  2180. continue ;;
  2181. *\'*)
  2182. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2183. esac
  2184. case $ac_pass in
  2185. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2186. 2)
  2187. as_fn_append ac_configure_args1 " '$ac_arg'"
  2188. if test $ac_must_keep_next = true; then
  2189. ac_must_keep_next=false # Got value, back to normal.
  2190. else
  2191. case $ac_arg in
  2192. *=* | --config-cache | -C | -disable-* | --disable-* \
  2193. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2194. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2195. | -with-* | --with-* | -without-* | --without-* | --x)
  2196. case "$ac_configure_args0 " in
  2197. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2198. esac
  2199. ;;
  2200. -* ) ac_must_keep_next=true ;;
  2201. esac
  2202. fi
  2203. as_fn_append ac_configure_args " '$ac_arg'"
  2204. ;;
  2205. esac
  2206. done
  2207. done
  2208. { ac_configure_args0=; unset ac_configure_args0;}
  2209. { ac_configure_args1=; unset ac_configure_args1;}
  2210. # When interrupted or exit'd, cleanup temporary files, and complete
  2211. # config.log. We remove comments because anyway the quotes in there
  2212. # would cause problems or look ugly.
  2213. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2214. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2215. trap 'exit_status=$?
  2216. # Save into config.log some information that might help in debugging.
  2217. {
  2218. echo
  2219. $as_echo "## ---------------- ##
  2220. ## Cache variables. ##
  2221. ## ---------------- ##"
  2222. echo
  2223. # The following way of writing the cache mishandles newlines in values,
  2224. (
  2225. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2226. eval ac_val=\$$ac_var
  2227. case $ac_val in #(
  2228. *${as_nl}*)
  2229. case $ac_var in #(
  2230. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2231. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2232. esac
  2233. case $ac_var in #(
  2234. _ | IFS | as_nl) ;; #(
  2235. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2236. *) { eval $ac_var=; unset $ac_var;} ;;
  2237. esac ;;
  2238. esac
  2239. done
  2240. (set) 2>&1 |
  2241. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2242. *${as_nl}ac_space=\ *)
  2243. sed -n \
  2244. "s/'\''/'\''\\\\'\'''\''/g;
  2245. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2246. ;; #(
  2247. *)
  2248. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2249. ;;
  2250. esac |
  2251. sort
  2252. )
  2253. echo
  2254. $as_echo "## ----------------- ##
  2255. ## Output variables. ##
  2256. ## ----------------- ##"
  2257. echo
  2258. for ac_var in $ac_subst_vars
  2259. do
  2260. eval ac_val=\$$ac_var
  2261. case $ac_val in
  2262. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2263. esac
  2264. $as_echo "$ac_var='\''$ac_val'\''"
  2265. done | sort
  2266. echo
  2267. if test -n "$ac_subst_files"; then
  2268. $as_echo "## ------------------- ##
  2269. ## File substitutions. ##
  2270. ## ------------------- ##"
  2271. echo
  2272. for ac_var in $ac_subst_files
  2273. do
  2274. eval ac_val=\$$ac_var
  2275. case $ac_val in
  2276. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2277. esac
  2278. $as_echo "$ac_var='\''$ac_val'\''"
  2279. done | sort
  2280. echo
  2281. fi
  2282. if test -s confdefs.h; then
  2283. $as_echo "## ----------- ##
  2284. ## confdefs.h. ##
  2285. ## ----------- ##"
  2286. echo
  2287. cat confdefs.h
  2288. echo
  2289. fi
  2290. test "$ac_signal" != 0 &&
  2291. $as_echo "$as_me: caught signal $ac_signal"
  2292. $as_echo "$as_me: exit $exit_status"
  2293. } >&5
  2294. rm -f core *.core core.conftest.* &&
  2295. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2296. exit $exit_status
  2297. ' 0
  2298. for ac_signal in 1 2 13 15; do
  2299. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2300. done
  2301. ac_signal=0
  2302. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2303. rm -f -r conftest* confdefs.h
  2304. $as_echo "/* confdefs.h */" > confdefs.h
  2305. # Predefined preprocessor variables.
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_NAME "$PACKAGE_NAME"
  2308. _ACEOF
  2309. cat >>confdefs.h <<_ACEOF
  2310. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2311. _ACEOF
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2314. _ACEOF
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_STRING "$PACKAGE_STRING"
  2317. _ACEOF
  2318. cat >>confdefs.h <<_ACEOF
  2319. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2320. _ACEOF
  2321. cat >>confdefs.h <<_ACEOF
  2322. #define PACKAGE_URL "$PACKAGE_URL"
  2323. _ACEOF
  2324. # Let the site file select an alternate cache file if it wants to.
  2325. # Prefer an explicitly selected file to automatically selected ones.
  2326. ac_site_file1=NONE
  2327. ac_site_file2=NONE
  2328. if test -n "$CONFIG_SITE"; then
  2329. # We do not want a PATH search for config.site.
  2330. case $CONFIG_SITE in #((
  2331. -*) ac_site_file1=./$CONFIG_SITE;;
  2332. */*) ac_site_file1=$CONFIG_SITE;;
  2333. *) ac_site_file1=./$CONFIG_SITE;;
  2334. esac
  2335. elif test "x$prefix" != xNONE; then
  2336. ac_site_file1=$prefix/share/config.site
  2337. ac_site_file2=$prefix/etc/config.site
  2338. else
  2339. ac_site_file1=$ac_default_prefix/share/config.site
  2340. ac_site_file2=$ac_default_prefix/etc/config.site
  2341. fi
  2342. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2343. do
  2344. test "x$ac_site_file" = xNONE && continue
  2345. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2347. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2348. sed 's/^/| /' "$ac_site_file" >&5
  2349. . "$ac_site_file" \
  2350. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2351. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2352. as_fn_error $? "failed to load site script $ac_site_file
  2353. See \`config.log' for more details" "$LINENO" 5; }
  2354. fi
  2355. done
  2356. if test -r "$cache_file"; then
  2357. # Some versions of bash will fail to source /dev/null (special files
  2358. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2359. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2361. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2362. case $cache_file in
  2363. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2364. *) . "./$cache_file";;
  2365. esac
  2366. fi
  2367. else
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2369. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2370. >$cache_file
  2371. fi
  2372. as_fn_append ac_header_list " stdlib.h"
  2373. as_fn_append ac_header_list " unistd.h"
  2374. as_fn_append ac_header_list " sys/param.h"
  2375. # Check that the precious variables saved in the cache have kept the same
  2376. # value.
  2377. ac_cache_corrupted=false
  2378. for ac_var in $ac_precious_vars; do
  2379. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2380. eval ac_new_set=\$ac_env_${ac_var}_set
  2381. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2382. eval ac_new_val=\$ac_env_${ac_var}_value
  2383. case $ac_old_set,$ac_new_set in
  2384. set,)
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2386. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2387. ac_cache_corrupted=: ;;
  2388. ,set)
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2390. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2391. ac_cache_corrupted=: ;;
  2392. ,);;
  2393. *)
  2394. if test "x$ac_old_val" != "x$ac_new_val"; then
  2395. # differences in whitespace do not lead to failure.
  2396. ac_old_val_w=`echo x $ac_old_val`
  2397. ac_new_val_w=`echo x $ac_new_val`
  2398. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2401. ac_cache_corrupted=:
  2402. else
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2404. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2405. eval $ac_var=\$ac_old_val
  2406. fi
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2408. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2410. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2411. fi;;
  2412. esac
  2413. # Pass precious variables to config.status.
  2414. if test "$ac_new_set" = set; then
  2415. case $ac_new_val in
  2416. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2417. *) ac_arg=$ac_var=$ac_new_val ;;
  2418. esac
  2419. case " $ac_configure_args " in
  2420. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2421. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2422. esac
  2423. fi
  2424. done
  2425. if $ac_cache_corrupted; then
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2429. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2430. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2431. fi
  2432. ## -------------------- ##
  2433. ## Main body of script. ##
  2434. ## -------------------- ##
  2435. ac_ext=c
  2436. ac_cpp='$CPP $CPPFLAGS'
  2437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2440. am__api_version='1.16'
  2441. ac_aux_dir=
  2442. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2443. if test -f "$ac_dir/install-sh"; then
  2444. ac_aux_dir=$ac_dir
  2445. ac_install_sh="$ac_aux_dir/install-sh -c"
  2446. break
  2447. elif test -f "$ac_dir/install.sh"; then
  2448. ac_aux_dir=$ac_dir
  2449. ac_install_sh="$ac_aux_dir/install.sh -c"
  2450. break
  2451. elif test -f "$ac_dir/shtool"; then
  2452. ac_aux_dir=$ac_dir
  2453. ac_install_sh="$ac_aux_dir/shtool install -c"
  2454. break
  2455. fi
  2456. done
  2457. if test -z "$ac_aux_dir"; then
  2458. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2459. fi
  2460. # These three variables are undocumented and unsupported,
  2461. # and are intended to be withdrawn in a future Autoconf release.
  2462. # They can cause serious problems if a builder's source tree is in a directory
  2463. # whose full name contains unusual characters.
  2464. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2465. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2466. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2467. # Find a good install program. We prefer a C program (faster),
  2468. # so one script is as good as another. But avoid the broken or
  2469. # incompatible versions:
  2470. # SysV /etc/install, /usr/sbin/install
  2471. # SunOS /usr/etc/install
  2472. # IRIX /sbin/install
  2473. # AIX /bin/install
  2474. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2475. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2476. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2477. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2478. # OS/2's system install, which has a completely different semantic
  2479. # ./install, which can be erroneously created by make from ./install.sh.
  2480. # Reject install programs that cannot install multiple files.
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2482. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2483. if test -z "$INSTALL"; then
  2484. if ${ac_cv_path_install+:} false; then :
  2485. $as_echo_n "(cached) " >&6
  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. # Account for people who put trailing slashes in PATH elements.
  2493. case $as_dir/ in #((
  2494. ./ | .// | /[cC]/* | \
  2495. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2496. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2497. /usr/ucb/* ) ;;
  2498. *)
  2499. # OSF1 and SCO ODT 3.0 have their own names for install.
  2500. # Don't use installbsd from OSF since it installs stuff as root
  2501. # by default.
  2502. for ac_prog in ginstall scoinst install; do
  2503. for ac_exec_ext in '' $ac_executable_extensions; do
  2504. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2505. if test $ac_prog = install &&
  2506. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2507. # AIX install. It has an incompatible calling convention.
  2508. :
  2509. elif test $ac_prog = install &&
  2510. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2511. # program-specific install script used by HP pwplus--don't use.
  2512. :
  2513. else
  2514. rm -rf conftest.one conftest.two conftest.dir
  2515. echo one > conftest.one
  2516. echo two > conftest.two
  2517. mkdir conftest.dir
  2518. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2519. test -s conftest.one && test -s conftest.two &&
  2520. test -s conftest.dir/conftest.one &&
  2521. test -s conftest.dir/conftest.two
  2522. then
  2523. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2524. break 3
  2525. fi
  2526. fi
  2527. fi
  2528. done
  2529. done
  2530. ;;
  2531. esac
  2532. done
  2533. IFS=$as_save_IFS
  2534. rm -rf conftest.one conftest.two conftest.dir
  2535. fi
  2536. if test "${ac_cv_path_install+set}" = set; then
  2537. INSTALL=$ac_cv_path_install
  2538. else
  2539. # As a last resort, use the slow shell script. Don't cache a
  2540. # value for INSTALL within a source directory, because that will
  2541. # break other packages using the cache if that directory is
  2542. # removed, or if the value is a relative name.
  2543. INSTALL=$ac_install_sh
  2544. fi
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2547. $as_echo "$INSTALL" >&6; }
  2548. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2549. # It thinks the first close brace ends the variable substitution.
  2550. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2551. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2552. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2554. $as_echo_n "checking whether build environment is sane... " >&6; }
  2555. # Reject unsafe characters in $srcdir or the absolute working directory
  2556. # name. Accept space and tab only in the latter.
  2557. am_lf='
  2558. '
  2559. case `pwd` in
  2560. *[\\\"\#\$\&\'\`$am_lf]*)
  2561. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2562. esac
  2563. case $srcdir in
  2564. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2565. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2566. esac
  2567. # Do 'set' in a subshell so we don't clobber the current shell's
  2568. # arguments. Must try -L first in case configure is actually a
  2569. # symlink; some systems play weird games with the mod time of symlinks
  2570. # (eg FreeBSD returns the mod time of the symlink's containing
  2571. # directory).
  2572. if (
  2573. am_has_slept=no
  2574. for am_try in 1 2; do
  2575. echo "timestamp, slept: $am_has_slept" > conftest.file
  2576. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2577. if test "$*" = "X"; then
  2578. # -L didn't work.
  2579. set X `ls -t "$srcdir/configure" conftest.file`
  2580. fi
  2581. if test "$*" != "X $srcdir/configure conftest.file" \
  2582. && test "$*" != "X conftest.file $srcdir/configure"; then
  2583. # If neither matched, then we have a broken ls. This can happen
  2584. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2585. # broken ls alias from the environment. This has actually
  2586. # happened. Such a system could not be considered "sane".
  2587. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2588. alias in your environment" "$LINENO" 5
  2589. fi
  2590. if test "$2" = conftest.file || test $am_try -eq 2; then
  2591. break
  2592. fi
  2593. # Just in case.
  2594. sleep 1
  2595. am_has_slept=yes
  2596. done
  2597. test "$2" = conftest.file
  2598. )
  2599. then
  2600. # Ok.
  2601. :
  2602. else
  2603. as_fn_error $? "newly created file is older than distributed files!
  2604. Check your system clock" "$LINENO" 5
  2605. fi
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2607. $as_echo "yes" >&6; }
  2608. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2609. # generated files are strictly newer.
  2610. am_sleep_pid=
  2611. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2612. ( sleep 1 ) &
  2613. am_sleep_pid=$!
  2614. fi
  2615. rm -f conftest.file
  2616. test "$program_prefix" != NONE &&
  2617. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2618. # Use a double $ so make ignores it.
  2619. test "$program_suffix" != NONE &&
  2620. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2621. # Double any \ or $.
  2622. # By default was `s,x,x', remove it if useless.
  2623. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2624. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2625. # Expand $ac_aux_dir to an absolute path.
  2626. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2627. if test x"${MISSING+set}" != xset; then
  2628. case $am_aux_dir in
  2629. *\ * | *\ *)
  2630. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2631. *)
  2632. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2633. esac
  2634. fi
  2635. # Use eval to expand $SHELL
  2636. if eval "$MISSING --is-lightweight"; then
  2637. am_missing_run="$MISSING "
  2638. else
  2639. am_missing_run=
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2641. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2642. fi
  2643. if test x"${install_sh+set}" != xset; then
  2644. case $am_aux_dir in
  2645. *\ * | *\ *)
  2646. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2647. *)
  2648. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2649. esac
  2650. fi
  2651. # Installed binaries are usually stripped using 'strip' when the user
  2652. # run "make install-strip". However 'strip' might not be the right
  2653. # tool to use in cross-compilation environments, therefore Automake
  2654. # will honor the 'STRIP' environment variable to overrule this program.
  2655. if test "$cross_compiling" != no; then
  2656. if test -n "$ac_tool_prefix"; then
  2657. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2658. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if ${ac_cv_prog_STRIP+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$STRIP"; then
  2665. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. STRIP=$ac_cv_prog_STRIP
  2684. if test -n "$STRIP"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2686. $as_echo "$STRIP" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. fi
  2692. if test -z "$ac_cv_prog_STRIP"; then
  2693. ac_ct_STRIP=$STRIP
  2694. # Extract the first word of "strip", so it can be a program name with args.
  2695. set dummy strip; ac_word=$2
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2697. $as_echo_n "checking for $ac_word... " >&6; }
  2698. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. if test -n "$ac_ct_STRIP"; then
  2702. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2703. else
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707. IFS=$as_save_IFS
  2708. test -z "$as_dir" && as_dir=.
  2709. for ac_exec_ext in '' $ac_executable_extensions; do
  2710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2711. ac_cv_prog_ac_ct_STRIP="strip"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. fi
  2719. fi
  2720. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2721. if test -n "$ac_ct_STRIP"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2723. $as_echo "$ac_ct_STRIP" >&6; }
  2724. else
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728. if test "x$ac_ct_STRIP" = x; then
  2729. STRIP=":"
  2730. else
  2731. case $cross_compiling:$ac_tool_warned in
  2732. yes:)
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2735. ac_tool_warned=yes ;;
  2736. esac
  2737. STRIP=$ac_ct_STRIP
  2738. fi
  2739. else
  2740. STRIP="$ac_cv_prog_STRIP"
  2741. fi
  2742. fi
  2743. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2745. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2746. if test -z "$MKDIR_P"; then
  2747. if ${ac_cv_path_mkdir+:} false; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2751. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2752. do
  2753. IFS=$as_save_IFS
  2754. test -z "$as_dir" && as_dir=.
  2755. for ac_prog in mkdir gmkdir; do
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2758. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2759. 'mkdir (GNU coreutils) '* | \
  2760. 'mkdir (coreutils) '* | \
  2761. 'mkdir (fileutils) '4.1*)
  2762. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2763. break 3;;
  2764. esac
  2765. done
  2766. done
  2767. done
  2768. IFS=$as_save_IFS
  2769. fi
  2770. test -d ./--version && rmdir ./--version
  2771. if test "${ac_cv_path_mkdir+set}" = set; then
  2772. MKDIR_P="$ac_cv_path_mkdir -p"
  2773. else
  2774. # As a last resort, use the slow shell script. Don't cache a
  2775. # value for MKDIR_P within a source directory, because that will
  2776. # break other packages using the cache if that directory is
  2777. # removed, or if the value is a relative name.
  2778. MKDIR_P="$ac_install_sh -d"
  2779. fi
  2780. fi
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2782. $as_echo "$MKDIR_P" >&6; }
  2783. for ac_prog in gawk mawk nawk awk
  2784. do
  2785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2786. set dummy $ac_prog; ac_word=$2
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2788. $as_echo_n "checking for $ac_word... " >&6; }
  2789. if ${ac_cv_prog_AWK+:} false; then :
  2790. $as_echo_n "(cached) " >&6
  2791. else
  2792. if test -n "$AWK"; then
  2793. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2794. else
  2795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2796. for as_dir in $PATH
  2797. do
  2798. IFS=$as_save_IFS
  2799. test -z "$as_dir" && as_dir=.
  2800. for ac_exec_ext in '' $ac_executable_extensions; do
  2801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2802. ac_cv_prog_AWK="$ac_prog"
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2804. break 2
  2805. fi
  2806. done
  2807. done
  2808. IFS=$as_save_IFS
  2809. fi
  2810. fi
  2811. AWK=$ac_cv_prog_AWK
  2812. if test -n "$AWK"; then
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2814. $as_echo "$AWK" >&6; }
  2815. else
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2817. $as_echo "no" >&6; }
  2818. fi
  2819. test -n "$AWK" && break
  2820. done
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2822. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2823. set x ${MAKE-make}
  2824. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2825. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2826. $as_echo_n "(cached) " >&6
  2827. else
  2828. cat >conftest.make <<\_ACEOF
  2829. SHELL = /bin/sh
  2830. all:
  2831. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2832. _ACEOF
  2833. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2834. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2835. *@@@%%%=?*=@@@%%%*)
  2836. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2837. *)
  2838. eval ac_cv_prog_make_${ac_make}_set=no;;
  2839. esac
  2840. rm -f conftest.make
  2841. fi
  2842. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2844. $as_echo "yes" >&6; }
  2845. SET_MAKE=
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. SET_MAKE="MAKE=${MAKE-make}"
  2850. fi
  2851. rm -rf .tst 2>/dev/null
  2852. mkdir .tst 2>/dev/null
  2853. if test -d .tst; then
  2854. am__leading_dot=.
  2855. else
  2856. am__leading_dot=_
  2857. fi
  2858. rmdir .tst 2>/dev/null
  2859. # Check whether --enable-silent-rules was given.
  2860. if test "${enable_silent_rules+set}" = set; then :
  2861. enableval=$enable_silent_rules;
  2862. fi
  2863. case $enable_silent_rules in # (((
  2864. yes) AM_DEFAULT_VERBOSITY=0;;
  2865. no) AM_DEFAULT_VERBOSITY=1;;
  2866. *) AM_DEFAULT_VERBOSITY=1;;
  2867. esac
  2868. am_make=${MAKE-make}
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2870. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2871. if ${am_cv_make_support_nested_variables+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if $as_echo 'TRUE=$(BAR$(V))
  2875. BAR0=false
  2876. BAR1=true
  2877. V=1
  2878. am__doit:
  2879. @$(TRUE)
  2880. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2881. am_cv_make_support_nested_variables=yes
  2882. else
  2883. am_cv_make_support_nested_variables=no
  2884. fi
  2885. fi
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2887. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2888. if test $am_cv_make_support_nested_variables = yes; then
  2889. AM_V='$(V)'
  2890. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2891. else
  2892. AM_V=$AM_DEFAULT_VERBOSITY
  2893. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2894. fi
  2895. AM_BACKSLASH='\'
  2896. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2897. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2898. # is not polluted with repeated "-I."
  2899. am__isrc=' -I$(srcdir)'
  2900. # test to see if srcdir already configured
  2901. if test -f $srcdir/config.status; then
  2902. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2903. fi
  2904. fi
  2905. # test whether we have cygpath
  2906. if test -z "$CYGPATH_W"; then
  2907. if (cygpath --version) >/dev/null 2>/dev/null; then
  2908. CYGPATH_W='cygpath -w'
  2909. else
  2910. CYGPATH_W=echo
  2911. fi
  2912. fi
  2913. # Define the identity of the package.
  2914. PACKAGE=lostirc
  2915. VERSION=0.4.7pre
  2916. cat >>confdefs.h <<_ACEOF
  2917. #define PACKAGE "$PACKAGE"
  2918. _ACEOF
  2919. cat >>confdefs.h <<_ACEOF
  2920. #define VERSION "$VERSION"
  2921. _ACEOF
  2922. # Some tools Automake needs.
  2923. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2924. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2925. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2926. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2927. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2928. # For better backward compatibility. To be removed once Automake 1.9.x
  2929. # dies out for good. For more background, see:
  2930. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2931. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2932. mkdir_p='$(MKDIR_P)'
  2933. # We need awk for the "check" target (and possibly the TAP driver). The
  2934. # system "awk" is bad on some platforms.
  2935. # Always define AMTAR for backward compatibility. Yes, it's still used
  2936. # in the wild :-( We should find a proper way to deprecate it ...
  2937. AMTAR='$${TAR-tar}'
  2938. # We'll loop over all known methods to create a tar archive until one works.
  2939. _am_tools='gnutar pax cpio none'
  2940. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2941. # POSIX will say in a future version that running "rm -f" with no argument
  2942. # is OK; and we want to be able to make that assumption in our Makefile
  2943. # recipes. So use an aggressive probe to check that the usage we want is
  2944. # actually supported "in the wild" to an acceptable degree.
  2945. # See automake bug#10828.
  2946. # To make any issue more visible, cause the running configure to be aborted
  2947. # by default if the 'rm' program in use doesn't match our expectations; the
  2948. # user can still override this though.
  2949. if rm -f && rm -fr && rm -rf; then : OK; else
  2950. cat >&2 <<'END'
  2951. Oops!
  2952. Your 'rm' program seems unable to run without file operands specified
  2953. on the command line, even when the '-f' option is present. This is contrary
  2954. to the behaviour of most rm programs out there, and not conforming with
  2955. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2956. Please tell bug-automake@gnu.org about your system, including the value
  2957. of your $PATH and any error possibly output before this message. This
  2958. can help us improve future automake versions.
  2959. END
  2960. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2961. echo 'Configuration will proceed anyway, since you have set the' >&2
  2962. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2963. echo >&2
  2964. else
  2965. cat >&2 <<'END'
  2966. Aborting the configuration process, to ensure you take notice of the issue.
  2967. You can download and install GNU coreutils to get an 'rm' implementation
  2968. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2969. If you want to complete the configuration process using your problematic
  2970. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2971. to "yes", and re-run configure.
  2972. END
  2973. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2974. fi
  2975. fi
  2976. ac_config_headers="$ac_config_headers config.h"
  2977. ac_ext=cpp
  2978. ac_cpp='$CXXCPP $CPPFLAGS'
  2979. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2982. if test -z "$CXX"; then
  2983. if test -n "$CCC"; then
  2984. CXX=$CCC
  2985. else
  2986. if test -n "$ac_tool_prefix"; then
  2987. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2988. do
  2989. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2990. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2992. $as_echo_n "checking for $ac_word... " >&6; }
  2993. if ${ac_cv_prog_CXX+:} false; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. if test -n "$CXX"; then
  2997. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2998. else
  2999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3000. for as_dir in $PATH
  3001. do
  3002. IFS=$as_save_IFS
  3003. test -z "$as_dir" && as_dir=.
  3004. for ac_exec_ext in '' $ac_executable_extensions; do
  3005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3006. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3008. break 2
  3009. fi
  3010. done
  3011. done
  3012. IFS=$as_save_IFS
  3013. fi
  3014. fi
  3015. CXX=$ac_cv_prog_CXX
  3016. if test -n "$CXX"; then
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3018. $as_echo "$CXX" >&6; }
  3019. else
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3021. $as_echo "no" >&6; }
  3022. fi
  3023. test -n "$CXX" && break
  3024. done
  3025. fi
  3026. if test -z "$CXX"; then
  3027. ac_ct_CXX=$CXX
  3028. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3029. do
  3030. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3031. set dummy $ac_prog; ac_word=$2
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3033. $as_echo_n "checking for $ac_word... " >&6; }
  3034. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3035. $as_echo_n "(cached) " >&6
  3036. else
  3037. if test -n "$ac_ct_CXX"; then
  3038. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3039. else
  3040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3041. for as_dir in $PATH
  3042. do
  3043. IFS=$as_save_IFS
  3044. test -z "$as_dir" && as_dir=.
  3045. for ac_exec_ext in '' $ac_executable_extensions; do
  3046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3047. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3049. break 2
  3050. fi
  3051. done
  3052. done
  3053. IFS=$as_save_IFS
  3054. fi
  3055. fi
  3056. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3057. if test -n "$ac_ct_CXX"; then
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3059. $as_echo "$ac_ct_CXX" >&6; }
  3060. else
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3062. $as_echo "no" >&6; }
  3063. fi
  3064. test -n "$ac_ct_CXX" && break
  3065. done
  3066. if test "x$ac_ct_CXX" = x; then
  3067. CXX="g++"
  3068. else
  3069. case $cross_compiling:$ac_tool_warned in
  3070. yes:)
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3072. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3073. ac_tool_warned=yes ;;
  3074. esac
  3075. CXX=$ac_ct_CXX
  3076. fi
  3077. fi
  3078. fi
  3079. fi
  3080. # Provide some information about the compiler.
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3082. set X $ac_compile
  3083. ac_compiler=$2
  3084. for ac_option in --version -v -V -qversion; do
  3085. { { ac_try="$ac_compiler $ac_option >&5"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3091. $as_echo "$ac_try_echo"; } >&5
  3092. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3093. ac_status=$?
  3094. if test -s conftest.err; then
  3095. sed '10a\
  3096. ... rest of stderr output deleted ...
  3097. 10q' conftest.err >conftest.er1
  3098. cat conftest.er1 >&5
  3099. fi
  3100. rm -f conftest.er1 conftest.err
  3101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3102. test $ac_status = 0; }
  3103. done
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. ac_clean_files_save=$ac_clean_files
  3114. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3115. # Try to create an executable without -o first, disregard a.out.
  3116. # It will help us diagnose broken compilers, and finding out an intuition
  3117. # of exeext.
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3119. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3120. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3121. # The possible output files:
  3122. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3123. ac_rmfiles=
  3124. for ac_file in $ac_files
  3125. do
  3126. case $ac_file in
  3127. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3128. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3129. esac
  3130. done
  3131. rm -f $ac_rmfiles
  3132. if { { ac_try="$ac_link_default"
  3133. case "(($ac_try" in
  3134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135. *) ac_try_echo=$ac_try;;
  3136. esac
  3137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3138. $as_echo "$ac_try_echo"; } >&5
  3139. (eval "$ac_link_default") 2>&5
  3140. ac_status=$?
  3141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3142. test $ac_status = 0; }; then :
  3143. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3144. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3145. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3146. # so that the user can short-circuit this test for compilers unknown to
  3147. # Autoconf.
  3148. for ac_file in $ac_files ''
  3149. do
  3150. test -f "$ac_file" || continue
  3151. case $ac_file in
  3152. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3153. ;;
  3154. [ab].out )
  3155. # We found the default executable, but exeext='' is most
  3156. # certainly right.
  3157. break;;
  3158. *.* )
  3159. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3160. then :; else
  3161. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3162. fi
  3163. # We set ac_cv_exeext here because the later test for it is not
  3164. # safe: cross compilers may not add the suffix if given an `-o'
  3165. # argument, so we may need to know it at that point already.
  3166. # Even if this section looks crufty: it has the advantage of
  3167. # actually working.
  3168. break;;
  3169. * )
  3170. break;;
  3171. esac
  3172. done
  3173. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3174. else
  3175. ac_file=''
  3176. fi
  3177. if test -z "$ac_file"; then :
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3179. $as_echo "no" >&6; }
  3180. $as_echo "$as_me: failed program was:" >&5
  3181. sed 's/^/| /' conftest.$ac_ext >&5
  3182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. as_fn_error 77 "C++ compiler cannot create executables
  3185. See \`config.log' for more details" "$LINENO" 5; }
  3186. else
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3188. $as_echo "yes" >&6; }
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3191. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3193. $as_echo "$ac_file" >&6; }
  3194. ac_exeext=$ac_cv_exeext
  3195. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3196. ac_clean_files=$ac_clean_files_save
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3198. $as_echo_n "checking for suffix of executables... " >&6; }
  3199. if { { ac_try="$ac_link"
  3200. case "(($ac_try" in
  3201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202. *) ac_try_echo=$ac_try;;
  3203. esac
  3204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3205. $as_echo "$ac_try_echo"; } >&5
  3206. (eval "$ac_link") 2>&5
  3207. ac_status=$?
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3209. test $ac_status = 0; }; then :
  3210. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3211. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3212. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3213. # `rm'.
  3214. for ac_file in conftest.exe conftest conftest.*; do
  3215. test -f "$ac_file" || continue
  3216. case $ac_file in
  3217. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3218. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3219. break;;
  3220. * ) break;;
  3221. esac
  3222. done
  3223. else
  3224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3226. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3227. See \`config.log' for more details" "$LINENO" 5; }
  3228. fi
  3229. rm -f conftest conftest$ac_cv_exeext
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3231. $as_echo "$ac_cv_exeext" >&6; }
  3232. rm -f conftest.$ac_ext
  3233. EXEEXT=$ac_cv_exeext
  3234. ac_exeext=$EXEEXT
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. #include <stdio.h>
  3238. int
  3239. main ()
  3240. {
  3241. FILE *f = fopen ("conftest.out", "w");
  3242. return ferror (f) || fclose (f) != 0;
  3243. ;
  3244. return 0;
  3245. }
  3246. _ACEOF
  3247. ac_clean_files="$ac_clean_files conftest.out"
  3248. # Check that the compiler produces executables we can run. If not, either
  3249. # the compiler is broken, or we cross compile.
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3251. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3252. if test "$cross_compiling" != yes; then
  3253. { { ac_try="$ac_link"
  3254. case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3259. $as_echo "$ac_try_echo"; } >&5
  3260. (eval "$ac_link") 2>&5
  3261. ac_status=$?
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3263. test $ac_status = 0; }
  3264. if { ac_try='./conftest$ac_cv_exeext'
  3265. { { case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_try") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; }; then
  3275. cross_compiling=no
  3276. else
  3277. if test "$cross_compiling" = maybe; then
  3278. cross_compiling=yes
  3279. else
  3280. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3281. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3282. as_fn_error $? "cannot run C++ compiled programs.
  3283. If you meant to cross compile, use \`--host'.
  3284. See \`config.log' for more details" "$LINENO" 5; }
  3285. fi
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3289. $as_echo "$cross_compiling" >&6; }
  3290. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3291. ac_clean_files=$ac_clean_files_save
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3293. $as_echo_n "checking for suffix of object files... " >&6; }
  3294. if ${ac_cv_objext+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3298. /* end confdefs.h. */
  3299. int
  3300. main ()
  3301. {
  3302. ;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. rm -f conftest.o conftest.obj
  3307. if { { ac_try="$ac_compile"
  3308. case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo"; } >&5
  3314. (eval "$ac_compile") 2>&5
  3315. ac_status=$?
  3316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3317. test $ac_status = 0; }; then :
  3318. for ac_file in conftest.o conftest.obj conftest.*; do
  3319. test -f "$ac_file" || continue;
  3320. case $ac_file in
  3321. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3322. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3323. break;;
  3324. esac
  3325. done
  3326. else
  3327. $as_echo "$as_me: failed program was:" >&5
  3328. sed 's/^/| /' conftest.$ac_ext >&5
  3329. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3331. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3332. See \`config.log' for more details" "$LINENO" 5; }
  3333. fi
  3334. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3335. fi
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3337. $as_echo "$ac_cv_objext" >&6; }
  3338. OBJEXT=$ac_cv_objext
  3339. ac_objext=$OBJEXT
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3341. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3342. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. #ifndef __GNUC__
  3351. choke me
  3352. #endif
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_cxx_try_compile "$LINENO"; then :
  3358. ac_compiler_gnu=yes
  3359. else
  3360. ac_compiler_gnu=no
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3366. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3367. if test $ac_compiler_gnu = yes; then
  3368. GXX=yes
  3369. else
  3370. GXX=
  3371. fi
  3372. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3373. ac_save_CXXFLAGS=$CXXFLAGS
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3375. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3376. if ${ac_cv_prog_cxx_g+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3380. ac_cxx_werror_flag=yes
  3381. ac_cv_prog_cxx_g=no
  3382. CXXFLAGS="-g"
  3383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3384. /* end confdefs.h. */
  3385. int
  3386. main ()
  3387. {
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. if ac_fn_cxx_try_compile "$LINENO"; then :
  3393. ac_cv_prog_cxx_g=yes
  3394. else
  3395. CXXFLAGS=""
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. int
  3399. main ()
  3400. {
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. if ac_fn_cxx_try_compile "$LINENO"; then :
  3406. else
  3407. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3408. CXXFLAGS="-g"
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. int
  3412. main ()
  3413. {
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. if ac_fn_cxx_try_compile "$LINENO"; then :
  3419. ac_cv_prog_cxx_g=yes
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3426. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3429. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3430. if test "$ac_test_CXXFLAGS" = set; then
  3431. CXXFLAGS=$ac_save_CXXFLAGS
  3432. elif test $ac_cv_prog_cxx_g = yes; then
  3433. if test "$GXX" = yes; then
  3434. CXXFLAGS="-g -O2"
  3435. else
  3436. CXXFLAGS="-g"
  3437. fi
  3438. else
  3439. if test "$GXX" = yes; then
  3440. CXXFLAGS="-O2"
  3441. else
  3442. CXXFLAGS=
  3443. fi
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. DEPDIR="${am__leading_dot}deps"
  3451. ac_config_commands="$ac_config_commands depfiles"
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3453. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3454. cat > confinc.mk << 'END'
  3455. am__doit:
  3456. @echo this is the am__doit target >confinc.out
  3457. .PHONY: am__doit
  3458. END
  3459. am__include="#"
  3460. am__quote=
  3461. # BSD make does it like this.
  3462. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3463. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3464. echo 'include confinc.mk # ignored' > confmf.GNU
  3465. _am_result=no
  3466. for s in GNU BSD; do
  3467. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3468. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3469. ac_status=$?
  3470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3471. (exit $ac_status); }
  3472. case $?:`cat confinc.out 2>/dev/null` in #(
  3473. '0:this is the am__doit target') :
  3474. case $s in #(
  3475. BSD) :
  3476. am__include='.include' am__quote='"' ;; #(
  3477. *) :
  3478. am__include='include' am__quote='' ;;
  3479. esac ;; #(
  3480. *) :
  3481. ;;
  3482. esac
  3483. if test "$am__include" != "#"; then
  3484. _am_result="yes ($s style)"
  3485. break
  3486. fi
  3487. done
  3488. rm -f confinc.* confmf.*
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3490. $as_echo "${_am_result}" >&6; }
  3491. # Check whether --enable-dependency-tracking was given.
  3492. if test "${enable_dependency_tracking+set}" = set; then :
  3493. enableval=$enable_dependency_tracking;
  3494. fi
  3495. if test "x$enable_dependency_tracking" != xno; then
  3496. am_depcomp="$ac_aux_dir/depcomp"
  3497. AMDEPBACKSLASH='\'
  3498. am__nodep='_no'
  3499. fi
  3500. if test "x$enable_dependency_tracking" != xno; then
  3501. AMDEP_TRUE=
  3502. AMDEP_FALSE='#'
  3503. else
  3504. AMDEP_TRUE='#'
  3505. AMDEP_FALSE=
  3506. fi
  3507. depcc="$CXX" am_compiler_list=
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3509. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3510. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3514. # We make a subdir and do the tests there. Otherwise we can end up
  3515. # making bogus files that we don't know about and never remove. For
  3516. # instance it was reported that on HP-UX the gcc test will end up
  3517. # making a dummy file named 'D' -- because '-MD' means "put the output
  3518. # in D".
  3519. rm -rf conftest.dir
  3520. mkdir conftest.dir
  3521. # Copy depcomp to subdir because otherwise we won't find it if we're
  3522. # using a relative directory.
  3523. cp "$am_depcomp" conftest.dir
  3524. cd conftest.dir
  3525. # We will build objects and dependencies in a subdirectory because
  3526. # it helps to detect inapplicable dependency modes. For instance
  3527. # both Tru64's cc and ICC support -MD to output dependencies as a
  3528. # side effect of compilation, but ICC will put the dependencies in
  3529. # the current directory while Tru64 will put them in the object
  3530. # directory.
  3531. mkdir sub
  3532. am_cv_CXX_dependencies_compiler_type=none
  3533. if test "$am_compiler_list" = ""; then
  3534. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3535. fi
  3536. am__universal=false
  3537. case " $depcc " in #(
  3538. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3539. esac
  3540. for depmode in $am_compiler_list; do
  3541. # Setup a source with many dependencies, because some compilers
  3542. # like to wrap large dependency lists on column 80 (with \), and
  3543. # we should not choose a depcomp mode which is confused by this.
  3544. #
  3545. # We need to recreate these files for each test, as the compiler may
  3546. # overwrite some of them when testing with obscure command lines.
  3547. # This happens at least with the AIX C compiler.
  3548. : > sub/conftest.c
  3549. for i in 1 2 3 4 5 6; do
  3550. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3551. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3552. # Solaris 10 /bin/sh.
  3553. echo '/* dummy */' > sub/conftst$i.h
  3554. done
  3555. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3556. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3557. # mode. It turns out that the SunPro C++ compiler does not properly
  3558. # handle '-M -o', and we need to detect this. Also, some Intel
  3559. # versions had trouble with output in subdirs.
  3560. am__obj=sub/conftest.${OBJEXT-o}
  3561. am__minus_obj="-o $am__obj"
  3562. case $depmode in
  3563. gcc)
  3564. # This depmode causes a compiler race in universal mode.
  3565. test "$am__universal" = false || continue
  3566. ;;
  3567. nosideeffect)
  3568. # After this tag, mechanisms are not by side-effect, so they'll
  3569. # only be used when explicitly requested.
  3570. if test "x$enable_dependency_tracking" = xyes; then
  3571. continue
  3572. else
  3573. break
  3574. fi
  3575. ;;
  3576. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3577. # This compiler won't grok '-c -o', but also, the minuso test has
  3578. # not run yet. These depmodes are late enough in the game, and
  3579. # so weak that their functioning should not be impacted.
  3580. am__obj=conftest.${OBJEXT-o}
  3581. am__minus_obj=
  3582. ;;
  3583. none) break ;;
  3584. esac
  3585. if depmode=$depmode \
  3586. source=sub/conftest.c object=$am__obj \
  3587. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3588. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3589. >/dev/null 2>conftest.err &&
  3590. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3591. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3592. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3593. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3594. # icc doesn't choke on unknown options, it will just issue warnings
  3595. # or remarks (even with -Werror). So we grep stderr for any message
  3596. # that says an option was ignored or not supported.
  3597. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3598. # icc: Command line warning: ignoring option '-M'; no argument required
  3599. # The diagnosis changed in icc 8.0:
  3600. # icc: Command line remark: option '-MP' not supported
  3601. if (grep 'ignoring option' conftest.err ||
  3602. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3603. am_cv_CXX_dependencies_compiler_type=$depmode
  3604. break
  3605. fi
  3606. fi
  3607. done
  3608. cd ..
  3609. rm -rf conftest.dir
  3610. else
  3611. am_cv_CXX_dependencies_compiler_type=none
  3612. fi
  3613. fi
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3615. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3616. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3617. if
  3618. test "x$enable_dependency_tracking" != xno \
  3619. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3620. am__fastdepCXX_TRUE=
  3621. am__fastdepCXX_FALSE='#'
  3622. else
  3623. am__fastdepCXX_TRUE='#'
  3624. am__fastdepCXX_FALSE=
  3625. fi
  3626. ac_ext=c
  3627. ac_cpp='$CPP $CPPFLAGS'
  3628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3631. if test -n "$ac_tool_prefix"; then
  3632. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3633. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3635. $as_echo_n "checking for $ac_word... " >&6; }
  3636. if ${ac_cv_prog_CC+:} false; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. if test -n "$CC"; then
  3640. ac_cv_prog_CC="$CC" # Let the user override the test.
  3641. else
  3642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643. for as_dir in $PATH
  3644. do
  3645. IFS=$as_save_IFS
  3646. test -z "$as_dir" && as_dir=.
  3647. for ac_exec_ext in '' $ac_executable_extensions; do
  3648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3649. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3651. break 2
  3652. fi
  3653. done
  3654. done
  3655. IFS=$as_save_IFS
  3656. fi
  3657. fi
  3658. CC=$ac_cv_prog_CC
  3659. if test -n "$CC"; then
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3661. $as_echo "$CC" >&6; }
  3662. else
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3664. $as_echo "no" >&6; }
  3665. fi
  3666. fi
  3667. if test -z "$ac_cv_prog_CC"; then
  3668. ac_ct_CC=$CC
  3669. # Extract the first word of "gcc", so it can be a program name with args.
  3670. set dummy gcc; ac_word=$2
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3672. $as_echo_n "checking for $ac_word... " >&6; }
  3673. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. if test -n "$ac_ct_CC"; then
  3677. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3678. else
  3679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3680. for as_dir in $PATH
  3681. do
  3682. IFS=$as_save_IFS
  3683. test -z "$as_dir" && as_dir=.
  3684. for ac_exec_ext in '' $ac_executable_extensions; do
  3685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3686. ac_cv_prog_ac_ct_CC="gcc"
  3687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3688. break 2
  3689. fi
  3690. done
  3691. done
  3692. IFS=$as_save_IFS
  3693. fi
  3694. fi
  3695. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3696. if test -n "$ac_ct_CC"; then
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3698. $as_echo "$ac_ct_CC" >&6; }
  3699. else
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3701. $as_echo "no" >&6; }
  3702. fi
  3703. if test "x$ac_ct_CC" = x; then
  3704. CC=""
  3705. else
  3706. case $cross_compiling:$ac_tool_warned in
  3707. yes:)
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3710. ac_tool_warned=yes ;;
  3711. esac
  3712. CC=$ac_ct_CC
  3713. fi
  3714. else
  3715. CC="$ac_cv_prog_CC"
  3716. fi
  3717. if test -z "$CC"; then
  3718. if test -n "$ac_tool_prefix"; then
  3719. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3720. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3722. $as_echo_n "checking for $ac_word... " >&6; }
  3723. if ${ac_cv_prog_CC+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. if test -n "$CC"; then
  3727. ac_cv_prog_CC="$CC" # Let the user override the test.
  3728. else
  3729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3730. for as_dir in $PATH
  3731. do
  3732. IFS=$as_save_IFS
  3733. test -z "$as_dir" && as_dir=.
  3734. for ac_exec_ext in '' $ac_executable_extensions; do
  3735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3736. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3738. break 2
  3739. fi
  3740. done
  3741. done
  3742. IFS=$as_save_IFS
  3743. fi
  3744. fi
  3745. CC=$ac_cv_prog_CC
  3746. if test -n "$CC"; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3748. $as_echo "$CC" >&6; }
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3751. $as_echo "no" >&6; }
  3752. fi
  3753. fi
  3754. fi
  3755. if test -z "$CC"; then
  3756. # Extract the first word of "cc", so it can be a program name with args.
  3757. set dummy cc; ac_word=$2
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3759. $as_echo_n "checking for $ac_word... " >&6; }
  3760. if ${ac_cv_prog_CC+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. if test -n "$CC"; then
  3764. ac_cv_prog_CC="$CC" # Let the user override the test.
  3765. else
  3766. ac_prog_rejected=no
  3767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3768. for as_dir in $PATH
  3769. do
  3770. IFS=$as_save_IFS
  3771. test -z "$as_dir" && as_dir=.
  3772. for ac_exec_ext in '' $ac_executable_extensions; do
  3773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3774. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3775. ac_prog_rejected=yes
  3776. continue
  3777. fi
  3778. ac_cv_prog_CC="cc"
  3779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3780. break 2
  3781. fi
  3782. done
  3783. done
  3784. IFS=$as_save_IFS
  3785. if test $ac_prog_rejected = yes; then
  3786. # We found a bogon in the path, so make sure we never use it.
  3787. set dummy $ac_cv_prog_CC
  3788. shift
  3789. if test $# != 0; then
  3790. # We chose a different compiler from the bogus one.
  3791. # However, it has the same basename, so the bogon will be chosen
  3792. # first if we set CC to just the basename; use the full file name.
  3793. shift
  3794. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3795. fi
  3796. fi
  3797. fi
  3798. fi
  3799. CC=$ac_cv_prog_CC
  3800. if test -n "$CC"; then
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3802. $as_echo "$CC" >&6; }
  3803. else
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3805. $as_echo "no" >&6; }
  3806. fi
  3807. fi
  3808. if test -z "$CC"; then
  3809. if test -n "$ac_tool_prefix"; then
  3810. for ac_prog in cl.exe
  3811. do
  3812. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3813. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if ${ac_cv_prog_CC+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$CC"; then
  3820. ac_cv_prog_CC="$CC" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3829. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. fi
  3837. fi
  3838. CC=$ac_cv_prog_CC
  3839. if test -n "$CC"; then
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3841. $as_echo "$CC" >&6; }
  3842. else
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. fi
  3846. test -n "$CC" && break
  3847. done
  3848. fi
  3849. if test -z "$CC"; then
  3850. ac_ct_CC=$CC
  3851. for ac_prog in cl.exe
  3852. do
  3853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3854. set dummy $ac_prog; ac_word=$2
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3856. $as_echo_n "checking for $ac_word... " >&6; }
  3857. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3858. $as_echo_n "(cached) " >&6
  3859. else
  3860. if test -n "$ac_ct_CC"; then
  3861. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3862. else
  3863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3864. for as_dir in $PATH
  3865. do
  3866. IFS=$as_save_IFS
  3867. test -z "$as_dir" && as_dir=.
  3868. for ac_exec_ext in '' $ac_executable_extensions; do
  3869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3870. ac_cv_prog_ac_ct_CC="$ac_prog"
  3871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3872. break 2
  3873. fi
  3874. done
  3875. done
  3876. IFS=$as_save_IFS
  3877. fi
  3878. fi
  3879. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3880. if test -n "$ac_ct_CC"; then
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3882. $as_echo "$ac_ct_CC" >&6; }
  3883. else
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3885. $as_echo "no" >&6; }
  3886. fi
  3887. test -n "$ac_ct_CC" && break
  3888. done
  3889. if test "x$ac_ct_CC" = x; then
  3890. CC=""
  3891. else
  3892. case $cross_compiling:$ac_tool_warned in
  3893. yes:)
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3896. ac_tool_warned=yes ;;
  3897. esac
  3898. CC=$ac_ct_CC
  3899. fi
  3900. fi
  3901. fi
  3902. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3904. as_fn_error $? "no acceptable C compiler found in \$PATH
  3905. See \`config.log' for more details" "$LINENO" 5; }
  3906. # Provide some information about the compiler.
  3907. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3908. set X $ac_compile
  3909. ac_compiler=$2
  3910. for ac_option in --version -v -V -qversion; do
  3911. { { ac_try="$ac_compiler $ac_option >&5"
  3912. case "(($ac_try" in
  3913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3914. *) ac_try_echo=$ac_try;;
  3915. esac
  3916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3917. $as_echo "$ac_try_echo"; } >&5
  3918. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3919. ac_status=$?
  3920. if test -s conftest.err; then
  3921. sed '10a\
  3922. ... rest of stderr output deleted ...
  3923. 10q' conftest.err >conftest.er1
  3924. cat conftest.er1 >&5
  3925. fi
  3926. rm -f conftest.er1 conftest.err
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3928. test $ac_status = 0; }
  3929. done
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3931. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3932. if ${ac_cv_c_compiler_gnu+:} false; then :
  3933. $as_echo_n "(cached) " >&6
  3934. else
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. int
  3938. main ()
  3939. {
  3940. #ifndef __GNUC__
  3941. choke me
  3942. #endif
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. if ac_fn_c_try_compile "$LINENO"; then :
  3948. ac_compiler_gnu=yes
  3949. else
  3950. ac_compiler_gnu=no
  3951. fi
  3952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3953. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3954. fi
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3956. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3957. if test $ac_compiler_gnu = yes; then
  3958. GCC=yes
  3959. else
  3960. GCC=
  3961. fi
  3962. ac_test_CFLAGS=${CFLAGS+set}
  3963. ac_save_CFLAGS=$CFLAGS
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3965. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3966. if ${ac_cv_prog_cc_g+:} false; then :
  3967. $as_echo_n "(cached) " >&6
  3968. else
  3969. ac_save_c_werror_flag=$ac_c_werror_flag
  3970. ac_c_werror_flag=yes
  3971. ac_cv_prog_cc_g=no
  3972. CFLAGS="-g"
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. int
  3976. main ()
  3977. {
  3978. ;
  3979. return 0;
  3980. }
  3981. _ACEOF
  3982. if ac_fn_c_try_compile "$LINENO"; then :
  3983. ac_cv_prog_cc_g=yes
  3984. else
  3985. CFLAGS=""
  3986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3987. /* end confdefs.h. */
  3988. int
  3989. main ()
  3990. {
  3991. ;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. if ac_fn_c_try_compile "$LINENO"; then :
  3996. else
  3997. ac_c_werror_flag=$ac_save_c_werror_flag
  3998. CFLAGS="-g"
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. int
  4002. main ()
  4003. {
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. if ac_fn_c_try_compile "$LINENO"; then :
  4009. ac_cv_prog_cc_g=yes
  4010. fi
  4011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4012. fi
  4013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4014. fi
  4015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4016. ac_c_werror_flag=$ac_save_c_werror_flag
  4017. fi
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4019. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4020. if test "$ac_test_CFLAGS" = set; then
  4021. CFLAGS=$ac_save_CFLAGS
  4022. elif test $ac_cv_prog_cc_g = yes; then
  4023. if test "$GCC" = yes; then
  4024. CFLAGS="-g -O2"
  4025. else
  4026. CFLAGS="-g"
  4027. fi
  4028. else
  4029. if test "$GCC" = yes; then
  4030. CFLAGS="-O2"
  4031. else
  4032. CFLAGS=
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4036. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4037. if ${ac_cv_prog_cc_c89+:} false; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. ac_cv_prog_cc_c89=no
  4041. ac_save_CC=$CC
  4042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4043. /* end confdefs.h. */
  4044. #include <stdarg.h>
  4045. #include <stdio.h>
  4046. struct stat;
  4047. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4048. struct buf { int x; };
  4049. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4050. static char *e (p, i)
  4051. char **p;
  4052. int i;
  4053. {
  4054. return p[i];
  4055. }
  4056. static char *f (char * (*g) (char **, int), char **p, ...)
  4057. {
  4058. char *s;
  4059. va_list v;
  4060. va_start (v,p);
  4061. s = g (p, va_arg (v,int));
  4062. va_end (v);
  4063. return s;
  4064. }
  4065. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4066. function prototypes and stuff, but not '\xHH' hex character constants.
  4067. These don't provoke an error unfortunately, instead are silently treated
  4068. as 'x'. The following induces an error, until -std is added to get
  4069. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4070. array size at least. It's necessary to write '\x00'==0 to get something
  4071. that's true only with -std. */
  4072. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4073. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4074. inside strings and character constants. */
  4075. #define FOO(x) 'x'
  4076. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4077. int test (int i, double x);
  4078. struct s1 {int (*f) (int a);};
  4079. struct s2 {int (*f) (double a);};
  4080. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4081. int argc;
  4082. char **argv;
  4083. int
  4084. main ()
  4085. {
  4086. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4087. ;
  4088. return 0;
  4089. }
  4090. _ACEOF
  4091. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4092. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4093. do
  4094. CC="$ac_save_CC $ac_arg"
  4095. if ac_fn_c_try_compile "$LINENO"; then :
  4096. ac_cv_prog_cc_c89=$ac_arg
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext
  4099. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4100. done
  4101. rm -f conftest.$ac_ext
  4102. CC=$ac_save_CC
  4103. fi
  4104. # AC_CACHE_VAL
  4105. case "x$ac_cv_prog_cc_c89" in
  4106. x)
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4108. $as_echo "none needed" >&6; } ;;
  4109. xno)
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4111. $as_echo "unsupported" >&6; } ;;
  4112. *)
  4113. CC="$CC $ac_cv_prog_cc_c89"
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4115. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4116. esac
  4117. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4118. fi
  4119. ac_ext=c
  4120. ac_cpp='$CPP $CPPFLAGS'
  4121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4124. ac_ext=c
  4125. ac_cpp='$CPP $CPPFLAGS'
  4126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4130. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4131. if ${am_cv_prog_cc_c_o+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4135. /* end confdefs.h. */
  4136. int
  4137. main ()
  4138. {
  4139. ;
  4140. return 0;
  4141. }
  4142. _ACEOF
  4143. # Make sure it works both with $CC and with simple cc.
  4144. # Following AC_PROG_CC_C_O, we do the test twice because some
  4145. # compilers refuse to overwrite an existing .o file with -o,
  4146. # though they will create one.
  4147. am_cv_prog_cc_c_o=yes
  4148. for am_i in 1 2; do
  4149. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4150. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4151. ac_status=$?
  4152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4153. (exit $ac_status); } \
  4154. && test -f conftest2.$ac_objext; then
  4155. : OK
  4156. else
  4157. am_cv_prog_cc_c_o=no
  4158. break
  4159. fi
  4160. done
  4161. rm -f core conftest*
  4162. unset am_i
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4165. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4166. if test "$am_cv_prog_cc_c_o" != yes; then
  4167. # Losing compiler, so override with the script.
  4168. # FIXME: It is wrong to rewrite CC.
  4169. # But if we don't then we get into trouble of one sort or another.
  4170. # A longer-term fix would be to have automake use am__CC in this case,
  4171. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4172. CC="$am_aux_dir/compile $CC"
  4173. fi
  4174. ac_ext=c
  4175. ac_cpp='$CPP $CPPFLAGS'
  4176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4179. depcc="$CC" am_compiler_list=
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4181. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4182. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4186. # We make a subdir and do the tests there. Otherwise we can end up
  4187. # making bogus files that we don't know about and never remove. For
  4188. # instance it was reported that on HP-UX the gcc test will end up
  4189. # making a dummy file named 'D' -- because '-MD' means "put the output
  4190. # in D".
  4191. rm -rf conftest.dir
  4192. mkdir conftest.dir
  4193. # Copy depcomp to subdir because otherwise we won't find it if we're
  4194. # using a relative directory.
  4195. cp "$am_depcomp" conftest.dir
  4196. cd conftest.dir
  4197. # We will build objects and dependencies in a subdirectory because
  4198. # it helps to detect inapplicable dependency modes. For instance
  4199. # both Tru64's cc and ICC support -MD to output dependencies as a
  4200. # side effect of compilation, but ICC will put the dependencies in
  4201. # the current directory while Tru64 will put them in the object
  4202. # directory.
  4203. mkdir sub
  4204. am_cv_CC_dependencies_compiler_type=none
  4205. if test "$am_compiler_list" = ""; then
  4206. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4207. fi
  4208. am__universal=false
  4209. case " $depcc " in #(
  4210. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4211. esac
  4212. for depmode in $am_compiler_list; do
  4213. # Setup a source with many dependencies, because some compilers
  4214. # like to wrap large dependency lists on column 80 (with \), and
  4215. # we should not choose a depcomp mode which is confused by this.
  4216. #
  4217. # We need to recreate these files for each test, as the compiler may
  4218. # overwrite some of them when testing with obscure command lines.
  4219. # This happens at least with the AIX C compiler.
  4220. : > sub/conftest.c
  4221. for i in 1 2 3 4 5 6; do
  4222. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4223. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4224. # Solaris 10 /bin/sh.
  4225. echo '/* dummy */' > sub/conftst$i.h
  4226. done
  4227. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4228. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4229. # mode. It turns out that the SunPro C++ compiler does not properly
  4230. # handle '-M -o', and we need to detect this. Also, some Intel
  4231. # versions had trouble with output in subdirs.
  4232. am__obj=sub/conftest.${OBJEXT-o}
  4233. am__minus_obj="-o $am__obj"
  4234. case $depmode in
  4235. gcc)
  4236. # This depmode causes a compiler race in universal mode.
  4237. test "$am__universal" = false || continue
  4238. ;;
  4239. nosideeffect)
  4240. # After this tag, mechanisms are not by side-effect, so they'll
  4241. # only be used when explicitly requested.
  4242. if test "x$enable_dependency_tracking" = xyes; then
  4243. continue
  4244. else
  4245. break
  4246. fi
  4247. ;;
  4248. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4249. # This compiler won't grok '-c -o', but also, the minuso test has
  4250. # not run yet. These depmodes are late enough in the game, and
  4251. # so weak that their functioning should not be impacted.
  4252. am__obj=conftest.${OBJEXT-o}
  4253. am__minus_obj=
  4254. ;;
  4255. none) break ;;
  4256. esac
  4257. if depmode=$depmode \
  4258. source=sub/conftest.c object=$am__obj \
  4259. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4260. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4261. >/dev/null 2>conftest.err &&
  4262. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4263. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4264. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4265. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4266. # icc doesn't choke on unknown options, it will just issue warnings
  4267. # or remarks (even with -Werror). So we grep stderr for any message
  4268. # that says an option was ignored or not supported.
  4269. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4270. # icc: Command line warning: ignoring option '-M'; no argument required
  4271. # The diagnosis changed in icc 8.0:
  4272. # icc: Command line remark: option '-MP' not supported
  4273. if (grep 'ignoring option' conftest.err ||
  4274. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4275. am_cv_CC_dependencies_compiler_type=$depmode
  4276. break
  4277. fi
  4278. fi
  4279. done
  4280. cd ..
  4281. rm -rf conftest.dir
  4282. else
  4283. am_cv_CC_dependencies_compiler_type=none
  4284. fi
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4287. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4288. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4289. if
  4290. test "x$enable_dependency_tracking" != xno \
  4291. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4292. am__fastdepCC_TRUE=
  4293. am__fastdepCC_FALSE='#'
  4294. else
  4295. am__fastdepCC_TRUE='#'
  4296. am__fastdepCC_FALSE=
  4297. fi
  4298. ac_ext=c
  4299. ac_cpp='$CPP $CPPFLAGS'
  4300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4304. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4305. # On Suns, sometimes $CPP names a directory.
  4306. if test -n "$CPP" && test -d "$CPP"; then
  4307. CPP=
  4308. fi
  4309. if test -z "$CPP"; then
  4310. if ${ac_cv_prog_CPP+:} false; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. # Double quotes because CPP needs to be expanded
  4314. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4315. do
  4316. ac_preproc_ok=false
  4317. for ac_c_preproc_warn_flag in '' yes
  4318. do
  4319. # Use a header file that comes with gcc, so configuring glibc
  4320. # with a fresh cross-compiler works.
  4321. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4322. # <limits.h> exists even on freestanding compilers.
  4323. # On the NeXT, cc -E runs the code through the compiler's parser,
  4324. # not just through cpp. "Syntax error" is here to catch this case.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. #ifdef __STDC__
  4328. # include <limits.h>
  4329. #else
  4330. # include <assert.h>
  4331. #endif
  4332. Syntax error
  4333. _ACEOF
  4334. if ac_fn_c_try_cpp "$LINENO"; then :
  4335. else
  4336. # Broken: fails on valid input.
  4337. continue
  4338. fi
  4339. rm -f conftest.err conftest.i conftest.$ac_ext
  4340. # OK, works on sane cases. Now check whether nonexistent headers
  4341. # can be detected and how.
  4342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end confdefs.h. */
  4344. #include <ac_nonexistent.h>
  4345. _ACEOF
  4346. if ac_fn_c_try_cpp "$LINENO"; then :
  4347. # Broken: success on invalid input.
  4348. continue
  4349. else
  4350. # Passes both tests.
  4351. ac_preproc_ok=:
  4352. break
  4353. fi
  4354. rm -f conftest.err conftest.i conftest.$ac_ext
  4355. done
  4356. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4357. rm -f conftest.i conftest.err conftest.$ac_ext
  4358. if $ac_preproc_ok; then :
  4359. break
  4360. fi
  4361. done
  4362. ac_cv_prog_CPP=$CPP
  4363. fi
  4364. CPP=$ac_cv_prog_CPP
  4365. else
  4366. ac_cv_prog_CPP=$CPP
  4367. fi
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4369. $as_echo "$CPP" >&6; }
  4370. ac_preproc_ok=false
  4371. for ac_c_preproc_warn_flag in '' yes
  4372. do
  4373. # Use a header file that comes with gcc, so configuring glibc
  4374. # with a fresh cross-compiler works.
  4375. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4376. # <limits.h> exists even on freestanding compilers.
  4377. # On the NeXT, cc -E runs the code through the compiler's parser,
  4378. # not just through cpp. "Syntax error" is here to catch this case.
  4379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4380. /* end confdefs.h. */
  4381. #ifdef __STDC__
  4382. # include <limits.h>
  4383. #else
  4384. # include <assert.h>
  4385. #endif
  4386. Syntax error
  4387. _ACEOF
  4388. if ac_fn_c_try_cpp "$LINENO"; then :
  4389. else
  4390. # Broken: fails on valid input.
  4391. continue
  4392. fi
  4393. rm -f conftest.err conftest.i conftest.$ac_ext
  4394. # OK, works on sane cases. Now check whether nonexistent headers
  4395. # can be detected and how.
  4396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4397. /* end confdefs.h. */
  4398. #include <ac_nonexistent.h>
  4399. _ACEOF
  4400. if ac_fn_c_try_cpp "$LINENO"; then :
  4401. # Broken: success on invalid input.
  4402. continue
  4403. else
  4404. # Passes both tests.
  4405. ac_preproc_ok=:
  4406. break
  4407. fi
  4408. rm -f conftest.err conftest.i conftest.$ac_ext
  4409. done
  4410. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4411. rm -f conftest.i conftest.err conftest.$ac_ext
  4412. if $ac_preproc_ok; then :
  4413. else
  4414. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4415. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4416. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4417. See \`config.log' for more details" "$LINENO" 5; }
  4418. fi
  4419. ac_ext=c
  4420. ac_cpp='$CPP $CPPFLAGS'
  4421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4425. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4426. if ${ac_cv_path_GREP+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test -z "$GREP"; then
  4430. ac_path_GREP_found=false
  4431. # Loop through the user's path and test for each of PROGNAME-LIST
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_prog in grep ggrep; do
  4438. for ac_exec_ext in '' $ac_executable_extensions; do
  4439. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4440. as_fn_executable_p "$ac_path_GREP" || continue
  4441. # Check for GNU ac_path_GREP and select it if it is found.
  4442. # Check for GNU $ac_path_GREP
  4443. case `"$ac_path_GREP" --version 2>&1` in
  4444. *GNU*)
  4445. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4446. *)
  4447. ac_count=0
  4448. $as_echo_n 0123456789 >"conftest.in"
  4449. while :
  4450. do
  4451. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4452. mv "conftest.tmp" "conftest.in"
  4453. cp "conftest.in" "conftest.nl"
  4454. $as_echo 'GREP' >> "conftest.nl"
  4455. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4456. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4457. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4458. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4459. # Best one so far, save it but keep looking for a better one
  4460. ac_cv_path_GREP="$ac_path_GREP"
  4461. ac_path_GREP_max=$ac_count
  4462. fi
  4463. # 10*(2^10) chars as input seems more than enough
  4464. test $ac_count -gt 10 && break
  4465. done
  4466. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4467. esac
  4468. $ac_path_GREP_found && break 3
  4469. done
  4470. done
  4471. done
  4472. IFS=$as_save_IFS
  4473. if test -z "$ac_cv_path_GREP"; then
  4474. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4475. fi
  4476. else
  4477. ac_cv_path_GREP=$GREP
  4478. fi
  4479. fi
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4481. $as_echo "$ac_cv_path_GREP" >&6; }
  4482. GREP="$ac_cv_path_GREP"
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4484. $as_echo_n "checking for egrep... " >&6; }
  4485. if ${ac_cv_path_EGREP+:} false; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4489. then ac_cv_path_EGREP="$GREP -E"
  4490. else
  4491. if test -z "$EGREP"; then
  4492. ac_path_EGREP_found=false
  4493. # Loop through the user's path and test for each of PROGNAME-LIST
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4496. do
  4497. IFS=$as_save_IFS
  4498. test -z "$as_dir" && as_dir=.
  4499. for ac_prog in egrep; do
  4500. for ac_exec_ext in '' $ac_executable_extensions; do
  4501. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4502. as_fn_executable_p "$ac_path_EGREP" || continue
  4503. # Check for GNU ac_path_EGREP and select it if it is found.
  4504. # Check for GNU $ac_path_EGREP
  4505. case `"$ac_path_EGREP" --version 2>&1` in
  4506. *GNU*)
  4507. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4508. *)
  4509. ac_count=0
  4510. $as_echo_n 0123456789 >"conftest.in"
  4511. while :
  4512. do
  4513. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4514. mv "conftest.tmp" "conftest.in"
  4515. cp "conftest.in" "conftest.nl"
  4516. $as_echo 'EGREP' >> "conftest.nl"
  4517. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4518. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4519. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4520. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4521. # Best one so far, save it but keep looking for a better one
  4522. ac_cv_path_EGREP="$ac_path_EGREP"
  4523. ac_path_EGREP_max=$ac_count
  4524. fi
  4525. # 10*(2^10) chars as input seems more than enough
  4526. test $ac_count -gt 10 && break
  4527. done
  4528. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4529. esac
  4530. $ac_path_EGREP_found && break 3
  4531. done
  4532. done
  4533. done
  4534. IFS=$as_save_IFS
  4535. if test -z "$ac_cv_path_EGREP"; then
  4536. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4537. fi
  4538. else
  4539. ac_cv_path_EGREP=$EGREP
  4540. fi
  4541. fi
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4544. $as_echo "$ac_cv_path_EGREP" >&6; }
  4545. EGREP="$ac_cv_path_EGREP"
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4547. $as_echo_n "checking for ANSI C header files... " >&6; }
  4548. if ${ac_cv_header_stdc+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4552. /* end confdefs.h. */
  4553. #include <stdlib.h>
  4554. #include <stdarg.h>
  4555. #include <string.h>
  4556. #include <float.h>
  4557. int
  4558. main ()
  4559. {
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. if ac_fn_c_try_compile "$LINENO"; then :
  4565. ac_cv_header_stdc=yes
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4570. if test $ac_cv_header_stdc = yes; then
  4571. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4573. /* end confdefs.h. */
  4574. #include <string.h>
  4575. _ACEOF
  4576. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4577. $EGREP "memchr" >/dev/null 2>&1; then :
  4578. else
  4579. ac_cv_header_stdc=no
  4580. fi
  4581. rm -f conftest*
  4582. fi
  4583. if test $ac_cv_header_stdc = yes; then
  4584. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4586. /* end confdefs.h. */
  4587. #include <stdlib.h>
  4588. _ACEOF
  4589. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4590. $EGREP "free" >/dev/null 2>&1; then :
  4591. else
  4592. ac_cv_header_stdc=no
  4593. fi
  4594. rm -f conftest*
  4595. fi
  4596. if test $ac_cv_header_stdc = yes; then
  4597. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4598. if test "$cross_compiling" = yes; then :
  4599. :
  4600. else
  4601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4602. /* end confdefs.h. */
  4603. #include <ctype.h>
  4604. #include <stdlib.h>
  4605. #if ((' ' & 0x0FF) == 0x020)
  4606. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4607. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4608. #else
  4609. # define ISLOWER(c) \
  4610. (('a' <= (c) && (c) <= 'i') \
  4611. || ('j' <= (c) && (c) <= 'r') \
  4612. || ('s' <= (c) && (c) <= 'z'))
  4613. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4614. #endif
  4615. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4616. int
  4617. main ()
  4618. {
  4619. int i;
  4620. for (i = 0; i < 256; i++)
  4621. if (XOR (islower (i), ISLOWER (i))
  4622. || toupper (i) != TOUPPER (i))
  4623. return 2;
  4624. return 0;
  4625. }
  4626. _ACEOF
  4627. if ac_fn_c_try_run "$LINENO"; then :
  4628. else
  4629. ac_cv_header_stdc=no
  4630. fi
  4631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4632. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4633. fi
  4634. fi
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4637. $as_echo "$ac_cv_header_stdc" >&6; }
  4638. if test $ac_cv_header_stdc = yes; then
  4639. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4640. fi
  4641. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4642. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4643. inttypes.h stdint.h unistd.h
  4644. do :
  4645. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4646. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4647. "
  4648. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4649. cat >>confdefs.h <<_ACEOF
  4650. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4651. _ACEOF
  4652. fi
  4653. done
  4654. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4655. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4656. MINIX=yes
  4657. else
  4658. MINIX=
  4659. fi
  4660. if test "$MINIX" = yes; then
  4661. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4662. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4663. $as_echo "#define _MINIX 1" >>confdefs.h
  4664. fi
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4666. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4667. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4671. /* end confdefs.h. */
  4672. # define __EXTENSIONS__ 1
  4673. $ac_includes_default
  4674. int
  4675. main ()
  4676. {
  4677. ;
  4678. return 0;
  4679. }
  4680. _ACEOF
  4681. if ac_fn_c_try_compile "$LINENO"; then :
  4682. ac_cv_safe_to_define___extensions__=yes
  4683. else
  4684. ac_cv_safe_to_define___extensions__=no
  4685. fi
  4686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4687. fi
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4689. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4690. test $ac_cv_safe_to_define___extensions__ = yes &&
  4691. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4692. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4693. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4694. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4695. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4697. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4698. if ${ac_cv_path_SED+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4702. for ac_i in 1 2 3 4 5 6 7; do
  4703. ac_script="$ac_script$as_nl$ac_script"
  4704. done
  4705. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4706. { ac_script=; unset ac_script;}
  4707. if test -z "$SED"; then
  4708. ac_path_SED_found=false
  4709. # Loop through the user's path and test for each of PROGNAME-LIST
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. test -z "$as_dir" && as_dir=.
  4715. for ac_prog in sed gsed; do
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4718. as_fn_executable_p "$ac_path_SED" || continue
  4719. # Check for GNU ac_path_SED and select it if it is found.
  4720. # Check for GNU $ac_path_SED
  4721. case `"$ac_path_SED" --version 2>&1` in
  4722. *GNU*)
  4723. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4724. *)
  4725. ac_count=0
  4726. $as_echo_n 0123456789 >"conftest.in"
  4727. while :
  4728. do
  4729. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4730. mv "conftest.tmp" "conftest.in"
  4731. cp "conftest.in" "conftest.nl"
  4732. $as_echo '' >> "conftest.nl"
  4733. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4734. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4735. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4736. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4737. # Best one so far, save it but keep looking for a better one
  4738. ac_cv_path_SED="$ac_path_SED"
  4739. ac_path_SED_max=$ac_count
  4740. fi
  4741. # 10*(2^10) chars as input seems more than enough
  4742. test $ac_count -gt 10 && break
  4743. done
  4744. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4745. esac
  4746. $ac_path_SED_found && break 3
  4747. done
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. if test -z "$ac_cv_path_SED"; then
  4752. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4753. fi
  4754. else
  4755. ac_cv_path_SED=$SED
  4756. fi
  4757. fi
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4759. $as_echo "$ac_cv_path_SED" >&6; }
  4760. SED="$ac_cv_path_SED"
  4761. rm -f conftest.sed
  4762. # Extract the first word of "pkg-config", so it can be a program name with args.
  4763. set dummy pkg-config; ac_word=$2
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4765. $as_echo_n "checking for $ac_word... " >&6; }
  4766. if ${ac_cv_path_PKGCONFIG+:} false; then :
  4767. $as_echo_n "(cached) " >&6
  4768. else
  4769. case $PKGCONFIG in
  4770. [\\/]* | ?:[\\/]*)
  4771. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  4772. ;;
  4773. *)
  4774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4775. for as_dir in $PATH
  4776. do
  4777. IFS=$as_save_IFS
  4778. test -z "$as_dir" && as_dir=.
  4779. for ac_exec_ext in '' $ac_executable_extensions; do
  4780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4781. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4783. break 2
  4784. fi
  4785. done
  4786. done
  4787. IFS=$as_save_IFS
  4788. ;;
  4789. esac
  4790. fi
  4791. PKGCONFIG=$ac_cv_path_PKGCONFIG
  4792. if test -n "$PKGCONFIG"; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  4794. $as_echo "$PKGCONFIG" >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4797. $as_echo "no" >&6; }
  4798. fi
  4799. case `pwd` in
  4800. *\ * | *\ *)
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4802. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4803. esac
  4804. macro_version='2.4.6'
  4805. macro_revision='2.4.6'
  4806. ltmain=$ac_aux_dir/ltmain.sh
  4807. # Make sure we can run config.sub.
  4808. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4809. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4811. $as_echo_n "checking build system type... " >&6; }
  4812. if ${ac_cv_build+:} false; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. ac_build_alias=$build_alias
  4816. test "x$ac_build_alias" = x &&
  4817. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4818. test "x$ac_build_alias" = x &&
  4819. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4820. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4821. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4822. fi
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4824. $as_echo "$ac_cv_build" >&6; }
  4825. case $ac_cv_build in
  4826. *-*-*) ;;
  4827. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4828. esac
  4829. build=$ac_cv_build
  4830. ac_save_IFS=$IFS; IFS='-'
  4831. set x $ac_cv_build
  4832. shift
  4833. build_cpu=$1
  4834. build_vendor=$2
  4835. shift; shift
  4836. # Remember, the first character of IFS is used to create $*,
  4837. # except with old shells:
  4838. build_os=$*
  4839. IFS=$ac_save_IFS
  4840. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4842. $as_echo_n "checking host system type... " >&6; }
  4843. if ${ac_cv_host+:} false; then :
  4844. $as_echo_n "(cached) " >&6
  4845. else
  4846. if test "x$host_alias" = x; then
  4847. ac_cv_host=$ac_cv_build
  4848. else
  4849. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4850. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4851. fi
  4852. fi
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4854. $as_echo "$ac_cv_host" >&6; }
  4855. case $ac_cv_host in
  4856. *-*-*) ;;
  4857. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4858. esac
  4859. host=$ac_cv_host
  4860. ac_save_IFS=$IFS; IFS='-'
  4861. set x $ac_cv_host
  4862. shift
  4863. host_cpu=$1
  4864. host_vendor=$2
  4865. shift; shift
  4866. # Remember, the first character of IFS is used to create $*,
  4867. # except with old shells:
  4868. host_os=$*
  4869. IFS=$ac_save_IFS
  4870. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4871. # Backslashify metacharacters that are still active within
  4872. # double-quoted strings.
  4873. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4874. # Same as above, but do not quote variable references.
  4875. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4876. # Sed substitution to delay expansion of an escaped shell variable in a
  4877. # double_quote_subst'ed string.
  4878. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4879. # Sed substitution to delay expansion of an escaped single quote.
  4880. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4881. # Sed substitution to avoid accidental globbing in evaled expressions
  4882. no_glob_subst='s/\*/\\\*/g'
  4883. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4884. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4885. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4887. $as_echo_n "checking how to print strings... " >&6; }
  4888. # Test print first, because it will be a builtin if present.
  4889. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4890. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4891. ECHO='print -r --'
  4892. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4893. ECHO='printf %s\n'
  4894. else
  4895. # Use this function as a fallback that always works.
  4896. func_fallback_echo ()
  4897. {
  4898. eval 'cat <<_LTECHO_EOF
  4899. $1
  4900. _LTECHO_EOF'
  4901. }
  4902. ECHO='func_fallback_echo'
  4903. fi
  4904. # func_echo_all arg...
  4905. # Invoke $ECHO with all args, space-separated.
  4906. func_echo_all ()
  4907. {
  4908. $ECHO ""
  4909. }
  4910. case $ECHO in
  4911. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4912. $as_echo "printf" >&6; } ;;
  4913. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4914. $as_echo "print -r" >&6; } ;;
  4915. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4916. $as_echo "cat" >&6; } ;;
  4917. esac
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4919. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4920. if ${ac_cv_path_SED+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4924. for ac_i in 1 2 3 4 5 6 7; do
  4925. ac_script="$ac_script$as_nl$ac_script"
  4926. done
  4927. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4928. { ac_script=; unset ac_script;}
  4929. if test -z "$SED"; then
  4930. ac_path_SED_found=false
  4931. # Loop through the user's path and test for each of PROGNAME-LIST
  4932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4933. for as_dir in $PATH
  4934. do
  4935. IFS=$as_save_IFS
  4936. test -z "$as_dir" && as_dir=.
  4937. for ac_prog in sed gsed; do
  4938. for ac_exec_ext in '' $ac_executable_extensions; do
  4939. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4940. as_fn_executable_p "$ac_path_SED" || continue
  4941. # Check for GNU ac_path_SED and select it if it is found.
  4942. # Check for GNU $ac_path_SED
  4943. case `"$ac_path_SED" --version 2>&1` in
  4944. *GNU*)
  4945. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4946. *)
  4947. ac_count=0
  4948. $as_echo_n 0123456789 >"conftest.in"
  4949. while :
  4950. do
  4951. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4952. mv "conftest.tmp" "conftest.in"
  4953. cp "conftest.in" "conftest.nl"
  4954. $as_echo '' >> "conftest.nl"
  4955. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4956. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4957. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4958. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4959. # Best one so far, save it but keep looking for a better one
  4960. ac_cv_path_SED="$ac_path_SED"
  4961. ac_path_SED_max=$ac_count
  4962. fi
  4963. # 10*(2^10) chars as input seems more than enough
  4964. test $ac_count -gt 10 && break
  4965. done
  4966. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4967. esac
  4968. $ac_path_SED_found && break 3
  4969. done
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. if test -z "$ac_cv_path_SED"; then
  4974. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4975. fi
  4976. else
  4977. ac_cv_path_SED=$SED
  4978. fi
  4979. fi
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4981. $as_echo "$ac_cv_path_SED" >&6; }
  4982. SED="$ac_cv_path_SED"
  4983. rm -f conftest.sed
  4984. test -z "$SED" && SED=sed
  4985. Xsed="$SED -e 1s/^X//"
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4987. $as_echo_n "checking for fgrep... " >&6; }
  4988. if ${ac_cv_path_FGREP+:} false; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4992. then ac_cv_path_FGREP="$GREP -F"
  4993. else
  4994. if test -z "$FGREP"; then
  4995. ac_path_FGREP_found=false
  4996. # Loop through the user's path and test for each of PROGNAME-LIST
  4997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4998. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4999. do
  5000. IFS=$as_save_IFS
  5001. test -z "$as_dir" && as_dir=.
  5002. for ac_prog in fgrep; do
  5003. for ac_exec_ext in '' $ac_executable_extensions; do
  5004. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5005. as_fn_executable_p "$ac_path_FGREP" || continue
  5006. # Check for GNU ac_path_FGREP and select it if it is found.
  5007. # Check for GNU $ac_path_FGREP
  5008. case `"$ac_path_FGREP" --version 2>&1` in
  5009. *GNU*)
  5010. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5011. *)
  5012. ac_count=0
  5013. $as_echo_n 0123456789 >"conftest.in"
  5014. while :
  5015. do
  5016. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5017. mv "conftest.tmp" "conftest.in"
  5018. cp "conftest.in" "conftest.nl"
  5019. $as_echo 'FGREP' >> "conftest.nl"
  5020. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5021. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5022. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5023. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5024. # Best one so far, save it but keep looking for a better one
  5025. ac_cv_path_FGREP="$ac_path_FGREP"
  5026. ac_path_FGREP_max=$ac_count
  5027. fi
  5028. # 10*(2^10) chars as input seems more than enough
  5029. test $ac_count -gt 10 && break
  5030. done
  5031. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5032. esac
  5033. $ac_path_FGREP_found && break 3
  5034. done
  5035. done
  5036. done
  5037. IFS=$as_save_IFS
  5038. if test -z "$ac_cv_path_FGREP"; then
  5039. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5040. fi
  5041. else
  5042. ac_cv_path_FGREP=$FGREP
  5043. fi
  5044. fi
  5045. fi
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5047. $as_echo "$ac_cv_path_FGREP" >&6; }
  5048. FGREP="$ac_cv_path_FGREP"
  5049. test -z "$GREP" && GREP=grep
  5050. # Check whether --with-gnu-ld was given.
  5051. if test "${with_gnu_ld+set}" = set; then :
  5052. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5053. else
  5054. with_gnu_ld=no
  5055. fi
  5056. ac_prog=ld
  5057. if test yes = "$GCC"; then
  5058. # Check if gcc -print-prog-name=ld gives a path.
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5060. $as_echo_n "checking for ld used by $CC... " >&6; }
  5061. case $host in
  5062. *-*-mingw*)
  5063. # gcc leaves a trailing carriage return, which upsets mingw
  5064. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5065. *)
  5066. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5067. esac
  5068. case $ac_prog in
  5069. # Accept absolute paths.
  5070. [\\/]* | ?:[\\/]*)
  5071. re_direlt='/[^/][^/]*/\.\./'
  5072. # Canonicalize the pathname of ld
  5073. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5074. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5075. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5076. done
  5077. test -z "$LD" && LD=$ac_prog
  5078. ;;
  5079. "")
  5080. # If it fails, then pretend we aren't using GCC.
  5081. ac_prog=ld
  5082. ;;
  5083. *)
  5084. # If it is relative, then search for the first ld in PATH.
  5085. with_gnu_ld=unknown
  5086. ;;
  5087. esac
  5088. elif test yes = "$with_gnu_ld"; then
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5090. $as_echo_n "checking for GNU ld... " >&6; }
  5091. else
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5093. $as_echo_n "checking for non-GNU ld... " >&6; }
  5094. fi
  5095. if ${lt_cv_path_LD+:} false; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. if test -z "$LD"; then
  5099. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5100. for ac_dir in $PATH; do
  5101. IFS=$lt_save_ifs
  5102. test -z "$ac_dir" && ac_dir=.
  5103. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5104. lt_cv_path_LD=$ac_dir/$ac_prog
  5105. # Check to see if the program is GNU ld. I'd rather use --version,
  5106. # but apparently some variants of GNU ld only accept -v.
  5107. # Break only if it was the GNU/non-GNU ld that we prefer.
  5108. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5109. *GNU* | *'with BFD'*)
  5110. test no != "$with_gnu_ld" && break
  5111. ;;
  5112. *)
  5113. test yes != "$with_gnu_ld" && break
  5114. ;;
  5115. esac
  5116. fi
  5117. done
  5118. IFS=$lt_save_ifs
  5119. else
  5120. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5121. fi
  5122. fi
  5123. LD=$lt_cv_path_LD
  5124. if test -n "$LD"; then
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5126. $as_echo "$LD" >&6; }
  5127. else
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5129. $as_echo "no" >&6; }
  5130. fi
  5131. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5133. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5134. if ${lt_cv_prog_gnu_ld+:} false; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5138. case `$LD -v 2>&1 </dev/null` in
  5139. *GNU* | *'with BFD'*)
  5140. lt_cv_prog_gnu_ld=yes
  5141. ;;
  5142. *)
  5143. lt_cv_prog_gnu_ld=no
  5144. ;;
  5145. esac
  5146. fi
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5148. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5149. with_gnu_ld=$lt_cv_prog_gnu_ld
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5151. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5152. if ${lt_cv_path_NM+:} false; then :
  5153. $as_echo_n "(cached) " >&6
  5154. else
  5155. if test -n "$NM"; then
  5156. # Let the user override the test.
  5157. lt_cv_path_NM=$NM
  5158. else
  5159. lt_nm_to_check=${ac_tool_prefix}nm
  5160. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5161. lt_nm_to_check="$lt_nm_to_check nm"
  5162. fi
  5163. for lt_tmp_nm in $lt_nm_to_check; do
  5164. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5165. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5166. IFS=$lt_save_ifs
  5167. test -z "$ac_dir" && ac_dir=.
  5168. tmp_nm=$ac_dir/$lt_tmp_nm
  5169. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5170. # Check to see if the nm accepts a BSD-compat flag.
  5171. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5172. # nm: unknown option "B" ignored
  5173. # Tru64's nm complains that /dev/null is an invalid object file
  5174. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5175. case $build_os in
  5176. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5177. *) lt_bad_file=/dev/null ;;
  5178. esac
  5179. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5180. *$lt_bad_file* | *'Invalid file or object type'*)
  5181. lt_cv_path_NM="$tmp_nm -B"
  5182. break 2
  5183. ;;
  5184. *)
  5185. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5186. */dev/null*)
  5187. lt_cv_path_NM="$tmp_nm -p"
  5188. break 2
  5189. ;;
  5190. *)
  5191. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5192. continue # so that we can try to find one that supports BSD flags
  5193. ;;
  5194. esac
  5195. ;;
  5196. esac
  5197. fi
  5198. done
  5199. IFS=$lt_save_ifs
  5200. done
  5201. : ${lt_cv_path_NM=no}
  5202. fi
  5203. fi
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5205. $as_echo "$lt_cv_path_NM" >&6; }
  5206. if test no != "$lt_cv_path_NM"; then
  5207. NM=$lt_cv_path_NM
  5208. else
  5209. # Didn't find any BSD compatible name lister, look for dumpbin.
  5210. if test -n "$DUMPBIN"; then :
  5211. # Let the user override the test.
  5212. else
  5213. if test -n "$ac_tool_prefix"; then
  5214. for ac_prog in dumpbin "link -dump"
  5215. do
  5216. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5217. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5219. $as_echo_n "checking for $ac_word... " >&6; }
  5220. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5221. $as_echo_n "(cached) " >&6
  5222. else
  5223. if test -n "$DUMPBIN"; then
  5224. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5225. else
  5226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5227. for as_dir in $PATH
  5228. do
  5229. IFS=$as_save_IFS
  5230. test -z "$as_dir" && as_dir=.
  5231. for ac_exec_ext in '' $ac_executable_extensions; do
  5232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5233. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5235. break 2
  5236. fi
  5237. done
  5238. done
  5239. IFS=$as_save_IFS
  5240. fi
  5241. fi
  5242. DUMPBIN=$ac_cv_prog_DUMPBIN
  5243. if test -n "$DUMPBIN"; then
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5245. $as_echo "$DUMPBIN" >&6; }
  5246. else
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5248. $as_echo "no" >&6; }
  5249. fi
  5250. test -n "$DUMPBIN" && break
  5251. done
  5252. fi
  5253. if test -z "$DUMPBIN"; then
  5254. ac_ct_DUMPBIN=$DUMPBIN
  5255. for ac_prog in dumpbin "link -dump"
  5256. do
  5257. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5258. set dummy $ac_prog; ac_word=$2
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5260. $as_echo_n "checking for $ac_word... " >&6; }
  5261. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. if test -n "$ac_ct_DUMPBIN"; then
  5265. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5266. else
  5267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268. for as_dir in $PATH
  5269. do
  5270. IFS=$as_save_IFS
  5271. test -z "$as_dir" && as_dir=.
  5272. for ac_exec_ext in '' $ac_executable_extensions; do
  5273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5274. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5276. break 2
  5277. fi
  5278. done
  5279. done
  5280. IFS=$as_save_IFS
  5281. fi
  5282. fi
  5283. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5284. if test -n "$ac_ct_DUMPBIN"; then
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5286. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5287. else
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5289. $as_echo "no" >&6; }
  5290. fi
  5291. test -n "$ac_ct_DUMPBIN" && break
  5292. done
  5293. if test "x$ac_ct_DUMPBIN" = x; then
  5294. DUMPBIN=":"
  5295. else
  5296. case $cross_compiling:$ac_tool_warned in
  5297. yes:)
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5299. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5300. ac_tool_warned=yes ;;
  5301. esac
  5302. DUMPBIN=$ac_ct_DUMPBIN
  5303. fi
  5304. fi
  5305. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5306. *COFF*)
  5307. DUMPBIN="$DUMPBIN -symbols -headers"
  5308. ;;
  5309. *)
  5310. DUMPBIN=:
  5311. ;;
  5312. esac
  5313. fi
  5314. if test : != "$DUMPBIN"; then
  5315. NM=$DUMPBIN
  5316. fi
  5317. fi
  5318. test -z "$NM" && NM=nm
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5320. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5321. if ${lt_cv_nm_interface+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. lt_cv_nm_interface="BSD nm"
  5325. echo "int some_variable = 0;" > conftest.$ac_ext
  5326. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5327. (eval "$ac_compile" 2>conftest.err)
  5328. cat conftest.err >&5
  5329. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5330. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5331. cat conftest.err >&5
  5332. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5333. cat conftest.out >&5
  5334. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5335. lt_cv_nm_interface="MS dumpbin"
  5336. fi
  5337. rm -f conftest*
  5338. fi
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5340. $as_echo "$lt_cv_nm_interface" >&6; }
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5342. $as_echo_n "checking whether ln -s works... " >&6; }
  5343. LN_S=$as_ln_s
  5344. if test "$LN_S" = "ln -s"; then
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5346. $as_echo "yes" >&6; }
  5347. else
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5349. $as_echo "no, using $LN_S" >&6; }
  5350. fi
  5351. # find the maximum length of command line arguments
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5353. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5354. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. i=0
  5358. teststring=ABCD
  5359. case $build_os in
  5360. msdosdjgpp*)
  5361. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5362. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5363. # during glob expansion). Even if it were fixed, the result of this
  5364. # check would be larger than it should be.
  5365. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5366. ;;
  5367. gnu*)
  5368. # Under GNU Hurd, this test is not required because there is
  5369. # no limit to the length of command line arguments.
  5370. # Libtool will interpret -1 as no limit whatsoever
  5371. lt_cv_sys_max_cmd_len=-1;
  5372. ;;
  5373. cygwin* | mingw* | cegcc*)
  5374. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5375. # about 5 minutes as the teststring grows exponentially.
  5376. # Worse, since 9x/ME are not pre-emptively multitasking,
  5377. # you end up with a "frozen" computer, even though with patience
  5378. # the test eventually succeeds (with a max line length of 256k).
  5379. # Instead, let's just punt: use the minimum linelength reported by
  5380. # all of the supported platforms: 8192 (on NT/2K/XP).
  5381. lt_cv_sys_max_cmd_len=8192;
  5382. ;;
  5383. mint*)
  5384. # On MiNT this can take a long time and run out of memory.
  5385. lt_cv_sys_max_cmd_len=8192;
  5386. ;;
  5387. amigaos*)
  5388. # On AmigaOS with pdksh, this test takes hours, literally.
  5389. # So we just punt and use a minimum line length of 8192.
  5390. lt_cv_sys_max_cmd_len=8192;
  5391. ;;
  5392. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5393. # This has been around since 386BSD, at least. Likely further.
  5394. if test -x /sbin/sysctl; then
  5395. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5396. elif test -x /usr/sbin/sysctl; then
  5397. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5398. else
  5399. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5400. fi
  5401. # And add a safety zone
  5402. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5403. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5404. ;;
  5405. interix*)
  5406. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5407. lt_cv_sys_max_cmd_len=196608
  5408. ;;
  5409. os2*)
  5410. # The test takes a long time on OS/2.
  5411. lt_cv_sys_max_cmd_len=8192
  5412. ;;
  5413. osf*)
  5414. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5415. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5416. # nice to cause kernel panics so lets avoid the loop below.
  5417. # First set a reasonable default.
  5418. lt_cv_sys_max_cmd_len=16384
  5419. #
  5420. if test -x /sbin/sysconfig; then
  5421. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5422. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5423. esac
  5424. fi
  5425. ;;
  5426. sco3.2v5*)
  5427. lt_cv_sys_max_cmd_len=102400
  5428. ;;
  5429. sysv5* | sco5v6* | sysv4.2uw2*)
  5430. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5431. if test -n "$kargmax"; then
  5432. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5433. else
  5434. lt_cv_sys_max_cmd_len=32768
  5435. fi
  5436. ;;
  5437. *)
  5438. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5439. if test -n "$lt_cv_sys_max_cmd_len" && \
  5440. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5441. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5442. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5443. else
  5444. # Make teststring a little bigger before we do anything with it.
  5445. # a 1K string should be a reasonable start.
  5446. for i in 1 2 3 4 5 6 7 8; do
  5447. teststring=$teststring$teststring
  5448. done
  5449. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5450. # If test is not a shell built-in, we'll probably end up computing a
  5451. # maximum length that is only half of the actual maximum length, but
  5452. # we can't tell.
  5453. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5454. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5455. test 17 != "$i" # 1/2 MB should be enough
  5456. do
  5457. i=`expr $i + 1`
  5458. teststring=$teststring$teststring
  5459. done
  5460. # Only check the string length outside the loop.
  5461. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5462. teststring=
  5463. # Add a significant safety factor because C++ compilers can tack on
  5464. # massive amounts of additional arguments before passing them to the
  5465. # linker. It appears as though 1/2 is a usable value.
  5466. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5467. fi
  5468. ;;
  5469. esac
  5470. fi
  5471. if test -n "$lt_cv_sys_max_cmd_len"; then
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5473. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5474. else
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5476. $as_echo "none" >&6; }
  5477. fi
  5478. max_cmd_len=$lt_cv_sys_max_cmd_len
  5479. : ${CP="cp -f"}
  5480. : ${MV="mv -f"}
  5481. : ${RM="rm -f"}
  5482. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5483. lt_unset=unset
  5484. else
  5485. lt_unset=false
  5486. fi
  5487. # test EBCDIC or ASCII
  5488. case `echo X|tr X '\101'` in
  5489. A) # ASCII based system
  5490. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5491. lt_SP2NL='tr \040 \012'
  5492. lt_NL2SP='tr \015\012 \040\040'
  5493. ;;
  5494. *) # EBCDIC based system
  5495. lt_SP2NL='tr \100 \n'
  5496. lt_NL2SP='tr \r\n \100\100'
  5497. ;;
  5498. esac
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5500. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5501. if ${lt_cv_to_host_file_cmd+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. case $host in
  5505. *-*-mingw* )
  5506. case $build in
  5507. *-*-mingw* ) # actually msys
  5508. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5509. ;;
  5510. *-*-cygwin* )
  5511. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5512. ;;
  5513. * ) # otherwise, assume *nix
  5514. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5515. ;;
  5516. esac
  5517. ;;
  5518. *-*-cygwin* )
  5519. case $build in
  5520. *-*-mingw* ) # actually msys
  5521. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5522. ;;
  5523. *-*-cygwin* )
  5524. lt_cv_to_host_file_cmd=func_convert_file_noop
  5525. ;;
  5526. * ) # otherwise, assume *nix
  5527. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5528. ;;
  5529. esac
  5530. ;;
  5531. * ) # unhandled hosts (and "normal" native builds)
  5532. lt_cv_to_host_file_cmd=func_convert_file_noop
  5533. ;;
  5534. esac
  5535. fi
  5536. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5538. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5540. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5541. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. #assume ordinary cross tools, or native build.
  5545. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5546. case $host in
  5547. *-*-mingw* )
  5548. case $build in
  5549. *-*-mingw* ) # actually msys
  5550. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5551. ;;
  5552. esac
  5553. ;;
  5554. esac
  5555. fi
  5556. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5558. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5560. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5561. if ${lt_cv_ld_reload_flag+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. lt_cv_ld_reload_flag='-r'
  5565. fi
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5567. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5568. reload_flag=$lt_cv_ld_reload_flag
  5569. case $reload_flag in
  5570. "" | " "*) ;;
  5571. *) reload_flag=" $reload_flag" ;;
  5572. esac
  5573. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5574. case $host_os in
  5575. cygwin* | mingw* | pw32* | cegcc*)
  5576. if test yes != "$GCC"; then
  5577. reload_cmds=false
  5578. fi
  5579. ;;
  5580. darwin*)
  5581. if test yes = "$GCC"; then
  5582. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5583. else
  5584. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5585. fi
  5586. ;;
  5587. esac
  5588. if test -n "$ac_tool_prefix"; then
  5589. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5590. set dummy ${ac_tool_prefix}objdump; 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 ${ac_cv_prog_OBJDUMP+:} false; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. if test -n "$OBJDUMP"; then
  5597. ac_cv_prog_OBJDUMP="$OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5606. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  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. OBJDUMP=$ac_cv_prog_OBJDUMP
  5616. if test -n "$OBJDUMP"; then
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5618. $as_echo "$OBJDUMP" >&6; }
  5619. else
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5621. $as_echo "no" >&6; }
  5622. fi
  5623. fi
  5624. if test -z "$ac_cv_prog_OBJDUMP"; then
  5625. ac_ct_OBJDUMP=$OBJDUMP
  5626. # Extract the first word of "objdump", so it can be a program name with args.
  5627. set dummy objdump; ac_word=$2
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5629. $as_echo_n "checking for $ac_word... " >&6; }
  5630. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. if test -n "$ac_ct_OBJDUMP"; then
  5634. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5635. else
  5636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5637. for as_dir in $PATH
  5638. do
  5639. IFS=$as_save_IFS
  5640. test -z "$as_dir" && as_dir=.
  5641. for ac_exec_ext in '' $ac_executable_extensions; do
  5642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5643. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5645. break 2
  5646. fi
  5647. done
  5648. done
  5649. IFS=$as_save_IFS
  5650. fi
  5651. fi
  5652. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5653. if test -n "$ac_ct_OBJDUMP"; then
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5655. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5656. else
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5658. $as_echo "no" >&6; }
  5659. fi
  5660. if test "x$ac_ct_OBJDUMP" = x; then
  5661. OBJDUMP="false"
  5662. else
  5663. case $cross_compiling:$ac_tool_warned in
  5664. yes:)
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5667. ac_tool_warned=yes ;;
  5668. esac
  5669. OBJDUMP=$ac_ct_OBJDUMP
  5670. fi
  5671. else
  5672. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5673. fi
  5674. test -z "$OBJDUMP" && OBJDUMP=objdump
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5676. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5677. if ${lt_cv_deplibs_check_method+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5681. lt_cv_file_magic_test_file=
  5682. lt_cv_deplibs_check_method='unknown'
  5683. # Need to set the preceding variable on all platforms that support
  5684. # interlibrary dependencies.
  5685. # 'none' -- dependencies not supported.
  5686. # 'unknown' -- same as none, but documents that we really don't know.
  5687. # 'pass_all' -- all dependencies passed with no checks.
  5688. # 'test_compile' -- check by making test program.
  5689. # 'file_magic [[regex]]' -- check by looking for files in library path
  5690. # that responds to the $file_magic_cmd with a given extended regex.
  5691. # If you have 'file' or equivalent on your system and you're not sure
  5692. # whether 'pass_all' will *always* work, you probably want this one.
  5693. case $host_os in
  5694. aix[4-9]*)
  5695. lt_cv_deplibs_check_method=pass_all
  5696. ;;
  5697. beos*)
  5698. lt_cv_deplibs_check_method=pass_all
  5699. ;;
  5700. bsdi[45]*)
  5701. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5702. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5703. lt_cv_file_magic_test_file=/shlib/libc.so
  5704. ;;
  5705. cygwin*)
  5706. # func_win32_libid is a shell function defined in ltmain.sh
  5707. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5708. lt_cv_file_magic_cmd='func_win32_libid'
  5709. ;;
  5710. mingw* | pw32*)
  5711. # Base MSYS/MinGW do not provide the 'file' command needed by
  5712. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5713. # unless we find 'file', for example because we are cross-compiling.
  5714. if ( file / ) >/dev/null 2>&1; then
  5715. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5716. lt_cv_file_magic_cmd='func_win32_libid'
  5717. else
  5718. # Keep this pattern in sync with the one in func_win32_libid.
  5719. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5720. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5721. fi
  5722. ;;
  5723. cegcc*)
  5724. # use the weaker test based on 'objdump'. See mingw*.
  5725. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5726. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5727. ;;
  5728. darwin* | rhapsody*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. freebsd* | dragonfly*)
  5732. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5733. case $host_cpu in
  5734. i*86 )
  5735. # Not sure whether the presence of OpenBSD here was a mistake.
  5736. # Let's accept both of them until this is cleared up.
  5737. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5738. lt_cv_file_magic_cmd=/usr/bin/file
  5739. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5740. ;;
  5741. esac
  5742. else
  5743. lt_cv_deplibs_check_method=pass_all
  5744. fi
  5745. ;;
  5746. haiku*)
  5747. lt_cv_deplibs_check_method=pass_all
  5748. ;;
  5749. hpux10.20* | hpux11*)
  5750. lt_cv_file_magic_cmd=/usr/bin/file
  5751. case $host_cpu in
  5752. ia64*)
  5753. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5754. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5755. ;;
  5756. hppa*64*)
  5757. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5758. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5759. ;;
  5760. *)
  5761. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5762. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5763. ;;
  5764. esac
  5765. ;;
  5766. interix[3-9]*)
  5767. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5769. ;;
  5770. irix5* | irix6* | nonstopux*)
  5771. case $LD in
  5772. *-32|*"-32 ") libmagic=32-bit;;
  5773. *-n32|*"-n32 ") libmagic=N32;;
  5774. *-64|*"-64 ") libmagic=64-bit;;
  5775. *) libmagic=never-match;;
  5776. esac
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. # This must be glibc/ELF.
  5780. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5781. lt_cv_deplibs_check_method=pass_all
  5782. ;;
  5783. netbsd* | netbsdelf*-gnu)
  5784. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5785. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5786. else
  5787. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5788. fi
  5789. ;;
  5790. newos6*)
  5791. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5792. lt_cv_file_magic_cmd=/usr/bin/file
  5793. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5794. ;;
  5795. *nto* | *qnx*)
  5796. lt_cv_deplibs_check_method=pass_all
  5797. ;;
  5798. openbsd* | bitrig*)
  5799. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5800. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5801. else
  5802. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5803. fi
  5804. ;;
  5805. osf3* | osf4* | osf5*)
  5806. lt_cv_deplibs_check_method=pass_all
  5807. ;;
  5808. rdos*)
  5809. lt_cv_deplibs_check_method=pass_all
  5810. ;;
  5811. solaris*)
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5815. lt_cv_deplibs_check_method=pass_all
  5816. ;;
  5817. sysv4 | sysv4.3*)
  5818. case $host_vendor in
  5819. motorola)
  5820. 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]'
  5821. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5822. ;;
  5823. ncr)
  5824. lt_cv_deplibs_check_method=pass_all
  5825. ;;
  5826. sequent)
  5827. lt_cv_file_magic_cmd='/bin/file'
  5828. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5829. ;;
  5830. sni)
  5831. lt_cv_file_magic_cmd='/bin/file'
  5832. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5833. lt_cv_file_magic_test_file=/lib/libc.so
  5834. ;;
  5835. siemens)
  5836. lt_cv_deplibs_check_method=pass_all
  5837. ;;
  5838. pc)
  5839. lt_cv_deplibs_check_method=pass_all
  5840. ;;
  5841. esac
  5842. ;;
  5843. tpf*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. os2*)
  5847. lt_cv_deplibs_check_method=pass_all
  5848. ;;
  5849. esac
  5850. fi
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5852. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5853. file_magic_glob=
  5854. want_nocaseglob=no
  5855. if test "$build" = "$host"; then
  5856. case $host_os in
  5857. mingw* | pw32*)
  5858. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5859. want_nocaseglob=yes
  5860. else
  5861. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5862. fi
  5863. ;;
  5864. esac
  5865. fi
  5866. file_magic_cmd=$lt_cv_file_magic_cmd
  5867. deplibs_check_method=$lt_cv_deplibs_check_method
  5868. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5869. if test -n "$ac_tool_prefix"; then
  5870. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5871. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5873. $as_echo_n "checking for $ac_word... " >&6; }
  5874. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5875. $as_echo_n "(cached) " >&6
  5876. else
  5877. if test -n "$DLLTOOL"; then
  5878. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5879. else
  5880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5881. for as_dir in $PATH
  5882. do
  5883. IFS=$as_save_IFS
  5884. test -z "$as_dir" && as_dir=.
  5885. for ac_exec_ext in '' $ac_executable_extensions; do
  5886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5887. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5889. break 2
  5890. fi
  5891. done
  5892. done
  5893. IFS=$as_save_IFS
  5894. fi
  5895. fi
  5896. DLLTOOL=$ac_cv_prog_DLLTOOL
  5897. if test -n "$DLLTOOL"; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5899. $as_echo "$DLLTOOL" >&6; }
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5902. $as_echo "no" >&6; }
  5903. fi
  5904. fi
  5905. if test -z "$ac_cv_prog_DLLTOOL"; then
  5906. ac_ct_DLLTOOL=$DLLTOOL
  5907. # Extract the first word of "dlltool", so it can be a program name with args.
  5908. set dummy dlltool; ac_word=$2
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5910. $as_echo_n "checking for $ac_word... " >&6; }
  5911. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. if test -n "$ac_ct_DLLTOOL"; then
  5915. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5916. else
  5917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5918. for as_dir in $PATH
  5919. do
  5920. IFS=$as_save_IFS
  5921. test -z "$as_dir" && as_dir=.
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5924. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5926. break 2
  5927. fi
  5928. done
  5929. done
  5930. IFS=$as_save_IFS
  5931. fi
  5932. fi
  5933. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5934. if test -n "$ac_ct_DLLTOOL"; then
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5936. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5937. else
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5939. $as_echo "no" >&6; }
  5940. fi
  5941. if test "x$ac_ct_DLLTOOL" = x; then
  5942. DLLTOOL="false"
  5943. else
  5944. case $cross_compiling:$ac_tool_warned in
  5945. yes:)
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5947. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5948. ac_tool_warned=yes ;;
  5949. esac
  5950. DLLTOOL=$ac_ct_DLLTOOL
  5951. fi
  5952. else
  5953. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5954. fi
  5955. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5957. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5958. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5962. case $host_os in
  5963. cygwin* | mingw* | pw32* | cegcc*)
  5964. # two different shell functions defined in ltmain.sh;
  5965. # decide which one to use based on capabilities of $DLLTOOL
  5966. case `$DLLTOOL --help 2>&1` in
  5967. *--identify-strict*)
  5968. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5969. ;;
  5970. *)
  5971. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5972. ;;
  5973. esac
  5974. ;;
  5975. *)
  5976. # fallback: assume linklib IS sharedlib
  5977. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5978. ;;
  5979. esac
  5980. fi
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5982. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5983. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5984. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5985. if test -n "$ac_tool_prefix"; then
  5986. for ac_prog in ar
  5987. do
  5988. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5989. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5991. $as_echo_n "checking for $ac_word... " >&6; }
  5992. if ${ac_cv_prog_AR+:} false; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. if test -n "$AR"; then
  5996. ac_cv_prog_AR="$AR" # Let the user override the test.
  5997. else
  5998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5999. for as_dir in $PATH
  6000. do
  6001. IFS=$as_save_IFS
  6002. test -z "$as_dir" && as_dir=.
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6005. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6007. break 2
  6008. fi
  6009. done
  6010. done
  6011. IFS=$as_save_IFS
  6012. fi
  6013. fi
  6014. AR=$ac_cv_prog_AR
  6015. if test -n "$AR"; then
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6017. $as_echo "$AR" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6020. $as_echo "no" >&6; }
  6021. fi
  6022. test -n "$AR" && break
  6023. done
  6024. fi
  6025. if test -z "$AR"; then
  6026. ac_ct_AR=$AR
  6027. for ac_prog in ar
  6028. do
  6029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6030. set dummy $ac_prog; ac_word=$2
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6032. $as_echo_n "checking for $ac_word... " >&6; }
  6033. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. if test -n "$ac_ct_AR"; then
  6037. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6038. else
  6039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6040. for as_dir in $PATH
  6041. do
  6042. IFS=$as_save_IFS
  6043. test -z "$as_dir" && as_dir=.
  6044. for ac_exec_ext in '' $ac_executable_extensions; do
  6045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6046. ac_cv_prog_ac_ct_AR="$ac_prog"
  6047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6048. break 2
  6049. fi
  6050. done
  6051. done
  6052. IFS=$as_save_IFS
  6053. fi
  6054. fi
  6055. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6056. if test -n "$ac_ct_AR"; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6058. $as_echo "$ac_ct_AR" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. test -n "$ac_ct_AR" && break
  6064. done
  6065. if test "x$ac_ct_AR" = x; then
  6066. AR="false"
  6067. else
  6068. case $cross_compiling:$ac_tool_warned in
  6069. yes:)
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6072. ac_tool_warned=yes ;;
  6073. esac
  6074. AR=$ac_ct_AR
  6075. fi
  6076. fi
  6077. : ${AR=ar}
  6078. : ${AR_FLAGS=cr}
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6080. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6081. if ${lt_cv_ar_at_file+:} false; then :
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. lt_cv_ar_at_file=no
  6085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6086. /* end confdefs.h. */
  6087. int
  6088. main ()
  6089. {
  6090. ;
  6091. return 0;
  6092. }
  6093. _ACEOF
  6094. if ac_fn_c_try_compile "$LINENO"; then :
  6095. echo conftest.$ac_objext > conftest.lst
  6096. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6097. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6098. (eval $lt_ar_try) 2>&5
  6099. ac_status=$?
  6100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6101. test $ac_status = 0; }
  6102. if test 0 -eq "$ac_status"; then
  6103. # Ensure the archiver fails upon bogus file names.
  6104. rm -f conftest.$ac_objext libconftest.a
  6105. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6106. (eval $lt_ar_try) 2>&5
  6107. ac_status=$?
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6109. test $ac_status = 0; }
  6110. if test 0 -ne "$ac_status"; then
  6111. lt_cv_ar_at_file=@
  6112. fi
  6113. fi
  6114. rm -f conftest.* libconftest.a
  6115. fi
  6116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6117. fi
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6119. $as_echo "$lt_cv_ar_at_file" >&6; }
  6120. if test no = "$lt_cv_ar_at_file"; then
  6121. archiver_list_spec=
  6122. else
  6123. archiver_list_spec=$lt_cv_ar_at_file
  6124. fi
  6125. if test -n "$ac_tool_prefix"; then
  6126. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6127. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6129. $as_echo_n "checking for $ac_word... " >&6; }
  6130. if ${ac_cv_prog_STRIP+:} false; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. if test -n "$STRIP"; then
  6134. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6135. else
  6136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6137. for as_dir in $PATH
  6138. do
  6139. IFS=$as_save_IFS
  6140. test -z "$as_dir" && as_dir=.
  6141. for ac_exec_ext in '' $ac_executable_extensions; do
  6142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6143. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6145. break 2
  6146. fi
  6147. done
  6148. done
  6149. IFS=$as_save_IFS
  6150. fi
  6151. fi
  6152. STRIP=$ac_cv_prog_STRIP
  6153. if test -n "$STRIP"; then
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6155. $as_echo "$STRIP" >&6; }
  6156. else
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6158. $as_echo "no" >&6; }
  6159. fi
  6160. fi
  6161. if test -z "$ac_cv_prog_STRIP"; then
  6162. ac_ct_STRIP=$STRIP
  6163. # Extract the first word of "strip", so it can be a program name with args.
  6164. set dummy strip; ac_word=$2
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6166. $as_echo_n "checking for $ac_word... " >&6; }
  6167. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. if test -n "$ac_ct_STRIP"; then
  6171. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6172. else
  6173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6174. for as_dir in $PATH
  6175. do
  6176. IFS=$as_save_IFS
  6177. test -z "$as_dir" && as_dir=.
  6178. for ac_exec_ext in '' $ac_executable_extensions; do
  6179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6180. ac_cv_prog_ac_ct_STRIP="strip"
  6181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6182. break 2
  6183. fi
  6184. done
  6185. done
  6186. IFS=$as_save_IFS
  6187. fi
  6188. fi
  6189. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6190. if test -n "$ac_ct_STRIP"; then
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6192. $as_echo "$ac_ct_STRIP" >&6; }
  6193. else
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6195. $as_echo "no" >&6; }
  6196. fi
  6197. if test "x$ac_ct_STRIP" = x; then
  6198. STRIP=":"
  6199. else
  6200. case $cross_compiling:$ac_tool_warned in
  6201. yes:)
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6204. ac_tool_warned=yes ;;
  6205. esac
  6206. STRIP=$ac_ct_STRIP
  6207. fi
  6208. else
  6209. STRIP="$ac_cv_prog_STRIP"
  6210. fi
  6211. test -z "$STRIP" && STRIP=:
  6212. if test -n "$ac_tool_prefix"; then
  6213. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6214. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if ${ac_cv_prog_RANLIB+:} false; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$RANLIB"; then
  6221. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6230. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. RANLIB=$ac_cv_prog_RANLIB
  6240. if test -n "$RANLIB"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6242. $as_echo "$RANLIB" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. fi
  6248. if test -z "$ac_cv_prog_RANLIB"; then
  6249. ac_ct_RANLIB=$RANLIB
  6250. # Extract the first word of "ranlib", so it can be a program name with args.
  6251. set dummy ranlib; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$ac_ct_RANLIB"; then
  6258. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6267. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6277. if test -n "$ac_ct_RANLIB"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6279. $as_echo "$ac_ct_RANLIB" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. if test "x$ac_ct_RANLIB" = x; then
  6285. RANLIB=":"
  6286. else
  6287. case $cross_compiling:$ac_tool_warned in
  6288. yes:)
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6290. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6291. ac_tool_warned=yes ;;
  6292. esac
  6293. RANLIB=$ac_ct_RANLIB
  6294. fi
  6295. else
  6296. RANLIB="$ac_cv_prog_RANLIB"
  6297. fi
  6298. test -z "$RANLIB" && RANLIB=:
  6299. # Determine commands to create old-style static archives.
  6300. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6301. old_postinstall_cmds='chmod 644 $oldlib'
  6302. old_postuninstall_cmds=
  6303. if test -n "$RANLIB"; then
  6304. case $host_os in
  6305. bitrig* | openbsd*)
  6306. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6307. ;;
  6308. *)
  6309. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6310. ;;
  6311. esac
  6312. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6313. fi
  6314. case $host_os in
  6315. darwin*)
  6316. lock_old_archive_extraction=yes ;;
  6317. *)
  6318. lock_old_archive_extraction=no ;;
  6319. esac
  6320. # If no C compiler was specified, use CC.
  6321. LTCC=${LTCC-"$CC"}
  6322. # If no C compiler flags were specified, use CFLAGS.
  6323. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6324. # Allow CC to be a program name with arguments.
  6325. compiler=$CC
  6326. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6328. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6329. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. # These are sane defaults that work on at least a few old systems.
  6333. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6334. # Character class describing NM global symbol codes.
  6335. symcode='[BCDEGRST]'
  6336. # Regexp to match symbols that can be accessed directly from C.
  6337. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6338. # Define system-specific variables.
  6339. case $host_os in
  6340. aix*)
  6341. symcode='[BCDT]'
  6342. ;;
  6343. cygwin* | mingw* | pw32* | cegcc*)
  6344. symcode='[ABCDGISTW]'
  6345. ;;
  6346. hpux*)
  6347. if test ia64 = "$host_cpu"; then
  6348. symcode='[ABCDEGRST]'
  6349. fi
  6350. ;;
  6351. irix* | nonstopux*)
  6352. symcode='[BCDEGRST]'
  6353. ;;
  6354. osf*)
  6355. symcode='[BCDEGQRST]'
  6356. ;;
  6357. solaris*)
  6358. symcode='[BDRT]'
  6359. ;;
  6360. sco3.2v5*)
  6361. symcode='[DT]'
  6362. ;;
  6363. sysv4.2uw2*)
  6364. symcode='[DT]'
  6365. ;;
  6366. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6367. symcode='[ABDT]'
  6368. ;;
  6369. sysv4)
  6370. symcode='[DFNSTU]'
  6371. ;;
  6372. esac
  6373. # If we're using GNU nm, then use its standard symbol codes.
  6374. case `$NM -V 2>&1` in
  6375. *GNU* | *'with BFD'*)
  6376. symcode='[ABCDGIRSTW]' ;;
  6377. esac
  6378. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6379. # Gets list of data symbols to import.
  6380. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6381. # Adjust the below global symbol transforms to fixup imported variables.
  6382. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6383. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6384. lt_c_name_lib_hook="\
  6385. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6386. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6387. else
  6388. # Disable hooks by default.
  6389. lt_cv_sys_global_symbol_to_import=
  6390. lt_cdecl_hook=
  6391. lt_c_name_hook=
  6392. lt_c_name_lib_hook=
  6393. fi
  6394. # Transform an extracted symbol line into a proper C declaration.
  6395. # Some systems (esp. on ia64) link data and code symbols differently,
  6396. # so use this general approach.
  6397. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6398. $lt_cdecl_hook\
  6399. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6400. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6401. # Transform an extracted symbol line into symbol name and symbol address
  6402. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6403. $lt_c_name_hook\
  6404. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6405. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6406. # Transform an extracted symbol line into symbol name with lib prefix and
  6407. # symbol address.
  6408. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6409. $lt_c_name_lib_hook\
  6410. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6411. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6412. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6413. # Handle CRLF in mingw tool chain
  6414. opt_cr=
  6415. case $build_os in
  6416. mingw*)
  6417. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6418. ;;
  6419. esac
  6420. # Try without a prefix underscore, then with it.
  6421. for ac_symprfx in "" "_"; do
  6422. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6423. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6424. # Write the raw and C identifiers.
  6425. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6426. # Fake it for dumpbin and say T for any non-static function,
  6427. # D for any global variable and I for any imported variable.
  6428. # Also find C++ and __fastcall symbols from MSVC++,
  6429. # which start with @ or ?.
  6430. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6431. " {last_section=section; section=\$ 3};"\
  6432. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6433. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6434. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6435. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6436. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6437. " \$ 0!~/External *\|/{next};"\
  6438. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6439. " {if(hide[section]) next};"\
  6440. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6441. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6442. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6443. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6444. " ' prfx=^$ac_symprfx"
  6445. else
  6446. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6447. fi
  6448. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6449. # Check to see that the pipe works correctly.
  6450. pipe_works=no
  6451. rm -f conftest*
  6452. cat > conftest.$ac_ext <<_LT_EOF
  6453. #ifdef __cplusplus
  6454. extern "C" {
  6455. #endif
  6456. char nm_test_var;
  6457. void nm_test_func(void);
  6458. void nm_test_func(void){}
  6459. #ifdef __cplusplus
  6460. }
  6461. #endif
  6462. int main(){nm_test_var='a';nm_test_func();return(0);}
  6463. _LT_EOF
  6464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6465. (eval $ac_compile) 2>&5
  6466. ac_status=$?
  6467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6468. test $ac_status = 0; }; then
  6469. # Now try to grab the symbols.
  6470. nlist=conftest.nm
  6471. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6472. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6473. # Try sorting and uniquifying the output.
  6474. if sort "$nlist" | uniq > "$nlist"T; then
  6475. mv -f "$nlist"T "$nlist"
  6476. else
  6477. rm -f "$nlist"T
  6478. fi
  6479. # Make sure that we snagged all the symbols we need.
  6480. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6481. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6482. cat <<_LT_EOF > conftest.$ac_ext
  6483. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6484. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6485. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6486. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6487. # define LT_DLSYM_CONST
  6488. #elif defined __osf__
  6489. /* This system does not cope well with relocations in const data. */
  6490. # define LT_DLSYM_CONST
  6491. #else
  6492. # define LT_DLSYM_CONST const
  6493. #endif
  6494. #ifdef __cplusplus
  6495. extern "C" {
  6496. #endif
  6497. _LT_EOF
  6498. # Now generate the symbol file.
  6499. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6500. cat <<_LT_EOF >> conftest.$ac_ext
  6501. /* The mapping between symbol names and symbols. */
  6502. LT_DLSYM_CONST struct {
  6503. const char *name;
  6504. void *address;
  6505. }
  6506. lt__PROGRAM__LTX_preloaded_symbols[] =
  6507. {
  6508. { "@PROGRAM@", (void *) 0 },
  6509. _LT_EOF
  6510. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6511. cat <<\_LT_EOF >> conftest.$ac_ext
  6512. {0, (void *) 0}
  6513. };
  6514. /* This works around a problem in FreeBSD linker */
  6515. #ifdef FREEBSD_WORKAROUND
  6516. static const void *lt_preloaded_setup() {
  6517. return lt__PROGRAM__LTX_preloaded_symbols;
  6518. }
  6519. #endif
  6520. #ifdef __cplusplus
  6521. }
  6522. #endif
  6523. _LT_EOF
  6524. # Now try linking the two files.
  6525. mv conftest.$ac_objext conftstm.$ac_objext
  6526. lt_globsym_save_LIBS=$LIBS
  6527. lt_globsym_save_CFLAGS=$CFLAGS
  6528. LIBS=conftstm.$ac_objext
  6529. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6531. (eval $ac_link) 2>&5
  6532. ac_status=$?
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6534. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6535. pipe_works=yes
  6536. fi
  6537. LIBS=$lt_globsym_save_LIBS
  6538. CFLAGS=$lt_globsym_save_CFLAGS
  6539. else
  6540. echo "cannot find nm_test_func in $nlist" >&5
  6541. fi
  6542. else
  6543. echo "cannot find nm_test_var in $nlist" >&5
  6544. fi
  6545. else
  6546. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6547. fi
  6548. else
  6549. echo "$progname: failed program was:" >&5
  6550. cat conftest.$ac_ext >&5
  6551. fi
  6552. rm -rf conftest* conftst*
  6553. # Do not use the global_symbol_pipe unless it works.
  6554. if test yes = "$pipe_works"; then
  6555. break
  6556. else
  6557. lt_cv_sys_global_symbol_pipe=
  6558. fi
  6559. done
  6560. fi
  6561. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6562. lt_cv_sys_global_symbol_to_cdecl=
  6563. fi
  6564. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6566. $as_echo "failed" >&6; }
  6567. else
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6569. $as_echo "ok" >&6; }
  6570. fi
  6571. # Response file support.
  6572. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6573. nm_file_list_spec='@'
  6574. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6575. nm_file_list_spec='@'
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6578. $as_echo_n "checking for sysroot... " >&6; }
  6579. # Check whether --with-sysroot was given.
  6580. if test "${with_sysroot+set}" = set; then :
  6581. withval=$with_sysroot;
  6582. else
  6583. with_sysroot=no
  6584. fi
  6585. lt_sysroot=
  6586. case $with_sysroot in #(
  6587. yes)
  6588. if test yes = "$GCC"; then
  6589. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6590. fi
  6591. ;; #(
  6592. /*)
  6593. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6594. ;; #(
  6595. no|'')
  6596. ;; #(
  6597. *)
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6599. $as_echo "$with_sysroot" >&6; }
  6600. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6601. ;;
  6602. esac
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6604. $as_echo "${lt_sysroot:-no}" >&6; }
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6606. $as_echo_n "checking for a working dd... " >&6; }
  6607. if ${ac_cv_path_lt_DD+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. printf 0123456789abcdef0123456789abcdef >conftest.i
  6611. cat conftest.i conftest.i >conftest2.i
  6612. : ${lt_DD:=$DD}
  6613. if test -z "$lt_DD"; then
  6614. ac_path_lt_DD_found=false
  6615. # Loop through the user's path and test for each of PROGNAME-LIST
  6616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6617. for as_dir in $PATH
  6618. do
  6619. IFS=$as_save_IFS
  6620. test -z "$as_dir" && as_dir=.
  6621. for ac_prog in dd; do
  6622. for ac_exec_ext in '' $ac_executable_extensions; do
  6623. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6624. as_fn_executable_p "$ac_path_lt_DD" || continue
  6625. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6626. cmp -s conftest.i conftest.out \
  6627. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6628. fi
  6629. $ac_path_lt_DD_found && break 3
  6630. done
  6631. done
  6632. done
  6633. IFS=$as_save_IFS
  6634. if test -z "$ac_cv_path_lt_DD"; then
  6635. :
  6636. fi
  6637. else
  6638. ac_cv_path_lt_DD=$lt_DD
  6639. fi
  6640. rm -f conftest.i conftest2.i conftest.out
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6643. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6645. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6646. if ${lt_cv_truncate_bin+:} false; then :
  6647. $as_echo_n "(cached) " >&6
  6648. else
  6649. printf 0123456789abcdef0123456789abcdef >conftest.i
  6650. cat conftest.i conftest.i >conftest2.i
  6651. lt_cv_truncate_bin=
  6652. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6653. cmp -s conftest.i conftest.out \
  6654. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6655. fi
  6656. rm -f conftest.i conftest2.i conftest.out
  6657. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6658. fi
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6660. $as_echo "$lt_cv_truncate_bin" >&6; }
  6661. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6662. func_cc_basename ()
  6663. {
  6664. for cc_temp in $*""; do
  6665. case $cc_temp in
  6666. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6667. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6668. \-*) ;;
  6669. *) break;;
  6670. esac
  6671. done
  6672. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6673. }
  6674. # Check whether --enable-libtool-lock was given.
  6675. if test "${enable_libtool_lock+set}" = set; then :
  6676. enableval=$enable_libtool_lock;
  6677. fi
  6678. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6679. # Some flags need to be propagated to the compiler or linker for good
  6680. # libtool support.
  6681. case $host in
  6682. ia64-*-hpux*)
  6683. # Find out what ABI is being produced by ac_compile, and set mode
  6684. # options accordingly.
  6685. echo 'int i;' > conftest.$ac_ext
  6686. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6687. (eval $ac_compile) 2>&5
  6688. ac_status=$?
  6689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6690. test $ac_status = 0; }; then
  6691. case `/usr/bin/file conftest.$ac_objext` in
  6692. *ELF-32*)
  6693. HPUX_IA64_MODE=32
  6694. ;;
  6695. *ELF-64*)
  6696. HPUX_IA64_MODE=64
  6697. ;;
  6698. esac
  6699. fi
  6700. rm -rf conftest*
  6701. ;;
  6702. *-*-irix6*)
  6703. # Find out what ABI is being produced by ac_compile, and set linker
  6704. # options accordingly.
  6705. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6707. (eval $ac_compile) 2>&5
  6708. ac_status=$?
  6709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6710. test $ac_status = 0; }; then
  6711. if test yes = "$lt_cv_prog_gnu_ld"; then
  6712. case `/usr/bin/file conftest.$ac_objext` in
  6713. *32-bit*)
  6714. LD="${LD-ld} -melf32bsmip"
  6715. ;;
  6716. *N32*)
  6717. LD="${LD-ld} -melf32bmipn32"
  6718. ;;
  6719. *64-bit*)
  6720. LD="${LD-ld} -melf64bmip"
  6721. ;;
  6722. esac
  6723. else
  6724. case `/usr/bin/file conftest.$ac_objext` in
  6725. *32-bit*)
  6726. LD="${LD-ld} -32"
  6727. ;;
  6728. *N32*)
  6729. LD="${LD-ld} -n32"
  6730. ;;
  6731. *64-bit*)
  6732. LD="${LD-ld} -64"
  6733. ;;
  6734. esac
  6735. fi
  6736. fi
  6737. rm -rf conftest*
  6738. ;;
  6739. mips64*-*linux*)
  6740. # Find out what ABI is being produced by ac_compile, and set linker
  6741. # options accordingly.
  6742. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6744. (eval $ac_compile) 2>&5
  6745. ac_status=$?
  6746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6747. test $ac_status = 0; }; then
  6748. emul=elf
  6749. case `/usr/bin/file conftest.$ac_objext` in
  6750. *32-bit*)
  6751. emul="${emul}32"
  6752. ;;
  6753. *64-bit*)
  6754. emul="${emul}64"
  6755. ;;
  6756. esac
  6757. case `/usr/bin/file conftest.$ac_objext` in
  6758. *MSB*)
  6759. emul="${emul}btsmip"
  6760. ;;
  6761. *LSB*)
  6762. emul="${emul}ltsmip"
  6763. ;;
  6764. esac
  6765. case `/usr/bin/file conftest.$ac_objext` in
  6766. *N32*)
  6767. emul="${emul}n32"
  6768. ;;
  6769. esac
  6770. LD="${LD-ld} -m $emul"
  6771. fi
  6772. rm -rf conftest*
  6773. ;;
  6774. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6775. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6776. # Find out what ABI is being produced by ac_compile, and set linker
  6777. # options accordingly. Note that the listed cases only cover the
  6778. # situations where additional linker options are needed (such as when
  6779. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6780. # vice versa); the common cases where no linker options are needed do
  6781. # not appear in the list.
  6782. echo 'int i;' > conftest.$ac_ext
  6783. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6784. (eval $ac_compile) 2>&5
  6785. ac_status=$?
  6786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6787. test $ac_status = 0; }; then
  6788. case `/usr/bin/file conftest.o` in
  6789. *32-bit*)
  6790. case $host in
  6791. x86_64-*kfreebsd*-gnu)
  6792. LD="${LD-ld} -m elf_i386_fbsd"
  6793. ;;
  6794. x86_64-*linux*)
  6795. case `/usr/bin/file conftest.o` in
  6796. *x86-64*)
  6797. LD="${LD-ld} -m elf32_x86_64"
  6798. ;;
  6799. *)
  6800. LD="${LD-ld} -m elf_i386"
  6801. ;;
  6802. esac
  6803. ;;
  6804. powerpc64le-*linux*)
  6805. LD="${LD-ld} -m elf32lppclinux"
  6806. ;;
  6807. powerpc64-*linux*)
  6808. LD="${LD-ld} -m elf32ppclinux"
  6809. ;;
  6810. s390x-*linux*)
  6811. LD="${LD-ld} -m elf_s390"
  6812. ;;
  6813. sparc64-*linux*)
  6814. LD="${LD-ld} -m elf32_sparc"
  6815. ;;
  6816. esac
  6817. ;;
  6818. *64-bit*)
  6819. case $host in
  6820. x86_64-*kfreebsd*-gnu)
  6821. LD="${LD-ld} -m elf_x86_64_fbsd"
  6822. ;;
  6823. x86_64-*linux*)
  6824. LD="${LD-ld} -m elf_x86_64"
  6825. ;;
  6826. powerpcle-*linux*)
  6827. LD="${LD-ld} -m elf64lppc"
  6828. ;;
  6829. powerpc-*linux*)
  6830. LD="${LD-ld} -m elf64ppc"
  6831. ;;
  6832. s390*-*linux*|s390*-*tpf*)
  6833. LD="${LD-ld} -m elf64_s390"
  6834. ;;
  6835. sparc*-*linux*)
  6836. LD="${LD-ld} -m elf64_sparc"
  6837. ;;
  6838. esac
  6839. ;;
  6840. esac
  6841. fi
  6842. rm -rf conftest*
  6843. ;;
  6844. *-*-sco3.2v5*)
  6845. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6846. SAVE_CFLAGS=$CFLAGS
  6847. CFLAGS="$CFLAGS -belf"
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6849. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6850. if ${lt_cv_cc_needs_belf+:} false; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. ac_ext=c
  6854. ac_cpp='$CPP $CPPFLAGS'
  6855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6859. /* end confdefs.h. */
  6860. int
  6861. main ()
  6862. {
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. if ac_fn_c_try_link "$LINENO"; then :
  6868. lt_cv_cc_needs_belf=yes
  6869. else
  6870. lt_cv_cc_needs_belf=no
  6871. fi
  6872. rm -f core conftest.err conftest.$ac_objext \
  6873. conftest$ac_exeext conftest.$ac_ext
  6874. ac_ext=c
  6875. ac_cpp='$CPP $CPPFLAGS'
  6876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6879. fi
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6881. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6882. if test yes != "$lt_cv_cc_needs_belf"; then
  6883. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6884. CFLAGS=$SAVE_CFLAGS
  6885. fi
  6886. ;;
  6887. *-*solaris*)
  6888. # Find out what ABI is being produced by ac_compile, and set linker
  6889. # options accordingly.
  6890. echo 'int i;' > conftest.$ac_ext
  6891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6892. (eval $ac_compile) 2>&5
  6893. ac_status=$?
  6894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6895. test $ac_status = 0; }; then
  6896. case `/usr/bin/file conftest.o` in
  6897. *64-bit*)
  6898. case $lt_cv_prog_gnu_ld in
  6899. yes*)
  6900. case $host in
  6901. i?86-*-solaris*|x86_64-*-solaris*)
  6902. LD="${LD-ld} -m elf_x86_64"
  6903. ;;
  6904. sparc*-*-solaris*)
  6905. LD="${LD-ld} -m elf64_sparc"
  6906. ;;
  6907. esac
  6908. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6909. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6910. LD=${LD-ld}_sol2
  6911. fi
  6912. ;;
  6913. *)
  6914. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6915. LD="${LD-ld} -64"
  6916. fi
  6917. ;;
  6918. esac
  6919. ;;
  6920. esac
  6921. fi
  6922. rm -rf conftest*
  6923. ;;
  6924. esac
  6925. need_locks=$enable_libtool_lock
  6926. if test -n "$ac_tool_prefix"; then
  6927. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6928. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6930. $as_echo_n "checking for $ac_word... " >&6; }
  6931. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. if test -n "$MANIFEST_TOOL"; then
  6935. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6936. else
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH
  6939. do
  6940. IFS=$as_save_IFS
  6941. test -z "$as_dir" && as_dir=.
  6942. for ac_exec_ext in '' $ac_executable_extensions; do
  6943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6944. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6946. break 2
  6947. fi
  6948. done
  6949. done
  6950. IFS=$as_save_IFS
  6951. fi
  6952. fi
  6953. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6954. if test -n "$MANIFEST_TOOL"; then
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6956. $as_echo "$MANIFEST_TOOL" >&6; }
  6957. else
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6959. $as_echo "no" >&6; }
  6960. fi
  6961. fi
  6962. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6963. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6964. # Extract the first word of "mt", so it can be a program name with args.
  6965. set dummy mt; ac_word=$2
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6967. $as_echo_n "checking for $ac_word... " >&6; }
  6968. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6969. $as_echo_n "(cached) " >&6
  6970. else
  6971. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6972. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6973. else
  6974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6975. for as_dir in $PATH
  6976. do
  6977. IFS=$as_save_IFS
  6978. test -z "$as_dir" && as_dir=.
  6979. for ac_exec_ext in '' $ac_executable_extensions; do
  6980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6981. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6983. break 2
  6984. fi
  6985. done
  6986. done
  6987. IFS=$as_save_IFS
  6988. fi
  6989. fi
  6990. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6991. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6993. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6994. else
  6995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6996. $as_echo "no" >&6; }
  6997. fi
  6998. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6999. MANIFEST_TOOL=":"
  7000. else
  7001. case $cross_compiling:$ac_tool_warned in
  7002. yes:)
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7005. ac_tool_warned=yes ;;
  7006. esac
  7007. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7008. fi
  7009. else
  7010. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7011. fi
  7012. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7014. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7015. if ${lt_cv_path_mainfest_tool+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. lt_cv_path_mainfest_tool=no
  7019. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7020. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7021. cat conftest.err >&5
  7022. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7023. lt_cv_path_mainfest_tool=yes
  7024. fi
  7025. rm -f conftest*
  7026. fi
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7028. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7029. if test yes != "$lt_cv_path_mainfest_tool"; then
  7030. MANIFEST_TOOL=:
  7031. fi
  7032. case $host_os in
  7033. rhapsody* | darwin*)
  7034. if test -n "$ac_tool_prefix"; then
  7035. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7036. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7038. $as_echo_n "checking for $ac_word... " >&6; }
  7039. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. if test -n "$DSYMUTIL"; then
  7043. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7044. else
  7045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7046. for as_dir in $PATH
  7047. do
  7048. IFS=$as_save_IFS
  7049. test -z "$as_dir" && as_dir=.
  7050. for ac_exec_ext in '' $ac_executable_extensions; do
  7051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7052. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7054. break 2
  7055. fi
  7056. done
  7057. done
  7058. IFS=$as_save_IFS
  7059. fi
  7060. fi
  7061. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7062. if test -n "$DSYMUTIL"; then
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7064. $as_echo "$DSYMUTIL" >&6; }
  7065. else
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7067. $as_echo "no" >&6; }
  7068. fi
  7069. fi
  7070. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7071. ac_ct_DSYMUTIL=$DSYMUTIL
  7072. # Extract the first word of "dsymutil", so it can be a program name with args.
  7073. set dummy dsymutil; ac_word=$2
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7075. $as_echo_n "checking for $ac_word... " >&6; }
  7076. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. if test -n "$ac_ct_DSYMUTIL"; then
  7080. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7081. else
  7082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7083. for as_dir in $PATH
  7084. do
  7085. IFS=$as_save_IFS
  7086. test -z "$as_dir" && as_dir=.
  7087. for ac_exec_ext in '' $ac_executable_extensions; do
  7088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7089. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7091. break 2
  7092. fi
  7093. done
  7094. done
  7095. IFS=$as_save_IFS
  7096. fi
  7097. fi
  7098. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7099. if test -n "$ac_ct_DSYMUTIL"; then
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7101. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7102. else
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7104. $as_echo "no" >&6; }
  7105. fi
  7106. if test "x$ac_ct_DSYMUTIL" = x; then
  7107. DSYMUTIL=":"
  7108. else
  7109. case $cross_compiling:$ac_tool_warned in
  7110. yes:)
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7113. ac_tool_warned=yes ;;
  7114. esac
  7115. DSYMUTIL=$ac_ct_DSYMUTIL
  7116. fi
  7117. else
  7118. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7119. fi
  7120. if test -n "$ac_tool_prefix"; then
  7121. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7122. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7124. $as_echo_n "checking for $ac_word... " >&6; }
  7125. if ${ac_cv_prog_NMEDIT+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. if test -n "$NMEDIT"; then
  7129. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7130. else
  7131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7132. for as_dir in $PATH
  7133. do
  7134. IFS=$as_save_IFS
  7135. test -z "$as_dir" && as_dir=.
  7136. for ac_exec_ext in '' $ac_executable_extensions; do
  7137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7138. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7140. break 2
  7141. fi
  7142. done
  7143. done
  7144. IFS=$as_save_IFS
  7145. fi
  7146. fi
  7147. NMEDIT=$ac_cv_prog_NMEDIT
  7148. if test -n "$NMEDIT"; then
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7150. $as_echo "$NMEDIT" >&6; }
  7151. else
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7153. $as_echo "no" >&6; }
  7154. fi
  7155. fi
  7156. if test -z "$ac_cv_prog_NMEDIT"; then
  7157. ac_ct_NMEDIT=$NMEDIT
  7158. # Extract the first word of "nmedit", so it can be a program name with args.
  7159. set dummy nmedit; ac_word=$2
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7161. $as_echo_n "checking for $ac_word... " >&6; }
  7162. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. if test -n "$ac_ct_NMEDIT"; then
  7166. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7167. else
  7168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7169. for as_dir in $PATH
  7170. do
  7171. IFS=$as_save_IFS
  7172. test -z "$as_dir" && as_dir=.
  7173. for ac_exec_ext in '' $ac_executable_extensions; do
  7174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7175. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7177. break 2
  7178. fi
  7179. done
  7180. done
  7181. IFS=$as_save_IFS
  7182. fi
  7183. fi
  7184. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7185. if test -n "$ac_ct_NMEDIT"; then
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7187. $as_echo "$ac_ct_NMEDIT" >&6; }
  7188. else
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7190. $as_echo "no" >&6; }
  7191. fi
  7192. if test "x$ac_ct_NMEDIT" = x; then
  7193. NMEDIT=":"
  7194. else
  7195. case $cross_compiling:$ac_tool_warned in
  7196. yes:)
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7199. ac_tool_warned=yes ;;
  7200. esac
  7201. NMEDIT=$ac_ct_NMEDIT
  7202. fi
  7203. else
  7204. NMEDIT="$ac_cv_prog_NMEDIT"
  7205. fi
  7206. if test -n "$ac_tool_prefix"; then
  7207. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7208. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7210. $as_echo_n "checking for $ac_word... " >&6; }
  7211. if ${ac_cv_prog_LIPO+:} false; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. if test -n "$LIPO"; then
  7215. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7216. else
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220. IFS=$as_save_IFS
  7221. test -z "$as_dir" && as_dir=.
  7222. for ac_exec_ext in '' $ac_executable_extensions; do
  7223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7224. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226. break 2
  7227. fi
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. fi
  7232. fi
  7233. LIPO=$ac_cv_prog_LIPO
  7234. if test -n "$LIPO"; then
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7236. $as_echo "$LIPO" >&6; }
  7237. else
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7239. $as_echo "no" >&6; }
  7240. fi
  7241. fi
  7242. if test -z "$ac_cv_prog_LIPO"; then
  7243. ac_ct_LIPO=$LIPO
  7244. # Extract the first word of "lipo", so it can be a program name with args.
  7245. set dummy lipo; ac_word=$2
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7247. $as_echo_n "checking for $ac_word... " >&6; }
  7248. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7249. $as_echo_n "(cached) " >&6
  7250. else
  7251. if test -n "$ac_ct_LIPO"; then
  7252. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7253. else
  7254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7255. for as_dir in $PATH
  7256. do
  7257. IFS=$as_save_IFS
  7258. test -z "$as_dir" && as_dir=.
  7259. for ac_exec_ext in '' $ac_executable_extensions; do
  7260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7261. ac_cv_prog_ac_ct_LIPO="lipo"
  7262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7263. break 2
  7264. fi
  7265. done
  7266. done
  7267. IFS=$as_save_IFS
  7268. fi
  7269. fi
  7270. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7271. if test -n "$ac_ct_LIPO"; then
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7273. $as_echo "$ac_ct_LIPO" >&6; }
  7274. else
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7276. $as_echo "no" >&6; }
  7277. fi
  7278. if test "x$ac_ct_LIPO" = x; then
  7279. LIPO=":"
  7280. else
  7281. case $cross_compiling:$ac_tool_warned in
  7282. yes:)
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7285. ac_tool_warned=yes ;;
  7286. esac
  7287. LIPO=$ac_ct_LIPO
  7288. fi
  7289. else
  7290. LIPO="$ac_cv_prog_LIPO"
  7291. fi
  7292. if test -n "$ac_tool_prefix"; then
  7293. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7294. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7296. $as_echo_n "checking for $ac_word... " >&6; }
  7297. if ${ac_cv_prog_OTOOL+:} false; then :
  7298. $as_echo_n "(cached) " >&6
  7299. else
  7300. if test -n "$OTOOL"; then
  7301. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7302. else
  7303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7304. for as_dir in $PATH
  7305. do
  7306. IFS=$as_save_IFS
  7307. test -z "$as_dir" && as_dir=.
  7308. for ac_exec_ext in '' $ac_executable_extensions; do
  7309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7310. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7312. break 2
  7313. fi
  7314. done
  7315. done
  7316. IFS=$as_save_IFS
  7317. fi
  7318. fi
  7319. OTOOL=$ac_cv_prog_OTOOL
  7320. if test -n "$OTOOL"; then
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7322. $as_echo "$OTOOL" >&6; }
  7323. else
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7325. $as_echo "no" >&6; }
  7326. fi
  7327. fi
  7328. if test -z "$ac_cv_prog_OTOOL"; then
  7329. ac_ct_OTOOL=$OTOOL
  7330. # Extract the first word of "otool", so it can be a program name with args.
  7331. set dummy otool; ac_word=$2
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7333. $as_echo_n "checking for $ac_word... " >&6; }
  7334. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7335. $as_echo_n "(cached) " >&6
  7336. else
  7337. if test -n "$ac_ct_OTOOL"; then
  7338. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7339. else
  7340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7341. for as_dir in $PATH
  7342. do
  7343. IFS=$as_save_IFS
  7344. test -z "$as_dir" && as_dir=.
  7345. for ac_exec_ext in '' $ac_executable_extensions; do
  7346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7347. ac_cv_prog_ac_ct_OTOOL="otool"
  7348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7349. break 2
  7350. fi
  7351. done
  7352. done
  7353. IFS=$as_save_IFS
  7354. fi
  7355. fi
  7356. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7357. if test -n "$ac_ct_OTOOL"; then
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7359. $as_echo "$ac_ct_OTOOL" >&6; }
  7360. else
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7362. $as_echo "no" >&6; }
  7363. fi
  7364. if test "x$ac_ct_OTOOL" = x; then
  7365. OTOOL=":"
  7366. else
  7367. case $cross_compiling:$ac_tool_warned in
  7368. yes:)
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7371. ac_tool_warned=yes ;;
  7372. esac
  7373. OTOOL=$ac_ct_OTOOL
  7374. fi
  7375. else
  7376. OTOOL="$ac_cv_prog_OTOOL"
  7377. fi
  7378. if test -n "$ac_tool_prefix"; then
  7379. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7380. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7382. $as_echo_n "checking for $ac_word... " >&6; }
  7383. if ${ac_cv_prog_OTOOL64+:} false; then :
  7384. $as_echo_n "(cached) " >&6
  7385. else
  7386. if test -n "$OTOOL64"; then
  7387. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7388. else
  7389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7390. for as_dir in $PATH
  7391. do
  7392. IFS=$as_save_IFS
  7393. test -z "$as_dir" && as_dir=.
  7394. for ac_exec_ext in '' $ac_executable_extensions; do
  7395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7396. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7398. break 2
  7399. fi
  7400. done
  7401. done
  7402. IFS=$as_save_IFS
  7403. fi
  7404. fi
  7405. OTOOL64=$ac_cv_prog_OTOOL64
  7406. if test -n "$OTOOL64"; then
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7408. $as_echo "$OTOOL64" >&6; }
  7409. else
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7411. $as_echo "no" >&6; }
  7412. fi
  7413. fi
  7414. if test -z "$ac_cv_prog_OTOOL64"; then
  7415. ac_ct_OTOOL64=$OTOOL64
  7416. # Extract the first word of "otool64", so it can be a program name with args.
  7417. set dummy otool64; ac_word=$2
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7419. $as_echo_n "checking for $ac_word... " >&6; }
  7420. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7421. $as_echo_n "(cached) " >&6
  7422. else
  7423. if test -n "$ac_ct_OTOOL64"; then
  7424. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7425. else
  7426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7427. for as_dir in $PATH
  7428. do
  7429. IFS=$as_save_IFS
  7430. test -z "$as_dir" && as_dir=.
  7431. for ac_exec_ext in '' $ac_executable_extensions; do
  7432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7433. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7435. break 2
  7436. fi
  7437. done
  7438. done
  7439. IFS=$as_save_IFS
  7440. fi
  7441. fi
  7442. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7443. if test -n "$ac_ct_OTOOL64"; then
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7445. $as_echo "$ac_ct_OTOOL64" >&6; }
  7446. else
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7448. $as_echo "no" >&6; }
  7449. fi
  7450. if test "x$ac_ct_OTOOL64" = x; then
  7451. OTOOL64=":"
  7452. else
  7453. case $cross_compiling:$ac_tool_warned in
  7454. yes:)
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7457. ac_tool_warned=yes ;;
  7458. esac
  7459. OTOOL64=$ac_ct_OTOOL64
  7460. fi
  7461. else
  7462. OTOOL64="$ac_cv_prog_OTOOL64"
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7465. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7466. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7467. $as_echo_n "(cached) " >&6
  7468. else
  7469. lt_cv_apple_cc_single_mod=no
  7470. if test -z "$LT_MULTI_MODULE"; then
  7471. # By default we will add the -single_module flag. You can override
  7472. # by either setting the environment variable LT_MULTI_MODULE
  7473. # non-empty at configure time, or by adding -multi_module to the
  7474. # link flags.
  7475. rm -rf libconftest.dylib*
  7476. echo "int foo(void){return 1;}" > conftest.c
  7477. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7478. -dynamiclib -Wl,-single_module conftest.c" >&5
  7479. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7480. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7481. _lt_result=$?
  7482. # If there is a non-empty error log, and "single_module"
  7483. # appears in it, assume the flag caused a linker warning
  7484. if test -s conftest.err && $GREP single_module conftest.err; then
  7485. cat conftest.err >&5
  7486. # Otherwise, if the output was created with a 0 exit code from
  7487. # the compiler, it worked.
  7488. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7489. lt_cv_apple_cc_single_mod=yes
  7490. else
  7491. cat conftest.err >&5
  7492. fi
  7493. rm -rf libconftest.dylib*
  7494. rm -f conftest.*
  7495. fi
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7498. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7500. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7501. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. lt_cv_ld_exported_symbols_list=no
  7505. save_LDFLAGS=$LDFLAGS
  7506. echo "_main" > conftest.sym
  7507. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7509. /* end confdefs.h. */
  7510. int
  7511. main ()
  7512. {
  7513. ;
  7514. return 0;
  7515. }
  7516. _ACEOF
  7517. if ac_fn_c_try_link "$LINENO"; then :
  7518. lt_cv_ld_exported_symbols_list=yes
  7519. else
  7520. lt_cv_ld_exported_symbols_list=no
  7521. fi
  7522. rm -f core conftest.err conftest.$ac_objext \
  7523. conftest$ac_exeext conftest.$ac_ext
  7524. LDFLAGS=$save_LDFLAGS
  7525. fi
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7527. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7529. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7530. if ${lt_cv_ld_force_load+:} false; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. lt_cv_ld_force_load=no
  7534. cat > conftest.c << _LT_EOF
  7535. int forced_loaded() { return 2;}
  7536. _LT_EOF
  7537. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7538. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7539. echo "$AR cr libconftest.a conftest.o" >&5
  7540. $AR cr libconftest.a conftest.o 2>&5
  7541. echo "$RANLIB libconftest.a" >&5
  7542. $RANLIB libconftest.a 2>&5
  7543. cat > conftest.c << _LT_EOF
  7544. int main() { return 0;}
  7545. _LT_EOF
  7546. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7547. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7548. _lt_result=$?
  7549. if test -s conftest.err && $GREP force_load conftest.err; then
  7550. cat conftest.err >&5
  7551. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7552. lt_cv_ld_force_load=yes
  7553. else
  7554. cat conftest.err >&5
  7555. fi
  7556. rm -f conftest.err libconftest.a conftest conftest.c
  7557. rm -rf conftest.dSYM
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7560. $as_echo "$lt_cv_ld_force_load" >&6; }
  7561. case $host_os in
  7562. rhapsody* | darwin1.[012])
  7563. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7564. darwin1.*)
  7565. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7566. darwin*) # darwin 5.x on
  7567. # if running on 10.5 or later, the deployment target defaults
  7568. # to the OS version, if on x86, and 10.4, the deployment
  7569. # target defaults to 10.4. Don't you love it?
  7570. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7571. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7572. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7573. 10.[012][,.]*)
  7574. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7575. 10.*)
  7576. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7577. esac
  7578. ;;
  7579. esac
  7580. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7581. _lt_dar_single_mod='$single_module'
  7582. fi
  7583. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7584. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7585. else
  7586. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7587. fi
  7588. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7589. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7590. else
  7591. _lt_dsymutil=
  7592. fi
  7593. ;;
  7594. esac
  7595. # func_munge_path_list VARIABLE PATH
  7596. # -----------------------------------
  7597. # VARIABLE is name of variable containing _space_ separated list of
  7598. # directories to be munged by the contents of PATH, which is string
  7599. # having a format:
  7600. # "DIR[:DIR]:"
  7601. # string "DIR[ DIR]" will be prepended to VARIABLE
  7602. # ":DIR[:DIR]"
  7603. # string "DIR[ DIR]" will be appended to VARIABLE
  7604. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7605. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7606. # "DIRA[ DIRA]" will be appended to VARIABLE
  7607. # "DIR[:DIR]"
  7608. # VARIABLE will be replaced by "DIR[ DIR]"
  7609. func_munge_path_list ()
  7610. {
  7611. case x$2 in
  7612. x)
  7613. ;;
  7614. *:)
  7615. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7616. ;;
  7617. x:*)
  7618. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7619. ;;
  7620. *::*)
  7621. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7622. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7623. ;;
  7624. *)
  7625. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7626. ;;
  7627. esac
  7628. }
  7629. for ac_header in dlfcn.h
  7630. do :
  7631. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7632. "
  7633. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7634. cat >>confdefs.h <<_ACEOF
  7635. #define HAVE_DLFCN_H 1
  7636. _ACEOF
  7637. fi
  7638. done
  7639. func_stripname_cnf ()
  7640. {
  7641. case $2 in
  7642. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7643. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7644. esac
  7645. } # func_stripname_cnf
  7646. # Set options
  7647. enable_dlopen=no
  7648. enable_win32_dll=no
  7649. # Check whether --enable-shared was given.
  7650. if test "${enable_shared+set}" = set; then :
  7651. enableval=$enable_shared; p=${PACKAGE-default}
  7652. case $enableval in
  7653. yes) enable_shared=yes ;;
  7654. no) enable_shared=no ;;
  7655. *)
  7656. enable_shared=no
  7657. # Look at the argument we got. We use all the common list separators.
  7658. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7659. for pkg in $enableval; do
  7660. IFS=$lt_save_ifs
  7661. if test "X$pkg" = "X$p"; then
  7662. enable_shared=yes
  7663. fi
  7664. done
  7665. IFS=$lt_save_ifs
  7666. ;;
  7667. esac
  7668. else
  7669. enable_shared=yes
  7670. fi
  7671. # Check whether --enable-static was given.
  7672. if test "${enable_static+set}" = set; then :
  7673. enableval=$enable_static; p=${PACKAGE-default}
  7674. case $enableval in
  7675. yes) enable_static=yes ;;
  7676. no) enable_static=no ;;
  7677. *)
  7678. enable_static=no
  7679. # Look at the argument we got. We use all the common list separators.
  7680. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7681. for pkg in $enableval; do
  7682. IFS=$lt_save_ifs
  7683. if test "X$pkg" = "X$p"; then
  7684. enable_static=yes
  7685. fi
  7686. done
  7687. IFS=$lt_save_ifs
  7688. ;;
  7689. esac
  7690. else
  7691. enable_static=yes
  7692. fi
  7693. # Check whether --with-pic was given.
  7694. if test "${with_pic+set}" = set; then :
  7695. withval=$with_pic; lt_p=${PACKAGE-default}
  7696. case $withval in
  7697. yes|no) pic_mode=$withval ;;
  7698. *)
  7699. pic_mode=default
  7700. # Look at the argument we got. We use all the common list separators.
  7701. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7702. for lt_pkg in $withval; do
  7703. IFS=$lt_save_ifs
  7704. if test "X$lt_pkg" = "X$lt_p"; then
  7705. pic_mode=yes
  7706. fi
  7707. done
  7708. IFS=$lt_save_ifs
  7709. ;;
  7710. esac
  7711. else
  7712. pic_mode=default
  7713. fi
  7714. # Check whether --enable-fast-install was given.
  7715. if test "${enable_fast_install+set}" = set; then :
  7716. enableval=$enable_fast_install; p=${PACKAGE-default}
  7717. case $enableval in
  7718. yes) enable_fast_install=yes ;;
  7719. no) enable_fast_install=no ;;
  7720. *)
  7721. enable_fast_install=no
  7722. # Look at the argument we got. We use all the common list separators.
  7723. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7724. for pkg in $enableval; do
  7725. IFS=$lt_save_ifs
  7726. if test "X$pkg" = "X$p"; then
  7727. enable_fast_install=yes
  7728. fi
  7729. done
  7730. IFS=$lt_save_ifs
  7731. ;;
  7732. esac
  7733. else
  7734. enable_fast_install=yes
  7735. fi
  7736. shared_archive_member_spec=
  7737. case $host,$enable_shared in
  7738. power*-*-aix[5-9]*,yes)
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7740. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7741. # Check whether --with-aix-soname was given.
  7742. if test "${with_aix_soname+set}" = set; then :
  7743. withval=$with_aix_soname; case $withval in
  7744. aix|svr4|both)
  7745. ;;
  7746. *)
  7747. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7748. ;;
  7749. esac
  7750. lt_cv_with_aix_soname=$with_aix_soname
  7751. else
  7752. if ${lt_cv_with_aix_soname+:} false; then :
  7753. $as_echo_n "(cached) " >&6
  7754. else
  7755. lt_cv_with_aix_soname=aix
  7756. fi
  7757. with_aix_soname=$lt_cv_with_aix_soname
  7758. fi
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7760. $as_echo "$with_aix_soname" >&6; }
  7761. if test aix != "$with_aix_soname"; then
  7762. # For the AIX way of multilib, we name the shared archive member
  7763. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7764. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7765. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7766. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7767. if test 64 = "${OBJECT_MODE-32}"; then
  7768. shared_archive_member_spec=shr_64
  7769. else
  7770. shared_archive_member_spec=shr
  7771. fi
  7772. fi
  7773. ;;
  7774. *)
  7775. with_aix_soname=aix
  7776. ;;
  7777. esac
  7778. # This can be used to rebuild libtool when needed
  7779. LIBTOOL_DEPS=$ltmain
  7780. # Always use our own libtool.
  7781. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7782. test -z "$LN_S" && LN_S="ln -s"
  7783. if test -n "${ZSH_VERSION+set}"; then
  7784. setopt NO_GLOB_SUBST
  7785. fi
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7787. $as_echo_n "checking for objdir... " >&6; }
  7788. if ${lt_cv_objdir+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. rm -f .libs 2>/dev/null
  7792. mkdir .libs 2>/dev/null
  7793. if test -d .libs; then
  7794. lt_cv_objdir=.libs
  7795. else
  7796. # MS-DOS does not allow filenames that begin with a dot.
  7797. lt_cv_objdir=_libs
  7798. fi
  7799. rmdir .libs 2>/dev/null
  7800. fi
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7802. $as_echo "$lt_cv_objdir" >&6; }
  7803. objdir=$lt_cv_objdir
  7804. cat >>confdefs.h <<_ACEOF
  7805. #define LT_OBJDIR "$lt_cv_objdir/"
  7806. _ACEOF
  7807. case $host_os in
  7808. aix3*)
  7809. # AIX sometimes has problems with the GCC collect2 program. For some
  7810. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7811. # vanish in a puff of smoke.
  7812. if test set != "${COLLECT_NAMES+set}"; then
  7813. COLLECT_NAMES=
  7814. export COLLECT_NAMES
  7815. fi
  7816. ;;
  7817. esac
  7818. # Global variables:
  7819. ofile=libtool
  7820. can_build_shared=yes
  7821. # All known linkers require a '.a' archive for static linking (except MSVC,
  7822. # which needs '.lib').
  7823. libext=a
  7824. with_gnu_ld=$lt_cv_prog_gnu_ld
  7825. old_CC=$CC
  7826. old_CFLAGS=$CFLAGS
  7827. # Set sane defaults for various variables
  7828. test -z "$CC" && CC=cc
  7829. test -z "$LTCC" && LTCC=$CC
  7830. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7831. test -z "$LD" && LD=ld
  7832. test -z "$ac_objext" && ac_objext=o
  7833. func_cc_basename $compiler
  7834. cc_basename=$func_cc_basename_result
  7835. # Only perform the check for file, if the check method requires it
  7836. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7837. case $deplibs_check_method in
  7838. file_magic*)
  7839. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7841. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7842. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7843. $as_echo_n "(cached) " >&6
  7844. else
  7845. case $MAGIC_CMD in
  7846. [\\/*] | ?:[\\/]*)
  7847. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7848. ;;
  7849. *)
  7850. lt_save_MAGIC_CMD=$MAGIC_CMD
  7851. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7852. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7853. for ac_dir in $ac_dummy; do
  7854. IFS=$lt_save_ifs
  7855. test -z "$ac_dir" && ac_dir=.
  7856. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7857. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7858. if test -n "$file_magic_test_file"; then
  7859. case $deplibs_check_method in
  7860. "file_magic "*)
  7861. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7862. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7863. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7864. $EGREP "$file_magic_regex" > /dev/null; then
  7865. :
  7866. else
  7867. cat <<_LT_EOF 1>&2
  7868. *** Warning: the command libtool uses to detect shared libraries,
  7869. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7870. *** The result is that libtool may fail to recognize shared libraries
  7871. *** as such. This will affect the creation of libtool libraries that
  7872. *** depend on shared libraries, but programs linked with such libtool
  7873. *** libraries will work regardless of this problem. Nevertheless, you
  7874. *** may want to report the problem to your system manager and/or to
  7875. *** bug-libtool@gnu.org
  7876. _LT_EOF
  7877. fi ;;
  7878. esac
  7879. fi
  7880. break
  7881. fi
  7882. done
  7883. IFS=$lt_save_ifs
  7884. MAGIC_CMD=$lt_save_MAGIC_CMD
  7885. ;;
  7886. esac
  7887. fi
  7888. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7889. if test -n "$MAGIC_CMD"; then
  7890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7891. $as_echo "$MAGIC_CMD" >&6; }
  7892. else
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7894. $as_echo "no" >&6; }
  7895. fi
  7896. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7897. if test -n "$ac_tool_prefix"; then
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7899. $as_echo_n "checking for file... " >&6; }
  7900. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7901. $as_echo_n "(cached) " >&6
  7902. else
  7903. case $MAGIC_CMD in
  7904. [\\/*] | ?:[\\/]*)
  7905. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7906. ;;
  7907. *)
  7908. lt_save_MAGIC_CMD=$MAGIC_CMD
  7909. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7910. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7911. for ac_dir in $ac_dummy; do
  7912. IFS=$lt_save_ifs
  7913. test -z "$ac_dir" && ac_dir=.
  7914. if test -f "$ac_dir/file"; then
  7915. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7916. if test -n "$file_magic_test_file"; then
  7917. case $deplibs_check_method in
  7918. "file_magic "*)
  7919. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7920. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7921. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7922. $EGREP "$file_magic_regex" > /dev/null; then
  7923. :
  7924. else
  7925. cat <<_LT_EOF 1>&2
  7926. *** Warning: the command libtool uses to detect shared libraries,
  7927. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7928. *** The result is that libtool may fail to recognize shared libraries
  7929. *** as such. This will affect the creation of libtool libraries that
  7930. *** depend on shared libraries, but programs linked with such libtool
  7931. *** libraries will work regardless of this problem. Nevertheless, you
  7932. *** may want to report the problem to your system manager and/or to
  7933. *** bug-libtool@gnu.org
  7934. _LT_EOF
  7935. fi ;;
  7936. esac
  7937. fi
  7938. break
  7939. fi
  7940. done
  7941. IFS=$lt_save_ifs
  7942. MAGIC_CMD=$lt_save_MAGIC_CMD
  7943. ;;
  7944. esac
  7945. fi
  7946. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7947. if test -n "$MAGIC_CMD"; then
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7949. $as_echo "$MAGIC_CMD" >&6; }
  7950. else
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7952. $as_echo "no" >&6; }
  7953. fi
  7954. else
  7955. MAGIC_CMD=:
  7956. fi
  7957. fi
  7958. fi
  7959. ;;
  7960. esac
  7961. # Use C for the default configuration in the libtool script
  7962. lt_save_CC=$CC
  7963. ac_ext=c
  7964. ac_cpp='$CPP $CPPFLAGS'
  7965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7968. # Source file extension for C test sources.
  7969. ac_ext=c
  7970. # Object file extension for compiled C test sources.
  7971. objext=o
  7972. objext=$objext
  7973. # Code to be used in simple compile tests
  7974. lt_simple_compile_test_code="int some_variable = 0;"
  7975. # Code to be used in simple link tests
  7976. lt_simple_link_test_code='int main(){return(0);}'
  7977. # If no C compiler was specified, use CC.
  7978. LTCC=${LTCC-"$CC"}
  7979. # If no C compiler flags were specified, use CFLAGS.
  7980. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7981. # Allow CC to be a program name with arguments.
  7982. compiler=$CC
  7983. # Save the default compiler, since it gets overwritten when the other
  7984. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7985. compiler_DEFAULT=$CC
  7986. # save warnings/boilerplate of simple test code
  7987. ac_outfile=conftest.$ac_objext
  7988. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7989. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7990. _lt_compiler_boilerplate=`cat conftest.err`
  7991. $RM conftest*
  7992. ac_outfile=conftest.$ac_objext
  7993. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7994. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7995. _lt_linker_boilerplate=`cat conftest.err`
  7996. $RM -r conftest*
  7997. ## CAVEAT EMPTOR:
  7998. ## There is no encapsulation within the following macros, do not change
  7999. ## the running order or otherwise move them around unless you know exactly
  8000. ## what you are doing...
  8001. if test -n "$compiler"; then
  8002. lt_prog_compiler_no_builtin_flag=
  8003. if test yes = "$GCC"; then
  8004. case $cc_basename in
  8005. nvcc*)
  8006. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8007. *)
  8008. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8009. esac
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8011. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8012. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8013. $as_echo_n "(cached) " >&6
  8014. else
  8015. lt_cv_prog_compiler_rtti_exceptions=no
  8016. ac_outfile=conftest.$ac_objext
  8017. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8018. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8019. # Insert the option either (1) after the last *FLAGS variable, or
  8020. # (2) before a word containing "conftest.", or (3) at the end.
  8021. # Note that $ac_compile itself does not contain backslashes and begins
  8022. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8023. # The option is referenced via a variable to avoid confusing sed.
  8024. lt_compile=`echo "$ac_compile" | $SED \
  8025. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8026. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8027. -e 's:$: $lt_compiler_flag:'`
  8028. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8029. (eval "$lt_compile" 2>conftest.err)
  8030. ac_status=$?
  8031. cat conftest.err >&5
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. if (exit $ac_status) && test -s "$ac_outfile"; then
  8034. # The compiler can only warn and ignore the option if not recognized
  8035. # So say no if there are warnings other than the usual output.
  8036. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8037. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8038. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8039. lt_cv_prog_compiler_rtti_exceptions=yes
  8040. fi
  8041. fi
  8042. $RM conftest*
  8043. fi
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8045. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8046. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8047. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8048. else
  8049. :
  8050. fi
  8051. fi
  8052. lt_prog_compiler_wl=
  8053. lt_prog_compiler_pic=
  8054. lt_prog_compiler_static=
  8055. if test yes = "$GCC"; then
  8056. lt_prog_compiler_wl='-Wl,'
  8057. lt_prog_compiler_static='-static'
  8058. case $host_os in
  8059. aix*)
  8060. # All AIX code is PIC.
  8061. if test ia64 = "$host_cpu"; then
  8062. # AIX 5 now supports IA64 processor
  8063. lt_prog_compiler_static='-Bstatic'
  8064. fi
  8065. lt_prog_compiler_pic='-fPIC'
  8066. ;;
  8067. amigaos*)
  8068. case $host_cpu in
  8069. powerpc)
  8070. # see comment about AmigaOS4 .so support
  8071. lt_prog_compiler_pic='-fPIC'
  8072. ;;
  8073. m68k)
  8074. # FIXME: we need at least 68020 code to build shared libraries, but
  8075. # adding the '-m68020' flag to GCC prevents building anything better,
  8076. # like '-m68040'.
  8077. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8078. ;;
  8079. esac
  8080. ;;
  8081. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8082. # PIC is the default for these OSes.
  8083. ;;
  8084. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8085. # This hack is so that the source file can tell whether it is being
  8086. # built for inclusion in a dll (and should export symbols for example).
  8087. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8088. # (--disable-auto-import) libraries
  8089. lt_prog_compiler_pic='-DDLL_EXPORT'
  8090. case $host_os in
  8091. os2*)
  8092. lt_prog_compiler_static='$wl-static'
  8093. ;;
  8094. esac
  8095. ;;
  8096. darwin* | rhapsody*)
  8097. # PIC is the default on this platform
  8098. # Common symbols not allowed in MH_DYLIB files
  8099. lt_prog_compiler_pic='-fno-common'
  8100. ;;
  8101. haiku*)
  8102. # PIC is the default for Haiku.
  8103. # The "-static" flag exists, but is broken.
  8104. lt_prog_compiler_static=
  8105. ;;
  8106. hpux*)
  8107. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8108. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8109. # sets the default TLS model and affects inlining.
  8110. case $host_cpu in
  8111. hppa*64*)
  8112. # +Z the default
  8113. ;;
  8114. *)
  8115. lt_prog_compiler_pic='-fPIC'
  8116. ;;
  8117. esac
  8118. ;;
  8119. interix[3-9]*)
  8120. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8121. # Instead, we relocate shared libraries at runtime.
  8122. ;;
  8123. msdosdjgpp*)
  8124. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8125. # on systems that don't support them.
  8126. lt_prog_compiler_can_build_shared=no
  8127. enable_shared=no
  8128. ;;
  8129. *nto* | *qnx*)
  8130. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8131. # it will coredump.
  8132. lt_prog_compiler_pic='-fPIC -shared'
  8133. ;;
  8134. sysv4*MP*)
  8135. if test -d /usr/nec; then
  8136. lt_prog_compiler_pic=-Kconform_pic
  8137. fi
  8138. ;;
  8139. *)
  8140. lt_prog_compiler_pic='-fPIC'
  8141. ;;
  8142. esac
  8143. case $cc_basename in
  8144. nvcc*) # Cuda Compiler Driver 2.2
  8145. lt_prog_compiler_wl='-Xlinker '
  8146. if test -n "$lt_prog_compiler_pic"; then
  8147. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8148. fi
  8149. ;;
  8150. esac
  8151. else
  8152. # PORTME Check for flag to pass linker flags through the system compiler.
  8153. case $host_os in
  8154. aix*)
  8155. lt_prog_compiler_wl='-Wl,'
  8156. if test ia64 = "$host_cpu"; then
  8157. # AIX 5 now supports IA64 processor
  8158. lt_prog_compiler_static='-Bstatic'
  8159. else
  8160. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8161. fi
  8162. ;;
  8163. darwin* | rhapsody*)
  8164. # PIC is the default on this platform
  8165. # Common symbols not allowed in MH_DYLIB files
  8166. lt_prog_compiler_pic='-fno-common'
  8167. case $cc_basename in
  8168. nagfor*)
  8169. # NAG Fortran compiler
  8170. lt_prog_compiler_wl='-Wl,-Wl,,'
  8171. lt_prog_compiler_pic='-PIC'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. esac
  8175. ;;
  8176. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8177. # This hack is so that the source file can tell whether it is being
  8178. # built for inclusion in a dll (and should export symbols for example).
  8179. lt_prog_compiler_pic='-DDLL_EXPORT'
  8180. case $host_os in
  8181. os2*)
  8182. lt_prog_compiler_static='$wl-static'
  8183. ;;
  8184. esac
  8185. ;;
  8186. hpux9* | hpux10* | hpux11*)
  8187. lt_prog_compiler_wl='-Wl,'
  8188. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8189. # not for PA HP-UX.
  8190. case $host_cpu in
  8191. hppa*64*|ia64*)
  8192. # +Z the default
  8193. ;;
  8194. *)
  8195. lt_prog_compiler_pic='+Z'
  8196. ;;
  8197. esac
  8198. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8199. lt_prog_compiler_static='$wl-a ${wl}archive'
  8200. ;;
  8201. irix5* | irix6* | nonstopux*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. # PIC (with -KPIC) is the default.
  8204. lt_prog_compiler_static='-non_shared'
  8205. ;;
  8206. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8207. case $cc_basename in
  8208. # old Intel for x86_64, which still supported -KPIC.
  8209. ecc*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-KPIC'
  8212. lt_prog_compiler_static='-static'
  8213. ;;
  8214. # flang / f18. f95 an alias for gfortran or flang on Debian
  8215. flang* | f18* | f95*)
  8216. lt_prog_compiler_wl='-Wl,'
  8217. lt_prog_compiler_pic='-fPIC'
  8218. lt_prog_compiler_static='-static'
  8219. ;;
  8220. # icc used to be incompatible with GCC.
  8221. # ICC 10 doesn't accept -KPIC any more.
  8222. icc* | ifort*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_pic='-fPIC'
  8225. lt_prog_compiler_static='-static'
  8226. ;;
  8227. # Lahey Fortran 8.1.
  8228. lf95*)
  8229. lt_prog_compiler_wl='-Wl,'
  8230. lt_prog_compiler_pic='--shared'
  8231. lt_prog_compiler_static='--static'
  8232. ;;
  8233. nagfor*)
  8234. # NAG Fortran compiler
  8235. lt_prog_compiler_wl='-Wl,-Wl,,'
  8236. lt_prog_compiler_pic='-PIC'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. ;;
  8239. tcc*)
  8240. # Fabrice Bellard et al's Tiny C Compiler
  8241. lt_prog_compiler_wl='-Wl,'
  8242. lt_prog_compiler_pic='-fPIC'
  8243. lt_prog_compiler_static='-static'
  8244. ;;
  8245. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8246. # Portland Group compilers (*not* the Pentium gcc compiler,
  8247. # which looks to be a dead project)
  8248. lt_prog_compiler_wl='-Wl,'
  8249. lt_prog_compiler_pic='-fpic'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. ;;
  8252. ccc*)
  8253. lt_prog_compiler_wl='-Wl,'
  8254. # All Alpha code is PIC.
  8255. lt_prog_compiler_static='-non_shared'
  8256. ;;
  8257. xl* | bgxl* | bgf* | mpixl*)
  8258. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8259. lt_prog_compiler_wl='-Wl,'
  8260. lt_prog_compiler_pic='-qpic'
  8261. lt_prog_compiler_static='-qstaticlink'
  8262. ;;
  8263. *)
  8264. case `$CC -V 2>&1 | sed 5q` in
  8265. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8266. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8267. lt_prog_compiler_pic='-KPIC'
  8268. lt_prog_compiler_static='-Bstatic'
  8269. lt_prog_compiler_wl=''
  8270. ;;
  8271. *Sun\ F* | *Sun*Fortran*)
  8272. lt_prog_compiler_pic='-KPIC'
  8273. lt_prog_compiler_static='-Bstatic'
  8274. lt_prog_compiler_wl='-Qoption ld '
  8275. ;;
  8276. *Sun\ C*)
  8277. # Sun C 5.9
  8278. lt_prog_compiler_pic='-KPIC'
  8279. lt_prog_compiler_static='-Bstatic'
  8280. lt_prog_compiler_wl='-Wl,'
  8281. ;;
  8282. *Intel*\ [CF]*Compiler*)
  8283. lt_prog_compiler_wl='-Wl,'
  8284. lt_prog_compiler_pic='-fPIC'
  8285. lt_prog_compiler_static='-static'
  8286. ;;
  8287. *Portland\ Group*)
  8288. lt_prog_compiler_wl='-Wl,'
  8289. lt_prog_compiler_pic='-fpic'
  8290. lt_prog_compiler_static='-Bstatic'
  8291. ;;
  8292. esac
  8293. ;;
  8294. esac
  8295. ;;
  8296. newsos6)
  8297. lt_prog_compiler_pic='-KPIC'
  8298. lt_prog_compiler_static='-Bstatic'
  8299. ;;
  8300. *nto* | *qnx*)
  8301. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8302. # it will coredump.
  8303. lt_prog_compiler_pic='-fPIC -shared'
  8304. ;;
  8305. osf3* | osf4* | osf5*)
  8306. lt_prog_compiler_wl='-Wl,'
  8307. # All OSF/1 code is PIC.
  8308. lt_prog_compiler_static='-non_shared'
  8309. ;;
  8310. rdos*)
  8311. lt_prog_compiler_static='-non_shared'
  8312. ;;
  8313. solaris*)
  8314. lt_prog_compiler_pic='-KPIC'
  8315. lt_prog_compiler_static='-Bstatic'
  8316. case $cc_basename in
  8317. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8318. lt_prog_compiler_wl='-Qoption ld ';;
  8319. *)
  8320. lt_prog_compiler_wl='-Wl,';;
  8321. esac
  8322. ;;
  8323. sunos4*)
  8324. lt_prog_compiler_wl='-Qoption ld '
  8325. lt_prog_compiler_pic='-PIC'
  8326. lt_prog_compiler_static='-Bstatic'
  8327. ;;
  8328. sysv4 | sysv4.2uw2* | sysv4.3*)
  8329. lt_prog_compiler_wl='-Wl,'
  8330. lt_prog_compiler_pic='-KPIC'
  8331. lt_prog_compiler_static='-Bstatic'
  8332. ;;
  8333. sysv4*MP*)
  8334. if test -d /usr/nec; then
  8335. lt_prog_compiler_pic='-Kconform_pic'
  8336. lt_prog_compiler_static='-Bstatic'
  8337. fi
  8338. ;;
  8339. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8340. lt_prog_compiler_wl='-Wl,'
  8341. lt_prog_compiler_pic='-KPIC'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. ;;
  8344. unicos*)
  8345. lt_prog_compiler_wl='-Wl,'
  8346. lt_prog_compiler_can_build_shared=no
  8347. ;;
  8348. uts4*)
  8349. lt_prog_compiler_pic='-pic'
  8350. lt_prog_compiler_static='-Bstatic'
  8351. ;;
  8352. *)
  8353. lt_prog_compiler_can_build_shared=no
  8354. ;;
  8355. esac
  8356. fi
  8357. case $host_os in
  8358. # For platforms that do not support PIC, -DPIC is meaningless:
  8359. *djgpp*)
  8360. lt_prog_compiler_pic=
  8361. ;;
  8362. *)
  8363. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8364. ;;
  8365. esac
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8367. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8368. if ${lt_cv_prog_compiler_pic+:} false; then :
  8369. $as_echo_n "(cached) " >&6
  8370. else
  8371. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8372. fi
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8374. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8375. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8376. #
  8377. # Check to make sure the PIC flag actually works.
  8378. #
  8379. if test -n "$lt_prog_compiler_pic"; then
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8381. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8382. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8383. $as_echo_n "(cached) " >&6
  8384. else
  8385. lt_cv_prog_compiler_pic_works=no
  8386. ac_outfile=conftest.$ac_objext
  8387. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8388. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8389. # Insert the option either (1) after the last *FLAGS variable, or
  8390. # (2) before a word containing "conftest.", or (3) at the end.
  8391. # Note that $ac_compile itself does not contain backslashes and begins
  8392. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8393. # The option is referenced via a variable to avoid confusing sed.
  8394. lt_compile=`echo "$ac_compile" | $SED \
  8395. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8396. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8397. -e 's:$: $lt_compiler_flag:'`
  8398. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8399. (eval "$lt_compile" 2>conftest.err)
  8400. ac_status=$?
  8401. cat conftest.err >&5
  8402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8403. if (exit $ac_status) && test -s "$ac_outfile"; then
  8404. # The compiler can only warn and ignore the option if not recognized
  8405. # So say no if there are warnings other than the usual output.
  8406. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8408. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8409. lt_cv_prog_compiler_pic_works=yes
  8410. fi
  8411. fi
  8412. $RM conftest*
  8413. fi
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8415. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8416. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8417. case $lt_prog_compiler_pic in
  8418. "" | " "*) ;;
  8419. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8420. esac
  8421. else
  8422. lt_prog_compiler_pic=
  8423. lt_prog_compiler_can_build_shared=no
  8424. fi
  8425. fi
  8426. #
  8427. # Check to make sure the static flag actually works.
  8428. #
  8429. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8431. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8432. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8433. $as_echo_n "(cached) " >&6
  8434. else
  8435. lt_cv_prog_compiler_static_works=no
  8436. save_LDFLAGS=$LDFLAGS
  8437. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8438. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8439. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8440. # The linker can only warn and ignore the option if not recognized
  8441. # So say no if there are warnings
  8442. if test -s conftest.err; then
  8443. # Append any errors to the config.log.
  8444. cat conftest.err 1>&5
  8445. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8446. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8447. if diff conftest.exp conftest.er2 >/dev/null; then
  8448. lt_cv_prog_compiler_static_works=yes
  8449. fi
  8450. else
  8451. lt_cv_prog_compiler_static_works=yes
  8452. fi
  8453. fi
  8454. $RM -r conftest*
  8455. LDFLAGS=$save_LDFLAGS
  8456. fi
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8458. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8459. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8460. :
  8461. else
  8462. lt_prog_compiler_static=
  8463. fi
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8465. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8466. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8467. $as_echo_n "(cached) " >&6
  8468. else
  8469. lt_cv_prog_compiler_c_o=no
  8470. $RM -r conftest 2>/dev/null
  8471. mkdir conftest
  8472. cd conftest
  8473. mkdir out
  8474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8475. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8476. # Insert the option either (1) after the last *FLAGS variable, or
  8477. # (2) before a word containing "conftest.", or (3) at the end.
  8478. # Note that $ac_compile itself does not contain backslashes and begins
  8479. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8480. lt_compile=`echo "$ac_compile" | $SED \
  8481. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8482. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8483. -e 's:$: $lt_compiler_flag:'`
  8484. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8485. (eval "$lt_compile" 2>out/conftest.err)
  8486. ac_status=$?
  8487. cat out/conftest.err >&5
  8488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8489. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8490. then
  8491. # The compiler can only warn and ignore the option if not recognized
  8492. # So say no if there are warnings
  8493. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8494. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8495. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8496. lt_cv_prog_compiler_c_o=yes
  8497. fi
  8498. fi
  8499. chmod u+w . 2>&5
  8500. $RM conftest*
  8501. # SGI C++ compiler will create directory out/ii_files/ for
  8502. # template instantiation
  8503. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8504. $RM out/* && rmdir out
  8505. cd ..
  8506. $RM -r conftest
  8507. $RM conftest*
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8510. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8512. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8513. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8514. $as_echo_n "(cached) " >&6
  8515. else
  8516. lt_cv_prog_compiler_c_o=no
  8517. $RM -r conftest 2>/dev/null
  8518. mkdir conftest
  8519. cd conftest
  8520. mkdir out
  8521. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8522. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8523. # Insert the option either (1) after the last *FLAGS variable, or
  8524. # (2) before a word containing "conftest.", or (3) at the end.
  8525. # Note that $ac_compile itself does not contain backslashes and begins
  8526. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8527. lt_compile=`echo "$ac_compile" | $SED \
  8528. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8529. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8530. -e 's:$: $lt_compiler_flag:'`
  8531. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8532. (eval "$lt_compile" 2>out/conftest.err)
  8533. ac_status=$?
  8534. cat out/conftest.err >&5
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8537. then
  8538. # The compiler can only warn and ignore the option if not recognized
  8539. # So say no if there are warnings
  8540. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8541. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8542. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8543. lt_cv_prog_compiler_c_o=yes
  8544. fi
  8545. fi
  8546. chmod u+w . 2>&5
  8547. $RM conftest*
  8548. # SGI C++ compiler will create directory out/ii_files/ for
  8549. # template instantiation
  8550. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8551. $RM out/* && rmdir out
  8552. cd ..
  8553. $RM -r conftest
  8554. $RM conftest*
  8555. fi
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8557. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8558. hard_links=nottested
  8559. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8560. # do not overwrite the value of need_locks provided by the user
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8562. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8563. hard_links=yes
  8564. $RM conftest*
  8565. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8566. touch conftest.a
  8567. ln conftest.a conftest.b 2>&5 || hard_links=no
  8568. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8570. $as_echo "$hard_links" >&6; }
  8571. if test no = "$hard_links"; then
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8573. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8574. need_locks=warn
  8575. fi
  8576. else
  8577. need_locks=no
  8578. fi
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8580. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8581. runpath_var=
  8582. allow_undefined_flag=
  8583. always_export_symbols=no
  8584. archive_cmds=
  8585. archive_expsym_cmds=
  8586. compiler_needs_object=no
  8587. enable_shared_with_static_runtimes=no
  8588. export_dynamic_flag_spec=
  8589. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8590. hardcode_automatic=no
  8591. hardcode_direct=no
  8592. hardcode_direct_absolute=no
  8593. hardcode_libdir_flag_spec=
  8594. hardcode_libdir_separator=
  8595. hardcode_minus_L=no
  8596. hardcode_shlibpath_var=unsupported
  8597. inherit_rpath=no
  8598. link_all_deplibs=unknown
  8599. module_cmds=
  8600. module_expsym_cmds=
  8601. old_archive_from_new_cmds=
  8602. old_archive_from_expsyms_cmds=
  8603. thread_safe_flag_spec=
  8604. whole_archive_flag_spec=
  8605. # include_expsyms should be a list of space-separated symbols to be *always*
  8606. # included in the symbol list
  8607. include_expsyms=
  8608. # exclude_expsyms can be an extended regexp of symbols to exclude
  8609. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8610. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8611. # as well as any symbol that contains 'd'.
  8612. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8613. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8614. # platforms (ab)use it in PIC code, but their linkers get confused if
  8615. # the symbol is explicitly referenced. Since portable code cannot
  8616. # rely on this symbol name, it's probably fine to never include it in
  8617. # preloaded symbol tables.
  8618. # Exclude shared library initialization/finalization symbols.
  8619. extract_expsyms_cmds=
  8620. case $host_os in
  8621. cygwin* | mingw* | pw32* | cegcc*)
  8622. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8623. # When not using gcc, we currently assume that we are using
  8624. # Microsoft Visual C++.
  8625. if test yes != "$GCC"; then
  8626. with_gnu_ld=no
  8627. fi
  8628. ;;
  8629. interix*)
  8630. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8631. with_gnu_ld=yes
  8632. ;;
  8633. openbsd* | bitrig*)
  8634. with_gnu_ld=no
  8635. ;;
  8636. linux* | k*bsd*-gnu | gnu*)
  8637. link_all_deplibs=no
  8638. ;;
  8639. esac
  8640. ld_shlibs=yes
  8641. # On some targets, GNU ld is compatible enough with the native linker
  8642. # that we're better off using the native interface for both.
  8643. lt_use_gnu_ld_interface=no
  8644. if test yes = "$with_gnu_ld"; then
  8645. case $host_os in
  8646. aix*)
  8647. # The AIX port of GNU ld has always aspired to compatibility
  8648. # with the native linker. However, as the warning in the GNU ld
  8649. # block says, versions before 2.19.5* couldn't really create working
  8650. # shared libraries, regardless of the interface used.
  8651. case `$LD -v 2>&1` in
  8652. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8653. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8654. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8655. *)
  8656. lt_use_gnu_ld_interface=yes
  8657. ;;
  8658. esac
  8659. ;;
  8660. *)
  8661. lt_use_gnu_ld_interface=yes
  8662. ;;
  8663. esac
  8664. fi
  8665. if test yes = "$lt_use_gnu_ld_interface"; then
  8666. # If archive_cmds runs LD, not CC, wlarc should be empty
  8667. wlarc='$wl'
  8668. # Set some defaults for GNU ld with shared library support. These
  8669. # are reset later if shared libraries are not supported. Putting them
  8670. # here allows them to be overridden if necessary.
  8671. runpath_var=LD_RUN_PATH
  8672. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8673. export_dynamic_flag_spec='$wl--export-dynamic'
  8674. # ancient GNU ld didn't support --whole-archive et. al.
  8675. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8676. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8677. else
  8678. whole_archive_flag_spec=
  8679. fi
  8680. supports_anon_versioning=no
  8681. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8682. *GNU\ gold*) supports_anon_versioning=yes ;;
  8683. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8684. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8685. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8686. *\ 2.11.*) ;; # other 2.11 versions
  8687. *) supports_anon_versioning=yes ;;
  8688. esac
  8689. # See if GNU ld supports shared libraries.
  8690. case $host_os in
  8691. aix[3-9]*)
  8692. # On AIX/PPC, the GNU linker is very broken
  8693. if test ia64 != "$host_cpu"; then
  8694. ld_shlibs=no
  8695. cat <<_LT_EOF 1>&2
  8696. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8697. *** to be unable to reliably create shared libraries on AIX.
  8698. *** Therefore, libtool is disabling shared libraries support. If you
  8699. *** really care for shared libraries, you may want to install binutils
  8700. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8701. *** You will then need to restart the configuration process.
  8702. _LT_EOF
  8703. fi
  8704. ;;
  8705. amigaos*)
  8706. case $host_cpu in
  8707. powerpc)
  8708. # see comment about AmigaOS4 .so support
  8709. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8710. archive_expsym_cmds=''
  8711. ;;
  8712. m68k)
  8713. 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)'
  8714. hardcode_libdir_flag_spec='-L$libdir'
  8715. hardcode_minus_L=yes
  8716. ;;
  8717. esac
  8718. ;;
  8719. beos*)
  8720. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8721. allow_undefined_flag=unsupported
  8722. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8723. # support --undefined. This deserves some investigation. FIXME
  8724. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8725. else
  8726. ld_shlibs=no
  8727. fi
  8728. ;;
  8729. cygwin* | mingw* | pw32* | cegcc*)
  8730. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8731. # as there is no search path for DLLs.
  8732. hardcode_libdir_flag_spec='-L$libdir'
  8733. export_dynamic_flag_spec='$wl--export-all-symbols'
  8734. allow_undefined_flag=unsupported
  8735. always_export_symbols=no
  8736. enable_shared_with_static_runtimes=yes
  8737. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8738. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8739. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8740. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8741. # If the export-symbols file already is a .def file, use it as
  8742. # is; otherwise, prepend EXPORTS...
  8743. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8744. cp $export_symbols $output_objdir/$soname.def;
  8745. else
  8746. echo EXPORTS > $output_objdir/$soname.def;
  8747. cat $export_symbols >> $output_objdir/$soname.def;
  8748. fi~
  8749. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8750. else
  8751. ld_shlibs=no
  8752. fi
  8753. ;;
  8754. haiku*)
  8755. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8756. link_all_deplibs=yes
  8757. ;;
  8758. os2*)
  8759. hardcode_libdir_flag_spec='-L$libdir'
  8760. hardcode_minus_L=yes
  8761. allow_undefined_flag=unsupported
  8762. shrext_cmds=.dll
  8763. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8764. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8765. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8766. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8767. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8768. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8769. emximp -o $lib $output_objdir/$libname.def'
  8770. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8771. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8772. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8773. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8774. prefix_cmds="$SED"~
  8775. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8776. prefix_cmds="$prefix_cmds -e 1d";
  8777. fi~
  8778. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8779. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8780. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8781. emximp -o $lib $output_objdir/$libname.def'
  8782. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8783. enable_shared_with_static_runtimes=yes
  8784. ;;
  8785. interix[3-9]*)
  8786. hardcode_direct=no
  8787. hardcode_shlibpath_var=no
  8788. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8789. export_dynamic_flag_spec='$wl-E'
  8790. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8791. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8792. # default) and relocated if they conflict, which is a slow very memory
  8793. # consuming and fragmenting process. To avoid this, we pick a random,
  8794. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8795. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8796. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8797. 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'
  8798. ;;
  8799. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8800. tmp_diet=no
  8801. if test linux-dietlibc = "$host_os"; then
  8802. case $cc_basename in
  8803. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8804. esac
  8805. fi
  8806. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8807. && test no = "$tmp_diet"
  8808. then
  8809. tmp_addflag=' $pic_flag'
  8810. tmp_sharedflag='-shared'
  8811. case $cc_basename,$host_cpu in
  8812. pgcc*) # Portland Group C compiler
  8813. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8814. tmp_addflag=' $pic_flag'
  8815. ;;
  8816. pgf77* | pgf90* | pgf95* | pgfortran*)
  8817. # Portland Group f77 and f90 compilers
  8818. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8819. tmp_addflag=' $pic_flag -Mnomain' ;;
  8820. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8821. tmp_addflag=' -i_dynamic' ;;
  8822. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8823. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8824. ifc* | ifort*) # Intel Fortran compiler
  8825. tmp_addflag=' -nofor_main' ;;
  8826. lf95*) # Lahey Fortran 8.1
  8827. whole_archive_flag_spec=
  8828. tmp_sharedflag='--shared' ;;
  8829. nagfor*) # NAGFOR 5.3
  8830. tmp_sharedflag='-Wl,-shared' ;;
  8831. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8832. tmp_sharedflag='-qmkshrobj'
  8833. tmp_addflag= ;;
  8834. nvcc*) # Cuda Compiler Driver 2.2
  8835. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8836. compiler_needs_object=yes
  8837. ;;
  8838. esac
  8839. case `$CC -V 2>&1 | sed 5q` in
  8840. *Sun\ C*) # Sun C 5.9
  8841. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8842. compiler_needs_object=yes
  8843. tmp_sharedflag='-G' ;;
  8844. *Sun\ F*) # Sun Fortran 8.3
  8845. tmp_sharedflag='-G' ;;
  8846. esac
  8847. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8848. if test yes = "$supports_anon_versioning"; then
  8849. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8850. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8851. echo "local: *; };" >> $output_objdir/$libname.ver~
  8852. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8853. fi
  8854. case $cc_basename in
  8855. tcc*)
  8856. export_dynamic_flag_spec='-rdynamic'
  8857. ;;
  8858. xlf* | bgf* | bgxlf* | mpixlf*)
  8859. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8860. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8861. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8862. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8863. if test yes = "$supports_anon_versioning"; then
  8864. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8865. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8866. echo "local: *; };" >> $output_objdir/$libname.ver~
  8867. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8868. fi
  8869. ;;
  8870. esac
  8871. else
  8872. ld_shlibs=no
  8873. fi
  8874. ;;
  8875. netbsd* | netbsdelf*-gnu)
  8876. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8877. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8878. wlarc=
  8879. else
  8880. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8881. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8882. fi
  8883. ;;
  8884. solaris*)
  8885. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8886. ld_shlibs=no
  8887. cat <<_LT_EOF 1>&2
  8888. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8889. *** create shared libraries on Solaris systems. Therefore, libtool
  8890. *** is disabling shared libraries support. We urge you to upgrade GNU
  8891. *** binutils to release 2.9.1 or newer. Another option is to modify
  8892. *** your PATH or compiler configuration so that the native linker is
  8893. *** used, and then restart.
  8894. _LT_EOF
  8895. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8896. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8897. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8903. case `$LD -v 2>&1` in
  8904. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8905. ld_shlibs=no
  8906. cat <<_LT_EOF 1>&2
  8907. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8908. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8909. *** is disabling shared libraries support. We urge you to upgrade GNU
  8910. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8911. *** your PATH or compiler configuration so that the native linker is
  8912. *** used, and then restart.
  8913. _LT_EOF
  8914. ;;
  8915. *)
  8916. # For security reasons, it is highly recommended that you always
  8917. # use absolute paths for naming shared libraries, and exclude the
  8918. # DT_RUNPATH tag from executables and libraries. But doing so
  8919. # requires that you compile everything twice, which is a pain.
  8920. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8921. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8922. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8923. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8924. else
  8925. ld_shlibs=no
  8926. fi
  8927. ;;
  8928. esac
  8929. ;;
  8930. sunos4*)
  8931. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8932. wlarc=
  8933. hardcode_direct=yes
  8934. hardcode_shlibpath_var=no
  8935. ;;
  8936. *)
  8937. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8938. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8939. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8940. else
  8941. ld_shlibs=no
  8942. fi
  8943. ;;
  8944. esac
  8945. if test no = "$ld_shlibs"; then
  8946. runpath_var=
  8947. hardcode_libdir_flag_spec=
  8948. export_dynamic_flag_spec=
  8949. whole_archive_flag_spec=
  8950. fi
  8951. else
  8952. # PORTME fill in a description of your system's linker (not GNU ld)
  8953. case $host_os in
  8954. aix3*)
  8955. allow_undefined_flag=unsupported
  8956. always_export_symbols=yes
  8957. 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'
  8958. # Note: this linker hardcodes the directories in LIBPATH if there
  8959. # are no directories specified by -L.
  8960. hardcode_minus_L=yes
  8961. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8962. # Neither direct hardcoding nor static linking is supported with a
  8963. # broken collect2.
  8964. hardcode_direct=unsupported
  8965. fi
  8966. ;;
  8967. aix[4-9]*)
  8968. if test ia64 = "$host_cpu"; then
  8969. # On IA64, the linker does run time linking by default, so we don't
  8970. # have to do anything special.
  8971. aix_use_runtimelinking=no
  8972. exp_sym_flag='-Bexport'
  8973. no_entry_flag=
  8974. else
  8975. # If we're using GNU nm, then we don't want the "-C" option.
  8976. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8977. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8978. # weak defined symbols like other global defined symbols, whereas
  8979. # GNU nm marks them as "W".
  8980. # While the 'weak' keyword is ignored in the Export File, we need
  8981. # it in the Import File for the 'aix-soname' feature, so we have
  8982. # to replace the "-B" option with "-P" for AIX nm.
  8983. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8984. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8985. else
  8986. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8987. fi
  8988. aix_use_runtimelinking=no
  8989. # Test if we are trying to use run time linking or normal
  8990. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8991. # have runtime linking enabled, and use it for executables.
  8992. # For shared libraries, we enable/disable runtime linking
  8993. # depending on the kind of the shared library created -
  8994. # when "with_aix_soname,aix_use_runtimelinking" is:
  8995. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8996. # "aix,yes" lib.so shared, rtl:yes, for executables
  8997. # lib.a static archive
  8998. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8999. # lib.a(lib.so.V) shared, rtl:no, for executables
  9000. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9001. # lib.a(lib.so.V) shared, rtl:no
  9002. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9003. # lib.a static archive
  9004. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9005. for ld_flag in $LDFLAGS; do
  9006. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9007. aix_use_runtimelinking=yes
  9008. break
  9009. fi
  9010. done
  9011. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9012. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9013. # so we don't have lib.a shared libs to link our executables.
  9014. # We have to force runtime linking in this case.
  9015. aix_use_runtimelinking=yes
  9016. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9017. fi
  9018. ;;
  9019. esac
  9020. exp_sym_flag='-bexport'
  9021. no_entry_flag='-bnoentry'
  9022. fi
  9023. # When large executables or shared objects are built, AIX ld can
  9024. # have problems creating the table of contents. If linking a library
  9025. # or program results in "error TOC overflow" add -mminimal-toc to
  9026. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9027. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9028. archive_cmds=''
  9029. hardcode_direct=yes
  9030. hardcode_direct_absolute=yes
  9031. hardcode_libdir_separator=':'
  9032. link_all_deplibs=yes
  9033. file_list_spec='$wl-f,'
  9034. case $with_aix_soname,$aix_use_runtimelinking in
  9035. aix,*) ;; # traditional, no import file
  9036. svr4,* | *,yes) # use import file
  9037. # The Import File defines what to hardcode.
  9038. hardcode_direct=no
  9039. hardcode_direct_absolute=no
  9040. ;;
  9041. esac
  9042. if test yes = "$GCC"; then
  9043. case $host_os in aix4.[012]|aix4.[012].*)
  9044. # We only want to do this on AIX 4.2 and lower, the check
  9045. # below for broken collect2 doesn't work under 4.3+
  9046. collect2name=`$CC -print-prog-name=collect2`
  9047. if test -f "$collect2name" &&
  9048. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9049. then
  9050. # We have reworked collect2
  9051. :
  9052. else
  9053. # We have old collect2
  9054. hardcode_direct=unsupported
  9055. # It fails to find uninstalled libraries when the uninstalled
  9056. # path is not listed in the libpath. Setting hardcode_minus_L
  9057. # to unsupported forces relinking
  9058. hardcode_minus_L=yes
  9059. hardcode_libdir_flag_spec='-L$libdir'
  9060. hardcode_libdir_separator=
  9061. fi
  9062. ;;
  9063. esac
  9064. shared_flag='-shared'
  9065. if test yes = "$aix_use_runtimelinking"; then
  9066. shared_flag="$shared_flag "'$wl-G'
  9067. fi
  9068. # Need to ensure runtime linking is disabled for the traditional
  9069. # shared library, or the linker may eventually find shared libraries
  9070. # /with/ Import File - we do not want to mix them.
  9071. shared_flag_aix='-shared'
  9072. shared_flag_svr4='-shared $wl-G'
  9073. else
  9074. # not using gcc
  9075. if test ia64 = "$host_cpu"; then
  9076. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9077. # chokes on -Wl,-G. The following line is correct:
  9078. shared_flag='-G'
  9079. else
  9080. if test yes = "$aix_use_runtimelinking"; then
  9081. shared_flag='$wl-G'
  9082. else
  9083. shared_flag='$wl-bM:SRE'
  9084. fi
  9085. shared_flag_aix='$wl-bM:SRE'
  9086. shared_flag_svr4='$wl-G'
  9087. fi
  9088. fi
  9089. export_dynamic_flag_spec='$wl-bexpall'
  9090. # It seems that -bexpall does not export symbols beginning with
  9091. # underscore (_), so it is better to generate a list of symbols to export.
  9092. always_export_symbols=yes
  9093. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9094. # Warning - without using the other runtime loading flags (-brtl),
  9095. # -berok will link without error, but may produce a broken library.
  9096. allow_undefined_flag='-berok'
  9097. # Determine the default libpath from the value encoded in an
  9098. # empty executable.
  9099. if test set = "${lt_cv_aix_libpath+set}"; then
  9100. aix_libpath=$lt_cv_aix_libpath
  9101. else
  9102. if ${lt_cv_aix_libpath_+:} false; then :
  9103. $as_echo_n "(cached) " >&6
  9104. else
  9105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9106. /* end confdefs.h. */
  9107. int
  9108. main ()
  9109. {
  9110. ;
  9111. return 0;
  9112. }
  9113. _ACEOF
  9114. if ac_fn_c_try_link "$LINENO"; then :
  9115. lt_aix_libpath_sed='
  9116. /Import File Strings/,/^$/ {
  9117. /^0/ {
  9118. s/^0 *\([^ ]*\) *$/\1/
  9119. p
  9120. }
  9121. }'
  9122. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9123. # Check for a 64-bit object if we didn't find anything.
  9124. if test -z "$lt_cv_aix_libpath_"; then
  9125. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9126. fi
  9127. fi
  9128. rm -f core conftest.err conftest.$ac_objext \
  9129. conftest$ac_exeext conftest.$ac_ext
  9130. if test -z "$lt_cv_aix_libpath_"; then
  9131. lt_cv_aix_libpath_=/usr/lib:/lib
  9132. fi
  9133. fi
  9134. aix_libpath=$lt_cv_aix_libpath_
  9135. fi
  9136. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9137. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9138. else
  9139. if test ia64 = "$host_cpu"; then
  9140. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9141. allow_undefined_flag="-z nodefs"
  9142. 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"
  9143. else
  9144. # Determine the default libpath from the value encoded in an
  9145. # empty executable.
  9146. if test set = "${lt_cv_aix_libpath+set}"; then
  9147. aix_libpath=$lt_cv_aix_libpath
  9148. else
  9149. if ${lt_cv_aix_libpath_+:} false; then :
  9150. $as_echo_n "(cached) " >&6
  9151. else
  9152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9153. /* end confdefs.h. */
  9154. int
  9155. main ()
  9156. {
  9157. ;
  9158. return 0;
  9159. }
  9160. _ACEOF
  9161. if ac_fn_c_try_link "$LINENO"; then :
  9162. lt_aix_libpath_sed='
  9163. /Import File Strings/,/^$/ {
  9164. /^0/ {
  9165. s/^0 *\([^ ]*\) *$/\1/
  9166. p
  9167. }
  9168. }'
  9169. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9170. # Check for a 64-bit object if we didn't find anything.
  9171. if test -z "$lt_cv_aix_libpath_"; then
  9172. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9173. fi
  9174. fi
  9175. rm -f core conftest.err conftest.$ac_objext \
  9176. conftest$ac_exeext conftest.$ac_ext
  9177. if test -z "$lt_cv_aix_libpath_"; then
  9178. lt_cv_aix_libpath_=/usr/lib:/lib
  9179. fi
  9180. fi
  9181. aix_libpath=$lt_cv_aix_libpath_
  9182. fi
  9183. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9184. # Warning - without using the other run time loading flags,
  9185. # -berok will link without error, but may produce a broken library.
  9186. no_undefined_flag=' $wl-bernotok'
  9187. allow_undefined_flag=' $wl-berok'
  9188. if test yes = "$with_gnu_ld"; then
  9189. # We only use this code for GNU lds that support --whole-archive.
  9190. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9191. else
  9192. # Exported symbols can be pulled into shared objects from archives
  9193. whole_archive_flag_spec='$convenience'
  9194. fi
  9195. archive_cmds_need_lc=yes
  9196. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9197. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9198. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9199. if test svr4 != "$with_aix_soname"; then
  9200. # This is similar to how AIX traditionally builds its shared libraries.
  9201. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9202. fi
  9203. if test aix != "$with_aix_soname"; then
  9204. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9205. else
  9206. # used by -dlpreopen to get the symbols
  9207. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9208. fi
  9209. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9210. fi
  9211. fi
  9212. ;;
  9213. amigaos*)
  9214. case $host_cpu in
  9215. powerpc)
  9216. # see comment about AmigaOS4 .so support
  9217. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9218. archive_expsym_cmds=''
  9219. ;;
  9220. m68k)
  9221. 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)'
  9222. hardcode_libdir_flag_spec='-L$libdir'
  9223. hardcode_minus_L=yes
  9224. ;;
  9225. esac
  9226. ;;
  9227. bsdi[45]*)
  9228. export_dynamic_flag_spec=-rdynamic
  9229. ;;
  9230. cygwin* | mingw* | pw32* | cegcc*)
  9231. # When not using gcc, we currently assume that we are using
  9232. # Microsoft Visual C++.
  9233. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9234. # no search path for DLLs.
  9235. case $cc_basename in
  9236. cl*)
  9237. # Native MSVC
  9238. hardcode_libdir_flag_spec=' '
  9239. allow_undefined_flag=unsupported
  9240. always_export_symbols=yes
  9241. file_list_spec='@'
  9242. # Tell ltmain to make .lib files, not .a files.
  9243. libext=lib
  9244. # Tell ltmain to make .dll files, not .so files.
  9245. shrext_cmds=.dll
  9246. # FIXME: Setting linknames here is a bad hack.
  9247. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9248. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9249. cp "$export_symbols" "$output_objdir/$soname.def";
  9250. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9251. else
  9252. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9253. fi~
  9254. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9255. linknames='
  9256. # The linker will not automatically build a static lib if we build a DLL.
  9257. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9258. enable_shared_with_static_runtimes=yes
  9259. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9260. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9261. # Don't use ranlib
  9262. old_postinstall_cmds='chmod 644 $oldlib'
  9263. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9264. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9265. case $lt_outputfile in
  9266. *.exe|*.EXE) ;;
  9267. *)
  9268. lt_outputfile=$lt_outputfile.exe
  9269. lt_tool_outputfile=$lt_tool_outputfile.exe
  9270. ;;
  9271. esac~
  9272. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9273. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9274. $RM "$lt_outputfile.manifest";
  9275. fi'
  9276. ;;
  9277. *)
  9278. # Assume MSVC wrapper
  9279. hardcode_libdir_flag_spec=' '
  9280. allow_undefined_flag=unsupported
  9281. # Tell ltmain to make .lib files, not .a files.
  9282. libext=lib
  9283. # Tell ltmain to make .dll files, not .so files.
  9284. shrext_cmds=.dll
  9285. # FIXME: Setting linknames here is a bad hack.
  9286. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9287. # The linker will automatically build a .lib file if we build a DLL.
  9288. old_archive_from_new_cmds='true'
  9289. # FIXME: Should let the user specify the lib program.
  9290. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9291. enable_shared_with_static_runtimes=yes
  9292. ;;
  9293. esac
  9294. ;;
  9295. darwin* | rhapsody*)
  9296. archive_cmds_need_lc=no
  9297. hardcode_direct=no
  9298. hardcode_automatic=yes
  9299. hardcode_shlibpath_var=unsupported
  9300. if test yes = "$lt_cv_ld_force_load"; then
  9301. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9302. else
  9303. whole_archive_flag_spec=''
  9304. fi
  9305. link_all_deplibs=yes
  9306. allow_undefined_flag=$_lt_dar_allow_undefined
  9307. case $cc_basename in
  9308. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9309. *) _lt_dar_can_shared=$GCC ;;
  9310. esac
  9311. if test yes = "$_lt_dar_can_shared"; then
  9312. output_verbose_link_cmd=func_echo_all
  9313. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9314. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9315. 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"
  9316. 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"
  9317. else
  9318. ld_shlibs=no
  9319. fi
  9320. ;;
  9321. dgux*)
  9322. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9323. hardcode_libdir_flag_spec='-L$libdir'
  9324. hardcode_shlibpath_var=no
  9325. ;;
  9326. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9327. # support. Future versions do this automatically, but an explicit c++rt0.o
  9328. # does not break anything, and helps significantly (at the cost of a little
  9329. # extra space).
  9330. freebsd2.2*)
  9331. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9332. hardcode_libdir_flag_spec='-R$libdir'
  9333. hardcode_direct=yes
  9334. hardcode_shlibpath_var=no
  9335. ;;
  9336. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9337. freebsd2.*)
  9338. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9339. hardcode_direct=yes
  9340. hardcode_minus_L=yes
  9341. hardcode_shlibpath_var=no
  9342. ;;
  9343. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9344. freebsd* | dragonfly*)
  9345. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9346. hardcode_libdir_flag_spec='-R$libdir'
  9347. hardcode_direct=yes
  9348. hardcode_shlibpath_var=no
  9349. ;;
  9350. hpux9*)
  9351. if test yes = "$GCC"; then
  9352. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9353. else
  9354. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9355. fi
  9356. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9357. hardcode_libdir_separator=:
  9358. hardcode_direct=yes
  9359. # hardcode_minus_L: Not really in the search PATH,
  9360. # but as the default location of the library.
  9361. hardcode_minus_L=yes
  9362. export_dynamic_flag_spec='$wl-E'
  9363. ;;
  9364. hpux10*)
  9365. if test yes,no = "$GCC,$with_gnu_ld"; then
  9366. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9367. else
  9368. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9369. fi
  9370. if test no = "$with_gnu_ld"; then
  9371. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9372. hardcode_libdir_separator=:
  9373. hardcode_direct=yes
  9374. hardcode_direct_absolute=yes
  9375. export_dynamic_flag_spec='$wl-E'
  9376. # hardcode_minus_L: Not really in the search PATH,
  9377. # but as the default location of the library.
  9378. hardcode_minus_L=yes
  9379. fi
  9380. ;;
  9381. hpux11*)
  9382. if test yes,no = "$GCC,$with_gnu_ld"; then
  9383. case $host_cpu in
  9384. hppa*64*)
  9385. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9386. ;;
  9387. ia64*)
  9388. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9389. ;;
  9390. *)
  9391. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9392. ;;
  9393. esac
  9394. else
  9395. case $host_cpu in
  9396. hppa*64*)
  9397. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9398. ;;
  9399. ia64*)
  9400. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9401. ;;
  9402. *)
  9403. # Older versions of the 11.00 compiler do not understand -b yet
  9404. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9406. $as_echo_n "checking if $CC understands -b... " >&6; }
  9407. if ${lt_cv_prog_compiler__b+:} false; then :
  9408. $as_echo_n "(cached) " >&6
  9409. else
  9410. lt_cv_prog_compiler__b=no
  9411. save_LDFLAGS=$LDFLAGS
  9412. LDFLAGS="$LDFLAGS -b"
  9413. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9414. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9415. # The linker can only warn and ignore the option if not recognized
  9416. # So say no if there are warnings
  9417. if test -s conftest.err; then
  9418. # Append any errors to the config.log.
  9419. cat conftest.err 1>&5
  9420. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9421. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9422. if diff conftest.exp conftest.er2 >/dev/null; then
  9423. lt_cv_prog_compiler__b=yes
  9424. fi
  9425. else
  9426. lt_cv_prog_compiler__b=yes
  9427. fi
  9428. fi
  9429. $RM -r conftest*
  9430. LDFLAGS=$save_LDFLAGS
  9431. fi
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9433. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9434. if test yes = "$lt_cv_prog_compiler__b"; then
  9435. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9436. else
  9437. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9438. fi
  9439. ;;
  9440. esac
  9441. fi
  9442. if test no = "$with_gnu_ld"; then
  9443. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9444. hardcode_libdir_separator=:
  9445. case $host_cpu in
  9446. hppa*64*|ia64*)
  9447. hardcode_direct=no
  9448. hardcode_shlibpath_var=no
  9449. ;;
  9450. *)
  9451. hardcode_direct=yes
  9452. hardcode_direct_absolute=yes
  9453. export_dynamic_flag_spec='$wl-E'
  9454. # hardcode_minus_L: Not really in the search PATH,
  9455. # but as the default location of the library.
  9456. hardcode_minus_L=yes
  9457. ;;
  9458. esac
  9459. fi
  9460. ;;
  9461. irix5* | irix6* | nonstopux*)
  9462. if test yes = "$GCC"; then
  9463. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9464. # Try to use the -exported_symbol ld option, if it does not
  9465. # work, assume that -exports_file does not work either and
  9466. # implicitly export all symbols.
  9467. # This should be the same for all languages, so no per-tag cache variable.
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9469. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9470. if ${lt_cv_irix_exported_symbol+:} false; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. save_LDFLAGS=$LDFLAGS
  9474. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9476. /* end confdefs.h. */
  9477. int foo (void) { return 0; }
  9478. _ACEOF
  9479. if ac_fn_c_try_link "$LINENO"; then :
  9480. lt_cv_irix_exported_symbol=yes
  9481. else
  9482. lt_cv_irix_exported_symbol=no
  9483. fi
  9484. rm -f core conftest.err conftest.$ac_objext \
  9485. conftest$ac_exeext conftest.$ac_ext
  9486. LDFLAGS=$save_LDFLAGS
  9487. fi
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9489. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9490. if test yes = "$lt_cv_irix_exported_symbol"; then
  9491. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9492. fi
  9493. link_all_deplibs=no
  9494. else
  9495. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9496. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9497. fi
  9498. archive_cmds_need_lc='no'
  9499. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9500. hardcode_libdir_separator=:
  9501. inherit_rpath=yes
  9502. link_all_deplibs=yes
  9503. ;;
  9504. linux*)
  9505. case $cc_basename in
  9506. tcc*)
  9507. # Fabrice Bellard et al's Tiny C Compiler
  9508. ld_shlibs=yes
  9509. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9510. ;;
  9511. esac
  9512. ;;
  9513. netbsd* | netbsdelf*-gnu)
  9514. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9515. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9516. else
  9517. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9518. fi
  9519. hardcode_libdir_flag_spec='-R$libdir'
  9520. hardcode_direct=yes
  9521. hardcode_shlibpath_var=no
  9522. ;;
  9523. newsos6)
  9524. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9525. hardcode_direct=yes
  9526. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9527. hardcode_libdir_separator=:
  9528. hardcode_shlibpath_var=no
  9529. ;;
  9530. *nto* | *qnx*)
  9531. ;;
  9532. openbsd* | bitrig*)
  9533. if test -f /usr/libexec/ld.so; then
  9534. hardcode_direct=yes
  9535. hardcode_shlibpath_var=no
  9536. hardcode_direct_absolute=yes
  9537. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9538. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9539. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9540. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9541. export_dynamic_flag_spec='$wl-E'
  9542. else
  9543. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9544. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9545. fi
  9546. else
  9547. ld_shlibs=no
  9548. fi
  9549. ;;
  9550. os2*)
  9551. hardcode_libdir_flag_spec='-L$libdir'
  9552. hardcode_minus_L=yes
  9553. allow_undefined_flag=unsupported
  9554. shrext_cmds=.dll
  9555. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9556. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9557. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9558. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9559. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9560. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9561. emximp -o $lib $output_objdir/$libname.def'
  9562. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9563. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9564. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9565. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9566. prefix_cmds="$SED"~
  9567. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9568. prefix_cmds="$prefix_cmds -e 1d";
  9569. fi~
  9570. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9571. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9572. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9573. emximp -o $lib $output_objdir/$libname.def'
  9574. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9575. enable_shared_with_static_runtimes=yes
  9576. ;;
  9577. osf3*)
  9578. if test yes = "$GCC"; then
  9579. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9580. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9581. else
  9582. allow_undefined_flag=' -expect_unresolved \*'
  9583. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9584. fi
  9585. archive_cmds_need_lc='no'
  9586. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9587. hardcode_libdir_separator=:
  9588. ;;
  9589. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9590. if test yes = "$GCC"; then
  9591. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9592. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9593. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9594. else
  9595. allow_undefined_flag=' -expect_unresolved \*'
  9596. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9597. 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~
  9598. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9599. # Both c and cxx compiler support -rpath directly
  9600. hardcode_libdir_flag_spec='-rpath $libdir'
  9601. fi
  9602. archive_cmds_need_lc='no'
  9603. hardcode_libdir_separator=:
  9604. ;;
  9605. solaris*)
  9606. no_undefined_flag=' -z defs'
  9607. if test yes = "$GCC"; then
  9608. wlarc='$wl'
  9609. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9610. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9611. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9612. else
  9613. case `$CC -V 2>&1` in
  9614. *"Compilers 5.0"*)
  9615. wlarc=''
  9616. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9617. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9618. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9619. ;;
  9620. *)
  9621. wlarc='$wl'
  9622. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9623. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9624. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9625. ;;
  9626. esac
  9627. fi
  9628. hardcode_libdir_flag_spec='-R$libdir'
  9629. hardcode_shlibpath_var=no
  9630. case $host_os in
  9631. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9632. *)
  9633. # The compiler driver will combine and reorder linker options,
  9634. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9635. # but is careful enough not to reorder.
  9636. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9637. if test yes = "$GCC"; then
  9638. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9639. else
  9640. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9641. fi
  9642. ;;
  9643. esac
  9644. link_all_deplibs=yes
  9645. ;;
  9646. sunos4*)
  9647. if test sequent = "$host_vendor"; then
  9648. # Use $CC to link under sequent, because it throws in some extra .o
  9649. # files that make .init and .fini sections work.
  9650. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. else
  9652. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9653. fi
  9654. hardcode_libdir_flag_spec='-L$libdir'
  9655. hardcode_direct=yes
  9656. hardcode_minus_L=yes
  9657. hardcode_shlibpath_var=no
  9658. ;;
  9659. sysv4)
  9660. case $host_vendor in
  9661. sni)
  9662. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9663. hardcode_direct=yes # is this really true???
  9664. ;;
  9665. siemens)
  9666. ## LD is ld it makes a PLAMLIB
  9667. ## CC just makes a GrossModule.
  9668. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9669. reload_cmds='$CC -r -o $output$reload_objs'
  9670. hardcode_direct=no
  9671. ;;
  9672. motorola)
  9673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9674. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9675. ;;
  9676. esac
  9677. runpath_var='LD_RUN_PATH'
  9678. hardcode_shlibpath_var=no
  9679. ;;
  9680. sysv4.3*)
  9681. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9682. hardcode_shlibpath_var=no
  9683. export_dynamic_flag_spec='-Bexport'
  9684. ;;
  9685. sysv4*MP*)
  9686. if test -d /usr/nec; then
  9687. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9688. hardcode_shlibpath_var=no
  9689. runpath_var=LD_RUN_PATH
  9690. hardcode_runpath_var=yes
  9691. ld_shlibs=yes
  9692. fi
  9693. ;;
  9694. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9695. no_undefined_flag='$wl-z,text'
  9696. archive_cmds_need_lc=no
  9697. hardcode_shlibpath_var=no
  9698. runpath_var='LD_RUN_PATH'
  9699. if test yes = "$GCC"; then
  9700. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9701. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9702. else
  9703. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9704. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9705. fi
  9706. ;;
  9707. sysv5* | sco3.2v5* | sco5v6*)
  9708. # Note: We CANNOT use -z defs as we might desire, because we do not
  9709. # link with -lc, and that would cause any symbols used from libc to
  9710. # always be unresolved, which means just about no library would
  9711. # ever link correctly. If we're not using GNU ld we use -z text
  9712. # though, which does catch some bad symbols but isn't as heavy-handed
  9713. # as -z defs.
  9714. no_undefined_flag='$wl-z,text'
  9715. allow_undefined_flag='$wl-z,nodefs'
  9716. archive_cmds_need_lc=no
  9717. hardcode_shlibpath_var=no
  9718. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9719. hardcode_libdir_separator=':'
  9720. link_all_deplibs=yes
  9721. export_dynamic_flag_spec='$wl-Bexport'
  9722. runpath_var='LD_RUN_PATH'
  9723. if test yes = "$GCC"; then
  9724. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9725. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9726. else
  9727. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9728. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9729. fi
  9730. ;;
  9731. uts4*)
  9732. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9733. hardcode_libdir_flag_spec='-L$libdir'
  9734. hardcode_shlibpath_var=no
  9735. ;;
  9736. *)
  9737. ld_shlibs=no
  9738. ;;
  9739. esac
  9740. if test sni = "$host_vendor"; then
  9741. case $host in
  9742. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9743. export_dynamic_flag_spec='$wl-Blargedynsym'
  9744. ;;
  9745. esac
  9746. fi
  9747. fi
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9749. $as_echo "$ld_shlibs" >&6; }
  9750. test no = "$ld_shlibs" && can_build_shared=no
  9751. with_gnu_ld=$with_gnu_ld
  9752. #
  9753. # Do we need to explicitly link libc?
  9754. #
  9755. case "x$archive_cmds_need_lc" in
  9756. x|xyes)
  9757. # Assume -lc should be added
  9758. archive_cmds_need_lc=yes
  9759. if test yes,yes = "$GCC,$enable_shared"; then
  9760. case $archive_cmds in
  9761. *'~'*)
  9762. # FIXME: we may have to deal with multi-command sequences.
  9763. ;;
  9764. '$CC '*)
  9765. # Test whether the compiler implicitly links with -lc since on some
  9766. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9767. # to ld, don't add -lc before -lgcc.
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9769. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9770. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. $RM conftest*
  9774. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9776. (eval $ac_compile) 2>&5
  9777. ac_status=$?
  9778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9779. test $ac_status = 0; } 2>conftest.err; then
  9780. soname=conftest
  9781. lib=conftest
  9782. libobjs=conftest.$ac_objext
  9783. deplibs=
  9784. wl=$lt_prog_compiler_wl
  9785. pic_flag=$lt_prog_compiler_pic
  9786. compiler_flags=-v
  9787. linker_flags=-v
  9788. verstring=
  9789. output_objdir=.
  9790. libname=conftest
  9791. lt_save_allow_undefined_flag=$allow_undefined_flag
  9792. allow_undefined_flag=
  9793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9794. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9795. ac_status=$?
  9796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9797. test $ac_status = 0; }
  9798. then
  9799. lt_cv_archive_cmds_need_lc=no
  9800. else
  9801. lt_cv_archive_cmds_need_lc=yes
  9802. fi
  9803. allow_undefined_flag=$lt_save_allow_undefined_flag
  9804. else
  9805. cat conftest.err 1>&5
  9806. fi
  9807. $RM conftest*
  9808. fi
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9810. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9811. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9812. ;;
  9813. esac
  9814. fi
  9815. ;;
  9816. esac
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9818. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9819. if test yes = "$GCC"; then
  9820. case $host_os in
  9821. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9822. *) lt_awk_arg='/^libraries:/' ;;
  9823. esac
  9824. case $host_os in
  9825. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9826. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9827. esac
  9828. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9829. case $lt_search_path_spec in
  9830. *\;*)
  9831. # if the path contains ";" then we assume it to be the separator
  9832. # otherwise default to the standard path separator (i.e. ":") - it is
  9833. # assumed that no part of a normal pathname contains ";" but that should
  9834. # okay in the real world where ";" in dirpaths is itself problematic.
  9835. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9836. ;;
  9837. *)
  9838. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9839. ;;
  9840. esac
  9841. # Ok, now we have the path, separated by spaces, we can step through it
  9842. # and add multilib dir if necessary...
  9843. lt_tmp_lt_search_path_spec=
  9844. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9845. # ...but if some path component already ends with the multilib dir we assume
  9846. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9847. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9848. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9849. lt_multi_os_dir=
  9850. ;;
  9851. esac
  9852. for lt_sys_path in $lt_search_path_spec; do
  9853. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9854. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9855. elif test -n "$lt_multi_os_dir"; then
  9856. test -d "$lt_sys_path" && \
  9857. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9858. fi
  9859. done
  9860. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9861. BEGIN {RS = " "; FS = "/|\n";} {
  9862. lt_foo = "";
  9863. lt_count = 0;
  9864. for (lt_i = NF; lt_i > 0; lt_i--) {
  9865. if ($lt_i != "" && $lt_i != ".") {
  9866. if ($lt_i == "..") {
  9867. lt_count++;
  9868. } else {
  9869. if (lt_count == 0) {
  9870. lt_foo = "/" $lt_i lt_foo;
  9871. } else {
  9872. lt_count--;
  9873. }
  9874. }
  9875. }
  9876. }
  9877. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9878. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9879. }'`
  9880. # AWK program above erroneously prepends '/' to C:/dos/paths
  9881. # for these hosts.
  9882. case $host_os in
  9883. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9884. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9885. esac
  9886. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9887. else
  9888. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9889. fi
  9890. library_names_spec=
  9891. libname_spec='lib$name'
  9892. soname_spec=
  9893. shrext_cmds=.so
  9894. postinstall_cmds=
  9895. postuninstall_cmds=
  9896. finish_cmds=
  9897. finish_eval=
  9898. shlibpath_var=
  9899. shlibpath_overrides_runpath=unknown
  9900. version_type=none
  9901. dynamic_linker="$host_os ld.so"
  9902. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9903. need_lib_prefix=unknown
  9904. hardcode_into_libs=no
  9905. # when you set need_version to no, make sure it does not cause -set_version
  9906. # flags to be left without arguments
  9907. need_version=unknown
  9908. case $host_os in
  9909. aix3*)
  9910. version_type=linux # correct to gnu/linux during the next big refactor
  9911. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9912. shlibpath_var=LIBPATH
  9913. # AIX 3 has no versioning support, so we append a major version to the name.
  9914. soname_spec='$libname$release$shared_ext$major'
  9915. ;;
  9916. aix[4-9]*)
  9917. version_type=linux # correct to gnu/linux during the next big refactor
  9918. need_lib_prefix=no
  9919. need_version=no
  9920. hardcode_into_libs=yes
  9921. if test ia64 = "$host_cpu"; then
  9922. # AIX 5 supports IA64
  9923. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9924. shlibpath_var=LD_LIBRARY_PATH
  9925. else
  9926. # With GCC up to 2.95.x, collect2 would create an import file
  9927. # for dependence libraries. The import file would start with
  9928. # the line '#! .'. This would cause the generated library to
  9929. # depend on '.', always an invalid library. This was fixed in
  9930. # development snapshots of GCC prior to 3.0.
  9931. case $host_os in
  9932. aix4 | aix4.[01] | aix4.[01].*)
  9933. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9934. echo ' yes '
  9935. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9936. :
  9937. else
  9938. can_build_shared=no
  9939. fi
  9940. ;;
  9941. esac
  9942. # Using Import Files as archive members, it is possible to support
  9943. # filename-based versioning of shared library archives on AIX. While
  9944. # this would work for both with and without runtime linking, it will
  9945. # prevent static linking of such archives. So we do filename-based
  9946. # shared library versioning with .so extension only, which is used
  9947. # when both runtime linking and shared linking is enabled.
  9948. # Unfortunately, runtime linking may impact performance, so we do
  9949. # not want this to be the default eventually. Also, we use the
  9950. # versioned .so libs for executables only if there is the -brtl
  9951. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9952. # To allow for filename-based versioning support, we need to create
  9953. # libNAME.so.V as an archive file, containing:
  9954. # *) an Import File, referring to the versioned filename of the
  9955. # archive as well as the shared archive member, telling the
  9956. # bitwidth (32 or 64) of that shared object, and providing the
  9957. # list of exported symbols of that shared object, eventually
  9958. # decorated with the 'weak' keyword
  9959. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9960. # it being seen by the linker.
  9961. # At run time we better use the real file rather than another symlink,
  9962. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9963. case $with_aix_soname,$aix_use_runtimelinking in
  9964. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9965. # soname into executable. Probably we can add versioning support to
  9966. # collect2, so additional links can be useful in future.
  9967. aix,yes) # traditional libtool
  9968. dynamic_linker='AIX unversionable lib.so'
  9969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9970. # instead of lib<name>.a to let people know that these are not
  9971. # typical AIX shared libraries.
  9972. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9973. ;;
  9974. aix,no) # traditional AIX only
  9975. dynamic_linker='AIX lib.a(lib.so.V)'
  9976. # We preserve .a as extension for shared libraries through AIX4.2
  9977. # and later when we are not doing run time linking.
  9978. library_names_spec='$libname$release.a $libname.a'
  9979. soname_spec='$libname$release$shared_ext$major'
  9980. ;;
  9981. svr4,*) # full svr4 only
  9982. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9983. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9984. # We do not specify a path in Import Files, so LIBPATH fires.
  9985. shlibpath_overrides_runpath=yes
  9986. ;;
  9987. *,yes) # both, prefer svr4
  9988. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9989. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9990. # unpreferred sharedlib libNAME.a needs extra handling
  9991. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9992. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9993. # We do not specify a path in Import Files, so LIBPATH fires.
  9994. shlibpath_overrides_runpath=yes
  9995. ;;
  9996. *,no) # both, prefer aix
  9997. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9998. library_names_spec='$libname$release.a $libname.a'
  9999. soname_spec='$libname$release$shared_ext$major'
  10000. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10001. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10002. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10003. ;;
  10004. esac
  10005. shlibpath_var=LIBPATH
  10006. fi
  10007. ;;
  10008. amigaos*)
  10009. case $host_cpu in
  10010. powerpc)
  10011. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10012. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10013. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10014. ;;
  10015. m68k)
  10016. library_names_spec='$libname.ixlibrary $libname.a'
  10017. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10018. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10019. ;;
  10020. esac
  10021. ;;
  10022. beos*)
  10023. library_names_spec='$libname$shared_ext'
  10024. dynamic_linker="$host_os ld.so"
  10025. shlibpath_var=LIBRARY_PATH
  10026. ;;
  10027. bsdi[45]*)
  10028. version_type=linux # correct to gnu/linux during the next big refactor
  10029. need_version=no
  10030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10031. soname_spec='$libname$release$shared_ext$major'
  10032. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10033. shlibpath_var=LD_LIBRARY_PATH
  10034. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10035. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10036. # the default ld.so.conf also contains /usr/contrib/lib and
  10037. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10038. # libtool to hard-code these into programs
  10039. ;;
  10040. cygwin* | mingw* | pw32* | cegcc*)
  10041. version_type=windows
  10042. shrext_cmds=.dll
  10043. need_version=no
  10044. need_lib_prefix=no
  10045. case $GCC,$cc_basename in
  10046. yes,*)
  10047. # gcc
  10048. library_names_spec='$libname.dll.a'
  10049. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10050. postinstall_cmds='base_file=`basename \$file`~
  10051. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10052. dldir=$destdir/`dirname \$dlpath`~
  10053. test -d \$dldir || mkdir -p \$dldir~
  10054. $install_prog $dir/$dlname \$dldir/$dlname~
  10055. chmod a+x \$dldir/$dlname~
  10056. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10057. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10058. fi'
  10059. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10060. dlpath=$dir/\$dldll~
  10061. $RM \$dlpath'
  10062. shlibpath_overrides_runpath=yes
  10063. case $host_os in
  10064. cygwin*)
  10065. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10066. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10067. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10068. ;;
  10069. mingw* | cegcc*)
  10070. # MinGW DLLs use traditional 'lib' prefix
  10071. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10072. ;;
  10073. pw32*)
  10074. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10075. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10076. ;;
  10077. esac
  10078. dynamic_linker='Win32 ld.exe'
  10079. ;;
  10080. *,cl*)
  10081. # Native MSVC
  10082. libname_spec='$name'
  10083. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10084. library_names_spec='$libname.dll.lib'
  10085. case $build_os in
  10086. mingw*)
  10087. sys_lib_search_path_spec=
  10088. lt_save_ifs=$IFS
  10089. IFS=';'
  10090. for lt_path in $LIB
  10091. do
  10092. IFS=$lt_save_ifs
  10093. # Let DOS variable expansion print the short 8.3 style file name.
  10094. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10095. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10096. done
  10097. IFS=$lt_save_ifs
  10098. # Convert to MSYS style.
  10099. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10100. ;;
  10101. cygwin*)
  10102. # Convert to unix form, then to dos form, then back to unix form
  10103. # but this time dos style (no spaces!) so that the unix form looks
  10104. # like /cygdrive/c/PROGRA~1:/cygdr...
  10105. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10106. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10107. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10108. ;;
  10109. *)
  10110. sys_lib_search_path_spec=$LIB
  10111. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10112. # It is most probably a Windows format PATH.
  10113. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10114. else
  10115. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10116. fi
  10117. # FIXME: find the short name or the path components, as spaces are
  10118. # common. (e.g. "Program Files" -> "PROGRA~1")
  10119. ;;
  10120. esac
  10121. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10122. postinstall_cmds='base_file=`basename \$file`~
  10123. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10124. dldir=$destdir/`dirname \$dlpath`~
  10125. test -d \$dldir || mkdir -p \$dldir~
  10126. $install_prog $dir/$dlname \$dldir/$dlname'
  10127. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10128. dlpath=$dir/\$dldll~
  10129. $RM \$dlpath'
  10130. shlibpath_overrides_runpath=yes
  10131. dynamic_linker='Win32 link.exe'
  10132. ;;
  10133. *)
  10134. # Assume MSVC wrapper
  10135. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10136. dynamic_linker='Win32 ld.exe'
  10137. ;;
  10138. esac
  10139. # FIXME: first we should search . and the directory the executable is in
  10140. shlibpath_var=PATH
  10141. ;;
  10142. darwin* | rhapsody*)
  10143. dynamic_linker="$host_os dyld"
  10144. version_type=darwin
  10145. need_lib_prefix=no
  10146. need_version=no
  10147. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10148. soname_spec='$libname$release$major$shared_ext'
  10149. shlibpath_overrides_runpath=yes
  10150. shlibpath_var=DYLD_LIBRARY_PATH
  10151. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10152. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10153. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10154. ;;
  10155. dgux*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10160. soname_spec='$libname$release$shared_ext$major'
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. ;;
  10163. freebsd* | dragonfly*)
  10164. # DragonFly does not have aout. When/if they implement a new
  10165. # versioning mechanism, adjust this.
  10166. if test -x /usr/bin/objformat; then
  10167. objformat=`/usr/bin/objformat`
  10168. else
  10169. case $host_os in
  10170. freebsd[23].*) objformat=aout ;;
  10171. *) objformat=elf ;;
  10172. esac
  10173. fi
  10174. version_type=freebsd-$objformat
  10175. case $version_type in
  10176. freebsd-elf*)
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. need_version=no
  10180. need_lib_prefix=no
  10181. ;;
  10182. freebsd-*)
  10183. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10184. need_version=yes
  10185. ;;
  10186. esac
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. case $host_os in
  10189. freebsd2.*)
  10190. shlibpath_overrides_runpath=yes
  10191. ;;
  10192. freebsd3.[01]* | freebsdelf3.[01]*)
  10193. shlibpath_overrides_runpath=yes
  10194. hardcode_into_libs=yes
  10195. ;;
  10196. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10197. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10198. shlibpath_overrides_runpath=no
  10199. hardcode_into_libs=yes
  10200. ;;
  10201. *) # from 4.6 on, and DragonFly
  10202. shlibpath_overrides_runpath=yes
  10203. hardcode_into_libs=yes
  10204. ;;
  10205. esac
  10206. ;;
  10207. haiku*)
  10208. version_type=linux # correct to gnu/linux during the next big refactor
  10209. need_lib_prefix=no
  10210. need_version=no
  10211. dynamic_linker="$host_os runtime_loader"
  10212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10213. soname_spec='$libname$release$shared_ext$major'
  10214. shlibpath_var=LIBRARY_PATH
  10215. shlibpath_overrides_runpath=no
  10216. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10217. hardcode_into_libs=yes
  10218. ;;
  10219. hpux9* | hpux10* | hpux11*)
  10220. # Give a soname corresponding to the major version so that dld.sl refuses to
  10221. # link against other versions.
  10222. version_type=sunos
  10223. need_lib_prefix=no
  10224. need_version=no
  10225. case $host_cpu in
  10226. ia64*)
  10227. shrext_cmds='.so'
  10228. hardcode_into_libs=yes
  10229. dynamic_linker="$host_os dld.so"
  10230. shlibpath_var=LD_LIBRARY_PATH
  10231. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10233. soname_spec='$libname$release$shared_ext$major'
  10234. if test 32 = "$HPUX_IA64_MODE"; then
  10235. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10236. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10237. else
  10238. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10239. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10240. fi
  10241. ;;
  10242. hppa*64*)
  10243. shrext_cmds='.sl'
  10244. hardcode_into_libs=yes
  10245. dynamic_linker="$host_os dld.sl"
  10246. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10247. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10249. soname_spec='$libname$release$shared_ext$major'
  10250. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10251. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10252. ;;
  10253. *)
  10254. shrext_cmds='.sl'
  10255. dynamic_linker="$host_os dld.sl"
  10256. shlibpath_var=SHLIB_PATH
  10257. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10259. soname_spec='$libname$release$shared_ext$major'
  10260. ;;
  10261. esac
  10262. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10263. postinstall_cmds='chmod 555 $lib'
  10264. # or fails outright, so override atomically:
  10265. install_override_mode=555
  10266. ;;
  10267. interix[3-9]*)
  10268. version_type=linux # correct to gnu/linux during the next big refactor
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10272. soname_spec='$libname$release$shared_ext$major'
  10273. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=no
  10276. hardcode_into_libs=yes
  10277. ;;
  10278. irix5* | irix6* | nonstopux*)
  10279. case $host_os in
  10280. nonstopux*) version_type=nonstopux ;;
  10281. *)
  10282. if test yes = "$lt_cv_prog_gnu_ld"; then
  10283. version_type=linux # correct to gnu/linux during the next big refactor
  10284. else
  10285. version_type=irix
  10286. fi ;;
  10287. esac
  10288. need_lib_prefix=no
  10289. need_version=no
  10290. soname_spec='$libname$release$shared_ext$major'
  10291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10292. case $host_os in
  10293. irix5* | nonstopux*)
  10294. libsuff= shlibsuff=
  10295. ;;
  10296. *)
  10297. case $LD in # libtool.m4 will add one of these switches to LD
  10298. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10299. libsuff= shlibsuff= libmagic=32-bit;;
  10300. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10301. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10302. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10303. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10304. *) libsuff= shlibsuff= libmagic=never-match;;
  10305. esac
  10306. ;;
  10307. esac
  10308. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10309. shlibpath_overrides_runpath=no
  10310. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10311. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10312. hardcode_into_libs=yes
  10313. ;;
  10314. # No shared lib support for Linux oldld, aout, or coff.
  10315. linux*oldld* | linux*aout* | linux*coff*)
  10316. dynamic_linker=no
  10317. ;;
  10318. linux*android*)
  10319. version_type=none # Android doesn't support versioned libraries.
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$shared_ext'
  10323. soname_spec='$libname$release$shared_ext'
  10324. finish_cmds=
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. shlibpath_overrides_runpath=yes
  10327. # This implies no fast_install, which is unacceptable.
  10328. # Some rework will be needed to allow for fast_install
  10329. # before this can be enabled.
  10330. hardcode_into_libs=yes
  10331. dynamic_linker='Android linker'
  10332. # Don't embed -rpath directories since the linker doesn't support them.
  10333. hardcode_libdir_flag_spec='-L$libdir'
  10334. ;;
  10335. # This must be glibc/ELF.
  10336. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10337. version_type=linux # correct to gnu/linux during the next big refactor
  10338. need_lib_prefix=no
  10339. need_version=no
  10340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10341. soname_spec='$libname$release$shared_ext$major'
  10342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10343. shlibpath_var=LD_LIBRARY_PATH
  10344. shlibpath_overrides_runpath=no
  10345. # Some binutils ld are patched to set DT_RUNPATH
  10346. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10347. $as_echo_n "(cached) " >&6
  10348. else
  10349. lt_cv_shlibpath_overrides_runpath=no
  10350. save_LDFLAGS=$LDFLAGS
  10351. save_libdir=$libdir
  10352. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10353. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10355. /* end confdefs.h. */
  10356. int
  10357. main ()
  10358. {
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10365. lt_cv_shlibpath_overrides_runpath=yes
  10366. fi
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LDFLAGS=$save_LDFLAGS
  10371. libdir=$save_libdir
  10372. fi
  10373. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10374. # This implies no fast_install, which is unacceptable.
  10375. # Some rework will be needed to allow for fast_install
  10376. # before this can be enabled.
  10377. hardcode_into_libs=yes
  10378. # Ideally, we could use ldconfig to report *all* directores which are
  10379. # searched for libraries, however this is still not possible. Aside from not
  10380. # being certain /sbin/ldconfig is available, command
  10381. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10382. # even though it is searched at run-time. Try to do the best guess by
  10383. # appending ld.so.conf contents (and includes) to the search path.
  10384. if test -f /etc/ld.so.conf; then
  10385. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10386. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10387. fi
  10388. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10389. # powerpc, because MkLinux only supported shared libraries with the
  10390. # GNU dynamic linker. Since this was broken with cross compilers,
  10391. # most powerpc-linux boxes support dynamic linking these days and
  10392. # people can always --disable-shared, the test was removed, and we
  10393. # assume the GNU/Linux dynamic linker is in use.
  10394. dynamic_linker='GNU/Linux ld.so'
  10395. ;;
  10396. netbsdelf*-gnu)
  10397. version_type=linux
  10398. need_lib_prefix=no
  10399. need_version=no
  10400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10401. soname_spec='${libname}${release}${shared_ext}$major'
  10402. shlibpath_var=LD_LIBRARY_PATH
  10403. shlibpath_overrides_runpath=no
  10404. hardcode_into_libs=yes
  10405. dynamic_linker='NetBSD ld.elf_so'
  10406. ;;
  10407. netbsd*)
  10408. version_type=sunos
  10409. need_lib_prefix=no
  10410. need_version=no
  10411. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10412. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10413. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10414. dynamic_linker='NetBSD (a.out) ld.so'
  10415. else
  10416. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10417. soname_spec='$libname$release$shared_ext$major'
  10418. dynamic_linker='NetBSD ld.elf_so'
  10419. fi
  10420. shlibpath_var=LD_LIBRARY_PATH
  10421. shlibpath_overrides_runpath=yes
  10422. hardcode_into_libs=yes
  10423. ;;
  10424. newsos6)
  10425. version_type=linux # correct to gnu/linux during the next big refactor
  10426. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10427. shlibpath_var=LD_LIBRARY_PATH
  10428. shlibpath_overrides_runpath=yes
  10429. ;;
  10430. *nto* | *qnx*)
  10431. version_type=qnx
  10432. need_lib_prefix=no
  10433. need_version=no
  10434. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10435. soname_spec='$libname$release$shared_ext$major'
  10436. shlibpath_var=LD_LIBRARY_PATH
  10437. shlibpath_overrides_runpath=no
  10438. hardcode_into_libs=yes
  10439. dynamic_linker='ldqnx.so'
  10440. ;;
  10441. openbsd* | bitrig*)
  10442. version_type=sunos
  10443. sys_lib_dlsearch_path_spec=/usr/lib
  10444. need_lib_prefix=no
  10445. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10446. need_version=no
  10447. else
  10448. need_version=yes
  10449. fi
  10450. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10451. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10452. shlibpath_var=LD_LIBRARY_PATH
  10453. shlibpath_overrides_runpath=yes
  10454. ;;
  10455. os2*)
  10456. libname_spec='$name'
  10457. version_type=windows
  10458. shrext_cmds=.dll
  10459. need_version=no
  10460. need_lib_prefix=no
  10461. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10462. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10463. v=$($ECHO $release$versuffix | tr -d .-);
  10464. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10465. $ECHO $n$v`$shared_ext'
  10466. library_names_spec='${libname}_dll.$libext'
  10467. dynamic_linker='OS/2 ld.exe'
  10468. shlibpath_var=BEGINLIBPATH
  10469. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10470. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10471. postinstall_cmds='base_file=`basename \$file`~
  10472. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10473. dldir=$destdir/`dirname \$dlpath`~
  10474. test -d \$dldir || mkdir -p \$dldir~
  10475. $install_prog $dir/$dlname \$dldir/$dlname~
  10476. chmod a+x \$dldir/$dlname~
  10477. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10478. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10479. fi'
  10480. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10481. dlpath=$dir/\$dldll~
  10482. $RM \$dlpath'
  10483. ;;
  10484. osf3* | osf4* | osf5*)
  10485. version_type=osf
  10486. need_lib_prefix=no
  10487. need_version=no
  10488. soname_spec='$libname$release$shared_ext$major'
  10489. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10490. shlibpath_var=LD_LIBRARY_PATH
  10491. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10492. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10493. ;;
  10494. rdos*)
  10495. dynamic_linker=no
  10496. ;;
  10497. solaris*)
  10498. version_type=linux # correct to gnu/linux during the next big refactor
  10499. need_lib_prefix=no
  10500. need_version=no
  10501. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10502. soname_spec='$libname$release$shared_ext$major'
  10503. shlibpath_var=LD_LIBRARY_PATH
  10504. shlibpath_overrides_runpath=yes
  10505. hardcode_into_libs=yes
  10506. # ldd complains unless libraries are executable
  10507. postinstall_cmds='chmod +x $lib'
  10508. ;;
  10509. sunos4*)
  10510. version_type=sunos
  10511. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10512. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10513. shlibpath_var=LD_LIBRARY_PATH
  10514. shlibpath_overrides_runpath=yes
  10515. if test yes = "$with_gnu_ld"; then
  10516. need_lib_prefix=no
  10517. fi
  10518. need_version=yes
  10519. ;;
  10520. sysv4 | sysv4.3*)
  10521. version_type=linux # correct to gnu/linux during the next big refactor
  10522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10523. soname_spec='$libname$release$shared_ext$major'
  10524. shlibpath_var=LD_LIBRARY_PATH
  10525. case $host_vendor in
  10526. sni)
  10527. shlibpath_overrides_runpath=no
  10528. need_lib_prefix=no
  10529. runpath_var=LD_RUN_PATH
  10530. ;;
  10531. siemens)
  10532. need_lib_prefix=no
  10533. ;;
  10534. motorola)
  10535. need_lib_prefix=no
  10536. need_version=no
  10537. shlibpath_overrides_runpath=no
  10538. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10539. ;;
  10540. esac
  10541. ;;
  10542. sysv4*MP*)
  10543. if test -d /usr/nec; then
  10544. version_type=linux # correct to gnu/linux during the next big refactor
  10545. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10546. soname_spec='$libname$shared_ext.$major'
  10547. shlibpath_var=LD_LIBRARY_PATH
  10548. fi
  10549. ;;
  10550. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10551. version_type=sco
  10552. need_lib_prefix=no
  10553. need_version=no
  10554. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10555. soname_spec='$libname$release$shared_ext$major'
  10556. shlibpath_var=LD_LIBRARY_PATH
  10557. shlibpath_overrides_runpath=yes
  10558. hardcode_into_libs=yes
  10559. if test yes = "$with_gnu_ld"; then
  10560. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10561. else
  10562. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10563. case $host_os in
  10564. sco3.2v5*)
  10565. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10566. ;;
  10567. esac
  10568. fi
  10569. sys_lib_dlsearch_path_spec='/usr/lib'
  10570. ;;
  10571. tpf*)
  10572. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10573. version_type=linux # correct to gnu/linux during the next big refactor
  10574. need_lib_prefix=no
  10575. need_version=no
  10576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10577. shlibpath_var=LD_LIBRARY_PATH
  10578. shlibpath_overrides_runpath=no
  10579. hardcode_into_libs=yes
  10580. ;;
  10581. uts4*)
  10582. version_type=linux # correct to gnu/linux during the next big refactor
  10583. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10584. soname_spec='$libname$release$shared_ext$major'
  10585. shlibpath_var=LD_LIBRARY_PATH
  10586. ;;
  10587. *)
  10588. dynamic_linker=no
  10589. ;;
  10590. esac
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10592. $as_echo "$dynamic_linker" >&6; }
  10593. test no = "$dynamic_linker" && can_build_shared=no
  10594. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10595. if test yes = "$GCC"; then
  10596. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10597. fi
  10598. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10599. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10600. fi
  10601. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10602. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10603. fi
  10604. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10605. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10606. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10607. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10608. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10609. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10611. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10612. hardcode_action=
  10613. if test -n "$hardcode_libdir_flag_spec" ||
  10614. test -n "$runpath_var" ||
  10615. test yes = "$hardcode_automatic"; then
  10616. # We can hardcode non-existent directories.
  10617. if test no != "$hardcode_direct" &&
  10618. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10619. # have to relink, otherwise we might link with an installed library
  10620. # when we should be linking with a yet-to-be-installed one
  10621. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10622. test no != "$hardcode_minus_L"; then
  10623. # Linking always hardcodes the temporary library directory.
  10624. hardcode_action=relink
  10625. else
  10626. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10627. hardcode_action=immediate
  10628. fi
  10629. else
  10630. # We cannot hardcode anything, or else we can only hardcode existing
  10631. # directories.
  10632. hardcode_action=unsupported
  10633. fi
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10635. $as_echo "$hardcode_action" >&6; }
  10636. if test relink = "$hardcode_action" ||
  10637. test yes = "$inherit_rpath"; then
  10638. # Fast installation is not supported
  10639. enable_fast_install=no
  10640. elif test yes = "$shlibpath_overrides_runpath" ||
  10641. test no = "$enable_shared"; then
  10642. # Fast installation is not necessary
  10643. enable_fast_install=needless
  10644. fi
  10645. if test yes != "$enable_dlopen"; then
  10646. enable_dlopen=unknown
  10647. enable_dlopen_self=unknown
  10648. enable_dlopen_self_static=unknown
  10649. else
  10650. lt_cv_dlopen=no
  10651. lt_cv_dlopen_libs=
  10652. case $host_os in
  10653. beos*)
  10654. lt_cv_dlopen=load_add_on
  10655. lt_cv_dlopen_libs=
  10656. lt_cv_dlopen_self=yes
  10657. ;;
  10658. mingw* | pw32* | cegcc*)
  10659. lt_cv_dlopen=LoadLibrary
  10660. lt_cv_dlopen_libs=
  10661. ;;
  10662. cygwin*)
  10663. lt_cv_dlopen=dlopen
  10664. lt_cv_dlopen_libs=
  10665. ;;
  10666. darwin*)
  10667. # if libdl is installed we need to link against it
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10669. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10670. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10671. $as_echo_n "(cached) " >&6
  10672. else
  10673. ac_check_lib_save_LIBS=$LIBS
  10674. LIBS="-ldl $LIBS"
  10675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10676. /* end confdefs.h. */
  10677. /* Override any GCC internal prototype to avoid an error.
  10678. Use char because int might match the return type of a GCC
  10679. builtin and then its argument prototype would still apply. */
  10680. #ifdef __cplusplus
  10681. extern "C"
  10682. #endif
  10683. char dlopen ();
  10684. int
  10685. main ()
  10686. {
  10687. return dlopen ();
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. if ac_fn_c_try_link "$LINENO"; then :
  10693. ac_cv_lib_dl_dlopen=yes
  10694. else
  10695. ac_cv_lib_dl_dlopen=no
  10696. fi
  10697. rm -f core conftest.err conftest.$ac_objext \
  10698. conftest$ac_exeext conftest.$ac_ext
  10699. LIBS=$ac_check_lib_save_LIBS
  10700. fi
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10702. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10703. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10704. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10705. else
  10706. lt_cv_dlopen=dyld
  10707. lt_cv_dlopen_libs=
  10708. lt_cv_dlopen_self=yes
  10709. fi
  10710. ;;
  10711. tpf*)
  10712. # Don't try to run any link tests for TPF. We know it's impossible
  10713. # because TPF is a cross-compiler, and we know how we open DSOs.
  10714. lt_cv_dlopen=dlopen
  10715. lt_cv_dlopen_libs=
  10716. lt_cv_dlopen_self=no
  10717. ;;
  10718. *)
  10719. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10720. if test "x$ac_cv_func_shl_load" = xyes; then :
  10721. lt_cv_dlopen=shl_load
  10722. else
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10724. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10725. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10726. $as_echo_n "(cached) " >&6
  10727. else
  10728. ac_check_lib_save_LIBS=$LIBS
  10729. LIBS="-ldld $LIBS"
  10730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10731. /* end confdefs.h. */
  10732. /* Override any GCC internal prototype to avoid an error.
  10733. Use char because int might match the return type of a GCC
  10734. builtin and then its argument prototype would still apply. */
  10735. #ifdef __cplusplus
  10736. extern "C"
  10737. #endif
  10738. char shl_load ();
  10739. int
  10740. main ()
  10741. {
  10742. return shl_load ();
  10743. ;
  10744. return 0;
  10745. }
  10746. _ACEOF
  10747. if ac_fn_c_try_link "$LINENO"; then :
  10748. ac_cv_lib_dld_shl_load=yes
  10749. else
  10750. ac_cv_lib_dld_shl_load=no
  10751. fi
  10752. rm -f core conftest.err conftest.$ac_objext \
  10753. conftest$ac_exeext conftest.$ac_ext
  10754. LIBS=$ac_check_lib_save_LIBS
  10755. fi
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10757. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10758. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10759. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10760. else
  10761. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10762. if test "x$ac_cv_func_dlopen" = xyes; then :
  10763. lt_cv_dlopen=dlopen
  10764. else
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10766. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10767. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10768. $as_echo_n "(cached) " >&6
  10769. else
  10770. ac_check_lib_save_LIBS=$LIBS
  10771. LIBS="-ldl $LIBS"
  10772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10773. /* end confdefs.h. */
  10774. /* Override any GCC internal prototype to avoid an error.
  10775. Use char because int might match the return type of a GCC
  10776. builtin and then its argument prototype would still apply. */
  10777. #ifdef __cplusplus
  10778. extern "C"
  10779. #endif
  10780. char dlopen ();
  10781. int
  10782. main ()
  10783. {
  10784. return dlopen ();
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. if ac_fn_c_try_link "$LINENO"; then :
  10790. ac_cv_lib_dl_dlopen=yes
  10791. else
  10792. ac_cv_lib_dl_dlopen=no
  10793. fi
  10794. rm -f core conftest.err conftest.$ac_objext \
  10795. conftest$ac_exeext conftest.$ac_ext
  10796. LIBS=$ac_check_lib_save_LIBS
  10797. fi
  10798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10799. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10800. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10801. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10802. else
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10804. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10805. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10806. $as_echo_n "(cached) " >&6
  10807. else
  10808. ac_check_lib_save_LIBS=$LIBS
  10809. LIBS="-lsvld $LIBS"
  10810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10811. /* end confdefs.h. */
  10812. /* Override any GCC internal prototype to avoid an error.
  10813. Use char because int might match the return type of a GCC
  10814. builtin and then its argument prototype would still apply. */
  10815. #ifdef __cplusplus
  10816. extern "C"
  10817. #endif
  10818. char dlopen ();
  10819. int
  10820. main ()
  10821. {
  10822. return dlopen ();
  10823. ;
  10824. return 0;
  10825. }
  10826. _ACEOF
  10827. if ac_fn_c_try_link "$LINENO"; then :
  10828. ac_cv_lib_svld_dlopen=yes
  10829. else
  10830. ac_cv_lib_svld_dlopen=no
  10831. fi
  10832. rm -f core conftest.err conftest.$ac_objext \
  10833. conftest$ac_exeext conftest.$ac_ext
  10834. LIBS=$ac_check_lib_save_LIBS
  10835. fi
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10837. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10838. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10839. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10840. else
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10842. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10843. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. ac_check_lib_save_LIBS=$LIBS
  10847. LIBS="-ldld $LIBS"
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. /* Override any GCC internal prototype to avoid an error.
  10851. Use char because int might match the return type of a GCC
  10852. builtin and then its argument prototype would still apply. */
  10853. #ifdef __cplusplus
  10854. extern "C"
  10855. #endif
  10856. char dld_link ();
  10857. int
  10858. main ()
  10859. {
  10860. return dld_link ();
  10861. ;
  10862. return 0;
  10863. }
  10864. _ACEOF
  10865. if ac_fn_c_try_link "$LINENO"; then :
  10866. ac_cv_lib_dld_dld_link=yes
  10867. else
  10868. ac_cv_lib_dld_dld_link=no
  10869. fi
  10870. rm -f core conftest.err conftest.$ac_objext \
  10871. conftest$ac_exeext conftest.$ac_ext
  10872. LIBS=$ac_check_lib_save_LIBS
  10873. fi
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10875. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10876. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10877. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10878. fi
  10879. fi
  10880. fi
  10881. fi
  10882. fi
  10883. fi
  10884. ;;
  10885. esac
  10886. if test no = "$lt_cv_dlopen"; then
  10887. enable_dlopen=no
  10888. else
  10889. enable_dlopen=yes
  10890. fi
  10891. case $lt_cv_dlopen in
  10892. dlopen)
  10893. save_CPPFLAGS=$CPPFLAGS
  10894. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10895. save_LDFLAGS=$LDFLAGS
  10896. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10897. save_LIBS=$LIBS
  10898. LIBS="$lt_cv_dlopen_libs $LIBS"
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10900. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10901. if ${lt_cv_dlopen_self+:} false; then :
  10902. $as_echo_n "(cached) " >&6
  10903. else
  10904. if test yes = "$cross_compiling"; then :
  10905. lt_cv_dlopen_self=cross
  10906. else
  10907. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10908. lt_status=$lt_dlunknown
  10909. cat > conftest.$ac_ext <<_LT_EOF
  10910. #line $LINENO "configure"
  10911. #include "confdefs.h"
  10912. #if HAVE_DLFCN_H
  10913. #include <dlfcn.h>
  10914. #endif
  10915. #include <stdio.h>
  10916. #ifdef RTLD_GLOBAL
  10917. # define LT_DLGLOBAL RTLD_GLOBAL
  10918. #else
  10919. # ifdef DL_GLOBAL
  10920. # define LT_DLGLOBAL DL_GLOBAL
  10921. # else
  10922. # define LT_DLGLOBAL 0
  10923. # endif
  10924. #endif
  10925. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10926. find out it does not work in some platform. */
  10927. #ifndef LT_DLLAZY_OR_NOW
  10928. # ifdef RTLD_LAZY
  10929. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10930. # else
  10931. # ifdef DL_LAZY
  10932. # define LT_DLLAZY_OR_NOW DL_LAZY
  10933. # else
  10934. # ifdef RTLD_NOW
  10935. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10936. # else
  10937. # ifdef DL_NOW
  10938. # define LT_DLLAZY_OR_NOW DL_NOW
  10939. # else
  10940. # define LT_DLLAZY_OR_NOW 0
  10941. # endif
  10942. # endif
  10943. # endif
  10944. # endif
  10945. #endif
  10946. /* When -fvisibility=hidden is used, assume the code has been annotated
  10947. correspondingly for the symbols needed. */
  10948. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10949. int fnord () __attribute__((visibility("default")));
  10950. #endif
  10951. int fnord () { return 42; }
  10952. int main ()
  10953. {
  10954. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10955. int status = $lt_dlunknown;
  10956. if (self)
  10957. {
  10958. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10959. else
  10960. {
  10961. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10962. else puts (dlerror ());
  10963. }
  10964. /* dlclose (self); */
  10965. }
  10966. else
  10967. puts (dlerror ());
  10968. return status;
  10969. }
  10970. _LT_EOF
  10971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10972. (eval $ac_link) 2>&5
  10973. ac_status=$?
  10974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10975. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10976. (./conftest; exit; ) >&5 2>/dev/null
  10977. lt_status=$?
  10978. case x$lt_status in
  10979. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10980. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10981. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10982. esac
  10983. else :
  10984. # compilation failed
  10985. lt_cv_dlopen_self=no
  10986. fi
  10987. fi
  10988. rm -fr conftest*
  10989. fi
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10991. $as_echo "$lt_cv_dlopen_self" >&6; }
  10992. if test yes = "$lt_cv_dlopen_self"; then
  10993. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10995. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10996. if ${lt_cv_dlopen_self_static+:} false; then :
  10997. $as_echo_n "(cached) " >&6
  10998. else
  10999. if test yes = "$cross_compiling"; then :
  11000. lt_cv_dlopen_self_static=cross
  11001. else
  11002. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11003. lt_status=$lt_dlunknown
  11004. cat > conftest.$ac_ext <<_LT_EOF
  11005. #line $LINENO "configure"
  11006. #include "confdefs.h"
  11007. #if HAVE_DLFCN_H
  11008. #include <dlfcn.h>
  11009. #endif
  11010. #include <stdio.h>
  11011. #ifdef RTLD_GLOBAL
  11012. # define LT_DLGLOBAL RTLD_GLOBAL
  11013. #else
  11014. # ifdef DL_GLOBAL
  11015. # define LT_DLGLOBAL DL_GLOBAL
  11016. # else
  11017. # define LT_DLGLOBAL 0
  11018. # endif
  11019. #endif
  11020. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11021. find out it does not work in some platform. */
  11022. #ifndef LT_DLLAZY_OR_NOW
  11023. # ifdef RTLD_LAZY
  11024. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11025. # else
  11026. # ifdef DL_LAZY
  11027. # define LT_DLLAZY_OR_NOW DL_LAZY
  11028. # else
  11029. # ifdef RTLD_NOW
  11030. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11031. # else
  11032. # ifdef DL_NOW
  11033. # define LT_DLLAZY_OR_NOW DL_NOW
  11034. # else
  11035. # define LT_DLLAZY_OR_NOW 0
  11036. # endif
  11037. # endif
  11038. # endif
  11039. # endif
  11040. #endif
  11041. /* When -fvisibility=hidden is used, assume the code has been annotated
  11042. correspondingly for the symbols needed. */
  11043. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11044. int fnord () __attribute__((visibility("default")));
  11045. #endif
  11046. int fnord () { return 42; }
  11047. int main ()
  11048. {
  11049. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11050. int status = $lt_dlunknown;
  11051. if (self)
  11052. {
  11053. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11054. else
  11055. {
  11056. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11057. else puts (dlerror ());
  11058. }
  11059. /* dlclose (self); */
  11060. }
  11061. else
  11062. puts (dlerror ());
  11063. return status;
  11064. }
  11065. _LT_EOF
  11066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11067. (eval $ac_link) 2>&5
  11068. ac_status=$?
  11069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11070. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11071. (./conftest; exit; ) >&5 2>/dev/null
  11072. lt_status=$?
  11073. case x$lt_status in
  11074. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11075. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11076. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11077. esac
  11078. else :
  11079. # compilation failed
  11080. lt_cv_dlopen_self_static=no
  11081. fi
  11082. fi
  11083. rm -fr conftest*
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11086. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11087. fi
  11088. CPPFLAGS=$save_CPPFLAGS
  11089. LDFLAGS=$save_LDFLAGS
  11090. LIBS=$save_LIBS
  11091. ;;
  11092. esac
  11093. case $lt_cv_dlopen_self in
  11094. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11095. *) enable_dlopen_self=unknown ;;
  11096. esac
  11097. case $lt_cv_dlopen_self_static in
  11098. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11099. *) enable_dlopen_self_static=unknown ;;
  11100. esac
  11101. fi
  11102. striplib=
  11103. old_striplib=
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11105. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11106. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11107. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11108. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11110. $as_echo "yes" >&6; }
  11111. else
  11112. # FIXME - insert some real tests, host_os isn't really good enough
  11113. case $host_os in
  11114. darwin*)
  11115. if test -n "$STRIP"; then
  11116. striplib="$STRIP -x"
  11117. old_striplib="$STRIP -S"
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11119. $as_echo "yes" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. ;;
  11125. *)
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11127. $as_echo "no" >&6; }
  11128. ;;
  11129. esac
  11130. fi
  11131. # Report what library types will actually be built
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11133. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11135. $as_echo "$can_build_shared" >&6; }
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11137. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11138. test no = "$can_build_shared" && enable_shared=no
  11139. # On AIX, shared libraries and static libraries use the same namespace, and
  11140. # are all built from PIC.
  11141. case $host_os in
  11142. aix3*)
  11143. test yes = "$enable_shared" && enable_static=no
  11144. if test -n "$RANLIB"; then
  11145. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11146. postinstall_cmds='$RANLIB $lib'
  11147. fi
  11148. ;;
  11149. aix[4-9]*)
  11150. if test ia64 != "$host_cpu"; then
  11151. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11152. yes,aix,yes) ;; # shared object as lib.so file only
  11153. yes,svr4,*) ;; # shared object as lib.so archive member only
  11154. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11155. esac
  11156. fi
  11157. ;;
  11158. esac
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11160. $as_echo "$enable_shared" >&6; }
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11162. $as_echo_n "checking whether to build static libraries... " >&6; }
  11163. # Make sure either enable_shared or enable_static is yes.
  11164. test yes = "$enable_shared" || enable_static=yes
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11166. $as_echo "$enable_static" >&6; }
  11167. fi
  11168. ac_ext=c
  11169. ac_cpp='$CPP $CPPFLAGS'
  11170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11173. CC=$lt_save_CC
  11174. if test -n "$CXX" && ( test no != "$CXX" &&
  11175. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11176. (test g++ != "$CXX"))); then
  11177. ac_ext=cpp
  11178. ac_cpp='$CXXCPP $CPPFLAGS'
  11179. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11180. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11181. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11183. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11184. if test -z "$CXXCPP"; then
  11185. if ${ac_cv_prog_CXXCPP+:} false; then :
  11186. $as_echo_n "(cached) " >&6
  11187. else
  11188. # Double quotes because CXXCPP needs to be expanded
  11189. for CXXCPP in "$CXX -E" "/lib/cpp"
  11190. do
  11191. ac_preproc_ok=false
  11192. for ac_cxx_preproc_warn_flag in '' yes
  11193. do
  11194. # Use a header file that comes with gcc, so configuring glibc
  11195. # with a fresh cross-compiler works.
  11196. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11197. # <limits.h> exists even on freestanding compilers.
  11198. # On the NeXT, cc -E runs the code through the compiler's parser,
  11199. # not just through cpp. "Syntax error" is here to catch this case.
  11200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11201. /* end confdefs.h. */
  11202. #ifdef __STDC__
  11203. # include <limits.h>
  11204. #else
  11205. # include <assert.h>
  11206. #endif
  11207. Syntax error
  11208. _ACEOF
  11209. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11210. else
  11211. # Broken: fails on valid input.
  11212. continue
  11213. fi
  11214. rm -f conftest.err conftest.i conftest.$ac_ext
  11215. # OK, works on sane cases. Now check whether nonexistent headers
  11216. # can be detected and how.
  11217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11218. /* end confdefs.h. */
  11219. #include <ac_nonexistent.h>
  11220. _ACEOF
  11221. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11222. # Broken: success on invalid input.
  11223. continue
  11224. else
  11225. # Passes both tests.
  11226. ac_preproc_ok=:
  11227. break
  11228. fi
  11229. rm -f conftest.err conftest.i conftest.$ac_ext
  11230. done
  11231. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11232. rm -f conftest.i conftest.err conftest.$ac_ext
  11233. if $ac_preproc_ok; then :
  11234. break
  11235. fi
  11236. done
  11237. ac_cv_prog_CXXCPP=$CXXCPP
  11238. fi
  11239. CXXCPP=$ac_cv_prog_CXXCPP
  11240. else
  11241. ac_cv_prog_CXXCPP=$CXXCPP
  11242. fi
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11244. $as_echo "$CXXCPP" >&6; }
  11245. ac_preproc_ok=false
  11246. for ac_cxx_preproc_warn_flag in '' yes
  11247. do
  11248. # Use a header file that comes with gcc, so configuring glibc
  11249. # with a fresh cross-compiler works.
  11250. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11251. # <limits.h> exists even on freestanding compilers.
  11252. # On the NeXT, cc -E runs the code through the compiler's parser,
  11253. # not just through cpp. "Syntax error" is here to catch this case.
  11254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11255. /* end confdefs.h. */
  11256. #ifdef __STDC__
  11257. # include <limits.h>
  11258. #else
  11259. # include <assert.h>
  11260. #endif
  11261. Syntax error
  11262. _ACEOF
  11263. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11264. else
  11265. # Broken: fails on valid input.
  11266. continue
  11267. fi
  11268. rm -f conftest.err conftest.i conftest.$ac_ext
  11269. # OK, works on sane cases. Now check whether nonexistent headers
  11270. # can be detected and how.
  11271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11272. /* end confdefs.h. */
  11273. #include <ac_nonexistent.h>
  11274. _ACEOF
  11275. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11276. # Broken: success on invalid input.
  11277. continue
  11278. else
  11279. # Passes both tests.
  11280. ac_preproc_ok=:
  11281. break
  11282. fi
  11283. rm -f conftest.err conftest.i conftest.$ac_ext
  11284. done
  11285. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11286. rm -f conftest.i conftest.err conftest.$ac_ext
  11287. if $ac_preproc_ok; then :
  11288. else
  11289. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11291. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11292. See \`config.log' for more details" "$LINENO" 5; }
  11293. fi
  11294. ac_ext=c
  11295. ac_cpp='$CPP $CPPFLAGS'
  11296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11299. else
  11300. _lt_caught_CXX_error=yes
  11301. fi
  11302. ac_ext=cpp
  11303. ac_cpp='$CXXCPP $CPPFLAGS'
  11304. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11305. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11306. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11307. archive_cmds_need_lc_CXX=no
  11308. allow_undefined_flag_CXX=
  11309. always_export_symbols_CXX=no
  11310. archive_expsym_cmds_CXX=
  11311. compiler_needs_object_CXX=no
  11312. export_dynamic_flag_spec_CXX=
  11313. hardcode_direct_CXX=no
  11314. hardcode_direct_absolute_CXX=no
  11315. hardcode_libdir_flag_spec_CXX=
  11316. hardcode_libdir_separator_CXX=
  11317. hardcode_minus_L_CXX=no
  11318. hardcode_shlibpath_var_CXX=unsupported
  11319. hardcode_automatic_CXX=no
  11320. inherit_rpath_CXX=no
  11321. module_cmds_CXX=
  11322. module_expsym_cmds_CXX=
  11323. link_all_deplibs_CXX=unknown
  11324. old_archive_cmds_CXX=$old_archive_cmds
  11325. reload_flag_CXX=$reload_flag
  11326. reload_cmds_CXX=$reload_cmds
  11327. no_undefined_flag_CXX=
  11328. whole_archive_flag_spec_CXX=
  11329. enable_shared_with_static_runtimes_CXX=no
  11330. # Source file extension for C++ test sources.
  11331. ac_ext=cpp
  11332. # Object file extension for compiled C++ test sources.
  11333. objext=o
  11334. objext_CXX=$objext
  11335. # No sense in running all these tests if we already determined that
  11336. # the CXX compiler isn't working. Some variables (like enable_shared)
  11337. # are currently assumed to apply to all compilers on this platform,
  11338. # and will be corrupted by setting them based on a non-working compiler.
  11339. if test yes != "$_lt_caught_CXX_error"; then
  11340. # Code to be used in simple compile tests
  11341. lt_simple_compile_test_code="int some_variable = 0;"
  11342. # Code to be used in simple link tests
  11343. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11344. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11345. # If no C compiler was specified, use CC.
  11346. LTCC=${LTCC-"$CC"}
  11347. # If no C compiler flags were specified, use CFLAGS.
  11348. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11349. # Allow CC to be a program name with arguments.
  11350. compiler=$CC
  11351. # save warnings/boilerplate of simple test code
  11352. ac_outfile=conftest.$ac_objext
  11353. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11354. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11355. _lt_compiler_boilerplate=`cat conftest.err`
  11356. $RM conftest*
  11357. ac_outfile=conftest.$ac_objext
  11358. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11359. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11360. _lt_linker_boilerplate=`cat conftest.err`
  11361. $RM -r conftest*
  11362. # Allow CC to be a program name with arguments.
  11363. lt_save_CC=$CC
  11364. lt_save_CFLAGS=$CFLAGS
  11365. lt_save_LD=$LD
  11366. lt_save_GCC=$GCC
  11367. GCC=$GXX
  11368. lt_save_with_gnu_ld=$with_gnu_ld
  11369. lt_save_path_LD=$lt_cv_path_LD
  11370. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11371. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11372. else
  11373. $as_unset lt_cv_prog_gnu_ld
  11374. fi
  11375. if test -n "${lt_cv_path_LDCXX+set}"; then
  11376. lt_cv_path_LD=$lt_cv_path_LDCXX
  11377. else
  11378. $as_unset lt_cv_path_LD
  11379. fi
  11380. test -z "${LDCXX+set}" || LD=$LDCXX
  11381. CC=${CXX-"c++"}
  11382. CFLAGS=$CXXFLAGS
  11383. compiler=$CC
  11384. compiler_CXX=$CC
  11385. func_cc_basename $compiler
  11386. cc_basename=$func_cc_basename_result
  11387. if test -n "$compiler"; then
  11388. # We don't want -fno-exception when compiling C++ code, so set the
  11389. # no_builtin_flag separately
  11390. if test yes = "$GXX"; then
  11391. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11392. else
  11393. lt_prog_compiler_no_builtin_flag_CXX=
  11394. fi
  11395. if test yes = "$GXX"; then
  11396. # Set up default GNU C++ configuration
  11397. # Check whether --with-gnu-ld was given.
  11398. if test "${with_gnu_ld+set}" = set; then :
  11399. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11400. else
  11401. with_gnu_ld=no
  11402. fi
  11403. ac_prog=ld
  11404. if test yes = "$GCC"; then
  11405. # Check if gcc -print-prog-name=ld gives a path.
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11407. $as_echo_n "checking for ld used by $CC... " >&6; }
  11408. case $host in
  11409. *-*-mingw*)
  11410. # gcc leaves a trailing carriage return, which upsets mingw
  11411. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11412. *)
  11413. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11414. esac
  11415. case $ac_prog in
  11416. # Accept absolute paths.
  11417. [\\/]* | ?:[\\/]*)
  11418. re_direlt='/[^/][^/]*/\.\./'
  11419. # Canonicalize the pathname of ld
  11420. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11421. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11422. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11423. done
  11424. test -z "$LD" && LD=$ac_prog
  11425. ;;
  11426. "")
  11427. # If it fails, then pretend we aren't using GCC.
  11428. ac_prog=ld
  11429. ;;
  11430. *)
  11431. # If it is relative, then search for the first ld in PATH.
  11432. with_gnu_ld=unknown
  11433. ;;
  11434. esac
  11435. elif test yes = "$with_gnu_ld"; then
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11437. $as_echo_n "checking for GNU ld... " >&6; }
  11438. else
  11439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11440. $as_echo_n "checking for non-GNU ld... " >&6; }
  11441. fi
  11442. if ${lt_cv_path_LD+:} false; then :
  11443. $as_echo_n "(cached) " >&6
  11444. else
  11445. if test -z "$LD"; then
  11446. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11447. for ac_dir in $PATH; do
  11448. IFS=$lt_save_ifs
  11449. test -z "$ac_dir" && ac_dir=.
  11450. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11451. lt_cv_path_LD=$ac_dir/$ac_prog
  11452. # Check to see if the program is GNU ld. I'd rather use --version,
  11453. # but apparently some variants of GNU ld only accept -v.
  11454. # Break only if it was the GNU/non-GNU ld that we prefer.
  11455. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11456. *GNU* | *'with BFD'*)
  11457. test no != "$with_gnu_ld" && break
  11458. ;;
  11459. *)
  11460. test yes != "$with_gnu_ld" && break
  11461. ;;
  11462. esac
  11463. fi
  11464. done
  11465. IFS=$lt_save_ifs
  11466. else
  11467. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11468. fi
  11469. fi
  11470. LD=$lt_cv_path_LD
  11471. if test -n "$LD"; then
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11473. $as_echo "$LD" >&6; }
  11474. else
  11475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11476. $as_echo "no" >&6; }
  11477. fi
  11478. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11480. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11481. if ${lt_cv_prog_gnu_ld+:} false; then :
  11482. $as_echo_n "(cached) " >&6
  11483. else
  11484. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11485. case `$LD -v 2>&1 </dev/null` in
  11486. *GNU* | *'with BFD'*)
  11487. lt_cv_prog_gnu_ld=yes
  11488. ;;
  11489. *)
  11490. lt_cv_prog_gnu_ld=no
  11491. ;;
  11492. esac
  11493. fi
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11495. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11496. with_gnu_ld=$lt_cv_prog_gnu_ld
  11497. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11498. # archiving commands below assume that GNU ld is being used.
  11499. if test yes = "$with_gnu_ld"; then
  11500. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11501. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11502. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11503. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11504. # If archive_cmds runs LD, not CC, wlarc should be empty
  11505. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11506. # investigate it a little bit more. (MM)
  11507. wlarc='$wl'
  11508. # ancient GNU ld didn't support --whole-archive et. al.
  11509. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11510. $GREP 'no-whole-archive' > /dev/null; then
  11511. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11512. else
  11513. whole_archive_flag_spec_CXX=
  11514. fi
  11515. else
  11516. with_gnu_ld=no
  11517. wlarc=
  11518. # A generic and very simple default shared library creation
  11519. # command for GNU C++ for the case where it uses the native
  11520. # linker, instead of GNU ld. If possible, this setting should
  11521. # overridden to take advantage of the native linker features on
  11522. # the platform it is being used on.
  11523. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11524. fi
  11525. # Commands to make compiler produce verbose output that lists
  11526. # what "hidden" libraries, object files and flags are used when
  11527. # linking a shared library.
  11528. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  11529. else
  11530. GXX=no
  11531. with_gnu_ld=no
  11532. wlarc=
  11533. fi
  11534. # PORTME: fill in a description of your system's C++ link characteristics
  11535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11536. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11537. ld_shlibs_CXX=yes
  11538. case $host_os in
  11539. aix3*)
  11540. # FIXME: insert proper C++ library support
  11541. ld_shlibs_CXX=no
  11542. ;;
  11543. aix[4-9]*)
  11544. if test ia64 = "$host_cpu"; then
  11545. # On IA64, the linker does run time linking by default, so we don't
  11546. # have to do anything special.
  11547. aix_use_runtimelinking=no
  11548. exp_sym_flag='-Bexport'
  11549. no_entry_flag=
  11550. else
  11551. aix_use_runtimelinking=no
  11552. # Test if we are trying to use run time linking or normal
  11553. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11554. # have runtime linking enabled, and use it for executables.
  11555. # For shared libraries, we enable/disable runtime linking
  11556. # depending on the kind of the shared library created -
  11557. # when "with_aix_soname,aix_use_runtimelinking" is:
  11558. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11559. # "aix,yes" lib.so shared, rtl:yes, for executables
  11560. # lib.a static archive
  11561. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11562. # lib.a(lib.so.V) shared, rtl:no, for executables
  11563. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11564. # lib.a(lib.so.V) shared, rtl:no
  11565. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11566. # lib.a static archive
  11567. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11568. for ld_flag in $LDFLAGS; do
  11569. case $ld_flag in
  11570. *-brtl*)
  11571. aix_use_runtimelinking=yes
  11572. break
  11573. ;;
  11574. esac
  11575. done
  11576. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11577. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11578. # so we don't have lib.a shared libs to link our executables.
  11579. # We have to force runtime linking in this case.
  11580. aix_use_runtimelinking=yes
  11581. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11582. fi
  11583. ;;
  11584. esac
  11585. exp_sym_flag='-bexport'
  11586. no_entry_flag='-bnoentry'
  11587. fi
  11588. # When large executables or shared objects are built, AIX ld can
  11589. # have problems creating the table of contents. If linking a library
  11590. # or program results in "error TOC overflow" add -mminimal-toc to
  11591. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11592. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11593. archive_cmds_CXX=''
  11594. hardcode_direct_CXX=yes
  11595. hardcode_direct_absolute_CXX=yes
  11596. hardcode_libdir_separator_CXX=':'
  11597. link_all_deplibs_CXX=yes
  11598. file_list_spec_CXX='$wl-f,'
  11599. case $with_aix_soname,$aix_use_runtimelinking in
  11600. aix,*) ;; # no import file
  11601. svr4,* | *,yes) # use import file
  11602. # The Import File defines what to hardcode.
  11603. hardcode_direct_CXX=no
  11604. hardcode_direct_absolute_CXX=no
  11605. ;;
  11606. esac
  11607. if test yes = "$GXX"; then
  11608. case $host_os in aix4.[012]|aix4.[012].*)
  11609. # We only want to do this on AIX 4.2 and lower, the check
  11610. # below for broken collect2 doesn't work under 4.3+
  11611. collect2name=`$CC -print-prog-name=collect2`
  11612. if test -f "$collect2name" &&
  11613. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11614. then
  11615. # We have reworked collect2
  11616. :
  11617. else
  11618. # We have old collect2
  11619. hardcode_direct_CXX=unsupported
  11620. # It fails to find uninstalled libraries when the uninstalled
  11621. # path is not listed in the libpath. Setting hardcode_minus_L
  11622. # to unsupported forces relinking
  11623. hardcode_minus_L_CXX=yes
  11624. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11625. hardcode_libdir_separator_CXX=
  11626. fi
  11627. esac
  11628. shared_flag='-shared'
  11629. if test yes = "$aix_use_runtimelinking"; then
  11630. shared_flag=$shared_flag' $wl-G'
  11631. fi
  11632. # Need to ensure runtime linking is disabled for the traditional
  11633. # shared library, or the linker may eventually find shared libraries
  11634. # /with/ Import File - we do not want to mix them.
  11635. shared_flag_aix='-shared'
  11636. shared_flag_svr4='-shared $wl-G'
  11637. else
  11638. # not using gcc
  11639. if test ia64 = "$host_cpu"; then
  11640. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11641. # chokes on -Wl,-G. The following line is correct:
  11642. shared_flag='-G'
  11643. else
  11644. if test yes = "$aix_use_runtimelinking"; then
  11645. shared_flag='$wl-G'
  11646. else
  11647. shared_flag='$wl-bM:SRE'
  11648. fi
  11649. shared_flag_aix='$wl-bM:SRE'
  11650. shared_flag_svr4='$wl-G'
  11651. fi
  11652. fi
  11653. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11654. # It seems that -bexpall does not export symbols beginning with
  11655. # underscore (_), so it is better to generate a list of symbols to
  11656. # export.
  11657. always_export_symbols_CXX=yes
  11658. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11659. # Warning - without using the other runtime loading flags (-brtl),
  11660. # -berok will link without error, but may produce a broken library.
  11661. # The "-G" linker flag allows undefined symbols.
  11662. no_undefined_flag_CXX='-bernotok'
  11663. # Determine the default libpath from the value encoded in an empty
  11664. # executable.
  11665. if test set = "${lt_cv_aix_libpath+set}"; then
  11666. aix_libpath=$lt_cv_aix_libpath
  11667. else
  11668. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11669. $as_echo_n "(cached) " >&6
  11670. else
  11671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11672. /* end confdefs.h. */
  11673. int
  11674. main ()
  11675. {
  11676. ;
  11677. return 0;
  11678. }
  11679. _ACEOF
  11680. if ac_fn_cxx_try_link "$LINENO"; then :
  11681. lt_aix_libpath_sed='
  11682. /Import File Strings/,/^$/ {
  11683. /^0/ {
  11684. s/^0 *\([^ ]*\) *$/\1/
  11685. p
  11686. }
  11687. }'
  11688. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11689. # Check for a 64-bit object if we didn't find anything.
  11690. if test -z "$lt_cv_aix_libpath__CXX"; then
  11691. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11692. fi
  11693. fi
  11694. rm -f core conftest.err conftest.$ac_objext \
  11695. conftest$ac_exeext conftest.$ac_ext
  11696. if test -z "$lt_cv_aix_libpath__CXX"; then
  11697. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11698. fi
  11699. fi
  11700. aix_libpath=$lt_cv_aix_libpath__CXX
  11701. fi
  11702. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11703. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11704. else
  11705. if test ia64 = "$host_cpu"; then
  11706. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11707. allow_undefined_flag_CXX="-z nodefs"
  11708. 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"
  11709. else
  11710. # Determine the default libpath from the value encoded in an
  11711. # empty executable.
  11712. if test set = "${lt_cv_aix_libpath+set}"; then
  11713. aix_libpath=$lt_cv_aix_libpath
  11714. else
  11715. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11716. $as_echo_n "(cached) " >&6
  11717. else
  11718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11719. /* end confdefs.h. */
  11720. int
  11721. main ()
  11722. {
  11723. ;
  11724. return 0;
  11725. }
  11726. _ACEOF
  11727. if ac_fn_cxx_try_link "$LINENO"; then :
  11728. lt_aix_libpath_sed='
  11729. /Import File Strings/,/^$/ {
  11730. /^0/ {
  11731. s/^0 *\([^ ]*\) *$/\1/
  11732. p
  11733. }
  11734. }'
  11735. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11736. # Check for a 64-bit object if we didn't find anything.
  11737. if test -z "$lt_cv_aix_libpath__CXX"; then
  11738. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11739. fi
  11740. fi
  11741. rm -f core conftest.err conftest.$ac_objext \
  11742. conftest$ac_exeext conftest.$ac_ext
  11743. if test -z "$lt_cv_aix_libpath__CXX"; then
  11744. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11745. fi
  11746. fi
  11747. aix_libpath=$lt_cv_aix_libpath__CXX
  11748. fi
  11749. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11750. # Warning - without using the other run time loading flags,
  11751. # -berok will link without error, but may produce a broken library.
  11752. no_undefined_flag_CXX=' $wl-bernotok'
  11753. allow_undefined_flag_CXX=' $wl-berok'
  11754. if test yes = "$with_gnu_ld"; then
  11755. # We only use this code for GNU lds that support --whole-archive.
  11756. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11757. else
  11758. # Exported symbols can be pulled into shared objects from archives
  11759. whole_archive_flag_spec_CXX='$convenience'
  11760. fi
  11761. archive_cmds_need_lc_CXX=yes
  11762. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11763. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11764. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11765. if test svr4 != "$with_aix_soname"; then
  11766. # This is similar to how AIX traditionally builds its shared
  11767. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11768. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11769. fi
  11770. if test aix != "$with_aix_soname"; then
  11771. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11772. else
  11773. # used by -dlpreopen to get the symbols
  11774. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11775. fi
  11776. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11777. fi
  11778. fi
  11779. ;;
  11780. beos*)
  11781. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11782. allow_undefined_flag_CXX=unsupported
  11783. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11784. # support --undefined. This deserves some investigation. FIXME
  11785. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11786. else
  11787. ld_shlibs_CXX=no
  11788. fi
  11789. ;;
  11790. chorus*)
  11791. case $cc_basename in
  11792. *)
  11793. # FIXME: insert proper C++ library support
  11794. ld_shlibs_CXX=no
  11795. ;;
  11796. esac
  11797. ;;
  11798. cygwin* | mingw* | pw32* | cegcc*)
  11799. case $GXX,$cc_basename in
  11800. ,cl* | no,cl*)
  11801. # Native MSVC
  11802. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11803. # no search path for DLLs.
  11804. hardcode_libdir_flag_spec_CXX=' '
  11805. allow_undefined_flag_CXX=unsupported
  11806. always_export_symbols_CXX=yes
  11807. file_list_spec_CXX='@'
  11808. # Tell ltmain to make .lib files, not .a files.
  11809. libext=lib
  11810. # Tell ltmain to make .dll files, not .so files.
  11811. shrext_cmds=.dll
  11812. # FIXME: Setting linknames here is a bad hack.
  11813. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11814. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11815. cp "$export_symbols" "$output_objdir/$soname.def";
  11816. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11817. else
  11818. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11819. fi~
  11820. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11821. linknames='
  11822. # The linker will not automatically build a static lib if we build a DLL.
  11823. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11824. enable_shared_with_static_runtimes_CXX=yes
  11825. # Don't use ranlib
  11826. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11827. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11828. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11829. case $lt_outputfile in
  11830. *.exe|*.EXE) ;;
  11831. *)
  11832. lt_outputfile=$lt_outputfile.exe
  11833. lt_tool_outputfile=$lt_tool_outputfile.exe
  11834. ;;
  11835. esac~
  11836. func_to_tool_file "$lt_outputfile"~
  11837. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11838. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11839. $RM "$lt_outputfile.manifest";
  11840. fi'
  11841. ;;
  11842. *)
  11843. # g++
  11844. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11845. # as there is no search path for DLLs.
  11846. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11847. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11848. allow_undefined_flag_CXX=unsupported
  11849. always_export_symbols_CXX=no
  11850. enable_shared_with_static_runtimes_CXX=yes
  11851. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11852. 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'
  11853. # If the export-symbols file already is a .def file, use it as
  11854. # is; otherwise, prepend EXPORTS...
  11855. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11856. cp $export_symbols $output_objdir/$soname.def;
  11857. else
  11858. echo EXPORTS > $output_objdir/$soname.def;
  11859. cat $export_symbols >> $output_objdir/$soname.def;
  11860. fi~
  11861. $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'
  11862. else
  11863. ld_shlibs_CXX=no
  11864. fi
  11865. ;;
  11866. esac
  11867. ;;
  11868. darwin* | rhapsody*)
  11869. archive_cmds_need_lc_CXX=no
  11870. hardcode_direct_CXX=no
  11871. hardcode_automatic_CXX=yes
  11872. hardcode_shlibpath_var_CXX=unsupported
  11873. if test yes = "$lt_cv_ld_force_load"; then
  11874. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11875. else
  11876. whole_archive_flag_spec_CXX=''
  11877. fi
  11878. link_all_deplibs_CXX=yes
  11879. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11880. case $cc_basename in
  11881. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11882. *) _lt_dar_can_shared=$GCC ;;
  11883. esac
  11884. if test yes = "$_lt_dar_can_shared"; then
  11885. output_verbose_link_cmd=func_echo_all
  11886. 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"
  11887. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11888. 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"
  11889. 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"
  11890. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11891. 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"
  11892. 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"
  11893. fi
  11894. else
  11895. ld_shlibs_CXX=no
  11896. fi
  11897. ;;
  11898. os2*)
  11899. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11900. hardcode_minus_L_CXX=yes
  11901. allow_undefined_flag_CXX=unsupported
  11902. shrext_cmds=.dll
  11903. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11904. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11905. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11906. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11907. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11908. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11909. emximp -o $lib $output_objdir/$libname.def'
  11910. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11911. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11912. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11913. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11914. prefix_cmds="$SED"~
  11915. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11916. prefix_cmds="$prefix_cmds -e 1d";
  11917. fi~
  11918. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11919. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11920. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11921. emximp -o $lib $output_objdir/$libname.def'
  11922. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11923. enable_shared_with_static_runtimes_CXX=yes
  11924. ;;
  11925. dgux*)
  11926. case $cc_basename in
  11927. ec++*)
  11928. # FIXME: insert proper C++ library support
  11929. ld_shlibs_CXX=no
  11930. ;;
  11931. ghcx*)
  11932. # Green Hills C++ Compiler
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. *)
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. ;;
  11940. esac
  11941. ;;
  11942. freebsd2.*)
  11943. # C++ shared libraries reported to be fairly broken before
  11944. # switch to ELF
  11945. ld_shlibs_CXX=no
  11946. ;;
  11947. freebsd-elf*)
  11948. archive_cmds_need_lc_CXX=no
  11949. ;;
  11950. freebsd* | dragonfly*)
  11951. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11952. # conventions
  11953. ld_shlibs_CXX=yes
  11954. ;;
  11955. haiku*)
  11956. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11957. link_all_deplibs_CXX=yes
  11958. ;;
  11959. hpux9*)
  11960. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11961. hardcode_libdir_separator_CXX=:
  11962. export_dynamic_flag_spec_CXX='$wl-E'
  11963. hardcode_direct_CXX=yes
  11964. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11965. # but as the default
  11966. # location of the library.
  11967. case $cc_basename in
  11968. CC*)
  11969. # FIXME: insert proper C++ library support
  11970. ld_shlibs_CXX=no
  11971. ;;
  11972. aCC*)
  11973. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11974. # Commands to make compiler produce verbose output that lists
  11975. # what "hidden" libraries, object files and flags are used when
  11976. # linking a shared library.
  11977. #
  11978. # There doesn't appear to be a way to prevent this compiler from
  11979. # explicitly linking system object files so we need to strip them
  11980. # from the output so that they don't get included in the library
  11981. # dependencies.
  11982. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11983. ;;
  11984. *)
  11985. if test yes = "$GXX"; then
  11986. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11987. else
  11988. # FIXME: insert proper C++ library support
  11989. ld_shlibs_CXX=no
  11990. fi
  11991. ;;
  11992. esac
  11993. ;;
  11994. hpux10*|hpux11*)
  11995. if test no = "$with_gnu_ld"; then
  11996. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11997. hardcode_libdir_separator_CXX=:
  11998. case $host_cpu in
  11999. hppa*64*|ia64*)
  12000. ;;
  12001. *)
  12002. export_dynamic_flag_spec_CXX='$wl-E'
  12003. ;;
  12004. esac
  12005. fi
  12006. case $host_cpu in
  12007. hppa*64*|ia64*)
  12008. hardcode_direct_CXX=no
  12009. hardcode_shlibpath_var_CXX=no
  12010. ;;
  12011. *)
  12012. hardcode_direct_CXX=yes
  12013. hardcode_direct_absolute_CXX=yes
  12014. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12015. # but as the default
  12016. # location of the library.
  12017. ;;
  12018. esac
  12019. case $cc_basename in
  12020. CC*)
  12021. # FIXME: insert proper C++ library support
  12022. ld_shlibs_CXX=no
  12023. ;;
  12024. aCC*)
  12025. case $host_cpu in
  12026. hppa*64*)
  12027. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12028. ;;
  12029. ia64*)
  12030. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12031. ;;
  12032. *)
  12033. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12034. ;;
  12035. esac
  12036. # Commands to make compiler produce verbose output that lists
  12037. # what "hidden" libraries, object files and flags are used when
  12038. # linking a shared library.
  12039. #
  12040. # There doesn't appear to be a way to prevent this compiler from
  12041. # explicitly linking system object files so we need to strip them
  12042. # from the output so that they don't get included in the library
  12043. # dependencies.
  12044. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12045. ;;
  12046. *)
  12047. if test yes = "$GXX"; then
  12048. if test no = "$with_gnu_ld"; then
  12049. case $host_cpu in
  12050. hppa*64*)
  12051. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12052. ;;
  12053. ia64*)
  12054. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12055. ;;
  12056. *)
  12057. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12058. ;;
  12059. esac
  12060. fi
  12061. else
  12062. # FIXME: insert proper C++ library support
  12063. ld_shlibs_CXX=no
  12064. fi
  12065. ;;
  12066. esac
  12067. ;;
  12068. interix[3-9]*)
  12069. hardcode_direct_CXX=no
  12070. hardcode_shlibpath_var_CXX=no
  12071. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12072. export_dynamic_flag_spec_CXX='$wl-E'
  12073. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12074. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12075. # default) and relocated if they conflict, which is a slow very memory
  12076. # consuming and fragmenting process. To avoid this, we pick a random,
  12077. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12078. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12079. 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'
  12080. 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'
  12081. ;;
  12082. irix5* | irix6*)
  12083. case $cc_basename in
  12084. CC*)
  12085. # SGI C++
  12086. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12087. # Archives containing C++ object files must be created using
  12088. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12089. # necessary to make sure instantiated templates are included
  12090. # in the archive.
  12091. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12092. ;;
  12093. *)
  12094. if test yes = "$GXX"; then
  12095. if test no = "$with_gnu_ld"; then
  12096. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12097. else
  12098. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12099. fi
  12100. fi
  12101. link_all_deplibs_CXX=yes
  12102. ;;
  12103. esac
  12104. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12105. hardcode_libdir_separator_CXX=:
  12106. inherit_rpath_CXX=yes
  12107. ;;
  12108. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12109. case $cc_basename in
  12110. KCC*)
  12111. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12112. # KCC will only create a shared library if the output file
  12113. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12114. # to its proper name (with version) after linking.
  12115. 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'
  12116. 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'
  12117. # Commands to make compiler produce verbose output that lists
  12118. # what "hidden" libraries, object files and flags are used when
  12119. # linking a shared library.
  12120. #
  12121. # There doesn't appear to be a way to prevent this compiler from
  12122. # explicitly linking system object files so we need to strip them
  12123. # from the output so that they don't get included in the library
  12124. # dependencies.
  12125. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12126. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12127. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12128. # Archives containing C++ object files must be created using
  12129. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12130. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12131. ;;
  12132. icpc* | ecpc* )
  12133. # Intel C++
  12134. with_gnu_ld=yes
  12135. # version 8.0 and above of icpc choke on multiply defined symbols
  12136. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12137. # earlier do not add the objects themselves.
  12138. case `$CC -V 2>&1` in
  12139. *"Version 7."*)
  12140. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12141. 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'
  12142. ;;
  12143. *) # Version 8.0 or newer
  12144. tmp_idyn=
  12145. case $host_cpu in
  12146. ia64*) tmp_idyn=' -i_dynamic';;
  12147. esac
  12148. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12149. 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'
  12150. ;;
  12151. esac
  12152. archive_cmds_need_lc_CXX=no
  12153. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12154. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12155. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12156. ;;
  12157. pgCC* | pgcpp*)
  12158. # Portland Group C++ compiler
  12159. case `$CC -V` in
  12160. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12161. prelink_cmds_CXX='tpldir=Template.dir~
  12162. rm -rf $tpldir~
  12163. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12164. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12165. old_archive_cmds_CXX='tpldir=Template.dir~
  12166. rm -rf $tpldir~
  12167. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12168. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12169. $RANLIB $oldlib'
  12170. archive_cmds_CXX='tpldir=Template.dir~
  12171. rm -rf $tpldir~
  12172. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12173. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12174. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12175. rm -rf $tpldir~
  12176. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12177. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12178. ;;
  12179. *) # Version 6 and above use weak symbols
  12180. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12181. 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'
  12182. ;;
  12183. esac
  12184. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12185. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12186. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12187. ;;
  12188. cxx*)
  12189. # Compaq C++
  12190. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12191. 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'
  12192. runpath_var=LD_RUN_PATH
  12193. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12194. hardcode_libdir_separator_CXX=:
  12195. # Commands to make compiler produce verbose output that lists
  12196. # what "hidden" libraries, object files and flags are used when
  12197. # linking a shared library.
  12198. #
  12199. # There doesn't appear to be a way to prevent this compiler from
  12200. # explicitly linking system object files so we need to strip them
  12201. # from the output so that they don't get included in the library
  12202. # dependencies.
  12203. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12204. ;;
  12205. xl* | mpixl* | bgxl*)
  12206. # IBM XL 8.0 on PPC, with GNU ld
  12207. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12208. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12209. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12210. if test yes = "$supports_anon_versioning"; then
  12211. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12212. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12213. echo "local: *; };" >> $output_objdir/$libname.ver~
  12214. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12215. fi
  12216. ;;
  12217. *)
  12218. case `$CC -V 2>&1 | sed 5q` in
  12219. *Sun\ C*)
  12220. # Sun C++ 5.9
  12221. no_undefined_flag_CXX=' -zdefs'
  12222. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12223. 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'
  12224. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12225. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12226. compiler_needs_object_CXX=yes
  12227. # Not sure whether something based on
  12228. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12229. # would be better.
  12230. output_verbose_link_cmd='func_echo_all'
  12231. # Archives containing C++ object files must be created using
  12232. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12233. # necessary to make sure instantiated templates are included
  12234. # in the archive.
  12235. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12236. ;;
  12237. esac
  12238. ;;
  12239. esac
  12240. ;;
  12241. lynxos*)
  12242. # FIXME: insert proper C++ library support
  12243. ld_shlibs_CXX=no
  12244. ;;
  12245. m88k*)
  12246. # FIXME: insert proper C++ library support
  12247. ld_shlibs_CXX=no
  12248. ;;
  12249. mvs*)
  12250. case $cc_basename in
  12251. cxx*)
  12252. # FIXME: insert proper C++ library support
  12253. ld_shlibs_CXX=no
  12254. ;;
  12255. *)
  12256. # FIXME: insert proper C++ library support
  12257. ld_shlibs_CXX=no
  12258. ;;
  12259. esac
  12260. ;;
  12261. netbsd*)
  12262. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12263. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12264. wlarc=
  12265. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12266. hardcode_direct_CXX=yes
  12267. hardcode_shlibpath_var_CXX=no
  12268. fi
  12269. # Workaround some broken pre-1.5 toolchains
  12270. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12271. ;;
  12272. *nto* | *qnx*)
  12273. ld_shlibs_CXX=yes
  12274. ;;
  12275. openbsd* | bitrig*)
  12276. if test -f /usr/libexec/ld.so; then
  12277. hardcode_direct_CXX=yes
  12278. hardcode_shlibpath_var_CXX=no
  12279. hardcode_direct_absolute_CXX=yes
  12280. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12281. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12282. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12283. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12284. export_dynamic_flag_spec_CXX='$wl-E'
  12285. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12286. fi
  12287. output_verbose_link_cmd=func_echo_all
  12288. else
  12289. ld_shlibs_CXX=no
  12290. fi
  12291. ;;
  12292. osf3* | osf4* | osf5*)
  12293. case $cc_basename in
  12294. KCC*)
  12295. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12296. # KCC will only create a shared library if the output file
  12297. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12298. # to its proper name (with version) after linking.
  12299. 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'
  12300. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12301. hardcode_libdir_separator_CXX=:
  12302. # Archives containing C++ object files must be created using
  12303. # the KAI C++ compiler.
  12304. case $host in
  12305. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12306. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12307. esac
  12308. ;;
  12309. RCC*)
  12310. # Rational C++ 2.4.1
  12311. # FIXME: insert proper C++ library support
  12312. ld_shlibs_CXX=no
  12313. ;;
  12314. cxx*)
  12315. case $host in
  12316. osf3*)
  12317. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12318. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12319. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12320. ;;
  12321. *)
  12322. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12323. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12324. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12325. echo "-hidden">> $lib.exp~
  12326. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12327. $RM $lib.exp'
  12328. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12329. ;;
  12330. esac
  12331. hardcode_libdir_separator_CXX=:
  12332. # Commands to make compiler produce verbose output that lists
  12333. # what "hidden" libraries, object files and flags are used when
  12334. # linking a shared library.
  12335. #
  12336. # There doesn't appear to be a way to prevent this compiler from
  12337. # explicitly linking system object files so we need to strip them
  12338. # from the output so that they don't get included in the library
  12339. # dependencies.
  12340. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12341. ;;
  12342. *)
  12343. if test yes,no = "$GXX,$with_gnu_ld"; then
  12344. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12345. case $host in
  12346. osf3*)
  12347. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12348. ;;
  12349. *)
  12350. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12351. ;;
  12352. esac
  12353. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12354. hardcode_libdir_separator_CXX=:
  12355. # Commands to make compiler produce verbose output that lists
  12356. # what "hidden" libraries, object files and flags are used when
  12357. # linking a shared library.
  12358. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12359. else
  12360. # FIXME: insert proper C++ library support
  12361. ld_shlibs_CXX=no
  12362. fi
  12363. ;;
  12364. esac
  12365. ;;
  12366. psos*)
  12367. # FIXME: insert proper C++ library support
  12368. ld_shlibs_CXX=no
  12369. ;;
  12370. sunos4*)
  12371. case $cc_basename in
  12372. CC*)
  12373. # Sun C++ 4.x
  12374. # FIXME: insert proper C++ library support
  12375. ld_shlibs_CXX=no
  12376. ;;
  12377. lcc*)
  12378. # Lucid
  12379. # FIXME: insert proper C++ library support
  12380. ld_shlibs_CXX=no
  12381. ;;
  12382. *)
  12383. # FIXME: insert proper C++ library support
  12384. ld_shlibs_CXX=no
  12385. ;;
  12386. esac
  12387. ;;
  12388. solaris*)
  12389. case $cc_basename in
  12390. CC* | sunCC*)
  12391. # Sun C++ 4.2, 5.x and Centerline C++
  12392. archive_cmds_need_lc_CXX=yes
  12393. no_undefined_flag_CXX=' -zdefs'
  12394. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12395. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12396. $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'
  12397. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12398. hardcode_shlibpath_var_CXX=no
  12399. case $host_os in
  12400. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12401. *)
  12402. # The compiler driver will combine and reorder linker options,
  12403. # but understands '-z linker_flag'.
  12404. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12405. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12406. ;;
  12407. esac
  12408. link_all_deplibs_CXX=yes
  12409. output_verbose_link_cmd='func_echo_all'
  12410. # Archives containing C++ object files must be created using
  12411. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12412. # necessary to make sure instantiated templates are included
  12413. # in the archive.
  12414. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12415. ;;
  12416. gcx*)
  12417. # Green Hills C++ Compiler
  12418. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12419. # The C++ compiler must be used to create the archive.
  12420. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12421. ;;
  12422. *)
  12423. # GNU C++ compiler with Solaris linker
  12424. if test yes,no = "$GXX,$with_gnu_ld"; then
  12425. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12426. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12427. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12428. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12429. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12430. # Commands to make compiler produce verbose output that lists
  12431. # what "hidden" libraries, object files and flags are used when
  12432. # linking a shared library.
  12433. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12434. else
  12435. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12436. # platform.
  12437. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12438. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12439. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12440. # Commands to make compiler produce verbose output that lists
  12441. # what "hidden" libraries, object files and flags are used when
  12442. # linking a shared library.
  12443. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12444. fi
  12445. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12446. case $host_os in
  12447. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12448. *)
  12449. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12450. ;;
  12451. esac
  12452. fi
  12453. ;;
  12454. esac
  12455. ;;
  12456. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12457. no_undefined_flag_CXX='$wl-z,text'
  12458. archive_cmds_need_lc_CXX=no
  12459. hardcode_shlibpath_var_CXX=no
  12460. runpath_var='LD_RUN_PATH'
  12461. case $cc_basename in
  12462. CC*)
  12463. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12464. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12465. ;;
  12466. *)
  12467. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12468. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12469. ;;
  12470. esac
  12471. ;;
  12472. sysv5* | sco3.2v5* | sco5v6*)
  12473. # Note: We CANNOT use -z defs as we might desire, because we do not
  12474. # link with -lc, and that would cause any symbols used from libc to
  12475. # always be unresolved, which means just about no library would
  12476. # ever link correctly. If we're not using GNU ld we use -z text
  12477. # though, which does catch some bad symbols but isn't as heavy-handed
  12478. # as -z defs.
  12479. no_undefined_flag_CXX='$wl-z,text'
  12480. allow_undefined_flag_CXX='$wl-z,nodefs'
  12481. archive_cmds_need_lc_CXX=no
  12482. hardcode_shlibpath_var_CXX=no
  12483. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12484. hardcode_libdir_separator_CXX=':'
  12485. link_all_deplibs_CXX=yes
  12486. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12487. runpath_var='LD_RUN_PATH'
  12488. case $cc_basename in
  12489. CC*)
  12490. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12491. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12492. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12493. '"$old_archive_cmds_CXX"
  12494. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12495. '"$reload_cmds_CXX"
  12496. ;;
  12497. *)
  12498. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12499. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12500. ;;
  12501. esac
  12502. ;;
  12503. tandem*)
  12504. case $cc_basename in
  12505. NCC*)
  12506. # NonStop-UX NCC 3.20
  12507. # FIXME: insert proper C++ library support
  12508. ld_shlibs_CXX=no
  12509. ;;
  12510. *)
  12511. # FIXME: insert proper C++ library support
  12512. ld_shlibs_CXX=no
  12513. ;;
  12514. esac
  12515. ;;
  12516. vxworks*)
  12517. # FIXME: insert proper C++ library support
  12518. ld_shlibs_CXX=no
  12519. ;;
  12520. *)
  12521. # FIXME: insert proper C++ library support
  12522. ld_shlibs_CXX=no
  12523. ;;
  12524. esac
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12526. $as_echo "$ld_shlibs_CXX" >&6; }
  12527. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12528. GCC_CXX=$GXX
  12529. LD_CXX=$LD
  12530. ## CAVEAT EMPTOR:
  12531. ## There is no encapsulation within the following macros, do not change
  12532. ## the running order or otherwise move them around unless you know exactly
  12533. ## what you are doing...
  12534. # Dependencies to place before and after the object being linked:
  12535. predep_objects_CXX=
  12536. postdep_objects_CXX=
  12537. predeps_CXX=
  12538. postdeps_CXX=
  12539. compiler_lib_search_path_CXX=
  12540. cat > conftest.$ac_ext <<_LT_EOF
  12541. class Foo
  12542. {
  12543. public:
  12544. Foo (void) { a = 0; }
  12545. private:
  12546. int a;
  12547. };
  12548. _LT_EOF
  12549. _lt_libdeps_save_CFLAGS=$CFLAGS
  12550. case "$CC $CFLAGS " in #(
  12551. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12552. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12553. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12554. esac
  12555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12556. (eval $ac_compile) 2>&5
  12557. ac_status=$?
  12558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12559. test $ac_status = 0; }; then
  12560. # Parse the compiler output and extract the necessary
  12561. # objects, libraries and library flags.
  12562. # Sentinel used to keep track of whether or not we are before
  12563. # the conftest object file.
  12564. pre_test_object_deps_done=no
  12565. for p in `eval "$output_verbose_link_cmd"`; do
  12566. case $prev$p in
  12567. -L* | -R* | -l*)
  12568. # Some compilers place space between "-{L,R}" and the path.
  12569. # Remove the space.
  12570. if test x-L = "$p" ||
  12571. test x-R = "$p"; then
  12572. prev=$p
  12573. continue
  12574. fi
  12575. # Expand the sysroot to ease extracting the directories later.
  12576. if test -z "$prev"; then
  12577. case $p in
  12578. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12579. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12580. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12581. esac
  12582. fi
  12583. case $p in
  12584. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12585. esac
  12586. if test no = "$pre_test_object_deps_done"; then
  12587. case $prev in
  12588. -L | -R)
  12589. # Internal compiler library paths should come after those
  12590. # provided the user. The postdeps already come after the
  12591. # user supplied libs so there is no need to process them.
  12592. if test -z "$compiler_lib_search_path_CXX"; then
  12593. compiler_lib_search_path_CXX=$prev$p
  12594. else
  12595. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12596. fi
  12597. ;;
  12598. # The "-l" case would never come before the object being
  12599. # linked, so don't bother handling this case.
  12600. esac
  12601. else
  12602. if test -z "$postdeps_CXX"; then
  12603. postdeps_CXX=$prev$p
  12604. else
  12605. postdeps_CXX="${postdeps_CXX} $prev$p"
  12606. fi
  12607. fi
  12608. prev=
  12609. ;;
  12610. *.lto.$objext) ;; # Ignore GCC LTO objects
  12611. *.$objext)
  12612. # This assumes that the test object file only shows up
  12613. # once in the compiler output.
  12614. if test "$p" = "conftest.$objext"; then
  12615. pre_test_object_deps_done=yes
  12616. continue
  12617. fi
  12618. if test no = "$pre_test_object_deps_done"; then
  12619. if test -z "$predep_objects_CXX"; then
  12620. predep_objects_CXX=$p
  12621. else
  12622. predep_objects_CXX="$predep_objects_CXX $p"
  12623. fi
  12624. else
  12625. if test -z "$postdep_objects_CXX"; then
  12626. postdep_objects_CXX=$p
  12627. else
  12628. postdep_objects_CXX="$postdep_objects_CXX $p"
  12629. fi
  12630. fi
  12631. ;;
  12632. *) ;; # Ignore the rest.
  12633. esac
  12634. done
  12635. # Clean up.
  12636. rm -f a.out a.exe
  12637. else
  12638. echo "libtool.m4: error: problem compiling CXX test program"
  12639. fi
  12640. $RM -f confest.$objext
  12641. CFLAGS=$_lt_libdeps_save_CFLAGS
  12642. # PORTME: override above test on systems where it is broken
  12643. case $host_os in
  12644. interix[3-9]*)
  12645. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12646. # hack all around it, let's just trust "g++" to DTRT.
  12647. predep_objects_CXX=
  12648. postdep_objects_CXX=
  12649. postdeps_CXX=
  12650. ;;
  12651. esac
  12652. case " $postdeps_CXX " in
  12653. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12654. esac
  12655. compiler_lib_search_dirs_CXX=
  12656. if test -n "${compiler_lib_search_path_CXX}"; then
  12657. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12658. fi
  12659. lt_prog_compiler_wl_CXX=
  12660. lt_prog_compiler_pic_CXX=
  12661. lt_prog_compiler_static_CXX=
  12662. # C++ specific cases for pic, static, wl, etc.
  12663. if test yes = "$GXX"; then
  12664. lt_prog_compiler_wl_CXX='-Wl,'
  12665. lt_prog_compiler_static_CXX='-static'
  12666. case $host_os in
  12667. aix*)
  12668. # All AIX code is PIC.
  12669. if test ia64 = "$host_cpu"; then
  12670. # AIX 5 now supports IA64 processor
  12671. lt_prog_compiler_static_CXX='-Bstatic'
  12672. fi
  12673. lt_prog_compiler_pic_CXX='-fPIC'
  12674. ;;
  12675. amigaos*)
  12676. case $host_cpu in
  12677. powerpc)
  12678. # see comment about AmigaOS4 .so support
  12679. lt_prog_compiler_pic_CXX='-fPIC'
  12680. ;;
  12681. m68k)
  12682. # FIXME: we need at least 68020 code to build shared libraries, but
  12683. # adding the '-m68020' flag to GCC prevents building anything better,
  12684. # like '-m68040'.
  12685. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12686. ;;
  12687. esac
  12688. ;;
  12689. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12690. # PIC is the default for these OSes.
  12691. ;;
  12692. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12693. # This hack is so that the source file can tell whether it is being
  12694. # built for inclusion in a dll (and should export symbols for example).
  12695. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12696. # (--disable-auto-import) libraries
  12697. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12698. case $host_os in
  12699. os2*)
  12700. lt_prog_compiler_static_CXX='$wl-static'
  12701. ;;
  12702. esac
  12703. ;;
  12704. darwin* | rhapsody*)
  12705. # PIC is the default on this platform
  12706. # Common symbols not allowed in MH_DYLIB files
  12707. lt_prog_compiler_pic_CXX='-fno-common'
  12708. ;;
  12709. *djgpp*)
  12710. # DJGPP does not support shared libraries at all
  12711. lt_prog_compiler_pic_CXX=
  12712. ;;
  12713. haiku*)
  12714. # PIC is the default for Haiku.
  12715. # The "-static" flag exists, but is broken.
  12716. lt_prog_compiler_static_CXX=
  12717. ;;
  12718. interix[3-9]*)
  12719. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12720. # Instead, we relocate shared libraries at runtime.
  12721. ;;
  12722. sysv4*MP*)
  12723. if test -d /usr/nec; then
  12724. lt_prog_compiler_pic_CXX=-Kconform_pic
  12725. fi
  12726. ;;
  12727. hpux*)
  12728. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12729. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12730. # sets the default TLS model and affects inlining.
  12731. case $host_cpu in
  12732. hppa*64*)
  12733. ;;
  12734. *)
  12735. lt_prog_compiler_pic_CXX='-fPIC'
  12736. ;;
  12737. esac
  12738. ;;
  12739. *qnx* | *nto*)
  12740. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12741. # it will coredump.
  12742. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12743. ;;
  12744. *)
  12745. lt_prog_compiler_pic_CXX='-fPIC'
  12746. ;;
  12747. esac
  12748. else
  12749. case $host_os in
  12750. aix[4-9]*)
  12751. # All AIX code is PIC.
  12752. if test ia64 = "$host_cpu"; then
  12753. # AIX 5 now supports IA64 processor
  12754. lt_prog_compiler_static_CXX='-Bstatic'
  12755. else
  12756. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12757. fi
  12758. ;;
  12759. chorus*)
  12760. case $cc_basename in
  12761. cxch68*)
  12762. # Green Hills C++ Compiler
  12763. # _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"
  12764. ;;
  12765. esac
  12766. ;;
  12767. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12768. # This hack is so that the source file can tell whether it is being
  12769. # built for inclusion in a dll (and should export symbols for example).
  12770. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12771. ;;
  12772. dgux*)
  12773. case $cc_basename in
  12774. ec++*)
  12775. lt_prog_compiler_pic_CXX='-KPIC'
  12776. ;;
  12777. ghcx*)
  12778. # Green Hills C++ Compiler
  12779. lt_prog_compiler_pic_CXX='-pic'
  12780. ;;
  12781. *)
  12782. ;;
  12783. esac
  12784. ;;
  12785. freebsd* | dragonfly*)
  12786. # FreeBSD uses GNU C++
  12787. ;;
  12788. hpux9* | hpux10* | hpux11*)
  12789. case $cc_basename in
  12790. CC*)
  12791. lt_prog_compiler_wl_CXX='-Wl,'
  12792. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12793. if test ia64 != "$host_cpu"; then
  12794. lt_prog_compiler_pic_CXX='+Z'
  12795. fi
  12796. ;;
  12797. aCC*)
  12798. lt_prog_compiler_wl_CXX='-Wl,'
  12799. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12800. case $host_cpu in
  12801. hppa*64*|ia64*)
  12802. # +Z the default
  12803. ;;
  12804. *)
  12805. lt_prog_compiler_pic_CXX='+Z'
  12806. ;;
  12807. esac
  12808. ;;
  12809. *)
  12810. ;;
  12811. esac
  12812. ;;
  12813. interix*)
  12814. # This is c89, which is MS Visual C++ (no shared libs)
  12815. # Anyone wants to do a port?
  12816. ;;
  12817. irix5* | irix6* | nonstopux*)
  12818. case $cc_basename in
  12819. CC*)
  12820. lt_prog_compiler_wl_CXX='-Wl,'
  12821. lt_prog_compiler_static_CXX='-non_shared'
  12822. # CC pic flag -KPIC is the default.
  12823. ;;
  12824. *)
  12825. ;;
  12826. esac
  12827. ;;
  12828. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12829. case $cc_basename in
  12830. KCC*)
  12831. # KAI C++ Compiler
  12832. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12833. lt_prog_compiler_pic_CXX='-fPIC'
  12834. ;;
  12835. ecpc* )
  12836. # old Intel C++ for x86_64, which still supported -KPIC.
  12837. lt_prog_compiler_wl_CXX='-Wl,'
  12838. lt_prog_compiler_pic_CXX='-KPIC'
  12839. lt_prog_compiler_static_CXX='-static'
  12840. ;;
  12841. icpc* )
  12842. # Intel C++, used to be incompatible with GCC.
  12843. # ICC 10 doesn't accept -KPIC any more.
  12844. lt_prog_compiler_wl_CXX='-Wl,'
  12845. lt_prog_compiler_pic_CXX='-fPIC'
  12846. lt_prog_compiler_static_CXX='-static'
  12847. ;;
  12848. pgCC* | pgcpp*)
  12849. # Portland Group C++ compiler
  12850. lt_prog_compiler_wl_CXX='-Wl,'
  12851. lt_prog_compiler_pic_CXX='-fpic'
  12852. lt_prog_compiler_static_CXX='-Bstatic'
  12853. ;;
  12854. cxx*)
  12855. # Compaq C++
  12856. # Make sure the PIC flag is empty. It appears that all Alpha
  12857. # Linux and Compaq Tru64 Unix objects are PIC.
  12858. lt_prog_compiler_pic_CXX=
  12859. lt_prog_compiler_static_CXX='-non_shared'
  12860. ;;
  12861. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12862. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12863. lt_prog_compiler_wl_CXX='-Wl,'
  12864. lt_prog_compiler_pic_CXX='-qpic'
  12865. lt_prog_compiler_static_CXX='-qstaticlink'
  12866. ;;
  12867. *)
  12868. case `$CC -V 2>&1 | sed 5q` in
  12869. *Sun\ C*)
  12870. # Sun C++ 5.9
  12871. lt_prog_compiler_pic_CXX='-KPIC'
  12872. lt_prog_compiler_static_CXX='-Bstatic'
  12873. lt_prog_compiler_wl_CXX='-Qoption ld '
  12874. ;;
  12875. esac
  12876. ;;
  12877. esac
  12878. ;;
  12879. lynxos*)
  12880. ;;
  12881. m88k*)
  12882. ;;
  12883. mvs*)
  12884. case $cc_basename in
  12885. cxx*)
  12886. lt_prog_compiler_pic_CXX='-W c,exportall'
  12887. ;;
  12888. *)
  12889. ;;
  12890. esac
  12891. ;;
  12892. netbsd* | netbsdelf*-gnu)
  12893. ;;
  12894. *qnx* | *nto*)
  12895. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12896. # it will coredump.
  12897. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12898. ;;
  12899. osf3* | osf4* | osf5*)
  12900. case $cc_basename in
  12901. KCC*)
  12902. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12903. ;;
  12904. RCC*)
  12905. # Rational C++ 2.4.1
  12906. lt_prog_compiler_pic_CXX='-pic'
  12907. ;;
  12908. cxx*)
  12909. # Digital/Compaq C++
  12910. lt_prog_compiler_wl_CXX='-Wl,'
  12911. # Make sure the PIC flag is empty. It appears that all Alpha
  12912. # Linux and Compaq Tru64 Unix objects are PIC.
  12913. lt_prog_compiler_pic_CXX=
  12914. lt_prog_compiler_static_CXX='-non_shared'
  12915. ;;
  12916. *)
  12917. ;;
  12918. esac
  12919. ;;
  12920. psos*)
  12921. ;;
  12922. solaris*)
  12923. case $cc_basename in
  12924. CC* | sunCC*)
  12925. # Sun C++ 4.2, 5.x and Centerline C++
  12926. lt_prog_compiler_pic_CXX='-KPIC'
  12927. lt_prog_compiler_static_CXX='-Bstatic'
  12928. lt_prog_compiler_wl_CXX='-Qoption ld '
  12929. ;;
  12930. gcx*)
  12931. # Green Hills C++ Compiler
  12932. lt_prog_compiler_pic_CXX='-PIC'
  12933. ;;
  12934. *)
  12935. ;;
  12936. esac
  12937. ;;
  12938. sunos4*)
  12939. case $cc_basename in
  12940. CC*)
  12941. # Sun C++ 4.x
  12942. lt_prog_compiler_pic_CXX='-pic'
  12943. lt_prog_compiler_static_CXX='-Bstatic'
  12944. ;;
  12945. lcc*)
  12946. # Lucid
  12947. lt_prog_compiler_pic_CXX='-pic'
  12948. ;;
  12949. *)
  12950. ;;
  12951. esac
  12952. ;;
  12953. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12954. case $cc_basename in
  12955. CC*)
  12956. lt_prog_compiler_wl_CXX='-Wl,'
  12957. lt_prog_compiler_pic_CXX='-KPIC'
  12958. lt_prog_compiler_static_CXX='-Bstatic'
  12959. ;;
  12960. esac
  12961. ;;
  12962. tandem*)
  12963. case $cc_basename in
  12964. NCC*)
  12965. # NonStop-UX NCC 3.20
  12966. lt_prog_compiler_pic_CXX='-KPIC'
  12967. ;;
  12968. *)
  12969. ;;
  12970. esac
  12971. ;;
  12972. vxworks*)
  12973. ;;
  12974. *)
  12975. lt_prog_compiler_can_build_shared_CXX=no
  12976. ;;
  12977. esac
  12978. fi
  12979. case $host_os in
  12980. # For platforms that do not support PIC, -DPIC is meaningless:
  12981. *djgpp*)
  12982. lt_prog_compiler_pic_CXX=
  12983. ;;
  12984. *)
  12985. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12986. ;;
  12987. esac
  12988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12989. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12990. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12991. $as_echo_n "(cached) " >&6
  12992. else
  12993. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12994. fi
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12996. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12997. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12998. #
  12999. # Check to make sure the PIC flag actually works.
  13000. #
  13001. if test -n "$lt_prog_compiler_pic_CXX"; then
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13003. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13004. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13005. $as_echo_n "(cached) " >&6
  13006. else
  13007. lt_cv_prog_compiler_pic_works_CXX=no
  13008. ac_outfile=conftest.$ac_objext
  13009. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13010. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13011. # Insert the option either (1) after the last *FLAGS variable, or
  13012. # (2) before a word containing "conftest.", or (3) at the end.
  13013. # Note that $ac_compile itself does not contain backslashes and begins
  13014. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13015. # The option is referenced via a variable to avoid confusing sed.
  13016. lt_compile=`echo "$ac_compile" | $SED \
  13017. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13018. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13019. -e 's:$: $lt_compiler_flag:'`
  13020. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13021. (eval "$lt_compile" 2>conftest.err)
  13022. ac_status=$?
  13023. cat conftest.err >&5
  13024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13025. if (exit $ac_status) && test -s "$ac_outfile"; then
  13026. # The compiler can only warn and ignore the option if not recognized
  13027. # So say no if there are warnings other than the usual output.
  13028. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13029. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13030. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13031. lt_cv_prog_compiler_pic_works_CXX=yes
  13032. fi
  13033. fi
  13034. $RM conftest*
  13035. fi
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13037. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13038. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13039. case $lt_prog_compiler_pic_CXX in
  13040. "" | " "*) ;;
  13041. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13042. esac
  13043. else
  13044. lt_prog_compiler_pic_CXX=
  13045. lt_prog_compiler_can_build_shared_CXX=no
  13046. fi
  13047. fi
  13048. #
  13049. # Check to make sure the static flag actually works.
  13050. #
  13051. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13053. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13054. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13055. $as_echo_n "(cached) " >&6
  13056. else
  13057. lt_cv_prog_compiler_static_works_CXX=no
  13058. save_LDFLAGS=$LDFLAGS
  13059. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13060. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13061. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13062. # The linker can only warn and ignore the option if not recognized
  13063. # So say no if there are warnings
  13064. if test -s conftest.err; then
  13065. # Append any errors to the config.log.
  13066. cat conftest.err 1>&5
  13067. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13068. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13069. if diff conftest.exp conftest.er2 >/dev/null; then
  13070. lt_cv_prog_compiler_static_works_CXX=yes
  13071. fi
  13072. else
  13073. lt_cv_prog_compiler_static_works_CXX=yes
  13074. fi
  13075. fi
  13076. $RM -r conftest*
  13077. LDFLAGS=$save_LDFLAGS
  13078. fi
  13079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13080. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13081. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13082. :
  13083. else
  13084. lt_prog_compiler_static_CXX=
  13085. fi
  13086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13087. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13088. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13089. $as_echo_n "(cached) " >&6
  13090. else
  13091. lt_cv_prog_compiler_c_o_CXX=no
  13092. $RM -r conftest 2>/dev/null
  13093. mkdir conftest
  13094. cd conftest
  13095. mkdir out
  13096. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13097. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13098. # Insert the option either (1) after the last *FLAGS variable, or
  13099. # (2) before a word containing "conftest.", or (3) at the end.
  13100. # Note that $ac_compile itself does not contain backslashes and begins
  13101. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13102. lt_compile=`echo "$ac_compile" | $SED \
  13103. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13104. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13105. -e 's:$: $lt_compiler_flag:'`
  13106. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13107. (eval "$lt_compile" 2>out/conftest.err)
  13108. ac_status=$?
  13109. cat out/conftest.err >&5
  13110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13111. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13112. then
  13113. # The compiler can only warn and ignore the option if not recognized
  13114. # So say no if there are warnings
  13115. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13116. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13117. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13118. lt_cv_prog_compiler_c_o_CXX=yes
  13119. fi
  13120. fi
  13121. chmod u+w . 2>&5
  13122. $RM conftest*
  13123. # SGI C++ compiler will create directory out/ii_files/ for
  13124. # template instantiation
  13125. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13126. $RM out/* && rmdir out
  13127. cd ..
  13128. $RM -r conftest
  13129. $RM conftest*
  13130. fi
  13131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13132. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13134. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13135. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13136. $as_echo_n "(cached) " >&6
  13137. else
  13138. lt_cv_prog_compiler_c_o_CXX=no
  13139. $RM -r conftest 2>/dev/null
  13140. mkdir conftest
  13141. cd conftest
  13142. mkdir out
  13143. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13144. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13145. # Insert the option either (1) after the last *FLAGS variable, or
  13146. # (2) before a word containing "conftest.", or (3) at the end.
  13147. # Note that $ac_compile itself does not contain backslashes and begins
  13148. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13149. lt_compile=`echo "$ac_compile" | $SED \
  13150. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13151. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13152. -e 's:$: $lt_compiler_flag:'`
  13153. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13154. (eval "$lt_compile" 2>out/conftest.err)
  13155. ac_status=$?
  13156. cat out/conftest.err >&5
  13157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13158. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13159. then
  13160. # The compiler can only warn and ignore the option if not recognized
  13161. # So say no if there are warnings
  13162. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13163. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13164. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13165. lt_cv_prog_compiler_c_o_CXX=yes
  13166. fi
  13167. fi
  13168. chmod u+w . 2>&5
  13169. $RM conftest*
  13170. # SGI C++ compiler will create directory out/ii_files/ for
  13171. # template instantiation
  13172. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13173. $RM out/* && rmdir out
  13174. cd ..
  13175. $RM -r conftest
  13176. $RM conftest*
  13177. fi
  13178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13179. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13180. hard_links=nottested
  13181. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13182. # do not overwrite the value of need_locks provided by the user
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13184. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13185. hard_links=yes
  13186. $RM conftest*
  13187. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13188. touch conftest.a
  13189. ln conftest.a conftest.b 2>&5 || hard_links=no
  13190. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13192. $as_echo "$hard_links" >&6; }
  13193. if test no = "$hard_links"; then
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13195. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13196. need_locks=warn
  13197. fi
  13198. else
  13199. need_locks=no
  13200. fi
  13201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13202. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13203. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13204. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13205. case $host_os in
  13206. aix[4-9]*)
  13207. # If we're using GNU nm, then we don't want the "-C" option.
  13208. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13209. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13210. # weak defined symbols like other global defined symbols, whereas
  13211. # GNU nm marks them as "W".
  13212. # While the 'weak' keyword is ignored in the Export File, we need
  13213. # it in the Import File for the 'aix-soname' feature, so we have
  13214. # to replace the "-B" option with "-P" for AIX nm.
  13215. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13216. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13217. else
  13218. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13219. fi
  13220. ;;
  13221. pw32*)
  13222. export_symbols_cmds_CXX=$ltdll_cmds
  13223. ;;
  13224. cygwin* | mingw* | cegcc*)
  13225. case $cc_basename in
  13226. cl*)
  13227. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13228. ;;
  13229. *)
  13230. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13231. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13232. ;;
  13233. esac
  13234. ;;
  13235. linux* | k*bsd*-gnu | gnu*)
  13236. link_all_deplibs_CXX=no
  13237. ;;
  13238. *)
  13239. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13240. ;;
  13241. esac
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13243. $as_echo "$ld_shlibs_CXX" >&6; }
  13244. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13245. with_gnu_ld_CXX=$with_gnu_ld
  13246. #
  13247. # Do we need to explicitly link libc?
  13248. #
  13249. case "x$archive_cmds_need_lc_CXX" in
  13250. x|xyes)
  13251. # Assume -lc should be added
  13252. archive_cmds_need_lc_CXX=yes
  13253. if test yes,yes = "$GCC,$enable_shared"; then
  13254. case $archive_cmds_CXX in
  13255. *'~'*)
  13256. # FIXME: we may have to deal with multi-command sequences.
  13257. ;;
  13258. '$CC '*)
  13259. # Test whether the compiler implicitly links with -lc since on some
  13260. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13261. # to ld, don't add -lc before -lgcc.
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13263. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13264. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13265. $as_echo_n "(cached) " >&6
  13266. else
  13267. $RM conftest*
  13268. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13270. (eval $ac_compile) 2>&5
  13271. ac_status=$?
  13272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13273. test $ac_status = 0; } 2>conftest.err; then
  13274. soname=conftest
  13275. lib=conftest
  13276. libobjs=conftest.$ac_objext
  13277. deplibs=
  13278. wl=$lt_prog_compiler_wl_CXX
  13279. pic_flag=$lt_prog_compiler_pic_CXX
  13280. compiler_flags=-v
  13281. linker_flags=-v
  13282. verstring=
  13283. output_objdir=.
  13284. libname=conftest
  13285. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13286. allow_undefined_flag_CXX=
  13287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13288. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13289. ac_status=$?
  13290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13291. test $ac_status = 0; }
  13292. then
  13293. lt_cv_archive_cmds_need_lc_CXX=no
  13294. else
  13295. lt_cv_archive_cmds_need_lc_CXX=yes
  13296. fi
  13297. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13298. else
  13299. cat conftest.err 1>&5
  13300. fi
  13301. $RM conftest*
  13302. fi
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13304. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13305. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13306. ;;
  13307. esac
  13308. fi
  13309. ;;
  13310. esac
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13312. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13313. library_names_spec=
  13314. libname_spec='lib$name'
  13315. soname_spec=
  13316. shrext_cmds=.so
  13317. postinstall_cmds=
  13318. postuninstall_cmds=
  13319. finish_cmds=
  13320. finish_eval=
  13321. shlibpath_var=
  13322. shlibpath_overrides_runpath=unknown
  13323. version_type=none
  13324. dynamic_linker="$host_os ld.so"
  13325. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13326. need_lib_prefix=unknown
  13327. hardcode_into_libs=no
  13328. # when you set need_version to no, make sure it does not cause -set_version
  13329. # flags to be left without arguments
  13330. need_version=unknown
  13331. case $host_os in
  13332. aix3*)
  13333. version_type=linux # correct to gnu/linux during the next big refactor
  13334. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13335. shlibpath_var=LIBPATH
  13336. # AIX 3 has no versioning support, so we append a major version to the name.
  13337. soname_spec='$libname$release$shared_ext$major'
  13338. ;;
  13339. aix[4-9]*)
  13340. version_type=linux # correct to gnu/linux during the next big refactor
  13341. need_lib_prefix=no
  13342. need_version=no
  13343. hardcode_into_libs=yes
  13344. if test ia64 = "$host_cpu"; then
  13345. # AIX 5 supports IA64
  13346. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13347. shlibpath_var=LD_LIBRARY_PATH
  13348. else
  13349. # With GCC up to 2.95.x, collect2 would create an import file
  13350. # for dependence libraries. The import file would start with
  13351. # the line '#! .'. This would cause the generated library to
  13352. # depend on '.', always an invalid library. This was fixed in
  13353. # development snapshots of GCC prior to 3.0.
  13354. case $host_os in
  13355. aix4 | aix4.[01] | aix4.[01].*)
  13356. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13357. echo ' yes '
  13358. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13359. :
  13360. else
  13361. can_build_shared=no
  13362. fi
  13363. ;;
  13364. esac
  13365. # Using Import Files as archive members, it is possible to support
  13366. # filename-based versioning of shared library archives on AIX. While
  13367. # this would work for both with and without runtime linking, it will
  13368. # prevent static linking of such archives. So we do filename-based
  13369. # shared library versioning with .so extension only, which is used
  13370. # when both runtime linking and shared linking is enabled.
  13371. # Unfortunately, runtime linking may impact performance, so we do
  13372. # not want this to be the default eventually. Also, we use the
  13373. # versioned .so libs for executables only if there is the -brtl
  13374. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13375. # To allow for filename-based versioning support, we need to create
  13376. # libNAME.so.V as an archive file, containing:
  13377. # *) an Import File, referring to the versioned filename of the
  13378. # archive as well as the shared archive member, telling the
  13379. # bitwidth (32 or 64) of that shared object, and providing the
  13380. # list of exported symbols of that shared object, eventually
  13381. # decorated with the 'weak' keyword
  13382. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13383. # it being seen by the linker.
  13384. # At run time we better use the real file rather than another symlink,
  13385. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13386. case $with_aix_soname,$aix_use_runtimelinking in
  13387. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13388. # soname into executable. Probably we can add versioning support to
  13389. # collect2, so additional links can be useful in future.
  13390. aix,yes) # traditional libtool
  13391. dynamic_linker='AIX unversionable lib.so'
  13392. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13393. # instead of lib<name>.a to let people know that these are not
  13394. # typical AIX shared libraries.
  13395. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13396. ;;
  13397. aix,no) # traditional AIX only
  13398. dynamic_linker='AIX lib.a(lib.so.V)'
  13399. # We preserve .a as extension for shared libraries through AIX4.2
  13400. # and later when we are not doing run time linking.
  13401. library_names_spec='$libname$release.a $libname.a'
  13402. soname_spec='$libname$release$shared_ext$major'
  13403. ;;
  13404. svr4,*) # full svr4 only
  13405. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13406. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13407. # We do not specify a path in Import Files, so LIBPATH fires.
  13408. shlibpath_overrides_runpath=yes
  13409. ;;
  13410. *,yes) # both, prefer svr4
  13411. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13412. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13413. # unpreferred sharedlib libNAME.a needs extra handling
  13414. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13415. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13416. # We do not specify a path in Import Files, so LIBPATH fires.
  13417. shlibpath_overrides_runpath=yes
  13418. ;;
  13419. *,no) # both, prefer aix
  13420. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13421. library_names_spec='$libname$release.a $libname.a'
  13422. soname_spec='$libname$release$shared_ext$major'
  13423. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13424. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13425. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13426. ;;
  13427. esac
  13428. shlibpath_var=LIBPATH
  13429. fi
  13430. ;;
  13431. amigaos*)
  13432. case $host_cpu in
  13433. powerpc)
  13434. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13435. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13436. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13437. ;;
  13438. m68k)
  13439. library_names_spec='$libname.ixlibrary $libname.a'
  13440. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13441. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13442. ;;
  13443. esac
  13444. ;;
  13445. beos*)
  13446. library_names_spec='$libname$shared_ext'
  13447. dynamic_linker="$host_os ld.so"
  13448. shlibpath_var=LIBRARY_PATH
  13449. ;;
  13450. bsdi[45]*)
  13451. version_type=linux # correct to gnu/linux during the next big refactor
  13452. need_version=no
  13453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13454. soname_spec='$libname$release$shared_ext$major'
  13455. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13458. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13459. # the default ld.so.conf also contains /usr/contrib/lib and
  13460. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13461. # libtool to hard-code these into programs
  13462. ;;
  13463. cygwin* | mingw* | pw32* | cegcc*)
  13464. version_type=windows
  13465. shrext_cmds=.dll
  13466. need_version=no
  13467. need_lib_prefix=no
  13468. case $GCC,$cc_basename in
  13469. yes,*)
  13470. # gcc
  13471. library_names_spec='$libname.dll.a'
  13472. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13473. postinstall_cmds='base_file=`basename \$file`~
  13474. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13475. dldir=$destdir/`dirname \$dlpath`~
  13476. test -d \$dldir || mkdir -p \$dldir~
  13477. $install_prog $dir/$dlname \$dldir/$dlname~
  13478. chmod a+x \$dldir/$dlname~
  13479. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13480. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13481. fi'
  13482. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13483. dlpath=$dir/\$dldll~
  13484. $RM \$dlpath'
  13485. shlibpath_overrides_runpath=yes
  13486. case $host_os in
  13487. cygwin*)
  13488. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13489. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13490. ;;
  13491. mingw* | cegcc*)
  13492. # MinGW DLLs use traditional 'lib' prefix
  13493. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13494. ;;
  13495. pw32*)
  13496. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13497. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13498. ;;
  13499. esac
  13500. dynamic_linker='Win32 ld.exe'
  13501. ;;
  13502. *,cl*)
  13503. # Native MSVC
  13504. libname_spec='$name'
  13505. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13506. library_names_spec='$libname.dll.lib'
  13507. case $build_os in
  13508. mingw*)
  13509. sys_lib_search_path_spec=
  13510. lt_save_ifs=$IFS
  13511. IFS=';'
  13512. for lt_path in $LIB
  13513. do
  13514. IFS=$lt_save_ifs
  13515. # Let DOS variable expansion print the short 8.3 style file name.
  13516. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13517. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13518. done
  13519. IFS=$lt_save_ifs
  13520. # Convert to MSYS style.
  13521. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13522. ;;
  13523. cygwin*)
  13524. # Convert to unix form, then to dos form, then back to unix form
  13525. # but this time dos style (no spaces!) so that the unix form looks
  13526. # like /cygdrive/c/PROGRA~1:/cygdr...
  13527. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13528. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13529. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13530. ;;
  13531. *)
  13532. sys_lib_search_path_spec=$LIB
  13533. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13534. # It is most probably a Windows format PATH.
  13535. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13536. else
  13537. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13538. fi
  13539. # FIXME: find the short name or the path components, as spaces are
  13540. # common. (e.g. "Program Files" -> "PROGRA~1")
  13541. ;;
  13542. esac
  13543. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13544. postinstall_cmds='base_file=`basename \$file`~
  13545. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13546. dldir=$destdir/`dirname \$dlpath`~
  13547. test -d \$dldir || mkdir -p \$dldir~
  13548. $install_prog $dir/$dlname \$dldir/$dlname'
  13549. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13550. dlpath=$dir/\$dldll~
  13551. $RM \$dlpath'
  13552. shlibpath_overrides_runpath=yes
  13553. dynamic_linker='Win32 link.exe'
  13554. ;;
  13555. *)
  13556. # Assume MSVC wrapper
  13557. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13558. dynamic_linker='Win32 ld.exe'
  13559. ;;
  13560. esac
  13561. # FIXME: first we should search . and the directory the executable is in
  13562. shlibpath_var=PATH
  13563. ;;
  13564. darwin* | rhapsody*)
  13565. dynamic_linker="$host_os dyld"
  13566. version_type=darwin
  13567. need_lib_prefix=no
  13568. need_version=no
  13569. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13570. soname_spec='$libname$release$major$shared_ext'
  13571. shlibpath_overrides_runpath=yes
  13572. shlibpath_var=DYLD_LIBRARY_PATH
  13573. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13574. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13575. ;;
  13576. dgux*)
  13577. version_type=linux # correct to gnu/linux during the next big refactor
  13578. need_lib_prefix=no
  13579. need_version=no
  13580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13581. soname_spec='$libname$release$shared_ext$major'
  13582. shlibpath_var=LD_LIBRARY_PATH
  13583. ;;
  13584. freebsd* | dragonfly*)
  13585. # DragonFly does not have aout. When/if they implement a new
  13586. # versioning mechanism, adjust this.
  13587. if test -x /usr/bin/objformat; then
  13588. objformat=`/usr/bin/objformat`
  13589. else
  13590. case $host_os in
  13591. freebsd[23].*) objformat=aout ;;
  13592. *) objformat=elf ;;
  13593. esac
  13594. fi
  13595. version_type=freebsd-$objformat
  13596. case $version_type in
  13597. freebsd-elf*)
  13598. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13599. soname_spec='$libname$release$shared_ext$major'
  13600. need_version=no
  13601. need_lib_prefix=no
  13602. ;;
  13603. freebsd-*)
  13604. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13605. need_version=yes
  13606. ;;
  13607. esac
  13608. shlibpath_var=LD_LIBRARY_PATH
  13609. case $host_os in
  13610. freebsd2.*)
  13611. shlibpath_overrides_runpath=yes
  13612. ;;
  13613. freebsd3.[01]* | freebsdelf3.[01]*)
  13614. shlibpath_overrides_runpath=yes
  13615. hardcode_into_libs=yes
  13616. ;;
  13617. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13618. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13619. shlibpath_overrides_runpath=no
  13620. hardcode_into_libs=yes
  13621. ;;
  13622. *) # from 4.6 on, and DragonFly
  13623. shlibpath_overrides_runpath=yes
  13624. hardcode_into_libs=yes
  13625. ;;
  13626. esac
  13627. ;;
  13628. haiku*)
  13629. version_type=linux # correct to gnu/linux during the next big refactor
  13630. need_lib_prefix=no
  13631. need_version=no
  13632. dynamic_linker="$host_os runtime_loader"
  13633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13634. soname_spec='$libname$release$shared_ext$major'
  13635. shlibpath_var=LIBRARY_PATH
  13636. shlibpath_overrides_runpath=no
  13637. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13638. hardcode_into_libs=yes
  13639. ;;
  13640. hpux9* | hpux10* | hpux11*)
  13641. # Give a soname corresponding to the major version so that dld.sl refuses to
  13642. # link against other versions.
  13643. version_type=sunos
  13644. need_lib_prefix=no
  13645. need_version=no
  13646. case $host_cpu in
  13647. ia64*)
  13648. shrext_cmds='.so'
  13649. hardcode_into_libs=yes
  13650. dynamic_linker="$host_os dld.so"
  13651. shlibpath_var=LD_LIBRARY_PATH
  13652. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13653. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13654. soname_spec='$libname$release$shared_ext$major'
  13655. if test 32 = "$HPUX_IA64_MODE"; then
  13656. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13657. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13658. else
  13659. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13660. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13661. fi
  13662. ;;
  13663. hppa*64*)
  13664. shrext_cmds='.sl'
  13665. hardcode_into_libs=yes
  13666. dynamic_linker="$host_os dld.sl"
  13667. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13668. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13669. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13670. soname_spec='$libname$release$shared_ext$major'
  13671. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13672. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13673. ;;
  13674. *)
  13675. shrext_cmds='.sl'
  13676. dynamic_linker="$host_os dld.sl"
  13677. shlibpath_var=SHLIB_PATH
  13678. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13679. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13680. soname_spec='$libname$release$shared_ext$major'
  13681. ;;
  13682. esac
  13683. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13684. postinstall_cmds='chmod 555 $lib'
  13685. # or fails outright, so override atomically:
  13686. install_override_mode=555
  13687. ;;
  13688. interix[3-9]*)
  13689. version_type=linux # correct to gnu/linux during the next big refactor
  13690. need_lib_prefix=no
  13691. need_version=no
  13692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13693. soname_spec='$libname$release$shared_ext$major'
  13694. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13695. shlibpath_var=LD_LIBRARY_PATH
  13696. shlibpath_overrides_runpath=no
  13697. hardcode_into_libs=yes
  13698. ;;
  13699. irix5* | irix6* | nonstopux*)
  13700. case $host_os in
  13701. nonstopux*) version_type=nonstopux ;;
  13702. *)
  13703. if test yes = "$lt_cv_prog_gnu_ld"; then
  13704. version_type=linux # correct to gnu/linux during the next big refactor
  13705. else
  13706. version_type=irix
  13707. fi ;;
  13708. esac
  13709. need_lib_prefix=no
  13710. need_version=no
  13711. soname_spec='$libname$release$shared_ext$major'
  13712. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13713. case $host_os in
  13714. irix5* | nonstopux*)
  13715. libsuff= shlibsuff=
  13716. ;;
  13717. *)
  13718. case $LD in # libtool.m4 will add one of these switches to LD
  13719. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13720. libsuff= shlibsuff= libmagic=32-bit;;
  13721. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13722. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13723. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13724. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13725. *) libsuff= shlibsuff= libmagic=never-match;;
  13726. esac
  13727. ;;
  13728. esac
  13729. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13730. shlibpath_overrides_runpath=no
  13731. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13732. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13733. hardcode_into_libs=yes
  13734. ;;
  13735. # No shared lib support for Linux oldld, aout, or coff.
  13736. linux*oldld* | linux*aout* | linux*coff*)
  13737. dynamic_linker=no
  13738. ;;
  13739. linux*android*)
  13740. version_type=none # Android doesn't support versioned libraries.
  13741. need_lib_prefix=no
  13742. need_version=no
  13743. library_names_spec='$libname$release$shared_ext'
  13744. soname_spec='$libname$release$shared_ext'
  13745. finish_cmds=
  13746. shlibpath_var=LD_LIBRARY_PATH
  13747. shlibpath_overrides_runpath=yes
  13748. # This implies no fast_install, which is unacceptable.
  13749. # Some rework will be needed to allow for fast_install
  13750. # before this can be enabled.
  13751. hardcode_into_libs=yes
  13752. dynamic_linker='Android linker'
  13753. # Don't embed -rpath directories since the linker doesn't support them.
  13754. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13755. ;;
  13756. # This must be glibc/ELF.
  13757. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13758. version_type=linux # correct to gnu/linux during the next big refactor
  13759. need_lib_prefix=no
  13760. need_version=no
  13761. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13762. soname_spec='$libname$release$shared_ext$major'
  13763. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13764. shlibpath_var=LD_LIBRARY_PATH
  13765. shlibpath_overrides_runpath=no
  13766. # Some binutils ld are patched to set DT_RUNPATH
  13767. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13768. $as_echo_n "(cached) " >&6
  13769. else
  13770. lt_cv_shlibpath_overrides_runpath=no
  13771. save_LDFLAGS=$LDFLAGS
  13772. save_libdir=$libdir
  13773. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13774. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13776. /* end confdefs.h. */
  13777. int
  13778. main ()
  13779. {
  13780. ;
  13781. return 0;
  13782. }
  13783. _ACEOF
  13784. if ac_fn_cxx_try_link "$LINENO"; then :
  13785. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13786. lt_cv_shlibpath_overrides_runpath=yes
  13787. fi
  13788. fi
  13789. rm -f core conftest.err conftest.$ac_objext \
  13790. conftest$ac_exeext conftest.$ac_ext
  13791. LDFLAGS=$save_LDFLAGS
  13792. libdir=$save_libdir
  13793. fi
  13794. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13795. # This implies no fast_install, which is unacceptable.
  13796. # Some rework will be needed to allow for fast_install
  13797. # before this can be enabled.
  13798. hardcode_into_libs=yes
  13799. # Ideally, we could use ldconfig to report *all* directores which are
  13800. # searched for libraries, however this is still not possible. Aside from not
  13801. # being certain /sbin/ldconfig is available, command
  13802. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13803. # even though it is searched at run-time. Try to do the best guess by
  13804. # appending ld.so.conf contents (and includes) to the search path.
  13805. if test -f /etc/ld.so.conf; then
  13806. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13807. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13808. fi
  13809. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13810. # powerpc, because MkLinux only supported shared libraries with the
  13811. # GNU dynamic linker. Since this was broken with cross compilers,
  13812. # most powerpc-linux boxes support dynamic linking these days and
  13813. # people can always --disable-shared, the test was removed, and we
  13814. # assume the GNU/Linux dynamic linker is in use.
  13815. dynamic_linker='GNU/Linux ld.so'
  13816. ;;
  13817. netbsdelf*-gnu)
  13818. version_type=linux
  13819. need_lib_prefix=no
  13820. need_version=no
  13821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13822. soname_spec='${libname}${release}${shared_ext}$major'
  13823. shlibpath_var=LD_LIBRARY_PATH
  13824. shlibpath_overrides_runpath=no
  13825. hardcode_into_libs=yes
  13826. dynamic_linker='NetBSD ld.elf_so'
  13827. ;;
  13828. netbsd*)
  13829. version_type=sunos
  13830. need_lib_prefix=no
  13831. need_version=no
  13832. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13833. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13834. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13835. dynamic_linker='NetBSD (a.out) ld.so'
  13836. else
  13837. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13838. soname_spec='$libname$release$shared_ext$major'
  13839. dynamic_linker='NetBSD ld.elf_so'
  13840. fi
  13841. shlibpath_var=LD_LIBRARY_PATH
  13842. shlibpath_overrides_runpath=yes
  13843. hardcode_into_libs=yes
  13844. ;;
  13845. newsos6)
  13846. version_type=linux # correct to gnu/linux during the next big refactor
  13847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13848. shlibpath_var=LD_LIBRARY_PATH
  13849. shlibpath_overrides_runpath=yes
  13850. ;;
  13851. *nto* | *qnx*)
  13852. version_type=qnx
  13853. need_lib_prefix=no
  13854. need_version=no
  13855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13856. soname_spec='$libname$release$shared_ext$major'
  13857. shlibpath_var=LD_LIBRARY_PATH
  13858. shlibpath_overrides_runpath=no
  13859. hardcode_into_libs=yes
  13860. dynamic_linker='ldqnx.so'
  13861. ;;
  13862. openbsd* | bitrig*)
  13863. version_type=sunos
  13864. sys_lib_dlsearch_path_spec=/usr/lib
  13865. need_lib_prefix=no
  13866. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13867. need_version=no
  13868. else
  13869. need_version=yes
  13870. fi
  13871. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13872. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13873. shlibpath_var=LD_LIBRARY_PATH
  13874. shlibpath_overrides_runpath=yes
  13875. ;;
  13876. os2*)
  13877. libname_spec='$name'
  13878. version_type=windows
  13879. shrext_cmds=.dll
  13880. need_version=no
  13881. need_lib_prefix=no
  13882. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13883. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13884. v=$($ECHO $release$versuffix | tr -d .-);
  13885. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13886. $ECHO $n$v`$shared_ext'
  13887. library_names_spec='${libname}_dll.$libext'
  13888. dynamic_linker='OS/2 ld.exe'
  13889. shlibpath_var=BEGINLIBPATH
  13890. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13891. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13892. postinstall_cmds='base_file=`basename \$file`~
  13893. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13894. dldir=$destdir/`dirname \$dlpath`~
  13895. test -d \$dldir || mkdir -p \$dldir~
  13896. $install_prog $dir/$dlname \$dldir/$dlname~
  13897. chmod a+x \$dldir/$dlname~
  13898. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13899. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13900. fi'
  13901. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13902. dlpath=$dir/\$dldll~
  13903. $RM \$dlpath'
  13904. ;;
  13905. osf3* | osf4* | osf5*)
  13906. version_type=osf
  13907. need_lib_prefix=no
  13908. need_version=no
  13909. soname_spec='$libname$release$shared_ext$major'
  13910. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13911. shlibpath_var=LD_LIBRARY_PATH
  13912. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13913. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13914. ;;
  13915. rdos*)
  13916. dynamic_linker=no
  13917. ;;
  13918. solaris*)
  13919. version_type=linux # correct to gnu/linux during the next big refactor
  13920. need_lib_prefix=no
  13921. need_version=no
  13922. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13923. soname_spec='$libname$release$shared_ext$major'
  13924. shlibpath_var=LD_LIBRARY_PATH
  13925. shlibpath_overrides_runpath=yes
  13926. hardcode_into_libs=yes
  13927. # ldd complains unless libraries are executable
  13928. postinstall_cmds='chmod +x $lib'
  13929. ;;
  13930. sunos4*)
  13931. version_type=sunos
  13932. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13933. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13934. shlibpath_var=LD_LIBRARY_PATH
  13935. shlibpath_overrides_runpath=yes
  13936. if test yes = "$with_gnu_ld"; then
  13937. need_lib_prefix=no
  13938. fi
  13939. need_version=yes
  13940. ;;
  13941. sysv4 | sysv4.3*)
  13942. version_type=linux # correct to gnu/linux during the next big refactor
  13943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13944. soname_spec='$libname$release$shared_ext$major'
  13945. shlibpath_var=LD_LIBRARY_PATH
  13946. case $host_vendor in
  13947. sni)
  13948. shlibpath_overrides_runpath=no
  13949. need_lib_prefix=no
  13950. runpath_var=LD_RUN_PATH
  13951. ;;
  13952. siemens)
  13953. need_lib_prefix=no
  13954. ;;
  13955. motorola)
  13956. need_lib_prefix=no
  13957. need_version=no
  13958. shlibpath_overrides_runpath=no
  13959. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13960. ;;
  13961. esac
  13962. ;;
  13963. sysv4*MP*)
  13964. if test -d /usr/nec; then
  13965. version_type=linux # correct to gnu/linux during the next big refactor
  13966. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13967. soname_spec='$libname$shared_ext.$major'
  13968. shlibpath_var=LD_LIBRARY_PATH
  13969. fi
  13970. ;;
  13971. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13972. version_type=sco
  13973. need_lib_prefix=no
  13974. need_version=no
  13975. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13976. soname_spec='$libname$release$shared_ext$major'
  13977. shlibpath_var=LD_LIBRARY_PATH
  13978. shlibpath_overrides_runpath=yes
  13979. hardcode_into_libs=yes
  13980. if test yes = "$with_gnu_ld"; then
  13981. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13982. else
  13983. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13984. case $host_os in
  13985. sco3.2v5*)
  13986. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13987. ;;
  13988. esac
  13989. fi
  13990. sys_lib_dlsearch_path_spec='/usr/lib'
  13991. ;;
  13992. tpf*)
  13993. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13994. version_type=linux # correct to gnu/linux during the next big refactor
  13995. need_lib_prefix=no
  13996. need_version=no
  13997. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13998. shlibpath_var=LD_LIBRARY_PATH
  13999. shlibpath_overrides_runpath=no
  14000. hardcode_into_libs=yes
  14001. ;;
  14002. uts4*)
  14003. version_type=linux # correct to gnu/linux during the next big refactor
  14004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14005. soname_spec='$libname$release$shared_ext$major'
  14006. shlibpath_var=LD_LIBRARY_PATH
  14007. ;;
  14008. *)
  14009. dynamic_linker=no
  14010. ;;
  14011. esac
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14013. $as_echo "$dynamic_linker" >&6; }
  14014. test no = "$dynamic_linker" && can_build_shared=no
  14015. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14016. if test yes = "$GCC"; then
  14017. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14018. fi
  14019. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14020. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14021. fi
  14022. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14023. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14024. fi
  14025. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14026. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14027. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14028. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14029. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14030. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14032. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14033. hardcode_action_CXX=
  14034. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14035. test -n "$runpath_var_CXX" ||
  14036. test yes = "$hardcode_automatic_CXX"; then
  14037. # We can hardcode non-existent directories.
  14038. if test no != "$hardcode_direct_CXX" &&
  14039. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14040. # have to relink, otherwise we might link with an installed library
  14041. # when we should be linking with a yet-to-be-installed one
  14042. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14043. test no != "$hardcode_minus_L_CXX"; then
  14044. # Linking always hardcodes the temporary library directory.
  14045. hardcode_action_CXX=relink
  14046. else
  14047. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14048. hardcode_action_CXX=immediate
  14049. fi
  14050. else
  14051. # We cannot hardcode anything, or else we can only hardcode existing
  14052. # directories.
  14053. hardcode_action_CXX=unsupported
  14054. fi
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14056. $as_echo "$hardcode_action_CXX" >&6; }
  14057. if test relink = "$hardcode_action_CXX" ||
  14058. test yes = "$inherit_rpath_CXX"; then
  14059. # Fast installation is not supported
  14060. enable_fast_install=no
  14061. elif test yes = "$shlibpath_overrides_runpath" ||
  14062. test no = "$enable_shared"; then
  14063. # Fast installation is not necessary
  14064. enable_fast_install=needless
  14065. fi
  14066. fi # test -n "$compiler"
  14067. CC=$lt_save_CC
  14068. CFLAGS=$lt_save_CFLAGS
  14069. LDCXX=$LD
  14070. LD=$lt_save_LD
  14071. GCC=$lt_save_GCC
  14072. with_gnu_ld=$lt_save_with_gnu_ld
  14073. lt_cv_path_LDCXX=$lt_cv_path_LD
  14074. lt_cv_path_LD=$lt_save_path_LD
  14075. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14076. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14077. fi # test yes != "$_lt_caught_CXX_error"
  14078. ac_ext=c
  14079. ac_cpp='$CPP $CPPFLAGS'
  14080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14083. ac_config_commands="$ac_config_commands libtool"
  14084. # Only expand once:
  14085. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14086. if test -n "$ac_tool_prefix"; then
  14087. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14088. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14090. $as_echo_n "checking for $ac_word... " >&6; }
  14091. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14092. $as_echo_n "(cached) " >&6
  14093. else
  14094. case $PKG_CONFIG in
  14095. [\\/]* | ?:[\\/]*)
  14096. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14097. ;;
  14098. *)
  14099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14100. for as_dir in $PATH
  14101. do
  14102. IFS=$as_save_IFS
  14103. test -z "$as_dir" && as_dir=.
  14104. for ac_exec_ext in '' $ac_executable_extensions; do
  14105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14106. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14108. break 2
  14109. fi
  14110. done
  14111. done
  14112. IFS=$as_save_IFS
  14113. ;;
  14114. esac
  14115. fi
  14116. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14117. if test -n "$PKG_CONFIG"; then
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14119. $as_echo "$PKG_CONFIG" >&6; }
  14120. else
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14122. $as_echo "no" >&6; }
  14123. fi
  14124. fi
  14125. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14126. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14127. # Extract the first word of "pkg-config", so it can be a program name with args.
  14128. set dummy pkg-config; ac_word=$2
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14130. $as_echo_n "checking for $ac_word... " >&6; }
  14131. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14132. $as_echo_n "(cached) " >&6
  14133. else
  14134. case $ac_pt_PKG_CONFIG in
  14135. [\\/]* | ?:[\\/]*)
  14136. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14137. ;;
  14138. *)
  14139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14140. for as_dir in $PATH
  14141. do
  14142. IFS=$as_save_IFS
  14143. test -z "$as_dir" && as_dir=.
  14144. for ac_exec_ext in '' $ac_executable_extensions; do
  14145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14146. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14148. break 2
  14149. fi
  14150. done
  14151. done
  14152. IFS=$as_save_IFS
  14153. ;;
  14154. esac
  14155. fi
  14156. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14157. if test -n "$ac_pt_PKG_CONFIG"; then
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14159. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14160. else
  14161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14162. $as_echo "no" >&6; }
  14163. fi
  14164. if test "x$ac_pt_PKG_CONFIG" = x; then
  14165. PKG_CONFIG=""
  14166. else
  14167. case $cross_compiling:$ac_tool_warned in
  14168. yes:)
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14171. ac_tool_warned=yes ;;
  14172. esac
  14173. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14174. fi
  14175. else
  14176. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14177. fi
  14178. fi
  14179. if test -n "$PKG_CONFIG"; then
  14180. _pkg_min_version=0.9.0
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14182. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14183. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14185. $as_echo "yes" >&6; }
  14186. else
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14188. $as_echo "no" >&6; }
  14189. PKG_CONFIG=""
  14190. fi
  14191. fi
  14192. pkg_failed=no
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIBMMDEPS" >&5
  14194. $as_echo_n "checking for GLIBMMDEPS... " >&6; }
  14195. if test -n "$GLIBMMDEPS_CFLAGS"; then
  14196. pkg_cv_GLIBMMDEPS_CFLAGS="$GLIBMMDEPS_CFLAGS"
  14197. elif test -n "$PKG_CONFIG"; then
  14198. if test -n "$PKG_CONFIG" && \
  14199. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
  14200. ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
  14201. ac_status=$?
  14202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14203. test $ac_status = 0; }; then
  14204. pkg_cv_GLIBMMDEPS_CFLAGS=`$PKG_CONFIG --cflags "glibmm-2.4" 2>/dev/null`
  14205. test "x$?" != "x0" && pkg_failed=yes
  14206. else
  14207. pkg_failed=yes
  14208. fi
  14209. else
  14210. pkg_failed=untried
  14211. fi
  14212. if test -n "$GLIBMMDEPS_LIBS"; then
  14213. pkg_cv_GLIBMMDEPS_LIBS="$GLIBMMDEPS_LIBS"
  14214. elif test -n "$PKG_CONFIG"; then
  14215. if test -n "$PKG_CONFIG" && \
  14216. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
  14217. ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
  14218. ac_status=$?
  14219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14220. test $ac_status = 0; }; then
  14221. pkg_cv_GLIBMMDEPS_LIBS=`$PKG_CONFIG --libs "glibmm-2.4" 2>/dev/null`
  14222. test "x$?" != "x0" && pkg_failed=yes
  14223. else
  14224. pkg_failed=yes
  14225. fi
  14226. else
  14227. pkg_failed=untried
  14228. fi
  14229. if test $pkg_failed = yes; then
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14231. $as_echo "no" >&6; }
  14232. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14233. _pkg_short_errors_supported=yes
  14234. else
  14235. _pkg_short_errors_supported=no
  14236. fi
  14237. if test $_pkg_short_errors_supported = yes; then
  14238. GLIBMMDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glibmm-2.4" 2>&1`
  14239. else
  14240. GLIBMMDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glibmm-2.4" 2>&1`
  14241. fi
  14242. # Put the nasty error message in config.log where it belongs
  14243. echo "$GLIBMMDEPS_PKG_ERRORS" >&5
  14244. as_fn_error $? "Package requirements (glibmm-2.4) were not met:
  14245. $GLIBMMDEPS_PKG_ERRORS
  14246. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14247. installed software in a non-standard prefix.
  14248. Alternatively, you may set the environment variables GLIBMMDEPS_CFLAGS
  14249. and GLIBMMDEPS_LIBS to avoid the need to call pkg-config.
  14250. See the pkg-config man page for more details." "$LINENO" 5
  14251. elif test $pkg_failed = untried; then
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14253. $as_echo "no" >&6; }
  14254. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14255. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14256. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14257. is in your PATH or set the PKG_CONFIG environment variable to the full
  14258. path to pkg-config.
  14259. Alternatively, you may set the environment variables GLIBMMDEPS_CFLAGS
  14260. and GLIBMMDEPS_LIBS to avoid the need to call pkg-config.
  14261. See the pkg-config man page for more details.
  14262. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14263. See \`config.log' for more details" "$LINENO" 5; }
  14264. else
  14265. GLIBMMDEPS_CFLAGS=$pkg_cv_GLIBMMDEPS_CFLAGS
  14266. GLIBMMDEPS_LIBS=$pkg_cv_GLIBMMDEPS_LIBS
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14268. $as_echo "yes" >&6; }
  14269. fi
  14270. pkg_failed=no
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKMMDEPS" >&5
  14272. $as_echo_n "checking for GTKMMDEPS... " >&6; }
  14273. if test -n "$GTKMMDEPS_CFLAGS"; then
  14274. pkg_cv_GTKMMDEPS_CFLAGS="$GTKMMDEPS_CFLAGS"
  14275. elif test -n "$PKG_CONFIG"; then
  14276. if test -n "$PKG_CONFIG" && \
  14277. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4\""; } >&5
  14278. ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4") 2>&5
  14279. ac_status=$?
  14280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14281. test $ac_status = 0; }; then
  14282. pkg_cv_GTKMMDEPS_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4" 2>/dev/null`
  14283. test "x$?" != "x0" && pkg_failed=yes
  14284. else
  14285. pkg_failed=yes
  14286. fi
  14287. else
  14288. pkg_failed=untried
  14289. fi
  14290. if test -n "$GTKMMDEPS_LIBS"; then
  14291. pkg_cv_GTKMMDEPS_LIBS="$GTKMMDEPS_LIBS"
  14292. elif test -n "$PKG_CONFIG"; then
  14293. if test -n "$PKG_CONFIG" && \
  14294. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4\""; } >&5
  14295. ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4") 2>&5
  14296. ac_status=$?
  14297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14298. test $ac_status = 0; }; then
  14299. pkg_cv_GTKMMDEPS_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4" 2>/dev/null`
  14300. test "x$?" != "x0" && pkg_failed=yes
  14301. else
  14302. pkg_failed=yes
  14303. fi
  14304. else
  14305. pkg_failed=untried
  14306. fi
  14307. if test $pkg_failed = yes; then
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14309. $as_echo "no" >&6; }
  14310. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14311. _pkg_short_errors_supported=yes
  14312. else
  14313. _pkg_short_errors_supported=no
  14314. fi
  14315. if test $_pkg_short_errors_supported = yes; then
  14316. GTKMMDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4" 2>&1`
  14317. else
  14318. GTKMMDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4" 2>&1`
  14319. fi
  14320. # Put the nasty error message in config.log where it belongs
  14321. echo "$GTKMMDEPS_PKG_ERRORS" >&5
  14322. as_fn_error $? "Package requirements (gtkmm-2.4 gdkmm-2.4 atkmm-1.6 pangomm-1.4) were not met:
  14323. $GTKMMDEPS_PKG_ERRORS
  14324. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14325. installed software in a non-standard prefix.
  14326. Alternatively, you may set the environment variables GTKMMDEPS_CFLAGS
  14327. and GTKMMDEPS_LIBS to avoid the need to call pkg-config.
  14328. See the pkg-config man page for more details." "$LINENO" 5
  14329. elif test $pkg_failed = untried; then
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14331. $as_echo "no" >&6; }
  14332. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14334. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14335. is in your PATH or set the PKG_CONFIG environment variable to the full
  14336. path to pkg-config.
  14337. Alternatively, you may set the environment variables GTKMMDEPS_CFLAGS
  14338. and GTKMMDEPS_LIBS to avoid the need to call pkg-config.
  14339. See the pkg-config man page for more details.
  14340. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14341. See \`config.log' for more details" "$LINENO" 5; }
  14342. else
  14343. GTKMMDEPS_CFLAGS=$pkg_cv_GTKMMDEPS_CFLAGS
  14344. GTKMMDEPS_LIBS=$pkg_cv_GTKMMDEPS_LIBS
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14346. $as_echo "yes" >&6; }
  14347. fi
  14348. MKINSTALLDIRS=
  14349. if test -n "$ac_aux_dir"; then
  14350. case "$ac_aux_dir" in
  14351. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  14352. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  14353. esac
  14354. fi
  14355. if test -z "$MKINSTALLDIRS"; then
  14356. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  14357. fi
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  14359. $as_echo_n "checking whether NLS is requested... " >&6; }
  14360. # Check whether --enable-nls was given.
  14361. if test "${enable_nls+set}" = set; then :
  14362. enableval=$enable_nls; USE_NLS=$enableval
  14363. else
  14364. USE_NLS=yes
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  14367. $as_echo "$USE_NLS" >&6; }
  14368. # Prepare PATH_SEPARATOR.
  14369. # The user is always right.
  14370. if test "${PATH_SEPARATOR+set}" != set; then
  14371. echo "#! /bin/sh" >conf$$.sh
  14372. echo "exit 0" >>conf$$.sh
  14373. chmod +x conf$$.sh
  14374. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14375. PATH_SEPARATOR=';'
  14376. else
  14377. PATH_SEPARATOR=:
  14378. fi
  14379. rm -f conf$$.sh
  14380. fi
  14381. # Find out how to test for executable files. Don't use a zero-byte file,
  14382. # as systems may use methods other than mode bits to determine executability.
  14383. cat >conf$$.file <<_ASEOF
  14384. #! /bin/sh
  14385. exit 0
  14386. _ASEOF
  14387. chmod +x conf$$.file
  14388. if test -x conf$$.file >/dev/null 2>&1; then
  14389. ac_executable_p="test -x"
  14390. else
  14391. ac_executable_p="test -f"
  14392. fi
  14393. rm -f conf$$.file
  14394. # Extract the first word of "msgfmt", so it can be a program name with args.
  14395. set dummy msgfmt; ac_word=$2
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14397. $as_echo_n "checking for $ac_word... " >&6; }
  14398. if ${ac_cv_path_MSGFMT+:} false; then :
  14399. $as_echo_n "(cached) " >&6
  14400. else
  14401. case "$MSGFMT" in
  14402. [\\/]* | ?:[\\/]*)
  14403. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  14404. ;;
  14405. *)
  14406. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  14407. for ac_dir in $PATH; do
  14408. IFS="$ac_save_IFS"
  14409. test -z "$ac_dir" && ac_dir=.
  14410. for ac_exec_ext in '' $ac_executable_extensions; do
  14411. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  14412. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  14413. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  14414. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  14415. break 2
  14416. fi
  14417. fi
  14418. done
  14419. done
  14420. IFS="$ac_save_IFS"
  14421. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  14422. ;;
  14423. esac
  14424. fi
  14425. MSGFMT="$ac_cv_path_MSGFMT"
  14426. if test "$MSGFMT" != ":"; then
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  14428. $as_echo "$MSGFMT" >&6; }
  14429. else
  14430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14431. $as_echo "no" >&6; }
  14432. fi
  14433. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  14434. set dummy gmsgfmt; ac_word=$2
  14435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14436. $as_echo_n "checking for $ac_word... " >&6; }
  14437. if ${ac_cv_path_GMSGFMT+:} false; then :
  14438. $as_echo_n "(cached) " >&6
  14439. else
  14440. case $GMSGFMT in
  14441. [\\/]* | ?:[\\/]*)
  14442. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  14443. ;;
  14444. *)
  14445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14446. for as_dir in $PATH
  14447. do
  14448. IFS=$as_save_IFS
  14449. test -z "$as_dir" && as_dir=.
  14450. for ac_exec_ext in '' $ac_executable_extensions; do
  14451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14452. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  14453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14454. break 2
  14455. fi
  14456. done
  14457. done
  14458. IFS=$as_save_IFS
  14459. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  14460. ;;
  14461. esac
  14462. fi
  14463. GMSGFMT=$ac_cv_path_GMSGFMT
  14464. if test -n "$GMSGFMT"; then
  14465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  14466. $as_echo "$GMSGFMT" >&6; }
  14467. else
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14469. $as_echo "no" >&6; }
  14470. fi
  14471. # Prepare PATH_SEPARATOR.
  14472. # The user is always right.
  14473. if test "${PATH_SEPARATOR+set}" != set; then
  14474. echo "#! /bin/sh" >conf$$.sh
  14475. echo "exit 0" >>conf$$.sh
  14476. chmod +x conf$$.sh
  14477. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14478. PATH_SEPARATOR=';'
  14479. else
  14480. PATH_SEPARATOR=:
  14481. fi
  14482. rm -f conf$$.sh
  14483. fi
  14484. # Find out how to test for executable files. Don't use a zero-byte file,
  14485. # as systems may use methods other than mode bits to determine executability.
  14486. cat >conf$$.file <<_ASEOF
  14487. #! /bin/sh
  14488. exit 0
  14489. _ASEOF
  14490. chmod +x conf$$.file
  14491. if test -x conf$$.file >/dev/null 2>&1; then
  14492. ac_executable_p="test -x"
  14493. else
  14494. ac_executable_p="test -f"
  14495. fi
  14496. rm -f conf$$.file
  14497. # Extract the first word of "xgettext", so it can be a program name with args.
  14498. set dummy xgettext; ac_word=$2
  14499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14500. $as_echo_n "checking for $ac_word... " >&6; }
  14501. if ${ac_cv_path_XGETTEXT+:} false; then :
  14502. $as_echo_n "(cached) " >&6
  14503. else
  14504. case "$XGETTEXT" in
  14505. [\\/]* | ?:[\\/]*)
  14506. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  14507. ;;
  14508. *)
  14509. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  14510. for ac_dir in $PATH; do
  14511. IFS="$ac_save_IFS"
  14512. test -z "$ac_dir" && ac_dir=.
  14513. for ac_exec_ext in '' $ac_executable_extensions; do
  14514. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  14515. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  14516. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  14517. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  14518. break 2
  14519. fi
  14520. fi
  14521. done
  14522. done
  14523. IFS="$ac_save_IFS"
  14524. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  14525. ;;
  14526. esac
  14527. fi
  14528. XGETTEXT="$ac_cv_path_XGETTEXT"
  14529. if test "$XGETTEXT" != ":"; then
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  14531. $as_echo "$XGETTEXT" >&6; }
  14532. else
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14534. $as_echo "no" >&6; }
  14535. fi
  14536. rm -f messages.po
  14537. # Prepare PATH_SEPARATOR.
  14538. # The user is always right.
  14539. if test "${PATH_SEPARATOR+set}" != set; then
  14540. echo "#! /bin/sh" >conf$$.sh
  14541. echo "exit 0" >>conf$$.sh
  14542. chmod +x conf$$.sh
  14543. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14544. PATH_SEPARATOR=';'
  14545. else
  14546. PATH_SEPARATOR=:
  14547. fi
  14548. rm -f conf$$.sh
  14549. fi
  14550. # Find out how to test for executable files. Don't use a zero-byte file,
  14551. # as systems may use methods other than mode bits to determine executability.
  14552. cat >conf$$.file <<_ASEOF
  14553. #! /bin/sh
  14554. exit 0
  14555. _ASEOF
  14556. chmod +x conf$$.file
  14557. if test -x conf$$.file >/dev/null 2>&1; then
  14558. ac_executable_p="test -x"
  14559. else
  14560. ac_executable_p="test -f"
  14561. fi
  14562. rm -f conf$$.file
  14563. # Extract the first word of "msgmerge", so it can be a program name with args.
  14564. set dummy msgmerge; ac_word=$2
  14565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14566. $as_echo_n "checking for $ac_word... " >&6; }
  14567. if ${ac_cv_path_MSGMERGE+:} false; then :
  14568. $as_echo_n "(cached) " >&6
  14569. else
  14570. case "$MSGMERGE" in
  14571. [\\/]* | ?:[\\/]*)
  14572. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  14573. ;;
  14574. *)
  14575. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  14576. for ac_dir in $PATH; do
  14577. IFS="$ac_save_IFS"
  14578. test -z "$ac_dir" && ac_dir=.
  14579. for ac_exec_ext in '' $ac_executable_extensions; do
  14580. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  14581. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  14582. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  14583. break 2
  14584. fi
  14585. fi
  14586. done
  14587. done
  14588. IFS="$ac_save_IFS"
  14589. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  14590. ;;
  14591. esac
  14592. fi
  14593. MSGMERGE="$ac_cv_path_MSGMERGE"
  14594. if test "$MSGMERGE" != ":"; then
  14595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  14596. $as_echo "$MSGMERGE" >&6; }
  14597. else
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14599. $as_echo "no" >&6; }
  14600. fi
  14601. if test "$GMSGFMT" != ":"; then
  14602. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  14603. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  14604. : ;
  14605. else
  14606. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  14608. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  14609. GMSGFMT=":"
  14610. fi
  14611. fi
  14612. if test "$XGETTEXT" != ":"; then
  14613. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  14614. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  14615. : ;
  14616. else
  14617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  14618. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  14619. XGETTEXT=":"
  14620. fi
  14621. rm -f messages.po
  14622. fi
  14623. ac_config_commands="$ac_config_commands default-1"
  14624. if test -n "$ac_tool_prefix"; then
  14625. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  14626. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  14627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14628. $as_echo_n "checking for $ac_word... " >&6; }
  14629. if ${ac_cv_prog_RANLIB+:} false; then :
  14630. $as_echo_n "(cached) " >&6
  14631. else
  14632. if test -n "$RANLIB"; then
  14633. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  14634. else
  14635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14636. for as_dir in $PATH
  14637. do
  14638. IFS=$as_save_IFS
  14639. test -z "$as_dir" && as_dir=.
  14640. for ac_exec_ext in '' $ac_executable_extensions; do
  14641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14642. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  14643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14644. break 2
  14645. fi
  14646. done
  14647. done
  14648. IFS=$as_save_IFS
  14649. fi
  14650. fi
  14651. RANLIB=$ac_cv_prog_RANLIB
  14652. if test -n "$RANLIB"; then
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  14654. $as_echo "$RANLIB" >&6; }
  14655. else
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14657. $as_echo "no" >&6; }
  14658. fi
  14659. fi
  14660. if test -z "$ac_cv_prog_RANLIB"; then
  14661. ac_ct_RANLIB=$RANLIB
  14662. # Extract the first word of "ranlib", so it can be a program name with args.
  14663. set dummy ranlib; ac_word=$2
  14664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14665. $as_echo_n "checking for $ac_word... " >&6; }
  14666. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  14667. $as_echo_n "(cached) " >&6
  14668. else
  14669. if test -n "$ac_ct_RANLIB"; then
  14670. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  14671. else
  14672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14673. for as_dir in $PATH
  14674. do
  14675. IFS=$as_save_IFS
  14676. test -z "$as_dir" && as_dir=.
  14677. for ac_exec_ext in '' $ac_executable_extensions; do
  14678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14679. ac_cv_prog_ac_ct_RANLIB="ranlib"
  14680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14681. break 2
  14682. fi
  14683. done
  14684. done
  14685. IFS=$as_save_IFS
  14686. fi
  14687. fi
  14688. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  14689. if test -n "$ac_ct_RANLIB"; then
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  14691. $as_echo "$ac_ct_RANLIB" >&6; }
  14692. else
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14694. $as_echo "no" >&6; }
  14695. fi
  14696. if test "x$ac_ct_RANLIB" = x; then
  14697. RANLIB=":"
  14698. else
  14699. case $cross_compiling:$ac_tool_warned in
  14700. yes:)
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14703. ac_tool_warned=yes ;;
  14704. esac
  14705. RANLIB=$ac_ct_RANLIB
  14706. fi
  14707. else
  14708. RANLIB="$ac_cv_prog_RANLIB"
  14709. fi
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
  14711. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  14712. if ${ac_cv_lib_cposix_strerror+:} false; then :
  14713. $as_echo_n "(cached) " >&6
  14714. else
  14715. ac_check_lib_save_LIBS=$LIBS
  14716. LIBS="-lcposix $LIBS"
  14717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14718. /* end confdefs.h. */
  14719. /* Override any GCC internal prototype to avoid an error.
  14720. Use char because int might match the return type of a GCC
  14721. builtin and then its argument prototype would still apply. */
  14722. #ifdef __cplusplus
  14723. extern "C"
  14724. #endif
  14725. char strerror ();
  14726. int
  14727. main ()
  14728. {
  14729. return strerror ();
  14730. ;
  14731. return 0;
  14732. }
  14733. _ACEOF
  14734. if ac_fn_c_try_link "$LINENO"; then :
  14735. ac_cv_lib_cposix_strerror=yes
  14736. else
  14737. ac_cv_lib_cposix_strerror=no
  14738. fi
  14739. rm -f core conftest.err conftest.$ac_objext \
  14740. conftest$ac_exeext conftest.$ac_ext
  14741. LIBS=$ac_check_lib_save_LIBS
  14742. fi
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
  14744. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  14745. if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
  14746. LIBS="$LIBS -lcposix"
  14747. fi
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14749. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14750. if ${ac_cv_c_const+:} false; then :
  14751. $as_echo_n "(cached) " >&6
  14752. else
  14753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14754. /* end confdefs.h. */
  14755. int
  14756. main ()
  14757. {
  14758. #ifndef __cplusplus
  14759. /* Ultrix mips cc rejects this sort of thing. */
  14760. typedef int charset[2];
  14761. const charset cs = { 0, 0 };
  14762. /* SunOS 4.1.1 cc rejects this. */
  14763. char const *const *pcpcc;
  14764. char **ppc;
  14765. /* NEC SVR4.0.2 mips cc rejects this. */
  14766. struct point {int x, y;};
  14767. static struct point const zero = {0,0};
  14768. /* AIX XL C 1.02.0.0 rejects this.
  14769. It does not let you subtract one const X* pointer from another in
  14770. an arm of an if-expression whose if-part is not a constant
  14771. expression */
  14772. const char *g = "string";
  14773. pcpcc = &g + (g ? g-g : 0);
  14774. /* HPUX 7.0 cc rejects these. */
  14775. ++pcpcc;
  14776. ppc = (char**) pcpcc;
  14777. pcpcc = (char const *const *) ppc;
  14778. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14779. char tx;
  14780. char *t = &tx;
  14781. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14782. *t++ = 0;
  14783. if (s) return 0;
  14784. }
  14785. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14786. int x[] = {25, 17};
  14787. const int *foo = &x[0];
  14788. ++foo;
  14789. }
  14790. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14791. typedef const int *iptr;
  14792. iptr p = 0;
  14793. ++p;
  14794. }
  14795. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14796. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14797. struct s { int j; const int *ap[3]; } bx;
  14798. struct s *b = &bx; b->j = 5;
  14799. }
  14800. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14801. const int foo = 10;
  14802. if (!foo) return 0;
  14803. }
  14804. return !cs[0] && !zero.x;
  14805. #endif
  14806. ;
  14807. return 0;
  14808. }
  14809. _ACEOF
  14810. if ac_fn_c_try_compile "$LINENO"; then :
  14811. ac_cv_c_const=yes
  14812. else
  14813. ac_cv_c_const=no
  14814. fi
  14815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14816. fi
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14818. $as_echo "$ac_cv_c_const" >&6; }
  14819. if test $ac_cv_c_const = no; then
  14820. $as_echo "#define const /**/" >>confdefs.h
  14821. fi
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
  14823. $as_echo_n "checking for signed... " >&6; }
  14824. if ${bh_cv_c_signed+:} false; then :
  14825. $as_echo_n "(cached) " >&6
  14826. else
  14827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14828. /* end confdefs.h. */
  14829. int
  14830. main ()
  14831. {
  14832. signed char x;
  14833. ;
  14834. return 0;
  14835. }
  14836. _ACEOF
  14837. if ac_fn_c_try_compile "$LINENO"; then :
  14838. bh_cv_c_signed=yes
  14839. else
  14840. bh_cv_c_signed=no
  14841. fi
  14842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14843. fi
  14844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
  14845. $as_echo "$bh_cv_c_signed" >&6; }
  14846. if test $bh_cv_c_signed = no; then
  14847. $as_echo "#define signed /**/" >>confdefs.h
  14848. fi
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14850. $as_echo_n "checking for inline... " >&6; }
  14851. if ${ac_cv_c_inline+:} false; then :
  14852. $as_echo_n "(cached) " >&6
  14853. else
  14854. ac_cv_c_inline=no
  14855. for ac_kw in inline __inline__ __inline; do
  14856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14857. /* end confdefs.h. */
  14858. #ifndef __cplusplus
  14859. typedef int foo_t;
  14860. static $ac_kw foo_t static_foo () {return 0; }
  14861. $ac_kw foo_t foo () {return 0; }
  14862. #endif
  14863. _ACEOF
  14864. if ac_fn_c_try_compile "$LINENO"; then :
  14865. ac_cv_c_inline=$ac_kw
  14866. fi
  14867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14868. test "$ac_cv_c_inline" != no && break
  14869. done
  14870. fi
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14872. $as_echo "$ac_cv_c_inline" >&6; }
  14873. case $ac_cv_c_inline in
  14874. inline | yes) ;;
  14875. *)
  14876. case $ac_cv_c_inline in
  14877. no) ac_val=;;
  14878. *) ac_val=$ac_cv_c_inline;;
  14879. esac
  14880. cat >>confdefs.h <<_ACEOF
  14881. #ifndef __cplusplus
  14882. #define inline $ac_val
  14883. #endif
  14884. _ACEOF
  14885. ;;
  14886. esac
  14887. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  14888. if test "x$ac_cv_type_off_t" = xyes; then :
  14889. else
  14890. cat >>confdefs.h <<_ACEOF
  14891. #define off_t long int
  14892. _ACEOF
  14893. fi
  14894. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14895. if test "x$ac_cv_type_size_t" = xyes; then :
  14896. else
  14897. cat >>confdefs.h <<_ACEOF
  14898. #define size_t unsigned int
  14899. _ACEOF
  14900. fi
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
  14902. $as_echo_n "checking for long long... " >&6; }
  14903. if ${ac_cv_type_long_long+:} false; then :
  14904. $as_echo_n "(cached) " >&6
  14905. else
  14906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14907. /* end confdefs.h. */
  14908. long long ll = 1LL; int i = 63;
  14909. int
  14910. main ()
  14911. {
  14912. long long llmax = (long long) -1;
  14913. return ll << i | ll >> i | llmax / ll | llmax % ll;
  14914. ;
  14915. return 0;
  14916. }
  14917. _ACEOF
  14918. if ac_fn_c_try_link "$LINENO"; then :
  14919. ac_cv_type_long_long=yes
  14920. else
  14921. ac_cv_type_long_long=no
  14922. fi
  14923. rm -f core conftest.err conftest.$ac_objext \
  14924. conftest$ac_exeext conftest.$ac_ext
  14925. fi
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
  14927. $as_echo "$ac_cv_type_long_long" >&6; }
  14928. if test $ac_cv_type_long_long = yes; then
  14929. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  14930. fi
  14931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
  14932. $as_echo_n "checking for long double... " >&6; }
  14933. if ${gt_cv_c_long_double+:} false; then :
  14934. $as_echo_n "(cached) " >&6
  14935. else
  14936. if test "$GCC" = yes; then
  14937. gt_cv_c_long_double=yes
  14938. else
  14939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14940. /* end confdefs.h. */
  14941. /* The Stardent Vistra knows sizeof(long double), but does not support it. */
  14942. long double foo = 0.0;
  14943. /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
  14944. int array [2*(sizeof(long double) >= sizeof(double)) - 1];
  14945. int
  14946. main ()
  14947. {
  14948. ;
  14949. return 0;
  14950. }
  14951. _ACEOF
  14952. if ac_fn_c_try_compile "$LINENO"; then :
  14953. gt_cv_c_long_double=yes
  14954. else
  14955. gt_cv_c_long_double=no
  14956. fi
  14957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14958. fi
  14959. fi
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
  14961. $as_echo "$gt_cv_c_long_double" >&6; }
  14962. if test $gt_cv_c_long_double = yes; then
  14963. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  14964. fi
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  14966. $as_echo_n "checking for wchar_t... " >&6; }
  14967. if ${gt_cv_c_wchar_t+:} false; then :
  14968. $as_echo_n "(cached) " >&6
  14969. else
  14970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14971. /* end confdefs.h. */
  14972. #include <stddef.h>
  14973. wchar_t foo = (wchar_t)'\0';
  14974. int
  14975. main ()
  14976. {
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. gt_cv_c_wchar_t=yes
  14983. else
  14984. gt_cv_c_wchar_t=no
  14985. fi
  14986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14987. fi
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  14989. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14990. if test $gt_cv_c_wchar_t = yes; then
  14991. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  14992. fi
  14993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  14994. $as_echo_n "checking for wint_t... " >&6; }
  14995. if ${gt_cv_c_wint_t+:} false; then :
  14996. $as_echo_n "(cached) " >&6
  14997. else
  14998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14999. /* end confdefs.h. */
  15000. #include <wchar.h>
  15001. wint_t foo = (wchar_t)'\0';
  15002. int
  15003. main ()
  15004. {
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. if ac_fn_c_try_compile "$LINENO"; then :
  15010. gt_cv_c_wint_t=yes
  15011. else
  15012. gt_cv_c_wint_t=no
  15013. fi
  15014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15015. fi
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  15017. $as_echo "$gt_cv_c_wint_t" >&6; }
  15018. if test $gt_cv_c_wint_t = yes; then
  15019. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  15020. fi
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  15022. $as_echo_n "checking for inttypes.h... " >&6; }
  15023. if ${jm_ac_cv_header_inttypes_h+:} false; then :
  15024. $as_echo_n "(cached) " >&6
  15025. else
  15026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15027. /* end confdefs.h. */
  15028. #include <sys/types.h>
  15029. #include <inttypes.h>
  15030. int
  15031. main ()
  15032. {
  15033. uintmax_t i = (uintmax_t) -1;
  15034. ;
  15035. return 0;
  15036. }
  15037. _ACEOF
  15038. if ac_fn_c_try_compile "$LINENO"; then :
  15039. jm_ac_cv_header_inttypes_h=yes
  15040. else
  15041. jm_ac_cv_header_inttypes_h=no
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15044. fi
  15045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
  15046. $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
  15047. if test $jm_ac_cv_header_inttypes_h = yes; then
  15048. cat >>confdefs.h <<_ACEOF
  15049. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  15050. _ACEOF
  15051. fi
  15052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  15053. $as_echo_n "checking for stdint.h... " >&6; }
  15054. if ${jm_ac_cv_header_stdint_h+:} false; then :
  15055. $as_echo_n "(cached) " >&6
  15056. else
  15057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15058. /* end confdefs.h. */
  15059. #include <sys/types.h>
  15060. #include <stdint.h>
  15061. int
  15062. main ()
  15063. {
  15064. uintmax_t i = (uintmax_t) -1;
  15065. ;
  15066. return 0;
  15067. }
  15068. _ACEOF
  15069. if ac_fn_c_try_compile "$LINENO"; then :
  15070. jm_ac_cv_header_stdint_h=yes
  15071. else
  15072. jm_ac_cv_header_stdint_h=no
  15073. fi
  15074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15075. fi
  15076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
  15077. $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
  15078. if test $jm_ac_cv_header_stdint_h = yes; then
  15079. cat >>confdefs.h <<_ACEOF
  15080. #define HAVE_STDINT_H_WITH_UINTMAX 1
  15081. _ACEOF
  15082. fi
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  15084. $as_echo_n "checking for intmax_t... " >&6; }
  15085. if ${gt_cv_c_intmax_t+:} false; then :
  15086. $as_echo_n "(cached) " >&6
  15087. else
  15088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15089. /* end confdefs.h. */
  15090. #include <stddef.h>
  15091. #include <stdlib.h>
  15092. #if HAVE_STDINT_H_WITH_UINTMAX
  15093. #include <stdint.h>
  15094. #endif
  15095. #if HAVE_INTTYPES_H_WITH_UINTMAX
  15096. #include <inttypes.h>
  15097. #endif
  15098. int
  15099. main ()
  15100. {
  15101. intmax_t x = -1;
  15102. ;
  15103. return 0;
  15104. }
  15105. _ACEOF
  15106. if ac_fn_c_try_compile "$LINENO"; then :
  15107. gt_cv_c_intmax_t=yes
  15108. else
  15109. gt_cv_c_intmax_t=no
  15110. fi
  15111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15112. fi
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  15114. $as_echo "$gt_cv_c_intmax_t" >&6; }
  15115. if test $gt_cv_c_intmax_t = yes; then
  15116. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  15117. fi
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  15119. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  15120. if ${gt_cv_func_printf_posix+:} false; then :
  15121. $as_echo_n "(cached) " >&6
  15122. else
  15123. if test "$cross_compiling" = yes; then :
  15124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15125. /* end confdefs.h. */
  15126. #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  15127. notposix
  15128. #endif
  15129. _ACEOF
  15130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15131. $EGREP "notposix" >/dev/null 2>&1; then :
  15132. gt_cv_func_printf_posix="guessing no"
  15133. else
  15134. gt_cv_func_printf_posix="guessing yes"
  15135. fi
  15136. rm -f conftest*
  15137. else
  15138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15139. /* end confdefs.h. */
  15140. #include <stdio.h>
  15141. #include <string.h>
  15142. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  15143. dollar expansion (possibly an autoconf bug). */
  15144. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  15145. static char buf[100];
  15146. int main ()
  15147. {
  15148. sprintf (buf, format, 33, 55);
  15149. return (strcmp (buf, "55 33") != 0);
  15150. }
  15151. _ACEOF
  15152. if ac_fn_c_try_run "$LINENO"; then :
  15153. gt_cv_func_printf_posix=yes
  15154. else
  15155. gt_cv_func_printf_posix=no
  15156. fi
  15157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15159. fi
  15160. fi
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  15162. $as_echo "$gt_cv_func_printf_posix" >&6; }
  15163. case $gt_cv_func_printf_posix in
  15164. *yes)
  15165. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  15166. ;;
  15167. esac
  15168. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15169. # for constant arguments. Useless!
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15171. $as_echo_n "checking for working alloca.h... " >&6; }
  15172. if ${ac_cv_working_alloca_h+:} false; then :
  15173. $as_echo_n "(cached) " >&6
  15174. else
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. #include <alloca.h>
  15178. int
  15179. main ()
  15180. {
  15181. char *p = (char *) alloca (2 * sizeof (int));
  15182. if (p) return 0;
  15183. ;
  15184. return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_c_try_link "$LINENO"; then :
  15188. ac_cv_working_alloca_h=yes
  15189. else
  15190. ac_cv_working_alloca_h=no
  15191. fi
  15192. rm -f core conftest.err conftest.$ac_objext \
  15193. conftest$ac_exeext conftest.$ac_ext
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15196. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15197. if test $ac_cv_working_alloca_h = yes; then
  15198. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15199. fi
  15200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15201. $as_echo_n "checking for alloca... " >&6; }
  15202. if ${ac_cv_func_alloca_works+:} false; then :
  15203. $as_echo_n "(cached) " >&6
  15204. else
  15205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15206. /* end confdefs.h. */
  15207. #ifdef __GNUC__
  15208. # define alloca __builtin_alloca
  15209. #else
  15210. # ifdef _MSC_VER
  15211. # include <malloc.h>
  15212. # define alloca _alloca
  15213. # else
  15214. # ifdef HAVE_ALLOCA_H
  15215. # include <alloca.h>
  15216. # else
  15217. # ifdef _AIX
  15218. #pragma alloca
  15219. # else
  15220. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15221. void *alloca (size_t);
  15222. # endif
  15223. # endif
  15224. # endif
  15225. # endif
  15226. #endif
  15227. int
  15228. main ()
  15229. {
  15230. char *p = (char *) alloca (1);
  15231. if (p) return 0;
  15232. ;
  15233. return 0;
  15234. }
  15235. _ACEOF
  15236. if ac_fn_c_try_link "$LINENO"; then :
  15237. ac_cv_func_alloca_works=yes
  15238. else
  15239. ac_cv_func_alloca_works=no
  15240. fi
  15241. rm -f core conftest.err conftest.$ac_objext \
  15242. conftest$ac_exeext conftest.$ac_ext
  15243. fi
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15245. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15246. if test $ac_cv_func_alloca_works = yes; then
  15247. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15248. else
  15249. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15250. # that cause trouble. Some versions do not even contain alloca or
  15251. # contain a buggy version. If you still want to use their alloca,
  15252. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15253. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15254. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15256. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15257. if ${ac_cv_os_cray+:} false; then :
  15258. $as_echo_n "(cached) " >&6
  15259. else
  15260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15261. /* end confdefs.h. */
  15262. #if defined CRAY && ! defined CRAY2
  15263. webecray
  15264. #else
  15265. wenotbecray
  15266. #endif
  15267. _ACEOF
  15268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15269. $EGREP "webecray" >/dev/null 2>&1; then :
  15270. ac_cv_os_cray=yes
  15271. else
  15272. ac_cv_os_cray=no
  15273. fi
  15274. rm -f conftest*
  15275. fi
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15277. $as_echo "$ac_cv_os_cray" >&6; }
  15278. if test $ac_cv_os_cray = yes; then
  15279. for ac_func in _getb67 GETB67 getb67; do
  15280. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15281. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15282. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15283. cat >>confdefs.h <<_ACEOF
  15284. #define CRAY_STACKSEG_END $ac_func
  15285. _ACEOF
  15286. break
  15287. fi
  15288. done
  15289. fi
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15291. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15292. if ${ac_cv_c_stack_direction+:} false; then :
  15293. $as_echo_n "(cached) " >&6
  15294. else
  15295. if test "$cross_compiling" = yes; then :
  15296. ac_cv_c_stack_direction=0
  15297. else
  15298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15299. /* end confdefs.h. */
  15300. $ac_includes_default
  15301. int
  15302. find_stack_direction (int *addr, int depth)
  15303. {
  15304. int dir, dummy = 0;
  15305. if (! addr)
  15306. addr = &dummy;
  15307. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15308. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15309. return dir + dummy;
  15310. }
  15311. int
  15312. main (int argc, char **argv)
  15313. {
  15314. return find_stack_direction (0, argc + !argv + 20) < 0;
  15315. }
  15316. _ACEOF
  15317. if ac_fn_c_try_run "$LINENO"; then :
  15318. ac_cv_c_stack_direction=1
  15319. else
  15320. ac_cv_c_stack_direction=-1
  15321. fi
  15322. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15323. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15324. fi
  15325. fi
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15327. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15328. cat >>confdefs.h <<_ACEOF
  15329. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15330. _ACEOF
  15331. fi
  15332. for ac_header in $ac_header_list
  15333. do :
  15334. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15335. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15336. "
  15337. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15338. cat >>confdefs.h <<_ACEOF
  15339. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15340. _ACEOF
  15341. fi
  15342. done
  15343. for ac_func in getpagesize
  15344. do :
  15345. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  15346. if test "x$ac_cv_func_getpagesize" = xyes; then :
  15347. cat >>confdefs.h <<_ACEOF
  15348. #define HAVE_GETPAGESIZE 1
  15349. _ACEOF
  15350. fi
  15351. done
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15353. $as_echo_n "checking for working mmap... " >&6; }
  15354. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  15355. $as_echo_n "(cached) " >&6
  15356. else
  15357. if test "$cross_compiling" = yes; then :
  15358. ac_cv_func_mmap_fixed_mapped=no
  15359. else
  15360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15361. /* end confdefs.h. */
  15362. $ac_includes_default
  15363. /* malloc might have been renamed as rpl_malloc. */
  15364. #undef malloc
  15365. /* Thanks to Mike Haertel and Jim Avera for this test.
  15366. Here is a matrix of mmap possibilities:
  15367. mmap private not fixed
  15368. mmap private fixed at somewhere currently unmapped
  15369. mmap private fixed at somewhere already mapped
  15370. mmap shared not fixed
  15371. mmap shared fixed at somewhere currently unmapped
  15372. mmap shared fixed at somewhere already mapped
  15373. For private mappings, we should verify that changes cannot be read()
  15374. back from the file, nor mmap's back from the file at a different
  15375. address. (There have been systems where private was not correctly
  15376. implemented like the infamous i386 svr4.0, and systems where the
  15377. VM page cache was not coherent with the file system buffer cache
  15378. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15379. For shared mappings, we should conversely verify that changes get
  15380. propagated back to all the places they're supposed to be.
  15381. Grep wants private fixed already mapped.
  15382. The main things grep needs to know about mmap are:
  15383. * does it exist and is it safe to write into the mmap'd area
  15384. * how to use it (BSD variants) */
  15385. #include <fcntl.h>
  15386. #include <sys/mman.h>
  15387. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15388. char *malloc ();
  15389. #endif
  15390. /* This mess was copied from the GNU getpagesize.h. */
  15391. #ifndef HAVE_GETPAGESIZE
  15392. # ifdef _SC_PAGESIZE
  15393. # define getpagesize() sysconf(_SC_PAGESIZE)
  15394. # else /* no _SC_PAGESIZE */
  15395. # ifdef HAVE_SYS_PARAM_H
  15396. # include <sys/param.h>
  15397. # ifdef EXEC_PAGESIZE
  15398. # define getpagesize() EXEC_PAGESIZE
  15399. # else /* no EXEC_PAGESIZE */
  15400. # ifdef NBPG
  15401. # define getpagesize() NBPG * CLSIZE
  15402. # ifndef CLSIZE
  15403. # define CLSIZE 1
  15404. # endif /* no CLSIZE */
  15405. # else /* no NBPG */
  15406. # ifdef NBPC
  15407. # define getpagesize() NBPC
  15408. # else /* no NBPC */
  15409. # ifdef PAGESIZE
  15410. # define getpagesize() PAGESIZE
  15411. # endif /* PAGESIZE */
  15412. # endif /* no NBPC */
  15413. # endif /* no NBPG */
  15414. # endif /* no EXEC_PAGESIZE */
  15415. # else /* no HAVE_SYS_PARAM_H */
  15416. # define getpagesize() 8192 /* punt totally */
  15417. # endif /* no HAVE_SYS_PARAM_H */
  15418. # endif /* no _SC_PAGESIZE */
  15419. #endif /* no HAVE_GETPAGESIZE */
  15420. int
  15421. main ()
  15422. {
  15423. char *data, *data2, *data3;
  15424. const char *cdata2;
  15425. int i, pagesize;
  15426. int fd, fd2;
  15427. pagesize = getpagesize ();
  15428. /* First, make a file with some known garbage in it. */
  15429. data = (char *) malloc (pagesize);
  15430. if (!data)
  15431. return 1;
  15432. for (i = 0; i < pagesize; ++i)
  15433. *(data + i) = rand ();
  15434. umask (0);
  15435. fd = creat ("conftest.mmap", 0600);
  15436. if (fd < 0)
  15437. return 2;
  15438. if (write (fd, data, pagesize) != pagesize)
  15439. return 3;
  15440. close (fd);
  15441. /* Next, check that the tail of a page is zero-filled. File must have
  15442. non-zero length, otherwise we risk SIGBUS for entire page. */
  15443. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15444. if (fd2 < 0)
  15445. return 4;
  15446. cdata2 = "";
  15447. if (write (fd2, cdata2, 1) != 1)
  15448. return 5;
  15449. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15450. if (data2 == MAP_FAILED)
  15451. return 6;
  15452. for (i = 0; i < pagesize; ++i)
  15453. if (*(data2 + i))
  15454. return 7;
  15455. close (fd2);
  15456. if (munmap (data2, pagesize))
  15457. return 8;
  15458. /* Next, try to mmap the file at a fixed address which already has
  15459. something else allocated at it. If we can, also make sure that
  15460. we see the same garbage. */
  15461. fd = open ("conftest.mmap", O_RDWR);
  15462. if (fd < 0)
  15463. return 9;
  15464. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15465. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15466. return 10;
  15467. for (i = 0; i < pagesize; ++i)
  15468. if (*(data + i) != *(data2 + i))
  15469. return 11;
  15470. /* Finally, make sure that changes to the mapped area do not
  15471. percolate back to the file as seen by read(). (This is a bug on
  15472. some variants of i386 svr4.0.) */
  15473. for (i = 0; i < pagesize; ++i)
  15474. *(data2 + i) = *(data2 + i) + 1;
  15475. data3 = (char *) malloc (pagesize);
  15476. if (!data3)
  15477. return 12;
  15478. if (read (fd, data3, pagesize) != pagesize)
  15479. return 13;
  15480. for (i = 0; i < pagesize; ++i)
  15481. if (*(data + i) != *(data3 + i))
  15482. return 14;
  15483. close (fd);
  15484. free (data);
  15485. free (data3);
  15486. return 0;
  15487. }
  15488. _ACEOF
  15489. if ac_fn_c_try_run "$LINENO"; then :
  15490. ac_cv_func_mmap_fixed_mapped=yes
  15491. else
  15492. ac_cv_func_mmap_fixed_mapped=no
  15493. fi
  15494. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15495. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15496. fi
  15497. fi
  15498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15499. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15500. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15501. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15502. fi
  15503. rm -f conftest.mmap conftest.txt
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  15505. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  15506. if ${ac_cv_gnu_library_2_1+:} false; then :
  15507. $as_echo_n "(cached) " >&6
  15508. else
  15509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15510. /* end confdefs.h. */
  15511. #include <features.h>
  15512. #ifdef __GNU_LIBRARY__
  15513. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  15514. Lucky GNU user
  15515. #endif
  15516. #endif
  15517. _ACEOF
  15518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15519. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  15520. ac_cv_gnu_library_2_1=yes
  15521. else
  15522. ac_cv_gnu_library_2_1=no
  15523. fi
  15524. rm -f conftest*
  15525. fi
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  15527. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  15528. GLIBC21="$ac_cv_gnu_library_2_1"
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  15530. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  15531. if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
  15532. $as_echo_n "(cached) " >&6
  15533. else
  15534. if test "$cross_compiling" = yes; then :
  15535. # Guess based on the CPU.
  15536. case "$host_cpu" in
  15537. alpha* | i3456786 | m68k | s390*)
  15538. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  15539. *)
  15540. gt_cv_int_divbyzero_sigfpe="guessing no";;
  15541. esac
  15542. else
  15543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15544. /* end confdefs.h. */
  15545. #include <stdlib.h>
  15546. #include <signal.h>
  15547. static void
  15548. #ifdef __cplusplus
  15549. sigfpe_handler (int sig)
  15550. #else
  15551. sigfpe_handler (sig) int sig;
  15552. #endif
  15553. {
  15554. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  15555. exit (sig != SIGFPE);
  15556. }
  15557. int x = 1;
  15558. int y = 0;
  15559. int z;
  15560. int nan;
  15561. int main ()
  15562. {
  15563. signal (SIGFPE, sigfpe_handler);
  15564. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  15565. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  15566. signal (SIGTRAP, sigfpe_handler);
  15567. #endif
  15568. /* Linux/SPARC yields signal SIGILL. */
  15569. #if defined (__sparc__) && defined (__linux__)
  15570. signal (SIGILL, sigfpe_handler);
  15571. #endif
  15572. z = x / y;
  15573. nan = y / y;
  15574. exit (1);
  15575. }
  15576. _ACEOF
  15577. if ac_fn_c_try_run "$LINENO"; then :
  15578. gt_cv_int_divbyzero_sigfpe=yes
  15579. else
  15580. gt_cv_int_divbyzero_sigfpe=no
  15581. fi
  15582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15583. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15584. fi
  15585. fi
  15586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  15587. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  15588. case "$gt_cv_int_divbyzero_sigfpe" in
  15589. *yes) value=1;;
  15590. *) value=0;;
  15591. esac
  15592. cat >>confdefs.h <<_ACEOF
  15593. #define INTDIV0_RAISES_SIGFPE $value
  15594. _ACEOF
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
  15596. $as_echo_n "checking for unsigned long long... " >&6; }
  15597. if ${ac_cv_type_unsigned_long_long+:} false; then :
  15598. $as_echo_n "(cached) " >&6
  15599. else
  15600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15601. /* end confdefs.h. */
  15602. unsigned long long ull = 1ULL; int i = 63;
  15603. int
  15604. main ()
  15605. {
  15606. unsigned long long ullmax = (unsigned long long) -1;
  15607. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  15608. ;
  15609. return 0;
  15610. }
  15611. _ACEOF
  15612. if ac_fn_c_try_link "$LINENO"; then :
  15613. ac_cv_type_unsigned_long_long=yes
  15614. else
  15615. ac_cv_type_unsigned_long_long=no
  15616. fi
  15617. rm -f core conftest.err conftest.$ac_objext \
  15618. conftest$ac_exeext conftest.$ac_ext
  15619. fi
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
  15621. $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
  15622. if test $ac_cv_type_unsigned_long_long = yes; then
  15623. $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
  15624. fi
  15625. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  15626. test $ac_cv_type_unsigned_long_long = yes \
  15627. && ac_type='unsigned long long' \
  15628. || ac_type='unsigned long'
  15629. cat >>confdefs.h <<_ACEOF
  15630. #define uintmax_t $ac_type
  15631. _ACEOF
  15632. else
  15633. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  15634. fi
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  15636. $as_echo_n "checking for inttypes.h... " >&6; }
  15637. if ${gt_cv_header_inttypes_h+:} false; then :
  15638. $as_echo_n "(cached) " >&6
  15639. else
  15640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15641. /* end confdefs.h. */
  15642. #include <sys/types.h>
  15643. #include <inttypes.h>
  15644. int
  15645. main ()
  15646. {
  15647. ;
  15648. return 0;
  15649. }
  15650. _ACEOF
  15651. if ac_fn_c_try_compile "$LINENO"; then :
  15652. gt_cv_header_inttypes_h=yes
  15653. else
  15654. gt_cv_header_inttypes_h=no
  15655. fi
  15656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15657. fi
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
  15659. $as_echo "$gt_cv_header_inttypes_h" >&6; }
  15660. if test $gt_cv_header_inttypes_h = yes; then
  15661. cat >>confdefs.h <<_ACEOF
  15662. #define HAVE_INTTYPES_H 1
  15663. _ACEOF
  15664. fi
  15665. if test $gt_cv_header_inttypes_h = yes; then
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  15667. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  15668. if ${gt_cv_inttypes_pri_broken+:} false; then :
  15669. $as_echo_n "(cached) " >&6
  15670. else
  15671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15672. /* end confdefs.h. */
  15673. #include <inttypes.h>
  15674. #ifdef PRId32
  15675. char *p = PRId32;
  15676. #endif
  15677. int
  15678. main ()
  15679. {
  15680. ;
  15681. return 0;
  15682. }
  15683. _ACEOF
  15684. if ac_fn_c_try_compile "$LINENO"; then :
  15685. gt_cv_inttypes_pri_broken=no
  15686. else
  15687. gt_cv_inttypes_pri_broken=yes
  15688. fi
  15689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15690. fi
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  15692. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  15693. fi
  15694. if test "$gt_cv_inttypes_pri_broken" = yes; then
  15695. cat >>confdefs.h <<_ACEOF
  15696. #define PRI_MACROS_BROKEN 1
  15697. _ACEOF
  15698. fi
  15699. for ac_header in stdint.h
  15700. do :
  15701. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  15702. if test "x$ac_cv_header_stdint_h" = xyes; then :
  15703. cat >>confdefs.h <<_ACEOF
  15704. #define HAVE_STDINT_H 1
  15705. _ACEOF
  15706. fi
  15707. done
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  15709. $as_echo_n "checking for SIZE_MAX... " >&6; }
  15710. result=
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #include <limits.h>
  15714. #if HAVE_STDINT_H
  15715. #include <stdint.h>
  15716. #endif
  15717. #ifdef SIZE_MAX
  15718. Found it
  15719. #endif
  15720. _ACEOF
  15721. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15722. $EGREP "Found it" >/dev/null 2>&1; then :
  15723. result=yes
  15724. fi
  15725. rm -f conftest*
  15726. if test -z "$result"; then
  15727. if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
  15728. else
  15729. result=?
  15730. fi
  15731. if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
  15732. else
  15733. result=?
  15734. fi
  15735. if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  15736. else
  15737. result=?
  15738. fi
  15739. if test "$fits_in_uint" = 1; then
  15740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15741. /* end confdefs.h. */
  15742. #include <stddef.h>
  15743. extern size_t foo;
  15744. extern unsigned long foo;
  15745. int
  15746. main ()
  15747. {
  15748. ;
  15749. return 0;
  15750. }
  15751. _ACEOF
  15752. if ac_fn_c_try_compile "$LINENO"; then :
  15753. fits_in_uint=0
  15754. fi
  15755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15756. fi
  15757. if test -z "$result"; then
  15758. if test "$fits_in_uint" = 1; then
  15759. result="$res_hi$res_lo"U
  15760. else
  15761. result="$res_hi$res_lo"UL
  15762. fi
  15763. else
  15764. result='~(size_t)0'
  15765. fi
  15766. fi
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  15768. $as_echo "$result" >&6; }
  15769. if test "$result" != yes; then
  15770. cat >>confdefs.h <<_ACEOF
  15771. #define SIZE_MAX $result
  15772. _ACEOF
  15773. fi
  15774. for ac_header in stdint.h
  15775. do :
  15776. ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  15777. if test "x$ac_cv_header_stdint_h" = xyes; then :
  15778. cat >>confdefs.h <<_ACEOF
  15779. #define HAVE_STDINT_H 1
  15780. _ACEOF
  15781. fi
  15782. done
  15783. if test "X$prefix" = "XNONE"; then
  15784. acl_final_prefix="$ac_default_prefix"
  15785. else
  15786. acl_final_prefix="$prefix"
  15787. fi
  15788. if test "X$exec_prefix" = "XNONE"; then
  15789. acl_final_exec_prefix='${prefix}'
  15790. else
  15791. acl_final_exec_prefix="$exec_prefix"
  15792. fi
  15793. acl_save_prefix="$prefix"
  15794. prefix="$acl_final_prefix"
  15795. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  15796. prefix="$acl_save_prefix"
  15797. # Check whether --with-gnu-ld was given.
  15798. if test "${with_gnu_ld+set}" = set; then :
  15799. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  15800. else
  15801. with_gnu_ld=no
  15802. fi
  15803. # Prepare PATH_SEPARATOR.
  15804. # The user is always right.
  15805. if test "${PATH_SEPARATOR+set}" != set; then
  15806. echo "#! /bin/sh" >conf$$.sh
  15807. echo "exit 0" >>conf$$.sh
  15808. chmod +x conf$$.sh
  15809. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15810. PATH_SEPARATOR=';'
  15811. else
  15812. PATH_SEPARATOR=:
  15813. fi
  15814. rm -f conf$$.sh
  15815. fi
  15816. ac_prog=ld
  15817. if test "$GCC" = yes; then
  15818. # Check if gcc -print-prog-name=ld gives a path.
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  15820. $as_echo_n "checking for ld used by GCC... " >&6; }
  15821. case $host in
  15822. *-*-mingw*)
  15823. # gcc leaves a trailing carriage return which upsets mingw
  15824. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15825. *)
  15826. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15827. esac
  15828. case $ac_prog in
  15829. # Accept absolute paths.
  15830. [\\/]* | [A-Za-z]:[\\/]*)
  15831. re_direlt='/[^/][^/]*/\.\./'
  15832. # Canonicalize the path of ld
  15833. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  15834. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  15835. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  15836. done
  15837. test -z "$LD" && LD="$ac_prog"
  15838. ;;
  15839. "")
  15840. # If it fails, then pretend we aren't using GCC.
  15841. ac_prog=ld
  15842. ;;
  15843. *)
  15844. # If it is relative, then search for the first ld in PATH.
  15845. with_gnu_ld=unknown
  15846. ;;
  15847. esac
  15848. elif test "$with_gnu_ld" = yes; then
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15850. $as_echo_n "checking for GNU ld... " >&6; }
  15851. else
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15853. $as_echo_n "checking for non-GNU ld... " >&6; }
  15854. fi
  15855. if ${acl_cv_path_LD+:} false; then :
  15856. $as_echo_n "(cached) " >&6
  15857. else
  15858. if test -z "$LD"; then
  15859. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  15860. for ac_dir in $PATH; do
  15861. test -z "$ac_dir" && ac_dir=.
  15862. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15863. acl_cv_path_LD="$ac_dir/$ac_prog"
  15864. # Check to see if the program is GNU ld. I'd rather use --version,
  15865. # but apparently some GNU ld's only accept -v.
  15866. # Break only if it was the GNU/non-GNU ld that we prefer.
  15867. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  15868. *GNU* | *'with BFD'*)
  15869. test "$with_gnu_ld" != no && break ;;
  15870. *)
  15871. test "$with_gnu_ld" != yes && break ;;
  15872. esac
  15873. fi
  15874. done
  15875. IFS="$ac_save_ifs"
  15876. else
  15877. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  15878. fi
  15879. fi
  15880. LD="$acl_cv_path_LD"
  15881. if test -n "$LD"; then
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15883. $as_echo "$LD" >&6; }
  15884. else
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15886. $as_echo "no" >&6; }
  15887. fi
  15888. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15890. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15891. if ${acl_cv_prog_gnu_ld+:} false; then :
  15892. $as_echo_n "(cached) " >&6
  15893. else
  15894. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  15895. case `$LD -v 2>&1 </dev/null` in
  15896. *GNU* | *'with BFD'*)
  15897. acl_cv_prog_gnu_ld=yes ;;
  15898. *)
  15899. acl_cv_prog_gnu_ld=no ;;
  15900. esac
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  15903. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  15904. with_gnu_ld=$acl_cv_prog_gnu_ld
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  15906. $as_echo_n "checking for shared library run path origin... " >&6; }
  15907. if ${acl_cv_rpath+:} false; then :
  15908. $as_echo_n "(cached) " >&6
  15909. else
  15910. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  15911. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  15912. . ./conftest.sh
  15913. rm -f ./conftest.sh
  15914. acl_cv_rpath=done
  15915. fi
  15916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  15917. $as_echo "$acl_cv_rpath" >&6; }
  15918. wl="$acl_cv_wl"
  15919. libext="$acl_cv_libext"
  15920. shlibext="$acl_cv_shlibext"
  15921. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  15922. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  15923. hardcode_direct="$acl_cv_hardcode_direct"
  15924. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  15925. # Check whether --enable-rpath was given.
  15926. if test "${enable_rpath+set}" = set; then :
  15927. enableval=$enable_rpath; :
  15928. else
  15929. enable_rpath=yes
  15930. fi
  15931. use_additional=yes
  15932. acl_save_prefix="$prefix"
  15933. prefix="$acl_final_prefix"
  15934. acl_save_exec_prefix="$exec_prefix"
  15935. exec_prefix="$acl_final_exec_prefix"
  15936. eval additional_includedir=\"$includedir\"
  15937. eval additional_libdir=\"$libdir\"
  15938. exec_prefix="$acl_save_exec_prefix"
  15939. prefix="$acl_save_prefix"
  15940. # Check whether --with-libiconv-prefix was given.
  15941. if test "${with_libiconv_prefix+set}" = set; then :
  15942. withval=$with_libiconv_prefix;
  15943. if test "X$withval" = "Xno"; then
  15944. use_additional=no
  15945. else
  15946. if test "X$withval" = "X"; then
  15947. acl_save_prefix="$prefix"
  15948. prefix="$acl_final_prefix"
  15949. acl_save_exec_prefix="$exec_prefix"
  15950. exec_prefix="$acl_final_exec_prefix"
  15951. eval additional_includedir=\"$includedir\"
  15952. eval additional_libdir=\"$libdir\"
  15953. exec_prefix="$acl_save_exec_prefix"
  15954. prefix="$acl_save_prefix"
  15955. else
  15956. additional_includedir="$withval/include"
  15957. additional_libdir="$withval/lib"
  15958. fi
  15959. fi
  15960. fi
  15961. LIBICONV=
  15962. LTLIBICONV=
  15963. INCICONV=
  15964. rpathdirs=
  15965. ltrpathdirs=
  15966. names_already_handled=
  15967. names_next_round='iconv '
  15968. while test -n "$names_next_round"; do
  15969. names_this_round="$names_next_round"
  15970. names_next_round=
  15971. for name in $names_this_round; do
  15972. already_handled=
  15973. for n in $names_already_handled; do
  15974. if test "$n" = "$name"; then
  15975. already_handled=yes
  15976. break
  15977. fi
  15978. done
  15979. if test -z "$already_handled"; then
  15980. names_already_handled="$names_already_handled $name"
  15981. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15982. eval value=\"\$HAVE_LIB$uppername\"
  15983. if test -n "$value"; then
  15984. if test "$value" = yes; then
  15985. eval value=\"\$LIB$uppername\"
  15986. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  15987. eval value=\"\$LTLIB$uppername\"
  15988. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  15989. else
  15990. :
  15991. fi
  15992. else
  15993. found_dir=
  15994. found_la=
  15995. found_so=
  15996. found_a=
  15997. if test $use_additional = yes; then
  15998. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  15999. found_dir="$additional_libdir"
  16000. found_so="$additional_libdir/lib$name.$shlibext"
  16001. if test -f "$additional_libdir/lib$name.la"; then
  16002. found_la="$additional_libdir/lib$name.la"
  16003. fi
  16004. else
  16005. if test -f "$additional_libdir/lib$name.$libext"; then
  16006. found_dir="$additional_libdir"
  16007. found_a="$additional_libdir/lib$name.$libext"
  16008. if test -f "$additional_libdir/lib$name.la"; then
  16009. found_la="$additional_libdir/lib$name.la"
  16010. fi
  16011. fi
  16012. fi
  16013. fi
  16014. if test "X$found_dir" = "X"; then
  16015. for x in $LDFLAGS $LTLIBICONV; do
  16016. acl_save_prefix="$prefix"
  16017. prefix="$acl_final_prefix"
  16018. acl_save_exec_prefix="$exec_prefix"
  16019. exec_prefix="$acl_final_exec_prefix"
  16020. eval x=\"$x\"
  16021. exec_prefix="$acl_save_exec_prefix"
  16022. prefix="$acl_save_prefix"
  16023. case "$x" in
  16024. -L*)
  16025. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16026. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  16027. found_dir="$dir"
  16028. found_so="$dir/lib$name.$shlibext"
  16029. if test -f "$dir/lib$name.la"; then
  16030. found_la="$dir/lib$name.la"
  16031. fi
  16032. else
  16033. if test -f "$dir/lib$name.$libext"; then
  16034. found_dir="$dir"
  16035. found_a="$dir/lib$name.$libext"
  16036. if test -f "$dir/lib$name.la"; then
  16037. found_la="$dir/lib$name.la"
  16038. fi
  16039. fi
  16040. fi
  16041. ;;
  16042. esac
  16043. if test "X$found_dir" != "X"; then
  16044. break
  16045. fi
  16046. done
  16047. fi
  16048. if test "X$found_dir" != "X"; then
  16049. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  16050. if test "X$found_so" != "X"; then
  16051. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  16052. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  16053. else
  16054. haveit=
  16055. for x in $ltrpathdirs; do
  16056. if test "X$x" = "X$found_dir"; then
  16057. haveit=yes
  16058. break
  16059. fi
  16060. done
  16061. if test -z "$haveit"; then
  16062. ltrpathdirs="$ltrpathdirs $found_dir"
  16063. fi
  16064. if test "$hardcode_direct" = yes; then
  16065. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  16066. else
  16067. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  16068. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  16069. haveit=
  16070. for x in $rpathdirs; do
  16071. if test "X$x" = "X$found_dir"; then
  16072. haveit=yes
  16073. break
  16074. fi
  16075. done
  16076. if test -z "$haveit"; then
  16077. rpathdirs="$rpathdirs $found_dir"
  16078. fi
  16079. else
  16080. haveit=
  16081. for x in $LDFLAGS $LIBICONV; do
  16082. acl_save_prefix="$prefix"
  16083. prefix="$acl_final_prefix"
  16084. acl_save_exec_prefix="$exec_prefix"
  16085. exec_prefix="$acl_final_exec_prefix"
  16086. eval x=\"$x\"
  16087. exec_prefix="$acl_save_exec_prefix"
  16088. prefix="$acl_save_prefix"
  16089. if test "X$x" = "X-L$found_dir"; then
  16090. haveit=yes
  16091. break
  16092. fi
  16093. done
  16094. if test -z "$haveit"; then
  16095. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  16096. fi
  16097. if test "$hardcode_minus_L" != no; then
  16098. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  16099. else
  16100. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  16101. fi
  16102. fi
  16103. fi
  16104. fi
  16105. else
  16106. if test "X$found_a" != "X"; then
  16107. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  16108. else
  16109. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  16110. fi
  16111. fi
  16112. additional_includedir=
  16113. case "$found_dir" in
  16114. */lib | */lib/)
  16115. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  16116. additional_includedir="$basedir/include"
  16117. ;;
  16118. esac
  16119. if test "X$additional_includedir" != "X"; then
  16120. if test "X$additional_includedir" != "X/usr/include"; then
  16121. haveit=
  16122. if test "X$additional_includedir" = "X/usr/local/include"; then
  16123. if test -n "$GCC"; then
  16124. case $host_os in
  16125. linux*) haveit=yes;;
  16126. esac
  16127. fi
  16128. fi
  16129. if test -z "$haveit"; then
  16130. for x in $CPPFLAGS $INCICONV; do
  16131. acl_save_prefix="$prefix"
  16132. prefix="$acl_final_prefix"
  16133. acl_save_exec_prefix="$exec_prefix"
  16134. exec_prefix="$acl_final_exec_prefix"
  16135. eval x=\"$x\"
  16136. exec_prefix="$acl_save_exec_prefix"
  16137. prefix="$acl_save_prefix"
  16138. if test "X$x" = "X-I$additional_includedir"; then
  16139. haveit=yes
  16140. break
  16141. fi
  16142. done
  16143. if test -z "$haveit"; then
  16144. if test -d "$additional_includedir"; then
  16145. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  16146. fi
  16147. fi
  16148. fi
  16149. fi
  16150. fi
  16151. if test -n "$found_la"; then
  16152. save_libdir="$libdir"
  16153. case "$found_la" in
  16154. */* | *\\*) . "$found_la" ;;
  16155. *) . "./$found_la" ;;
  16156. esac
  16157. libdir="$save_libdir"
  16158. for dep in $dependency_libs; do
  16159. case "$dep" in
  16160. -L*)
  16161. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16162. if test "X$additional_libdir" != "X/usr/lib"; then
  16163. haveit=
  16164. if test "X$additional_libdir" = "X/usr/local/lib"; then
  16165. if test -n "$GCC"; then
  16166. case $host_os in
  16167. linux*) haveit=yes;;
  16168. esac
  16169. fi
  16170. fi
  16171. if test -z "$haveit"; then
  16172. haveit=
  16173. for x in $LDFLAGS $LIBICONV; do
  16174. acl_save_prefix="$prefix"
  16175. prefix="$acl_final_prefix"
  16176. acl_save_exec_prefix="$exec_prefix"
  16177. exec_prefix="$acl_final_exec_prefix"
  16178. eval x=\"$x\"
  16179. exec_prefix="$acl_save_exec_prefix"
  16180. prefix="$acl_save_prefix"
  16181. if test "X$x" = "X-L$additional_libdir"; then
  16182. haveit=yes
  16183. break
  16184. fi
  16185. done
  16186. if test -z "$haveit"; then
  16187. if test -d "$additional_libdir"; then
  16188. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  16189. fi
  16190. fi
  16191. haveit=
  16192. for x in $LDFLAGS $LTLIBICONV; do
  16193. acl_save_prefix="$prefix"
  16194. prefix="$acl_final_prefix"
  16195. acl_save_exec_prefix="$exec_prefix"
  16196. exec_prefix="$acl_final_exec_prefix"
  16197. eval x=\"$x\"
  16198. exec_prefix="$acl_save_exec_prefix"
  16199. prefix="$acl_save_prefix"
  16200. if test "X$x" = "X-L$additional_libdir"; then
  16201. haveit=yes
  16202. break
  16203. fi
  16204. done
  16205. if test -z "$haveit"; then
  16206. if test -d "$additional_libdir"; then
  16207. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  16208. fi
  16209. fi
  16210. fi
  16211. fi
  16212. ;;
  16213. -R*)
  16214. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16215. if test "$enable_rpath" != no; then
  16216. haveit=
  16217. for x in $rpathdirs; do
  16218. if test "X$x" = "X$dir"; then
  16219. haveit=yes
  16220. break
  16221. fi
  16222. done
  16223. if test -z "$haveit"; then
  16224. rpathdirs="$rpathdirs $dir"
  16225. fi
  16226. haveit=
  16227. for x in $ltrpathdirs; do
  16228. if test "X$x" = "X$dir"; then
  16229. haveit=yes
  16230. break
  16231. fi
  16232. done
  16233. if test -z "$haveit"; then
  16234. ltrpathdirs="$ltrpathdirs $dir"
  16235. fi
  16236. fi
  16237. ;;
  16238. -l*)
  16239. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16240. ;;
  16241. *.la)
  16242. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16243. ;;
  16244. *)
  16245. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  16246. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  16247. ;;
  16248. esac
  16249. done
  16250. fi
  16251. else
  16252. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  16253. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  16254. fi
  16255. fi
  16256. fi
  16257. done
  16258. done
  16259. if test "X$rpathdirs" != "X"; then
  16260. if test -n "$hardcode_libdir_separator"; then
  16261. alldirs=
  16262. for found_dir in $rpathdirs; do
  16263. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  16264. done
  16265. acl_save_libdir="$libdir"
  16266. libdir="$alldirs"
  16267. eval flag=\"$hardcode_libdir_flag_spec\"
  16268. libdir="$acl_save_libdir"
  16269. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  16270. else
  16271. for found_dir in $rpathdirs; do
  16272. acl_save_libdir="$libdir"
  16273. libdir="$found_dir"
  16274. eval flag=\"$hardcode_libdir_flag_spec\"
  16275. libdir="$acl_save_libdir"
  16276. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  16277. done
  16278. fi
  16279. fi
  16280. if test "X$ltrpathdirs" != "X"; then
  16281. for found_dir in $ltrpathdirs; do
  16282. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  16283. done
  16284. fi
  16285. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  16286. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  16287. else
  16288. $as_echo "#define ptrdiff_t long" >>confdefs.h
  16289. fi
  16290. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  16291. stdlib.h string.h unistd.h sys/param.h
  16292. do :
  16293. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16294. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16295. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16296. cat >>confdefs.h <<_ACEOF
  16297. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16298. _ACEOF
  16299. fi
  16300. done
  16301. for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
  16302. mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
  16303. strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
  16304. __fsetlocking
  16305. do :
  16306. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16307. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16308. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16309. cat >>confdefs.h <<_ACEOF
  16310. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16311. _ACEOF
  16312. fi
  16313. done
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  16315. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  16316. if ${ac_cv_have_decl__snprintf+:} false; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16320. /* end confdefs.h. */
  16321. #include <stdio.h>
  16322. int
  16323. main ()
  16324. {
  16325. #ifndef _snprintf
  16326. char *p = (char *) _snprintf;
  16327. #endif
  16328. ;
  16329. return 0;
  16330. }
  16331. _ACEOF
  16332. if ac_fn_c_try_compile "$LINENO"; then :
  16333. ac_cv_have_decl__snprintf=yes
  16334. else
  16335. ac_cv_have_decl__snprintf=no
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16338. fi
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  16340. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  16341. if test $ac_cv_have_decl__snprintf = yes; then
  16342. gt_value=1
  16343. else
  16344. gt_value=0
  16345. fi
  16346. cat >>confdefs.h <<_ACEOF
  16347. #define HAVE_DECL__SNPRINTF $gt_value
  16348. _ACEOF
  16349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  16350. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  16351. if ${ac_cv_have_decl__snwprintf+:} false; then :
  16352. $as_echo_n "(cached) " >&6
  16353. else
  16354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16355. /* end confdefs.h. */
  16356. #include <stdio.h>
  16357. int
  16358. main ()
  16359. {
  16360. #ifndef _snwprintf
  16361. char *p = (char *) _snwprintf;
  16362. #endif
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. if ac_fn_c_try_compile "$LINENO"; then :
  16368. ac_cv_have_decl__snwprintf=yes
  16369. else
  16370. ac_cv_have_decl__snwprintf=no
  16371. fi
  16372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16373. fi
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  16375. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16376. if test $ac_cv_have_decl__snwprintf = yes; then
  16377. gt_value=1
  16378. else
  16379. gt_value=0
  16380. fi
  16381. cat >>confdefs.h <<_ACEOF
  16382. #define HAVE_DECL__SNWPRINTF $gt_value
  16383. _ACEOF
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  16385. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  16386. if ${ac_cv_have_decl_feof_unlocked+:} false; then :
  16387. $as_echo_n "(cached) " >&6
  16388. else
  16389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16390. /* end confdefs.h. */
  16391. #include <stdio.h>
  16392. int
  16393. main ()
  16394. {
  16395. #ifndef feof_unlocked
  16396. char *p = (char *) feof_unlocked;
  16397. #endif
  16398. ;
  16399. return 0;
  16400. }
  16401. _ACEOF
  16402. if ac_fn_c_try_compile "$LINENO"; then :
  16403. ac_cv_have_decl_feof_unlocked=yes
  16404. else
  16405. ac_cv_have_decl_feof_unlocked=no
  16406. fi
  16407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16408. fi
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  16410. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  16411. if test $ac_cv_have_decl_feof_unlocked = yes; then
  16412. gt_value=1
  16413. else
  16414. gt_value=0
  16415. fi
  16416. cat >>confdefs.h <<_ACEOF
  16417. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  16418. _ACEOF
  16419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  16420. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  16421. if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
  16422. $as_echo_n "(cached) " >&6
  16423. else
  16424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16425. /* end confdefs.h. */
  16426. #include <stdio.h>
  16427. int
  16428. main ()
  16429. {
  16430. #ifndef fgets_unlocked
  16431. char *p = (char *) fgets_unlocked;
  16432. #endif
  16433. ;
  16434. return 0;
  16435. }
  16436. _ACEOF
  16437. if ac_fn_c_try_compile "$LINENO"; then :
  16438. ac_cv_have_decl_fgets_unlocked=yes
  16439. else
  16440. ac_cv_have_decl_fgets_unlocked=no
  16441. fi
  16442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16443. fi
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  16445. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  16446. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  16447. gt_value=1
  16448. else
  16449. gt_value=0
  16450. fi
  16451. cat >>confdefs.h <<_ACEOF
  16452. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  16453. _ACEOF
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  16455. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16456. if ${ac_cv_have_decl_getc_unlocked+:} false; then :
  16457. $as_echo_n "(cached) " >&6
  16458. else
  16459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16460. /* end confdefs.h. */
  16461. #include <stdio.h>
  16462. int
  16463. main ()
  16464. {
  16465. #ifndef getc_unlocked
  16466. char *p = (char *) getc_unlocked;
  16467. #endif
  16468. ;
  16469. return 0;
  16470. }
  16471. _ACEOF
  16472. if ac_fn_c_try_compile "$LINENO"; then :
  16473. ac_cv_have_decl_getc_unlocked=yes
  16474. else
  16475. ac_cv_have_decl_getc_unlocked=no
  16476. fi
  16477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16478. fi
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  16480. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16481. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16482. gt_value=1
  16483. else
  16484. gt_value=0
  16485. fi
  16486. cat >>confdefs.h <<_ACEOF
  16487. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16488. _ACEOF
  16489. case $gt_cv_func_printf_posix in
  16490. *yes) HAVE_POSIX_PRINTF=1 ;;
  16491. *) HAVE_POSIX_PRINTF=0 ;;
  16492. esac
  16493. if test "$ac_cv_func_asprintf" = yes; then
  16494. HAVE_ASPRINTF=1
  16495. else
  16496. HAVE_ASPRINTF=0
  16497. fi
  16498. if test "$ac_cv_func_snprintf" = yes; then
  16499. HAVE_SNPRINTF=1
  16500. else
  16501. HAVE_SNPRINTF=0
  16502. fi
  16503. if test "$ac_cv_func_wprintf" = yes; then
  16504. HAVE_WPRINTF=1
  16505. else
  16506. HAVE_WPRINTF=0
  16507. fi
  16508. am_save_CPPFLAGS="$CPPFLAGS"
  16509. for element in $INCICONV; do
  16510. haveit=
  16511. for x in $CPPFLAGS; do
  16512. acl_save_prefix="$prefix"
  16513. prefix="$acl_final_prefix"
  16514. acl_save_exec_prefix="$exec_prefix"
  16515. exec_prefix="$acl_final_exec_prefix"
  16516. eval x=\"$x\"
  16517. exec_prefix="$acl_save_exec_prefix"
  16518. prefix="$acl_save_prefix"
  16519. if test "X$x" = "X$element"; then
  16520. haveit=yes
  16521. break
  16522. fi
  16523. done
  16524. if test -z "$haveit"; then
  16525. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16526. fi
  16527. done
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  16529. $as_echo_n "checking for iconv... " >&6; }
  16530. if ${am_cv_func_iconv+:} false; then :
  16531. $as_echo_n "(cached) " >&6
  16532. else
  16533. am_cv_func_iconv="no, consider installing GNU libiconv"
  16534. am_cv_lib_iconv=no
  16535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16536. /* end confdefs.h. */
  16537. #include <stdlib.h>
  16538. #include <iconv.h>
  16539. int
  16540. main ()
  16541. {
  16542. iconv_t cd = iconv_open("","");
  16543. iconv(cd,NULL,NULL,NULL,NULL);
  16544. iconv_close(cd);
  16545. ;
  16546. return 0;
  16547. }
  16548. _ACEOF
  16549. if ac_fn_c_try_link "$LINENO"; then :
  16550. am_cv_func_iconv=yes
  16551. fi
  16552. rm -f core conftest.err conftest.$ac_objext \
  16553. conftest$ac_exeext conftest.$ac_ext
  16554. if test "$am_cv_func_iconv" != yes; then
  16555. am_save_LIBS="$LIBS"
  16556. LIBS="$LIBS $LIBICONV"
  16557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16558. /* end confdefs.h. */
  16559. #include <stdlib.h>
  16560. #include <iconv.h>
  16561. int
  16562. main ()
  16563. {
  16564. iconv_t cd = iconv_open("","");
  16565. iconv(cd,NULL,NULL,NULL,NULL);
  16566. iconv_close(cd);
  16567. ;
  16568. return 0;
  16569. }
  16570. _ACEOF
  16571. if ac_fn_c_try_link "$LINENO"; then :
  16572. am_cv_lib_iconv=yes
  16573. am_cv_func_iconv=yes
  16574. fi
  16575. rm -f core conftest.err conftest.$ac_objext \
  16576. conftest$ac_exeext conftest.$ac_ext
  16577. LIBS="$am_save_LIBS"
  16578. fi
  16579. fi
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  16581. $as_echo "$am_cv_func_iconv" >&6; }
  16582. if test "$am_cv_func_iconv" = yes; then
  16583. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  16584. fi
  16585. if test "$am_cv_lib_iconv" = yes; then
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  16587. $as_echo_n "checking how to link with libiconv... " >&6; }
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  16589. $as_echo "$LIBICONV" >&6; }
  16590. else
  16591. CPPFLAGS="$am_save_CPPFLAGS"
  16592. LIBICONV=
  16593. LTLIBICONV=
  16594. fi
  16595. if test "$am_cv_func_iconv" = yes; then
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  16597. $as_echo_n "checking for iconv declaration... " >&6; }
  16598. if ${am_cv_proto_iconv+:} false; then :
  16599. $as_echo_n "(cached) " >&6
  16600. else
  16601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16602. /* end confdefs.h. */
  16603. #include <stdlib.h>
  16604. #include <iconv.h>
  16605. extern
  16606. #ifdef __cplusplus
  16607. "C"
  16608. #endif
  16609. #if defined(__STDC__) || defined(__cplusplus)
  16610. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  16611. #else
  16612. size_t iconv();
  16613. #endif
  16614. int
  16615. main ()
  16616. {
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. if ac_fn_c_try_compile "$LINENO"; then :
  16622. am_cv_proto_iconv_arg1=""
  16623. else
  16624. am_cv_proto_iconv_arg1="const"
  16625. fi
  16626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16627. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  16628. fi
  16629. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  16630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  16631. }$am_cv_proto_iconv" >&5
  16632. $as_echo "${ac_t:-
  16633. }$am_cv_proto_iconv" >&6; }
  16634. cat >>confdefs.h <<_ACEOF
  16635. #define ICONV_CONST $am_cv_proto_iconv_arg1
  16636. _ACEOF
  16637. fi
  16638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  16639. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16640. if ${am_cv_langinfo_codeset+:} false; then :
  16641. $as_echo_n "(cached) " >&6
  16642. else
  16643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16644. /* end confdefs.h. */
  16645. #include <langinfo.h>
  16646. int
  16647. main ()
  16648. {
  16649. char* cs = nl_langinfo(CODESET);
  16650. ;
  16651. return 0;
  16652. }
  16653. _ACEOF
  16654. if ac_fn_c_try_link "$LINENO"; then :
  16655. am_cv_langinfo_codeset=yes
  16656. else
  16657. am_cv_langinfo_codeset=no
  16658. fi
  16659. rm -f core conftest.err conftest.$ac_objext \
  16660. conftest$ac_exeext conftest.$ac_ext
  16661. fi
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  16663. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16664. if test $am_cv_langinfo_codeset = yes; then
  16665. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  16666. fi
  16667. if test $ac_cv_header_locale_h = yes; then
  16668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  16669. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16670. if ${am_cv_val_LC_MESSAGES+:} false; then :
  16671. $as_echo_n "(cached) " >&6
  16672. else
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. #include <locale.h>
  16676. int
  16677. main ()
  16678. {
  16679. return LC_MESSAGES
  16680. ;
  16681. return 0;
  16682. }
  16683. _ACEOF
  16684. if ac_fn_c_try_link "$LINENO"; then :
  16685. am_cv_val_LC_MESSAGES=yes
  16686. else
  16687. am_cv_val_LC_MESSAGES=no
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext \
  16690. conftest$ac_exeext conftest.$ac_ext
  16691. fi
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  16693. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  16694. if test $am_cv_val_LC_MESSAGES = yes; then
  16695. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  16696. fi
  16697. fi
  16698. for ac_prog in bison
  16699. do
  16700. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16701. set dummy $ac_prog; ac_word=$2
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16703. $as_echo_n "checking for $ac_word... " >&6; }
  16704. if ${ac_cv_prog_INTLBISON+:} false; then :
  16705. $as_echo_n "(cached) " >&6
  16706. else
  16707. if test -n "$INTLBISON"; then
  16708. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  16709. else
  16710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16711. for as_dir in $PATH
  16712. do
  16713. IFS=$as_save_IFS
  16714. test -z "$as_dir" && as_dir=.
  16715. for ac_exec_ext in '' $ac_executable_extensions; do
  16716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16717. ac_cv_prog_INTLBISON="$ac_prog"
  16718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16719. break 2
  16720. fi
  16721. done
  16722. done
  16723. IFS=$as_save_IFS
  16724. fi
  16725. fi
  16726. INTLBISON=$ac_cv_prog_INTLBISON
  16727. if test -n "$INTLBISON"; then
  16728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  16729. $as_echo "$INTLBISON" >&6; }
  16730. else
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16732. $as_echo "no" >&6; }
  16733. fi
  16734. test -n "$INTLBISON" && break
  16735. done
  16736. if test -z "$INTLBISON"; then
  16737. ac_verc_fail=yes
  16738. else
  16739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  16740. $as_echo_n "checking version of bison... " >&6; }
  16741. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  16742. case $ac_prog_version in
  16743. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  16744. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  16745. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  16746. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  16747. esac
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  16749. $as_echo "$ac_prog_version" >&6; }
  16750. fi
  16751. if test $ac_verc_fail = yes; then
  16752. INTLBISON=:
  16753. fi
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  16755. $as_echo_n "checking whether NLS is requested... " >&6; }
  16756. # Check whether --enable-nls was given.
  16757. if test "${enable_nls+set}" = set; then :
  16758. enableval=$enable_nls; USE_NLS=$enableval
  16759. else
  16760. USE_NLS=yes
  16761. fi
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  16763. $as_echo "$USE_NLS" >&6; }
  16764. BUILD_INCLUDED_LIBINTL=no
  16765. USE_INCLUDED_LIBINTL=no
  16766. LIBINTL=
  16767. LTLIBINTL=
  16768. POSUB=
  16769. if test "$USE_NLS" = "yes"; then
  16770. gt_use_preinstalled_gnugettext=no
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  16772. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16773. # Check whether --with-included-gettext was given.
  16774. if test "${with_included_gettext+set}" = set; then :
  16775. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16776. else
  16777. nls_cv_force_use_gnu_gettext=no
  16778. fi
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  16780. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16781. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16782. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  16784. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16785. if ${gt_cv_func_gnugettext1_libc+:} false; then :
  16786. $as_echo_n "(cached) " >&6
  16787. else
  16788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16789. /* end confdefs.h. */
  16790. #include <libintl.h>
  16791. extern int _nl_msg_cat_cntr;
  16792. extern int *_nl_domain_bindings;
  16793. int
  16794. main ()
  16795. {
  16796. bindtextdomain ("", "");
  16797. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  16798. ;
  16799. return 0;
  16800. }
  16801. _ACEOF
  16802. if ac_fn_c_try_link "$LINENO"; then :
  16803. gt_cv_func_gnugettext1_libc=yes
  16804. else
  16805. gt_cv_func_gnugettext1_libc=no
  16806. fi
  16807. rm -f core conftest.err conftest.$ac_objext \
  16808. conftest$ac_exeext conftest.$ac_ext
  16809. fi
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
  16811. $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
  16812. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  16813. use_additional=yes
  16814. acl_save_prefix="$prefix"
  16815. prefix="$acl_final_prefix"
  16816. acl_save_exec_prefix="$exec_prefix"
  16817. exec_prefix="$acl_final_exec_prefix"
  16818. eval additional_includedir=\"$includedir\"
  16819. eval additional_libdir=\"$libdir\"
  16820. exec_prefix="$acl_save_exec_prefix"
  16821. prefix="$acl_save_prefix"
  16822. # Check whether --with-libintl-prefix was given.
  16823. if test "${with_libintl_prefix+set}" = set; then :
  16824. withval=$with_libintl_prefix;
  16825. if test "X$withval" = "Xno"; then
  16826. use_additional=no
  16827. else
  16828. if test "X$withval" = "X"; then
  16829. acl_save_prefix="$prefix"
  16830. prefix="$acl_final_prefix"
  16831. acl_save_exec_prefix="$exec_prefix"
  16832. exec_prefix="$acl_final_exec_prefix"
  16833. eval additional_includedir=\"$includedir\"
  16834. eval additional_libdir=\"$libdir\"
  16835. exec_prefix="$acl_save_exec_prefix"
  16836. prefix="$acl_save_prefix"
  16837. else
  16838. additional_includedir="$withval/include"
  16839. additional_libdir="$withval/lib"
  16840. fi
  16841. fi
  16842. fi
  16843. LIBINTL=
  16844. LTLIBINTL=
  16845. INCINTL=
  16846. rpathdirs=
  16847. ltrpathdirs=
  16848. names_already_handled=
  16849. names_next_round='intl '
  16850. while test -n "$names_next_round"; do
  16851. names_this_round="$names_next_round"
  16852. names_next_round=
  16853. for name in $names_this_round; do
  16854. already_handled=
  16855. for n in $names_already_handled; do
  16856. if test "$n" = "$name"; then
  16857. already_handled=yes
  16858. break
  16859. fi
  16860. done
  16861. if test -z "$already_handled"; then
  16862. names_already_handled="$names_already_handled $name"
  16863. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16864. eval value=\"\$HAVE_LIB$uppername\"
  16865. if test -n "$value"; then
  16866. if test "$value" = yes; then
  16867. eval value=\"\$LIB$uppername\"
  16868. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16869. eval value=\"\$LTLIB$uppername\"
  16870. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16871. else
  16872. :
  16873. fi
  16874. else
  16875. found_dir=
  16876. found_la=
  16877. found_so=
  16878. found_a=
  16879. if test $use_additional = yes; then
  16880. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  16881. found_dir="$additional_libdir"
  16882. found_so="$additional_libdir/lib$name.$shlibext"
  16883. if test -f "$additional_libdir/lib$name.la"; then
  16884. found_la="$additional_libdir/lib$name.la"
  16885. fi
  16886. else
  16887. if test -f "$additional_libdir/lib$name.$libext"; then
  16888. found_dir="$additional_libdir"
  16889. found_a="$additional_libdir/lib$name.$libext"
  16890. if test -f "$additional_libdir/lib$name.la"; then
  16891. found_la="$additional_libdir/lib$name.la"
  16892. fi
  16893. fi
  16894. fi
  16895. fi
  16896. if test "X$found_dir" = "X"; then
  16897. for x in $LDFLAGS $LTLIBINTL; do
  16898. acl_save_prefix="$prefix"
  16899. prefix="$acl_final_prefix"
  16900. acl_save_exec_prefix="$exec_prefix"
  16901. exec_prefix="$acl_final_exec_prefix"
  16902. eval x=\"$x\"
  16903. exec_prefix="$acl_save_exec_prefix"
  16904. prefix="$acl_save_prefix"
  16905. case "$x" in
  16906. -L*)
  16907. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16908. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  16909. found_dir="$dir"
  16910. found_so="$dir/lib$name.$shlibext"
  16911. if test -f "$dir/lib$name.la"; then
  16912. found_la="$dir/lib$name.la"
  16913. fi
  16914. else
  16915. if test -f "$dir/lib$name.$libext"; then
  16916. found_dir="$dir"
  16917. found_a="$dir/lib$name.$libext"
  16918. if test -f "$dir/lib$name.la"; then
  16919. found_la="$dir/lib$name.la"
  16920. fi
  16921. fi
  16922. fi
  16923. ;;
  16924. esac
  16925. if test "X$found_dir" != "X"; then
  16926. break
  16927. fi
  16928. done
  16929. fi
  16930. if test "X$found_dir" != "X"; then
  16931. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16932. if test "X$found_so" != "X"; then
  16933. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  16934. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16935. else
  16936. haveit=
  16937. for x in $ltrpathdirs; do
  16938. if test "X$x" = "X$found_dir"; then
  16939. haveit=yes
  16940. break
  16941. fi
  16942. done
  16943. if test -z "$haveit"; then
  16944. ltrpathdirs="$ltrpathdirs $found_dir"
  16945. fi
  16946. if test "$hardcode_direct" = yes; then
  16947. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16948. else
  16949. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  16950. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16951. haveit=
  16952. for x in $rpathdirs; do
  16953. if test "X$x" = "X$found_dir"; then
  16954. haveit=yes
  16955. break
  16956. fi
  16957. done
  16958. if test -z "$haveit"; then
  16959. rpathdirs="$rpathdirs $found_dir"
  16960. fi
  16961. else
  16962. haveit=
  16963. for x in $LDFLAGS $LIBINTL; do
  16964. acl_save_prefix="$prefix"
  16965. prefix="$acl_final_prefix"
  16966. acl_save_exec_prefix="$exec_prefix"
  16967. exec_prefix="$acl_final_exec_prefix"
  16968. eval x=\"$x\"
  16969. exec_prefix="$acl_save_exec_prefix"
  16970. prefix="$acl_save_prefix"
  16971. if test "X$x" = "X-L$found_dir"; then
  16972. haveit=yes
  16973. break
  16974. fi
  16975. done
  16976. if test -z "$haveit"; then
  16977. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16978. fi
  16979. if test "$hardcode_minus_L" != no; then
  16980. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16981. else
  16982. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16983. fi
  16984. fi
  16985. fi
  16986. fi
  16987. else
  16988. if test "X$found_a" != "X"; then
  16989. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  16990. else
  16991. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  16992. fi
  16993. fi
  16994. additional_includedir=
  16995. case "$found_dir" in
  16996. */lib | */lib/)
  16997. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  16998. additional_includedir="$basedir/include"
  16999. ;;
  17000. esac
  17001. if test "X$additional_includedir" != "X"; then
  17002. if test "X$additional_includedir" != "X/usr/include"; then
  17003. haveit=
  17004. if test "X$additional_includedir" = "X/usr/local/include"; then
  17005. if test -n "$GCC"; then
  17006. case $host_os in
  17007. linux*) haveit=yes;;
  17008. esac
  17009. fi
  17010. fi
  17011. if test -z "$haveit"; then
  17012. for x in $CPPFLAGS $INCINTL; do
  17013. acl_save_prefix="$prefix"
  17014. prefix="$acl_final_prefix"
  17015. acl_save_exec_prefix="$exec_prefix"
  17016. exec_prefix="$acl_final_exec_prefix"
  17017. eval x=\"$x\"
  17018. exec_prefix="$acl_save_exec_prefix"
  17019. prefix="$acl_save_prefix"
  17020. if test "X$x" = "X-I$additional_includedir"; then
  17021. haveit=yes
  17022. break
  17023. fi
  17024. done
  17025. if test -z "$haveit"; then
  17026. if test -d "$additional_includedir"; then
  17027. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  17028. fi
  17029. fi
  17030. fi
  17031. fi
  17032. fi
  17033. if test -n "$found_la"; then
  17034. save_libdir="$libdir"
  17035. case "$found_la" in
  17036. */* | *\\*) . "$found_la" ;;
  17037. *) . "./$found_la" ;;
  17038. esac
  17039. libdir="$save_libdir"
  17040. for dep in $dependency_libs; do
  17041. case "$dep" in
  17042. -L*)
  17043. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17044. if test "X$additional_libdir" != "X/usr/lib"; then
  17045. haveit=
  17046. if test "X$additional_libdir" = "X/usr/local/lib"; then
  17047. if test -n "$GCC"; then
  17048. case $host_os in
  17049. linux*) haveit=yes;;
  17050. esac
  17051. fi
  17052. fi
  17053. if test -z "$haveit"; then
  17054. haveit=
  17055. for x in $LDFLAGS $LIBINTL; do
  17056. acl_save_prefix="$prefix"
  17057. prefix="$acl_final_prefix"
  17058. acl_save_exec_prefix="$exec_prefix"
  17059. exec_prefix="$acl_final_exec_prefix"
  17060. eval x=\"$x\"
  17061. exec_prefix="$acl_save_exec_prefix"
  17062. prefix="$acl_save_prefix"
  17063. if test "X$x" = "X-L$additional_libdir"; then
  17064. haveit=yes
  17065. break
  17066. fi
  17067. done
  17068. if test -z "$haveit"; then
  17069. if test -d "$additional_libdir"; then
  17070. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  17071. fi
  17072. fi
  17073. haveit=
  17074. for x in $LDFLAGS $LTLIBINTL; do
  17075. acl_save_prefix="$prefix"
  17076. prefix="$acl_final_prefix"
  17077. acl_save_exec_prefix="$exec_prefix"
  17078. exec_prefix="$acl_final_exec_prefix"
  17079. eval x=\"$x\"
  17080. exec_prefix="$acl_save_exec_prefix"
  17081. prefix="$acl_save_prefix"
  17082. if test "X$x" = "X-L$additional_libdir"; then
  17083. haveit=yes
  17084. break
  17085. fi
  17086. done
  17087. if test -z "$haveit"; then
  17088. if test -d "$additional_libdir"; then
  17089. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  17090. fi
  17091. fi
  17092. fi
  17093. fi
  17094. ;;
  17095. -R*)
  17096. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17097. if test "$enable_rpath" != no; then
  17098. haveit=
  17099. for x in $rpathdirs; do
  17100. if test "X$x" = "X$dir"; then
  17101. haveit=yes
  17102. break
  17103. fi
  17104. done
  17105. if test -z "$haveit"; then
  17106. rpathdirs="$rpathdirs $dir"
  17107. fi
  17108. haveit=
  17109. for x in $ltrpathdirs; do
  17110. if test "X$x" = "X$dir"; then
  17111. haveit=yes
  17112. break
  17113. fi
  17114. done
  17115. if test -z "$haveit"; then
  17116. ltrpathdirs="$ltrpathdirs $dir"
  17117. fi
  17118. fi
  17119. ;;
  17120. -l*)
  17121. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17122. ;;
  17123. *.la)
  17124. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17125. ;;
  17126. *)
  17127. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  17128. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  17129. ;;
  17130. esac
  17131. done
  17132. fi
  17133. else
  17134. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17135. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  17136. fi
  17137. fi
  17138. fi
  17139. done
  17140. done
  17141. if test "X$rpathdirs" != "X"; then
  17142. if test -n "$hardcode_libdir_separator"; then
  17143. alldirs=
  17144. for found_dir in $rpathdirs; do
  17145. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  17146. done
  17147. acl_save_libdir="$libdir"
  17148. libdir="$alldirs"
  17149. eval flag=\"$hardcode_libdir_flag_spec\"
  17150. libdir="$acl_save_libdir"
  17151. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17152. else
  17153. for found_dir in $rpathdirs; do
  17154. acl_save_libdir="$libdir"
  17155. libdir="$found_dir"
  17156. eval flag=\"$hardcode_libdir_flag_spec\"
  17157. libdir="$acl_save_libdir"
  17158. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17159. done
  17160. fi
  17161. fi
  17162. if test "X$ltrpathdirs" != "X"; then
  17163. for found_dir in $ltrpathdirs; do
  17164. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  17165. done
  17166. fi
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  17168. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  17169. if ${gt_cv_func_gnugettext1_libintl+:} false; then :
  17170. $as_echo_n "(cached) " >&6
  17171. else
  17172. gt_save_CPPFLAGS="$CPPFLAGS"
  17173. CPPFLAGS="$CPPFLAGS $INCINTL"
  17174. gt_save_LIBS="$LIBS"
  17175. LIBS="$LIBS $LIBINTL"
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. #include <libintl.h>
  17179. extern int _nl_msg_cat_cntr;
  17180. extern
  17181. #ifdef __cplusplus
  17182. "C"
  17183. #endif
  17184. const char *_nl_expand_alias ();
  17185. int
  17186. main ()
  17187. {
  17188. bindtextdomain ("", "");
  17189. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  17190. ;
  17191. return 0;
  17192. }
  17193. _ACEOF
  17194. if ac_fn_c_try_link "$LINENO"; then :
  17195. gt_cv_func_gnugettext1_libintl=yes
  17196. else
  17197. gt_cv_func_gnugettext1_libintl=no
  17198. fi
  17199. rm -f core conftest.err conftest.$ac_objext \
  17200. conftest$ac_exeext conftest.$ac_ext
  17201. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  17202. LIBS="$LIBS $LIBICONV"
  17203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17204. /* end confdefs.h. */
  17205. #include <libintl.h>
  17206. extern int _nl_msg_cat_cntr;
  17207. extern
  17208. #ifdef __cplusplus
  17209. "C"
  17210. #endif
  17211. const char *_nl_expand_alias ();
  17212. int
  17213. main ()
  17214. {
  17215. bindtextdomain ("", "");
  17216. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  17217. ;
  17218. return 0;
  17219. }
  17220. _ACEOF
  17221. if ac_fn_c_try_link "$LINENO"; then :
  17222. LIBINTL="$LIBINTL $LIBICONV"
  17223. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17224. gt_cv_func_gnugettext1_libintl=yes
  17225. fi
  17226. rm -f core conftest.err conftest.$ac_objext \
  17227. conftest$ac_exeext conftest.$ac_ext
  17228. fi
  17229. CPPFLAGS="$gt_save_CPPFLAGS"
  17230. LIBS="$gt_save_LIBS"
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
  17233. $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
  17234. fi
  17235. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  17236. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  17237. && test "$PACKAGE" != gettext-runtime \
  17238. && test "$PACKAGE" != gettext-tools; }; then
  17239. gt_use_preinstalled_gnugettext=yes
  17240. else
  17241. LIBINTL=
  17242. LTLIBINTL=
  17243. INCINTL=
  17244. fi
  17245. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17246. nls_cv_use_gnu_gettext=yes
  17247. fi
  17248. fi
  17249. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17250. BUILD_INCLUDED_LIBINTL=yes
  17251. USE_INCLUDED_LIBINTL=yes
  17252. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  17253. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  17254. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17255. fi
  17256. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17257. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17258. CATOBJEXT=.gmo
  17259. fi
  17260. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17261. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17262. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  17263. else
  17264. USE_NLS=no
  17265. fi
  17266. fi
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  17268. $as_echo_n "checking whether to use NLS... " >&6; }
  17269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  17270. $as_echo "$USE_NLS" >&6; }
  17271. if test "$USE_NLS" = "yes"; then
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  17273. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17274. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17275. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  17276. gt_source="external libintl"
  17277. else
  17278. gt_source="libc"
  17279. fi
  17280. else
  17281. gt_source="included intl directory"
  17282. fi
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  17284. $as_echo "$gt_source" >&6; }
  17285. fi
  17286. if test "$USE_NLS" = "yes"; then
  17287. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17288. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  17289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  17290. $as_echo_n "checking how to link with libintl... " >&6; }
  17291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  17292. $as_echo "$LIBINTL" >&6; }
  17293. for element in $INCINTL; do
  17294. haveit=
  17295. for x in $CPPFLAGS; do
  17296. acl_save_prefix="$prefix"
  17297. prefix="$acl_final_prefix"
  17298. acl_save_exec_prefix="$exec_prefix"
  17299. exec_prefix="$acl_final_exec_prefix"
  17300. eval x=\"$x\"
  17301. exec_prefix="$acl_save_exec_prefix"
  17302. prefix="$acl_save_prefix"
  17303. if test "X$x" = "X$element"; then
  17304. haveit=yes
  17305. break
  17306. fi
  17307. done
  17308. if test -z "$haveit"; then
  17309. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17310. fi
  17311. done
  17312. fi
  17313. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  17314. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  17315. fi
  17316. POSUB=po
  17317. fi
  17318. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17319. BUILD_INCLUDED_LIBINTL=yes
  17320. fi
  17321. nls_cv_header_intl=
  17322. nls_cv_header_libgt=
  17323. DATADIRNAME=share
  17324. INSTOBJEXT=.mo
  17325. GENCAT=gencat
  17326. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17327. INTLOBJS="\$(GETTOBJS)"
  17328. fi
  17329. INTL_LIBTOOL_SUFFIX_PREFIX=
  17330. INTLLIBS="$LIBINTL"
  17331. CXXFLAGS="$CXXFLAGS -Wall"
  17332. # Add ./configure --enable-logdebug
  17333. # Check whether --enable-logdebug was given.
  17334. if test "${enable_logdebug+set}" = set; then :
  17335. enableval=$enable_logdebug; logdebug=$enable_logdebug
  17336. else
  17337. logdebug=no
  17338. fi
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log debug info to a file" >&5
  17340. $as_echo_n "checking whether to log debug info to a file... " >&6; }
  17341. if test "x$logdebug" = xyes; then
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17343. $as_echo "yes" >&6; }
  17344. $as_echo "#define DEBUG /**/" >>confdefs.h
  17345. else
  17346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17347. $as_echo "no" >&6; }
  17348. fi
  17349. # Add ./configure --enable-desktopfile
  17350. # Check whether --enable-desktopfile was given.
  17351. if test "${enable_desktopfile+set}" = set; then :
  17352. enableval=$enable_desktopfile; desktopfile=$enable_desktopfile
  17353. else
  17354. desktopfile=yes
  17355. fi
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install .desktop/menu entry" >&5
  17357. $as_echo_n "checking whether to install .desktop/menu entry... " >&6; }
  17358. if test "x$desktopfile" = xyes; then
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17360. $as_echo "yes" >&6; }
  17361. if true; then
  17362. DESKTOPFILE_TRUE=
  17363. DESKTOPFILE_FALSE='#'
  17364. else
  17365. DESKTOPFILE_TRUE='#'
  17366. DESKTOPFILE_FALSE=
  17367. fi
  17368. else
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17370. $as_echo "no" >&6; }
  17371. if false; then
  17372. DESKTOPFILE_TRUE=
  17373. DESKTOPFILE_FALSE='#'
  17374. else
  17375. DESKTOPFILE_TRUE='#'
  17376. DESKTOPFILE_FALSE=
  17377. fi
  17378. fi
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
  17380. $as_echo_n "checking for some Win32 platform... " >&6; }
  17381. case "$host" in
  17382. *-*-mingw*|*-*-cygwin*)
  17383. platform_win32=yes
  17384. ;;
  17385. *)
  17386. platform_win32=no
  17387. ;;
  17388. esac
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
  17390. $as_echo "$platform_win32" >&6; }
  17391. if test "$platform_win32" = "yes"; then
  17392. PLATFORM_WIN32_TRUE=
  17393. PLATFORM_WIN32_FALSE='#'
  17394. else
  17395. PLATFORM_WIN32_TRUE='#'
  17396. PLATFORM_WIN32_FALSE=
  17397. fi
  17398. GTKMM_VERSION=`$PKGCONFIG --modversion gtkmm-2.4`
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gtkmm" >&5
  17400. $as_echo_n "checking version of gtkmm... " >&6; }
  17401. GTKMM_VERSION_TO_NUM=`echo $GTKMM_VERSION | sed 's/^\([0-9]*\)\.\([0-9]*\).*$/\1\2/g'`
  17402. if test ${GTKMM_VERSION_TO_NUM} -ge 210; then
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKMM_VERSION, enabling status icon" >&5
  17404. $as_echo "$GTKMM_VERSION, enabling status icon" >&6; }
  17405. $as_echo "#define HAVE_STATUS_ICON 1" >>confdefs.h
  17406. else
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKMM_VERSION, disabling status icon" >&5
  17408. $as_echo "$GTKMM_VERSION, disabling status icon" >&6; }
  17409. fi
  17410. ac_config_files="$ac_config_files lostirc.spec Makefile src/Makefile src/libirc/Makefile src/gtkmm/Makefile po/Makefile.in"
  17411. cat >confcache <<\_ACEOF
  17412. # This file is a shell script that caches the results of configure
  17413. # tests run on this system so they can be shared between configure
  17414. # scripts and configure runs, see configure's option --config-cache.
  17415. # It is not useful on other systems. If it contains results you don't
  17416. # want to keep, you may remove or edit it.
  17417. #
  17418. # config.status only pays attention to the cache file if you give it
  17419. # the --recheck option to rerun configure.
  17420. #
  17421. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17422. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17423. # following values.
  17424. _ACEOF
  17425. # The following way of writing the cache mishandles newlines in values,
  17426. # but we know of no workaround that is simple, portable, and efficient.
  17427. # So, we kill variables containing newlines.
  17428. # Ultrix sh set writes to stderr and can't be redirected directly,
  17429. # and sets the high bit in the cache file unless we assign to the vars.
  17430. (
  17431. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17432. eval ac_val=\$$ac_var
  17433. case $ac_val in #(
  17434. *${as_nl}*)
  17435. case $ac_var in #(
  17436. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17437. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17438. esac
  17439. case $ac_var in #(
  17440. _ | IFS | as_nl) ;; #(
  17441. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17442. *) { eval $ac_var=; unset $ac_var;} ;;
  17443. esac ;;
  17444. esac
  17445. done
  17446. (set) 2>&1 |
  17447. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17448. *${as_nl}ac_space=\ *)
  17449. # `set' does not quote correctly, so add quotes: double-quote
  17450. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17451. sed -n \
  17452. "s/'/'\\\\''/g;
  17453. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17454. ;; #(
  17455. *)
  17456. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17457. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17458. ;;
  17459. esac |
  17460. sort
  17461. ) |
  17462. sed '
  17463. /^ac_cv_env_/b end
  17464. t clear
  17465. :clear
  17466. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17467. t end
  17468. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17469. :end' >>confcache
  17470. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17471. if test -w "$cache_file"; then
  17472. if test "x$cache_file" != "x/dev/null"; then
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17474. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17475. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17476. cat confcache >"$cache_file"
  17477. else
  17478. case $cache_file in #(
  17479. */* | ?:*)
  17480. mv -f confcache "$cache_file"$$ &&
  17481. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17482. *)
  17483. mv -f confcache "$cache_file" ;;
  17484. esac
  17485. fi
  17486. fi
  17487. else
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17489. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17490. fi
  17491. fi
  17492. rm -f confcache
  17493. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17494. # Let make expand exec_prefix.
  17495. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17496. DEFS=-DHAVE_CONFIG_H
  17497. ac_libobjs=
  17498. ac_ltlibobjs=
  17499. U=
  17500. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17501. # 1. Remove the extension, and $U if already installed.
  17502. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17503. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17504. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17505. # will be set to the directory where LIBOBJS objects are built.
  17506. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17507. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17508. done
  17509. LIBOBJS=$ac_libobjs
  17510. LTLIBOBJS=$ac_ltlibobjs
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17512. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17513. if test -n "$am_sleep_pid"; then
  17514. # Hide warnings about reused PIDs.
  17515. wait $am_sleep_pid 2>/dev/null
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17518. $as_echo "done" >&6; }
  17519. if test -n "$EXEEXT"; then
  17520. am__EXEEXT_TRUE=
  17521. am__EXEEXT_FALSE='#'
  17522. else
  17523. am__EXEEXT_TRUE='#'
  17524. am__EXEEXT_FALSE=
  17525. fi
  17526. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17527. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17528. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17529. fi
  17530. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17531. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17532. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17533. fi
  17534. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17535. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17536. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17537. fi
  17538. if test -z "${DESKTOPFILE_TRUE}" && test -z "${DESKTOPFILE_FALSE}"; then
  17539. as_fn_error $? "conditional \"DESKTOPFILE\" was never defined.
  17540. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17541. fi
  17542. if test -z "${DESKTOPFILE_TRUE}" && test -z "${DESKTOPFILE_FALSE}"; then
  17543. as_fn_error $? "conditional \"DESKTOPFILE\" was never defined.
  17544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17545. fi
  17546. if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
  17547. as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
  17548. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17549. fi
  17550. : "${CONFIG_STATUS=./config.status}"
  17551. ac_write_fail=0
  17552. ac_clean_files_save=$ac_clean_files
  17553. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17554. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17555. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17556. as_write_fail=0
  17557. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17558. #! $SHELL
  17559. # Generated by $as_me.
  17560. # Run this file to recreate the current configuration.
  17561. # Compiler output produced by configure, useful for debugging
  17562. # configure, is in config.log if it exists.
  17563. debug=false
  17564. ac_cs_recheck=false
  17565. ac_cs_silent=false
  17566. SHELL=\${CONFIG_SHELL-$SHELL}
  17567. export SHELL
  17568. _ASEOF
  17569. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17570. ## -------------------- ##
  17571. ## M4sh Initialization. ##
  17572. ## -------------------- ##
  17573. # Be more Bourne compatible
  17574. DUALCASE=1; export DUALCASE # for MKS sh
  17575. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17576. emulate sh
  17577. NULLCMD=:
  17578. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17579. # is contrary to our usage. Disable this feature.
  17580. alias -g '${1+"$@"}'='"$@"'
  17581. setopt NO_GLOB_SUBST
  17582. else
  17583. case `(set -o) 2>/dev/null` in #(
  17584. *posix*) :
  17585. set -o posix ;; #(
  17586. *) :
  17587. ;;
  17588. esac
  17589. fi
  17590. as_nl='
  17591. '
  17592. export as_nl
  17593. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17594. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17595. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17596. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17597. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17598. # but without wasting forks for bash or zsh.
  17599. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17600. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17601. as_echo='print -r --'
  17602. as_echo_n='print -rn --'
  17603. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17604. as_echo='printf %s\n'
  17605. as_echo_n='printf %s'
  17606. else
  17607. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17608. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17609. as_echo_n='/usr/ucb/echo -n'
  17610. else
  17611. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17612. as_echo_n_body='eval
  17613. arg=$1;
  17614. case $arg in #(
  17615. *"$as_nl"*)
  17616. expr "X$arg" : "X\\(.*\\)$as_nl";
  17617. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17618. esac;
  17619. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17620. '
  17621. export as_echo_n_body
  17622. as_echo_n='sh -c $as_echo_n_body as_echo'
  17623. fi
  17624. export as_echo_body
  17625. as_echo='sh -c $as_echo_body as_echo'
  17626. fi
  17627. # The user is always right.
  17628. if test "${PATH_SEPARATOR+set}" != set; then
  17629. PATH_SEPARATOR=:
  17630. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17631. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17632. PATH_SEPARATOR=';'
  17633. }
  17634. fi
  17635. # IFS
  17636. # We need space, tab and new line, in precisely that order. Quoting is
  17637. # there to prevent editors from complaining about space-tab.
  17638. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17639. # splitting by setting IFS to empty value.)
  17640. IFS=" "" $as_nl"
  17641. # Find who we are. Look in the path if we contain no directory separator.
  17642. as_myself=
  17643. case $0 in #((
  17644. *[\\/]* ) as_myself=$0 ;;
  17645. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17646. for as_dir in $PATH
  17647. do
  17648. IFS=$as_save_IFS
  17649. test -z "$as_dir" && as_dir=.
  17650. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17651. done
  17652. IFS=$as_save_IFS
  17653. ;;
  17654. esac
  17655. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17656. # in which case we are not to be found in the path.
  17657. if test "x$as_myself" = x; then
  17658. as_myself=$0
  17659. fi
  17660. if test ! -f "$as_myself"; then
  17661. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17662. exit 1
  17663. fi
  17664. # Unset variables that we do not need and which cause bugs (e.g. in
  17665. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17666. # suppresses any "Segmentation fault" message there. '((' could
  17667. # trigger a bug in pdksh 5.2.14.
  17668. for as_var in BASH_ENV ENV MAIL MAILPATH
  17669. do eval test x\${$as_var+set} = xset \
  17670. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17671. done
  17672. PS1='$ '
  17673. PS2='> '
  17674. PS4='+ '
  17675. # NLS nuisances.
  17676. LC_ALL=C
  17677. export LC_ALL
  17678. LANGUAGE=C
  17679. export LANGUAGE
  17680. # CDPATH.
  17681. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17682. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17683. # ----------------------------------------
  17684. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17685. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17686. # script with STATUS, using 1 if that was 0.
  17687. as_fn_error ()
  17688. {
  17689. as_status=$1; test $as_status -eq 0 && as_status=1
  17690. if test "$4"; then
  17691. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17692. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17693. fi
  17694. $as_echo "$as_me: error: $2" >&2
  17695. as_fn_exit $as_status
  17696. } # as_fn_error
  17697. # as_fn_set_status STATUS
  17698. # -----------------------
  17699. # Set $? to STATUS, without forking.
  17700. as_fn_set_status ()
  17701. {
  17702. return $1
  17703. } # as_fn_set_status
  17704. # as_fn_exit STATUS
  17705. # -----------------
  17706. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17707. as_fn_exit ()
  17708. {
  17709. set +e
  17710. as_fn_set_status $1
  17711. exit $1
  17712. } # as_fn_exit
  17713. # as_fn_unset VAR
  17714. # ---------------
  17715. # Portably unset VAR.
  17716. as_fn_unset ()
  17717. {
  17718. { eval $1=; unset $1;}
  17719. }
  17720. as_unset=as_fn_unset
  17721. # as_fn_append VAR VALUE
  17722. # ----------------------
  17723. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17724. # advantage of any shell optimizations that allow amortized linear growth over
  17725. # repeated appends, instead of the typical quadratic growth present in naive
  17726. # implementations.
  17727. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17728. eval 'as_fn_append ()
  17729. {
  17730. eval $1+=\$2
  17731. }'
  17732. else
  17733. as_fn_append ()
  17734. {
  17735. eval $1=\$$1\$2
  17736. }
  17737. fi # as_fn_append
  17738. # as_fn_arith ARG...
  17739. # ------------------
  17740. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17741. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17742. # must be portable across $(()) and expr.
  17743. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17744. eval 'as_fn_arith ()
  17745. {
  17746. as_val=$(( $* ))
  17747. }'
  17748. else
  17749. as_fn_arith ()
  17750. {
  17751. as_val=`expr "$@" || test $? -eq 1`
  17752. }
  17753. fi # as_fn_arith
  17754. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17755. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17756. as_expr=expr
  17757. else
  17758. as_expr=false
  17759. fi
  17760. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17761. as_basename=basename
  17762. else
  17763. as_basename=false
  17764. fi
  17765. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17766. as_dirname=dirname
  17767. else
  17768. as_dirname=false
  17769. fi
  17770. as_me=`$as_basename -- "$0" ||
  17771. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17772. X"$0" : 'X\(//\)$' \| \
  17773. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17774. $as_echo X/"$0" |
  17775. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17776. s//\1/
  17777. q
  17778. }
  17779. /^X\/\(\/\/\)$/{
  17780. s//\1/
  17781. q
  17782. }
  17783. /^X\/\(\/\).*/{
  17784. s//\1/
  17785. q
  17786. }
  17787. s/.*/./; q'`
  17788. # Avoid depending upon Character Ranges.
  17789. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17790. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17791. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17792. as_cr_digits='0123456789'
  17793. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17794. ECHO_C= ECHO_N= ECHO_T=
  17795. case `echo -n x` in #(((((
  17796. -n*)
  17797. case `echo 'xy\c'` in
  17798. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17799. xy) ECHO_C='\c';;
  17800. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17801. ECHO_T=' ';;
  17802. esac;;
  17803. *)
  17804. ECHO_N='-n';;
  17805. esac
  17806. rm -f conf$$ conf$$.exe conf$$.file
  17807. if test -d conf$$.dir; then
  17808. rm -f conf$$.dir/conf$$.file
  17809. else
  17810. rm -f conf$$.dir
  17811. mkdir conf$$.dir 2>/dev/null
  17812. fi
  17813. if (echo >conf$$.file) 2>/dev/null; then
  17814. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17815. as_ln_s='ln -s'
  17816. # ... but there are two gotchas:
  17817. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17818. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17819. # In both cases, we have to default to `cp -pR'.
  17820. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17821. as_ln_s='cp -pR'
  17822. elif ln conf$$.file conf$$ 2>/dev/null; then
  17823. as_ln_s=ln
  17824. else
  17825. as_ln_s='cp -pR'
  17826. fi
  17827. else
  17828. as_ln_s='cp -pR'
  17829. fi
  17830. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17831. rmdir conf$$.dir 2>/dev/null
  17832. # as_fn_mkdir_p
  17833. # -------------
  17834. # Create "$as_dir" as a directory, including parents if necessary.
  17835. as_fn_mkdir_p ()
  17836. {
  17837. case $as_dir in #(
  17838. -*) as_dir=./$as_dir;;
  17839. esac
  17840. test -d "$as_dir" || eval $as_mkdir_p || {
  17841. as_dirs=
  17842. while :; do
  17843. case $as_dir in #(
  17844. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17845. *) as_qdir=$as_dir;;
  17846. esac
  17847. as_dirs="'$as_qdir' $as_dirs"
  17848. as_dir=`$as_dirname -- "$as_dir" ||
  17849. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17850. X"$as_dir" : 'X\(//\)[^/]' \| \
  17851. X"$as_dir" : 'X\(//\)$' \| \
  17852. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17853. $as_echo X"$as_dir" |
  17854. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17855. s//\1/
  17856. q
  17857. }
  17858. /^X\(\/\/\)[^/].*/{
  17859. s//\1/
  17860. q
  17861. }
  17862. /^X\(\/\/\)$/{
  17863. s//\1/
  17864. q
  17865. }
  17866. /^X\(\/\).*/{
  17867. s//\1/
  17868. q
  17869. }
  17870. s/.*/./; q'`
  17871. test -d "$as_dir" && break
  17872. done
  17873. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17874. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17875. } # as_fn_mkdir_p
  17876. if mkdir -p . 2>/dev/null; then
  17877. as_mkdir_p='mkdir -p "$as_dir"'
  17878. else
  17879. test -d ./-p && rmdir ./-p
  17880. as_mkdir_p=false
  17881. fi
  17882. # as_fn_executable_p FILE
  17883. # -----------------------
  17884. # Test if FILE is an executable regular file.
  17885. as_fn_executable_p ()
  17886. {
  17887. test -f "$1" && test -x "$1"
  17888. } # as_fn_executable_p
  17889. as_test_x='test -x'
  17890. as_executable_p=as_fn_executable_p
  17891. # Sed expression to map a string onto a valid CPP name.
  17892. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17893. # Sed expression to map a string onto a valid variable name.
  17894. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17895. exec 6>&1
  17896. ## ----------------------------------- ##
  17897. ## Main body of $CONFIG_STATUS script. ##
  17898. ## ----------------------------------- ##
  17899. _ASEOF
  17900. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17902. # Save the log message, to keep $0 and so on meaningful, and to
  17903. # report actual input values of CONFIG_FILES etc. instead of their
  17904. # values after options handling.
  17905. ac_log="
  17906. This file was extended by $as_me, which was
  17907. generated by GNU Autoconf 2.69. Invocation command line was
  17908. CONFIG_FILES = $CONFIG_FILES
  17909. CONFIG_HEADERS = $CONFIG_HEADERS
  17910. CONFIG_LINKS = $CONFIG_LINKS
  17911. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17912. $ $0 $@
  17913. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17914. "
  17915. _ACEOF
  17916. case $ac_config_files in *"
  17917. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17918. esac
  17919. case $ac_config_headers in *"
  17920. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17921. esac
  17922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17923. # Files that config.status was made for.
  17924. config_files="$ac_config_files"
  17925. config_headers="$ac_config_headers"
  17926. config_commands="$ac_config_commands"
  17927. _ACEOF
  17928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17929. ac_cs_usage="\
  17930. \`$as_me' instantiates files and other configuration actions
  17931. from templates according to the current configuration. Unless the files
  17932. and actions are specified as TAGs, all are instantiated by default.
  17933. Usage: $0 [OPTION]... [TAG]...
  17934. -h, --help print this help, then exit
  17935. -V, --version print version number and configuration settings, then exit
  17936. --config print configuration, then exit
  17937. -q, --quiet, --silent
  17938. do not print progress messages
  17939. -d, --debug don't remove temporary files
  17940. --recheck update $as_me by reconfiguring in the same conditions
  17941. --file=FILE[:TEMPLATE]
  17942. instantiate the configuration file FILE
  17943. --header=FILE[:TEMPLATE]
  17944. instantiate the configuration header FILE
  17945. Configuration files:
  17946. $config_files
  17947. Configuration headers:
  17948. $config_headers
  17949. Configuration commands:
  17950. $config_commands
  17951. Report bugs to the package provider."
  17952. _ACEOF
  17953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17954. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17955. ac_cs_version="\\
  17956. config.status
  17957. configured by $0, generated by GNU Autoconf 2.69,
  17958. with options \\"\$ac_cs_config\\"
  17959. Copyright (C) 2012 Free Software Foundation, Inc.
  17960. This config.status script is free software; the Free Software Foundation
  17961. gives unlimited permission to copy, distribute and modify it."
  17962. ac_pwd='$ac_pwd'
  17963. srcdir='$srcdir'
  17964. INSTALL='$INSTALL'
  17965. MKDIR_P='$MKDIR_P'
  17966. AWK='$AWK'
  17967. test -n "\$AWK" || AWK=awk
  17968. _ACEOF
  17969. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17970. # The default lists apply if the user does not specify any file.
  17971. ac_need_defaults=:
  17972. while test $# != 0
  17973. do
  17974. case $1 in
  17975. --*=?*)
  17976. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17977. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17978. ac_shift=:
  17979. ;;
  17980. --*=)
  17981. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17982. ac_optarg=
  17983. ac_shift=:
  17984. ;;
  17985. *)
  17986. ac_option=$1
  17987. ac_optarg=$2
  17988. ac_shift=shift
  17989. ;;
  17990. esac
  17991. case $ac_option in
  17992. # Handling of the options.
  17993. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17994. ac_cs_recheck=: ;;
  17995. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17996. $as_echo "$ac_cs_version"; exit ;;
  17997. --config | --confi | --conf | --con | --co | --c )
  17998. $as_echo "$ac_cs_config"; exit ;;
  17999. --debug | --debu | --deb | --de | --d | -d )
  18000. debug=: ;;
  18001. --file | --fil | --fi | --f )
  18002. $ac_shift
  18003. case $ac_optarg in
  18004. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18005. '') as_fn_error $? "missing file argument" ;;
  18006. esac
  18007. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18008. ac_need_defaults=false;;
  18009. --header | --heade | --head | --hea )
  18010. $ac_shift
  18011. case $ac_optarg in
  18012. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18013. esac
  18014. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18015. ac_need_defaults=false;;
  18016. --he | --h)
  18017. # Conflict between --help and --header
  18018. as_fn_error $? "ambiguous option: \`$1'
  18019. Try \`$0 --help' for more information.";;
  18020. --help | --hel | -h )
  18021. $as_echo "$ac_cs_usage"; exit ;;
  18022. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18023. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18024. ac_cs_silent=: ;;
  18025. # This is an error.
  18026. -*) as_fn_error $? "unrecognized option: \`$1'
  18027. Try \`$0 --help' for more information." ;;
  18028. *) as_fn_append ac_config_targets " $1"
  18029. ac_need_defaults=false ;;
  18030. esac
  18031. shift
  18032. done
  18033. ac_configure_extra_args=
  18034. if $ac_cs_silent; then
  18035. exec 6>/dev/null
  18036. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18037. fi
  18038. _ACEOF
  18039. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18040. if \$ac_cs_recheck; then
  18041. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18042. shift
  18043. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18044. CONFIG_SHELL='$SHELL'
  18045. export CONFIG_SHELL
  18046. exec "\$@"
  18047. fi
  18048. _ACEOF
  18049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18050. exec 5>>config.log
  18051. {
  18052. echo
  18053. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18054. ## Running $as_me. ##
  18055. _ASBOX
  18056. $as_echo "$ac_log"
  18057. } >&5
  18058. _ACEOF
  18059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18060. #
  18061. # INIT-COMMANDS
  18062. #
  18063. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18064. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18065. # if CDPATH is set.
  18066. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18067. sed_quote_subst='$sed_quote_subst'
  18068. double_quote_subst='$double_quote_subst'
  18069. delay_variable_subst='$delay_variable_subst'
  18070. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18071. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18072. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18073. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18074. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18075. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18076. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18077. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18078. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18079. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18080. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18081. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18082. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18083. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18084. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18085. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18086. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18087. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18088. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18089. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18090. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18091. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18092. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18093. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18094. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18095. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18096. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18097. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18098. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18099. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18100. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18101. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18102. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18103. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18104. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18105. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18106. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18107. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18108. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18109. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18110. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18111. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18112. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18113. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18114. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18115. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18116. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18117. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18118. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18119. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18120. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18121. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18122. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18123. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18124. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18125. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18126. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18127. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18128. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18129. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18130. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18131. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18132. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18133. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18134. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18135. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18136. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18137. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18138. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18139. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18140. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18141. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18142. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18143. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18144. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18145. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18146. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18147. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18148. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18149. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18150. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18151. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18152. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18153. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18154. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18155. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18156. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18157. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18158. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18159. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18160. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18161. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18162. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18163. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18164. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18165. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18166. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18167. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18168. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18169. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18170. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18171. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18172. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18173. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18174. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18175. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18176. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18177. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18178. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18179. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18180. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18181. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18182. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18183. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18184. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18185. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18186. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18187. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18188. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18189. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18190. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18191. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18192. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18193. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18194. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18195. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18196. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18197. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18198. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18199. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18200. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18201. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18202. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18203. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18204. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18205. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18206. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18207. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18208. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18209. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18210. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18211. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18212. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18213. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18214. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18215. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18216. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18217. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18218. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18219. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18220. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18221. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18222. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18223. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18224. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18225. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18226. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18227. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18228. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18229. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18230. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18231. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18232. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18233. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18234. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18235. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18236. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18237. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18238. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18239. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18240. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18241. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18242. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18243. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18244. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18245. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18246. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18247. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18248. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18249. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18250. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18251. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18252. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18253. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18254. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18255. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18256. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18257. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18258. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18259. LTCC='$LTCC'
  18260. LTCFLAGS='$LTCFLAGS'
  18261. compiler='$compiler_DEFAULT'
  18262. # A function that is used when there is no print builtin or printf.
  18263. func_fallback_echo ()
  18264. {
  18265. eval 'cat <<_LTECHO_EOF
  18266. \$1
  18267. _LTECHO_EOF'
  18268. }
  18269. # Quote evaled strings.
  18270. for var in SHELL \
  18271. ECHO \
  18272. PATH_SEPARATOR \
  18273. SED \
  18274. GREP \
  18275. EGREP \
  18276. FGREP \
  18277. LD \
  18278. NM \
  18279. LN_S \
  18280. lt_SP2NL \
  18281. lt_NL2SP \
  18282. reload_flag \
  18283. OBJDUMP \
  18284. deplibs_check_method \
  18285. file_magic_cmd \
  18286. file_magic_glob \
  18287. want_nocaseglob \
  18288. DLLTOOL \
  18289. sharedlib_from_linklib_cmd \
  18290. AR \
  18291. AR_FLAGS \
  18292. archiver_list_spec \
  18293. STRIP \
  18294. RANLIB \
  18295. CC \
  18296. CFLAGS \
  18297. compiler \
  18298. lt_cv_sys_global_symbol_pipe \
  18299. lt_cv_sys_global_symbol_to_cdecl \
  18300. lt_cv_sys_global_symbol_to_import \
  18301. lt_cv_sys_global_symbol_to_c_name_address \
  18302. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18303. lt_cv_nm_interface \
  18304. nm_file_list_spec \
  18305. lt_cv_truncate_bin \
  18306. lt_prog_compiler_no_builtin_flag \
  18307. lt_prog_compiler_pic \
  18308. lt_prog_compiler_wl \
  18309. lt_prog_compiler_static \
  18310. lt_cv_prog_compiler_c_o \
  18311. need_locks \
  18312. MANIFEST_TOOL \
  18313. DSYMUTIL \
  18314. NMEDIT \
  18315. LIPO \
  18316. OTOOL \
  18317. OTOOL64 \
  18318. shrext_cmds \
  18319. export_dynamic_flag_spec \
  18320. whole_archive_flag_spec \
  18321. compiler_needs_object \
  18322. with_gnu_ld \
  18323. allow_undefined_flag \
  18324. no_undefined_flag \
  18325. hardcode_libdir_flag_spec \
  18326. hardcode_libdir_separator \
  18327. exclude_expsyms \
  18328. include_expsyms \
  18329. file_list_spec \
  18330. variables_saved_for_relink \
  18331. libname_spec \
  18332. library_names_spec \
  18333. soname_spec \
  18334. install_override_mode \
  18335. finish_eval \
  18336. old_striplib \
  18337. striplib \
  18338. compiler_lib_search_dirs \
  18339. predep_objects \
  18340. postdep_objects \
  18341. predeps \
  18342. postdeps \
  18343. compiler_lib_search_path \
  18344. LD_CXX \
  18345. reload_flag_CXX \
  18346. compiler_CXX \
  18347. lt_prog_compiler_no_builtin_flag_CXX \
  18348. lt_prog_compiler_pic_CXX \
  18349. lt_prog_compiler_wl_CXX \
  18350. lt_prog_compiler_static_CXX \
  18351. lt_cv_prog_compiler_c_o_CXX \
  18352. export_dynamic_flag_spec_CXX \
  18353. whole_archive_flag_spec_CXX \
  18354. compiler_needs_object_CXX \
  18355. with_gnu_ld_CXX \
  18356. allow_undefined_flag_CXX \
  18357. no_undefined_flag_CXX \
  18358. hardcode_libdir_flag_spec_CXX \
  18359. hardcode_libdir_separator_CXX \
  18360. exclude_expsyms_CXX \
  18361. include_expsyms_CXX \
  18362. file_list_spec_CXX \
  18363. compiler_lib_search_dirs_CXX \
  18364. predep_objects_CXX \
  18365. postdep_objects_CXX \
  18366. predeps_CXX \
  18367. postdeps_CXX \
  18368. compiler_lib_search_path_CXX; do
  18369. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18370. *[\\\\\\\`\\"\\\$]*)
  18371. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18372. ;;
  18373. *)
  18374. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18375. ;;
  18376. esac
  18377. done
  18378. # Double-quote double-evaled strings.
  18379. for var in reload_cmds \
  18380. old_postinstall_cmds \
  18381. old_postuninstall_cmds \
  18382. old_archive_cmds \
  18383. extract_expsyms_cmds \
  18384. old_archive_from_new_cmds \
  18385. old_archive_from_expsyms_cmds \
  18386. archive_cmds \
  18387. archive_expsym_cmds \
  18388. module_cmds \
  18389. module_expsym_cmds \
  18390. export_symbols_cmds \
  18391. prelink_cmds \
  18392. postlink_cmds \
  18393. postinstall_cmds \
  18394. postuninstall_cmds \
  18395. finish_cmds \
  18396. sys_lib_search_path_spec \
  18397. configure_time_dlsearch_path \
  18398. configure_time_lt_sys_library_path \
  18399. reload_cmds_CXX \
  18400. old_archive_cmds_CXX \
  18401. old_archive_from_new_cmds_CXX \
  18402. old_archive_from_expsyms_cmds_CXX \
  18403. archive_cmds_CXX \
  18404. archive_expsym_cmds_CXX \
  18405. module_cmds_CXX \
  18406. module_expsym_cmds_CXX \
  18407. export_symbols_cmds_CXX \
  18408. prelink_cmds_CXX \
  18409. postlink_cmds_CXX; do
  18410. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18411. *[\\\\\\\`\\"\\\$]*)
  18412. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18413. ;;
  18414. *)
  18415. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18416. ;;
  18417. esac
  18418. done
  18419. ac_aux_dir='$ac_aux_dir'
  18420. # See if we are running on zsh, and set the options that allow our
  18421. # commands through without removal of \ escapes INIT.
  18422. if test -n "\${ZSH_VERSION+set}"; then
  18423. setopt NO_GLOB_SUBST
  18424. fi
  18425. PACKAGE='$PACKAGE'
  18426. VERSION='$VERSION'
  18427. RM='$RM'
  18428. ofile='$ofile'
  18429. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  18430. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  18431. # from automake.
  18432. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  18433. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  18434. LINGUAS="${LINGUAS-%UNSET%}"
  18435. _ACEOF
  18436. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18437. # Handling of arguments.
  18438. for ac_config_target in $ac_config_targets
  18439. do
  18440. case $ac_config_target in
  18441. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18442. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18443. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18444. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  18445. "lostirc.spec") CONFIG_FILES="$CONFIG_FILES lostirc.spec" ;;
  18446. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18447. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18448. "src/libirc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libirc/Makefile" ;;
  18449. "src/gtkmm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtkmm/Makefile" ;;
  18450. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  18451. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18452. esac
  18453. done
  18454. # If the user did not use the arguments to specify the items to instantiate,
  18455. # then the envvar interface is used. Set only those that are not.
  18456. # We use the long form for the default assignment because of an extremely
  18457. # bizarre bug on SunOS 4.1.3.
  18458. if $ac_need_defaults; then
  18459. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18460. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18461. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18462. fi
  18463. # Have a temporary directory for convenience. Make it in the build tree
  18464. # simply because there is no reason against having it here, and in addition,
  18465. # creating and moving files from /tmp can sometimes cause problems.
  18466. # Hook for its removal unless debugging.
  18467. # Note that there is a small window in which the directory will not be cleaned:
  18468. # after its creation but before its name has been assigned to `$tmp'.
  18469. $debug ||
  18470. {
  18471. tmp= ac_tmp=
  18472. trap 'exit_status=$?
  18473. : "${ac_tmp:=$tmp}"
  18474. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18475. ' 0
  18476. trap 'as_fn_exit 1' 1 2 13 15
  18477. }
  18478. # Create a (secure) tmp directory for tmp files.
  18479. {
  18480. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18481. test -d "$tmp"
  18482. } ||
  18483. {
  18484. tmp=./conf$$-$RANDOM
  18485. (umask 077 && mkdir "$tmp")
  18486. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18487. ac_tmp=$tmp
  18488. # Set up the scripts for CONFIG_FILES section.
  18489. # No need to generate them if there are no CONFIG_FILES.
  18490. # This happens for instance with `./config.status config.h'.
  18491. if test -n "$CONFIG_FILES"; then
  18492. ac_cr=`echo X | tr X '\015'`
  18493. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18494. # But we know of no other shell where ac_cr would be empty at this
  18495. # point, so we can use a bashism as a fallback.
  18496. if test "x$ac_cr" = x; then
  18497. eval ac_cr=\$\'\\r\'
  18498. fi
  18499. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18500. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18501. ac_cs_awk_cr='\\r'
  18502. else
  18503. ac_cs_awk_cr=$ac_cr
  18504. fi
  18505. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18506. _ACEOF
  18507. {
  18508. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18509. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18510. echo "_ACEOF"
  18511. } >conf$$subs.sh ||
  18512. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18513. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18514. ac_delim='%!_!# '
  18515. for ac_last_try in false false false false false :; do
  18516. . ./conf$$subs.sh ||
  18517. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18518. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18519. if test $ac_delim_n = $ac_delim_num; then
  18520. break
  18521. elif $ac_last_try; then
  18522. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18523. else
  18524. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18525. fi
  18526. done
  18527. rm -f conf$$subs.sh
  18528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18529. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18530. _ACEOF
  18531. sed -n '
  18532. h
  18533. s/^/S["/; s/!.*/"]=/
  18534. p
  18535. g
  18536. s/^[^!]*!//
  18537. :repl
  18538. t repl
  18539. s/'"$ac_delim"'$//
  18540. t delim
  18541. :nl
  18542. h
  18543. s/\(.\{148\}\)..*/\1/
  18544. t more1
  18545. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18546. p
  18547. n
  18548. b repl
  18549. :more1
  18550. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18551. p
  18552. g
  18553. s/.\{148\}//
  18554. t nl
  18555. :delim
  18556. h
  18557. s/\(.\{148\}\)..*/\1/
  18558. t more2
  18559. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18560. p
  18561. b
  18562. :more2
  18563. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18564. p
  18565. g
  18566. s/.\{148\}//
  18567. t delim
  18568. ' <conf$$subs.awk | sed '
  18569. /^[^""]/{
  18570. N
  18571. s/\n//
  18572. }
  18573. ' >>$CONFIG_STATUS || ac_write_fail=1
  18574. rm -f conf$$subs.awk
  18575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18576. _ACAWK
  18577. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18578. for (key in S) S_is_set[key] = 1
  18579. FS = ""
  18580. }
  18581. {
  18582. line = $ 0
  18583. nfields = split(line, field, "@")
  18584. substed = 0
  18585. len = length(field[1])
  18586. for (i = 2; i < nfields; i++) {
  18587. key = field[i]
  18588. keylen = length(key)
  18589. if (S_is_set[key]) {
  18590. value = S[key]
  18591. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18592. len += length(value) + length(field[++i])
  18593. substed = 1
  18594. } else
  18595. len += 1 + keylen
  18596. }
  18597. print line
  18598. }
  18599. _ACAWK
  18600. _ACEOF
  18601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18602. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18603. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18604. else
  18605. cat
  18606. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18607. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18608. _ACEOF
  18609. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18610. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18611. # trailing colons and then remove the whole line if VPATH becomes empty
  18612. # (actually we leave an empty line to preserve line numbers).
  18613. if test "x$srcdir" = x.; then
  18614. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18615. h
  18616. s///
  18617. s/^/:/
  18618. s/[ ]*$/:/
  18619. s/:\$(srcdir):/:/g
  18620. s/:\${srcdir}:/:/g
  18621. s/:@srcdir@:/:/g
  18622. s/^:*//
  18623. s/:*$//
  18624. x
  18625. s/\(=[ ]*\).*/\1/
  18626. G
  18627. s/\n//
  18628. s/^[^=]*=[ ]*$//
  18629. }'
  18630. fi
  18631. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18632. fi # test -n "$CONFIG_FILES"
  18633. # Set up the scripts for CONFIG_HEADERS section.
  18634. # No need to generate them if there are no CONFIG_HEADERS.
  18635. # This happens for instance with `./config.status Makefile'.
  18636. if test -n "$CONFIG_HEADERS"; then
  18637. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18638. BEGIN {
  18639. _ACEOF
  18640. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18641. # here-document in config.status, that substitutes the proper values into
  18642. # config.h.in to produce config.h.
  18643. # Create a delimiter string that does not exist in confdefs.h, to ease
  18644. # handling of long lines.
  18645. ac_delim='%!_!# '
  18646. for ac_last_try in false false :; do
  18647. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18648. if test -z "$ac_tt"; then
  18649. break
  18650. elif $ac_last_try; then
  18651. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18652. else
  18653. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18654. fi
  18655. done
  18656. # For the awk script, D is an array of macro values keyed by name,
  18657. # likewise P contains macro parameters if any. Preserve backslash
  18658. # newline sequences.
  18659. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18660. sed -n '
  18661. s/.\{148\}/&'"$ac_delim"'/g
  18662. t rset
  18663. :rset
  18664. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18665. t def
  18666. d
  18667. :def
  18668. s/\\$//
  18669. t bsnl
  18670. s/["\\]/\\&/g
  18671. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18672. D["\1"]=" \3"/p
  18673. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18674. d
  18675. :bsnl
  18676. s/["\\]/\\&/g
  18677. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18678. D["\1"]=" \3\\\\\\n"\\/p
  18679. t cont
  18680. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18681. t cont
  18682. d
  18683. :cont
  18684. n
  18685. s/.\{148\}/&'"$ac_delim"'/g
  18686. t clear
  18687. :clear
  18688. s/\\$//
  18689. t bsnlc
  18690. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18691. d
  18692. :bsnlc
  18693. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18694. b cont
  18695. ' <confdefs.h | sed '
  18696. s/'"$ac_delim"'/"\\\
  18697. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18699. for (key in D) D_is_set[key] = 1
  18700. FS = ""
  18701. }
  18702. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18703. line = \$ 0
  18704. split(line, arg, " ")
  18705. if (arg[1] == "#") {
  18706. defundef = arg[2]
  18707. mac1 = arg[3]
  18708. } else {
  18709. defundef = substr(arg[1], 2)
  18710. mac1 = arg[2]
  18711. }
  18712. split(mac1, mac2, "(") #)
  18713. macro = mac2[1]
  18714. prefix = substr(line, 1, index(line, defundef) - 1)
  18715. if (D_is_set[macro]) {
  18716. # Preserve the white space surrounding the "#".
  18717. print prefix "define", macro P[macro] D[macro]
  18718. next
  18719. } else {
  18720. # Replace #undef with comments. This is necessary, for example,
  18721. # in the case of _POSIX_SOURCE, which is predefined and required
  18722. # on some systems where configure will not decide to define it.
  18723. if (defundef == "undef") {
  18724. print "/*", prefix defundef, macro, "*/"
  18725. next
  18726. }
  18727. }
  18728. }
  18729. { print }
  18730. _ACAWK
  18731. _ACEOF
  18732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18733. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18734. fi # test -n "$CONFIG_HEADERS"
  18735. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18736. shift
  18737. for ac_tag
  18738. do
  18739. case $ac_tag in
  18740. :[FHLC]) ac_mode=$ac_tag; continue;;
  18741. esac
  18742. case $ac_mode$ac_tag in
  18743. :[FHL]*:*);;
  18744. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18745. :[FH]-) ac_tag=-:-;;
  18746. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18747. esac
  18748. ac_save_IFS=$IFS
  18749. IFS=:
  18750. set x $ac_tag
  18751. IFS=$ac_save_IFS
  18752. shift
  18753. ac_file=$1
  18754. shift
  18755. case $ac_mode in
  18756. :L) ac_source=$1;;
  18757. :[FH])
  18758. ac_file_inputs=
  18759. for ac_f
  18760. do
  18761. case $ac_f in
  18762. -) ac_f="$ac_tmp/stdin";;
  18763. *) # Look for the file first in the build tree, then in the source tree
  18764. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18765. # because $ac_f cannot contain `:'.
  18766. test -f "$ac_f" ||
  18767. case $ac_f in
  18768. [\\/$]*) false;;
  18769. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18770. esac ||
  18771. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18772. esac
  18773. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18774. as_fn_append ac_file_inputs " '$ac_f'"
  18775. done
  18776. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18777. # use $as_me), people would be surprised to read:
  18778. # /* config.h. Generated by config.status. */
  18779. configure_input='Generated from '`
  18780. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18781. `' by configure.'
  18782. if test x"$ac_file" != x-; then
  18783. configure_input="$ac_file. $configure_input"
  18784. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18785. $as_echo "$as_me: creating $ac_file" >&6;}
  18786. fi
  18787. # Neutralize special characters interpreted by sed in replacement strings.
  18788. case $configure_input in #(
  18789. *\&* | *\|* | *\\* )
  18790. ac_sed_conf_input=`$as_echo "$configure_input" |
  18791. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18792. *) ac_sed_conf_input=$configure_input;;
  18793. esac
  18794. case $ac_tag in
  18795. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18796. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18797. esac
  18798. ;;
  18799. esac
  18800. ac_dir=`$as_dirname -- "$ac_file" ||
  18801. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18802. X"$ac_file" : 'X\(//\)[^/]' \| \
  18803. X"$ac_file" : 'X\(//\)$' \| \
  18804. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18805. $as_echo X"$ac_file" |
  18806. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18807. s//\1/
  18808. q
  18809. }
  18810. /^X\(\/\/\)[^/].*/{
  18811. s//\1/
  18812. q
  18813. }
  18814. /^X\(\/\/\)$/{
  18815. s//\1/
  18816. q
  18817. }
  18818. /^X\(\/\).*/{
  18819. s//\1/
  18820. q
  18821. }
  18822. s/.*/./; q'`
  18823. as_dir="$ac_dir"; as_fn_mkdir_p
  18824. ac_builddir=.
  18825. case "$ac_dir" in
  18826. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18827. *)
  18828. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18829. # A ".." for each directory in $ac_dir_suffix.
  18830. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18831. case $ac_top_builddir_sub in
  18832. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18833. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18834. esac ;;
  18835. esac
  18836. ac_abs_top_builddir=$ac_pwd
  18837. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18838. # for backward compatibility:
  18839. ac_top_builddir=$ac_top_build_prefix
  18840. case $srcdir in
  18841. .) # We are building in place.
  18842. ac_srcdir=.
  18843. ac_top_srcdir=$ac_top_builddir_sub
  18844. ac_abs_top_srcdir=$ac_pwd ;;
  18845. [\\/]* | ?:[\\/]* ) # Absolute name.
  18846. ac_srcdir=$srcdir$ac_dir_suffix;
  18847. ac_top_srcdir=$srcdir
  18848. ac_abs_top_srcdir=$srcdir ;;
  18849. *) # Relative name.
  18850. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18851. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18852. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18853. esac
  18854. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18855. case $ac_mode in
  18856. :F)
  18857. #
  18858. # CONFIG_FILE
  18859. #
  18860. case $INSTALL in
  18861. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18862. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18863. esac
  18864. ac_MKDIR_P=$MKDIR_P
  18865. case $MKDIR_P in
  18866. [\\/$]* | ?:[\\/]* ) ;;
  18867. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18868. esac
  18869. _ACEOF
  18870. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18871. # If the template does not know about datarootdir, expand it.
  18872. # FIXME: This hack should be removed a few years after 2.60.
  18873. ac_datarootdir_hack=; ac_datarootdir_seen=
  18874. ac_sed_dataroot='
  18875. /datarootdir/ {
  18876. p
  18877. q
  18878. }
  18879. /@datadir@/p
  18880. /@docdir@/p
  18881. /@infodir@/p
  18882. /@localedir@/p
  18883. /@mandir@/p'
  18884. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18885. *datarootdir*) ac_datarootdir_seen=yes;;
  18886. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18888. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18889. _ACEOF
  18890. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18891. ac_datarootdir_hack='
  18892. s&@datadir@&$datadir&g
  18893. s&@docdir@&$docdir&g
  18894. s&@infodir@&$infodir&g
  18895. s&@localedir@&$localedir&g
  18896. s&@mandir@&$mandir&g
  18897. s&\\\${datarootdir}&$datarootdir&g' ;;
  18898. esac
  18899. _ACEOF
  18900. # Neutralize VPATH when `$srcdir' = `.'.
  18901. # Shell code in configure.ac might set extrasub.
  18902. # FIXME: do we really want to maintain this feature?
  18903. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18904. ac_sed_extra="$ac_vpsub
  18905. $extrasub
  18906. _ACEOF
  18907. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18908. :t
  18909. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18910. s|@configure_input@|$ac_sed_conf_input|;t t
  18911. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18912. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18913. s&@srcdir@&$ac_srcdir&;t t
  18914. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18915. s&@top_srcdir@&$ac_top_srcdir&;t t
  18916. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18917. s&@builddir@&$ac_builddir&;t t
  18918. s&@abs_builddir@&$ac_abs_builddir&;t t
  18919. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18920. s&@INSTALL@&$ac_INSTALL&;t t
  18921. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18922. $ac_datarootdir_hack
  18923. "
  18924. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18925. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18926. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18927. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18928. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18929. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18931. which seems to be undefined. Please make sure it is defined" >&5
  18932. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18933. which seems to be undefined. Please make sure it is defined" >&2;}
  18934. rm -f "$ac_tmp/stdin"
  18935. case $ac_file in
  18936. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18937. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18938. esac \
  18939. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18940. ;;
  18941. :H)
  18942. #
  18943. # CONFIG_HEADER
  18944. #
  18945. if test x"$ac_file" != x-; then
  18946. {
  18947. $as_echo "/* $configure_input */" \
  18948. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18949. } >"$ac_tmp/config.h" \
  18950. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18951. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18952. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18953. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18954. else
  18955. rm -f "$ac_file"
  18956. mv "$ac_tmp/config.h" "$ac_file" \
  18957. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18958. fi
  18959. else
  18960. $as_echo "/* $configure_input */" \
  18961. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18962. || as_fn_error $? "could not create -" "$LINENO" 5
  18963. fi
  18964. # Compute "$ac_file"'s index in $config_headers.
  18965. _am_arg="$ac_file"
  18966. _am_stamp_count=1
  18967. for _am_header in $config_headers :; do
  18968. case $_am_header in
  18969. $_am_arg | $_am_arg:* )
  18970. break ;;
  18971. * )
  18972. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18973. esac
  18974. done
  18975. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18976. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18977. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18978. X"$_am_arg" : 'X\(//\)$' \| \
  18979. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18980. $as_echo X"$_am_arg" |
  18981. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18982. s//\1/
  18983. q
  18984. }
  18985. /^X\(\/\/\)[^/].*/{
  18986. s//\1/
  18987. q
  18988. }
  18989. /^X\(\/\/\)$/{
  18990. s//\1/
  18991. q
  18992. }
  18993. /^X\(\/\).*/{
  18994. s//\1/
  18995. q
  18996. }
  18997. s/.*/./; q'`/stamp-h$_am_stamp_count
  18998. ;;
  18999. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19000. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19001. ;;
  19002. esac
  19003. case $ac_file$ac_mode in
  19004. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19005. # Older Autoconf quotes --file arguments for eval, but not when files
  19006. # are listed without --file. Let's play safe and only enable the eval
  19007. # if we detect the quoting.
  19008. # TODO: see whether this extra hack can be removed once we start
  19009. # requiring Autoconf 2.70 or later.
  19010. case $CONFIG_FILES in #(
  19011. *\'*) :
  19012. eval set x "$CONFIG_FILES" ;; #(
  19013. *) :
  19014. set x $CONFIG_FILES ;; #(
  19015. *) :
  19016. ;;
  19017. esac
  19018. shift
  19019. # Used to flag and report bootstrapping failures.
  19020. am_rc=0
  19021. for am_mf
  19022. do
  19023. # Strip MF so we end up with the name of the file.
  19024. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  19025. # Check whether this is an Automake generated Makefile which includes
  19026. # dependency-tracking related rules and includes.
  19027. # Grep'ing the whole file directly is not great: AIX grep has a line
  19028. # limit of 2048, but all sed's we know have understand at least 4000.
  19029. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  19030. || continue
  19031. am_dirpart=`$as_dirname -- "$am_mf" ||
  19032. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19033. X"$am_mf" : 'X\(//\)[^/]' \| \
  19034. X"$am_mf" : 'X\(//\)$' \| \
  19035. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19036. $as_echo X"$am_mf" |
  19037. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19038. s//\1/
  19039. q
  19040. }
  19041. /^X\(\/\/\)[^/].*/{
  19042. s//\1/
  19043. q
  19044. }
  19045. /^X\(\/\/\)$/{
  19046. s//\1/
  19047. q
  19048. }
  19049. /^X\(\/\).*/{
  19050. s//\1/
  19051. q
  19052. }
  19053. s/.*/./; q'`
  19054. am_filepart=`$as_basename -- "$am_mf" ||
  19055. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19056. X"$am_mf" : 'X\(//\)$' \| \
  19057. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19058. $as_echo X/"$am_mf" |
  19059. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19060. s//\1/
  19061. q
  19062. }
  19063. /^X\/\(\/\/\)$/{
  19064. s//\1/
  19065. q
  19066. }
  19067. /^X\/\(\/\).*/{
  19068. s//\1/
  19069. q
  19070. }
  19071. s/.*/./; q'`
  19072. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19073. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19074. | $MAKE -f - am--depfiles" >&5
  19075. (cd "$am_dirpart" \
  19076. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19077. | $MAKE -f - am--depfiles) >&5 2>&5
  19078. ac_status=$?
  19079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19080. (exit $ac_status); } || am_rc=$?
  19081. done
  19082. if test $am_rc -ne 0; then
  19083. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19084. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19085. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19086. for automatic dependency tracking. Try re-running configure with the
  19087. '--disable-dependency-tracking' option to at least be able to build
  19088. the package (albeit without support for automatic dependency tracking).
  19089. See \`config.log' for more details" "$LINENO" 5; }
  19090. fi
  19091. { am_dirpart=; unset am_dirpart;}
  19092. { am_filepart=; unset am_filepart;}
  19093. { am_mf=; unset am_mf;}
  19094. { am_rc=; unset am_rc;}
  19095. rm -f conftest-deps.mk
  19096. }
  19097. ;;
  19098. "libtool":C)
  19099. # See if we are running on zsh, and set the options that allow our
  19100. # commands through without removal of \ escapes.
  19101. if test -n "${ZSH_VERSION+set}"; then
  19102. setopt NO_GLOB_SUBST
  19103. fi
  19104. cfgfile=${ofile}T
  19105. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19106. $RM "$cfgfile"
  19107. cat <<_LT_EOF >> "$cfgfile"
  19108. #! $SHELL
  19109. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19110. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19111. # Provide generalized library-building support services.
  19112. # Written by Gordon Matzigkeit, 1996
  19113. # Copyright (C) 2014 Free Software Foundation, Inc.
  19114. # This is free software; see the source for copying conditions. There is NO
  19115. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19116. # GNU Libtool is free software; you can redistribute it and/or modify
  19117. # it under the terms of the GNU General Public License as published by
  19118. # the Free Software Foundation; either version 2 of of the License, or
  19119. # (at your option) any later version.
  19120. #
  19121. # As a special exception to the GNU General Public License, if you
  19122. # distribute this file as part of a program or library that is built
  19123. # using GNU Libtool, you may include this file under the same
  19124. # distribution terms that you use for the rest of that program.
  19125. #
  19126. # GNU Libtool is distributed in the hope that it will be useful, but
  19127. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19128. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19129. # GNU General Public License for more details.
  19130. #
  19131. # You should have received a copy of the GNU General Public License
  19132. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19133. # The names of the tagged configurations supported by this script.
  19134. available_tags='CXX '
  19135. # Configured defaults for sys_lib_dlsearch_path munging.
  19136. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19137. # ### BEGIN LIBTOOL CONFIG
  19138. # Which release of libtool.m4 was used?
  19139. macro_version=$macro_version
  19140. macro_revision=$macro_revision
  19141. # Whether or not to build shared libraries.
  19142. build_libtool_libs=$enable_shared
  19143. # Whether or not to build static libraries.
  19144. build_old_libs=$enable_static
  19145. # What type of objects to build.
  19146. pic_mode=$pic_mode
  19147. # Whether or not to optimize for fast installation.
  19148. fast_install=$enable_fast_install
  19149. # Shared archive member basename,for filename based shared library versioning on AIX.
  19150. shared_archive_member_spec=$shared_archive_member_spec
  19151. # Shell to use when invoking shell scripts.
  19152. SHELL=$lt_SHELL
  19153. # An echo program that protects backslashes.
  19154. ECHO=$lt_ECHO
  19155. # The PATH separator for the build system.
  19156. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19157. # The host system.
  19158. host_alias=$host_alias
  19159. host=$host
  19160. host_os=$host_os
  19161. # The build system.
  19162. build_alias=$build_alias
  19163. build=$build
  19164. build_os=$build_os
  19165. # A sed program that does not truncate output.
  19166. SED=$lt_SED
  19167. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19168. Xsed="\$SED -e 1s/^X//"
  19169. # A grep program that handles long lines.
  19170. GREP=$lt_GREP
  19171. # An ERE matcher.
  19172. EGREP=$lt_EGREP
  19173. # A literal string matcher.
  19174. FGREP=$lt_FGREP
  19175. # A BSD- or MS-compatible name lister.
  19176. NM=$lt_NM
  19177. # Whether we need soft or hard links.
  19178. LN_S=$lt_LN_S
  19179. # What is the maximum length of a command?
  19180. max_cmd_len=$max_cmd_len
  19181. # Object file suffix (normally "o").
  19182. objext=$ac_objext
  19183. # Executable file suffix (normally "").
  19184. exeext=$exeext
  19185. # whether the shell understands "unset".
  19186. lt_unset=$lt_unset
  19187. # turn spaces into newlines.
  19188. SP2NL=$lt_lt_SP2NL
  19189. # turn newlines into spaces.
  19190. NL2SP=$lt_lt_NL2SP
  19191. # convert \$build file names to \$host format.
  19192. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19193. # convert \$build files to toolchain format.
  19194. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19195. # An object symbol dumper.
  19196. OBJDUMP=$lt_OBJDUMP
  19197. # Method to check whether dependent libraries are shared objects.
  19198. deplibs_check_method=$lt_deplibs_check_method
  19199. # Command to use when deplibs_check_method = "file_magic".
  19200. file_magic_cmd=$lt_file_magic_cmd
  19201. # How to find potential files when deplibs_check_method = "file_magic".
  19202. file_magic_glob=$lt_file_magic_glob
  19203. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19204. want_nocaseglob=$lt_want_nocaseglob
  19205. # DLL creation program.
  19206. DLLTOOL=$lt_DLLTOOL
  19207. # Command to associate shared and link libraries.
  19208. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19209. # The archiver.
  19210. AR=$lt_AR
  19211. # Flags to create an archive.
  19212. AR_FLAGS=$lt_AR_FLAGS
  19213. # How to feed a file listing to the archiver.
  19214. archiver_list_spec=$lt_archiver_list_spec
  19215. # A symbol stripping program.
  19216. STRIP=$lt_STRIP
  19217. # Commands used to install an old-style archive.
  19218. RANLIB=$lt_RANLIB
  19219. old_postinstall_cmds=$lt_old_postinstall_cmds
  19220. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19221. # Whether to use a lock for old archive extraction.
  19222. lock_old_archive_extraction=$lock_old_archive_extraction
  19223. # A C compiler.
  19224. LTCC=$lt_CC
  19225. # LTCC compiler flags.
  19226. LTCFLAGS=$lt_CFLAGS
  19227. # Take the output of nm and produce a listing of raw symbols and C names.
  19228. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19229. # Transform the output of nm in a proper C declaration.
  19230. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19231. # Transform the output of nm into a list of symbols to manually relocate.
  19232. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19233. # Transform the output of nm in a C name address pair.
  19234. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19235. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19236. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19237. # The name lister interface.
  19238. nm_interface=$lt_lt_cv_nm_interface
  19239. # Specify filename containing input files for \$NM.
  19240. nm_file_list_spec=$lt_nm_file_list_spec
  19241. # The root where to search for dependent libraries,and where our libraries should be installed.
  19242. lt_sysroot=$lt_sysroot
  19243. # Command to truncate a binary pipe.
  19244. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19245. # The name of the directory that contains temporary libtool files.
  19246. objdir=$objdir
  19247. # Used to examine libraries when file_magic_cmd begins with "file".
  19248. MAGIC_CMD=$MAGIC_CMD
  19249. # Must we lock files when doing compilation?
  19250. need_locks=$lt_need_locks
  19251. # Manifest tool.
  19252. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19253. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19254. DSYMUTIL=$lt_DSYMUTIL
  19255. # Tool to change global to local symbols on Mac OS X.
  19256. NMEDIT=$lt_NMEDIT
  19257. # Tool to manipulate fat objects and archives on Mac OS X.
  19258. LIPO=$lt_LIPO
  19259. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19260. OTOOL=$lt_OTOOL
  19261. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19262. OTOOL64=$lt_OTOOL64
  19263. # Old archive suffix (normally "a").
  19264. libext=$libext
  19265. # Shared library suffix (normally ".so").
  19266. shrext_cmds=$lt_shrext_cmds
  19267. # The commands to extract the exported symbol list from a shared archive.
  19268. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19269. # Variables whose values should be saved in libtool wrapper scripts and
  19270. # restored at link time.
  19271. variables_saved_for_relink=$lt_variables_saved_for_relink
  19272. # Do we need the "lib" prefix for modules?
  19273. need_lib_prefix=$need_lib_prefix
  19274. # Do we need a version for libraries?
  19275. need_version=$need_version
  19276. # Library versioning type.
  19277. version_type=$version_type
  19278. # Shared library runtime path variable.
  19279. runpath_var=$runpath_var
  19280. # Shared library path variable.
  19281. shlibpath_var=$shlibpath_var
  19282. # Is shlibpath searched before the hard-coded library search path?
  19283. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19284. # Format of library name prefix.
  19285. libname_spec=$lt_libname_spec
  19286. # List of archive names. First name is the real one, the rest are links.
  19287. # The last name is the one that the linker finds with -lNAME
  19288. library_names_spec=$lt_library_names_spec
  19289. # The coded name of the library, if different from the real name.
  19290. soname_spec=$lt_soname_spec
  19291. # Permission mode override for installation of shared libraries.
  19292. install_override_mode=$lt_install_override_mode
  19293. # Command to use after installation of a shared archive.
  19294. postinstall_cmds=$lt_postinstall_cmds
  19295. # Command to use after uninstallation of a shared archive.
  19296. postuninstall_cmds=$lt_postuninstall_cmds
  19297. # Commands used to finish a libtool library installation in a directory.
  19298. finish_cmds=$lt_finish_cmds
  19299. # As "finish_cmds", except a single script fragment to be evaled but
  19300. # not shown.
  19301. finish_eval=$lt_finish_eval
  19302. # Whether we should hardcode library paths into libraries.
  19303. hardcode_into_libs=$hardcode_into_libs
  19304. # Compile-time system search path for libraries.
  19305. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19306. # Detected run-time system search path for libraries.
  19307. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19308. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19309. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19310. # Whether dlopen is supported.
  19311. dlopen_support=$enable_dlopen
  19312. # Whether dlopen of programs is supported.
  19313. dlopen_self=$enable_dlopen_self
  19314. # Whether dlopen of statically linked programs is supported.
  19315. dlopen_self_static=$enable_dlopen_self_static
  19316. # Commands to strip libraries.
  19317. old_striplib=$lt_old_striplib
  19318. striplib=$lt_striplib
  19319. # The linker used to build libraries.
  19320. LD=$lt_LD
  19321. # How to create reloadable object files.
  19322. reload_flag=$lt_reload_flag
  19323. reload_cmds=$lt_reload_cmds
  19324. # Commands used to build an old-style archive.
  19325. old_archive_cmds=$lt_old_archive_cmds
  19326. # A language specific compiler.
  19327. CC=$lt_compiler
  19328. # Is the compiler the GNU compiler?
  19329. with_gcc=$GCC
  19330. # Compiler flag to turn off builtin functions.
  19331. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19332. # Additional compiler flags for building library objects.
  19333. pic_flag=$lt_lt_prog_compiler_pic
  19334. # How to pass a linker flag through the compiler.
  19335. wl=$lt_lt_prog_compiler_wl
  19336. # Compiler flag to prevent dynamic linking.
  19337. link_static_flag=$lt_lt_prog_compiler_static
  19338. # Does compiler simultaneously support -c and -o options?
  19339. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19340. # Whether or not to add -lc for building shared libraries.
  19341. build_libtool_need_lc=$archive_cmds_need_lc
  19342. # Whether or not to disallow shared libs when runtime libs are static.
  19343. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19344. # Compiler flag to allow reflexive dlopens.
  19345. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19346. # Compiler flag to generate shared objects directly from archives.
  19347. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19348. # Whether the compiler copes with passing no objects directly.
  19349. compiler_needs_object=$lt_compiler_needs_object
  19350. # Create an old-style archive from a shared archive.
  19351. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19352. # Create a temporary old-style archive to link instead of a shared archive.
  19353. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19354. # Commands used to build a shared archive.
  19355. archive_cmds=$lt_archive_cmds
  19356. archive_expsym_cmds=$lt_archive_expsym_cmds
  19357. # Commands used to build a loadable module if different from building
  19358. # a shared archive.
  19359. module_cmds=$lt_module_cmds
  19360. module_expsym_cmds=$lt_module_expsym_cmds
  19361. # Whether we are building with GNU ld or not.
  19362. with_gnu_ld=$lt_with_gnu_ld
  19363. # Flag that allows shared libraries with undefined symbols to be built.
  19364. allow_undefined_flag=$lt_allow_undefined_flag
  19365. # Flag that enforces no undefined symbols.
  19366. no_undefined_flag=$lt_no_undefined_flag
  19367. # Flag to hardcode \$libdir into a binary during linking.
  19368. # This must work even if \$libdir does not exist
  19369. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19370. # Whether we need a single "-rpath" flag with a separated argument.
  19371. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19372. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19373. # DIR into the resulting binary.
  19374. hardcode_direct=$hardcode_direct
  19375. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19376. # DIR into the resulting binary and the resulting library dependency is
  19377. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19378. # library is relocated.
  19379. hardcode_direct_absolute=$hardcode_direct_absolute
  19380. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19381. # into the resulting binary.
  19382. hardcode_minus_L=$hardcode_minus_L
  19383. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19384. # into the resulting binary.
  19385. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19386. # Set to "yes" if building a shared library automatically hardcodes DIR
  19387. # into the library and all subsequent libraries and executables linked
  19388. # against it.
  19389. hardcode_automatic=$hardcode_automatic
  19390. # Set to yes if linker adds runtime paths of dependent libraries
  19391. # to runtime path list.
  19392. inherit_rpath=$inherit_rpath
  19393. # Whether libtool must link a program against all its dependency libraries.
  19394. link_all_deplibs=$link_all_deplibs
  19395. # Set to "yes" if exported symbols are required.
  19396. always_export_symbols=$always_export_symbols
  19397. # The commands to list exported symbols.
  19398. export_symbols_cmds=$lt_export_symbols_cmds
  19399. # Symbols that should not be listed in the preloaded symbols.
  19400. exclude_expsyms=$lt_exclude_expsyms
  19401. # Symbols that must always be exported.
  19402. include_expsyms=$lt_include_expsyms
  19403. # Commands necessary for linking programs (against libraries) with templates.
  19404. prelink_cmds=$lt_prelink_cmds
  19405. # Commands necessary for finishing linking programs.
  19406. postlink_cmds=$lt_postlink_cmds
  19407. # Specify filename containing input files.
  19408. file_list_spec=$lt_file_list_spec
  19409. # How to hardcode a shared library path into an executable.
  19410. hardcode_action=$hardcode_action
  19411. # The directories searched by this compiler when creating a shared library.
  19412. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19413. # Dependencies to place before and after the objects being linked to
  19414. # create a shared library.
  19415. predep_objects=$lt_predep_objects
  19416. postdep_objects=$lt_postdep_objects
  19417. predeps=$lt_predeps
  19418. postdeps=$lt_postdeps
  19419. # The library search path used internally by the compiler when linking
  19420. # a shared library.
  19421. compiler_lib_search_path=$lt_compiler_lib_search_path
  19422. # ### END LIBTOOL CONFIG
  19423. _LT_EOF
  19424. cat <<'_LT_EOF' >> "$cfgfile"
  19425. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19426. # func_munge_path_list VARIABLE PATH
  19427. # -----------------------------------
  19428. # VARIABLE is name of variable containing _space_ separated list of
  19429. # directories to be munged by the contents of PATH, which is string
  19430. # having a format:
  19431. # "DIR[:DIR]:"
  19432. # string "DIR[ DIR]" will be prepended to VARIABLE
  19433. # ":DIR[:DIR]"
  19434. # string "DIR[ DIR]" will be appended to VARIABLE
  19435. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19436. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19437. # "DIRA[ DIRA]" will be appended to VARIABLE
  19438. # "DIR[:DIR]"
  19439. # VARIABLE will be replaced by "DIR[ DIR]"
  19440. func_munge_path_list ()
  19441. {
  19442. case x$2 in
  19443. x)
  19444. ;;
  19445. *:)
  19446. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19447. ;;
  19448. x:*)
  19449. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19450. ;;
  19451. *::*)
  19452. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19453. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19454. ;;
  19455. *)
  19456. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19457. ;;
  19458. esac
  19459. }
  19460. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19461. func_cc_basename ()
  19462. {
  19463. for cc_temp in $*""; do
  19464. case $cc_temp in
  19465. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19466. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19467. \-*) ;;
  19468. *) break;;
  19469. esac
  19470. done
  19471. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19472. }
  19473. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19474. _LT_EOF
  19475. case $host_os in
  19476. aix3*)
  19477. cat <<\_LT_EOF >> "$cfgfile"
  19478. # AIX sometimes has problems with the GCC collect2 program. For some
  19479. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19480. # vanish in a puff of smoke.
  19481. if test set != "${COLLECT_NAMES+set}"; then
  19482. COLLECT_NAMES=
  19483. export COLLECT_NAMES
  19484. fi
  19485. _LT_EOF
  19486. ;;
  19487. esac
  19488. ltmain=$ac_aux_dir/ltmain.sh
  19489. # We use sed instead of cat because bash on DJGPP gets confused if
  19490. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19491. # text mode, it properly converts lines to CR/LF. This bash problem
  19492. # is reportedly fixed, but why not run on old versions too?
  19493. sed '$q' "$ltmain" >> "$cfgfile" \
  19494. || (rm -f "$cfgfile"; exit 1)
  19495. mv -f "$cfgfile" "$ofile" ||
  19496. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19497. chmod +x "$ofile"
  19498. cat <<_LT_EOF >> "$ofile"
  19499. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19500. # The linker used to build libraries.
  19501. LD=$lt_LD_CXX
  19502. # How to create reloadable object files.
  19503. reload_flag=$lt_reload_flag_CXX
  19504. reload_cmds=$lt_reload_cmds_CXX
  19505. # Commands used to build an old-style archive.
  19506. old_archive_cmds=$lt_old_archive_cmds_CXX
  19507. # A language specific compiler.
  19508. CC=$lt_compiler_CXX
  19509. # Is the compiler the GNU compiler?
  19510. with_gcc=$GCC_CXX
  19511. # Compiler flag to turn off builtin functions.
  19512. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19513. # Additional compiler flags for building library objects.
  19514. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19515. # How to pass a linker flag through the compiler.
  19516. wl=$lt_lt_prog_compiler_wl_CXX
  19517. # Compiler flag to prevent dynamic linking.
  19518. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19519. # Does compiler simultaneously support -c and -o options?
  19520. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19521. # Whether or not to add -lc for building shared libraries.
  19522. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19523. # Whether or not to disallow shared libs when runtime libs are static.
  19524. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19525. # Compiler flag to allow reflexive dlopens.
  19526. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19527. # Compiler flag to generate shared objects directly from archives.
  19528. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19529. # Whether the compiler copes with passing no objects directly.
  19530. compiler_needs_object=$lt_compiler_needs_object_CXX
  19531. # Create an old-style archive from a shared archive.
  19532. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19533. # Create a temporary old-style archive to link instead of a shared archive.
  19534. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19535. # Commands used to build a shared archive.
  19536. archive_cmds=$lt_archive_cmds_CXX
  19537. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19538. # Commands used to build a loadable module if different from building
  19539. # a shared archive.
  19540. module_cmds=$lt_module_cmds_CXX
  19541. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19542. # Whether we are building with GNU ld or not.
  19543. with_gnu_ld=$lt_with_gnu_ld_CXX
  19544. # Flag that allows shared libraries with undefined symbols to be built.
  19545. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19546. # Flag that enforces no undefined symbols.
  19547. no_undefined_flag=$lt_no_undefined_flag_CXX
  19548. # Flag to hardcode \$libdir into a binary during linking.
  19549. # This must work even if \$libdir does not exist
  19550. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19551. # Whether we need a single "-rpath" flag with a separated argument.
  19552. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19553. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19554. # DIR into the resulting binary.
  19555. hardcode_direct=$hardcode_direct_CXX
  19556. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19557. # DIR into the resulting binary and the resulting library dependency is
  19558. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19559. # library is relocated.
  19560. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19561. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19562. # into the resulting binary.
  19563. hardcode_minus_L=$hardcode_minus_L_CXX
  19564. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19565. # into the resulting binary.
  19566. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19567. # Set to "yes" if building a shared library automatically hardcodes DIR
  19568. # into the library and all subsequent libraries and executables linked
  19569. # against it.
  19570. hardcode_automatic=$hardcode_automatic_CXX
  19571. # Set to yes if linker adds runtime paths of dependent libraries
  19572. # to runtime path list.
  19573. inherit_rpath=$inherit_rpath_CXX
  19574. # Whether libtool must link a program against all its dependency libraries.
  19575. link_all_deplibs=$link_all_deplibs_CXX
  19576. # Set to "yes" if exported symbols are required.
  19577. always_export_symbols=$always_export_symbols_CXX
  19578. # The commands to list exported symbols.
  19579. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19580. # Symbols that should not be listed in the preloaded symbols.
  19581. exclude_expsyms=$lt_exclude_expsyms_CXX
  19582. # Symbols that must always be exported.
  19583. include_expsyms=$lt_include_expsyms_CXX
  19584. # Commands necessary for linking programs (against libraries) with templates.
  19585. prelink_cmds=$lt_prelink_cmds_CXX
  19586. # Commands necessary for finishing linking programs.
  19587. postlink_cmds=$lt_postlink_cmds_CXX
  19588. # Specify filename containing input files.
  19589. file_list_spec=$lt_file_list_spec_CXX
  19590. # How to hardcode a shared library path into an executable.
  19591. hardcode_action=$hardcode_action_CXX
  19592. # The directories searched by this compiler when creating a shared library.
  19593. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19594. # Dependencies to place before and after the objects being linked to
  19595. # create a shared library.
  19596. predep_objects=$lt_predep_objects_CXX
  19597. postdep_objects=$lt_postdep_objects_CXX
  19598. predeps=$lt_predeps_CXX
  19599. postdeps=$lt_postdeps_CXX
  19600. # The library search path used internally by the compiler when linking
  19601. # a shared library.
  19602. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19603. # ### END LIBTOOL TAG CONFIG: CXX
  19604. _LT_EOF
  19605. ;;
  19606. "default-1":C)
  19607. for ac_file in $CONFIG_FILES; do
  19608. # Support "outfile[:infile[:infile...]]"
  19609. case "$ac_file" in
  19610. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  19611. esac
  19612. # PO directories have a Makefile.in generated from Makefile.in.in.
  19613. case "$ac_file" in */Makefile.in)
  19614. # Adjust a relative srcdir.
  19615. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  19616. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  19617. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  19618. # In autoconf-2.13 it is called $ac_given_srcdir.
  19619. # In autoconf-2.50 it is called $srcdir.
  19620. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  19621. case "$ac_given_srcdir" in
  19622. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  19623. /*) top_srcdir="$ac_given_srcdir" ;;
  19624. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  19625. esac
  19626. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  19627. rm -f "$ac_dir/POTFILES"
  19628. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  19629. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  19630. POMAKEFILEDEPS="POTFILES.in"
  19631. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  19632. # on $ac_dir but don't depend on user-specified configuration
  19633. # parameters.
  19634. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  19635. # The LINGUAS file contains the set of available languages.
  19636. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  19637. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  19638. fi
  19639. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  19640. # Hide the ALL_LINGUAS assigment from automake.
  19641. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  19642. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  19643. else
  19644. # The set of available languages was given in configure.in.
  19645. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  19646. fi
  19647. # Compute POFILES
  19648. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  19649. # Compute UPDATEPOFILES
  19650. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  19651. # Compute DUMMYPOFILES
  19652. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  19653. # Compute GMOFILES
  19654. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  19655. case "$ac_given_srcdir" in
  19656. .) srcdirpre= ;;
  19657. *) srcdirpre='$(srcdir)/' ;;
  19658. esac
  19659. POFILES=
  19660. UPDATEPOFILES=
  19661. DUMMYPOFILES=
  19662. GMOFILES=
  19663. for lang in $ALL_LINGUAS; do
  19664. POFILES="$POFILES $srcdirpre$lang.po"
  19665. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  19666. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  19667. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  19668. done
  19669. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  19670. # environment variable.
  19671. INST_LINGUAS=
  19672. if test -n "$ALL_LINGUAS"; then
  19673. for presentlang in $ALL_LINGUAS; do
  19674. useit=no
  19675. if test "%UNSET%" != "$LINGUAS"; then
  19676. desiredlanguages="$LINGUAS"
  19677. else
  19678. desiredlanguages="$ALL_LINGUAS"
  19679. fi
  19680. for desiredlang in $desiredlanguages; do
  19681. # Use the presentlang catalog if desiredlang is
  19682. # a. equal to presentlang, or
  19683. # b. a variant of presentlang (because in this case,
  19684. # presentlang can be used as a fallback for messages
  19685. # which are not translated in the desiredlang catalog).
  19686. case "$desiredlang" in
  19687. "$presentlang"*) useit=yes;;
  19688. esac
  19689. done
  19690. if test $useit = yes; then
  19691. INST_LINGUAS="$INST_LINGUAS $presentlang"
  19692. fi
  19693. done
  19694. fi
  19695. CATALOGS=
  19696. if test -n "$INST_LINGUAS"; then
  19697. for lang in $INST_LINGUAS; do
  19698. CATALOGS="$CATALOGS $lang.gmo"
  19699. done
  19700. fi
  19701. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  19702. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  19703. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  19704. if test -f "$f"; then
  19705. case "$f" in
  19706. *.orig | *.bak | *~) ;;
  19707. *) cat "$f" >> "$ac_dir/Makefile" ;;
  19708. esac
  19709. fi
  19710. done
  19711. fi
  19712. ;;
  19713. esac
  19714. done ;;
  19715. esac
  19716. done # for ac_tag
  19717. as_fn_exit 0
  19718. _ACEOF
  19719. ac_clean_files=$ac_clean_files_save
  19720. test $ac_write_fail = 0 ||
  19721. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19722. # configure is writing to config.log, and then calls config.status.
  19723. # config.status does its own redirection, appending to config.log.
  19724. # Unfortunately, on DOS this fails, as config.log is still kept open
  19725. # by configure, so config.status won't be able to write to it; its
  19726. # output is simply discarded. So we exec the FD to /dev/null,
  19727. # effectively closing config.log, so it can be properly (re)opened and
  19728. # appended to by config.status. When coming back to configure, we
  19729. # need to make the FD available again.
  19730. if test "$no_create" != yes; then
  19731. ac_cs_success=:
  19732. ac_config_status_args=
  19733. test "$silent" = yes &&
  19734. ac_config_status_args="$ac_config_status_args --quiet"
  19735. exec 5>/dev/null
  19736. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19737. exec 5>>config.log
  19738. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19739. # would make configure fail if this is the last instruction.
  19740. $ac_cs_success || as_fn_exit 1
  19741. fi
  19742. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19744. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19745. fi