configure 540 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for popt 1.16.
  4. #
  5. # Report bugs to <popt-devel@rpm5.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  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*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$lt_ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. ECHO=${lt_ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $ECHO works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<_LT_EOF
  523. $*
  524. _LT_EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$lt_ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  536. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  537. then
  538. break
  539. fi
  540. done
  541. fi
  542. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. :
  546. else
  547. # The Solaris, AIX, and Digital Unix default echo programs unquote
  548. # backslashes. This makes it impossible to quote backslashes using
  549. # echo "$something" | sed 's/\\/\\\\/g'
  550. #
  551. # So, first we look for a working echo in the user's PATH.
  552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  553. for dir in $PATH /usr/ucb; do
  554. IFS="$lt_save_ifs"
  555. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  556. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. ECHO="$dir/echo"
  560. break
  561. fi
  562. done
  563. IFS="$lt_save_ifs"
  564. if test "X$ECHO" = Xecho; then
  565. # We didn't find a better echo, so look for alternatives.
  566. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  567. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. # This shell has a builtin print -r that does the trick.
  570. ECHO='print -r'
  571. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  572. test "X$CONFIG_SHELL" != X/bin/ksh; then
  573. # If we have ksh, try running configure again with it.
  574. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  575. export ORIGINAL_CONFIG_SHELL
  576. CONFIG_SHELL=/bin/ksh
  577. export CONFIG_SHELL
  578. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  579. else
  580. # Try using printf.
  581. ECHO='printf %s\n'
  582. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # Cool, printf works
  586. :
  587. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  592. export CONFIG_SHELL
  593. SHELL="$CONFIG_SHELL"
  594. export SHELL
  595. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  596. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  597. test "X$echo_testing_string" = 'X\t' &&
  598. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  601. else
  602. # maybe with a smaller string...
  603. prev=:
  604. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  605. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  606. then
  607. break
  608. fi
  609. prev="$cmd"
  610. done
  611. if test "$prev" != 'sed 50q "$0"'; then
  612. echo_test_string=`eval $prev`
  613. export echo_test_string
  614. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  615. else
  616. # Oops. We lost completely, so just stick with echo.
  617. ECHO=echo
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. # Copy echo and quote the copy suitably for passing to libtool from
  625. # the Makefile, instead of quoting the original, which is used later.
  626. lt_ECHO=$ECHO
  627. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  628. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  629. fi
  630. exec 7<&0 </dev/null 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. SHELL=${CONFIG_SHELL-/bin/sh}
  647. # Identity of this package.
  648. PACKAGE_NAME='popt'
  649. PACKAGE_TARNAME='popt'
  650. PACKAGE_VERSION='1.16'
  651. PACKAGE_STRING='popt 1.16'
  652. PACKAGE_BUGREPORT='popt-devel@rpm5.org'
  653. ac_unique_file="popt.h"
  654. # Factoring default headers for most tests.
  655. ac_includes_default="\
  656. #include <stdio.h>
  657. #ifdef HAVE_SYS_TYPES_H
  658. # include <sys/types.h>
  659. #endif
  660. #ifdef HAVE_SYS_STAT_H
  661. # include <sys/stat.h>
  662. #endif
  663. #ifdef STDC_HEADERS
  664. # include <stdlib.h>
  665. # include <stddef.h>
  666. #else
  667. # ifdef HAVE_STDLIB_H
  668. # include <stdlib.h>
  669. # endif
  670. #endif
  671. #ifdef HAVE_STRING_H
  672. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  673. # include <memory.h>
  674. # endif
  675. # include <string.h>
  676. #endif
  677. #ifdef HAVE_STRINGS_H
  678. # include <strings.h>
  679. #endif
  680. #ifdef HAVE_INTTYPES_H
  681. # include <inttypes.h>
  682. #endif
  683. #ifdef HAVE_STDINT_H
  684. # include <stdint.h>
  685. #endif
  686. #ifdef HAVE_UNISTD_H
  687. # include <unistd.h>
  688. #endif"
  689. gt_needs=
  690. enable_option_checking=no
  691. ac_subst_vars='am__EXEEXT_FALSE
  692. am__EXEEXT_TRUE
  693. LTLIBOBJS
  694. LIBOBJS
  695. subdirs
  696. POPT_SOURCE_PATH
  697. POPT_PKGCONFIG_LIBS
  698. POSUB
  699. LTLIBINTL
  700. LIBINTL
  701. INTLLIBS
  702. LTLIBICONV
  703. LIBICONV
  704. INTL_MACOSX_LIBS
  705. XGETTEXT_EXTRA_OPTIONS
  706. MSGMERGE
  707. XGETTEXT_015
  708. XGETTEXT
  709. GMSGFMT_015
  710. MSGFMT_015
  711. GMSGFMT
  712. MSGFMT
  713. GETTEXT_MACRO_VERSION
  714. USE_NLS
  715. HAVE_LD_VERSION_SCRIPT_FALSE
  716. HAVE_LD_VERSION_SCRIPT_TRUE
  717. ANSI2KNR
  718. U
  719. TARGET
  720. CPP
  721. OTOOL64
  722. OTOOL
  723. LIPO
  724. NMEDIT
  725. DSYMUTIL
  726. lt_ECHO
  727. RANLIB
  728. AR
  729. OBJDUMP
  730. LN_S
  731. NM
  732. ac_ct_DUMPBIN
  733. DUMPBIN
  734. LD
  735. FGREP
  736. EGREP
  737. GREP
  738. SED
  739. LIBTOOL
  740. am__fastdepCC_FALSE
  741. am__fastdepCC_TRUE
  742. CCDEPMODE
  743. AMDEPBACKSLASH
  744. AMDEP_FALSE
  745. AMDEP_TRUE
  746. am__quote
  747. am__include
  748. DEPDIR
  749. OBJEXT
  750. EXEEXT
  751. ac_ct_CC
  752. CPPFLAGS
  753. LDFLAGS
  754. CFLAGS
  755. CC
  756. LT_AGE
  757. LT_REVISION
  758. LT_CURRENT
  759. MAINT
  760. MAINTAINER_MODE_FALSE
  761. MAINTAINER_MODE_TRUE
  762. am__untar
  763. am__tar
  764. AMTAR
  765. am__leading_dot
  766. SET_MAKE
  767. AWK
  768. mkdir_p
  769. MKDIR_P
  770. INSTALL_STRIP_PROGRAM
  771. STRIP
  772. install_sh
  773. MAKEINFO
  774. AUTOHEADER
  775. AUTOMAKE
  776. AUTOCONF
  777. ACLOCAL
  778. VERSION
  779. PACKAGE
  780. CYGPATH_W
  781. am__isrc
  782. INSTALL_DATA
  783. INSTALL_SCRIPT
  784. INSTALL_PROGRAM
  785. target_os
  786. target_vendor
  787. target_cpu
  788. target
  789. host_os
  790. host_vendor
  791. host_cpu
  792. host
  793. build_os
  794. build_vendor
  795. build_cpu
  796. build
  797. target_alias
  798. host_alias
  799. build_alias
  800. LIBS
  801. ECHO_T
  802. ECHO_N
  803. ECHO_C
  804. DEFS
  805. mandir
  806. localedir
  807. libdir
  808. psdir
  809. pdfdir
  810. dvidir
  811. htmldir
  812. infodir
  813. docdir
  814. oldincludedir
  815. includedir
  816. localstatedir
  817. sharedstatedir
  818. sysconfdir
  819. datadir
  820. datarootdir
  821. libexecdir
  822. sbindir
  823. bindir
  824. program_transform_name
  825. prefix
  826. exec_prefix
  827. PACKAGE_BUGREPORT
  828. PACKAGE_STRING
  829. PACKAGE_VERSION
  830. PACKAGE_TARNAME
  831. PACKAGE_NAME
  832. PATH_SEPARATOR
  833. SHELL'
  834. ac_subst_files=''
  835. ac_user_opts='
  836. enable_option_checking
  837. enable_maintainer_mode
  838. enable_dependency_tracking
  839. enable_shared
  840. enable_static
  841. with_pic
  842. enable_fast_install
  843. with_gnu_ld
  844. enable_libtool_lock
  845. enable_largefile
  846. enable_ld_version_script
  847. enable_build_gcov
  848. enable_nls
  849. enable_rpath
  850. with_libiconv_prefix
  851. with_libintl_prefix
  852. '
  853. ac_precious_vars='build_alias
  854. host_alias
  855. target_alias
  856. CC
  857. CFLAGS
  858. LDFLAGS
  859. LIBS
  860. CPPFLAGS
  861. CPP'
  862. ac_subdirs_all=''
  863. # Initialize some variables set by options.
  864. ac_init_help=
  865. ac_init_version=false
  866. ac_unrecognized_opts=
  867. ac_unrecognized_sep=
  868. # The variables have the same names as the options, with
  869. # dashes changed to underlines.
  870. cache_file=/dev/null
  871. exec_prefix=NONE
  872. no_create=
  873. no_recursion=
  874. prefix=NONE
  875. program_prefix=NONE
  876. program_suffix=NONE
  877. program_transform_name=s,x,x,
  878. silent=
  879. site=
  880. srcdir=
  881. verbose=
  882. x_includes=NONE
  883. x_libraries=NONE
  884. # Installation directory options.
  885. # These are left unexpanded so users can "make install exec_prefix=/foo"
  886. # and all the variables that are supposed to be based on exec_prefix
  887. # by default will actually change.
  888. # Use braces instead of parens because sh, perl, etc. also accept them.
  889. # (The list follows the same order as the GNU Coding Standards.)
  890. bindir='${exec_prefix}/bin'
  891. sbindir='${exec_prefix}/sbin'
  892. libexecdir='${exec_prefix}/libexec'
  893. datarootdir='${prefix}/share'
  894. datadir='${datarootdir}'
  895. sysconfdir='${prefix}/etc'
  896. sharedstatedir='${prefix}/com'
  897. localstatedir='${prefix}/var'
  898. includedir='${prefix}/include'
  899. oldincludedir='/usr/include'
  900. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  901. infodir='${datarootdir}/info'
  902. htmldir='${docdir}'
  903. dvidir='${docdir}'
  904. pdfdir='${docdir}'
  905. psdir='${docdir}'
  906. libdir='${exec_prefix}/lib'
  907. localedir='${datarootdir}/locale'
  908. mandir='${datarootdir}/man'
  909. ac_prev=
  910. ac_dashdash=
  911. for ac_option
  912. do
  913. # If the previous option needs an argument, assign it.
  914. if test -n "$ac_prev"; then
  915. eval $ac_prev=\$ac_option
  916. ac_prev=
  917. continue
  918. fi
  919. case $ac_option in
  920. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  921. *) ac_optarg=yes ;;
  922. esac
  923. # Accept the important Cygnus configure options, so we can diagnose typos.
  924. case $ac_dashdash$ac_option in
  925. --)
  926. ac_dashdash=yes ;;
  927. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  928. ac_prev=bindir ;;
  929. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  930. bindir=$ac_optarg ;;
  931. -build | --build | --buil | --bui | --bu)
  932. ac_prev=build_alias ;;
  933. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  934. build_alias=$ac_optarg ;;
  935. -cache-file | --cache-file | --cache-fil | --cache-fi \
  936. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  937. ac_prev=cache_file ;;
  938. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  939. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  940. cache_file=$ac_optarg ;;
  941. --config-cache | -C)
  942. cache_file=config.cache ;;
  943. -datadir | --datadir | --datadi | --datad)
  944. ac_prev=datadir ;;
  945. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  946. datadir=$ac_optarg ;;
  947. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  948. | --dataroo | --dataro | --datar)
  949. ac_prev=datarootdir ;;
  950. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  951. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  952. datarootdir=$ac_optarg ;;
  953. -disable-* | --disable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  958. { (exit 1); exit 1; }; }
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=no ;;
  969. -docdir | --docdir | --docdi | --doc | --do)
  970. ac_prev=docdir ;;
  971. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  972. docdir=$ac_optarg ;;
  973. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  974. ac_prev=dvidir ;;
  975. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  976. dvidir=$ac_optarg ;;
  977. -enable-* | --enable-*)
  978. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  979. # Reject names that are not valid shell variable names.
  980. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  981. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  982. { (exit 1); exit 1; }; }
  983. ac_useropt_orig=$ac_useropt
  984. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  985. case $ac_user_opts in
  986. *"
  987. "enable_$ac_useropt"
  988. "*) ;;
  989. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  990. ac_unrecognized_sep=', ';;
  991. esac
  992. eval enable_$ac_useropt=\$ac_optarg ;;
  993. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  994. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  995. | --exec | --exe | --ex)
  996. ac_prev=exec_prefix ;;
  997. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  998. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  999. | --exec=* | --exe=* | --ex=*)
  1000. exec_prefix=$ac_optarg ;;
  1001. -gas | --gas | --ga | --g)
  1002. # Obsolete; use --with-gas.
  1003. with_gas=yes ;;
  1004. -help | --help | --hel | --he | -h)
  1005. ac_init_help=long ;;
  1006. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1007. ac_init_help=recursive ;;
  1008. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1009. ac_init_help=short ;;
  1010. -host | --host | --hos | --ho)
  1011. ac_prev=host_alias ;;
  1012. -host=* | --host=* | --hos=* | --ho=*)
  1013. host_alias=$ac_optarg ;;
  1014. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1015. ac_prev=htmldir ;;
  1016. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1017. | --ht=*)
  1018. htmldir=$ac_optarg ;;
  1019. -includedir | --includedir | --includedi | --included | --include \
  1020. | --includ | --inclu | --incl | --inc)
  1021. ac_prev=includedir ;;
  1022. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1023. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1024. includedir=$ac_optarg ;;
  1025. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1026. ac_prev=infodir ;;
  1027. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1028. infodir=$ac_optarg ;;
  1029. -libdir | --libdir | --libdi | --libd)
  1030. ac_prev=libdir ;;
  1031. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1032. libdir=$ac_optarg ;;
  1033. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1034. | --libexe | --libex | --libe)
  1035. ac_prev=libexecdir ;;
  1036. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1037. | --libexe=* | --libex=* | --libe=*)
  1038. libexecdir=$ac_optarg ;;
  1039. -localedir | --localedir | --localedi | --localed | --locale)
  1040. ac_prev=localedir ;;
  1041. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1042. localedir=$ac_optarg ;;
  1043. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1044. | --localstate | --localstat | --localsta | --localst | --locals)
  1045. ac_prev=localstatedir ;;
  1046. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1047. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1048. localstatedir=$ac_optarg ;;
  1049. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1050. ac_prev=mandir ;;
  1051. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1052. mandir=$ac_optarg ;;
  1053. -nfp | --nfp | --nf)
  1054. # Obsolete; use --without-fp.
  1055. with_fp=no ;;
  1056. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1057. | --no-cr | --no-c | -n)
  1058. no_create=yes ;;
  1059. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1060. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1061. no_recursion=yes ;;
  1062. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1063. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1064. | --oldin | --oldi | --old | --ol | --o)
  1065. ac_prev=oldincludedir ;;
  1066. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1067. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1068. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1069. oldincludedir=$ac_optarg ;;
  1070. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1071. ac_prev=prefix ;;
  1072. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1073. prefix=$ac_optarg ;;
  1074. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1075. | --program-pre | --program-pr | --program-p)
  1076. ac_prev=program_prefix ;;
  1077. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1078. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1079. program_prefix=$ac_optarg ;;
  1080. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1081. | --program-suf | --program-su | --program-s)
  1082. ac_prev=program_suffix ;;
  1083. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1084. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1085. program_suffix=$ac_optarg ;;
  1086. -program-transform-name | --program-transform-name \
  1087. | --program-transform-nam | --program-transform-na \
  1088. | --program-transform-n | --program-transform- \
  1089. | --program-transform | --program-transfor \
  1090. | --program-transfo | --program-transf \
  1091. | --program-trans | --program-tran \
  1092. | --progr-tra | --program-tr | --program-t)
  1093. ac_prev=program_transform_name ;;
  1094. -program-transform-name=* | --program-transform-name=* \
  1095. | --program-transform-nam=* | --program-transform-na=* \
  1096. | --program-transform-n=* | --program-transform-=* \
  1097. | --program-transform=* | --program-transfor=* \
  1098. | --program-transfo=* | --program-transf=* \
  1099. | --program-trans=* | --program-tran=* \
  1100. | --progr-tra=* | --program-tr=* | --program-t=*)
  1101. program_transform_name=$ac_optarg ;;
  1102. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1103. ac_prev=pdfdir ;;
  1104. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1105. pdfdir=$ac_optarg ;;
  1106. -psdir | --psdir | --psdi | --psd | --ps)
  1107. ac_prev=psdir ;;
  1108. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1109. psdir=$ac_optarg ;;
  1110. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1111. | -silent | --silent | --silen | --sile | --sil)
  1112. silent=yes ;;
  1113. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1114. ac_prev=sbindir ;;
  1115. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1116. | --sbi=* | --sb=*)
  1117. sbindir=$ac_optarg ;;
  1118. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1119. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1120. | --sharedst | --shareds | --shared | --share | --shar \
  1121. | --sha | --sh)
  1122. ac_prev=sharedstatedir ;;
  1123. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1124. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1125. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1126. | --sha=* | --sh=*)
  1127. sharedstatedir=$ac_optarg ;;
  1128. -site | --site | --sit)
  1129. ac_prev=site ;;
  1130. -site=* | --site=* | --sit=*)
  1131. site=$ac_optarg ;;
  1132. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1133. ac_prev=srcdir ;;
  1134. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1135. srcdir=$ac_optarg ;;
  1136. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1137. | --syscon | --sysco | --sysc | --sys | --sy)
  1138. ac_prev=sysconfdir ;;
  1139. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1140. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1141. sysconfdir=$ac_optarg ;;
  1142. -target | --target | --targe | --targ | --tar | --ta | --t)
  1143. ac_prev=target_alias ;;
  1144. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1145. target_alias=$ac_optarg ;;
  1146. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1147. verbose=yes ;;
  1148. -version | --version | --versio | --versi | --vers | -V)
  1149. ac_init_version=: ;;
  1150. -with-* | --with-*)
  1151. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1152. # Reject names that are not valid shell variable names.
  1153. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1154. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1155. { (exit 1); exit 1; }; }
  1156. ac_useropt_orig=$ac_useropt
  1157. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1158. case $ac_user_opts in
  1159. *"
  1160. "with_$ac_useropt"
  1161. "*) ;;
  1162. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1163. ac_unrecognized_sep=', ';;
  1164. esac
  1165. eval with_$ac_useropt=\$ac_optarg ;;
  1166. -without-* | --without-*)
  1167. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1168. # Reject names that are not valid shell variable names.
  1169. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1170. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1171. { (exit 1); exit 1; }; }
  1172. ac_useropt_orig=$ac_useropt
  1173. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1174. case $ac_user_opts in
  1175. *"
  1176. "with_$ac_useropt"
  1177. "*) ;;
  1178. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1179. ac_unrecognized_sep=', ';;
  1180. esac
  1181. eval with_$ac_useropt=no ;;
  1182. --x)
  1183. # Obsolete; use --with-x.
  1184. with_x=yes ;;
  1185. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1186. | --x-incl | --x-inc | --x-in | --x-i)
  1187. ac_prev=x_includes ;;
  1188. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1189. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1190. x_includes=$ac_optarg ;;
  1191. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1192. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1193. ac_prev=x_libraries ;;
  1194. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1195. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1196. x_libraries=$ac_optarg ;;
  1197. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1198. Try \`$0 --help' for more information." >&2
  1199. { (exit 1); exit 1; }; }
  1200. ;;
  1201. *=*)
  1202. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1205. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1206. { (exit 1); exit 1; }; }
  1207. eval $ac_envvar=\$ac_optarg
  1208. export $ac_envvar ;;
  1209. *)
  1210. # FIXME: should be removed in autoconf 3.0.
  1211. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1212. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1213. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1214. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1215. ;;
  1216. esac
  1217. done
  1218. if test -n "$ac_prev"; then
  1219. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1220. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1221. { (exit 1); exit 1; }; }
  1222. fi
  1223. if test -n "$ac_unrecognized_opts"; then
  1224. case $enable_option_checking in
  1225. no) ;;
  1226. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1227. { (exit 1); exit 1; }; } ;;
  1228. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1229. esac
  1230. fi
  1231. # Check all directory arguments for consistency.
  1232. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1233. datadir sysconfdir sharedstatedir localstatedir includedir \
  1234. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1235. libdir localedir mandir
  1236. do
  1237. eval ac_val=\$$ac_var
  1238. # Remove trailing slashes.
  1239. case $ac_val in
  1240. */ )
  1241. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1242. eval $ac_var=\$ac_val;;
  1243. esac
  1244. # Be sure to have absolute directory names.
  1245. case $ac_val in
  1246. [\\/$]* | ?:[\\/]* ) continue;;
  1247. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1248. esac
  1249. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1250. { (exit 1); exit 1; }; }
  1251. done
  1252. # There might be people who depend on the old broken behavior: `$host'
  1253. # used to hold the argument of --host etc.
  1254. # FIXME: To remove some day.
  1255. build=$build_alias
  1256. host=$host_alias
  1257. target=$target_alias
  1258. # FIXME: To remove some day.
  1259. if test "x$host_alias" != x; then
  1260. if test "x$build_alias" = x; then
  1261. cross_compiling=maybe
  1262. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1263. If a cross compiler is detected then cross compile mode will be used." >&2
  1264. elif test "x$build_alias" != "x$host_alias"; then
  1265. cross_compiling=yes
  1266. fi
  1267. fi
  1268. ac_tool_prefix=
  1269. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1270. test "$silent" = yes && exec 6>/dev/null
  1271. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1272. ac_ls_di=`ls -di .` &&
  1273. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1274. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1275. { (exit 1); exit 1; }; }
  1276. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1277. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1278. { (exit 1); exit 1; }; }
  1279. # Find the source files, if location was not specified.
  1280. if test -z "$srcdir"; then
  1281. ac_srcdir_defaulted=yes
  1282. # Try the directory containing this script, then the parent directory.
  1283. ac_confdir=`$as_dirname -- "$as_myself" ||
  1284. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1285. X"$as_myself" : 'X\(//\)[^/]' \| \
  1286. X"$as_myself" : 'X\(//\)$' \| \
  1287. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1288. $as_echo X"$as_myself" |
  1289. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1290. s//\1/
  1291. q
  1292. }
  1293. /^X\(\/\/\)[^/].*/{
  1294. s//\1/
  1295. q
  1296. }
  1297. /^X\(\/\/\)$/{
  1298. s//\1/
  1299. q
  1300. }
  1301. /^X\(\/\).*/{
  1302. s//\1/
  1303. q
  1304. }
  1305. s/.*/./; q'`
  1306. srcdir=$ac_confdir
  1307. if test ! -r "$srcdir/$ac_unique_file"; then
  1308. srcdir=..
  1309. fi
  1310. else
  1311. ac_srcdir_defaulted=no
  1312. fi
  1313. if test ! -r "$srcdir/$ac_unique_file"; then
  1314. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1315. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1316. { (exit 1); exit 1; }; }
  1317. fi
  1318. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1319. ac_abs_confdir=`(
  1320. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1321. { (exit 1); exit 1; }; }
  1322. pwd)`
  1323. # When building in place, set srcdir=.
  1324. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1325. srcdir=.
  1326. fi
  1327. # Remove unnecessary trailing slashes from srcdir.
  1328. # Double slashes in file names in object file debugging info
  1329. # mess up M-x gdb in Emacs.
  1330. case $srcdir in
  1331. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1332. esac
  1333. for ac_var in $ac_precious_vars; do
  1334. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1335. eval ac_env_${ac_var}_value=\$${ac_var}
  1336. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1337. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1338. done
  1339. #
  1340. # Report the --help message.
  1341. #
  1342. if test "$ac_init_help" = "long"; then
  1343. # Omit some internal or obsolete options to make the list less imposing.
  1344. # This message is too long to be a string in the A/UX 3.1 sh.
  1345. cat <<_ACEOF
  1346. \`configure' configures popt 1.16 to adapt to many kinds of systems.
  1347. Usage: $0 [OPTION]... [VAR=VALUE]...
  1348. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1349. VAR=VALUE. See below for descriptions of some of the useful variables.
  1350. Defaults for the options are specified in brackets.
  1351. Configuration:
  1352. -h, --help display this help and exit
  1353. --help=short display options specific to this package
  1354. --help=recursive display the short help of all the included packages
  1355. -V, --version display version information and exit
  1356. -q, --quiet, --silent do not print \`checking...' messages
  1357. --cache-file=FILE cache test results in FILE [disabled]
  1358. -C, --config-cache alias for \`--cache-file=config.cache'
  1359. -n, --no-create do not create output files
  1360. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1361. Installation directories:
  1362. --prefix=PREFIX install architecture-independent files in PREFIX
  1363. [$ac_default_prefix]
  1364. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1365. [PREFIX]
  1366. By default, \`make install' will install all the files in
  1367. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1368. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1369. for instance \`--prefix=\$HOME'.
  1370. For better control, use the options below.
  1371. Fine tuning of the installation directories:
  1372. --bindir=DIR user executables [EPREFIX/bin]
  1373. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1374. --libexecdir=DIR program executables [EPREFIX/libexec]
  1375. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1376. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1377. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1378. --libdir=DIR object code libraries [EPREFIX/lib]
  1379. --includedir=DIR C header files [PREFIX/include]
  1380. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1381. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1382. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1383. --infodir=DIR info documentation [DATAROOTDIR/info]
  1384. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1385. --mandir=DIR man documentation [DATAROOTDIR/man]
  1386. --docdir=DIR documentation root [DATAROOTDIR/doc/popt]
  1387. --htmldir=DIR html documentation [DOCDIR]
  1388. --dvidir=DIR dvi documentation [DOCDIR]
  1389. --pdfdir=DIR pdf documentation [DOCDIR]
  1390. --psdir=DIR ps documentation [DOCDIR]
  1391. _ACEOF
  1392. cat <<\_ACEOF
  1393. Program names:
  1394. --program-prefix=PREFIX prepend PREFIX to installed program names
  1395. --program-suffix=SUFFIX append SUFFIX to installed program names
  1396. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1397. System types:
  1398. --build=BUILD configure for building on BUILD [guessed]
  1399. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1400. --target=TARGET configure for building compilers for TARGET [HOST]
  1401. _ACEOF
  1402. fi
  1403. if test -n "$ac_init_help"; then
  1404. case $ac_init_help in
  1405. short | recursive ) echo "Configuration of popt 1.16:";;
  1406. esac
  1407. cat <<\_ACEOF
  1408. Optional Features:
  1409. --disable-option-checking ignore unrecognized --enable/--with options
  1410. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1411. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1412. --enable-maintainer-mode enable make rules and dependencies not useful
  1413. (and sometimes confusing) to the casual installer
  1414. --disable-dependency-tracking speeds up one-time build
  1415. --enable-dependency-tracking do not reject slow dependency extractors
  1416. --enable-shared[=PKGS] build shared libraries [default=yes]
  1417. --enable-static[=PKGS] build static libraries [default=yes]
  1418. --enable-fast-install[=PKGS]
  1419. optimize for fast installation [default=yes]
  1420. --disable-libtool-lock avoid locking (might break parallel builds)
  1421. --disable-largefile omit support for large files
  1422. --enable-ld-version-script
  1423. enable/disable use of linker version script.
  1424. (default is system dependent)
  1425. --enable-build-gcov build POPT instrumented for gcov
  1426. --disable-nls do not use Native Language Support
  1427. --disable-rpath do not hardcode runtime library paths
  1428. Optional Packages:
  1429. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1430. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1431. --with-pic try to use only PIC/non-PIC objects [default=use
  1432. both]
  1433. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1434. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1435. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1436. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1437. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1438. --without-libintl-prefix don't search for libintl in includedir and libdir
  1439. Some influential environment variables:
  1440. CC C compiler command
  1441. CFLAGS C compiler flags
  1442. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1443. nonstandard directory <lib dir>
  1444. LIBS libraries to pass to the linker, e.g. -l<library>
  1445. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1446. you have headers in a nonstandard directory <include dir>
  1447. CPP C preprocessor
  1448. Use these variables to override the choices made by `configure' or to help
  1449. it to find libraries and programs with nonstandard names/locations.
  1450. Report bugs to <popt-devel@rpm5.org>.
  1451. _ACEOF
  1452. ac_status=$?
  1453. fi
  1454. if test "$ac_init_help" = "recursive"; then
  1455. # If there are subdirs, report their specific --help.
  1456. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1457. test -d "$ac_dir" ||
  1458. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1459. continue
  1460. ac_builddir=.
  1461. case "$ac_dir" in
  1462. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *)
  1464. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1465. # A ".." for each directory in $ac_dir_suffix.
  1466. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1467. case $ac_top_builddir_sub in
  1468. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1469. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1470. esac ;;
  1471. esac
  1472. ac_abs_top_builddir=$ac_pwd
  1473. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1474. # for backward compatibility:
  1475. ac_top_builddir=$ac_top_build_prefix
  1476. case $srcdir in
  1477. .) # We are building in place.
  1478. ac_srcdir=.
  1479. ac_top_srcdir=$ac_top_builddir_sub
  1480. ac_abs_top_srcdir=$ac_pwd ;;
  1481. [\\/]* | ?:[\\/]* ) # Absolute name.
  1482. ac_srcdir=$srcdir$ac_dir_suffix;
  1483. ac_top_srcdir=$srcdir
  1484. ac_abs_top_srcdir=$srcdir ;;
  1485. *) # Relative name.
  1486. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1487. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1488. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1489. esac
  1490. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1491. cd "$ac_dir" || { ac_status=$?; continue; }
  1492. # Check for guested configure.
  1493. if test -f "$ac_srcdir/configure.gnu"; then
  1494. echo &&
  1495. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1496. elif test -f "$ac_srcdir/configure"; then
  1497. echo &&
  1498. $SHELL "$ac_srcdir/configure" --help=recursive
  1499. else
  1500. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1501. fi || ac_status=$?
  1502. cd "$ac_pwd" || { ac_status=$?; break; }
  1503. done
  1504. fi
  1505. test -n "$ac_init_help" && exit $ac_status
  1506. if $ac_init_version; then
  1507. cat <<\_ACEOF
  1508. popt configure 1.16
  1509. generated by GNU Autoconf 2.63
  1510. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1511. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1512. This configure script is free software; the Free Software Foundation
  1513. gives unlimited permission to copy, distribute and modify it.
  1514. _ACEOF
  1515. exit
  1516. fi
  1517. cat >config.log <<_ACEOF
  1518. This file contains any messages produced by compilers while
  1519. running configure, to aid debugging if configure makes a mistake.
  1520. It was created by popt $as_me 1.16, which was
  1521. generated by GNU Autoconf 2.63. Invocation command line was
  1522. $ $0 $@
  1523. _ACEOF
  1524. exec 5>>config.log
  1525. {
  1526. cat <<_ASUNAME
  1527. ## --------- ##
  1528. ## Platform. ##
  1529. ## --------- ##
  1530. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1531. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1532. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1533. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1534. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1535. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1536. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1537. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1538. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1539. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1540. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1541. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1542. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1543. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1544. _ASUNAME
  1545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1546. for as_dir in $PATH
  1547. do
  1548. IFS=$as_save_IFS
  1549. test -z "$as_dir" && as_dir=.
  1550. $as_echo "PATH: $as_dir"
  1551. done
  1552. IFS=$as_save_IFS
  1553. } >&5
  1554. cat >&5 <<_ACEOF
  1555. ## ----------- ##
  1556. ## Core tests. ##
  1557. ## ----------- ##
  1558. _ACEOF
  1559. # Keep a trace of the command line.
  1560. # Strip out --no-create and --no-recursion so they do not pile up.
  1561. # Strip out --silent because we don't want to record it for future runs.
  1562. # Also quote any args containing shell meta-characters.
  1563. # Make two passes to allow for proper duplicate-argument suppression.
  1564. ac_configure_args=
  1565. ac_configure_args0=
  1566. ac_configure_args1=
  1567. ac_must_keep_next=false
  1568. for ac_pass in 1 2
  1569. do
  1570. for ac_arg
  1571. do
  1572. case $ac_arg in
  1573. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1574. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1575. | -silent | --silent | --silen | --sile | --sil)
  1576. continue ;;
  1577. *\'*)
  1578. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1579. esac
  1580. case $ac_pass in
  1581. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1582. 2)
  1583. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1584. if test $ac_must_keep_next = true; then
  1585. ac_must_keep_next=false # Got value, back to normal.
  1586. else
  1587. case $ac_arg in
  1588. *=* | --config-cache | -C | -disable-* | --disable-* \
  1589. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1590. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1591. | -with-* | --with-* | -without-* | --without-* | --x)
  1592. case "$ac_configure_args0 " in
  1593. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1594. esac
  1595. ;;
  1596. -* ) ac_must_keep_next=true ;;
  1597. esac
  1598. fi
  1599. ac_configure_args="$ac_configure_args '$ac_arg'"
  1600. ;;
  1601. esac
  1602. done
  1603. done
  1604. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1605. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1606. # When interrupted or exit'd, cleanup temporary files, and complete
  1607. # config.log. We remove comments because anyway the quotes in there
  1608. # would cause problems or look ugly.
  1609. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1610. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1611. trap 'exit_status=$?
  1612. # Save into config.log some information that might help in debugging.
  1613. {
  1614. echo
  1615. cat <<\_ASBOX
  1616. ## ---------------- ##
  1617. ## Cache variables. ##
  1618. ## ---------------- ##
  1619. _ASBOX
  1620. echo
  1621. # The following way of writing the cache mishandles newlines in values,
  1622. (
  1623. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1624. eval ac_val=\$$ac_var
  1625. case $ac_val in #(
  1626. *${as_nl}*)
  1627. case $ac_var in #(
  1628. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1629. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1630. esac
  1631. case $ac_var in #(
  1632. _ | IFS | as_nl) ;; #(
  1633. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1634. *) $as_unset $ac_var ;;
  1635. esac ;;
  1636. esac
  1637. done
  1638. (set) 2>&1 |
  1639. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1640. *${as_nl}ac_space=\ *)
  1641. sed -n \
  1642. "s/'\''/'\''\\\\'\'''\''/g;
  1643. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1644. ;; #(
  1645. *)
  1646. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1647. ;;
  1648. esac |
  1649. sort
  1650. )
  1651. echo
  1652. cat <<\_ASBOX
  1653. ## ----------------- ##
  1654. ## Output variables. ##
  1655. ## ----------------- ##
  1656. _ASBOX
  1657. echo
  1658. for ac_var in $ac_subst_vars
  1659. do
  1660. eval ac_val=\$$ac_var
  1661. case $ac_val in
  1662. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1663. esac
  1664. $as_echo "$ac_var='\''$ac_val'\''"
  1665. done | sort
  1666. echo
  1667. if test -n "$ac_subst_files"; then
  1668. cat <<\_ASBOX
  1669. ## ------------------- ##
  1670. ## File substitutions. ##
  1671. ## ------------------- ##
  1672. _ASBOX
  1673. echo
  1674. for ac_var in $ac_subst_files
  1675. do
  1676. eval ac_val=\$$ac_var
  1677. case $ac_val in
  1678. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1679. esac
  1680. $as_echo "$ac_var='\''$ac_val'\''"
  1681. done | sort
  1682. echo
  1683. fi
  1684. if test -s confdefs.h; then
  1685. cat <<\_ASBOX
  1686. ## ----------- ##
  1687. ## confdefs.h. ##
  1688. ## ----------- ##
  1689. _ASBOX
  1690. echo
  1691. cat confdefs.h
  1692. echo
  1693. fi
  1694. test "$ac_signal" != 0 &&
  1695. $as_echo "$as_me: caught signal $ac_signal"
  1696. $as_echo "$as_me: exit $exit_status"
  1697. } >&5
  1698. rm -f core *.core core.conftest.* &&
  1699. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1700. exit $exit_status
  1701. ' 0
  1702. for ac_signal in 1 2 13 15; do
  1703. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1704. done
  1705. ac_signal=0
  1706. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1707. rm -f -r conftest* confdefs.h
  1708. # Predefined preprocessor variables.
  1709. cat >>confdefs.h <<_ACEOF
  1710. #define PACKAGE_NAME "$PACKAGE_NAME"
  1711. _ACEOF
  1712. cat >>confdefs.h <<_ACEOF
  1713. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1714. _ACEOF
  1715. cat >>confdefs.h <<_ACEOF
  1716. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1717. _ACEOF
  1718. cat >>confdefs.h <<_ACEOF
  1719. #define PACKAGE_STRING "$PACKAGE_STRING"
  1720. _ACEOF
  1721. cat >>confdefs.h <<_ACEOF
  1722. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1723. _ACEOF
  1724. # Let the site file select an alternate cache file if it wants to.
  1725. # Prefer an explicitly selected file to automatically selected ones.
  1726. ac_site_file1=NONE
  1727. ac_site_file2=NONE
  1728. if test -n "$CONFIG_SITE"; then
  1729. ac_site_file1=$CONFIG_SITE
  1730. elif test "x$prefix" != xNONE; then
  1731. ac_site_file1=$prefix/share/config.site
  1732. ac_site_file2=$prefix/etc/config.site
  1733. else
  1734. ac_site_file1=$ac_default_prefix/share/config.site
  1735. ac_site_file2=$ac_default_prefix/etc/config.site
  1736. fi
  1737. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1738. do
  1739. test "x$ac_site_file" = xNONE && continue
  1740. if test -r "$ac_site_file"; then
  1741. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1742. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1743. sed 's/^/| /' "$ac_site_file" >&5
  1744. . "$ac_site_file"
  1745. fi
  1746. done
  1747. if test -r "$cache_file"; then
  1748. # Some versions of bash will fail to source /dev/null (special
  1749. # files actually), so we avoid doing that.
  1750. if test -f "$cache_file"; then
  1751. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1752. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1753. case $cache_file in
  1754. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1755. *) . "./$cache_file";;
  1756. esac
  1757. fi
  1758. else
  1759. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1760. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1761. >$cache_file
  1762. fi
  1763. gt_needs="$gt_needs "
  1764. # Check that the precious variables saved in the cache have kept the same
  1765. # value.
  1766. ac_cache_corrupted=false
  1767. for ac_var in $ac_precious_vars; do
  1768. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1769. eval ac_new_set=\$ac_env_${ac_var}_set
  1770. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1771. eval ac_new_val=\$ac_env_${ac_var}_value
  1772. case $ac_old_set,$ac_new_set in
  1773. set,)
  1774. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1775. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1776. ac_cache_corrupted=: ;;
  1777. ,set)
  1778. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1779. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1780. ac_cache_corrupted=: ;;
  1781. ,);;
  1782. *)
  1783. if test "x$ac_old_val" != "x$ac_new_val"; then
  1784. # differences in whitespace do not lead to failure.
  1785. ac_old_val_w=`echo x $ac_old_val`
  1786. ac_new_val_w=`echo x $ac_new_val`
  1787. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1788. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1789. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1790. ac_cache_corrupted=:
  1791. else
  1792. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1793. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1794. eval $ac_var=\$ac_old_val
  1795. fi
  1796. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1797. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1798. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1799. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1800. fi;;
  1801. esac
  1802. # Pass precious variables to config.status.
  1803. if test "$ac_new_set" = set; then
  1804. case $ac_new_val in
  1805. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1806. *) ac_arg=$ac_var=$ac_new_val ;;
  1807. esac
  1808. case " $ac_configure_args " in
  1809. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1810. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1811. esac
  1812. fi
  1813. done
  1814. if $ac_cache_corrupted; then
  1815. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1817. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1818. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1819. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1820. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1821. { (exit 1); exit 1; }; }
  1822. fi
  1823. ac_ext=c
  1824. ac_cpp='$CPP $CPPFLAGS'
  1825. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1826. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1827. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1828. ac_config_headers="$ac_config_headers config.h"
  1829. ac_aux_dir=
  1830. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1831. if test -f "$ac_dir/install-sh"; then
  1832. ac_aux_dir=$ac_dir
  1833. ac_install_sh="$ac_aux_dir/install-sh -c"
  1834. break
  1835. elif test -f "$ac_dir/install.sh"; then
  1836. ac_aux_dir=$ac_dir
  1837. ac_install_sh="$ac_aux_dir/install.sh -c"
  1838. break
  1839. elif test -f "$ac_dir/shtool"; then
  1840. ac_aux_dir=$ac_dir
  1841. ac_install_sh="$ac_aux_dir/shtool install -c"
  1842. break
  1843. fi
  1844. done
  1845. if test -z "$ac_aux_dir"; then
  1846. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1847. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1848. { (exit 1); exit 1; }; }
  1849. fi
  1850. # These three variables are undocumented and unsupported,
  1851. # and are intended to be withdrawn in a future Autoconf release.
  1852. # They can cause serious problems if a builder's source tree is in a directory
  1853. # whose full name contains unusual characters.
  1854. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1855. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1856. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1857. # Make sure we can run config.sub.
  1858. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1859. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1860. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1861. { (exit 1); exit 1; }; }
  1862. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1863. $as_echo_n "checking build system type... " >&6; }
  1864. if test "${ac_cv_build+set}" = set; then
  1865. $as_echo_n "(cached) " >&6
  1866. else
  1867. ac_build_alias=$build_alias
  1868. test "x$ac_build_alias" = x &&
  1869. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1870. test "x$ac_build_alias" = x &&
  1871. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1872. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1873. { (exit 1); exit 1; }; }
  1874. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1875. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1876. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1877. { (exit 1); exit 1; }; }
  1878. fi
  1879. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1880. $as_echo "$ac_cv_build" >&6; }
  1881. case $ac_cv_build in
  1882. *-*-*) ;;
  1883. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1884. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1885. { (exit 1); exit 1; }; };;
  1886. esac
  1887. build=$ac_cv_build
  1888. ac_save_IFS=$IFS; IFS='-'
  1889. set x $ac_cv_build
  1890. shift
  1891. build_cpu=$1
  1892. build_vendor=$2
  1893. shift; shift
  1894. # Remember, the first character of IFS is used to create $*,
  1895. # except with old shells:
  1896. build_os=$*
  1897. IFS=$ac_save_IFS
  1898. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1899. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1900. $as_echo_n "checking host system type... " >&6; }
  1901. if test "${ac_cv_host+set}" = set; then
  1902. $as_echo_n "(cached) " >&6
  1903. else
  1904. if test "x$host_alias" = x; then
  1905. ac_cv_host=$ac_cv_build
  1906. else
  1907. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1908. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1909. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1910. { (exit 1); exit 1; }; }
  1911. fi
  1912. fi
  1913. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1914. $as_echo "$ac_cv_host" >&6; }
  1915. case $ac_cv_host in
  1916. *-*-*) ;;
  1917. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1918. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1919. { (exit 1); exit 1; }; };;
  1920. esac
  1921. host=$ac_cv_host
  1922. ac_save_IFS=$IFS; IFS='-'
  1923. set x $ac_cv_host
  1924. shift
  1925. host_cpu=$1
  1926. host_vendor=$2
  1927. shift; shift
  1928. # Remember, the first character of IFS is used to create $*,
  1929. # except with old shells:
  1930. host_os=$*
  1931. IFS=$ac_save_IFS
  1932. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1933. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1934. $as_echo_n "checking target system type... " >&6; }
  1935. if test "${ac_cv_target+set}" = set; then
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. if test "x$target_alias" = x; then
  1939. ac_cv_target=$ac_cv_host
  1940. else
  1941. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1942. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1943. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1944. { (exit 1); exit 1; }; }
  1945. fi
  1946. fi
  1947. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1948. $as_echo "$ac_cv_target" >&6; }
  1949. case $ac_cv_target in
  1950. *-*-*) ;;
  1951. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1952. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1953. { (exit 1); exit 1; }; };;
  1954. esac
  1955. target=$ac_cv_target
  1956. ac_save_IFS=$IFS; IFS='-'
  1957. set x $ac_cv_target
  1958. shift
  1959. target_cpu=$1
  1960. target_vendor=$2
  1961. shift; shift
  1962. # Remember, the first character of IFS is used to create $*,
  1963. # except with old shells:
  1964. target_os=$*
  1965. IFS=$ac_save_IFS
  1966. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1967. # The aliases save the names the user supplied, while $host etc.
  1968. # will get canonicalized.
  1969. test -n "$target_alias" &&
  1970. test "$program_prefix$program_suffix$program_transform_name" = \
  1971. NONENONEs,x,x, &&
  1972. program_prefix=${target_alias}-
  1973. am__api_version='1.11'
  1974. # Find a good install program. We prefer a C program (faster),
  1975. # so one script is as good as another. But avoid the broken or
  1976. # incompatible versions:
  1977. # SysV /etc/install, /usr/sbin/install
  1978. # SunOS /usr/etc/install
  1979. # IRIX /sbin/install
  1980. # AIX /bin/install
  1981. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1982. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1983. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1984. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1985. # OS/2's system install, which has a completely different semantic
  1986. # ./install, which can be erroneously created by make from ./install.sh.
  1987. # Reject install programs that cannot install multiple files.
  1988. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1989. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1990. if test -z "$INSTALL"; then
  1991. if test "${ac_cv_path_install+set}" = set; then
  1992. $as_echo_n "(cached) " >&6
  1993. else
  1994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1995. for as_dir in $PATH
  1996. do
  1997. IFS=$as_save_IFS
  1998. test -z "$as_dir" && as_dir=.
  1999. # Account for people who put trailing slashes in PATH elements.
  2000. case $as_dir/ in
  2001. ./ | .// | /cC/* | \
  2002. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2003. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2004. /usr/ucb/* ) ;;
  2005. *)
  2006. # OSF1 and SCO ODT 3.0 have their own names for install.
  2007. # Don't use installbsd from OSF since it installs stuff as root
  2008. # by default.
  2009. for ac_prog in ginstall scoinst install; do
  2010. for ac_exec_ext in '' $ac_executable_extensions; do
  2011. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2012. if test $ac_prog = install &&
  2013. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2014. # AIX install. It has an incompatible calling convention.
  2015. :
  2016. elif test $ac_prog = install &&
  2017. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2018. # program-specific install script used by HP pwplus--don't use.
  2019. :
  2020. else
  2021. rm -rf conftest.one conftest.two conftest.dir
  2022. echo one > conftest.one
  2023. echo two > conftest.two
  2024. mkdir conftest.dir
  2025. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2026. test -s conftest.one && test -s conftest.two &&
  2027. test -s conftest.dir/conftest.one &&
  2028. test -s conftest.dir/conftest.two
  2029. then
  2030. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2031. break 3
  2032. fi
  2033. fi
  2034. fi
  2035. done
  2036. done
  2037. ;;
  2038. esac
  2039. done
  2040. IFS=$as_save_IFS
  2041. rm -rf conftest.one conftest.two conftest.dir
  2042. fi
  2043. if test "${ac_cv_path_install+set}" = set; then
  2044. INSTALL=$ac_cv_path_install
  2045. else
  2046. # As a last resort, use the slow shell script. Don't cache a
  2047. # value for INSTALL within a source directory, because that will
  2048. # break other packages using the cache if that directory is
  2049. # removed, or if the value is a relative name.
  2050. INSTALL=$ac_install_sh
  2051. fi
  2052. fi
  2053. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2054. $as_echo "$INSTALL" >&6; }
  2055. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2056. # It thinks the first close brace ends the variable substitution.
  2057. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2058. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2059. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2060. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2061. $as_echo_n "checking whether build environment is sane... " >&6; }
  2062. # Just in case
  2063. sleep 1
  2064. echo timestamp > conftest.file
  2065. # Reject unsafe characters in $srcdir or the absolute working directory
  2066. # name. Accept space and tab only in the latter.
  2067. am_lf='
  2068. '
  2069. case `pwd` in
  2070. *[\\\"\#\$\&\'\`$am_lf]*)
  2071. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2072. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2073. { (exit 1); exit 1; }; };;
  2074. esac
  2075. case $srcdir in
  2076. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2077. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2078. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2079. { (exit 1); exit 1; }; };;
  2080. esac
  2081. # Do `set' in a subshell so we don't clobber the current shell's
  2082. # arguments. Must try -L first in case configure is actually a
  2083. # symlink; some systems play weird games with the mod time of symlinks
  2084. # (eg FreeBSD returns the mod time of the symlink's containing
  2085. # directory).
  2086. if (
  2087. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2088. if test "$*" = "X"; then
  2089. # -L didn't work.
  2090. set X `ls -t "$srcdir/configure" conftest.file`
  2091. fi
  2092. rm -f conftest.file
  2093. if test "$*" != "X $srcdir/configure conftest.file" \
  2094. && test "$*" != "X conftest.file $srcdir/configure"; then
  2095. # If neither matched, then we have a broken ls. This can happen
  2096. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2097. # broken ls alias from the environment. This has actually
  2098. # happened. Such a system could not be considered "sane".
  2099. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2100. alias in your environment" >&5
  2101. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2102. alias in your environment" >&2;}
  2103. { (exit 1); exit 1; }; }
  2104. fi
  2105. test "$2" = conftest.file
  2106. )
  2107. then
  2108. # Ok.
  2109. :
  2110. else
  2111. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2112. Check your system clock" >&5
  2113. $as_echo "$as_me: error: newly created file is older than distributed files!
  2114. Check your system clock" >&2;}
  2115. { (exit 1); exit 1; }; }
  2116. fi
  2117. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2118. $as_echo "yes" >&6; }
  2119. test "$program_prefix" != NONE &&
  2120. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2121. # Use a double $ so make ignores it.
  2122. test "$program_suffix" != NONE &&
  2123. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2124. # Double any \ or $.
  2125. # By default was `s,x,x', remove it if useless.
  2126. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2127. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2128. # expand $ac_aux_dir to an absolute path
  2129. am_aux_dir=`cd $ac_aux_dir && pwd`
  2130. if test x"${MISSING+set}" != xset; then
  2131. case $am_aux_dir in
  2132. *\ * | *\ *)
  2133. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2134. *)
  2135. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2136. esac
  2137. fi
  2138. # Use eval to expand $SHELL
  2139. if eval "$MISSING --run true"; then
  2140. am_missing_run="$MISSING --run "
  2141. else
  2142. am_missing_run=
  2143. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2144. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2145. fi
  2146. if test x"${install_sh}" != xset; then
  2147. case $am_aux_dir in
  2148. *\ * | *\ *)
  2149. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2150. *)
  2151. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2152. esac
  2153. fi
  2154. # Installed binaries are usually stripped using `strip' when the user
  2155. # run `make install-strip'. However `strip' might not be the right
  2156. # tool to use in cross-compilation environments, therefore Automake
  2157. # will honor the `STRIP' environment variable to overrule this program.
  2158. if test "$cross_compiling" != no; then
  2159. if test -n "$ac_tool_prefix"; then
  2160. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2161. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2162. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. $as_echo_n "checking for $ac_word... " >&6; }
  2164. if test "${ac_cv_prog_STRIP+set}" = set; then
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. if test -n "$STRIP"; then
  2168. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. for ac_exec_ext in '' $ac_executable_extensions; do
  2176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2178. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179. break 2
  2180. fi
  2181. done
  2182. done
  2183. IFS=$as_save_IFS
  2184. fi
  2185. fi
  2186. STRIP=$ac_cv_prog_STRIP
  2187. if test -n "$STRIP"; then
  2188. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2189. $as_echo "$STRIP" >&6; }
  2190. else
  2191. { $as_echo "$as_me:$LINENO: result: no" >&5
  2192. $as_echo "no" >&6; }
  2193. fi
  2194. fi
  2195. if test -z "$ac_cv_prog_STRIP"; then
  2196. ac_ct_STRIP=$STRIP
  2197. # Extract the first word of "strip", so it can be a program name with args.
  2198. set dummy strip; ac_word=$2
  2199. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2200. $as_echo_n "checking for $ac_word... " >&6; }
  2201. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. if test -n "$ac_ct_STRIP"; then
  2205. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2206. else
  2207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208. for as_dir in $PATH
  2209. do
  2210. IFS=$as_save_IFS
  2211. test -z "$as_dir" && as_dir=.
  2212. for ac_exec_ext in '' $ac_executable_extensions; do
  2213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2214. ac_cv_prog_ac_ct_STRIP="strip"
  2215. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2216. break 2
  2217. fi
  2218. done
  2219. done
  2220. IFS=$as_save_IFS
  2221. fi
  2222. fi
  2223. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2224. if test -n "$ac_ct_STRIP"; then
  2225. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2226. $as_echo "$ac_ct_STRIP" >&6; }
  2227. else
  2228. { $as_echo "$as_me:$LINENO: result: no" >&5
  2229. $as_echo "no" >&6; }
  2230. fi
  2231. if test "x$ac_ct_STRIP" = x; then
  2232. STRIP=":"
  2233. else
  2234. case $cross_compiling:$ac_tool_warned in
  2235. yes:)
  2236. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2237. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2238. ac_tool_warned=yes ;;
  2239. esac
  2240. STRIP=$ac_ct_STRIP
  2241. fi
  2242. else
  2243. STRIP="$ac_cv_prog_STRIP"
  2244. fi
  2245. fi
  2246. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2247. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2248. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2249. if test -z "$MKDIR_P"; then
  2250. if test "${ac_cv_path_mkdir+set}" = set; then
  2251. $as_echo_n "(cached) " >&6
  2252. else
  2253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2254. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2255. do
  2256. IFS=$as_save_IFS
  2257. test -z "$as_dir" && as_dir=.
  2258. for ac_prog in mkdir gmkdir; do
  2259. for ac_exec_ext in '' $ac_executable_extensions; do
  2260. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2261. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2262. 'mkdir (GNU coreutils) '* | \
  2263. 'mkdir (coreutils) '* | \
  2264. 'mkdir (fileutils) '4.1*)
  2265. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2266. break 3;;
  2267. esac
  2268. done
  2269. done
  2270. done
  2271. IFS=$as_save_IFS
  2272. fi
  2273. if test "${ac_cv_path_mkdir+set}" = set; then
  2274. MKDIR_P="$ac_cv_path_mkdir -p"
  2275. else
  2276. # As a last resort, use the slow shell script. Don't cache a
  2277. # value for MKDIR_P within a source directory, because that will
  2278. # break other packages using the cache if that directory is
  2279. # removed, or if the value is a relative name.
  2280. test -d ./--version && rmdir ./--version
  2281. MKDIR_P="$ac_install_sh -d"
  2282. fi
  2283. fi
  2284. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2285. $as_echo "$MKDIR_P" >&6; }
  2286. mkdir_p="$MKDIR_P"
  2287. case $mkdir_p in
  2288. [\\/$]* | ?:[\\/]*) ;;
  2289. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2290. esac
  2291. for ac_prog in gawk mawk nawk awk
  2292. do
  2293. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2294. set dummy $ac_prog; ac_word=$2
  2295. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296. $as_echo_n "checking for $ac_word... " >&6; }
  2297. if test "${ac_cv_prog_AWK+set}" = set; then
  2298. $as_echo_n "(cached) " >&6
  2299. else
  2300. if test -n "$AWK"; then
  2301. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. for ac_exec_ext in '' $ac_executable_extensions; do
  2309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310. ac_cv_prog_AWK="$ac_prog"
  2311. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312. break 2
  2313. fi
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. fi
  2318. fi
  2319. AWK=$ac_cv_prog_AWK
  2320. if test -n "$AWK"; then
  2321. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2322. $as_echo "$AWK" >&6; }
  2323. else
  2324. { $as_echo "$as_me:$LINENO: result: no" >&5
  2325. $as_echo "no" >&6; }
  2326. fi
  2327. test -n "$AWK" && break
  2328. done
  2329. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2330. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2331. set x ${MAKE-make}
  2332. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2333. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2334. $as_echo_n "(cached) " >&6
  2335. else
  2336. cat >conftest.make <<\_ACEOF
  2337. SHELL = /bin/sh
  2338. all:
  2339. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2340. _ACEOF
  2341. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2342. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2343. *@@@%%%=?*=@@@%%%*)
  2344. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2345. *)
  2346. eval ac_cv_prog_make_${ac_make}_set=no;;
  2347. esac
  2348. rm -f conftest.make
  2349. fi
  2350. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2351. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2352. $as_echo "yes" >&6; }
  2353. SET_MAKE=
  2354. else
  2355. { $as_echo "$as_me:$LINENO: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. SET_MAKE="MAKE=${MAKE-make}"
  2358. fi
  2359. rm -rf .tst 2>/dev/null
  2360. mkdir .tst 2>/dev/null
  2361. if test -d .tst; then
  2362. am__leading_dot=.
  2363. else
  2364. am__leading_dot=_
  2365. fi
  2366. rmdir .tst 2>/dev/null
  2367. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2368. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2369. # is not polluted with repeated "-I."
  2370. am__isrc=' -I$(srcdir)'
  2371. # test to see if srcdir already configured
  2372. if test -f $srcdir/config.status; then
  2373. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2374. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2375. { (exit 1); exit 1; }; }
  2376. fi
  2377. fi
  2378. # test whether we have cygpath
  2379. if test -z "$CYGPATH_W"; then
  2380. if (cygpath --version) >/dev/null 2>/dev/null; then
  2381. CYGPATH_W='cygpath -w'
  2382. else
  2383. CYGPATH_W=echo
  2384. fi
  2385. fi
  2386. # Define the identity of the package.
  2387. PACKAGE='popt'
  2388. VERSION='1.16'
  2389. cat >>confdefs.h <<_ACEOF
  2390. #define PACKAGE "$PACKAGE"
  2391. _ACEOF
  2392. cat >>confdefs.h <<_ACEOF
  2393. #define VERSION "$VERSION"
  2394. _ACEOF
  2395. # Some tools Automake needs.
  2396. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2397. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2398. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2399. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2400. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2401. # We need awk for the "check" target. The system "awk" is bad on
  2402. # some platforms.
  2403. # Always define AMTAR for backward compatibility.
  2404. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2405. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2406. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2407. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2408. # Check whether --enable-maintainer-mode was given.
  2409. if test "${enable_maintainer_mode+set}" = set; then
  2410. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2411. else
  2412. USE_MAINTAINER_MODE=no
  2413. fi
  2414. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2415. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2416. if test $USE_MAINTAINER_MODE = yes; then
  2417. MAINTAINER_MODE_TRUE=
  2418. MAINTAINER_MODE_FALSE='#'
  2419. else
  2420. MAINTAINER_MODE_TRUE='#'
  2421. MAINTAINER_MODE_FALSE=
  2422. fi
  2423. MAINT=$MAINTAINER_MODE_TRUE
  2424. # Library code modified: REVISION++
  2425. # Interfaces changed/added/removed: CURRENT++ REVISION=0
  2426. # Interfaces added: AGE++
  2427. # Interfaces removed: AGE=0
  2428. LT_CURRENT=0
  2429. LT_REVISION=0
  2430. LT_AGE=8
  2431. ALL_LINGUAS="cs da de eo es fi fr ga gl hu id is it ja ko lv nb nl pl pt ro ru sk sl sv th tr uk vi wa zh_TW zh_CN"
  2432. DEPDIR="${am__leading_dot}deps"
  2433. ac_config_commands="$ac_config_commands depfiles"
  2434. am_make=${MAKE-make}
  2435. cat > confinc << 'END'
  2436. am__doit:
  2437. @echo this is the am__doit target
  2438. .PHONY: am__doit
  2439. END
  2440. # If we don't find an include directive, just comment out the code.
  2441. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2442. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2443. am__include="#"
  2444. am__quote=
  2445. _am_result=none
  2446. # First try GNU make style include.
  2447. echo "include confinc" > confmf
  2448. # Ignore all kinds of additional output from `make'.
  2449. case `$am_make -s -f confmf 2> /dev/null` in #(
  2450. *the\ am__doit\ target*)
  2451. am__include=include
  2452. am__quote=
  2453. _am_result=GNU
  2454. ;;
  2455. esac
  2456. # Now try BSD make style include.
  2457. if test "$am__include" = "#"; then
  2458. echo '.include "confinc"' > confmf
  2459. case `$am_make -s -f confmf 2> /dev/null` in #(
  2460. *the\ am__doit\ target*)
  2461. am__include=.include
  2462. am__quote="\""
  2463. _am_result=BSD
  2464. ;;
  2465. esac
  2466. fi
  2467. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2468. $as_echo "$_am_result" >&6; }
  2469. rm -f confinc confmf
  2470. # Check whether --enable-dependency-tracking was given.
  2471. if test "${enable_dependency_tracking+set}" = set; then
  2472. enableval=$enable_dependency_tracking;
  2473. fi
  2474. if test "x$enable_dependency_tracking" != xno; then
  2475. am_depcomp="$ac_aux_dir/depcomp"
  2476. AMDEPBACKSLASH='\'
  2477. fi
  2478. if test "x$enable_dependency_tracking" != xno; then
  2479. AMDEP_TRUE=
  2480. AMDEP_FALSE='#'
  2481. else
  2482. AMDEP_TRUE='#'
  2483. AMDEP_FALSE=
  2484. fi
  2485. ac_ext=c
  2486. ac_cpp='$CPP $CPPFLAGS'
  2487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2490. if test -n "$ac_tool_prefix"; then
  2491. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2492. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2493. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2494. $as_echo_n "checking for $ac_word... " >&6; }
  2495. if test "${ac_cv_prog_CC+set}" = set; then
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. if test -n "$CC"; then
  2499. ac_cv_prog_CC="$CC" # Let the user override the test.
  2500. else
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. for ac_exec_ext in '' $ac_executable_extensions; do
  2507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2508. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2509. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2510. break 2
  2511. fi
  2512. done
  2513. done
  2514. IFS=$as_save_IFS
  2515. fi
  2516. fi
  2517. CC=$ac_cv_prog_CC
  2518. if test -n "$CC"; then
  2519. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2520. $as_echo "$CC" >&6; }
  2521. else
  2522. { $as_echo "$as_me:$LINENO: result: no" >&5
  2523. $as_echo "no" >&6; }
  2524. fi
  2525. fi
  2526. if test -z "$ac_cv_prog_CC"; then
  2527. ac_ct_CC=$CC
  2528. # Extract the first word of "gcc", so it can be a program name with args.
  2529. set dummy gcc; ac_word=$2
  2530. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2531. $as_echo_n "checking for $ac_word... " >&6; }
  2532. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test -n "$ac_ct_CC"; then
  2536. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2537. else
  2538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2539. for as_dir in $PATH
  2540. do
  2541. IFS=$as_save_IFS
  2542. test -z "$as_dir" && as_dir=.
  2543. for ac_exec_ext in '' $ac_executable_extensions; do
  2544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2545. ac_cv_prog_ac_ct_CC="gcc"
  2546. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2547. break 2
  2548. fi
  2549. done
  2550. done
  2551. IFS=$as_save_IFS
  2552. fi
  2553. fi
  2554. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2555. if test -n "$ac_ct_CC"; then
  2556. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2557. $as_echo "$ac_ct_CC" >&6; }
  2558. else
  2559. { $as_echo "$as_me:$LINENO: result: no" >&5
  2560. $as_echo "no" >&6; }
  2561. fi
  2562. if test "x$ac_ct_CC" = x; then
  2563. CC=""
  2564. else
  2565. case $cross_compiling:$ac_tool_warned in
  2566. yes:)
  2567. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2569. ac_tool_warned=yes ;;
  2570. esac
  2571. CC=$ac_ct_CC
  2572. fi
  2573. else
  2574. CC="$ac_cv_prog_CC"
  2575. fi
  2576. if test -z "$CC"; then
  2577. if test -n "$ac_tool_prefix"; then
  2578. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2579. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2580. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2581. $as_echo_n "checking for $ac_word... " >&6; }
  2582. if test "${ac_cv_prog_CC+set}" = set; then
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. if test -n "$CC"; then
  2586. ac_cv_prog_CC="$CC" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2595. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2596. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597. break 2
  2598. fi
  2599. done
  2600. done
  2601. IFS=$as_save_IFS
  2602. fi
  2603. fi
  2604. CC=$ac_cv_prog_CC
  2605. if test -n "$CC"; then
  2606. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2607. $as_echo "$CC" >&6; }
  2608. else
  2609. { $as_echo "$as_me:$LINENO: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. fi
  2612. fi
  2613. fi
  2614. if test -z "$CC"; then
  2615. # Extract the first word of "cc", so it can be a program name with args.
  2616. set dummy cc; ac_word=$2
  2617. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if test "${ac_cv_prog_CC+set}" = set; then
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$CC"; then
  2623. ac_cv_prog_CC="$CC" # Let the user override the test.
  2624. else
  2625. ac_prog_rejected=no
  2626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2627. for as_dir in $PATH
  2628. do
  2629. IFS=$as_save_IFS
  2630. test -z "$as_dir" && as_dir=.
  2631. for ac_exec_ext in '' $ac_executable_extensions; do
  2632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2633. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2634. ac_prog_rejected=yes
  2635. continue
  2636. fi
  2637. ac_cv_prog_CC="cc"
  2638. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. if test $ac_prog_rejected = yes; then
  2645. # We found a bogon in the path, so make sure we never use it.
  2646. set dummy $ac_cv_prog_CC
  2647. shift
  2648. if test $# != 0; then
  2649. # We chose a different compiler from the bogus one.
  2650. # However, it has the same basename, so the bogon will be chosen
  2651. # first if we set CC to just the basename; use the full file name.
  2652. shift
  2653. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2654. fi
  2655. fi
  2656. fi
  2657. fi
  2658. CC=$ac_cv_prog_CC
  2659. if test -n "$CC"; then
  2660. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2661. $as_echo "$CC" >&6; }
  2662. else
  2663. { $as_echo "$as_me:$LINENO: result: no" >&5
  2664. $as_echo "no" >&6; }
  2665. fi
  2666. fi
  2667. if test -z "$CC"; then
  2668. if test -n "$ac_tool_prefix"; then
  2669. for ac_prog in cl.exe
  2670. do
  2671. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2672. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2673. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2674. $as_echo_n "checking for $ac_word... " >&6; }
  2675. if test "${ac_cv_prog_CC+set}" = set; then
  2676. $as_echo_n "(cached) " >&6
  2677. else
  2678. if test -n "$CC"; then
  2679. ac_cv_prog_CC="$CC" # Let the user override the test.
  2680. else
  2681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2682. for as_dir in $PATH
  2683. do
  2684. IFS=$as_save_IFS
  2685. test -z "$as_dir" && as_dir=.
  2686. for ac_exec_ext in '' $ac_executable_extensions; do
  2687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2688. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2689. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2690. break 2
  2691. fi
  2692. done
  2693. done
  2694. IFS=$as_save_IFS
  2695. fi
  2696. fi
  2697. CC=$ac_cv_prog_CC
  2698. if test -n "$CC"; then
  2699. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2700. $as_echo "$CC" >&6; }
  2701. else
  2702. { $as_echo "$as_me:$LINENO: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. fi
  2705. test -n "$CC" && break
  2706. done
  2707. fi
  2708. if test -z "$CC"; then
  2709. ac_ct_CC=$CC
  2710. for ac_prog in cl.exe
  2711. do
  2712. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2713. set dummy $ac_prog; ac_word=$2
  2714. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2715. $as_echo_n "checking for $ac_word... " >&6; }
  2716. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. if test -n "$ac_ct_CC"; then
  2720. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2729. ac_cv_prog_ac_ct_CC="$ac_prog"
  2730. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2731. break 2
  2732. fi
  2733. done
  2734. done
  2735. IFS=$as_save_IFS
  2736. fi
  2737. fi
  2738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2739. if test -n "$ac_ct_CC"; then
  2740. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2741. $as_echo "$ac_ct_CC" >&6; }
  2742. else
  2743. { $as_echo "$as_me:$LINENO: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. fi
  2746. test -n "$ac_ct_CC" && break
  2747. done
  2748. if test "x$ac_ct_CC" = x; then
  2749. CC=""
  2750. else
  2751. case $cross_compiling:$ac_tool_warned in
  2752. yes:)
  2753. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2755. ac_tool_warned=yes ;;
  2756. esac
  2757. CC=$ac_ct_CC
  2758. fi
  2759. fi
  2760. fi
  2761. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2763. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2764. See \`config.log' for more details." >&5
  2765. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2766. See \`config.log' for more details." >&2;}
  2767. { (exit 1); exit 1; }; }; }
  2768. # Provide some information about the compiler.
  2769. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2770. set X $ac_compile
  2771. ac_compiler=$2
  2772. { (ac_try="$ac_compiler --version >&5"
  2773. case "(($ac_try" in
  2774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775. *) ac_try_echo=$ac_try;;
  2776. esac
  2777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2778. $as_echo "$ac_try_echo") >&5
  2779. (eval "$ac_compiler --version >&5") 2>&5
  2780. ac_status=$?
  2781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2782. (exit $ac_status); }
  2783. { (ac_try="$ac_compiler -v >&5"
  2784. case "(($ac_try" in
  2785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2786. *) ac_try_echo=$ac_try;;
  2787. esac
  2788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2789. $as_echo "$ac_try_echo") >&5
  2790. (eval "$ac_compiler -v >&5") 2>&5
  2791. ac_status=$?
  2792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); }
  2794. { (ac_try="$ac_compiler -V >&5"
  2795. case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2800. $as_echo "$ac_try_echo") >&5
  2801. (eval "$ac_compiler -V >&5") 2>&5
  2802. ac_status=$?
  2803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }
  2805. cat >conftest.$ac_ext <<_ACEOF
  2806. /* confdefs.h. */
  2807. _ACEOF
  2808. cat confdefs.h >>conftest.$ac_ext
  2809. cat >>conftest.$ac_ext <<_ACEOF
  2810. /* end confdefs.h. */
  2811. int
  2812. main ()
  2813. {
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. ac_clean_files_save=$ac_clean_files
  2819. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2820. # Try to create an executable without -o first, disregard a.out.
  2821. # It will help us diagnose broken compilers, and finding out an intuition
  2822. # of exeext.
  2823. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2824. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2825. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2826. # The possible output files:
  2827. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2828. ac_rmfiles=
  2829. for ac_file in $ac_files
  2830. do
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2833. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2834. esac
  2835. done
  2836. rm -f $ac_rmfiles
  2837. if { (ac_try="$ac_link_default"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo") >&5
  2844. (eval "$ac_link_default") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2847. (exit $ac_status); }; then
  2848. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2849. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2850. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2851. # so that the user can short-circuit this test for compilers unknown to
  2852. # Autoconf.
  2853. for ac_file in $ac_files ''
  2854. do
  2855. test -f "$ac_file" || continue
  2856. case $ac_file in
  2857. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2858. ;;
  2859. [ab].out )
  2860. # We found the default executable, but exeext='' is most
  2861. # certainly right.
  2862. break;;
  2863. *.* )
  2864. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2865. then :; else
  2866. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2867. fi
  2868. # We set ac_cv_exeext here because the later test for it is not
  2869. # safe: cross compilers may not add the suffix if given an `-o'
  2870. # argument, so we may need to know it at that point already.
  2871. # Even if this section looks crufty: it has the advantage of
  2872. # actually working.
  2873. break;;
  2874. * )
  2875. break;;
  2876. esac
  2877. done
  2878. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2879. else
  2880. ac_file=''
  2881. fi
  2882. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2883. $as_echo "$ac_file" >&6; }
  2884. if test -z "$ac_file"; then
  2885. $as_echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2890. See \`config.log' for more details." >&5
  2891. $as_echo "$as_me: error: C compiler cannot create executables
  2892. See \`config.log' for more details." >&2;}
  2893. { (exit 77); exit 77; }; }; }
  2894. fi
  2895. ac_exeext=$ac_cv_exeext
  2896. # Check that the compiler produces executables we can run. If not, either
  2897. # the compiler is broken, or we cross compile.
  2898. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2899. $as_echo_n "checking whether the C compiler works... " >&6; }
  2900. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2901. # If not cross compiling, check that we can run a simple program.
  2902. if test "$cross_compiling" != yes; then
  2903. if { ac_try='./$ac_file'
  2904. { (case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo") >&5
  2910. (eval "$ac_try") 2>&5
  2911. ac_status=$?
  2912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2913. (exit $ac_status); }; }; then
  2914. cross_compiling=no
  2915. else
  2916. if test "$cross_compiling" = maybe; then
  2917. cross_compiling=yes
  2918. else
  2919. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2921. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2922. If you meant to cross compile, use \`--host'.
  2923. See \`config.log' for more details." >&5
  2924. $as_echo "$as_me: error: cannot run C compiled programs.
  2925. If you meant to cross compile, use \`--host'.
  2926. See \`config.log' for more details." >&2;}
  2927. { (exit 1); exit 1; }; }; }
  2928. fi
  2929. fi
  2930. fi
  2931. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2932. $as_echo "yes" >&6; }
  2933. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2934. ac_clean_files=$ac_clean_files_save
  2935. # Check that the compiler produces executables we can run. If not, either
  2936. # the compiler is broken, or we cross compile.
  2937. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2938. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2939. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2940. $as_echo "$cross_compiling" >&6; }
  2941. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2942. $as_echo_n "checking for suffix of executables... " >&6; }
  2943. if { (ac_try="$ac_link"
  2944. case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2949. $as_echo "$ac_try_echo") >&5
  2950. (eval "$ac_link") 2>&5
  2951. ac_status=$?
  2952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); }; then
  2954. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2955. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2956. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2957. # `rm'.
  2958. for ac_file in conftest.exe conftest conftest.*; do
  2959. test -f "$ac_file" || continue
  2960. case $ac_file in
  2961. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2962. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2963. break;;
  2964. * ) break;;
  2965. esac
  2966. done
  2967. else
  2968. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2970. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2971. See \`config.log' for more details." >&5
  2972. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2973. See \`config.log' for more details." >&2;}
  2974. { (exit 1); exit 1; }; }; }
  2975. fi
  2976. rm -f conftest$ac_cv_exeext
  2977. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2978. $as_echo "$ac_cv_exeext" >&6; }
  2979. rm -f conftest.$ac_ext
  2980. EXEEXT=$ac_cv_exeext
  2981. ac_exeext=$EXEEXT
  2982. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2983. $as_echo_n "checking for suffix of object files... " >&6; }
  2984. if test "${ac_cv_objext+set}" = set; then
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. cat >conftest.$ac_ext <<_ACEOF
  2988. /* confdefs.h. */
  2989. _ACEOF
  2990. cat confdefs.h >>conftest.$ac_ext
  2991. cat >>conftest.$ac_ext <<_ACEOF
  2992. /* end confdefs.h. */
  2993. int
  2994. main ()
  2995. {
  2996. ;
  2997. return 0;
  2998. }
  2999. _ACEOF
  3000. rm -f conftest.o conftest.obj
  3001. if { (ac_try="$ac_compile"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo") >&5
  3008. (eval "$ac_compile") 2>&5
  3009. ac_status=$?
  3010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3011. (exit $ac_status); }; then
  3012. for ac_file in conftest.o conftest.obj conftest.*; do
  3013. test -f "$ac_file" || continue;
  3014. case $ac_file in
  3015. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3016. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3017. break;;
  3018. esac
  3019. done
  3020. else
  3021. $as_echo "$as_me: failed program was:" >&5
  3022. sed 's/^/| /' conftest.$ac_ext >&5
  3023. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3024. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3025. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3026. See \`config.log' for more details." >&5
  3027. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3028. See \`config.log' for more details." >&2;}
  3029. { (exit 1); exit 1; }; }; }
  3030. fi
  3031. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3032. fi
  3033. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3034. $as_echo "$ac_cv_objext" >&6; }
  3035. OBJEXT=$ac_cv_objext
  3036. ac_objext=$OBJEXT
  3037. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3038. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3039. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. cat >conftest.$ac_ext <<_ACEOF
  3043. /* confdefs.h. */
  3044. _ACEOF
  3045. cat confdefs.h >>conftest.$ac_ext
  3046. cat >>conftest.$ac_ext <<_ACEOF
  3047. /* end confdefs.h. */
  3048. int
  3049. main ()
  3050. {
  3051. #ifndef __GNUC__
  3052. choke me
  3053. #endif
  3054. ;
  3055. return 0;
  3056. }
  3057. _ACEOF
  3058. rm -f conftest.$ac_objext
  3059. if { (ac_try="$ac_compile"
  3060. case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo") >&5
  3066. (eval "$ac_compile") 2>conftest.er1
  3067. ac_status=$?
  3068. grep -v '^ *+' conftest.er1 >conftest.err
  3069. rm -f conftest.er1
  3070. cat conftest.err >&5
  3071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3072. (exit $ac_status); } && {
  3073. test -z "$ac_c_werror_flag" ||
  3074. test ! -s conftest.err
  3075. } && test -s conftest.$ac_objext; then
  3076. ac_compiler_gnu=yes
  3077. else
  3078. $as_echo "$as_me: failed program was:" >&5
  3079. sed 's/^/| /' conftest.$ac_ext >&5
  3080. ac_compiler_gnu=no
  3081. fi
  3082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3083. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3084. fi
  3085. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3086. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3087. if test $ac_compiler_gnu = yes; then
  3088. GCC=yes
  3089. else
  3090. GCC=
  3091. fi
  3092. ac_test_CFLAGS=${CFLAGS+set}
  3093. ac_save_CFLAGS=$CFLAGS
  3094. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3095. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3096. if test "${ac_cv_prog_cc_g+set}" = set; then
  3097. $as_echo_n "(cached) " >&6
  3098. else
  3099. ac_save_c_werror_flag=$ac_c_werror_flag
  3100. ac_c_werror_flag=yes
  3101. ac_cv_prog_cc_g=no
  3102. CFLAGS="-g"
  3103. cat >conftest.$ac_ext <<_ACEOF
  3104. /* confdefs.h. */
  3105. _ACEOF
  3106. cat confdefs.h >>conftest.$ac_ext
  3107. cat >>conftest.$ac_ext <<_ACEOF
  3108. /* end confdefs.h. */
  3109. int
  3110. main ()
  3111. {
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. rm -f conftest.$ac_objext
  3117. if { (ac_try="$ac_compile"
  3118. case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3123. $as_echo "$ac_try_echo") >&5
  3124. (eval "$ac_compile") 2>conftest.er1
  3125. ac_status=$?
  3126. grep -v '^ *+' conftest.er1 >conftest.err
  3127. rm -f conftest.er1
  3128. cat conftest.err >&5
  3129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3130. (exit $ac_status); } && {
  3131. test -z "$ac_c_werror_flag" ||
  3132. test ! -s conftest.err
  3133. } && test -s conftest.$ac_objext; then
  3134. ac_cv_prog_cc_g=yes
  3135. else
  3136. $as_echo "$as_me: failed program was:" >&5
  3137. sed 's/^/| /' conftest.$ac_ext >&5
  3138. CFLAGS=""
  3139. cat >conftest.$ac_ext <<_ACEOF
  3140. /* confdefs.h. */
  3141. _ACEOF
  3142. cat confdefs.h >>conftest.$ac_ext
  3143. cat >>conftest.$ac_ext <<_ACEOF
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. rm -f conftest.$ac_objext
  3153. if { (ac_try="$ac_compile"
  3154. case "(($ac_try" in
  3155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3156. *) ac_try_echo=$ac_try;;
  3157. esac
  3158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3159. $as_echo "$ac_try_echo") >&5
  3160. (eval "$ac_compile") 2>conftest.er1
  3161. ac_status=$?
  3162. grep -v '^ *+' conftest.er1 >conftest.err
  3163. rm -f conftest.er1
  3164. cat conftest.err >&5
  3165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3166. (exit $ac_status); } && {
  3167. test -z "$ac_c_werror_flag" ||
  3168. test ! -s conftest.err
  3169. } && test -s conftest.$ac_objext; then
  3170. :
  3171. else
  3172. $as_echo "$as_me: failed program was:" >&5
  3173. sed 's/^/| /' conftest.$ac_ext >&5
  3174. ac_c_werror_flag=$ac_save_c_werror_flag
  3175. CFLAGS="-g"
  3176. cat >conftest.$ac_ext <<_ACEOF
  3177. /* confdefs.h. */
  3178. _ACEOF
  3179. cat confdefs.h >>conftest.$ac_ext
  3180. cat >>conftest.$ac_ext <<_ACEOF
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. rm -f conftest.$ac_objext
  3190. if { (ac_try="$ac_compile"
  3191. case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3196. $as_echo "$ac_try_echo") >&5
  3197. (eval "$ac_compile") 2>conftest.er1
  3198. ac_status=$?
  3199. grep -v '^ *+' conftest.er1 >conftest.err
  3200. rm -f conftest.er1
  3201. cat conftest.err >&5
  3202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3203. (exit $ac_status); } && {
  3204. test -z "$ac_c_werror_flag" ||
  3205. test ! -s conftest.err
  3206. } && test -s conftest.$ac_objext; then
  3207. ac_cv_prog_cc_g=yes
  3208. else
  3209. $as_echo "$as_me: failed program was:" >&5
  3210. sed 's/^/| /' conftest.$ac_ext >&5
  3211. fi
  3212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. ac_c_werror_flag=$ac_save_c_werror_flag
  3218. fi
  3219. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3220. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3221. if test "$ac_test_CFLAGS" = set; then
  3222. CFLAGS=$ac_save_CFLAGS
  3223. elif test $ac_cv_prog_cc_g = yes; then
  3224. if test "$GCC" = yes; then
  3225. CFLAGS="-g -O2"
  3226. else
  3227. CFLAGS="-g"
  3228. fi
  3229. else
  3230. if test "$GCC" = yes; then
  3231. CFLAGS="-O2"
  3232. else
  3233. CFLAGS=
  3234. fi
  3235. fi
  3236. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3237. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3238. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. ac_cv_prog_cc_c89=no
  3242. ac_save_CC=$CC
  3243. cat >conftest.$ac_ext <<_ACEOF
  3244. /* confdefs.h. */
  3245. _ACEOF
  3246. cat confdefs.h >>conftest.$ac_ext
  3247. cat >>conftest.$ac_ext <<_ACEOF
  3248. /* end confdefs.h. */
  3249. #include <stdarg.h>
  3250. #include <stdio.h>
  3251. #include <sys/types.h>
  3252. #include <sys/stat.h>
  3253. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3254. struct buf { int x; };
  3255. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3256. static char *e (p, i)
  3257. char **p;
  3258. int i;
  3259. {
  3260. return p[i];
  3261. }
  3262. static char *f (char * (*g) (char **, int), char **p, ...)
  3263. {
  3264. char *s;
  3265. va_list v;
  3266. va_start (v,p);
  3267. s = g (p, va_arg (v,int));
  3268. va_end (v);
  3269. return s;
  3270. }
  3271. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3272. function prototypes and stuff, but not '\xHH' hex character constants.
  3273. These don't provoke an error unfortunately, instead are silently treated
  3274. as 'x'. The following induces an error, until -std is added to get
  3275. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3276. array size at least. It's necessary to write '\x00'==0 to get something
  3277. that's true only with -std. */
  3278. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3279. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3280. inside strings and character constants. */
  3281. #define FOO(x) 'x'
  3282. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3283. int test (int i, double x);
  3284. struct s1 {int (*f) (int a);};
  3285. struct s2 {int (*f) (double a);};
  3286. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3287. int argc;
  3288. char **argv;
  3289. int
  3290. main ()
  3291. {
  3292. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3298. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3299. do
  3300. CC="$ac_save_CC $ac_arg"
  3301. rm -f conftest.$ac_objext
  3302. if { (ac_try="$ac_compile"
  3303. case "(($ac_try" in
  3304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3305. *) ac_try_echo=$ac_try;;
  3306. esac
  3307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3308. $as_echo "$ac_try_echo") >&5
  3309. (eval "$ac_compile") 2>conftest.er1
  3310. ac_status=$?
  3311. grep -v '^ *+' conftest.er1 >conftest.err
  3312. rm -f conftest.er1
  3313. cat conftest.err >&5
  3314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3315. (exit $ac_status); } && {
  3316. test -z "$ac_c_werror_flag" ||
  3317. test ! -s conftest.err
  3318. } && test -s conftest.$ac_objext; then
  3319. ac_cv_prog_cc_c89=$ac_arg
  3320. else
  3321. $as_echo "$as_me: failed program was:" >&5
  3322. sed 's/^/| /' conftest.$ac_ext >&5
  3323. fi
  3324. rm -f core conftest.err conftest.$ac_objext
  3325. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3326. done
  3327. rm -f conftest.$ac_ext
  3328. CC=$ac_save_CC
  3329. fi
  3330. # AC_CACHE_VAL
  3331. case "x$ac_cv_prog_cc_c89" in
  3332. x)
  3333. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3334. $as_echo "none needed" >&6; } ;;
  3335. xno)
  3336. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3337. $as_echo "unsupported" >&6; } ;;
  3338. *)
  3339. CC="$CC $ac_cv_prog_cc_c89"
  3340. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3341. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3342. esac
  3343. ac_ext=c
  3344. ac_cpp='$CPP $CPPFLAGS'
  3345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3348. depcc="$CC" am_compiler_list=
  3349. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3350. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3351. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3352. $as_echo_n "(cached) " >&6
  3353. else
  3354. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3355. # We make a subdir and do the tests there. Otherwise we can end up
  3356. # making bogus files that we don't know about and never remove. For
  3357. # instance it was reported that on HP-UX the gcc test will end up
  3358. # making a dummy file named `D' -- because `-MD' means `put the output
  3359. # in D'.
  3360. mkdir conftest.dir
  3361. # Copy depcomp to subdir because otherwise we won't find it if we're
  3362. # using a relative directory.
  3363. cp "$am_depcomp" conftest.dir
  3364. cd conftest.dir
  3365. # We will build objects and dependencies in a subdirectory because
  3366. # it helps to detect inapplicable dependency modes. For instance
  3367. # both Tru64's cc and ICC support -MD to output dependencies as a
  3368. # side effect of compilation, but ICC will put the dependencies in
  3369. # the current directory while Tru64 will put them in the object
  3370. # directory.
  3371. mkdir sub
  3372. am_cv_CC_dependencies_compiler_type=none
  3373. if test "$am_compiler_list" = ""; then
  3374. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3375. fi
  3376. am__universal=false
  3377. case " $depcc " in #(
  3378. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3379. esac
  3380. for depmode in $am_compiler_list; do
  3381. # Setup a source with many dependencies, because some compilers
  3382. # like to wrap large dependency lists on column 80 (with \), and
  3383. # we should not choose a depcomp mode which is confused by this.
  3384. #
  3385. # We need to recreate these files for each test, as the compiler may
  3386. # overwrite some of them when testing with obscure command lines.
  3387. # This happens at least with the AIX C compiler.
  3388. : > sub/conftest.c
  3389. for i in 1 2 3 4 5 6; do
  3390. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3391. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3392. # Solaris 8's {/usr,}/bin/sh.
  3393. touch sub/conftst$i.h
  3394. done
  3395. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3396. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3397. # mode. It turns out that the SunPro C++ compiler does not properly
  3398. # handle `-M -o', and we need to detect this. Also, some Intel
  3399. # versions had trouble with output in subdirs
  3400. am__obj=sub/conftest.${OBJEXT-o}
  3401. am__minus_obj="-o $am__obj"
  3402. case $depmode in
  3403. gcc)
  3404. # This depmode causes a compiler race in universal mode.
  3405. test "$am__universal" = false || continue
  3406. ;;
  3407. nosideeffect)
  3408. # after this tag, mechanisms are not by side-effect, so they'll
  3409. # only be used when explicitly requested
  3410. if test "x$enable_dependency_tracking" = xyes; then
  3411. continue
  3412. else
  3413. break
  3414. fi
  3415. ;;
  3416. msvisualcpp | msvcmsys)
  3417. # This compiler won't grok `-c -o', but also, the minuso test has
  3418. # not run yet. These depmodes are late enough in the game, and
  3419. # so weak that their functioning should not be impacted.
  3420. am__obj=conftest.${OBJEXT-o}
  3421. am__minus_obj=
  3422. ;;
  3423. none) break ;;
  3424. esac
  3425. if depmode=$depmode \
  3426. source=sub/conftest.c object=$am__obj \
  3427. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3428. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3429. >/dev/null 2>conftest.err &&
  3430. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3431. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3432. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3433. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3434. # icc doesn't choke on unknown options, it will just issue warnings
  3435. # or remarks (even with -Werror). So we grep stderr for any message
  3436. # that says an option was ignored or not supported.
  3437. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3438. # icc: Command line warning: ignoring option '-M'; no argument required
  3439. # The diagnosis changed in icc 8.0:
  3440. # icc: Command line remark: option '-MP' not supported
  3441. if (grep 'ignoring option' conftest.err ||
  3442. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3443. am_cv_CC_dependencies_compiler_type=$depmode
  3444. break
  3445. fi
  3446. fi
  3447. done
  3448. cd ..
  3449. rm -rf conftest.dir
  3450. else
  3451. am_cv_CC_dependencies_compiler_type=none
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3455. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3456. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3457. if
  3458. test "x$enable_dependency_tracking" != xno \
  3459. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3460. am__fastdepCC_TRUE=
  3461. am__fastdepCC_FALSE='#'
  3462. else
  3463. am__fastdepCC_TRUE='#'
  3464. am__fastdepCC_FALSE=
  3465. fi
  3466. case $ac_cv_prog_cc_stdc in
  3467. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  3468. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  3469. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3470. if test "${ac_cv_prog_cc_c99+set}" = set; then
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. ac_cv_prog_cc_c99=no
  3474. ac_save_CC=$CC
  3475. cat >conftest.$ac_ext <<_ACEOF
  3476. /* confdefs.h. */
  3477. _ACEOF
  3478. cat confdefs.h >>conftest.$ac_ext
  3479. cat >>conftest.$ac_ext <<_ACEOF
  3480. /* end confdefs.h. */
  3481. #include <stdarg.h>
  3482. #include <stdbool.h>
  3483. #include <stdlib.h>
  3484. #include <wchar.h>
  3485. #include <stdio.h>
  3486. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3487. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3488. #define showlist(...) puts (#__VA_ARGS__)
  3489. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3490. static void
  3491. test_varargs_macros (void)
  3492. {
  3493. int x = 1234;
  3494. int y = 5678;
  3495. debug ("Flag");
  3496. debug ("X = %d\n", x);
  3497. showlist (The first, second, and third items.);
  3498. report (x>y, "x is %d but y is %d", x, y);
  3499. }
  3500. // Check long long types.
  3501. #define BIG64 18446744073709551615ull
  3502. #define BIG32 4294967295ul
  3503. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3504. #if !BIG_OK
  3505. your preprocessor is broken;
  3506. #endif
  3507. #if BIG_OK
  3508. #else
  3509. your preprocessor is broken;
  3510. #endif
  3511. static long long int bignum = -9223372036854775807LL;
  3512. static unsigned long long int ubignum = BIG64;
  3513. struct incomplete_array
  3514. {
  3515. int datasize;
  3516. double data[];
  3517. };
  3518. struct named_init {
  3519. int number;
  3520. const wchar_t *name;
  3521. double average;
  3522. };
  3523. typedef const char *ccp;
  3524. static inline int
  3525. test_restrict (ccp restrict text)
  3526. {
  3527. // See if C++-style comments work.
  3528. // Iterate through items via the restricted pointer.
  3529. // Also check for declarations in for loops.
  3530. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3531. continue;
  3532. return 0;
  3533. }
  3534. // Check varargs and va_copy.
  3535. static void
  3536. test_varargs (const char *format, ...)
  3537. {
  3538. va_list args;
  3539. va_start (args, format);
  3540. va_list args_copy;
  3541. va_copy (args_copy, args);
  3542. const char *str;
  3543. int number;
  3544. float fnumber;
  3545. while (*format)
  3546. {
  3547. switch (*format++)
  3548. {
  3549. case 's': // string
  3550. str = va_arg (args_copy, const char *);
  3551. break;
  3552. case 'd': // int
  3553. number = va_arg (args_copy, int);
  3554. break;
  3555. case 'f': // float
  3556. fnumber = va_arg (args_copy, double);
  3557. break;
  3558. default:
  3559. break;
  3560. }
  3561. }
  3562. va_end (args_copy);
  3563. va_end (args);
  3564. }
  3565. int
  3566. main ()
  3567. {
  3568. // Check bool.
  3569. _Bool success = false;
  3570. // Check restrict.
  3571. if (test_restrict ("String literal") == 0)
  3572. success = true;
  3573. char *restrict newvar = "Another string";
  3574. // Check varargs.
  3575. test_varargs ("s, d' f .", "string", 65, 34.234);
  3576. test_varargs_macros ();
  3577. // Check flexible array members.
  3578. struct incomplete_array *ia =
  3579. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3580. ia->datasize = 10;
  3581. for (int i = 0; i < ia->datasize; ++i)
  3582. ia->data[i] = i * 1.234;
  3583. // Check named initializers.
  3584. struct named_init ni = {
  3585. .number = 34,
  3586. .name = L"Test wide string",
  3587. .average = 543.34343,
  3588. };
  3589. ni.number = 58;
  3590. int dynamic_array[ni.number];
  3591. dynamic_array[ni.number - 1] = 543;
  3592. // work around unused variable warnings
  3593. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3594. || dynamic_array[ni.number - 1] != 543);
  3595. ;
  3596. return 0;
  3597. }
  3598. _ACEOF
  3599. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3600. do
  3601. CC="$ac_save_CC $ac_arg"
  3602. rm -f conftest.$ac_objext
  3603. if { (ac_try="$ac_compile"
  3604. case "(($ac_try" in
  3605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3606. *) ac_try_echo=$ac_try;;
  3607. esac
  3608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3609. $as_echo "$ac_try_echo") >&5
  3610. (eval "$ac_compile") 2>conftest.er1
  3611. ac_status=$?
  3612. grep -v '^ *+' conftest.er1 >conftest.err
  3613. rm -f conftest.er1
  3614. cat conftest.err >&5
  3615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } && {
  3617. test -z "$ac_c_werror_flag" ||
  3618. test ! -s conftest.err
  3619. } && test -s conftest.$ac_objext; then
  3620. ac_cv_prog_cc_c99=$ac_arg
  3621. else
  3622. $as_echo "$as_me: failed program was:" >&5
  3623. sed 's/^/| /' conftest.$ac_ext >&5
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext
  3626. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3627. done
  3628. rm -f conftest.$ac_ext
  3629. CC=$ac_save_CC
  3630. fi
  3631. # AC_CACHE_VAL
  3632. case "x$ac_cv_prog_cc_c99" in
  3633. x)
  3634. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3635. $as_echo "none needed" >&6; } ;;
  3636. xno)
  3637. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3638. $as_echo "unsupported" >&6; } ;;
  3639. *)
  3640. CC="$CC $ac_cv_prog_cc_c99"
  3641. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3642. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3643. esac
  3644. if test "x$ac_cv_prog_cc_c99" != xno; then
  3645. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3646. else
  3647. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3648. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3649. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. ac_cv_prog_cc_c89=no
  3653. ac_save_CC=$CC
  3654. cat >conftest.$ac_ext <<_ACEOF
  3655. /* confdefs.h. */
  3656. _ACEOF
  3657. cat confdefs.h >>conftest.$ac_ext
  3658. cat >>conftest.$ac_ext <<_ACEOF
  3659. /* end confdefs.h. */
  3660. #include <stdarg.h>
  3661. #include <stdio.h>
  3662. #include <sys/types.h>
  3663. #include <sys/stat.h>
  3664. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3665. struct buf { int x; };
  3666. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3667. static char *e (p, i)
  3668. char **p;
  3669. int i;
  3670. {
  3671. return p[i];
  3672. }
  3673. static char *f (char * (*g) (char **, int), char **p, ...)
  3674. {
  3675. char *s;
  3676. va_list v;
  3677. va_start (v,p);
  3678. s = g (p, va_arg (v,int));
  3679. va_end (v);
  3680. return s;
  3681. }
  3682. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3683. function prototypes and stuff, but not '\xHH' hex character constants.
  3684. These don't provoke an error unfortunately, instead are silently treated
  3685. as 'x'. The following induces an error, until -std is added to get
  3686. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3687. array size at least. It's necessary to write '\x00'==0 to get something
  3688. that's true only with -std. */
  3689. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3690. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3691. inside strings and character constants. */
  3692. #define FOO(x) 'x'
  3693. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3694. int test (int i, double x);
  3695. struct s1 {int (*f) (int a);};
  3696. struct s2 {int (*f) (double a);};
  3697. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3698. int argc;
  3699. char **argv;
  3700. int
  3701. main ()
  3702. {
  3703. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3709. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3710. do
  3711. CC="$ac_save_CC $ac_arg"
  3712. rm -f conftest.$ac_objext
  3713. if { (ac_try="$ac_compile"
  3714. case "(($ac_try" in
  3715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3716. *) ac_try_echo=$ac_try;;
  3717. esac
  3718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3719. $as_echo "$ac_try_echo") >&5
  3720. (eval "$ac_compile") 2>conftest.er1
  3721. ac_status=$?
  3722. grep -v '^ *+' conftest.er1 >conftest.err
  3723. rm -f conftest.er1
  3724. cat conftest.err >&5
  3725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); } && {
  3727. test -z "$ac_c_werror_flag" ||
  3728. test ! -s conftest.err
  3729. } && test -s conftest.$ac_objext; then
  3730. ac_cv_prog_cc_c89=$ac_arg
  3731. else
  3732. $as_echo "$as_me: failed program was:" >&5
  3733. sed 's/^/| /' conftest.$ac_ext >&5
  3734. fi
  3735. rm -f core conftest.err conftest.$ac_objext
  3736. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3737. done
  3738. rm -f conftest.$ac_ext
  3739. CC=$ac_save_CC
  3740. fi
  3741. # AC_CACHE_VAL
  3742. case "x$ac_cv_prog_cc_c89" in
  3743. x)
  3744. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3745. $as_echo "none needed" >&6; } ;;
  3746. xno)
  3747. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3748. $as_echo "unsupported" >&6; } ;;
  3749. *)
  3750. CC="$CC $ac_cv_prog_cc_c89"
  3751. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3752. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3753. esac
  3754. if test "x$ac_cv_prog_cc_c89" != xno; then
  3755. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3756. else
  3757. ac_cv_prog_cc_stdc=no
  3758. fi
  3759. fi
  3760. ;;
  3761. esac
  3762. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  3763. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  3764. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3765. $as_echo_n "(cached) " >&6
  3766. fi
  3767. case $ac_cv_prog_cc_stdc in
  3768. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3769. $as_echo "unsupported" >&6; } ;;
  3770. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3771. $as_echo "none needed" >&6; } ;;
  3772. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3773. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  3774. esac
  3775. ac_ext=c
  3776. ac_cpp='$CPP $CPPFLAGS'
  3777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3780. if test -n "$ac_tool_prefix"; then
  3781. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3782. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3783. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3784. $as_echo_n "checking for $ac_word... " >&6; }
  3785. if test "${ac_cv_prog_CC+set}" = set; then
  3786. $as_echo_n "(cached) " >&6
  3787. else
  3788. if test -n "$CC"; then
  3789. ac_cv_prog_CC="$CC" # Let the user override the test.
  3790. else
  3791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3792. for as_dir in $PATH
  3793. do
  3794. IFS=$as_save_IFS
  3795. test -z "$as_dir" && as_dir=.
  3796. for ac_exec_ext in '' $ac_executable_extensions; do
  3797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3798. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3799. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3800. break 2
  3801. fi
  3802. done
  3803. done
  3804. IFS=$as_save_IFS
  3805. fi
  3806. fi
  3807. CC=$ac_cv_prog_CC
  3808. if test -n "$CC"; then
  3809. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3810. $as_echo "$CC" >&6; }
  3811. else
  3812. { $as_echo "$as_me:$LINENO: result: no" >&5
  3813. $as_echo "no" >&6; }
  3814. fi
  3815. fi
  3816. if test -z "$ac_cv_prog_CC"; then
  3817. ac_ct_CC=$CC
  3818. # Extract the first word of "gcc", so it can be a program name with args.
  3819. set dummy gcc; ac_word=$2
  3820. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3821. $as_echo_n "checking for $ac_word... " >&6; }
  3822. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. if test -n "$ac_ct_CC"; then
  3826. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3827. else
  3828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3829. for as_dir in $PATH
  3830. do
  3831. IFS=$as_save_IFS
  3832. test -z "$as_dir" && as_dir=.
  3833. for ac_exec_ext in '' $ac_executable_extensions; do
  3834. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3835. ac_cv_prog_ac_ct_CC="gcc"
  3836. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3837. break 2
  3838. fi
  3839. done
  3840. done
  3841. IFS=$as_save_IFS
  3842. fi
  3843. fi
  3844. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3845. if test -n "$ac_ct_CC"; then
  3846. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3847. $as_echo "$ac_ct_CC" >&6; }
  3848. else
  3849. { $as_echo "$as_me:$LINENO: result: no" >&5
  3850. $as_echo "no" >&6; }
  3851. fi
  3852. if test "x$ac_ct_CC" = x; then
  3853. CC=""
  3854. else
  3855. case $cross_compiling:$ac_tool_warned in
  3856. yes:)
  3857. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3858. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3859. ac_tool_warned=yes ;;
  3860. esac
  3861. CC=$ac_ct_CC
  3862. fi
  3863. else
  3864. CC="$ac_cv_prog_CC"
  3865. fi
  3866. if test -z "$CC"; then
  3867. if test -n "$ac_tool_prefix"; then
  3868. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3869. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3870. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3871. $as_echo_n "checking for $ac_word... " >&6; }
  3872. if test "${ac_cv_prog_CC+set}" = set; then
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. if test -n "$CC"; then
  3876. ac_cv_prog_CC="$CC" # Let the user override the test.
  3877. else
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3885. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3886. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887. break 2
  3888. fi
  3889. done
  3890. done
  3891. IFS=$as_save_IFS
  3892. fi
  3893. fi
  3894. CC=$ac_cv_prog_CC
  3895. if test -n "$CC"; then
  3896. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3897. $as_echo "$CC" >&6; }
  3898. else
  3899. { $as_echo "$as_me:$LINENO: result: no" >&5
  3900. $as_echo "no" >&6; }
  3901. fi
  3902. fi
  3903. fi
  3904. if test -z "$CC"; then
  3905. # Extract the first word of "cc", so it can be a program name with args.
  3906. set dummy cc; ac_word=$2
  3907. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3908. $as_echo_n "checking for $ac_word... " >&6; }
  3909. if test "${ac_cv_prog_CC+set}" = set; then
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. if test -n "$CC"; then
  3913. ac_cv_prog_CC="$CC" # Let the user override the test.
  3914. else
  3915. ac_prog_rejected=no
  3916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3917. for as_dir in $PATH
  3918. do
  3919. IFS=$as_save_IFS
  3920. test -z "$as_dir" && as_dir=.
  3921. for ac_exec_ext in '' $ac_executable_extensions; do
  3922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3923. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3924. ac_prog_rejected=yes
  3925. continue
  3926. fi
  3927. ac_cv_prog_CC="cc"
  3928. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929. break 2
  3930. fi
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. if test $ac_prog_rejected = yes; then
  3935. # We found a bogon in the path, so make sure we never use it.
  3936. set dummy $ac_cv_prog_CC
  3937. shift
  3938. if test $# != 0; then
  3939. # We chose a different compiler from the bogus one.
  3940. # However, it has the same basename, so the bogon will be chosen
  3941. # first if we set CC to just the basename; use the full file name.
  3942. shift
  3943. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3944. fi
  3945. fi
  3946. fi
  3947. fi
  3948. CC=$ac_cv_prog_CC
  3949. if test -n "$CC"; then
  3950. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3951. $as_echo "$CC" >&6; }
  3952. else
  3953. { $as_echo "$as_me:$LINENO: result: no" >&5
  3954. $as_echo "no" >&6; }
  3955. fi
  3956. fi
  3957. if test -z "$CC"; then
  3958. if test -n "$ac_tool_prefix"; then
  3959. for ac_prog in cl.exe
  3960. do
  3961. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3962. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3963. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if test "${ac_cv_prog_CC+set}" = set; then
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if test -n "$CC"; then
  3969. ac_cv_prog_CC="$CC" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3978. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3979. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. CC=$ac_cv_prog_CC
  3988. if test -n "$CC"; then
  3989. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3990. $as_echo "$CC" >&6; }
  3991. else
  3992. { $as_echo "$as_me:$LINENO: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. fi
  3995. test -n "$CC" && break
  3996. done
  3997. fi
  3998. if test -z "$CC"; then
  3999. ac_ct_CC=$CC
  4000. for ac_prog in cl.exe
  4001. do
  4002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4003. set dummy $ac_prog; ac_word=$2
  4004. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4005. $as_echo_n "checking for $ac_word... " >&6; }
  4006. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -n "$ac_ct_CC"; then
  4010. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4011. else
  4012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4013. for as_dir in $PATH
  4014. do
  4015. IFS=$as_save_IFS
  4016. test -z "$as_dir" && as_dir=.
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4019. ac_cv_prog_ac_ct_CC="$ac_prog"
  4020. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4021. break 2
  4022. fi
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. fi
  4027. fi
  4028. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4029. if test -n "$ac_ct_CC"; then
  4030. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4031. $as_echo "$ac_ct_CC" >&6; }
  4032. else
  4033. { $as_echo "$as_me:$LINENO: result: no" >&5
  4034. $as_echo "no" >&6; }
  4035. fi
  4036. test -n "$ac_ct_CC" && break
  4037. done
  4038. if test "x$ac_ct_CC" = x; then
  4039. CC=""
  4040. else
  4041. case $cross_compiling:$ac_tool_warned in
  4042. yes:)
  4043. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4045. ac_tool_warned=yes ;;
  4046. esac
  4047. CC=$ac_ct_CC
  4048. fi
  4049. fi
  4050. fi
  4051. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4053. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4054. See \`config.log' for more details." >&5
  4055. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4056. See \`config.log' for more details." >&2;}
  4057. { (exit 1); exit 1; }; }; }
  4058. # Provide some information about the compiler.
  4059. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4060. set X $ac_compile
  4061. ac_compiler=$2
  4062. { (ac_try="$ac_compiler --version >&5"
  4063. case "(($ac_try" in
  4064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4065. *) ac_try_echo=$ac_try;;
  4066. esac
  4067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4068. $as_echo "$ac_try_echo") >&5
  4069. (eval "$ac_compiler --version >&5") 2>&5
  4070. ac_status=$?
  4071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4072. (exit $ac_status); }
  4073. { (ac_try="$ac_compiler -v >&5"
  4074. case "(($ac_try" in
  4075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4076. *) ac_try_echo=$ac_try;;
  4077. esac
  4078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4079. $as_echo "$ac_try_echo") >&5
  4080. (eval "$ac_compiler -v >&5") 2>&5
  4081. ac_status=$?
  4082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); }
  4084. { (ac_try="$ac_compiler -V >&5"
  4085. case "(($ac_try" in
  4086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4087. *) ac_try_echo=$ac_try;;
  4088. esac
  4089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4090. $as_echo "$ac_try_echo") >&5
  4091. (eval "$ac_compiler -V >&5") 2>&5
  4092. ac_status=$?
  4093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); }
  4095. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4096. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4097. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. cat >conftest.$ac_ext <<_ACEOF
  4101. /* confdefs.h. */
  4102. _ACEOF
  4103. cat confdefs.h >>conftest.$ac_ext
  4104. cat >>conftest.$ac_ext <<_ACEOF
  4105. /* end confdefs.h. */
  4106. int
  4107. main ()
  4108. {
  4109. #ifndef __GNUC__
  4110. choke me
  4111. #endif
  4112. ;
  4113. return 0;
  4114. }
  4115. _ACEOF
  4116. rm -f conftest.$ac_objext
  4117. if { (ac_try="$ac_compile"
  4118. case "(($ac_try" in
  4119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4120. *) ac_try_echo=$ac_try;;
  4121. esac
  4122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4123. $as_echo "$ac_try_echo") >&5
  4124. (eval "$ac_compile") 2>conftest.er1
  4125. ac_status=$?
  4126. grep -v '^ *+' conftest.er1 >conftest.err
  4127. rm -f conftest.er1
  4128. cat conftest.err >&5
  4129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4130. (exit $ac_status); } && {
  4131. test -z "$ac_c_werror_flag" ||
  4132. test ! -s conftest.err
  4133. } && test -s conftest.$ac_objext; then
  4134. ac_compiler_gnu=yes
  4135. else
  4136. $as_echo "$as_me: failed program was:" >&5
  4137. sed 's/^/| /' conftest.$ac_ext >&5
  4138. ac_compiler_gnu=no
  4139. fi
  4140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4141. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4142. fi
  4143. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4144. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4145. if test $ac_compiler_gnu = yes; then
  4146. GCC=yes
  4147. else
  4148. GCC=
  4149. fi
  4150. ac_test_CFLAGS=${CFLAGS+set}
  4151. ac_save_CFLAGS=$CFLAGS
  4152. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4153. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4154. if test "${ac_cv_prog_cc_g+set}" = set; then
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. ac_save_c_werror_flag=$ac_c_werror_flag
  4158. ac_c_werror_flag=yes
  4159. ac_cv_prog_cc_g=no
  4160. CFLAGS="-g"
  4161. cat >conftest.$ac_ext <<_ACEOF
  4162. /* confdefs.h. */
  4163. _ACEOF
  4164. cat confdefs.h >>conftest.$ac_ext
  4165. cat >>conftest.$ac_ext <<_ACEOF
  4166. /* end confdefs.h. */
  4167. int
  4168. main ()
  4169. {
  4170. ;
  4171. return 0;
  4172. }
  4173. _ACEOF
  4174. rm -f conftest.$ac_objext
  4175. if { (ac_try="$ac_compile"
  4176. case "(($ac_try" in
  4177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4178. *) ac_try_echo=$ac_try;;
  4179. esac
  4180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4181. $as_echo "$ac_try_echo") >&5
  4182. (eval "$ac_compile") 2>conftest.er1
  4183. ac_status=$?
  4184. grep -v '^ *+' conftest.er1 >conftest.err
  4185. rm -f conftest.er1
  4186. cat conftest.err >&5
  4187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. (exit $ac_status); } && {
  4189. test -z "$ac_c_werror_flag" ||
  4190. test ! -s conftest.err
  4191. } && test -s conftest.$ac_objext; then
  4192. ac_cv_prog_cc_g=yes
  4193. else
  4194. $as_echo "$as_me: failed program was:" >&5
  4195. sed 's/^/| /' conftest.$ac_ext >&5
  4196. CFLAGS=""
  4197. cat >conftest.$ac_ext <<_ACEOF
  4198. /* confdefs.h. */
  4199. _ACEOF
  4200. cat confdefs.h >>conftest.$ac_ext
  4201. cat >>conftest.$ac_ext <<_ACEOF
  4202. /* end confdefs.h. */
  4203. int
  4204. main ()
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. rm -f conftest.$ac_objext
  4211. if { (ac_try="$ac_compile"
  4212. case "(($ac_try" in
  4213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4214. *) ac_try_echo=$ac_try;;
  4215. esac
  4216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4217. $as_echo "$ac_try_echo") >&5
  4218. (eval "$ac_compile") 2>conftest.er1
  4219. ac_status=$?
  4220. grep -v '^ *+' conftest.er1 >conftest.err
  4221. rm -f conftest.er1
  4222. cat conftest.err >&5
  4223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224. (exit $ac_status); } && {
  4225. test -z "$ac_c_werror_flag" ||
  4226. test ! -s conftest.err
  4227. } && test -s conftest.$ac_objext; then
  4228. :
  4229. else
  4230. $as_echo "$as_me: failed program was:" >&5
  4231. sed 's/^/| /' conftest.$ac_ext >&5
  4232. ac_c_werror_flag=$ac_save_c_werror_flag
  4233. CFLAGS="-g"
  4234. cat >conftest.$ac_ext <<_ACEOF
  4235. /* confdefs.h. */
  4236. _ACEOF
  4237. cat confdefs.h >>conftest.$ac_ext
  4238. cat >>conftest.$ac_ext <<_ACEOF
  4239. /* end confdefs.h. */
  4240. int
  4241. main ()
  4242. {
  4243. ;
  4244. return 0;
  4245. }
  4246. _ACEOF
  4247. rm -f conftest.$ac_objext
  4248. if { (ac_try="$ac_compile"
  4249. case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4254. $as_echo "$ac_try_echo") >&5
  4255. (eval "$ac_compile") 2>conftest.er1
  4256. ac_status=$?
  4257. grep -v '^ *+' conftest.er1 >conftest.err
  4258. rm -f conftest.er1
  4259. cat conftest.err >&5
  4260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); } && {
  4262. test -z "$ac_c_werror_flag" ||
  4263. test ! -s conftest.err
  4264. } && test -s conftest.$ac_objext; then
  4265. ac_cv_prog_cc_g=yes
  4266. else
  4267. $as_echo "$as_me: failed program was:" >&5
  4268. sed 's/^/| /' conftest.$ac_ext >&5
  4269. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. fi
  4272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4273. fi
  4274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4275. ac_c_werror_flag=$ac_save_c_werror_flag
  4276. fi
  4277. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4278. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4279. if test "$ac_test_CFLAGS" = set; then
  4280. CFLAGS=$ac_save_CFLAGS
  4281. elif test $ac_cv_prog_cc_g = yes; then
  4282. if test "$GCC" = yes; then
  4283. CFLAGS="-g -O2"
  4284. else
  4285. CFLAGS="-g"
  4286. fi
  4287. else
  4288. if test "$GCC" = yes; then
  4289. CFLAGS="-O2"
  4290. else
  4291. CFLAGS=
  4292. fi
  4293. fi
  4294. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4295. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4296. if test "${ac_cv_prog_cc_c89+set}" = set; then
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. ac_cv_prog_cc_c89=no
  4300. ac_save_CC=$CC
  4301. cat >conftest.$ac_ext <<_ACEOF
  4302. /* confdefs.h. */
  4303. _ACEOF
  4304. cat confdefs.h >>conftest.$ac_ext
  4305. cat >>conftest.$ac_ext <<_ACEOF
  4306. /* end confdefs.h. */
  4307. #include <stdarg.h>
  4308. #include <stdio.h>
  4309. #include <sys/types.h>
  4310. #include <sys/stat.h>
  4311. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4312. struct buf { int x; };
  4313. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4314. static char *e (p, i)
  4315. char **p;
  4316. int i;
  4317. {
  4318. return p[i];
  4319. }
  4320. static char *f (char * (*g) (char **, int), char **p, ...)
  4321. {
  4322. char *s;
  4323. va_list v;
  4324. va_start (v,p);
  4325. s = g (p, va_arg (v,int));
  4326. va_end (v);
  4327. return s;
  4328. }
  4329. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4330. function prototypes and stuff, but not '\xHH' hex character constants.
  4331. These don't provoke an error unfortunately, instead are silently treated
  4332. as 'x'. The following induces an error, until -std is added to get
  4333. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4334. array size at least. It's necessary to write '\x00'==0 to get something
  4335. that's true only with -std. */
  4336. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4337. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4338. inside strings and character constants. */
  4339. #define FOO(x) 'x'
  4340. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4341. int test (int i, double x);
  4342. struct s1 {int (*f) (int a);};
  4343. struct s2 {int (*f) (double a);};
  4344. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4345. int argc;
  4346. char **argv;
  4347. int
  4348. main ()
  4349. {
  4350. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4351. ;
  4352. return 0;
  4353. }
  4354. _ACEOF
  4355. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4356. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4357. do
  4358. CC="$ac_save_CC $ac_arg"
  4359. rm -f conftest.$ac_objext
  4360. if { (ac_try="$ac_compile"
  4361. case "(($ac_try" in
  4362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4363. *) ac_try_echo=$ac_try;;
  4364. esac
  4365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4366. $as_echo "$ac_try_echo") >&5
  4367. (eval "$ac_compile") 2>conftest.er1
  4368. ac_status=$?
  4369. grep -v '^ *+' conftest.er1 >conftest.err
  4370. rm -f conftest.er1
  4371. cat conftest.err >&5
  4372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4373. (exit $ac_status); } && {
  4374. test -z "$ac_c_werror_flag" ||
  4375. test ! -s conftest.err
  4376. } && test -s conftest.$ac_objext; then
  4377. ac_cv_prog_cc_c89=$ac_arg
  4378. else
  4379. $as_echo "$as_me: failed program was:" >&5
  4380. sed 's/^/| /' conftest.$ac_ext >&5
  4381. fi
  4382. rm -f core conftest.err conftest.$ac_objext
  4383. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4384. done
  4385. rm -f conftest.$ac_ext
  4386. CC=$ac_save_CC
  4387. fi
  4388. # AC_CACHE_VAL
  4389. case "x$ac_cv_prog_cc_c89" in
  4390. x)
  4391. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4392. $as_echo "none needed" >&6; } ;;
  4393. xno)
  4394. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4395. $as_echo "unsupported" >&6; } ;;
  4396. *)
  4397. CC="$CC $ac_cv_prog_cc_c89"
  4398. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4399. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4400. esac
  4401. ac_ext=c
  4402. ac_cpp='$CPP $CPPFLAGS'
  4403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4406. depcc="$CC" am_compiler_list=
  4407. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4408. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4409. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4413. # We make a subdir and do the tests there. Otherwise we can end up
  4414. # making bogus files that we don't know about and never remove. For
  4415. # instance it was reported that on HP-UX the gcc test will end up
  4416. # making a dummy file named `D' -- because `-MD' means `put the output
  4417. # in D'.
  4418. mkdir conftest.dir
  4419. # Copy depcomp to subdir because otherwise we won't find it if we're
  4420. # using a relative directory.
  4421. cp "$am_depcomp" conftest.dir
  4422. cd conftest.dir
  4423. # We will build objects and dependencies in a subdirectory because
  4424. # it helps to detect inapplicable dependency modes. For instance
  4425. # both Tru64's cc and ICC support -MD to output dependencies as a
  4426. # side effect of compilation, but ICC will put the dependencies in
  4427. # the current directory while Tru64 will put them in the object
  4428. # directory.
  4429. mkdir sub
  4430. am_cv_CC_dependencies_compiler_type=none
  4431. if test "$am_compiler_list" = ""; then
  4432. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4433. fi
  4434. am__universal=false
  4435. case " $depcc " in #(
  4436. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4437. esac
  4438. for depmode in $am_compiler_list; do
  4439. # Setup a source with many dependencies, because some compilers
  4440. # like to wrap large dependency lists on column 80 (with \), and
  4441. # we should not choose a depcomp mode which is confused by this.
  4442. #
  4443. # We need to recreate these files for each test, as the compiler may
  4444. # overwrite some of them when testing with obscure command lines.
  4445. # This happens at least with the AIX C compiler.
  4446. : > sub/conftest.c
  4447. for i in 1 2 3 4 5 6; do
  4448. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4449. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4450. # Solaris 8's {/usr,}/bin/sh.
  4451. touch sub/conftst$i.h
  4452. done
  4453. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4454. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4455. # mode. It turns out that the SunPro C++ compiler does not properly
  4456. # handle `-M -o', and we need to detect this. Also, some Intel
  4457. # versions had trouble with output in subdirs
  4458. am__obj=sub/conftest.${OBJEXT-o}
  4459. am__minus_obj="-o $am__obj"
  4460. case $depmode in
  4461. gcc)
  4462. # This depmode causes a compiler race in universal mode.
  4463. test "$am__universal" = false || continue
  4464. ;;
  4465. nosideeffect)
  4466. # after this tag, mechanisms are not by side-effect, so they'll
  4467. # only be used when explicitly requested
  4468. if test "x$enable_dependency_tracking" = xyes; then
  4469. continue
  4470. else
  4471. break
  4472. fi
  4473. ;;
  4474. msvisualcpp | msvcmsys)
  4475. # This compiler won't grok `-c -o', but also, the minuso test has
  4476. # not run yet. These depmodes are late enough in the game, and
  4477. # so weak that their functioning should not be impacted.
  4478. am__obj=conftest.${OBJEXT-o}
  4479. am__minus_obj=
  4480. ;;
  4481. none) break ;;
  4482. esac
  4483. if depmode=$depmode \
  4484. source=sub/conftest.c object=$am__obj \
  4485. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4486. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4487. >/dev/null 2>conftest.err &&
  4488. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4489. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4490. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4491. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4492. # icc doesn't choke on unknown options, it will just issue warnings
  4493. # or remarks (even with -Werror). So we grep stderr for any message
  4494. # that says an option was ignored or not supported.
  4495. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4496. # icc: Command line warning: ignoring option '-M'; no argument required
  4497. # The diagnosis changed in icc 8.0:
  4498. # icc: Command line remark: option '-MP' not supported
  4499. if (grep 'ignoring option' conftest.err ||
  4500. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4501. am_cv_CC_dependencies_compiler_type=$depmode
  4502. break
  4503. fi
  4504. fi
  4505. done
  4506. cd ..
  4507. rm -rf conftest.dir
  4508. else
  4509. am_cv_CC_dependencies_compiler_type=none
  4510. fi
  4511. fi
  4512. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4513. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4514. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4515. if
  4516. test "x$enable_dependency_tracking" != xno \
  4517. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4518. am__fastdepCC_TRUE=
  4519. am__fastdepCC_FALSE='#'
  4520. else
  4521. am__fastdepCC_TRUE='#'
  4522. am__fastdepCC_FALSE=
  4523. fi
  4524. # Find a good install program. We prefer a C program (faster),
  4525. # so one script is as good as another. But avoid the broken or
  4526. # incompatible versions:
  4527. # SysV /etc/install, /usr/sbin/install
  4528. # SunOS /usr/etc/install
  4529. # IRIX /sbin/install
  4530. # AIX /bin/install
  4531. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4532. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4533. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4534. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4535. # OS/2's system install, which has a completely different semantic
  4536. # ./install, which can be erroneously created by make from ./install.sh.
  4537. # Reject install programs that cannot install multiple files.
  4538. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4539. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4540. if test -z "$INSTALL"; then
  4541. if test "${ac_cv_path_install+set}" = set; then
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. # Account for people who put trailing slashes in PATH elements.
  4550. case $as_dir/ in
  4551. ./ | .// | /cC/* | \
  4552. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4553. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4554. /usr/ucb/* ) ;;
  4555. *)
  4556. # OSF1 and SCO ODT 3.0 have their own names for install.
  4557. # Don't use installbsd from OSF since it installs stuff as root
  4558. # by default.
  4559. for ac_prog in ginstall scoinst install; do
  4560. for ac_exec_ext in '' $ac_executable_extensions; do
  4561. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4562. if test $ac_prog = install &&
  4563. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4564. # AIX install. It has an incompatible calling convention.
  4565. :
  4566. elif test $ac_prog = install &&
  4567. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4568. # program-specific install script used by HP pwplus--don't use.
  4569. :
  4570. else
  4571. rm -rf conftest.one conftest.two conftest.dir
  4572. echo one > conftest.one
  4573. echo two > conftest.two
  4574. mkdir conftest.dir
  4575. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4576. test -s conftest.one && test -s conftest.two &&
  4577. test -s conftest.dir/conftest.one &&
  4578. test -s conftest.dir/conftest.two
  4579. then
  4580. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4581. break 3
  4582. fi
  4583. fi
  4584. fi
  4585. done
  4586. done
  4587. ;;
  4588. esac
  4589. done
  4590. IFS=$as_save_IFS
  4591. rm -rf conftest.one conftest.two conftest.dir
  4592. fi
  4593. if test "${ac_cv_path_install+set}" = set; then
  4594. INSTALL=$ac_cv_path_install
  4595. else
  4596. # As a last resort, use the slow shell script. Don't cache a
  4597. # value for INSTALL within a source directory, because that will
  4598. # break other packages using the cache if that directory is
  4599. # removed, or if the value is a relative name.
  4600. INSTALL=$ac_install_sh
  4601. fi
  4602. fi
  4603. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4604. $as_echo "$INSTALL" >&6; }
  4605. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4606. # It thinks the first close brace ends the variable substitution.
  4607. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4608. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4609. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4610. case `pwd` in
  4611. *\ * | *\ *)
  4612. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4613. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4614. esac
  4615. macro_version='2.2.6'
  4616. macro_revision='1.3012'
  4617. ltmain="$ac_aux_dir/ltmain.sh"
  4618. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4619. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4620. if test "${ac_cv_path_SED+set}" = set; then
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4624. for ac_i in 1 2 3 4 5 6 7; do
  4625. ac_script="$ac_script$as_nl$ac_script"
  4626. done
  4627. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4628. $as_unset ac_script || ac_script=
  4629. if test -z "$SED"; then
  4630. ac_path_SED_found=false
  4631. # Loop through the user's path and test for each of PROGNAME-LIST
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_prog in sed gsed; do
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4640. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4641. # Check for GNU ac_path_SED and select it if it is found.
  4642. # Check for GNU $ac_path_SED
  4643. case `"$ac_path_SED" --version 2>&1` in
  4644. *GNU*)
  4645. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4646. *)
  4647. ac_count=0
  4648. $as_echo_n 0123456789 >"conftest.in"
  4649. while :
  4650. do
  4651. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4652. mv "conftest.tmp" "conftest.in"
  4653. cp "conftest.in" "conftest.nl"
  4654. $as_echo '' >> "conftest.nl"
  4655. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4656. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4657. ac_count=`expr $ac_count + 1`
  4658. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4659. # Best one so far, save it but keep looking for a better one
  4660. ac_cv_path_SED="$ac_path_SED"
  4661. ac_path_SED_max=$ac_count
  4662. fi
  4663. # 10*(2^10) chars as input seems more than enough
  4664. test $ac_count -gt 10 && break
  4665. done
  4666. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4667. esac
  4668. $ac_path_SED_found && break 3
  4669. done
  4670. done
  4671. done
  4672. IFS=$as_save_IFS
  4673. if test -z "$ac_cv_path_SED"; then
  4674. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4675. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4676. { (exit 1); exit 1; }; }
  4677. fi
  4678. else
  4679. ac_cv_path_SED=$SED
  4680. fi
  4681. fi
  4682. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4683. $as_echo "$ac_cv_path_SED" >&6; }
  4684. SED="$ac_cv_path_SED"
  4685. rm -f conftest.sed
  4686. test -z "$SED" && SED=sed
  4687. Xsed="$SED -e 1s/^X//"
  4688. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4689. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4690. if test "${ac_cv_path_GREP+set}" = set; then
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -z "$GREP"; then
  4694. ac_path_GREP_found=false
  4695. # Loop through the user's path and test for each of PROGNAME-LIST
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4698. do
  4699. IFS=$as_save_IFS
  4700. test -z "$as_dir" && as_dir=.
  4701. for ac_prog in grep ggrep; do
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4704. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4705. # Check for GNU ac_path_GREP and select it if it is found.
  4706. # Check for GNU $ac_path_GREP
  4707. case `"$ac_path_GREP" --version 2>&1` in
  4708. *GNU*)
  4709. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4710. *)
  4711. ac_count=0
  4712. $as_echo_n 0123456789 >"conftest.in"
  4713. while :
  4714. do
  4715. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4716. mv "conftest.tmp" "conftest.in"
  4717. cp "conftest.in" "conftest.nl"
  4718. $as_echo 'GREP' >> "conftest.nl"
  4719. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4720. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4721. ac_count=`expr $ac_count + 1`
  4722. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4723. # Best one so far, save it but keep looking for a better one
  4724. ac_cv_path_GREP="$ac_path_GREP"
  4725. ac_path_GREP_max=$ac_count
  4726. fi
  4727. # 10*(2^10) chars as input seems more than enough
  4728. test $ac_count -gt 10 && break
  4729. done
  4730. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4731. esac
  4732. $ac_path_GREP_found && break 3
  4733. done
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. if test -z "$ac_cv_path_GREP"; then
  4738. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4739. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4740. { (exit 1); exit 1; }; }
  4741. fi
  4742. else
  4743. ac_cv_path_GREP=$GREP
  4744. fi
  4745. fi
  4746. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4747. $as_echo "$ac_cv_path_GREP" >&6; }
  4748. GREP="$ac_cv_path_GREP"
  4749. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4750. $as_echo_n "checking for egrep... " >&6; }
  4751. if test "${ac_cv_path_EGREP+set}" = set; then
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4755. then ac_cv_path_EGREP="$GREP -E"
  4756. else
  4757. if test -z "$EGREP"; then
  4758. ac_path_EGREP_found=false
  4759. # Loop through the user's path and test for each of PROGNAME-LIST
  4760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4761. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4762. do
  4763. IFS=$as_save_IFS
  4764. test -z "$as_dir" && as_dir=.
  4765. for ac_prog in egrep; do
  4766. for ac_exec_ext in '' $ac_executable_extensions; do
  4767. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4768. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4769. # Check for GNU ac_path_EGREP and select it if it is found.
  4770. # Check for GNU $ac_path_EGREP
  4771. case `"$ac_path_EGREP" --version 2>&1` in
  4772. *GNU*)
  4773. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4774. *)
  4775. ac_count=0
  4776. $as_echo_n 0123456789 >"conftest.in"
  4777. while :
  4778. do
  4779. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4780. mv "conftest.tmp" "conftest.in"
  4781. cp "conftest.in" "conftest.nl"
  4782. $as_echo 'EGREP' >> "conftest.nl"
  4783. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4784. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4785. ac_count=`expr $ac_count + 1`
  4786. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4787. # Best one so far, save it but keep looking for a better one
  4788. ac_cv_path_EGREP="$ac_path_EGREP"
  4789. ac_path_EGREP_max=$ac_count
  4790. fi
  4791. # 10*(2^10) chars as input seems more than enough
  4792. test $ac_count -gt 10 && break
  4793. done
  4794. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4795. esac
  4796. $ac_path_EGREP_found && break 3
  4797. done
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. if test -z "$ac_cv_path_EGREP"; then
  4802. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4803. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4804. { (exit 1); exit 1; }; }
  4805. fi
  4806. else
  4807. ac_cv_path_EGREP=$EGREP
  4808. fi
  4809. fi
  4810. fi
  4811. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4812. $as_echo "$ac_cv_path_EGREP" >&6; }
  4813. EGREP="$ac_cv_path_EGREP"
  4814. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4815. $as_echo_n "checking for fgrep... " >&6; }
  4816. if test "${ac_cv_path_FGREP+set}" = set; then
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4820. then ac_cv_path_FGREP="$GREP -F"
  4821. else
  4822. if test -z "$FGREP"; then
  4823. ac_path_FGREP_found=false
  4824. # Loop through the user's path and test for each of PROGNAME-LIST
  4825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4826. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4827. do
  4828. IFS=$as_save_IFS
  4829. test -z "$as_dir" && as_dir=.
  4830. for ac_prog in fgrep; do
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4833. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4834. # Check for GNU ac_path_FGREP and select it if it is found.
  4835. # Check for GNU $ac_path_FGREP
  4836. case `"$ac_path_FGREP" --version 2>&1` in
  4837. *GNU*)
  4838. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4839. *)
  4840. ac_count=0
  4841. $as_echo_n 0123456789 >"conftest.in"
  4842. while :
  4843. do
  4844. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4845. mv "conftest.tmp" "conftest.in"
  4846. cp "conftest.in" "conftest.nl"
  4847. $as_echo 'FGREP' >> "conftest.nl"
  4848. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4849. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4850. ac_count=`expr $ac_count + 1`
  4851. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4852. # Best one so far, save it but keep looking for a better one
  4853. ac_cv_path_FGREP="$ac_path_FGREP"
  4854. ac_path_FGREP_max=$ac_count
  4855. fi
  4856. # 10*(2^10) chars as input seems more than enough
  4857. test $ac_count -gt 10 && break
  4858. done
  4859. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4860. esac
  4861. $ac_path_FGREP_found && break 3
  4862. done
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. if test -z "$ac_cv_path_FGREP"; then
  4867. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4868. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4869. { (exit 1); exit 1; }; }
  4870. fi
  4871. else
  4872. ac_cv_path_FGREP=$FGREP
  4873. fi
  4874. fi
  4875. fi
  4876. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4877. $as_echo "$ac_cv_path_FGREP" >&6; }
  4878. FGREP="$ac_cv_path_FGREP"
  4879. test -z "$GREP" && GREP=grep
  4880. # Check whether --with-gnu-ld was given.
  4881. if test "${with_gnu_ld+set}" = set; then
  4882. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4883. else
  4884. with_gnu_ld=no
  4885. fi
  4886. ac_prog=ld
  4887. if test "$GCC" = yes; then
  4888. # Check if gcc -print-prog-name=ld gives a path.
  4889. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4890. $as_echo_n "checking for ld used by $CC... " >&6; }
  4891. case $host in
  4892. *-*-mingw*)
  4893. # gcc leaves a trailing carriage return which upsets mingw
  4894. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4895. *)
  4896. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4897. esac
  4898. case $ac_prog in
  4899. # Accept absolute paths.
  4900. [\\/]* | ?:[\\/]*)
  4901. re_direlt='/[^/][^/]*/\.\./'
  4902. # Canonicalize the pathname of ld
  4903. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4904. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4905. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4906. done
  4907. test -z "$LD" && LD="$ac_prog"
  4908. ;;
  4909. "")
  4910. # If it fails, then pretend we aren't using GCC.
  4911. ac_prog=ld
  4912. ;;
  4913. *)
  4914. # If it is relative, then search for the first ld in PATH.
  4915. with_gnu_ld=unknown
  4916. ;;
  4917. esac
  4918. elif test "$with_gnu_ld" = yes; then
  4919. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4920. $as_echo_n "checking for GNU ld... " >&6; }
  4921. else
  4922. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4923. $as_echo_n "checking for non-GNU ld... " >&6; }
  4924. fi
  4925. if test "${lt_cv_path_LD+set}" = set; then
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. if test -z "$LD"; then
  4929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4930. for ac_dir in $PATH; do
  4931. IFS="$lt_save_ifs"
  4932. test -z "$ac_dir" && ac_dir=.
  4933. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4934. lt_cv_path_LD="$ac_dir/$ac_prog"
  4935. # Check to see if the program is GNU ld. I'd rather use --version,
  4936. # but apparently some variants of GNU ld only accept -v.
  4937. # Break only if it was the GNU/non-GNU ld that we prefer.
  4938. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4939. *GNU* | *'with BFD'*)
  4940. test "$with_gnu_ld" != no && break
  4941. ;;
  4942. *)
  4943. test "$with_gnu_ld" != yes && break
  4944. ;;
  4945. esac
  4946. fi
  4947. done
  4948. IFS="$lt_save_ifs"
  4949. else
  4950. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4951. fi
  4952. fi
  4953. LD="$lt_cv_path_LD"
  4954. if test -n "$LD"; then
  4955. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4956. $as_echo "$LD" >&6; }
  4957. else
  4958. { $as_echo "$as_me:$LINENO: result: no" >&5
  4959. $as_echo "no" >&6; }
  4960. fi
  4961. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4962. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4963. { (exit 1); exit 1; }; }
  4964. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4965. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4966. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4970. case `$LD -v 2>&1 </dev/null` in
  4971. *GNU* | *'with BFD'*)
  4972. lt_cv_prog_gnu_ld=yes
  4973. ;;
  4974. *)
  4975. lt_cv_prog_gnu_ld=no
  4976. ;;
  4977. esac
  4978. fi
  4979. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4980. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4981. with_gnu_ld=$lt_cv_prog_gnu_ld
  4982. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4983. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4984. if test "${lt_cv_path_NM+set}" = set; then
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. if test -n "$NM"; then
  4988. # Let the user override the test.
  4989. lt_cv_path_NM="$NM"
  4990. else
  4991. lt_nm_to_check="${ac_tool_prefix}nm"
  4992. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4993. lt_nm_to_check="$lt_nm_to_check nm"
  4994. fi
  4995. for lt_tmp_nm in $lt_nm_to_check; do
  4996. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4997. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4998. IFS="$lt_save_ifs"
  4999. test -z "$ac_dir" && ac_dir=.
  5000. tmp_nm="$ac_dir/$lt_tmp_nm"
  5001. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5002. # Check to see if the nm accepts a BSD-compat flag.
  5003. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5004. # nm: unknown option "B" ignored
  5005. # Tru64's nm complains that /dev/null is an invalid object file
  5006. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5007. */dev/null* | *'Invalid file or object type'*)
  5008. lt_cv_path_NM="$tmp_nm -B"
  5009. break
  5010. ;;
  5011. *)
  5012. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5013. */dev/null*)
  5014. lt_cv_path_NM="$tmp_nm -p"
  5015. break
  5016. ;;
  5017. *)
  5018. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5019. continue # so that we can try to find one that supports BSD flags
  5020. ;;
  5021. esac
  5022. ;;
  5023. esac
  5024. fi
  5025. done
  5026. IFS="$lt_save_ifs"
  5027. done
  5028. : ${lt_cv_path_NM=no}
  5029. fi
  5030. fi
  5031. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5032. $as_echo "$lt_cv_path_NM" >&6; }
  5033. if test "$lt_cv_path_NM" != "no"; then
  5034. NM="$lt_cv_path_NM"
  5035. else
  5036. # Didn't find any BSD compatible name lister, look for dumpbin.
  5037. if test -n "$ac_tool_prefix"; then
  5038. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5039. do
  5040. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5041. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5042. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5043. $as_echo_n "checking for $ac_word... " >&6; }
  5044. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. if test -n "$DUMPBIN"; then
  5048. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5049. else
  5050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5051. for as_dir in $PATH
  5052. do
  5053. IFS=$as_save_IFS
  5054. test -z "$as_dir" && as_dir=.
  5055. for ac_exec_ext in '' $ac_executable_extensions; do
  5056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5057. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5058. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5059. break 2
  5060. fi
  5061. done
  5062. done
  5063. IFS=$as_save_IFS
  5064. fi
  5065. fi
  5066. DUMPBIN=$ac_cv_prog_DUMPBIN
  5067. if test -n "$DUMPBIN"; then
  5068. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  5069. $as_echo "$DUMPBIN" >&6; }
  5070. else
  5071. { $as_echo "$as_me:$LINENO: result: no" >&5
  5072. $as_echo "no" >&6; }
  5073. fi
  5074. test -n "$DUMPBIN" && break
  5075. done
  5076. fi
  5077. if test -z "$DUMPBIN"; then
  5078. ac_ct_DUMPBIN=$DUMPBIN
  5079. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5080. do
  5081. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5082. set dummy $ac_prog; ac_word=$2
  5083. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5084. $as_echo_n "checking for $ac_word... " >&6; }
  5085. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. if test -n "$ac_ct_DUMPBIN"; then
  5089. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5090. else
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. test -z "$as_dir" && as_dir=.
  5096. for ac_exec_ext in '' $ac_executable_extensions; do
  5097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5098. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5099. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5100. break 2
  5101. fi
  5102. done
  5103. done
  5104. IFS=$as_save_IFS
  5105. fi
  5106. fi
  5107. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5108. if test -n "$ac_ct_DUMPBIN"; then
  5109. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  5110. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5111. else
  5112. { $as_echo "$as_me:$LINENO: result: no" >&5
  5113. $as_echo "no" >&6; }
  5114. fi
  5115. test -n "$ac_ct_DUMPBIN" && break
  5116. done
  5117. if test "x$ac_ct_DUMPBIN" = x; then
  5118. DUMPBIN=":"
  5119. else
  5120. case $cross_compiling:$ac_tool_warned in
  5121. yes:)
  5122. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5124. ac_tool_warned=yes ;;
  5125. esac
  5126. DUMPBIN=$ac_ct_DUMPBIN
  5127. fi
  5128. fi
  5129. if test "$DUMPBIN" != ":"; then
  5130. NM="$DUMPBIN"
  5131. fi
  5132. fi
  5133. test -z "$NM" && NM=nm
  5134. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  5135. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5136. if test "${lt_cv_nm_interface+set}" = set; then
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. lt_cv_nm_interface="BSD nm"
  5140. echo "int some_variable = 0;" > conftest.$ac_ext
  5141. (eval echo "\"\$as_me:5760: $ac_compile\"" >&5)
  5142. (eval "$ac_compile" 2>conftest.err)
  5143. cat conftest.err >&5
  5144. (eval echo "\"\$as_me:5763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5145. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5146. cat conftest.err >&5
  5147. (eval echo "\"\$as_me:5766: output\"" >&5)
  5148. cat conftest.out >&5
  5149. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5150. lt_cv_nm_interface="MS dumpbin"
  5151. fi
  5152. rm -f conftest*
  5153. fi
  5154. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  5155. $as_echo "$lt_cv_nm_interface" >&6; }
  5156. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5157. $as_echo_n "checking whether ln -s works... " >&6; }
  5158. LN_S=$as_ln_s
  5159. if test "$LN_S" = "ln -s"; then
  5160. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5161. $as_echo "yes" >&6; }
  5162. else
  5163. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5164. $as_echo "no, using $LN_S" >&6; }
  5165. fi
  5166. # find the maximum length of command line arguments
  5167. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5168. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5169. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. i=0
  5173. teststring="ABCD"
  5174. case $build_os in
  5175. msdosdjgpp*)
  5176. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5177. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5178. # during glob expansion). Even if it were fixed, the result of this
  5179. # check would be larger than it should be.
  5180. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5181. ;;
  5182. gnu*)
  5183. # Under GNU Hurd, this test is not required because there is
  5184. # no limit to the length of command line arguments.
  5185. # Libtool will interpret -1 as no limit whatsoever
  5186. lt_cv_sys_max_cmd_len=-1;
  5187. ;;
  5188. cygwin* | mingw* | cegcc*)
  5189. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5190. # about 5 minutes as the teststring grows exponentially.
  5191. # Worse, since 9x/ME are not pre-emptively multitasking,
  5192. # you end up with a "frozen" computer, even though with patience
  5193. # the test eventually succeeds (with a max line length of 256k).
  5194. # Instead, let's just punt: use the minimum linelength reported by
  5195. # all of the supported platforms: 8192 (on NT/2K/XP).
  5196. lt_cv_sys_max_cmd_len=8192;
  5197. ;;
  5198. amigaos*)
  5199. # On AmigaOS with pdksh, this test takes hours, literally.
  5200. # So we just punt and use a minimum line length of 8192.
  5201. lt_cv_sys_max_cmd_len=8192;
  5202. ;;
  5203. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5204. # This has been around since 386BSD, at least. Likely further.
  5205. if test -x /sbin/sysctl; then
  5206. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5207. elif test -x /usr/sbin/sysctl; then
  5208. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5209. else
  5210. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5211. fi
  5212. # And add a safety zone
  5213. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5214. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5215. ;;
  5216. interix*)
  5217. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5218. lt_cv_sys_max_cmd_len=196608
  5219. ;;
  5220. osf*)
  5221. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5222. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5223. # nice to cause kernel panics so lets avoid the loop below.
  5224. # First set a reasonable default.
  5225. lt_cv_sys_max_cmd_len=16384
  5226. #
  5227. if test -x /sbin/sysconfig; then
  5228. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5229. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5230. esac
  5231. fi
  5232. ;;
  5233. sco3.2v5*)
  5234. lt_cv_sys_max_cmd_len=102400
  5235. ;;
  5236. sysv5* | sco5v6* | sysv4.2uw2*)
  5237. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5238. if test -n "$kargmax"; then
  5239. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5240. else
  5241. lt_cv_sys_max_cmd_len=32768
  5242. fi
  5243. ;;
  5244. *)
  5245. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5246. if test -n "$lt_cv_sys_max_cmd_len"; then
  5247. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5248. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5249. else
  5250. # Make teststring a little bigger before we do anything with it.
  5251. # a 1K string should be a reasonable start.
  5252. for i in 1 2 3 4 5 6 7 8 ; do
  5253. teststring=$teststring$teststring
  5254. done
  5255. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5256. # If test is not a shell built-in, we'll probably end up computing a
  5257. # maximum length that is only half of the actual maximum length, but
  5258. # we can't tell.
  5259. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5260. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5261. test $i != 17 # 1/2 MB should be enough
  5262. do
  5263. i=`expr $i + 1`
  5264. teststring=$teststring$teststring
  5265. done
  5266. # Only check the string length outside the loop.
  5267. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5268. teststring=
  5269. # Add a significant safety factor because C++ compilers can tack on
  5270. # massive amounts of additional arguments before passing them to the
  5271. # linker. It appears as though 1/2 is a usable value.
  5272. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5273. fi
  5274. ;;
  5275. esac
  5276. fi
  5277. if test -n $lt_cv_sys_max_cmd_len ; then
  5278. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5279. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5280. else
  5281. { $as_echo "$as_me:$LINENO: result: none" >&5
  5282. $as_echo "none" >&6; }
  5283. fi
  5284. max_cmd_len=$lt_cv_sys_max_cmd_len
  5285. : ${CP="cp -f"}
  5286. : ${MV="mv -f"}
  5287. : ${RM="rm -f"}
  5288. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5289. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5290. # Try some XSI features
  5291. xsi_shell=no
  5292. ( _lt_dummy="a/b/c"
  5293. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5294. = c,a/b,, \
  5295. && eval 'test $(( 1 + 1 )) -eq 2 \
  5296. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5297. && xsi_shell=yes
  5298. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5299. $as_echo "$xsi_shell" >&6; }
  5300. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5301. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5302. lt_shell_append=no
  5303. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5304. >/dev/null 2>&1 \
  5305. && lt_shell_append=yes
  5306. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5307. $as_echo "$lt_shell_append" >&6; }
  5308. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5309. lt_unset=unset
  5310. else
  5311. lt_unset=false
  5312. fi
  5313. # test EBCDIC or ASCII
  5314. case `echo X|tr X '\101'` in
  5315. A) # ASCII based system
  5316. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5317. lt_SP2NL='tr \040 \012'
  5318. lt_NL2SP='tr \015\012 \040\040'
  5319. ;;
  5320. *) # EBCDIC based system
  5321. lt_SP2NL='tr \100 \n'
  5322. lt_NL2SP='tr \r\n \100\100'
  5323. ;;
  5324. esac
  5325. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5326. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5327. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. lt_cv_ld_reload_flag='-r'
  5331. fi
  5332. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5333. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5334. reload_flag=$lt_cv_ld_reload_flag
  5335. case $reload_flag in
  5336. "" | " "*) ;;
  5337. *) reload_flag=" $reload_flag" ;;
  5338. esac
  5339. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5340. case $host_os in
  5341. darwin*)
  5342. if test "$GCC" = yes; then
  5343. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5344. else
  5345. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5346. fi
  5347. ;;
  5348. esac
  5349. if test -n "$ac_tool_prefix"; then
  5350. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5351. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5353. $as_echo_n "checking for $ac_word... " >&6; }
  5354. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. if test -n "$OBJDUMP"; then
  5358. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5359. else
  5360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5361. for as_dir in $PATH
  5362. do
  5363. IFS=$as_save_IFS
  5364. test -z "$as_dir" && as_dir=.
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5367. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5368. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5369. break 2
  5370. fi
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. fi
  5375. fi
  5376. OBJDUMP=$ac_cv_prog_OBJDUMP
  5377. if test -n "$OBJDUMP"; then
  5378. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5379. $as_echo "$OBJDUMP" >&6; }
  5380. else
  5381. { $as_echo "$as_me:$LINENO: result: no" >&5
  5382. $as_echo "no" >&6; }
  5383. fi
  5384. fi
  5385. if test -z "$ac_cv_prog_OBJDUMP"; then
  5386. ac_ct_OBJDUMP=$OBJDUMP
  5387. # Extract the first word of "objdump", so it can be a program name with args.
  5388. set dummy objdump; ac_word=$2
  5389. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if test -n "$ac_ct_OBJDUMP"; then
  5395. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5396. else
  5397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5398. for as_dir in $PATH
  5399. do
  5400. IFS=$as_save_IFS
  5401. test -z "$as_dir" && as_dir=.
  5402. for ac_exec_ext in '' $ac_executable_extensions; do
  5403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5404. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5405. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5406. break 2
  5407. fi
  5408. done
  5409. done
  5410. IFS=$as_save_IFS
  5411. fi
  5412. fi
  5413. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5414. if test -n "$ac_ct_OBJDUMP"; then
  5415. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5416. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5417. else
  5418. { $as_echo "$as_me:$LINENO: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. fi
  5421. if test "x$ac_ct_OBJDUMP" = x; then
  5422. OBJDUMP="false"
  5423. else
  5424. case $cross_compiling:$ac_tool_warned in
  5425. yes:)
  5426. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5428. ac_tool_warned=yes ;;
  5429. esac
  5430. OBJDUMP=$ac_ct_OBJDUMP
  5431. fi
  5432. else
  5433. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5434. fi
  5435. test -z "$OBJDUMP" && OBJDUMP=objdump
  5436. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5437. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5438. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5439. $as_echo_n "(cached) " >&6
  5440. else
  5441. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5442. lt_cv_file_magic_test_file=
  5443. lt_cv_deplibs_check_method='unknown'
  5444. # Need to set the preceding variable on all platforms that support
  5445. # interlibrary dependencies.
  5446. # 'none' -- dependencies not supported.
  5447. # `unknown' -- same as none, but documents that we really don't know.
  5448. # 'pass_all' -- all dependencies passed with no checks.
  5449. # 'test_compile' -- check by making test program.
  5450. # 'file_magic [[regex]]' -- check by looking for files in library path
  5451. # which responds to the $file_magic_cmd with a given extended regex.
  5452. # If you have `file' or equivalent on your system and you're not sure
  5453. # whether `pass_all' will *always* work, you probably want this one.
  5454. case $host_os in
  5455. aix[4-9]*)
  5456. lt_cv_deplibs_check_method=pass_all
  5457. ;;
  5458. beos*)
  5459. lt_cv_deplibs_check_method=pass_all
  5460. ;;
  5461. bsdi[45]*)
  5462. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5463. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5464. lt_cv_file_magic_test_file=/shlib/libc.so
  5465. ;;
  5466. cygwin*)
  5467. # func_win32_libid is a shell function defined in ltmain.sh
  5468. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5469. lt_cv_file_magic_cmd='func_win32_libid'
  5470. ;;
  5471. mingw* | pw32*)
  5472. # Base MSYS/MinGW do not provide the 'file' command needed by
  5473. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5474. # unless we find 'file', for example because we are cross-compiling.
  5475. if ( file / ) >/dev/null 2>&1; then
  5476. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5477. lt_cv_file_magic_cmd='func_win32_libid'
  5478. else
  5479. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5480. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5481. fi
  5482. ;;
  5483. cegcc)
  5484. # use the weaker test based on 'objdump'. See mingw*.
  5485. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5486. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5487. ;;
  5488. darwin* | rhapsody*)
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. freebsd* | dragonfly*)
  5492. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5493. case $host_cpu in
  5494. i*86 )
  5495. # Not sure whether the presence of OpenBSD here was a mistake.
  5496. # Let's accept both of them until this is cleared up.
  5497. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5498. lt_cv_file_magic_cmd=/usr/bin/file
  5499. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5500. ;;
  5501. esac
  5502. else
  5503. lt_cv_deplibs_check_method=pass_all
  5504. fi
  5505. ;;
  5506. gnu*)
  5507. lt_cv_deplibs_check_method=pass_all
  5508. ;;
  5509. hpux10.20* | hpux11*)
  5510. lt_cv_file_magic_cmd=/usr/bin/file
  5511. case $host_cpu in
  5512. ia64*)
  5513. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5514. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5515. ;;
  5516. hppa*64*)
  5517. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5518. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5519. ;;
  5520. *)
  5521. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5522. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5523. ;;
  5524. esac
  5525. ;;
  5526. interix[3-9]*)
  5527. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5528. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5529. ;;
  5530. irix5* | irix6* | nonstopux*)
  5531. case $LD in
  5532. *-32|*"-32 ") libmagic=32-bit;;
  5533. *-n32|*"-n32 ") libmagic=N32;;
  5534. *-64|*"-64 ") libmagic=64-bit;;
  5535. *) libmagic=never-match;;
  5536. esac
  5537. lt_cv_deplibs_check_method=pass_all
  5538. ;;
  5539. # This must be Linux ELF.
  5540. linux* | k*bsd*-gnu)
  5541. lt_cv_deplibs_check_method=pass_all
  5542. ;;
  5543. netbsd*)
  5544. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5545. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5546. else
  5547. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5548. fi
  5549. ;;
  5550. newos6*)
  5551. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5552. lt_cv_file_magic_cmd=/usr/bin/file
  5553. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5554. ;;
  5555. *nto* | *qnx*)
  5556. lt_cv_deplibs_check_method=pass_all
  5557. ;;
  5558. openbsd*)
  5559. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5560. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5561. else
  5562. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5563. fi
  5564. ;;
  5565. osf3* | osf4* | osf5*)
  5566. lt_cv_deplibs_check_method=pass_all
  5567. ;;
  5568. rdos*)
  5569. lt_cv_deplibs_check_method=pass_all
  5570. ;;
  5571. solaris*)
  5572. lt_cv_deplibs_check_method=pass_all
  5573. ;;
  5574. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5575. lt_cv_deplibs_check_method=pass_all
  5576. ;;
  5577. sysv4 | sysv4.3*)
  5578. case $host_vendor in
  5579. motorola)
  5580. 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]'
  5581. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5582. ;;
  5583. ncr)
  5584. lt_cv_deplibs_check_method=pass_all
  5585. ;;
  5586. sequent)
  5587. lt_cv_file_magic_cmd='/bin/file'
  5588. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5589. ;;
  5590. sni)
  5591. lt_cv_file_magic_cmd='/bin/file'
  5592. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5593. lt_cv_file_magic_test_file=/lib/libc.so
  5594. ;;
  5595. siemens)
  5596. lt_cv_deplibs_check_method=pass_all
  5597. ;;
  5598. pc)
  5599. lt_cv_deplibs_check_method=pass_all
  5600. ;;
  5601. esac
  5602. ;;
  5603. tpf*)
  5604. lt_cv_deplibs_check_method=pass_all
  5605. ;;
  5606. esac
  5607. fi
  5608. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5609. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5610. file_magic_cmd=$lt_cv_file_magic_cmd
  5611. deplibs_check_method=$lt_cv_deplibs_check_method
  5612. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5613. if test -n "$ac_tool_prefix"; then
  5614. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5615. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5616. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5617. $as_echo_n "checking for $ac_word... " >&6; }
  5618. if test "${ac_cv_prog_AR+set}" = set; then
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. if test -n "$AR"; then
  5622. ac_cv_prog_AR="$AR" # Let the user override the test.
  5623. else
  5624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5625. for as_dir in $PATH
  5626. do
  5627. IFS=$as_save_IFS
  5628. test -z "$as_dir" && as_dir=.
  5629. for ac_exec_ext in '' $ac_executable_extensions; do
  5630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5631. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5632. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5633. break 2
  5634. fi
  5635. done
  5636. done
  5637. IFS=$as_save_IFS
  5638. fi
  5639. fi
  5640. AR=$ac_cv_prog_AR
  5641. if test -n "$AR"; then
  5642. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5643. $as_echo "$AR" >&6; }
  5644. else
  5645. { $as_echo "$as_me:$LINENO: result: no" >&5
  5646. $as_echo "no" >&6; }
  5647. fi
  5648. fi
  5649. if test -z "$ac_cv_prog_AR"; then
  5650. ac_ct_AR=$AR
  5651. # Extract the first word of "ar", so it can be a program name with args.
  5652. set dummy ar; ac_word=$2
  5653. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$ac_ct_AR"; then
  5659. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5668. ac_cv_prog_ac_ct_AR="ar"
  5669. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5678. if test -n "$ac_ct_AR"; then
  5679. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5680. $as_echo "$ac_ct_AR" >&6; }
  5681. else
  5682. { $as_echo "$as_me:$LINENO: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. if test "x$ac_ct_AR" = x; then
  5686. AR="false"
  5687. else
  5688. case $cross_compiling:$ac_tool_warned in
  5689. yes:)
  5690. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5692. ac_tool_warned=yes ;;
  5693. esac
  5694. AR=$ac_ct_AR
  5695. fi
  5696. else
  5697. AR="$ac_cv_prog_AR"
  5698. fi
  5699. test -z "$AR" && AR=ar
  5700. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5701. if test -n "$ac_tool_prefix"; then
  5702. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5703. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5704. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if test "${ac_cv_prog_STRIP+set}" = set; then
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$STRIP"; then
  5710. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5719. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5720. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. STRIP=$ac_cv_prog_STRIP
  5729. if test -n "$STRIP"; then
  5730. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5731. $as_echo "$STRIP" >&6; }
  5732. else
  5733. { $as_echo "$as_me:$LINENO: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. fi
  5737. if test -z "$ac_cv_prog_STRIP"; then
  5738. ac_ct_STRIP=$STRIP
  5739. # Extract the first word of "strip", so it can be a program name with args.
  5740. set dummy strip; ac_word=$2
  5741. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5742. $as_echo_n "checking for $ac_word... " >&6; }
  5743. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5744. $as_echo_n "(cached) " >&6
  5745. else
  5746. if test -n "$ac_ct_STRIP"; then
  5747. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5748. else
  5749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5750. for as_dir in $PATH
  5751. do
  5752. IFS=$as_save_IFS
  5753. test -z "$as_dir" && as_dir=.
  5754. for ac_exec_ext in '' $ac_executable_extensions; do
  5755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5756. ac_cv_prog_ac_ct_STRIP="strip"
  5757. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5758. break 2
  5759. fi
  5760. done
  5761. done
  5762. IFS=$as_save_IFS
  5763. fi
  5764. fi
  5765. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5766. if test -n "$ac_ct_STRIP"; then
  5767. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5768. $as_echo "$ac_ct_STRIP" >&6; }
  5769. else
  5770. { $as_echo "$as_me:$LINENO: result: no" >&5
  5771. $as_echo "no" >&6; }
  5772. fi
  5773. if test "x$ac_ct_STRIP" = x; then
  5774. STRIP=":"
  5775. else
  5776. case $cross_compiling:$ac_tool_warned in
  5777. yes:)
  5778. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5780. ac_tool_warned=yes ;;
  5781. esac
  5782. STRIP=$ac_ct_STRIP
  5783. fi
  5784. else
  5785. STRIP="$ac_cv_prog_STRIP"
  5786. fi
  5787. test -z "$STRIP" && STRIP=:
  5788. if test -n "$ac_tool_prefix"; then
  5789. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5790. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5791. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5792. $as_echo_n "checking for $ac_word... " >&6; }
  5793. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5794. $as_echo_n "(cached) " >&6
  5795. else
  5796. if test -n "$RANLIB"; then
  5797. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5798. else
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5806. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5807. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. fi
  5814. fi
  5815. RANLIB=$ac_cv_prog_RANLIB
  5816. if test -n "$RANLIB"; then
  5817. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5818. $as_echo "$RANLIB" >&6; }
  5819. else
  5820. { $as_echo "$as_me:$LINENO: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. fi
  5824. if test -z "$ac_cv_prog_RANLIB"; then
  5825. ac_ct_RANLIB=$RANLIB
  5826. # Extract the first word of "ranlib", so it can be a program name with args.
  5827. set dummy ranlib; ac_word=$2
  5828. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$ac_ct_RANLIB"; then
  5834. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5844. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5853. if test -n "$ac_ct_RANLIB"; then
  5854. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5855. $as_echo "$ac_ct_RANLIB" >&6; }
  5856. else
  5857. { $as_echo "$as_me:$LINENO: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. if test "x$ac_ct_RANLIB" = x; then
  5861. RANLIB=":"
  5862. else
  5863. case $cross_compiling:$ac_tool_warned in
  5864. yes:)
  5865. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5867. ac_tool_warned=yes ;;
  5868. esac
  5869. RANLIB=$ac_ct_RANLIB
  5870. fi
  5871. else
  5872. RANLIB="$ac_cv_prog_RANLIB"
  5873. fi
  5874. test -z "$RANLIB" && RANLIB=:
  5875. # Determine commands to create old-style static archives.
  5876. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5877. old_postinstall_cmds='chmod 644 $oldlib'
  5878. old_postuninstall_cmds=
  5879. if test -n "$RANLIB"; then
  5880. case $host_os in
  5881. openbsd*)
  5882. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5883. ;;
  5884. *)
  5885. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5886. ;;
  5887. esac
  5888. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5889. fi
  5890. # If no C compiler was specified, use CC.
  5891. LTCC=${LTCC-"$CC"}
  5892. # If no C compiler flags were specified, use CFLAGS.
  5893. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5894. # Allow CC to be a program name with arguments.
  5895. compiler=$CC
  5896. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5897. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5898. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5899. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5900. $as_echo_n "(cached) " >&6
  5901. else
  5902. # These are sane defaults that work on at least a few old systems.
  5903. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5904. # Character class describing NM global symbol codes.
  5905. symcode='[BCDEGRST]'
  5906. # Regexp to match symbols that can be accessed directly from C.
  5907. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5908. # Define system-specific variables.
  5909. case $host_os in
  5910. aix*)
  5911. symcode='[BCDT]'
  5912. ;;
  5913. cygwin* | mingw* | pw32* | cegcc*)
  5914. symcode='[ABCDGISTW]'
  5915. ;;
  5916. hpux*)
  5917. if test "$host_cpu" = ia64; then
  5918. symcode='[ABCDEGRST]'
  5919. fi
  5920. ;;
  5921. irix* | nonstopux*)
  5922. symcode='[BCDEGRST]'
  5923. ;;
  5924. osf*)
  5925. symcode='[BCDEGQRST]'
  5926. ;;
  5927. solaris*)
  5928. symcode='[BDRT]'
  5929. ;;
  5930. sco3.2v5*)
  5931. symcode='[DT]'
  5932. ;;
  5933. sysv4.2uw2*)
  5934. symcode='[DT]'
  5935. ;;
  5936. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5937. symcode='[ABDT]'
  5938. ;;
  5939. sysv4)
  5940. symcode='[DFNSTU]'
  5941. ;;
  5942. esac
  5943. # If we're using GNU nm, then use its standard symbol codes.
  5944. case `$NM -V 2>&1` in
  5945. *GNU* | *'with BFD'*)
  5946. symcode='[ABCDGIRSTW]' ;;
  5947. esac
  5948. # Transform an extracted symbol line into a proper C declaration.
  5949. # Some systems (esp. on ia64) link data and code symbols differently,
  5950. # so use this general approach.
  5951. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5952. # Transform an extracted symbol line into symbol name and symbol address
  5953. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5954. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5955. # Handle CRLF in mingw tool chain
  5956. opt_cr=
  5957. case $build_os in
  5958. mingw*)
  5959. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5960. ;;
  5961. esac
  5962. # Try without a prefix underscore, then with it.
  5963. for ac_symprfx in "" "_"; do
  5964. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5965. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5966. # Write the raw and C identifiers.
  5967. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5968. # Fake it for dumpbin and say T for any non-static function
  5969. # and D for any global variable.
  5970. # Also find C++ and __fastcall symbols from MSVC++,
  5971. # which start with @ or ?.
  5972. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5973. " {last_section=section; section=\$ 3};"\
  5974. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5975. " \$ 0!~/External *\|/{next};"\
  5976. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5977. " {if(hide[section]) next};"\
  5978. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5979. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5980. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5981. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5982. " ' prfx=^$ac_symprfx"
  5983. else
  5984. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5985. fi
  5986. # Check to see that the pipe works correctly.
  5987. pipe_works=no
  5988. rm -f conftest*
  5989. cat > conftest.$ac_ext <<_LT_EOF
  5990. #ifdef __cplusplus
  5991. extern "C" {
  5992. #endif
  5993. char nm_test_var;
  5994. void nm_test_func(void);
  5995. void nm_test_func(void){}
  5996. #ifdef __cplusplus
  5997. }
  5998. #endif
  5999. int main(){nm_test_var='a';nm_test_func();return(0);}
  6000. _LT_EOF
  6001. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6002. (eval $ac_compile) 2>&5
  6003. ac_status=$?
  6004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); }; then
  6006. # Now try to grab the symbols.
  6007. nlist=conftest.nm
  6008. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6009. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6010. ac_status=$?
  6011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6012. (exit $ac_status); } && test -s "$nlist"; then
  6013. # Try sorting and uniquifying the output.
  6014. if sort "$nlist" | uniq > "$nlist"T; then
  6015. mv -f "$nlist"T "$nlist"
  6016. else
  6017. rm -f "$nlist"T
  6018. fi
  6019. # Make sure that we snagged all the symbols we need.
  6020. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6021. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6022. cat <<_LT_EOF > conftest.$ac_ext
  6023. #ifdef __cplusplus
  6024. extern "C" {
  6025. #endif
  6026. _LT_EOF
  6027. # Now generate the symbol file.
  6028. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6029. cat <<_LT_EOF >> conftest.$ac_ext
  6030. /* The mapping between symbol names and symbols. */
  6031. const struct {
  6032. const char *name;
  6033. void *address;
  6034. }
  6035. lt__PROGRAM__LTX_preloaded_symbols[] =
  6036. {
  6037. { "@PROGRAM@", (void *) 0 },
  6038. _LT_EOF
  6039. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6040. cat <<\_LT_EOF >> conftest.$ac_ext
  6041. {0, (void *) 0}
  6042. };
  6043. /* This works around a problem in FreeBSD linker */
  6044. #ifdef FREEBSD_WORKAROUND
  6045. static const void *lt_preloaded_setup() {
  6046. return lt__PROGRAM__LTX_preloaded_symbols;
  6047. }
  6048. #endif
  6049. #ifdef __cplusplus
  6050. }
  6051. #endif
  6052. _LT_EOF
  6053. # Now try linking the two files.
  6054. mv conftest.$ac_objext conftstm.$ac_objext
  6055. lt_save_LIBS="$LIBS"
  6056. lt_save_CFLAGS="$CFLAGS"
  6057. LIBS="conftstm.$ac_objext"
  6058. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6059. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6060. (eval $ac_link) 2>&5
  6061. ac_status=$?
  6062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6063. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6064. pipe_works=yes
  6065. fi
  6066. LIBS="$lt_save_LIBS"
  6067. CFLAGS="$lt_save_CFLAGS"
  6068. else
  6069. echo "cannot find nm_test_func in $nlist" >&5
  6070. fi
  6071. else
  6072. echo "cannot find nm_test_var in $nlist" >&5
  6073. fi
  6074. else
  6075. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6076. fi
  6077. else
  6078. echo "$progname: failed program was:" >&5
  6079. cat conftest.$ac_ext >&5
  6080. fi
  6081. rm -rf conftest* conftst*
  6082. # Do not use the global_symbol_pipe unless it works.
  6083. if test "$pipe_works" = yes; then
  6084. break
  6085. else
  6086. lt_cv_sys_global_symbol_pipe=
  6087. fi
  6088. done
  6089. fi
  6090. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6091. lt_cv_sys_global_symbol_to_cdecl=
  6092. fi
  6093. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6094. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6095. $as_echo "failed" >&6; }
  6096. else
  6097. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6098. $as_echo "ok" >&6; }
  6099. fi
  6100. # Check whether --enable-libtool-lock was given.
  6101. if test "${enable_libtool_lock+set}" = set; then
  6102. enableval=$enable_libtool_lock;
  6103. fi
  6104. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6105. # Some flags need to be propagated to the compiler or linker for good
  6106. # libtool support.
  6107. case $host in
  6108. ia64-*-hpux*)
  6109. # Find out which ABI we are using.
  6110. echo 'int i;' > conftest.$ac_ext
  6111. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6112. (eval $ac_compile) 2>&5
  6113. ac_status=$?
  6114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); }; then
  6116. case `/usr/bin/file conftest.$ac_objext` in
  6117. *ELF-32*)
  6118. HPUX_IA64_MODE="32"
  6119. ;;
  6120. *ELF-64*)
  6121. HPUX_IA64_MODE="64"
  6122. ;;
  6123. esac
  6124. fi
  6125. rm -rf conftest*
  6126. ;;
  6127. *-*-irix6*)
  6128. # Find out which ABI we are using.
  6129. echo '#line 6972 "configure"' > conftest.$ac_ext
  6130. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6131. (eval $ac_compile) 2>&5
  6132. ac_status=$?
  6133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6134. (exit $ac_status); }; then
  6135. if test "$lt_cv_prog_gnu_ld" = yes; then
  6136. case `/usr/bin/file conftest.$ac_objext` in
  6137. *32-bit*)
  6138. LD="${LD-ld} -melf32bsmip"
  6139. ;;
  6140. *N32*)
  6141. LD="${LD-ld} -melf32bmipn32"
  6142. ;;
  6143. *64-bit*)
  6144. LD="${LD-ld} -melf64bmip"
  6145. ;;
  6146. esac
  6147. else
  6148. case `/usr/bin/file conftest.$ac_objext` in
  6149. *32-bit*)
  6150. LD="${LD-ld} -32"
  6151. ;;
  6152. *N32*)
  6153. LD="${LD-ld} -n32"
  6154. ;;
  6155. *64-bit*)
  6156. LD="${LD-ld} -64"
  6157. ;;
  6158. esac
  6159. fi
  6160. fi
  6161. rm -rf conftest*
  6162. ;;
  6163. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6164. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6165. # Find out which ABI we are using.
  6166. echo 'int i;' > conftest.$ac_ext
  6167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6168. (eval $ac_compile) 2>&5
  6169. ac_status=$?
  6170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6171. (exit $ac_status); }; then
  6172. case `/usr/bin/file conftest.o` in
  6173. *32-bit*)
  6174. case $host in
  6175. x86_64-*kfreebsd*-gnu)
  6176. LD="${LD-ld} -m elf_i386_fbsd"
  6177. ;;
  6178. x86_64-*linux*)
  6179. LD="${LD-ld} -m elf_i386"
  6180. ;;
  6181. ppc64-*linux*|powerpc64-*linux*)
  6182. LD="${LD-ld} -m elf32ppclinux"
  6183. ;;
  6184. s390x-*linux*)
  6185. LD="${LD-ld} -m elf_s390"
  6186. ;;
  6187. sparc64-*linux*)
  6188. LD="${LD-ld} -m elf32_sparc"
  6189. ;;
  6190. esac
  6191. ;;
  6192. *64-bit*)
  6193. case $host in
  6194. x86_64-*kfreebsd*-gnu)
  6195. LD="${LD-ld} -m elf_x86_64_fbsd"
  6196. ;;
  6197. x86_64-*linux*)
  6198. LD="${LD-ld} -m elf_x86_64"
  6199. ;;
  6200. ppc*-*linux*|powerpc*-*linux*)
  6201. LD="${LD-ld} -m elf64ppc"
  6202. ;;
  6203. s390*-*linux*|s390*-*tpf*)
  6204. LD="${LD-ld} -m elf64_s390"
  6205. ;;
  6206. sparc*-*linux*)
  6207. LD="${LD-ld} -m elf64_sparc"
  6208. ;;
  6209. esac
  6210. ;;
  6211. esac
  6212. fi
  6213. rm -rf conftest*
  6214. ;;
  6215. *-*-sco3.2v5*)
  6216. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6217. SAVE_CFLAGS="$CFLAGS"
  6218. CFLAGS="$CFLAGS -belf"
  6219. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6220. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6221. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. ac_ext=c
  6225. ac_cpp='$CPP $CPPFLAGS'
  6226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6229. cat >conftest.$ac_ext <<_ACEOF
  6230. /* confdefs.h. */
  6231. _ACEOF
  6232. cat confdefs.h >>conftest.$ac_ext
  6233. cat >>conftest.$ac_ext <<_ACEOF
  6234. /* end confdefs.h. */
  6235. int
  6236. main ()
  6237. {
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest.$ac_objext conftest$ac_exeext
  6243. if { (ac_try="$ac_link"
  6244. case "(($ac_try" in
  6245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6246. *) ac_try_echo=$ac_try;;
  6247. esac
  6248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6249. $as_echo "$ac_try_echo") >&5
  6250. (eval "$ac_link") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_c_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest$ac_exeext && {
  6260. test "$cross_compiling" = yes ||
  6261. $as_test_x conftest$ac_exeext
  6262. }; then
  6263. lt_cv_cc_needs_belf=yes
  6264. else
  6265. $as_echo "$as_me: failed program was:" >&5
  6266. sed 's/^/| /' conftest.$ac_ext >&5
  6267. lt_cv_cc_needs_belf=no
  6268. fi
  6269. rm -rf conftest.dSYM
  6270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6271. conftest$ac_exeext conftest.$ac_ext
  6272. ac_ext=c
  6273. ac_cpp='$CPP $CPPFLAGS'
  6274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6277. fi
  6278. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6279. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6280. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6281. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6282. CFLAGS="$SAVE_CFLAGS"
  6283. fi
  6284. ;;
  6285. sparc*-*solaris*)
  6286. # Find out which ABI we are using.
  6287. echo 'int i;' > conftest.$ac_ext
  6288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6289. (eval $ac_compile) 2>&5
  6290. ac_status=$?
  6291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); }; then
  6293. case `/usr/bin/file conftest.o` in
  6294. *64-bit*)
  6295. case $lt_cv_prog_gnu_ld in
  6296. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6297. *)
  6298. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6299. LD="${LD-ld} -64"
  6300. fi
  6301. ;;
  6302. esac
  6303. ;;
  6304. esac
  6305. fi
  6306. rm -rf conftest*
  6307. ;;
  6308. esac
  6309. need_locks="$enable_libtool_lock"
  6310. case $host_os in
  6311. rhapsody* | darwin*)
  6312. if test -n "$ac_tool_prefix"; then
  6313. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6314. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6315. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6316. $as_echo_n "checking for $ac_word... " >&6; }
  6317. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. if test -n "$DSYMUTIL"; then
  6321. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6322. else
  6323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6324. for as_dir in $PATH
  6325. do
  6326. IFS=$as_save_IFS
  6327. test -z "$as_dir" && as_dir=.
  6328. for ac_exec_ext in '' $ac_executable_extensions; do
  6329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6330. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6331. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6332. break 2
  6333. fi
  6334. done
  6335. done
  6336. IFS=$as_save_IFS
  6337. fi
  6338. fi
  6339. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6340. if test -n "$DSYMUTIL"; then
  6341. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6342. $as_echo "$DSYMUTIL" >&6; }
  6343. else
  6344. { $as_echo "$as_me:$LINENO: result: no" >&5
  6345. $as_echo "no" >&6; }
  6346. fi
  6347. fi
  6348. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6349. ac_ct_DSYMUTIL=$DSYMUTIL
  6350. # Extract the first word of "dsymutil", so it can be a program name with args.
  6351. set dummy dsymutil; ac_word=$2
  6352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$ac_ct_DSYMUTIL"; then
  6358. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6367. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6368. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6377. if test -n "$ac_ct_DSYMUTIL"; then
  6378. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6379. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6380. else
  6381. { $as_echo "$as_me:$LINENO: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. if test "x$ac_ct_DSYMUTIL" = x; then
  6385. DSYMUTIL=":"
  6386. else
  6387. case $cross_compiling:$ac_tool_warned in
  6388. yes:)
  6389. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6391. ac_tool_warned=yes ;;
  6392. esac
  6393. DSYMUTIL=$ac_ct_DSYMUTIL
  6394. fi
  6395. else
  6396. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6397. fi
  6398. if test -n "$ac_tool_prefix"; then
  6399. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6400. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6401. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test -n "$NMEDIT"; then
  6407. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. test -z "$as_dir" && as_dir=.
  6414. for ac_exec_ext in '' $ac_executable_extensions; do
  6415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6416. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6417. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6418. break 2
  6419. fi
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. fi
  6424. fi
  6425. NMEDIT=$ac_cv_prog_NMEDIT
  6426. if test -n "$NMEDIT"; then
  6427. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6428. $as_echo "$NMEDIT" >&6; }
  6429. else
  6430. { $as_echo "$as_me:$LINENO: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433. fi
  6434. if test -z "$ac_cv_prog_NMEDIT"; then
  6435. ac_ct_NMEDIT=$NMEDIT
  6436. # Extract the first word of "nmedit", so it can be a program name with args.
  6437. set dummy nmedit; ac_word=$2
  6438. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$ac_ct_NMEDIT"; then
  6444. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6453. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6454. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6463. if test -n "$ac_ct_NMEDIT"; then
  6464. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6465. $as_echo "$ac_ct_NMEDIT" >&6; }
  6466. else
  6467. { $as_echo "$as_me:$LINENO: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. if test "x$ac_ct_NMEDIT" = x; then
  6471. NMEDIT=":"
  6472. else
  6473. case $cross_compiling:$ac_tool_warned in
  6474. yes:)
  6475. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6477. ac_tool_warned=yes ;;
  6478. esac
  6479. NMEDIT=$ac_ct_NMEDIT
  6480. fi
  6481. else
  6482. NMEDIT="$ac_cv_prog_NMEDIT"
  6483. fi
  6484. if test -n "$ac_tool_prefix"; then
  6485. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6486. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6487. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if test "${ac_cv_prog_LIPO+set}" = set; then
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$LIPO"; then
  6493. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6502. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6503. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. LIPO=$ac_cv_prog_LIPO
  6512. if test -n "$LIPO"; then
  6513. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6514. $as_echo "$LIPO" >&6; }
  6515. else
  6516. { $as_echo "$as_me:$LINENO: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. fi
  6520. if test -z "$ac_cv_prog_LIPO"; then
  6521. ac_ct_LIPO=$LIPO
  6522. # Extract the first word of "lipo", so it can be a program name with args.
  6523. set dummy lipo; ac_word=$2
  6524. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. if test -n "$ac_ct_LIPO"; then
  6530. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. test -z "$as_dir" && as_dir=.
  6537. for ac_exec_ext in '' $ac_executable_extensions; do
  6538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6539. ac_cv_prog_ac_ct_LIPO="lipo"
  6540. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6541. break 2
  6542. fi
  6543. done
  6544. done
  6545. IFS=$as_save_IFS
  6546. fi
  6547. fi
  6548. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6549. if test -n "$ac_ct_LIPO"; then
  6550. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6551. $as_echo "$ac_ct_LIPO" >&6; }
  6552. else
  6553. { $as_echo "$as_me:$LINENO: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. if test "x$ac_ct_LIPO" = x; then
  6557. LIPO=":"
  6558. else
  6559. case $cross_compiling:$ac_tool_warned in
  6560. yes:)
  6561. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6563. ac_tool_warned=yes ;;
  6564. esac
  6565. LIPO=$ac_ct_LIPO
  6566. fi
  6567. else
  6568. LIPO="$ac_cv_prog_LIPO"
  6569. fi
  6570. if test -n "$ac_tool_prefix"; then
  6571. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6572. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6573. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6574. $as_echo_n "checking for $ac_word... " >&6; }
  6575. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. if test -n "$OTOOL"; then
  6579. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6580. else
  6581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6582. for as_dir in $PATH
  6583. do
  6584. IFS=$as_save_IFS
  6585. test -z "$as_dir" && as_dir=.
  6586. for ac_exec_ext in '' $ac_executable_extensions; do
  6587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6588. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6589. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6590. break 2
  6591. fi
  6592. done
  6593. done
  6594. IFS=$as_save_IFS
  6595. fi
  6596. fi
  6597. OTOOL=$ac_cv_prog_OTOOL
  6598. if test -n "$OTOOL"; then
  6599. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6600. $as_echo "$OTOOL" >&6; }
  6601. else
  6602. { $as_echo "$as_me:$LINENO: result: no" >&5
  6603. $as_echo "no" >&6; }
  6604. fi
  6605. fi
  6606. if test -z "$ac_cv_prog_OTOOL"; then
  6607. ac_ct_OTOOL=$OTOOL
  6608. # Extract the first word of "otool", so it can be a program name with args.
  6609. set dummy otool; ac_word=$2
  6610. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6611. $as_echo_n "checking for $ac_word... " >&6; }
  6612. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. if test -n "$ac_ct_OTOOL"; then
  6616. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6617. else
  6618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6619. for as_dir in $PATH
  6620. do
  6621. IFS=$as_save_IFS
  6622. test -z "$as_dir" && as_dir=.
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6625. ac_cv_prog_ac_ct_OTOOL="otool"
  6626. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. fi
  6633. fi
  6634. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6635. if test -n "$ac_ct_OTOOL"; then
  6636. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6637. $as_echo "$ac_ct_OTOOL" >&6; }
  6638. else
  6639. { $as_echo "$as_me:$LINENO: result: no" >&5
  6640. $as_echo "no" >&6; }
  6641. fi
  6642. if test "x$ac_ct_OTOOL" = x; then
  6643. OTOOL=":"
  6644. else
  6645. case $cross_compiling:$ac_tool_warned in
  6646. yes:)
  6647. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6649. ac_tool_warned=yes ;;
  6650. esac
  6651. OTOOL=$ac_ct_OTOOL
  6652. fi
  6653. else
  6654. OTOOL="$ac_cv_prog_OTOOL"
  6655. fi
  6656. if test -n "$ac_tool_prefix"; then
  6657. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6658. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6659. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6660. $as_echo_n "checking for $ac_word... " >&6; }
  6661. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6662. $as_echo_n "(cached) " >&6
  6663. else
  6664. if test -n "$OTOOL64"; then
  6665. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6666. else
  6667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6668. for as_dir in $PATH
  6669. do
  6670. IFS=$as_save_IFS
  6671. test -z "$as_dir" && as_dir=.
  6672. for ac_exec_ext in '' $ac_executable_extensions; do
  6673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6674. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6675. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6676. break 2
  6677. fi
  6678. done
  6679. done
  6680. IFS=$as_save_IFS
  6681. fi
  6682. fi
  6683. OTOOL64=$ac_cv_prog_OTOOL64
  6684. if test -n "$OTOOL64"; then
  6685. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6686. $as_echo "$OTOOL64" >&6; }
  6687. else
  6688. { $as_echo "$as_me:$LINENO: result: no" >&5
  6689. $as_echo "no" >&6; }
  6690. fi
  6691. fi
  6692. if test -z "$ac_cv_prog_OTOOL64"; then
  6693. ac_ct_OTOOL64=$OTOOL64
  6694. # Extract the first word of "otool64", so it can be a program name with args.
  6695. set dummy otool64; ac_word=$2
  6696. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6697. $as_echo_n "checking for $ac_word... " >&6; }
  6698. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. if test -n "$ac_ct_OTOOL64"; then
  6702. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6703. else
  6704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6705. for as_dir in $PATH
  6706. do
  6707. IFS=$as_save_IFS
  6708. test -z "$as_dir" && as_dir=.
  6709. for ac_exec_ext in '' $ac_executable_extensions; do
  6710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6711. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6712. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6713. break 2
  6714. fi
  6715. done
  6716. done
  6717. IFS=$as_save_IFS
  6718. fi
  6719. fi
  6720. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6721. if test -n "$ac_ct_OTOOL64"; then
  6722. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6723. $as_echo "$ac_ct_OTOOL64" >&6; }
  6724. else
  6725. { $as_echo "$as_me:$LINENO: result: no" >&5
  6726. $as_echo "no" >&6; }
  6727. fi
  6728. if test "x$ac_ct_OTOOL64" = x; then
  6729. OTOOL64=":"
  6730. else
  6731. case $cross_compiling:$ac_tool_warned in
  6732. yes:)
  6733. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6735. ac_tool_warned=yes ;;
  6736. esac
  6737. OTOOL64=$ac_ct_OTOOL64
  6738. fi
  6739. else
  6740. OTOOL64="$ac_cv_prog_OTOOL64"
  6741. fi
  6742. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6743. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6744. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. lt_cv_apple_cc_single_mod=no
  6748. if test -z "${LT_MULTI_MODULE}"; then
  6749. # By default we will add the -single_module flag. You can override
  6750. # by either setting the environment variable LT_MULTI_MODULE
  6751. # non-empty at configure time, or by adding -multi_module to the
  6752. # link flags.
  6753. rm -rf libconftest.dylib*
  6754. echo "int foo(void){return 1;}" > conftest.c
  6755. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6756. -dynamiclib -Wl,-single_module conftest.c" >&5
  6757. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6758. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6759. _lt_result=$?
  6760. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6761. lt_cv_apple_cc_single_mod=yes
  6762. else
  6763. cat conftest.err >&5
  6764. fi
  6765. rm -rf libconftest.dylib*
  6766. rm -f conftest.*
  6767. fi
  6768. fi
  6769. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6770. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6771. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6772. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6773. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. lt_cv_ld_exported_symbols_list=no
  6777. save_LDFLAGS=$LDFLAGS
  6778. echo "_main" > conftest.sym
  6779. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. int
  6787. main ()
  6788. {
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. rm -f conftest.$ac_objext conftest$ac_exeext
  6794. if { (ac_try="$ac_link"
  6795. case "(($ac_try" in
  6796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6797. *) ac_try_echo=$ac_try;;
  6798. esac
  6799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6800. $as_echo "$ac_try_echo") >&5
  6801. (eval "$ac_link") 2>conftest.er1
  6802. ac_status=$?
  6803. grep -v '^ *+' conftest.er1 >conftest.err
  6804. rm -f conftest.er1
  6805. cat conftest.err >&5
  6806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); } && {
  6808. test -z "$ac_c_werror_flag" ||
  6809. test ! -s conftest.err
  6810. } && test -s conftest$ac_exeext && {
  6811. test "$cross_compiling" = yes ||
  6812. $as_test_x conftest$ac_exeext
  6813. }; then
  6814. lt_cv_ld_exported_symbols_list=yes
  6815. else
  6816. $as_echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. lt_cv_ld_exported_symbols_list=no
  6819. fi
  6820. rm -rf conftest.dSYM
  6821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6822. conftest$ac_exeext conftest.$ac_ext
  6823. LDFLAGS="$save_LDFLAGS"
  6824. fi
  6825. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6826. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6827. case $host_os in
  6828. rhapsody* | darwin1.[012])
  6829. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6830. darwin1.*)
  6831. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6832. darwin*) # darwin 5.x on
  6833. # if running on 10.5 or later, the deployment target defaults
  6834. # to the OS version, if on x86, and 10.4, the deployment
  6835. # target defaults to 10.4. Don't you love it?
  6836. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6837. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6838. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6839. 10.[012]*)
  6840. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6841. 10.*)
  6842. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6843. esac
  6844. ;;
  6845. esac
  6846. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6847. _lt_dar_single_mod='$single_module'
  6848. fi
  6849. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6850. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6851. else
  6852. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6853. fi
  6854. if test "$DSYMUTIL" != ":"; then
  6855. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6856. else
  6857. _lt_dsymutil=
  6858. fi
  6859. ;;
  6860. esac
  6861. ac_ext=c
  6862. ac_cpp='$CPP $CPPFLAGS'
  6863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6866. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6867. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6868. # On Suns, sometimes $CPP names a directory.
  6869. if test -n "$CPP" && test -d "$CPP"; then
  6870. CPP=
  6871. fi
  6872. if test -z "$CPP"; then
  6873. if test "${ac_cv_prog_CPP+set}" = set; then
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. # Double quotes because CPP needs to be expanded
  6877. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6878. do
  6879. ac_preproc_ok=false
  6880. for ac_c_preproc_warn_flag in '' yes
  6881. do
  6882. # Use a header file that comes with gcc, so configuring glibc
  6883. # with a fresh cross-compiler works.
  6884. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6885. # <limits.h> exists even on freestanding compilers.
  6886. # On the NeXT, cc -E runs the code through the compiler's parser,
  6887. # not just through cpp. "Syntax error" is here to catch this case.
  6888. cat >conftest.$ac_ext <<_ACEOF
  6889. /* confdefs.h. */
  6890. _ACEOF
  6891. cat confdefs.h >>conftest.$ac_ext
  6892. cat >>conftest.$ac_ext <<_ACEOF
  6893. /* end confdefs.h. */
  6894. #ifdef __STDC__
  6895. # include <limits.h>
  6896. #else
  6897. # include <assert.h>
  6898. #endif
  6899. Syntax error
  6900. _ACEOF
  6901. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6902. case "(($ac_try" in
  6903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6904. *) ac_try_echo=$ac_try;;
  6905. esac
  6906. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6907. $as_echo "$ac_try_echo") >&5
  6908. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6909. ac_status=$?
  6910. grep -v '^ *+' conftest.er1 >conftest.err
  6911. rm -f conftest.er1
  6912. cat conftest.err >&5
  6913. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); } >/dev/null && {
  6915. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6916. test ! -s conftest.err
  6917. }; then
  6918. :
  6919. else
  6920. $as_echo "$as_me: failed program was:" >&5
  6921. sed 's/^/| /' conftest.$ac_ext >&5
  6922. # Broken: fails on valid input.
  6923. continue
  6924. fi
  6925. rm -f conftest.err conftest.$ac_ext
  6926. # OK, works on sane cases. Now check whether nonexistent headers
  6927. # can be detected and how.
  6928. cat >conftest.$ac_ext <<_ACEOF
  6929. /* confdefs.h. */
  6930. _ACEOF
  6931. cat confdefs.h >>conftest.$ac_ext
  6932. cat >>conftest.$ac_ext <<_ACEOF
  6933. /* end confdefs.h. */
  6934. #include <ac_nonexistent.h>
  6935. _ACEOF
  6936. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6937. case "(($ac_try" in
  6938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6939. *) ac_try_echo=$ac_try;;
  6940. esac
  6941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6942. $as_echo "$ac_try_echo") >&5
  6943. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6944. ac_status=$?
  6945. grep -v '^ *+' conftest.er1 >conftest.err
  6946. rm -f conftest.er1
  6947. cat conftest.err >&5
  6948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6949. (exit $ac_status); } >/dev/null && {
  6950. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6951. test ! -s conftest.err
  6952. }; then
  6953. # Broken: success on invalid input.
  6954. continue
  6955. else
  6956. $as_echo "$as_me: failed program was:" >&5
  6957. sed 's/^/| /' conftest.$ac_ext >&5
  6958. # Passes both tests.
  6959. ac_preproc_ok=:
  6960. break
  6961. fi
  6962. rm -f conftest.err conftest.$ac_ext
  6963. done
  6964. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6965. rm -f conftest.err conftest.$ac_ext
  6966. if $ac_preproc_ok; then
  6967. break
  6968. fi
  6969. done
  6970. ac_cv_prog_CPP=$CPP
  6971. fi
  6972. CPP=$ac_cv_prog_CPP
  6973. else
  6974. ac_cv_prog_CPP=$CPP
  6975. fi
  6976. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6977. $as_echo "$CPP" >&6; }
  6978. ac_preproc_ok=false
  6979. for ac_c_preproc_warn_flag in '' yes
  6980. do
  6981. # Use a header file that comes with gcc, so configuring glibc
  6982. # with a fresh cross-compiler works.
  6983. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6984. # <limits.h> exists even on freestanding compilers.
  6985. # On the NeXT, cc -E runs the code through the compiler's parser,
  6986. # not just through cpp. "Syntax error" is here to catch this case.
  6987. cat >conftest.$ac_ext <<_ACEOF
  6988. /* confdefs.h. */
  6989. _ACEOF
  6990. cat confdefs.h >>conftest.$ac_ext
  6991. cat >>conftest.$ac_ext <<_ACEOF
  6992. /* end confdefs.h. */
  6993. #ifdef __STDC__
  6994. # include <limits.h>
  6995. #else
  6996. # include <assert.h>
  6997. #endif
  6998. Syntax error
  6999. _ACEOF
  7000. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7001. case "(($ac_try" in
  7002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7003. *) ac_try_echo=$ac_try;;
  7004. esac
  7005. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7006. $as_echo "$ac_try_echo") >&5
  7007. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7008. ac_status=$?
  7009. grep -v '^ *+' conftest.er1 >conftest.err
  7010. rm -f conftest.er1
  7011. cat conftest.err >&5
  7012. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); } >/dev/null && {
  7014. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7015. test ! -s conftest.err
  7016. }; then
  7017. :
  7018. else
  7019. $as_echo "$as_me: failed program was:" >&5
  7020. sed 's/^/| /' conftest.$ac_ext >&5
  7021. # Broken: fails on valid input.
  7022. continue
  7023. fi
  7024. rm -f conftest.err conftest.$ac_ext
  7025. # OK, works on sane cases. Now check whether nonexistent headers
  7026. # can be detected and how.
  7027. cat >conftest.$ac_ext <<_ACEOF
  7028. /* confdefs.h. */
  7029. _ACEOF
  7030. cat confdefs.h >>conftest.$ac_ext
  7031. cat >>conftest.$ac_ext <<_ACEOF
  7032. /* end confdefs.h. */
  7033. #include <ac_nonexistent.h>
  7034. _ACEOF
  7035. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7036. case "(($ac_try" in
  7037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7038. *) ac_try_echo=$ac_try;;
  7039. esac
  7040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7041. $as_echo "$ac_try_echo") >&5
  7042. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7043. ac_status=$?
  7044. grep -v '^ *+' conftest.er1 >conftest.err
  7045. rm -f conftest.er1
  7046. cat conftest.err >&5
  7047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7048. (exit $ac_status); } >/dev/null && {
  7049. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7050. test ! -s conftest.err
  7051. }; then
  7052. # Broken: success on invalid input.
  7053. continue
  7054. else
  7055. $as_echo "$as_me: failed program was:" >&5
  7056. sed 's/^/| /' conftest.$ac_ext >&5
  7057. # Passes both tests.
  7058. ac_preproc_ok=:
  7059. break
  7060. fi
  7061. rm -f conftest.err conftest.$ac_ext
  7062. done
  7063. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7064. rm -f conftest.err conftest.$ac_ext
  7065. if $ac_preproc_ok; then
  7066. :
  7067. else
  7068. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7070. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  7071. See \`config.log' for more details." >&5
  7072. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  7073. See \`config.log' for more details." >&2;}
  7074. { (exit 1); exit 1; }; }; }
  7075. fi
  7076. ac_ext=c
  7077. ac_cpp='$CPP $CPPFLAGS'
  7078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7081. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7082. $as_echo_n "checking for ANSI C header files... " >&6; }
  7083. if test "${ac_cv_header_stdc+set}" = set; then
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. cat >conftest.$ac_ext <<_ACEOF
  7087. /* confdefs.h. */
  7088. _ACEOF
  7089. cat confdefs.h >>conftest.$ac_ext
  7090. cat >>conftest.$ac_ext <<_ACEOF
  7091. /* end confdefs.h. */
  7092. #include <stdlib.h>
  7093. #include <stdarg.h>
  7094. #include <string.h>
  7095. #include <float.h>
  7096. int
  7097. main ()
  7098. {
  7099. ;
  7100. return 0;
  7101. }
  7102. _ACEOF
  7103. rm -f conftest.$ac_objext
  7104. if { (ac_try="$ac_compile"
  7105. case "(($ac_try" in
  7106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7107. *) ac_try_echo=$ac_try;;
  7108. esac
  7109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7110. $as_echo "$ac_try_echo") >&5
  7111. (eval "$ac_compile") 2>conftest.er1
  7112. ac_status=$?
  7113. grep -v '^ *+' conftest.er1 >conftest.err
  7114. rm -f conftest.er1
  7115. cat conftest.err >&5
  7116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7117. (exit $ac_status); } && {
  7118. test -z "$ac_c_werror_flag" ||
  7119. test ! -s conftest.err
  7120. } && test -s conftest.$ac_objext; then
  7121. ac_cv_header_stdc=yes
  7122. else
  7123. $as_echo "$as_me: failed program was:" >&5
  7124. sed 's/^/| /' conftest.$ac_ext >&5
  7125. ac_cv_header_stdc=no
  7126. fi
  7127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7128. if test $ac_cv_header_stdc = yes; then
  7129. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7130. cat >conftest.$ac_ext <<_ACEOF
  7131. /* confdefs.h. */
  7132. _ACEOF
  7133. cat confdefs.h >>conftest.$ac_ext
  7134. cat >>conftest.$ac_ext <<_ACEOF
  7135. /* end confdefs.h. */
  7136. #include <string.h>
  7137. _ACEOF
  7138. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7139. $EGREP "memchr" >/dev/null 2>&1; then
  7140. :
  7141. else
  7142. ac_cv_header_stdc=no
  7143. fi
  7144. rm -f conftest*
  7145. fi
  7146. if test $ac_cv_header_stdc = yes; then
  7147. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7148. cat >conftest.$ac_ext <<_ACEOF
  7149. /* confdefs.h. */
  7150. _ACEOF
  7151. cat confdefs.h >>conftest.$ac_ext
  7152. cat >>conftest.$ac_ext <<_ACEOF
  7153. /* end confdefs.h. */
  7154. #include <stdlib.h>
  7155. _ACEOF
  7156. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7157. $EGREP "free" >/dev/null 2>&1; then
  7158. :
  7159. else
  7160. ac_cv_header_stdc=no
  7161. fi
  7162. rm -f conftest*
  7163. fi
  7164. if test $ac_cv_header_stdc = yes; then
  7165. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7166. if test "$cross_compiling" = yes; then
  7167. :
  7168. else
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. #include <ctype.h>
  7176. #include <stdlib.h>
  7177. #if ((' ' & 0x0FF) == 0x020)
  7178. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7179. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7180. #else
  7181. # define ISLOWER(c) \
  7182. (('a' <= (c) && (c) <= 'i') \
  7183. || ('j' <= (c) && (c) <= 'r') \
  7184. || ('s' <= (c) && (c) <= 'z'))
  7185. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7186. #endif
  7187. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7188. int
  7189. main ()
  7190. {
  7191. int i;
  7192. for (i = 0; i < 256; i++)
  7193. if (XOR (islower (i), ISLOWER (i))
  7194. || toupper (i) != TOUPPER (i))
  7195. return 2;
  7196. return 0;
  7197. }
  7198. _ACEOF
  7199. rm -f conftest$ac_exeext
  7200. if { (ac_try="$ac_link"
  7201. case "(($ac_try" in
  7202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7203. *) ac_try_echo=$ac_try;;
  7204. esac
  7205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7206. $as_echo "$ac_try_echo") >&5
  7207. (eval "$ac_link") 2>&5
  7208. ac_status=$?
  7209. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7210. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7211. { (case "(($ac_try" in
  7212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7213. *) ac_try_echo=$ac_try;;
  7214. esac
  7215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7216. $as_echo "$ac_try_echo") >&5
  7217. (eval "$ac_try") 2>&5
  7218. ac_status=$?
  7219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); }; }; then
  7221. :
  7222. else
  7223. $as_echo "$as_me: program exited with status $ac_status" >&5
  7224. $as_echo "$as_me: failed program was:" >&5
  7225. sed 's/^/| /' conftest.$ac_ext >&5
  7226. ( exit $ac_status )
  7227. ac_cv_header_stdc=no
  7228. fi
  7229. rm -rf conftest.dSYM
  7230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7231. fi
  7232. fi
  7233. fi
  7234. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7235. $as_echo "$ac_cv_header_stdc" >&6; }
  7236. if test $ac_cv_header_stdc = yes; then
  7237. cat >>confdefs.h <<\_ACEOF
  7238. #define STDC_HEADERS 1
  7239. _ACEOF
  7240. fi
  7241. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7242. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7243. inttypes.h stdint.h unistd.h
  7244. do
  7245. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7246. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7247. $as_echo_n "checking for $ac_header... " >&6; }
  7248. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7249. $as_echo_n "(cached) " >&6
  7250. else
  7251. cat >conftest.$ac_ext <<_ACEOF
  7252. /* confdefs.h. */
  7253. _ACEOF
  7254. cat confdefs.h >>conftest.$ac_ext
  7255. cat >>conftest.$ac_ext <<_ACEOF
  7256. /* end confdefs.h. */
  7257. $ac_includes_default
  7258. #include <$ac_header>
  7259. _ACEOF
  7260. rm -f conftest.$ac_objext
  7261. if { (ac_try="$ac_compile"
  7262. case "(($ac_try" in
  7263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7264. *) ac_try_echo=$ac_try;;
  7265. esac
  7266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7267. $as_echo "$ac_try_echo") >&5
  7268. (eval "$ac_compile") 2>conftest.er1
  7269. ac_status=$?
  7270. grep -v '^ *+' conftest.er1 >conftest.err
  7271. rm -f conftest.er1
  7272. cat conftest.err >&5
  7273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7274. (exit $ac_status); } && {
  7275. test -z "$ac_c_werror_flag" ||
  7276. test ! -s conftest.err
  7277. } && test -s conftest.$ac_objext; then
  7278. eval "$as_ac_Header=yes"
  7279. else
  7280. $as_echo "$as_me: failed program was:" >&5
  7281. sed 's/^/| /' conftest.$ac_ext >&5
  7282. eval "$as_ac_Header=no"
  7283. fi
  7284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7285. fi
  7286. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7287. $as_echo "$as_val"'`
  7288. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7289. $as_echo "$ac_res" >&6; }
  7290. as_val=`eval 'as_val=${'$as_ac_Header'}
  7291. $as_echo "$as_val"'`
  7292. if test "x$as_val" = x""yes; then
  7293. cat >>confdefs.h <<_ACEOF
  7294. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7295. _ACEOF
  7296. fi
  7297. done
  7298. for ac_header in dlfcn.h
  7299. do
  7300. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7301. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7302. $as_echo_n "checking for $ac_header... " >&6; }
  7303. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. cat >conftest.$ac_ext <<_ACEOF
  7307. /* confdefs.h. */
  7308. _ACEOF
  7309. cat confdefs.h >>conftest.$ac_ext
  7310. cat >>conftest.$ac_ext <<_ACEOF
  7311. /* end confdefs.h. */
  7312. $ac_includes_default
  7313. #include <$ac_header>
  7314. _ACEOF
  7315. rm -f conftest.$ac_objext
  7316. if { (ac_try="$ac_compile"
  7317. case "(($ac_try" in
  7318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7319. *) ac_try_echo=$ac_try;;
  7320. esac
  7321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7322. $as_echo "$ac_try_echo") >&5
  7323. (eval "$ac_compile") 2>conftest.er1
  7324. ac_status=$?
  7325. grep -v '^ *+' conftest.er1 >conftest.err
  7326. rm -f conftest.er1
  7327. cat conftest.err >&5
  7328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7329. (exit $ac_status); } && {
  7330. test -z "$ac_c_werror_flag" ||
  7331. test ! -s conftest.err
  7332. } && test -s conftest.$ac_objext; then
  7333. eval "$as_ac_Header=yes"
  7334. else
  7335. $as_echo "$as_me: failed program was:" >&5
  7336. sed 's/^/| /' conftest.$ac_ext >&5
  7337. eval "$as_ac_Header=no"
  7338. fi
  7339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. fi
  7341. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7342. $as_echo "$as_val"'`
  7343. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7344. $as_echo "$ac_res" >&6; }
  7345. as_val=`eval 'as_val=${'$as_ac_Header'}
  7346. $as_echo "$as_val"'`
  7347. if test "x$as_val" = x""yes; then
  7348. cat >>confdefs.h <<_ACEOF
  7349. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7350. _ACEOF
  7351. fi
  7352. done
  7353. # Set options
  7354. enable_dlopen=no
  7355. enable_win32_dll=no
  7356. # Check whether --enable-shared was given.
  7357. if test "${enable_shared+set}" = set; then
  7358. enableval=$enable_shared; p=${PACKAGE-default}
  7359. case $enableval in
  7360. yes) enable_shared=yes ;;
  7361. no) enable_shared=no ;;
  7362. *)
  7363. enable_shared=no
  7364. # Look at the argument we got. We use all the common list separators.
  7365. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7366. for pkg in $enableval; do
  7367. IFS="$lt_save_ifs"
  7368. if test "X$pkg" = "X$p"; then
  7369. enable_shared=yes
  7370. fi
  7371. done
  7372. IFS="$lt_save_ifs"
  7373. ;;
  7374. esac
  7375. else
  7376. enable_shared=yes
  7377. fi
  7378. # Check whether --enable-static was given.
  7379. if test "${enable_static+set}" = set; then
  7380. enableval=$enable_static; p=${PACKAGE-default}
  7381. case $enableval in
  7382. yes) enable_static=yes ;;
  7383. no) enable_static=no ;;
  7384. *)
  7385. enable_static=no
  7386. # Look at the argument we got. We use all the common list separators.
  7387. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7388. for pkg in $enableval; do
  7389. IFS="$lt_save_ifs"
  7390. if test "X$pkg" = "X$p"; then
  7391. enable_static=yes
  7392. fi
  7393. done
  7394. IFS="$lt_save_ifs"
  7395. ;;
  7396. esac
  7397. else
  7398. enable_static=yes
  7399. fi
  7400. # Check whether --with-pic was given.
  7401. if test "${with_pic+set}" = set; then
  7402. withval=$with_pic; pic_mode="$withval"
  7403. else
  7404. pic_mode=default
  7405. fi
  7406. test -z "$pic_mode" && pic_mode=default
  7407. # Check whether --enable-fast-install was given.
  7408. if test "${enable_fast_install+set}" = set; then
  7409. enableval=$enable_fast_install; p=${PACKAGE-default}
  7410. case $enableval in
  7411. yes) enable_fast_install=yes ;;
  7412. no) enable_fast_install=no ;;
  7413. *)
  7414. enable_fast_install=no
  7415. # Look at the argument we got. We use all the common list separators.
  7416. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7417. for pkg in $enableval; do
  7418. IFS="$lt_save_ifs"
  7419. if test "X$pkg" = "X$p"; then
  7420. enable_fast_install=yes
  7421. fi
  7422. done
  7423. IFS="$lt_save_ifs"
  7424. ;;
  7425. esac
  7426. else
  7427. enable_fast_install=yes
  7428. fi
  7429. # This can be used to rebuild libtool when needed
  7430. LIBTOOL_DEPS="$ltmain"
  7431. # Always use our own libtool.
  7432. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7433. test -z "$LN_S" && LN_S="ln -s"
  7434. if test -n "${ZSH_VERSION+set}" ; then
  7435. setopt NO_GLOB_SUBST
  7436. fi
  7437. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7438. $as_echo_n "checking for objdir... " >&6; }
  7439. if test "${lt_cv_objdir+set}" = set; then
  7440. $as_echo_n "(cached) " >&6
  7441. else
  7442. rm -f .libs 2>/dev/null
  7443. mkdir .libs 2>/dev/null
  7444. if test -d .libs; then
  7445. lt_cv_objdir=.libs
  7446. else
  7447. # MS-DOS does not allow filenames that begin with a dot.
  7448. lt_cv_objdir=_libs
  7449. fi
  7450. rmdir .libs 2>/dev/null
  7451. fi
  7452. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7453. $as_echo "$lt_cv_objdir" >&6; }
  7454. objdir=$lt_cv_objdir
  7455. cat >>confdefs.h <<_ACEOF
  7456. #define LT_OBJDIR "$lt_cv_objdir/"
  7457. _ACEOF
  7458. case $host_os in
  7459. aix3*)
  7460. # AIX sometimes has problems with the GCC collect2 program. For some
  7461. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7462. # vanish in a puff of smoke.
  7463. if test "X${COLLECT_NAMES+set}" != Xset; then
  7464. COLLECT_NAMES=
  7465. export COLLECT_NAMES
  7466. fi
  7467. ;;
  7468. esac
  7469. # Sed substitution that helps us do robust quoting. It backslashifies
  7470. # metacharacters that are still active within double-quoted strings.
  7471. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7472. # Same as above, but do not quote variable references.
  7473. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7474. # Sed substitution to delay expansion of an escaped shell variable in a
  7475. # double_quote_subst'ed string.
  7476. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7477. # Sed substitution to delay expansion of an escaped single quote.
  7478. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7479. # Sed substitution to avoid accidental globbing in evaled expressions
  7480. no_glob_subst='s/\*/\\\*/g'
  7481. # Global variables:
  7482. ofile=libtool
  7483. can_build_shared=yes
  7484. # All known linkers require a `.a' archive for static linking (except MSVC,
  7485. # which needs '.lib').
  7486. libext=a
  7487. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7488. old_CC="$CC"
  7489. old_CFLAGS="$CFLAGS"
  7490. # Set sane defaults for various variables
  7491. test -z "$CC" && CC=cc
  7492. test -z "$LTCC" && LTCC=$CC
  7493. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7494. test -z "$LD" && LD=ld
  7495. test -z "$ac_objext" && ac_objext=o
  7496. for cc_temp in $compiler""; do
  7497. case $cc_temp in
  7498. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7499. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7500. \-*) ;;
  7501. *) break;;
  7502. esac
  7503. done
  7504. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7505. # Only perform the check for file, if the check method requires it
  7506. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7507. case $deplibs_check_method in
  7508. file_magic*)
  7509. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7510. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7511. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7512. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7513. $as_echo_n "(cached) " >&6
  7514. else
  7515. case $MAGIC_CMD in
  7516. [\\/*] | ?:[\\/]*)
  7517. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7518. ;;
  7519. *)
  7520. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7521. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7522. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7523. for ac_dir in $ac_dummy; do
  7524. IFS="$lt_save_ifs"
  7525. test -z "$ac_dir" && ac_dir=.
  7526. if test -f $ac_dir/${ac_tool_prefix}file; then
  7527. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7528. if test -n "$file_magic_test_file"; then
  7529. case $deplibs_check_method in
  7530. "file_magic "*)
  7531. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7532. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7533. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7534. $EGREP "$file_magic_regex" > /dev/null; then
  7535. :
  7536. else
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: the command libtool uses to detect shared libraries,
  7539. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7540. *** The result is that libtool may fail to recognize shared libraries
  7541. *** as such. This will affect the creation of libtool libraries that
  7542. *** depend on shared libraries, but programs linked with such libtool
  7543. *** libraries will work regardless of this problem. Nevertheless, you
  7544. *** may want to report the problem to your system manager and/or to
  7545. *** bug-libtool@gnu.org
  7546. _LT_EOF
  7547. fi ;;
  7548. esac
  7549. fi
  7550. break
  7551. fi
  7552. done
  7553. IFS="$lt_save_ifs"
  7554. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7555. ;;
  7556. esac
  7557. fi
  7558. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7559. if test -n "$MAGIC_CMD"; then
  7560. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7561. $as_echo "$MAGIC_CMD" >&6; }
  7562. else
  7563. { $as_echo "$as_me:$LINENO: result: no" >&5
  7564. $as_echo "no" >&6; }
  7565. fi
  7566. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7567. if test -n "$ac_tool_prefix"; then
  7568. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7569. $as_echo_n "checking for file... " >&6; }
  7570. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7571. $as_echo_n "(cached) " >&6
  7572. else
  7573. case $MAGIC_CMD in
  7574. [\\/*] | ?:[\\/]*)
  7575. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7576. ;;
  7577. *)
  7578. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7579. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7580. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7581. for ac_dir in $ac_dummy; do
  7582. IFS="$lt_save_ifs"
  7583. test -z "$ac_dir" && ac_dir=.
  7584. if test -f $ac_dir/file; then
  7585. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7586. if test -n "$file_magic_test_file"; then
  7587. case $deplibs_check_method in
  7588. "file_magic "*)
  7589. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7590. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7591. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7592. $EGREP "$file_magic_regex" > /dev/null; then
  7593. :
  7594. else
  7595. cat <<_LT_EOF 1>&2
  7596. *** Warning: the command libtool uses to detect shared libraries,
  7597. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7598. *** The result is that libtool may fail to recognize shared libraries
  7599. *** as such. This will affect the creation of libtool libraries that
  7600. *** depend on shared libraries, but programs linked with such libtool
  7601. *** libraries will work regardless of this problem. Nevertheless, you
  7602. *** may want to report the problem to your system manager and/or to
  7603. *** bug-libtool@gnu.org
  7604. _LT_EOF
  7605. fi ;;
  7606. esac
  7607. fi
  7608. break
  7609. fi
  7610. done
  7611. IFS="$lt_save_ifs"
  7612. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7613. ;;
  7614. esac
  7615. fi
  7616. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7617. if test -n "$MAGIC_CMD"; then
  7618. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7619. $as_echo "$MAGIC_CMD" >&6; }
  7620. else
  7621. { $as_echo "$as_me:$LINENO: result: no" >&5
  7622. $as_echo "no" >&6; }
  7623. fi
  7624. else
  7625. MAGIC_CMD=:
  7626. fi
  7627. fi
  7628. fi
  7629. ;;
  7630. esac
  7631. # Use C for the default configuration in the libtool script
  7632. lt_save_CC="$CC"
  7633. ac_ext=c
  7634. ac_cpp='$CPP $CPPFLAGS'
  7635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7638. # Source file extension for C test sources.
  7639. ac_ext=c
  7640. # Object file extension for compiled C test sources.
  7641. objext=o
  7642. objext=$objext
  7643. # Code to be used in simple compile tests
  7644. lt_simple_compile_test_code="int some_variable = 0;"
  7645. # Code to be used in simple link tests
  7646. lt_simple_link_test_code='int main(){return(0);}'
  7647. # If no C compiler was specified, use CC.
  7648. LTCC=${LTCC-"$CC"}
  7649. # If no C compiler flags were specified, use CFLAGS.
  7650. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7651. # Allow CC to be a program name with arguments.
  7652. compiler=$CC
  7653. # Save the default compiler, since it gets overwritten when the other
  7654. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7655. compiler_DEFAULT=$CC
  7656. # save warnings/boilerplate of simple test code
  7657. ac_outfile=conftest.$ac_objext
  7658. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7659. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7660. _lt_compiler_boilerplate=`cat conftest.err`
  7661. $RM conftest*
  7662. ac_outfile=conftest.$ac_objext
  7663. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7664. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7665. _lt_linker_boilerplate=`cat conftest.err`
  7666. $RM -r conftest*
  7667. ## CAVEAT EMPTOR:
  7668. ## There is no encapsulation within the following macros, do not change
  7669. ## the running order or otherwise move them around unless you know exactly
  7670. ## what you are doing...
  7671. if test -n "$compiler"; then
  7672. lt_prog_compiler_no_builtin_flag=
  7673. if test "$GCC" = yes; then
  7674. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7675. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7676. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7677. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7678. $as_echo_n "(cached) " >&6
  7679. else
  7680. lt_cv_prog_compiler_rtti_exceptions=no
  7681. ac_outfile=conftest.$ac_objext
  7682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7683. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7684. # Insert the option either (1) after the last *FLAGS variable, or
  7685. # (2) before a word containing "conftest.", or (3) at the end.
  7686. # Note that $ac_compile itself does not contain backslashes and begins
  7687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7688. # The option is referenced via a variable to avoid confusing sed.
  7689. lt_compile=`echo "$ac_compile" | $SED \
  7690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7692. -e 's:$: $lt_compiler_flag:'`
  7693. (eval echo "\"\$as_me:8829: $lt_compile\"" >&5)
  7694. (eval "$lt_compile" 2>conftest.err)
  7695. ac_status=$?
  7696. cat conftest.err >&5
  7697. echo "$as_me:8833: \$? = $ac_status" >&5
  7698. if (exit $ac_status) && test -s "$ac_outfile"; then
  7699. # The compiler can only warn and ignore the option if not recognized
  7700. # So say no if there are warnings other than the usual output.
  7701. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7702. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7703. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7704. lt_cv_prog_compiler_rtti_exceptions=yes
  7705. fi
  7706. fi
  7707. $RM conftest*
  7708. fi
  7709. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7710. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7711. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7712. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7713. else
  7714. :
  7715. fi
  7716. fi
  7717. lt_prog_compiler_wl=
  7718. lt_prog_compiler_pic=
  7719. lt_prog_compiler_static=
  7720. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7721. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7722. if test "$GCC" = yes; then
  7723. lt_prog_compiler_wl='-Wl,'
  7724. lt_prog_compiler_static='-static'
  7725. case $host_os in
  7726. aix*)
  7727. # All AIX code is PIC.
  7728. if test "$host_cpu" = ia64; then
  7729. # AIX 5 now supports IA64 processor
  7730. lt_prog_compiler_static='-Bstatic'
  7731. fi
  7732. ;;
  7733. amigaos*)
  7734. case $host_cpu in
  7735. powerpc)
  7736. # see comment about AmigaOS4 .so support
  7737. lt_prog_compiler_pic='-fPIC'
  7738. ;;
  7739. m68k)
  7740. # FIXME: we need at least 68020 code to build shared libraries, but
  7741. # adding the `-m68020' flag to GCC prevents building anything better,
  7742. # like `-m68040'.
  7743. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7744. ;;
  7745. esac
  7746. ;;
  7747. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7748. # PIC is the default for these OSes.
  7749. ;;
  7750. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7751. # This hack is so that the source file can tell whether it is being
  7752. # built for inclusion in a dll (and should export symbols for example).
  7753. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7754. # (--disable-auto-import) libraries
  7755. lt_prog_compiler_pic='-DDLL_EXPORT'
  7756. ;;
  7757. darwin* | rhapsody*)
  7758. # PIC is the default on this platform
  7759. # Common symbols not allowed in MH_DYLIB files
  7760. lt_prog_compiler_pic='-fno-common'
  7761. ;;
  7762. hpux*)
  7763. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7764. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7765. # sets the default TLS model and affects inlining.
  7766. case $host_cpu in
  7767. hppa*64*)
  7768. # +Z the default
  7769. ;;
  7770. *)
  7771. lt_prog_compiler_pic='-fPIC'
  7772. ;;
  7773. esac
  7774. ;;
  7775. interix[3-9]*)
  7776. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7777. # Instead, we relocate shared libraries at runtime.
  7778. ;;
  7779. msdosdjgpp*)
  7780. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7781. # on systems that don't support them.
  7782. lt_prog_compiler_can_build_shared=no
  7783. enable_shared=no
  7784. ;;
  7785. *nto* | *qnx*)
  7786. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7787. # it will coredump.
  7788. lt_prog_compiler_pic='-fPIC -shared'
  7789. ;;
  7790. sysv4*MP*)
  7791. if test -d /usr/nec; then
  7792. lt_prog_compiler_pic=-Kconform_pic
  7793. fi
  7794. ;;
  7795. *)
  7796. lt_prog_compiler_pic='-fPIC'
  7797. ;;
  7798. esac
  7799. else
  7800. # PORTME Check for flag to pass linker flags through the system compiler.
  7801. case $host_os in
  7802. aix*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. if test "$host_cpu" = ia64; then
  7805. # AIX 5 now supports IA64 processor
  7806. lt_prog_compiler_static='-Bstatic'
  7807. else
  7808. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7809. fi
  7810. ;;
  7811. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7812. # This hack is so that the source file can tell whether it is being
  7813. # built for inclusion in a dll (and should export symbols for example).
  7814. lt_prog_compiler_pic='-DDLL_EXPORT'
  7815. ;;
  7816. hpux9* | hpux10* | hpux11*)
  7817. lt_prog_compiler_wl='-Wl,'
  7818. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7819. # not for PA HP-UX.
  7820. case $host_cpu in
  7821. hppa*64*|ia64*)
  7822. # +Z the default
  7823. ;;
  7824. *)
  7825. lt_prog_compiler_pic='+Z'
  7826. ;;
  7827. esac
  7828. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7829. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7830. ;;
  7831. irix5* | irix6* | nonstopux*)
  7832. lt_prog_compiler_wl='-Wl,'
  7833. # PIC (with -KPIC) is the default.
  7834. lt_prog_compiler_static='-non_shared'
  7835. ;;
  7836. linux* | k*bsd*-gnu)
  7837. case $cc_basename in
  7838. # old Intel for x86_64 which still supported -KPIC.
  7839. ecc*)
  7840. lt_prog_compiler_wl='-Wl,'
  7841. lt_prog_compiler_pic='-KPIC'
  7842. lt_prog_compiler_static='-static'
  7843. ;;
  7844. # icc used to be incompatible with GCC.
  7845. # ICC 10 doesn't accept -KPIC any more.
  7846. icc* | ifort*)
  7847. lt_prog_compiler_wl='-Wl,'
  7848. lt_prog_compiler_pic='-fPIC'
  7849. lt_prog_compiler_static='-static'
  7850. ;;
  7851. # Lahey Fortran 8.1.
  7852. lf95*)
  7853. lt_prog_compiler_wl='-Wl,'
  7854. lt_prog_compiler_pic='--shared'
  7855. lt_prog_compiler_static='--static'
  7856. ;;
  7857. pgcc* | pgf77* | pgf90* | pgf95*)
  7858. # Portland Group compilers (*not* the Pentium gcc compiler,
  7859. # which looks to be a dead project)
  7860. lt_prog_compiler_wl='-Wl,'
  7861. lt_prog_compiler_pic='-fpic'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. ;;
  7864. ccc*)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. # All Alpha code is PIC.
  7867. lt_prog_compiler_static='-non_shared'
  7868. ;;
  7869. xl*)
  7870. # IBM XL C 8.0/Fortran 10.1 on PPC
  7871. lt_prog_compiler_wl='-Wl,'
  7872. lt_prog_compiler_pic='-qpic'
  7873. lt_prog_compiler_static='-qstaticlink'
  7874. ;;
  7875. *)
  7876. case `$CC -V 2>&1 | sed 5q` in
  7877. *Sun\ C*)
  7878. # Sun C 5.9
  7879. lt_prog_compiler_pic='-KPIC'
  7880. lt_prog_compiler_static='-Bstatic'
  7881. lt_prog_compiler_wl='-Wl,'
  7882. ;;
  7883. *Sun\ F*)
  7884. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7885. lt_prog_compiler_pic='-KPIC'
  7886. lt_prog_compiler_static='-Bstatic'
  7887. lt_prog_compiler_wl=''
  7888. ;;
  7889. esac
  7890. ;;
  7891. esac
  7892. ;;
  7893. newsos6)
  7894. lt_prog_compiler_pic='-KPIC'
  7895. lt_prog_compiler_static='-Bstatic'
  7896. ;;
  7897. *nto* | *qnx*)
  7898. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7899. # it will coredump.
  7900. lt_prog_compiler_pic='-fPIC -shared'
  7901. ;;
  7902. osf3* | osf4* | osf5*)
  7903. lt_prog_compiler_wl='-Wl,'
  7904. # All OSF/1 code is PIC.
  7905. lt_prog_compiler_static='-non_shared'
  7906. ;;
  7907. rdos*)
  7908. lt_prog_compiler_static='-non_shared'
  7909. ;;
  7910. solaris*)
  7911. lt_prog_compiler_pic='-KPIC'
  7912. lt_prog_compiler_static='-Bstatic'
  7913. case $cc_basename in
  7914. f77* | f90* | f95*)
  7915. lt_prog_compiler_wl='-Qoption ld ';;
  7916. *)
  7917. lt_prog_compiler_wl='-Wl,';;
  7918. esac
  7919. ;;
  7920. sunos4*)
  7921. lt_prog_compiler_wl='-Qoption ld '
  7922. lt_prog_compiler_pic='-PIC'
  7923. lt_prog_compiler_static='-Bstatic'
  7924. ;;
  7925. sysv4 | sysv4.2uw2* | sysv4.3*)
  7926. lt_prog_compiler_wl='-Wl,'
  7927. lt_prog_compiler_pic='-KPIC'
  7928. lt_prog_compiler_static='-Bstatic'
  7929. ;;
  7930. sysv4*MP*)
  7931. if test -d /usr/nec ;then
  7932. lt_prog_compiler_pic='-Kconform_pic'
  7933. lt_prog_compiler_static='-Bstatic'
  7934. fi
  7935. ;;
  7936. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7937. lt_prog_compiler_wl='-Wl,'
  7938. lt_prog_compiler_pic='-KPIC'
  7939. lt_prog_compiler_static='-Bstatic'
  7940. ;;
  7941. unicos*)
  7942. lt_prog_compiler_wl='-Wl,'
  7943. lt_prog_compiler_can_build_shared=no
  7944. ;;
  7945. uts4*)
  7946. lt_prog_compiler_pic='-pic'
  7947. lt_prog_compiler_static='-Bstatic'
  7948. ;;
  7949. *)
  7950. lt_prog_compiler_can_build_shared=no
  7951. ;;
  7952. esac
  7953. fi
  7954. case $host_os in
  7955. # For platforms which do not support PIC, -DPIC is meaningless:
  7956. *djgpp*)
  7957. lt_prog_compiler_pic=
  7958. ;;
  7959. *)
  7960. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7961. ;;
  7962. esac
  7963. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7964. $as_echo "$lt_prog_compiler_pic" >&6; }
  7965. #
  7966. # Check to make sure the PIC flag actually works.
  7967. #
  7968. if test -n "$lt_prog_compiler_pic"; then
  7969. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7970. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7971. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7972. $as_echo_n "(cached) " >&6
  7973. else
  7974. lt_cv_prog_compiler_pic_works=no
  7975. ac_outfile=conftest.$ac_objext
  7976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7977. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7978. # Insert the option either (1) after the last *FLAGS variable, or
  7979. # (2) before a word containing "conftest.", or (3) at the end.
  7980. # Note that $ac_compile itself does not contain backslashes and begins
  7981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7982. # The option is referenced via a variable to avoid confusing sed.
  7983. lt_compile=`echo "$ac_compile" | $SED \
  7984. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7985. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7986. -e 's:$: $lt_compiler_flag:'`
  7987. (eval echo "\"\$as_me:9168: $lt_compile\"" >&5)
  7988. (eval "$lt_compile" 2>conftest.err)
  7989. ac_status=$?
  7990. cat conftest.err >&5
  7991. echo "$as_me:9172: \$? = $ac_status" >&5
  7992. if (exit $ac_status) && test -s "$ac_outfile"; then
  7993. # The compiler can only warn and ignore the option if not recognized
  7994. # So say no if there are warnings other than the usual output.
  7995. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7996. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7997. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7998. lt_cv_prog_compiler_pic_works=yes
  7999. fi
  8000. fi
  8001. $RM conftest*
  8002. fi
  8003. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8004. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8005. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8006. case $lt_prog_compiler_pic in
  8007. "" | " "*) ;;
  8008. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8009. esac
  8010. else
  8011. lt_prog_compiler_pic=
  8012. lt_prog_compiler_can_build_shared=no
  8013. fi
  8014. fi
  8015. #
  8016. # Check to make sure the static flag actually works.
  8017. #
  8018. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8019. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8020. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8021. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8022. $as_echo_n "(cached) " >&6
  8023. else
  8024. lt_cv_prog_compiler_static_works=no
  8025. save_LDFLAGS="$LDFLAGS"
  8026. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8027. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8028. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8029. # The linker can only warn and ignore the option if not recognized
  8030. # So say no if there are warnings
  8031. if test -s conftest.err; then
  8032. # Append any errors to the config.log.
  8033. cat conftest.err 1>&5
  8034. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8036. if diff conftest.exp conftest.er2 >/dev/null; then
  8037. lt_cv_prog_compiler_static_works=yes
  8038. fi
  8039. else
  8040. lt_cv_prog_compiler_static_works=yes
  8041. fi
  8042. fi
  8043. $RM -r conftest*
  8044. LDFLAGS="$save_LDFLAGS"
  8045. fi
  8046. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8047. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8048. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8049. :
  8050. else
  8051. lt_prog_compiler_static=
  8052. fi
  8053. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8054. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8055. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. lt_cv_prog_compiler_c_o=no
  8059. $RM -r conftest 2>/dev/null
  8060. mkdir conftest
  8061. cd conftest
  8062. mkdir out
  8063. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8064. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8065. # Insert the option either (1) after the last *FLAGS variable, or
  8066. # (2) before a word containing "conftest.", or (3) at the end.
  8067. # Note that $ac_compile itself does not contain backslashes and begins
  8068. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8069. lt_compile=`echo "$ac_compile" | $SED \
  8070. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8071. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8072. -e 's:$: $lt_compiler_flag:'`
  8073. (eval echo "\"\$as_me:9273: $lt_compile\"" >&5)
  8074. (eval "$lt_compile" 2>out/conftest.err)
  8075. ac_status=$?
  8076. cat out/conftest.err >&5
  8077. echo "$as_me:9277: \$? = $ac_status" >&5
  8078. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8079. then
  8080. # The compiler can only warn and ignore the option if not recognized
  8081. # So say no if there are warnings
  8082. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8083. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8084. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8085. lt_cv_prog_compiler_c_o=yes
  8086. fi
  8087. fi
  8088. chmod u+w . 2>&5
  8089. $RM conftest*
  8090. # SGI C++ compiler will create directory out/ii_files/ for
  8091. # template instantiation
  8092. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8093. $RM out/* && rmdir out
  8094. cd ..
  8095. $RM -r conftest
  8096. $RM conftest*
  8097. fi
  8098. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8099. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8100. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8101. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8102. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8103. $as_echo_n "(cached) " >&6
  8104. else
  8105. lt_cv_prog_compiler_c_o=no
  8106. $RM -r conftest 2>/dev/null
  8107. mkdir conftest
  8108. cd conftest
  8109. mkdir out
  8110. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8111. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8112. # Insert the option either (1) after the last *FLAGS variable, or
  8113. # (2) before a word containing "conftest.", or (3) at the end.
  8114. # Note that $ac_compile itself does not contain backslashes and begins
  8115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8116. lt_compile=`echo "$ac_compile" | $SED \
  8117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8119. -e 's:$: $lt_compiler_flag:'`
  8120. (eval echo "\"\$as_me:9328: $lt_compile\"" >&5)
  8121. (eval "$lt_compile" 2>out/conftest.err)
  8122. ac_status=$?
  8123. cat out/conftest.err >&5
  8124. echo "$as_me:9332: \$? = $ac_status" >&5
  8125. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8126. then
  8127. # The compiler can only warn and ignore the option if not recognized
  8128. # So say no if there are warnings
  8129. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8130. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8131. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8132. lt_cv_prog_compiler_c_o=yes
  8133. fi
  8134. fi
  8135. chmod u+w . 2>&5
  8136. $RM conftest*
  8137. # SGI C++ compiler will create directory out/ii_files/ for
  8138. # template instantiation
  8139. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8140. $RM out/* && rmdir out
  8141. cd ..
  8142. $RM -r conftest
  8143. $RM conftest*
  8144. fi
  8145. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8146. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8147. hard_links="nottested"
  8148. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8149. # do not overwrite the value of need_locks provided by the user
  8150. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8151. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8152. hard_links=yes
  8153. $RM conftest*
  8154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8155. touch conftest.a
  8156. ln conftest.a conftest.b 2>&5 || hard_links=no
  8157. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8158. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8159. $as_echo "$hard_links" >&6; }
  8160. if test "$hard_links" = no; then
  8161. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8162. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8163. need_locks=warn
  8164. fi
  8165. else
  8166. need_locks=no
  8167. fi
  8168. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8169. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8170. runpath_var=
  8171. allow_undefined_flag=
  8172. always_export_symbols=no
  8173. archive_cmds=
  8174. archive_expsym_cmds=
  8175. compiler_needs_object=no
  8176. enable_shared_with_static_runtimes=no
  8177. export_dynamic_flag_spec=
  8178. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8179. hardcode_automatic=no
  8180. hardcode_direct=no
  8181. hardcode_direct_absolute=no
  8182. hardcode_libdir_flag_spec=
  8183. hardcode_libdir_flag_spec_ld=
  8184. hardcode_libdir_separator=
  8185. hardcode_minus_L=no
  8186. hardcode_shlibpath_var=unsupported
  8187. inherit_rpath=no
  8188. link_all_deplibs=unknown
  8189. module_cmds=
  8190. module_expsym_cmds=
  8191. old_archive_from_new_cmds=
  8192. old_archive_from_expsyms_cmds=
  8193. thread_safe_flag_spec=
  8194. whole_archive_flag_spec=
  8195. # include_expsyms should be a list of space-separated symbols to be *always*
  8196. # included in the symbol list
  8197. include_expsyms=
  8198. # exclude_expsyms can be an extended regexp of symbols to exclude
  8199. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8200. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8201. # as well as any symbol that contains `d'.
  8202. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8203. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8204. # platforms (ab)use it in PIC code, but their linkers get confused if
  8205. # the symbol is explicitly referenced. Since portable code cannot
  8206. # rely on this symbol name, it's probably fine to never include it in
  8207. # preloaded symbol tables.
  8208. # Exclude shared library initialization/finalization symbols.
  8209. extract_expsyms_cmds=
  8210. case $host_os in
  8211. cygwin* | mingw* | pw32* | cegcc*)
  8212. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8213. # When not using gcc, we currently assume that we are using
  8214. # Microsoft Visual C++.
  8215. if test "$GCC" != yes; then
  8216. with_gnu_ld=no
  8217. fi
  8218. ;;
  8219. interix*)
  8220. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8221. with_gnu_ld=yes
  8222. ;;
  8223. openbsd*)
  8224. with_gnu_ld=no
  8225. ;;
  8226. esac
  8227. ld_shlibs=yes
  8228. if test "$with_gnu_ld" = yes; then
  8229. # If archive_cmds runs LD, not CC, wlarc should be empty
  8230. wlarc='${wl}'
  8231. # Set some defaults for GNU ld with shared library support. These
  8232. # are reset later if shared libraries are not supported. Putting them
  8233. # here allows them to be overridden if necessary.
  8234. runpath_var=LD_RUN_PATH
  8235. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8236. export_dynamic_flag_spec='${wl}--export-dynamic'
  8237. # ancient GNU ld didn't support --whole-archive et. al.
  8238. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8239. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8240. else
  8241. whole_archive_flag_spec=
  8242. fi
  8243. supports_anon_versioning=no
  8244. case `$LD -v 2>&1` in
  8245. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8246. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8247. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8248. *\ 2.11.*) ;; # other 2.11 versions
  8249. *) supports_anon_versioning=yes ;;
  8250. esac
  8251. # See if GNU ld supports shared libraries.
  8252. case $host_os in
  8253. aix[3-9]*)
  8254. # On AIX/PPC, the GNU linker is very broken
  8255. if test "$host_cpu" != ia64; then
  8256. ld_shlibs=no
  8257. cat <<_LT_EOF 1>&2
  8258. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8259. *** to be unable to reliably create shared libraries on AIX.
  8260. *** Therefore, libtool is disabling shared libraries support. If you
  8261. *** really care for shared libraries, you may want to modify your PATH
  8262. *** so that a non-GNU linker is found, and then restart.
  8263. _LT_EOF
  8264. fi
  8265. ;;
  8266. amigaos*)
  8267. case $host_cpu in
  8268. powerpc)
  8269. # see comment about AmigaOS4 .so support
  8270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8271. archive_expsym_cmds=''
  8272. ;;
  8273. m68k)
  8274. 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)'
  8275. hardcode_libdir_flag_spec='-L$libdir'
  8276. hardcode_minus_L=yes
  8277. ;;
  8278. esac
  8279. ;;
  8280. beos*)
  8281. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8282. allow_undefined_flag=unsupported
  8283. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8284. # support --undefined. This deserves some investigation. FIXME
  8285. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8286. else
  8287. ld_shlibs=no
  8288. fi
  8289. ;;
  8290. cygwin* | mingw* | pw32* | cegcc*)
  8291. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8292. # as there is no search path for DLLs.
  8293. hardcode_libdir_flag_spec='-L$libdir'
  8294. allow_undefined_flag=unsupported
  8295. always_export_symbols=no
  8296. enable_shared_with_static_runtimes=yes
  8297. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8298. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8299. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8300. # If the export-symbols file already is a .def file (1st line
  8301. # is EXPORTS), use it as is; otherwise, prepend...
  8302. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8303. cp $export_symbols $output_objdir/$soname.def;
  8304. else
  8305. echo EXPORTS > $output_objdir/$soname.def;
  8306. cat $export_symbols >> $output_objdir/$soname.def;
  8307. fi~
  8308. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8309. else
  8310. ld_shlibs=no
  8311. fi
  8312. ;;
  8313. interix[3-9]*)
  8314. hardcode_direct=no
  8315. hardcode_shlibpath_var=no
  8316. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8317. export_dynamic_flag_spec='${wl}-E'
  8318. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8319. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8320. # default) and relocated if they conflict, which is a slow very memory
  8321. # consuming and fragmenting process. To avoid this, we pick a random,
  8322. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8323. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8324. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8325. 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'
  8326. ;;
  8327. gnu* | linux* | tpf* | k*bsd*-gnu)
  8328. tmp_diet=no
  8329. if test "$host_os" = linux-dietlibc; then
  8330. case $cc_basename in
  8331. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8332. esac
  8333. fi
  8334. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8335. && test "$tmp_diet" = no
  8336. then
  8337. tmp_addflag=
  8338. tmp_sharedflag='-shared'
  8339. case $cc_basename,$host_cpu in
  8340. pgcc*) # Portland Group C compiler
  8341. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8342. tmp_addflag=' $pic_flag'
  8343. ;;
  8344. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8345. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8346. tmp_addflag=' $pic_flag -Mnomain' ;;
  8347. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8348. tmp_addflag=' -i_dynamic' ;;
  8349. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8350. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8351. ifc* | ifort*) # Intel Fortran compiler
  8352. tmp_addflag=' -nofor_main' ;;
  8353. lf95*) # Lahey Fortran 8.1
  8354. whole_archive_flag_spec=
  8355. tmp_sharedflag='--shared' ;;
  8356. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8357. tmp_sharedflag='-qmkshrobj'
  8358. tmp_addflag= ;;
  8359. esac
  8360. case `$CC -V 2>&1 | sed 5q` in
  8361. *Sun\ C*) # Sun C 5.9
  8362. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8363. compiler_needs_object=yes
  8364. tmp_sharedflag='-G' ;;
  8365. *Sun\ F*) # Sun Fortran 8.3
  8366. tmp_sharedflag='-G' ;;
  8367. esac
  8368. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8369. if test "x$supports_anon_versioning" = xyes; then
  8370. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8371. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8372. echo "local: *; };" >> $output_objdir/$libname.ver~
  8373. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8374. fi
  8375. case $cc_basename in
  8376. xlf*)
  8377. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8378. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8379. hardcode_libdir_flag_spec=
  8380. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8381. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8382. if test "x$supports_anon_versioning" = xyes; then
  8383. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8384. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8385. echo "local: *; };" >> $output_objdir/$libname.ver~
  8386. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8387. fi
  8388. ;;
  8389. esac
  8390. else
  8391. ld_shlibs=no
  8392. fi
  8393. ;;
  8394. netbsd*)
  8395. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8396. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8397. wlarc=
  8398. else
  8399. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8400. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8401. fi
  8402. ;;
  8403. solaris*)
  8404. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8405. ld_shlibs=no
  8406. cat <<_LT_EOF 1>&2
  8407. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8408. *** create shared libraries on Solaris systems. Therefore, libtool
  8409. *** is disabling shared libraries support. We urge you to upgrade GNU
  8410. *** binutils to release 2.9.1 or newer. Another option is to modify
  8411. *** your PATH or compiler configuration so that the native linker is
  8412. *** used, and then restart.
  8413. _LT_EOF
  8414. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8415. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8416. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8417. else
  8418. ld_shlibs=no
  8419. fi
  8420. ;;
  8421. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8422. case `$LD -v 2>&1` in
  8423. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8424. ld_shlibs=no
  8425. cat <<_LT_EOF 1>&2
  8426. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8427. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8428. *** is disabling shared libraries support. We urge you to upgrade GNU
  8429. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8430. *** your PATH or compiler configuration so that the native linker is
  8431. *** used, and then restart.
  8432. _LT_EOF
  8433. ;;
  8434. *)
  8435. # For security reasons, it is highly recommended that you always
  8436. # use absolute paths for naming shared libraries, and exclude the
  8437. # DT_RUNPATH tag from executables and libraries. But doing so
  8438. # requires that you compile everything twice, which is a pain.
  8439. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8441. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8442. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8443. else
  8444. ld_shlibs=no
  8445. fi
  8446. ;;
  8447. esac
  8448. ;;
  8449. sunos4*)
  8450. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8451. wlarc=
  8452. hardcode_direct=yes
  8453. hardcode_shlibpath_var=no
  8454. ;;
  8455. *)
  8456. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8457. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8458. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8459. else
  8460. ld_shlibs=no
  8461. fi
  8462. ;;
  8463. esac
  8464. if test "$ld_shlibs" = no; then
  8465. runpath_var=
  8466. hardcode_libdir_flag_spec=
  8467. export_dynamic_flag_spec=
  8468. whole_archive_flag_spec=
  8469. fi
  8470. else
  8471. # PORTME fill in a description of your system's linker (not GNU ld)
  8472. case $host_os in
  8473. aix3*)
  8474. allow_undefined_flag=unsupported
  8475. always_export_symbols=yes
  8476. 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'
  8477. # Note: this linker hardcodes the directories in LIBPATH if there
  8478. # are no directories specified by -L.
  8479. hardcode_minus_L=yes
  8480. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8481. # Neither direct hardcoding nor static linking is supported with a
  8482. # broken collect2.
  8483. hardcode_direct=unsupported
  8484. fi
  8485. ;;
  8486. aix[4-9]*)
  8487. if test "$host_cpu" = ia64; then
  8488. # On IA64, the linker does run time linking by default, so we don't
  8489. # have to do anything special.
  8490. aix_use_runtimelinking=no
  8491. exp_sym_flag='-Bexport'
  8492. no_entry_flag=""
  8493. else
  8494. # If we're using GNU nm, then we don't want the "-C" option.
  8495. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8496. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8497. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8498. else
  8499. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8500. fi
  8501. aix_use_runtimelinking=no
  8502. # Test if we are trying to use run time linking or normal
  8503. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8504. # need to do runtime linking.
  8505. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8506. for ld_flag in $LDFLAGS; do
  8507. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8508. aix_use_runtimelinking=yes
  8509. break
  8510. fi
  8511. done
  8512. ;;
  8513. esac
  8514. exp_sym_flag='-bexport'
  8515. no_entry_flag='-bnoentry'
  8516. fi
  8517. # When large executables or shared objects are built, AIX ld can
  8518. # have problems creating the table of contents. If linking a library
  8519. # or program results in "error TOC overflow" add -mminimal-toc to
  8520. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8521. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8522. archive_cmds=''
  8523. hardcode_direct=yes
  8524. hardcode_direct_absolute=yes
  8525. hardcode_libdir_separator=':'
  8526. link_all_deplibs=yes
  8527. file_list_spec='${wl}-f,'
  8528. if test "$GCC" = yes; then
  8529. case $host_os in aix4.[012]|aix4.[012].*)
  8530. # We only want to do this on AIX 4.2 and lower, the check
  8531. # below for broken collect2 doesn't work under 4.3+
  8532. collect2name=`${CC} -print-prog-name=collect2`
  8533. if test -f "$collect2name" &&
  8534. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8535. then
  8536. # We have reworked collect2
  8537. :
  8538. else
  8539. # We have old collect2
  8540. hardcode_direct=unsupported
  8541. # It fails to find uninstalled libraries when the uninstalled
  8542. # path is not listed in the libpath. Setting hardcode_minus_L
  8543. # to unsupported forces relinking
  8544. hardcode_minus_L=yes
  8545. hardcode_libdir_flag_spec='-L$libdir'
  8546. hardcode_libdir_separator=
  8547. fi
  8548. ;;
  8549. esac
  8550. shared_flag='-shared'
  8551. if test "$aix_use_runtimelinking" = yes; then
  8552. shared_flag="$shared_flag "'${wl}-G'
  8553. fi
  8554. else
  8555. # not using gcc
  8556. if test "$host_cpu" = ia64; then
  8557. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8558. # chokes on -Wl,-G. The following line is correct:
  8559. shared_flag='-G'
  8560. else
  8561. if test "$aix_use_runtimelinking" = yes; then
  8562. shared_flag='${wl}-G'
  8563. else
  8564. shared_flag='${wl}-bM:SRE'
  8565. fi
  8566. fi
  8567. fi
  8568. export_dynamic_flag_spec='${wl}-bexpall'
  8569. # It seems that -bexpall does not export symbols beginning with
  8570. # underscore (_), so it is better to generate a list of symbols to export.
  8571. always_export_symbols=yes
  8572. if test "$aix_use_runtimelinking" = yes; then
  8573. # Warning - without using the other runtime loading flags (-brtl),
  8574. # -berok will link without error, but may produce a broken library.
  8575. allow_undefined_flag='-berok'
  8576. # Determine the default libpath from the value encoded in an
  8577. # empty executable.
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. int
  8585. main ()
  8586. {
  8587. ;
  8588. return 0;
  8589. }
  8590. _ACEOF
  8591. rm -f conftest.$ac_objext conftest$ac_exeext
  8592. if { (ac_try="$ac_link"
  8593. case "(($ac_try" in
  8594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8595. *) ac_try_echo=$ac_try;;
  8596. esac
  8597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8598. $as_echo "$ac_try_echo") >&5
  8599. (eval "$ac_link") 2>conftest.er1
  8600. ac_status=$?
  8601. grep -v '^ *+' conftest.er1 >conftest.err
  8602. rm -f conftest.er1
  8603. cat conftest.err >&5
  8604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8605. (exit $ac_status); } && {
  8606. test -z "$ac_c_werror_flag" ||
  8607. test ! -s conftest.err
  8608. } && test -s conftest$ac_exeext && {
  8609. test "$cross_compiling" = yes ||
  8610. $as_test_x conftest$ac_exeext
  8611. }; then
  8612. lt_aix_libpath_sed='
  8613. /Import File Strings/,/^$/ {
  8614. /^0/ {
  8615. s/^0 *\(.*\)$/\1/
  8616. p
  8617. }
  8618. }'
  8619. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8620. # Check for a 64-bit object if we didn't find anything.
  8621. if test -z "$aix_libpath"; then
  8622. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8623. fi
  8624. else
  8625. $as_echo "$as_me: failed program was:" >&5
  8626. sed 's/^/| /' conftest.$ac_ext >&5
  8627. fi
  8628. rm -rf conftest.dSYM
  8629. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8630. conftest$ac_exeext conftest.$ac_ext
  8631. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8632. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8633. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8634. else
  8635. if test "$host_cpu" = ia64; then
  8636. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8637. allow_undefined_flag="-z nodefs"
  8638. 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"
  8639. else
  8640. # Determine the default libpath from the value encoded in an
  8641. # empty executable.
  8642. cat >conftest.$ac_ext <<_ACEOF
  8643. /* confdefs.h. */
  8644. _ACEOF
  8645. cat confdefs.h >>conftest.$ac_ext
  8646. cat >>conftest.$ac_ext <<_ACEOF
  8647. /* end confdefs.h. */
  8648. int
  8649. main ()
  8650. {
  8651. ;
  8652. return 0;
  8653. }
  8654. _ACEOF
  8655. rm -f conftest.$ac_objext conftest$ac_exeext
  8656. if { (ac_try="$ac_link"
  8657. case "(($ac_try" in
  8658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8659. *) ac_try_echo=$ac_try;;
  8660. esac
  8661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8662. $as_echo "$ac_try_echo") >&5
  8663. (eval "$ac_link") 2>conftest.er1
  8664. ac_status=$?
  8665. grep -v '^ *+' conftest.er1 >conftest.err
  8666. rm -f conftest.er1
  8667. cat conftest.err >&5
  8668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. (exit $ac_status); } && {
  8670. test -z "$ac_c_werror_flag" ||
  8671. test ! -s conftest.err
  8672. } && test -s conftest$ac_exeext && {
  8673. test "$cross_compiling" = yes ||
  8674. $as_test_x conftest$ac_exeext
  8675. }; then
  8676. lt_aix_libpath_sed='
  8677. /Import File Strings/,/^$/ {
  8678. /^0/ {
  8679. s/^0 *\(.*\)$/\1/
  8680. p
  8681. }
  8682. }'
  8683. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8684. # Check for a 64-bit object if we didn't find anything.
  8685. if test -z "$aix_libpath"; then
  8686. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8687. fi
  8688. else
  8689. $as_echo "$as_me: failed program was:" >&5
  8690. sed 's/^/| /' conftest.$ac_ext >&5
  8691. fi
  8692. rm -rf conftest.dSYM
  8693. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8694. conftest$ac_exeext conftest.$ac_ext
  8695. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8696. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8697. # Warning - without using the other run time loading flags,
  8698. # -berok will link without error, but may produce a broken library.
  8699. no_undefined_flag=' ${wl}-bernotok'
  8700. allow_undefined_flag=' ${wl}-berok'
  8701. # Exported symbols can be pulled into shared objects from archives
  8702. whole_archive_flag_spec='$convenience'
  8703. archive_cmds_need_lc=yes
  8704. # This is similar to how AIX traditionally builds its shared libraries.
  8705. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8706. fi
  8707. fi
  8708. ;;
  8709. amigaos*)
  8710. case $host_cpu in
  8711. powerpc)
  8712. # see comment about AmigaOS4 .so support
  8713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8714. archive_expsym_cmds=''
  8715. ;;
  8716. m68k)
  8717. 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)'
  8718. hardcode_libdir_flag_spec='-L$libdir'
  8719. hardcode_minus_L=yes
  8720. ;;
  8721. esac
  8722. ;;
  8723. bsdi[45]*)
  8724. export_dynamic_flag_spec=-rdynamic
  8725. ;;
  8726. cygwin* | mingw* | pw32* | cegcc*)
  8727. # When not using gcc, we currently assume that we are using
  8728. # Microsoft Visual C++.
  8729. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8730. # no search path for DLLs.
  8731. hardcode_libdir_flag_spec=' '
  8732. allow_undefined_flag=unsupported
  8733. # Tell ltmain to make .lib files, not .a files.
  8734. libext=lib
  8735. # Tell ltmain to make .dll files, not .so files.
  8736. shrext_cmds=".dll"
  8737. # FIXME: Setting linknames here is a bad hack.
  8738. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8739. # The linker will automatically build a .lib file if we build a DLL.
  8740. old_archive_from_new_cmds='true'
  8741. # FIXME: Should let the user specify the lib program.
  8742. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8743. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8744. enable_shared_with_static_runtimes=yes
  8745. ;;
  8746. darwin* | rhapsody*)
  8747. archive_cmds_need_lc=no
  8748. hardcode_direct=no
  8749. hardcode_automatic=yes
  8750. hardcode_shlibpath_var=unsupported
  8751. whole_archive_flag_spec=''
  8752. link_all_deplibs=yes
  8753. allow_undefined_flag="$_lt_dar_allow_undefined"
  8754. case $cc_basename in
  8755. ifort*) _lt_dar_can_shared=yes ;;
  8756. *) _lt_dar_can_shared=$GCC ;;
  8757. esac
  8758. if test "$_lt_dar_can_shared" = "yes"; then
  8759. output_verbose_link_cmd=echo
  8760. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8761. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8762. 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}"
  8763. 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}"
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. dgux*)
  8769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8770. hardcode_libdir_flag_spec='-L$libdir'
  8771. hardcode_shlibpath_var=no
  8772. ;;
  8773. freebsd1*)
  8774. ld_shlibs=no
  8775. ;;
  8776. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8777. # support. Future versions do this automatically, but an explicit c++rt0.o
  8778. # does not break anything, and helps significantly (at the cost of a little
  8779. # extra space).
  8780. freebsd2.2*)
  8781. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8782. hardcode_libdir_flag_spec='-R$libdir'
  8783. hardcode_direct=yes
  8784. hardcode_shlibpath_var=no
  8785. ;;
  8786. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8787. freebsd2*)
  8788. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8789. hardcode_direct=yes
  8790. hardcode_minus_L=yes
  8791. hardcode_shlibpath_var=no
  8792. ;;
  8793. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8794. freebsd* | dragonfly*)
  8795. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8796. hardcode_libdir_flag_spec='-R$libdir'
  8797. hardcode_direct=yes
  8798. hardcode_shlibpath_var=no
  8799. ;;
  8800. hpux9*)
  8801. if test "$GCC" = yes; then
  8802. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8803. else
  8804. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8805. fi
  8806. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8807. hardcode_libdir_separator=:
  8808. hardcode_direct=yes
  8809. # hardcode_minus_L: Not really in the search PATH,
  8810. # but as the default location of the library.
  8811. hardcode_minus_L=yes
  8812. export_dynamic_flag_spec='${wl}-E'
  8813. ;;
  8814. hpux10*)
  8815. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8816. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8817. else
  8818. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8819. fi
  8820. if test "$with_gnu_ld" = no; then
  8821. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8822. hardcode_libdir_flag_spec_ld='+b $libdir'
  8823. hardcode_libdir_separator=:
  8824. hardcode_direct=yes
  8825. hardcode_direct_absolute=yes
  8826. export_dynamic_flag_spec='${wl}-E'
  8827. # hardcode_minus_L: Not really in the search PATH,
  8828. # but as the default location of the library.
  8829. hardcode_minus_L=yes
  8830. fi
  8831. ;;
  8832. hpux11*)
  8833. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8834. case $host_cpu in
  8835. hppa*64*)
  8836. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8837. ;;
  8838. ia64*)
  8839. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8840. ;;
  8841. *)
  8842. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8843. ;;
  8844. esac
  8845. else
  8846. case $host_cpu in
  8847. hppa*64*)
  8848. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8849. ;;
  8850. ia64*)
  8851. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8852. ;;
  8853. *)
  8854. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8855. ;;
  8856. esac
  8857. fi
  8858. if test "$with_gnu_ld" = no; then
  8859. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8860. hardcode_libdir_separator=:
  8861. case $host_cpu in
  8862. hppa*64*|ia64*)
  8863. hardcode_direct=no
  8864. hardcode_shlibpath_var=no
  8865. ;;
  8866. *)
  8867. hardcode_direct=yes
  8868. hardcode_direct_absolute=yes
  8869. export_dynamic_flag_spec='${wl}-E'
  8870. # hardcode_minus_L: Not really in the search PATH,
  8871. # but as the default location of the library.
  8872. hardcode_minus_L=yes
  8873. ;;
  8874. esac
  8875. fi
  8876. ;;
  8877. irix5* | irix6* | nonstopux*)
  8878. if test "$GCC" = yes; then
  8879. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8880. # Try to use the -exported_symbol ld option, if it does not
  8881. # work, assume that -exports_file does not work either and
  8882. # implicitly export all symbols.
  8883. save_LDFLAGS="$LDFLAGS"
  8884. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8885. cat >conftest.$ac_ext <<_ACEOF
  8886. int foo(void) {}
  8887. _ACEOF
  8888. rm -f conftest.$ac_objext conftest$ac_exeext
  8889. if { (ac_try="$ac_link"
  8890. case "(($ac_try" in
  8891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8892. *) ac_try_echo=$ac_try;;
  8893. esac
  8894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8895. $as_echo "$ac_try_echo") >&5
  8896. (eval "$ac_link") 2>conftest.er1
  8897. ac_status=$?
  8898. grep -v '^ *+' conftest.er1 >conftest.err
  8899. rm -f conftest.er1
  8900. cat conftest.err >&5
  8901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8902. (exit $ac_status); } && {
  8903. test -z "$ac_c_werror_flag" ||
  8904. test ! -s conftest.err
  8905. } && test -s conftest$ac_exeext && {
  8906. test "$cross_compiling" = yes ||
  8907. $as_test_x conftest$ac_exeext
  8908. }; then
  8909. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8910. else
  8911. $as_echo "$as_me: failed program was:" >&5
  8912. sed 's/^/| /' conftest.$ac_ext >&5
  8913. fi
  8914. rm -rf conftest.dSYM
  8915. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8916. conftest$ac_exeext conftest.$ac_ext
  8917. LDFLAGS="$save_LDFLAGS"
  8918. else
  8919. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8920. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8921. fi
  8922. archive_cmds_need_lc='no'
  8923. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8924. hardcode_libdir_separator=:
  8925. inherit_rpath=yes
  8926. link_all_deplibs=yes
  8927. ;;
  8928. netbsd*)
  8929. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8930. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8931. else
  8932. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8933. fi
  8934. hardcode_libdir_flag_spec='-R$libdir'
  8935. hardcode_direct=yes
  8936. hardcode_shlibpath_var=no
  8937. ;;
  8938. newsos6)
  8939. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8940. hardcode_direct=yes
  8941. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8942. hardcode_libdir_separator=:
  8943. hardcode_shlibpath_var=no
  8944. ;;
  8945. *nto* | *qnx*)
  8946. ;;
  8947. openbsd*)
  8948. if test -f /usr/libexec/ld.so; then
  8949. hardcode_direct=yes
  8950. hardcode_shlibpath_var=no
  8951. hardcode_direct_absolute=yes
  8952. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8953. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8954. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8955. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8956. export_dynamic_flag_spec='${wl}-E'
  8957. else
  8958. case $host_os in
  8959. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8960. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8961. hardcode_libdir_flag_spec='-R$libdir'
  8962. ;;
  8963. *)
  8964. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8965. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8966. ;;
  8967. esac
  8968. fi
  8969. else
  8970. ld_shlibs=no
  8971. fi
  8972. ;;
  8973. os2*)
  8974. hardcode_libdir_flag_spec='-L$libdir'
  8975. hardcode_minus_L=yes
  8976. allow_undefined_flag=unsupported
  8977. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8978. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8979. ;;
  8980. osf3*)
  8981. if test "$GCC" = yes; then
  8982. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8983. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8984. else
  8985. allow_undefined_flag=' -expect_unresolved \*'
  8986. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8987. fi
  8988. archive_cmds_need_lc='no'
  8989. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8990. hardcode_libdir_separator=:
  8991. ;;
  8992. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8993. if test "$GCC" = yes; then
  8994. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8995. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8996. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8997. else
  8998. allow_undefined_flag=' -expect_unresolved \*'
  8999. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9000. 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~
  9001. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9002. # Both c and cxx compiler support -rpath directly
  9003. hardcode_libdir_flag_spec='-rpath $libdir'
  9004. fi
  9005. archive_cmds_need_lc='no'
  9006. hardcode_libdir_separator=:
  9007. ;;
  9008. solaris*)
  9009. no_undefined_flag=' -z defs'
  9010. if test "$GCC" = yes; then
  9011. wlarc='${wl}'
  9012. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9013. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9014. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9015. else
  9016. case `$CC -V 2>&1` in
  9017. *"Compilers 5.0"*)
  9018. wlarc=''
  9019. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9020. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9021. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9022. ;;
  9023. *)
  9024. wlarc='${wl}'
  9025. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9026. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9027. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9028. ;;
  9029. esac
  9030. fi
  9031. hardcode_libdir_flag_spec='-R$libdir'
  9032. hardcode_shlibpath_var=no
  9033. case $host_os in
  9034. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9035. *)
  9036. # The compiler driver will combine and reorder linker options,
  9037. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9038. # but is careful enough not to reorder.
  9039. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9040. if test "$GCC" = yes; then
  9041. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9042. else
  9043. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9044. fi
  9045. ;;
  9046. esac
  9047. link_all_deplibs=yes
  9048. ;;
  9049. sunos4*)
  9050. if test "x$host_vendor" = xsequent; then
  9051. # Use $CC to link under sequent, because it throws in some extra .o
  9052. # files that make .init and .fini sections work.
  9053. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9054. else
  9055. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9056. fi
  9057. hardcode_libdir_flag_spec='-L$libdir'
  9058. hardcode_direct=yes
  9059. hardcode_minus_L=yes
  9060. hardcode_shlibpath_var=no
  9061. ;;
  9062. sysv4)
  9063. case $host_vendor in
  9064. sni)
  9065. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9066. hardcode_direct=yes # is this really true???
  9067. ;;
  9068. siemens)
  9069. ## LD is ld it makes a PLAMLIB
  9070. ## CC just makes a GrossModule.
  9071. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9072. reload_cmds='$CC -r -o $output$reload_objs'
  9073. hardcode_direct=no
  9074. ;;
  9075. motorola)
  9076. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9077. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9078. ;;
  9079. esac
  9080. runpath_var='LD_RUN_PATH'
  9081. hardcode_shlibpath_var=no
  9082. ;;
  9083. sysv4.3*)
  9084. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9085. hardcode_shlibpath_var=no
  9086. export_dynamic_flag_spec='-Bexport'
  9087. ;;
  9088. sysv4*MP*)
  9089. if test -d /usr/nec; then
  9090. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9091. hardcode_shlibpath_var=no
  9092. runpath_var=LD_RUN_PATH
  9093. hardcode_runpath_var=yes
  9094. ld_shlibs=yes
  9095. fi
  9096. ;;
  9097. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9098. no_undefined_flag='${wl}-z,text'
  9099. archive_cmds_need_lc=no
  9100. hardcode_shlibpath_var=no
  9101. runpath_var='LD_RUN_PATH'
  9102. if test "$GCC" = yes; then
  9103. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9104. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9105. else
  9106. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9107. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9108. fi
  9109. ;;
  9110. sysv5* | sco3.2v5* | sco5v6*)
  9111. # Note: We can NOT use -z defs as we might desire, because we do not
  9112. # link with -lc, and that would cause any symbols used from libc to
  9113. # always be unresolved, which means just about no library would
  9114. # ever link correctly. If we're not using GNU ld we use -z text
  9115. # though, which does catch some bad symbols but isn't as heavy-handed
  9116. # as -z defs.
  9117. no_undefined_flag='${wl}-z,text'
  9118. allow_undefined_flag='${wl}-z,nodefs'
  9119. archive_cmds_need_lc=no
  9120. hardcode_shlibpath_var=no
  9121. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9122. hardcode_libdir_separator=':'
  9123. link_all_deplibs=yes
  9124. export_dynamic_flag_spec='${wl}-Bexport'
  9125. runpath_var='LD_RUN_PATH'
  9126. if test "$GCC" = yes; then
  9127. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9128. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9129. else
  9130. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9131. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. fi
  9133. ;;
  9134. uts4*)
  9135. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9136. hardcode_libdir_flag_spec='-L$libdir'
  9137. hardcode_shlibpath_var=no
  9138. ;;
  9139. *)
  9140. ld_shlibs=no
  9141. ;;
  9142. esac
  9143. if test x$host_vendor = xsni; then
  9144. case $host in
  9145. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9146. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9147. ;;
  9148. esac
  9149. fi
  9150. fi
  9151. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9152. $as_echo "$ld_shlibs" >&6; }
  9153. test "$ld_shlibs" = no && can_build_shared=no
  9154. with_gnu_ld=$with_gnu_ld
  9155. #
  9156. # Do we need to explicitly link libc?
  9157. #
  9158. case "x$archive_cmds_need_lc" in
  9159. x|xyes)
  9160. # Assume -lc should be added
  9161. archive_cmds_need_lc=yes
  9162. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9163. case $archive_cmds in
  9164. *'~'*)
  9165. # FIXME: we may have to deal with multi-command sequences.
  9166. ;;
  9167. '$CC '*)
  9168. # Test whether the compiler implicitly links with -lc since on some
  9169. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9170. # to ld, don't add -lc before -lgcc.
  9171. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9172. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9173. $RM conftest*
  9174. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9176. (eval $ac_compile) 2>&5
  9177. ac_status=$?
  9178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9179. (exit $ac_status); } 2>conftest.err; then
  9180. soname=conftest
  9181. lib=conftest
  9182. libobjs=conftest.$ac_objext
  9183. deplibs=
  9184. wl=$lt_prog_compiler_wl
  9185. pic_flag=$lt_prog_compiler_pic
  9186. compiler_flags=-v
  9187. linker_flags=-v
  9188. verstring=
  9189. output_objdir=.
  9190. libname=conftest
  9191. lt_save_allow_undefined_flag=$allow_undefined_flag
  9192. allow_undefined_flag=
  9193. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9194. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9195. ac_status=$?
  9196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9197. (exit $ac_status); }
  9198. then
  9199. archive_cmds_need_lc=no
  9200. else
  9201. archive_cmds_need_lc=yes
  9202. fi
  9203. allow_undefined_flag=$lt_save_allow_undefined_flag
  9204. else
  9205. cat conftest.err 1>&5
  9206. fi
  9207. $RM conftest*
  9208. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9209. $as_echo "$archive_cmds_need_lc" >&6; }
  9210. ;;
  9211. esac
  9212. fi
  9213. ;;
  9214. esac
  9215. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9216. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9217. if test "$GCC" = yes; then
  9218. case $host_os in
  9219. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9220. *) lt_awk_arg="/^libraries:/" ;;
  9221. esac
  9222. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9223. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9224. # if the path contains ";" then we assume it to be the separator
  9225. # otherwise default to the standard path separator (i.e. ":") - it is
  9226. # assumed that no part of a normal pathname contains ";" but that should
  9227. # okay in the real world where ";" in dirpaths is itself problematic.
  9228. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9229. else
  9230. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9231. fi
  9232. # Ok, now we have the path, separated by spaces, we can step through it
  9233. # and add multilib dir if necessary.
  9234. lt_tmp_lt_search_path_spec=
  9235. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9236. for lt_sys_path in $lt_search_path_spec; do
  9237. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9238. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9239. else
  9240. test -d "$lt_sys_path" && \
  9241. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9242. fi
  9243. done
  9244. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9245. BEGIN {RS=" "; FS="/|\n";} {
  9246. lt_foo="";
  9247. lt_count=0;
  9248. for (lt_i = NF; lt_i > 0; lt_i--) {
  9249. if ($lt_i != "" && $lt_i != ".") {
  9250. if ($lt_i == "..") {
  9251. lt_count++;
  9252. } else {
  9253. if (lt_count == 0) {
  9254. lt_foo="/" $lt_i lt_foo;
  9255. } else {
  9256. lt_count--;
  9257. }
  9258. }
  9259. }
  9260. }
  9261. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9262. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9263. }'`
  9264. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9265. else
  9266. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9267. fi
  9268. library_names_spec=
  9269. libname_spec='lib$name'
  9270. soname_spec=
  9271. shrext_cmds=".so"
  9272. postinstall_cmds=
  9273. postuninstall_cmds=
  9274. finish_cmds=
  9275. finish_eval=
  9276. shlibpath_var=
  9277. shlibpath_overrides_runpath=unknown
  9278. version_type=none
  9279. dynamic_linker="$host_os ld.so"
  9280. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9281. need_lib_prefix=unknown
  9282. hardcode_into_libs=no
  9283. # when you set need_version to no, make sure it does not cause -set_version
  9284. # flags to be left without arguments
  9285. need_version=unknown
  9286. case $host_os in
  9287. aix3*)
  9288. version_type=linux
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9290. shlibpath_var=LIBPATH
  9291. # AIX 3 has no versioning support, so we append a major version to the name.
  9292. soname_spec='${libname}${release}${shared_ext}$major'
  9293. ;;
  9294. aix[4-9]*)
  9295. version_type=linux
  9296. need_lib_prefix=no
  9297. need_version=no
  9298. hardcode_into_libs=yes
  9299. if test "$host_cpu" = ia64; then
  9300. # AIX 5 supports IA64
  9301. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9302. shlibpath_var=LD_LIBRARY_PATH
  9303. else
  9304. # With GCC up to 2.95.x, collect2 would create an import file
  9305. # for dependence libraries. The import file would start with
  9306. # the line `#! .'. This would cause the generated library to
  9307. # depend on `.', always an invalid library. This was fixed in
  9308. # development snapshots of GCC prior to 3.0.
  9309. case $host_os in
  9310. aix4 | aix4.[01] | aix4.[01].*)
  9311. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9312. echo ' yes '
  9313. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9314. :
  9315. else
  9316. can_build_shared=no
  9317. fi
  9318. ;;
  9319. esac
  9320. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9321. # soname into executable. Probably we can add versioning support to
  9322. # collect2, so additional links can be useful in future.
  9323. if test "$aix_use_runtimelinking" = yes; then
  9324. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9325. # instead of lib<name>.a to let people know that these are not
  9326. # typical AIX shared libraries.
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9328. else
  9329. # We preserve .a as extension for shared libraries through AIX4.2
  9330. # and later when we are not doing run time linking.
  9331. library_names_spec='${libname}${release}.a $libname.a'
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. fi
  9334. shlibpath_var=LIBPATH
  9335. fi
  9336. ;;
  9337. amigaos*)
  9338. case $host_cpu in
  9339. powerpc)
  9340. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9341. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9343. ;;
  9344. m68k)
  9345. library_names_spec='$libname.ixlibrary $libname.a'
  9346. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9347. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9348. ;;
  9349. esac
  9350. ;;
  9351. beos*)
  9352. library_names_spec='${libname}${shared_ext}'
  9353. dynamic_linker="$host_os ld.so"
  9354. shlibpath_var=LIBRARY_PATH
  9355. ;;
  9356. bsdi[45]*)
  9357. version_type=linux
  9358. need_version=no
  9359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9360. soname_spec='${libname}${release}${shared_ext}$major'
  9361. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9362. shlibpath_var=LD_LIBRARY_PATH
  9363. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9364. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9365. # the default ld.so.conf also contains /usr/contrib/lib and
  9366. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9367. # libtool to hard-code these into programs
  9368. ;;
  9369. cygwin* | mingw* | pw32* | cegcc*)
  9370. version_type=windows
  9371. shrext_cmds=".dll"
  9372. need_version=no
  9373. need_lib_prefix=no
  9374. case $GCC,$host_os in
  9375. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9376. library_names_spec='$libname.dll.a'
  9377. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9378. postinstall_cmds='base_file=`basename \${file}`~
  9379. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9380. dldir=$destdir/`dirname \$dlpath`~
  9381. test -d \$dldir || mkdir -p \$dldir~
  9382. $install_prog $dir/$dlname \$dldir/$dlname~
  9383. chmod a+x \$dldir/$dlname~
  9384. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9385. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9386. fi'
  9387. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9388. dlpath=$dir/\$dldll~
  9389. $RM \$dlpath'
  9390. shlibpath_overrides_runpath=yes
  9391. case $host_os in
  9392. cygwin*)
  9393. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9394. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9395. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9396. ;;
  9397. mingw* | cegcc*)
  9398. # MinGW DLLs use traditional 'lib' prefix
  9399. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9400. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9401. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9402. # It is most probably a Windows format PATH printed by
  9403. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9404. # path with ; separators, and with drive letters. We can handle the
  9405. # drive letters (cygwin fileutils understands them), so leave them,
  9406. # especially as we might pass files found there to a mingw objdump,
  9407. # which wouldn't understand a cygwinified path. Ahh.
  9408. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9409. else
  9410. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9411. fi
  9412. ;;
  9413. pw32*)
  9414. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9415. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9416. ;;
  9417. esac
  9418. ;;
  9419. *)
  9420. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9421. ;;
  9422. esac
  9423. dynamic_linker='Win32 ld.exe'
  9424. # FIXME: first we should search . and the directory the executable is in
  9425. shlibpath_var=PATH
  9426. ;;
  9427. darwin* | rhapsody*)
  9428. dynamic_linker="$host_os dyld"
  9429. version_type=darwin
  9430. need_lib_prefix=no
  9431. need_version=no
  9432. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9433. soname_spec='${libname}${release}${major}$shared_ext'
  9434. shlibpath_overrides_runpath=yes
  9435. shlibpath_var=DYLD_LIBRARY_PATH
  9436. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9437. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9438. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9439. ;;
  9440. dgux*)
  9441. version_type=linux
  9442. need_lib_prefix=no
  9443. need_version=no
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. shlibpath_var=LD_LIBRARY_PATH
  9447. ;;
  9448. freebsd1*)
  9449. dynamic_linker=no
  9450. ;;
  9451. freebsd* | dragonfly*)
  9452. # DragonFly does not have aout. When/if they implement a new
  9453. # versioning mechanism, adjust this.
  9454. if test -x /usr/bin/objformat; then
  9455. objformat=`/usr/bin/objformat`
  9456. else
  9457. case $host_os in
  9458. freebsd[123]*) objformat=aout ;;
  9459. *) objformat=elf ;;
  9460. esac
  9461. fi
  9462. version_type=freebsd-$objformat
  9463. case $version_type in
  9464. freebsd-elf*)
  9465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9466. need_version=no
  9467. need_lib_prefix=no
  9468. ;;
  9469. freebsd-*)
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9471. need_version=yes
  9472. ;;
  9473. esac
  9474. shlibpath_var=LD_LIBRARY_PATH
  9475. case $host_os in
  9476. freebsd2*)
  9477. shlibpath_overrides_runpath=yes
  9478. ;;
  9479. freebsd3.[01]* | freebsdelf3.[01]*)
  9480. shlibpath_overrides_runpath=yes
  9481. hardcode_into_libs=yes
  9482. ;;
  9483. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9484. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9485. shlibpath_overrides_runpath=no
  9486. hardcode_into_libs=yes
  9487. ;;
  9488. *) # from 4.6 on, and DragonFly
  9489. shlibpath_overrides_runpath=yes
  9490. hardcode_into_libs=yes
  9491. ;;
  9492. esac
  9493. ;;
  9494. gnu*)
  9495. version_type=linux
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9499. soname_spec='${libname}${release}${shared_ext}$major'
  9500. shlibpath_var=LD_LIBRARY_PATH
  9501. hardcode_into_libs=yes
  9502. ;;
  9503. hpux9* | hpux10* | hpux11*)
  9504. # Give a soname corresponding to the major version so that dld.sl refuses to
  9505. # link against other versions.
  9506. version_type=sunos
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. case $host_cpu in
  9510. ia64*)
  9511. shrext_cmds='.so'
  9512. hardcode_into_libs=yes
  9513. dynamic_linker="$host_os dld.so"
  9514. shlibpath_var=LD_LIBRARY_PATH
  9515. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9517. soname_spec='${libname}${release}${shared_ext}$major'
  9518. if test "X$HPUX_IA64_MODE" = X32; then
  9519. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9520. else
  9521. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9522. fi
  9523. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9524. ;;
  9525. hppa*64*)
  9526. shrext_cmds='.sl'
  9527. hardcode_into_libs=yes
  9528. dynamic_linker="$host_os dld.sl"
  9529. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9530. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9532. soname_spec='${libname}${release}${shared_ext}$major'
  9533. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9534. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9535. ;;
  9536. *)
  9537. shrext_cmds='.sl'
  9538. dynamic_linker="$host_os dld.sl"
  9539. shlibpath_var=SHLIB_PATH
  9540. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9542. soname_spec='${libname}${release}${shared_ext}$major'
  9543. ;;
  9544. esac
  9545. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9546. postinstall_cmds='chmod 555 $lib'
  9547. ;;
  9548. interix[3-9]*)
  9549. version_type=linux
  9550. need_lib_prefix=no
  9551. need_version=no
  9552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9553. soname_spec='${libname}${release}${shared_ext}$major'
  9554. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9555. shlibpath_var=LD_LIBRARY_PATH
  9556. shlibpath_overrides_runpath=no
  9557. hardcode_into_libs=yes
  9558. ;;
  9559. irix5* | irix6* | nonstopux*)
  9560. case $host_os in
  9561. nonstopux*) version_type=nonstopux ;;
  9562. *)
  9563. if test "$lt_cv_prog_gnu_ld" = yes; then
  9564. version_type=linux
  9565. else
  9566. version_type=irix
  9567. fi ;;
  9568. esac
  9569. need_lib_prefix=no
  9570. need_version=no
  9571. soname_spec='${libname}${release}${shared_ext}$major'
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9573. case $host_os in
  9574. irix5* | nonstopux*)
  9575. libsuff= shlibsuff=
  9576. ;;
  9577. *)
  9578. case $LD in # libtool.m4 will add one of these switches to LD
  9579. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9580. libsuff= shlibsuff= libmagic=32-bit;;
  9581. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9582. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9583. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9584. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9585. *) libsuff= shlibsuff= libmagic=never-match;;
  9586. esac
  9587. ;;
  9588. esac
  9589. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9590. shlibpath_overrides_runpath=no
  9591. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9592. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9593. hardcode_into_libs=yes
  9594. ;;
  9595. # No shared lib support for Linux oldld, aout, or coff.
  9596. linux*oldld* | linux*aout* | linux*coff*)
  9597. dynamic_linker=no
  9598. ;;
  9599. # This must be Linux ELF.
  9600. linux* | k*bsd*-gnu)
  9601. version_type=linux
  9602. need_lib_prefix=no
  9603. need_version=no
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9605. soname_spec='${libname}${release}${shared_ext}$major'
  9606. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. shlibpath_overrides_runpath=no
  9609. # Some binutils ld are patched to set DT_RUNPATH
  9610. save_LDFLAGS=$LDFLAGS
  9611. save_libdir=$libdir
  9612. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9613. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9614. cat >conftest.$ac_ext <<_ACEOF
  9615. /* confdefs.h. */
  9616. _ACEOF
  9617. cat confdefs.h >>conftest.$ac_ext
  9618. cat >>conftest.$ac_ext <<_ACEOF
  9619. /* end confdefs.h. */
  9620. int
  9621. main ()
  9622. {
  9623. ;
  9624. return 0;
  9625. }
  9626. _ACEOF
  9627. rm -f conftest.$ac_objext conftest$ac_exeext
  9628. if { (ac_try="$ac_link"
  9629. case "(($ac_try" in
  9630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9631. *) ac_try_echo=$ac_try;;
  9632. esac
  9633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9634. $as_echo "$ac_try_echo") >&5
  9635. (eval "$ac_link") 2>conftest.er1
  9636. ac_status=$?
  9637. grep -v '^ *+' conftest.er1 >conftest.err
  9638. rm -f conftest.er1
  9639. cat conftest.err >&5
  9640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9641. (exit $ac_status); } && {
  9642. test -z "$ac_c_werror_flag" ||
  9643. test ! -s conftest.err
  9644. } && test -s conftest$ac_exeext && {
  9645. test "$cross_compiling" = yes ||
  9646. $as_test_x conftest$ac_exeext
  9647. }; then
  9648. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9649. shlibpath_overrides_runpath=yes
  9650. fi
  9651. else
  9652. $as_echo "$as_me: failed program was:" >&5
  9653. sed 's/^/| /' conftest.$ac_ext >&5
  9654. fi
  9655. rm -rf conftest.dSYM
  9656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9657. conftest$ac_exeext conftest.$ac_ext
  9658. LDFLAGS=$save_LDFLAGS
  9659. libdir=$save_libdir
  9660. # This implies no fast_install, which is unacceptable.
  9661. # Some rework will be needed to allow for fast_install
  9662. # before this can be enabled.
  9663. hardcode_into_libs=yes
  9664. # Add ABI-specific directories to the system library path.
  9665. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9666. # Append ld.so.conf contents to the search path
  9667. if test -f /etc/ld.so.conf; then
  9668. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9669. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9670. fi
  9671. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9672. # powerpc, because MkLinux only supported shared libraries with the
  9673. # GNU dynamic linker. Since this was broken with cross compilers,
  9674. # most powerpc-linux boxes support dynamic linking these days and
  9675. # people can always --disable-shared, the test was removed, and we
  9676. # assume the GNU/Linux dynamic linker is in use.
  9677. dynamic_linker='GNU/Linux ld.so'
  9678. ;;
  9679. netbsd*)
  9680. version_type=sunos
  9681. need_lib_prefix=no
  9682. need_version=no
  9683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9685. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9686. dynamic_linker='NetBSD (a.out) ld.so'
  9687. else
  9688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9689. soname_spec='${libname}${release}${shared_ext}$major'
  9690. dynamic_linker='NetBSD ld.elf_so'
  9691. fi
  9692. shlibpath_var=LD_LIBRARY_PATH
  9693. shlibpath_overrides_runpath=yes
  9694. hardcode_into_libs=yes
  9695. ;;
  9696. newsos6)
  9697. version_type=linux
  9698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9699. shlibpath_var=LD_LIBRARY_PATH
  9700. shlibpath_overrides_runpath=yes
  9701. ;;
  9702. *nto* | *qnx*)
  9703. version_type=qnx
  9704. need_lib_prefix=no
  9705. need_version=no
  9706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9707. soname_spec='${libname}${release}${shared_ext}$major'
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. shlibpath_overrides_runpath=no
  9710. hardcode_into_libs=yes
  9711. dynamic_linker='ldqnx.so'
  9712. ;;
  9713. openbsd*)
  9714. version_type=sunos
  9715. sys_lib_dlsearch_path_spec="/usr/lib"
  9716. need_lib_prefix=no
  9717. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9718. case $host_os in
  9719. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9720. *) need_version=no ;;
  9721. esac
  9722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9723. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9724. shlibpath_var=LD_LIBRARY_PATH
  9725. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9726. case $host_os in
  9727. openbsd2.[89] | openbsd2.[89].*)
  9728. shlibpath_overrides_runpath=no
  9729. ;;
  9730. *)
  9731. shlibpath_overrides_runpath=yes
  9732. ;;
  9733. esac
  9734. else
  9735. shlibpath_overrides_runpath=yes
  9736. fi
  9737. ;;
  9738. os2*)
  9739. libname_spec='$name'
  9740. shrext_cmds=".dll"
  9741. need_lib_prefix=no
  9742. library_names_spec='$libname${shared_ext} $libname.a'
  9743. dynamic_linker='OS/2 ld.exe'
  9744. shlibpath_var=LIBPATH
  9745. ;;
  9746. osf3* | osf4* | osf5*)
  9747. version_type=osf
  9748. need_lib_prefix=no
  9749. need_version=no
  9750. soname_spec='${libname}${release}${shared_ext}$major'
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. shlibpath_var=LD_LIBRARY_PATH
  9753. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9754. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9755. ;;
  9756. rdos*)
  9757. dynamic_linker=no
  9758. ;;
  9759. solaris*)
  9760. version_type=linux
  9761. need_lib_prefix=no
  9762. need_version=no
  9763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9764. soname_spec='${libname}${release}${shared_ext}$major'
  9765. shlibpath_var=LD_LIBRARY_PATH
  9766. shlibpath_overrides_runpath=yes
  9767. hardcode_into_libs=yes
  9768. # ldd complains unless libraries are executable
  9769. postinstall_cmds='chmod +x $lib'
  9770. ;;
  9771. sunos4*)
  9772. version_type=sunos
  9773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9774. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. shlibpath_overrides_runpath=yes
  9777. if test "$with_gnu_ld" = yes; then
  9778. need_lib_prefix=no
  9779. fi
  9780. need_version=yes
  9781. ;;
  9782. sysv4 | sysv4.3*)
  9783. version_type=linux
  9784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9785. soname_spec='${libname}${release}${shared_ext}$major'
  9786. shlibpath_var=LD_LIBRARY_PATH
  9787. case $host_vendor in
  9788. sni)
  9789. shlibpath_overrides_runpath=no
  9790. need_lib_prefix=no
  9791. runpath_var=LD_RUN_PATH
  9792. ;;
  9793. siemens)
  9794. need_lib_prefix=no
  9795. ;;
  9796. motorola)
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. shlibpath_overrides_runpath=no
  9800. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9801. ;;
  9802. esac
  9803. ;;
  9804. sysv4*MP*)
  9805. if test -d /usr/nec ;then
  9806. version_type=linux
  9807. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9808. soname_spec='$libname${shared_ext}.$major'
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. fi
  9811. ;;
  9812. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9813. version_type=freebsd-elf
  9814. need_lib_prefix=no
  9815. need_version=no
  9816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9817. soname_spec='${libname}${release}${shared_ext}$major'
  9818. shlibpath_var=LD_LIBRARY_PATH
  9819. shlibpath_overrides_runpath=yes
  9820. hardcode_into_libs=yes
  9821. if test "$with_gnu_ld" = yes; then
  9822. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9823. else
  9824. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9825. case $host_os in
  9826. sco3.2v5*)
  9827. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9828. ;;
  9829. esac
  9830. fi
  9831. sys_lib_dlsearch_path_spec='/usr/lib'
  9832. ;;
  9833. tpf*)
  9834. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9835. version_type=linux
  9836. need_lib_prefix=no
  9837. need_version=no
  9838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9839. shlibpath_var=LD_LIBRARY_PATH
  9840. shlibpath_overrides_runpath=no
  9841. hardcode_into_libs=yes
  9842. ;;
  9843. uts4*)
  9844. version_type=linux
  9845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9846. soname_spec='${libname}${release}${shared_ext}$major'
  9847. shlibpath_var=LD_LIBRARY_PATH
  9848. ;;
  9849. *)
  9850. dynamic_linker=no
  9851. ;;
  9852. esac
  9853. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9854. $as_echo "$dynamic_linker" >&6; }
  9855. test "$dynamic_linker" = no && can_build_shared=no
  9856. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9857. if test "$GCC" = yes; then
  9858. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9859. fi
  9860. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9861. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9862. fi
  9863. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9864. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9865. fi
  9866. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9867. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9868. hardcode_action=
  9869. if test -n "$hardcode_libdir_flag_spec" ||
  9870. test -n "$runpath_var" ||
  9871. test "X$hardcode_automatic" = "Xyes" ; then
  9872. # We can hardcode non-existent directories.
  9873. if test "$hardcode_direct" != no &&
  9874. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9875. # have to relink, otherwise we might link with an installed library
  9876. # when we should be linking with a yet-to-be-installed one
  9877. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9878. test "$hardcode_minus_L" != no; then
  9879. # Linking always hardcodes the temporary library directory.
  9880. hardcode_action=relink
  9881. else
  9882. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9883. hardcode_action=immediate
  9884. fi
  9885. else
  9886. # We cannot hardcode anything, or else we can only hardcode existing
  9887. # directories.
  9888. hardcode_action=unsupported
  9889. fi
  9890. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9891. $as_echo "$hardcode_action" >&6; }
  9892. if test "$hardcode_action" = relink ||
  9893. test "$inherit_rpath" = yes; then
  9894. # Fast installation is not supported
  9895. enable_fast_install=no
  9896. elif test "$shlibpath_overrides_runpath" = yes ||
  9897. test "$enable_shared" = no; then
  9898. # Fast installation is not necessary
  9899. enable_fast_install=needless
  9900. fi
  9901. if test "x$enable_dlopen" != xyes; then
  9902. enable_dlopen=unknown
  9903. enable_dlopen_self=unknown
  9904. enable_dlopen_self_static=unknown
  9905. else
  9906. lt_cv_dlopen=no
  9907. lt_cv_dlopen_libs=
  9908. case $host_os in
  9909. beos*)
  9910. lt_cv_dlopen="load_add_on"
  9911. lt_cv_dlopen_libs=
  9912. lt_cv_dlopen_self=yes
  9913. ;;
  9914. mingw* | pw32* | cegcc*)
  9915. lt_cv_dlopen="LoadLibrary"
  9916. lt_cv_dlopen_libs=
  9917. ;;
  9918. cygwin*)
  9919. lt_cv_dlopen="dlopen"
  9920. lt_cv_dlopen_libs=
  9921. ;;
  9922. darwin*)
  9923. # if libdl is installed we need to link against it
  9924. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9925. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9926. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9927. $as_echo_n "(cached) " >&6
  9928. else
  9929. ac_check_lib_save_LIBS=$LIBS
  9930. LIBS="-ldl $LIBS"
  9931. cat >conftest.$ac_ext <<_ACEOF
  9932. /* confdefs.h. */
  9933. _ACEOF
  9934. cat confdefs.h >>conftest.$ac_ext
  9935. cat >>conftest.$ac_ext <<_ACEOF
  9936. /* end confdefs.h. */
  9937. /* Override any GCC internal prototype to avoid an error.
  9938. Use char because int might match the return type of a GCC
  9939. builtin and then its argument prototype would still apply. */
  9940. #ifdef __cplusplus
  9941. extern "C"
  9942. #endif
  9943. char dlopen ();
  9944. int
  9945. main ()
  9946. {
  9947. return dlopen ();
  9948. ;
  9949. return 0;
  9950. }
  9951. _ACEOF
  9952. rm -f conftest.$ac_objext conftest$ac_exeext
  9953. if { (ac_try="$ac_link"
  9954. case "(($ac_try" in
  9955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9956. *) ac_try_echo=$ac_try;;
  9957. esac
  9958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9959. $as_echo "$ac_try_echo") >&5
  9960. (eval "$ac_link") 2>conftest.er1
  9961. ac_status=$?
  9962. grep -v '^ *+' conftest.er1 >conftest.err
  9963. rm -f conftest.er1
  9964. cat conftest.err >&5
  9965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9966. (exit $ac_status); } && {
  9967. test -z "$ac_c_werror_flag" ||
  9968. test ! -s conftest.err
  9969. } && test -s conftest$ac_exeext && {
  9970. test "$cross_compiling" = yes ||
  9971. $as_test_x conftest$ac_exeext
  9972. }; then
  9973. ac_cv_lib_dl_dlopen=yes
  9974. else
  9975. $as_echo "$as_me: failed program was:" >&5
  9976. sed 's/^/| /' conftest.$ac_ext >&5
  9977. ac_cv_lib_dl_dlopen=no
  9978. fi
  9979. rm -rf conftest.dSYM
  9980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9981. conftest$ac_exeext conftest.$ac_ext
  9982. LIBS=$ac_check_lib_save_LIBS
  9983. fi
  9984. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9985. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9986. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9987. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9988. else
  9989. lt_cv_dlopen="dyld"
  9990. lt_cv_dlopen_libs=
  9991. lt_cv_dlopen_self=yes
  9992. fi
  9993. ;;
  9994. *)
  9995. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9996. $as_echo_n "checking for shl_load... " >&6; }
  9997. if test "${ac_cv_func_shl_load+set}" = set; then
  9998. $as_echo_n "(cached) " >&6
  9999. else
  10000. cat >conftest.$ac_ext <<_ACEOF
  10001. /* confdefs.h. */
  10002. _ACEOF
  10003. cat confdefs.h >>conftest.$ac_ext
  10004. cat >>conftest.$ac_ext <<_ACEOF
  10005. /* end confdefs.h. */
  10006. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10007. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10008. #define shl_load innocuous_shl_load
  10009. /* System header to define __stub macros and hopefully few prototypes,
  10010. which can conflict with char shl_load (); below.
  10011. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10012. <limits.h> exists even on freestanding compilers. */
  10013. #ifdef __STDC__
  10014. # include <limits.h>
  10015. #else
  10016. # include <assert.h>
  10017. #endif
  10018. #undef shl_load
  10019. /* Override any GCC internal prototype to avoid an error.
  10020. Use char because int might match the return type of a GCC
  10021. builtin and then its argument prototype would still apply. */
  10022. #ifdef __cplusplus
  10023. extern "C"
  10024. #endif
  10025. char shl_load ();
  10026. /* The GNU C library defines this for functions which it implements
  10027. to always fail with ENOSYS. Some functions are actually named
  10028. something starting with __ and the normal name is an alias. */
  10029. #if defined __stub_shl_load || defined __stub___shl_load
  10030. choke me
  10031. #endif
  10032. int
  10033. main ()
  10034. {
  10035. return shl_load ();
  10036. ;
  10037. return 0;
  10038. }
  10039. _ACEOF
  10040. rm -f conftest.$ac_objext conftest$ac_exeext
  10041. if { (ac_try="$ac_link"
  10042. case "(($ac_try" in
  10043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10044. *) ac_try_echo=$ac_try;;
  10045. esac
  10046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10047. $as_echo "$ac_try_echo") >&5
  10048. (eval "$ac_link") 2>conftest.er1
  10049. ac_status=$?
  10050. grep -v '^ *+' conftest.er1 >conftest.err
  10051. rm -f conftest.er1
  10052. cat conftest.err >&5
  10053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10054. (exit $ac_status); } && {
  10055. test -z "$ac_c_werror_flag" ||
  10056. test ! -s conftest.err
  10057. } && test -s conftest$ac_exeext && {
  10058. test "$cross_compiling" = yes ||
  10059. $as_test_x conftest$ac_exeext
  10060. }; then
  10061. ac_cv_func_shl_load=yes
  10062. else
  10063. $as_echo "$as_me: failed program was:" >&5
  10064. sed 's/^/| /' conftest.$ac_ext >&5
  10065. ac_cv_func_shl_load=no
  10066. fi
  10067. rm -rf conftest.dSYM
  10068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10069. conftest$ac_exeext conftest.$ac_ext
  10070. fi
  10071. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10072. $as_echo "$ac_cv_func_shl_load" >&6; }
  10073. if test "x$ac_cv_func_shl_load" = x""yes; then
  10074. lt_cv_dlopen="shl_load"
  10075. else
  10076. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10077. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10078. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10079. $as_echo_n "(cached) " >&6
  10080. else
  10081. ac_check_lib_save_LIBS=$LIBS
  10082. LIBS="-ldld $LIBS"
  10083. cat >conftest.$ac_ext <<_ACEOF
  10084. /* confdefs.h. */
  10085. _ACEOF
  10086. cat confdefs.h >>conftest.$ac_ext
  10087. cat >>conftest.$ac_ext <<_ACEOF
  10088. /* end confdefs.h. */
  10089. /* Override any GCC internal prototype to avoid an error.
  10090. Use char because int might match the return type of a GCC
  10091. builtin and then its argument prototype would still apply. */
  10092. #ifdef __cplusplus
  10093. extern "C"
  10094. #endif
  10095. char shl_load ();
  10096. int
  10097. main ()
  10098. {
  10099. return shl_load ();
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. rm -f conftest.$ac_objext conftest$ac_exeext
  10105. if { (ac_try="$ac_link"
  10106. case "(($ac_try" in
  10107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10108. *) ac_try_echo=$ac_try;;
  10109. esac
  10110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10111. $as_echo "$ac_try_echo") >&5
  10112. (eval "$ac_link") 2>conftest.er1
  10113. ac_status=$?
  10114. grep -v '^ *+' conftest.er1 >conftest.err
  10115. rm -f conftest.er1
  10116. cat conftest.err >&5
  10117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); } && {
  10119. test -z "$ac_c_werror_flag" ||
  10120. test ! -s conftest.err
  10121. } && test -s conftest$ac_exeext && {
  10122. test "$cross_compiling" = yes ||
  10123. $as_test_x conftest$ac_exeext
  10124. }; then
  10125. ac_cv_lib_dld_shl_load=yes
  10126. else
  10127. $as_echo "$as_me: failed program was:" >&5
  10128. sed 's/^/| /' conftest.$ac_ext >&5
  10129. ac_cv_lib_dld_shl_load=no
  10130. fi
  10131. rm -rf conftest.dSYM
  10132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10133. conftest$ac_exeext conftest.$ac_ext
  10134. LIBS=$ac_check_lib_save_LIBS
  10135. fi
  10136. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10137. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10138. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10139. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10140. else
  10141. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10142. $as_echo_n "checking for dlopen... " >&6; }
  10143. if test "${ac_cv_func_dlopen+set}" = set; then
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. cat >conftest.$ac_ext <<_ACEOF
  10147. /* confdefs.h. */
  10148. _ACEOF
  10149. cat confdefs.h >>conftest.$ac_ext
  10150. cat >>conftest.$ac_ext <<_ACEOF
  10151. /* end confdefs.h. */
  10152. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10153. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10154. #define dlopen innocuous_dlopen
  10155. /* System header to define __stub macros and hopefully few prototypes,
  10156. which can conflict with char dlopen (); below.
  10157. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10158. <limits.h> exists even on freestanding compilers. */
  10159. #ifdef __STDC__
  10160. # include <limits.h>
  10161. #else
  10162. # include <assert.h>
  10163. #endif
  10164. #undef dlopen
  10165. /* Override any GCC internal prototype to avoid an error.
  10166. Use char because int might match the return type of a GCC
  10167. builtin and then its argument prototype would still apply. */
  10168. #ifdef __cplusplus
  10169. extern "C"
  10170. #endif
  10171. char dlopen ();
  10172. /* The GNU C library defines this for functions which it implements
  10173. to always fail with ENOSYS. Some functions are actually named
  10174. something starting with __ and the normal name is an alias. */
  10175. #if defined __stub_dlopen || defined __stub___dlopen
  10176. choke me
  10177. #endif
  10178. int
  10179. main ()
  10180. {
  10181. return dlopen ();
  10182. ;
  10183. return 0;
  10184. }
  10185. _ACEOF
  10186. rm -f conftest.$ac_objext conftest$ac_exeext
  10187. if { (ac_try="$ac_link"
  10188. case "(($ac_try" in
  10189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10190. *) ac_try_echo=$ac_try;;
  10191. esac
  10192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10193. $as_echo "$ac_try_echo") >&5
  10194. (eval "$ac_link") 2>conftest.er1
  10195. ac_status=$?
  10196. grep -v '^ *+' conftest.er1 >conftest.err
  10197. rm -f conftest.er1
  10198. cat conftest.err >&5
  10199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10200. (exit $ac_status); } && {
  10201. test -z "$ac_c_werror_flag" ||
  10202. test ! -s conftest.err
  10203. } && test -s conftest$ac_exeext && {
  10204. test "$cross_compiling" = yes ||
  10205. $as_test_x conftest$ac_exeext
  10206. }; then
  10207. ac_cv_func_dlopen=yes
  10208. else
  10209. $as_echo "$as_me: failed program was:" >&5
  10210. sed 's/^/| /' conftest.$ac_ext >&5
  10211. ac_cv_func_dlopen=no
  10212. fi
  10213. rm -rf conftest.dSYM
  10214. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10215. conftest$ac_exeext conftest.$ac_ext
  10216. fi
  10217. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10218. $as_echo "$ac_cv_func_dlopen" >&6; }
  10219. if test "x$ac_cv_func_dlopen" = x""yes; then
  10220. lt_cv_dlopen="dlopen"
  10221. else
  10222. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10223. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10224. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10225. $as_echo_n "(cached) " >&6
  10226. else
  10227. ac_check_lib_save_LIBS=$LIBS
  10228. LIBS="-ldl $LIBS"
  10229. cat >conftest.$ac_ext <<_ACEOF
  10230. /* confdefs.h. */
  10231. _ACEOF
  10232. cat confdefs.h >>conftest.$ac_ext
  10233. cat >>conftest.$ac_ext <<_ACEOF
  10234. /* end confdefs.h. */
  10235. /* Override any GCC internal prototype to avoid an error.
  10236. Use char because int might match the return type of a GCC
  10237. builtin and then its argument prototype would still apply. */
  10238. #ifdef __cplusplus
  10239. extern "C"
  10240. #endif
  10241. char dlopen ();
  10242. int
  10243. main ()
  10244. {
  10245. return dlopen ();
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. rm -f conftest.$ac_objext conftest$ac_exeext
  10251. if { (ac_try="$ac_link"
  10252. case "(($ac_try" in
  10253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10254. *) ac_try_echo=$ac_try;;
  10255. esac
  10256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10257. $as_echo "$ac_try_echo") >&5
  10258. (eval "$ac_link") 2>conftest.er1
  10259. ac_status=$?
  10260. grep -v '^ *+' conftest.er1 >conftest.err
  10261. rm -f conftest.er1
  10262. cat conftest.err >&5
  10263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10264. (exit $ac_status); } && {
  10265. test -z "$ac_c_werror_flag" ||
  10266. test ! -s conftest.err
  10267. } && test -s conftest$ac_exeext && {
  10268. test "$cross_compiling" = yes ||
  10269. $as_test_x conftest$ac_exeext
  10270. }; then
  10271. ac_cv_lib_dl_dlopen=yes
  10272. else
  10273. $as_echo "$as_me: failed program was:" >&5
  10274. sed 's/^/| /' conftest.$ac_ext >&5
  10275. ac_cv_lib_dl_dlopen=no
  10276. fi
  10277. rm -rf conftest.dSYM
  10278. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10279. conftest$ac_exeext conftest.$ac_ext
  10280. LIBS=$ac_check_lib_save_LIBS
  10281. fi
  10282. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10283. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10284. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10285. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10286. else
  10287. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10288. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10289. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10290. $as_echo_n "(cached) " >&6
  10291. else
  10292. ac_check_lib_save_LIBS=$LIBS
  10293. LIBS="-lsvld $LIBS"
  10294. cat >conftest.$ac_ext <<_ACEOF
  10295. /* confdefs.h. */
  10296. _ACEOF
  10297. cat confdefs.h >>conftest.$ac_ext
  10298. cat >>conftest.$ac_ext <<_ACEOF
  10299. /* end confdefs.h. */
  10300. /* Override any GCC internal prototype to avoid an error.
  10301. Use char because int might match the return type of a GCC
  10302. builtin and then its argument prototype would still apply. */
  10303. #ifdef __cplusplus
  10304. extern "C"
  10305. #endif
  10306. char dlopen ();
  10307. int
  10308. main ()
  10309. {
  10310. return dlopen ();
  10311. ;
  10312. return 0;
  10313. }
  10314. _ACEOF
  10315. rm -f conftest.$ac_objext conftest$ac_exeext
  10316. if { (ac_try="$ac_link"
  10317. case "(($ac_try" in
  10318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10319. *) ac_try_echo=$ac_try;;
  10320. esac
  10321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10322. $as_echo "$ac_try_echo") >&5
  10323. (eval "$ac_link") 2>conftest.er1
  10324. ac_status=$?
  10325. grep -v '^ *+' conftest.er1 >conftest.err
  10326. rm -f conftest.er1
  10327. cat conftest.err >&5
  10328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10329. (exit $ac_status); } && {
  10330. test -z "$ac_c_werror_flag" ||
  10331. test ! -s conftest.err
  10332. } && test -s conftest$ac_exeext && {
  10333. test "$cross_compiling" = yes ||
  10334. $as_test_x conftest$ac_exeext
  10335. }; then
  10336. ac_cv_lib_svld_dlopen=yes
  10337. else
  10338. $as_echo "$as_me: failed program was:" >&5
  10339. sed 's/^/| /' conftest.$ac_ext >&5
  10340. ac_cv_lib_svld_dlopen=no
  10341. fi
  10342. rm -rf conftest.dSYM
  10343. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10344. conftest$ac_exeext conftest.$ac_ext
  10345. LIBS=$ac_check_lib_save_LIBS
  10346. fi
  10347. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10348. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10349. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10351. else
  10352. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10353. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10354. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10355. $as_echo_n "(cached) " >&6
  10356. else
  10357. ac_check_lib_save_LIBS=$LIBS
  10358. LIBS="-ldld $LIBS"
  10359. cat >conftest.$ac_ext <<_ACEOF
  10360. /* confdefs.h. */
  10361. _ACEOF
  10362. cat confdefs.h >>conftest.$ac_ext
  10363. cat >>conftest.$ac_ext <<_ACEOF
  10364. /* end confdefs.h. */
  10365. /* Override any GCC internal prototype to avoid an error.
  10366. Use char because int might match the return type of a GCC
  10367. builtin and then its argument prototype would still apply. */
  10368. #ifdef __cplusplus
  10369. extern "C"
  10370. #endif
  10371. char dld_link ();
  10372. int
  10373. main ()
  10374. {
  10375. return dld_link ();
  10376. ;
  10377. return 0;
  10378. }
  10379. _ACEOF
  10380. rm -f conftest.$ac_objext conftest$ac_exeext
  10381. if { (ac_try="$ac_link"
  10382. case "(($ac_try" in
  10383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10384. *) ac_try_echo=$ac_try;;
  10385. esac
  10386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10387. $as_echo "$ac_try_echo") >&5
  10388. (eval "$ac_link") 2>conftest.er1
  10389. ac_status=$?
  10390. grep -v '^ *+' conftest.er1 >conftest.err
  10391. rm -f conftest.er1
  10392. cat conftest.err >&5
  10393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10394. (exit $ac_status); } && {
  10395. test -z "$ac_c_werror_flag" ||
  10396. test ! -s conftest.err
  10397. } && test -s conftest$ac_exeext && {
  10398. test "$cross_compiling" = yes ||
  10399. $as_test_x conftest$ac_exeext
  10400. }; then
  10401. ac_cv_lib_dld_dld_link=yes
  10402. else
  10403. $as_echo "$as_me: failed program was:" >&5
  10404. sed 's/^/| /' conftest.$ac_ext >&5
  10405. ac_cv_lib_dld_dld_link=no
  10406. fi
  10407. rm -rf conftest.dSYM
  10408. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10409. conftest$ac_exeext conftest.$ac_ext
  10410. LIBS=$ac_check_lib_save_LIBS
  10411. fi
  10412. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10413. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10414. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10415. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10416. fi
  10417. fi
  10418. fi
  10419. fi
  10420. fi
  10421. fi
  10422. ;;
  10423. esac
  10424. if test "x$lt_cv_dlopen" != xno; then
  10425. enable_dlopen=yes
  10426. else
  10427. enable_dlopen=no
  10428. fi
  10429. case $lt_cv_dlopen in
  10430. dlopen)
  10431. save_CPPFLAGS="$CPPFLAGS"
  10432. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10433. save_LDFLAGS="$LDFLAGS"
  10434. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10435. save_LIBS="$LIBS"
  10436. LIBS="$lt_cv_dlopen_libs $LIBS"
  10437. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10438. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10439. if test "${lt_cv_dlopen_self+set}" = set; then
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. if test "$cross_compiling" = yes; then :
  10443. lt_cv_dlopen_self=cross
  10444. else
  10445. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10446. lt_status=$lt_dlunknown
  10447. cat > conftest.$ac_ext <<_LT_EOF
  10448. #line 12131 "configure"
  10449. #include "confdefs.h"
  10450. #if HAVE_DLFCN_H
  10451. #include <dlfcn.h>
  10452. #endif
  10453. #include <stdio.h>
  10454. #ifdef RTLD_GLOBAL
  10455. # define LT_DLGLOBAL RTLD_GLOBAL
  10456. #else
  10457. # ifdef DL_GLOBAL
  10458. # define LT_DLGLOBAL DL_GLOBAL
  10459. # else
  10460. # define LT_DLGLOBAL 0
  10461. # endif
  10462. #endif
  10463. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10464. find out it does not work in some platform. */
  10465. #ifndef LT_DLLAZY_OR_NOW
  10466. # ifdef RTLD_LAZY
  10467. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10468. # else
  10469. # ifdef DL_LAZY
  10470. # define LT_DLLAZY_OR_NOW DL_LAZY
  10471. # else
  10472. # ifdef RTLD_NOW
  10473. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10474. # else
  10475. # ifdef DL_NOW
  10476. # define LT_DLLAZY_OR_NOW DL_NOW
  10477. # else
  10478. # define LT_DLLAZY_OR_NOW 0
  10479. # endif
  10480. # endif
  10481. # endif
  10482. # endif
  10483. #endif
  10484. void fnord() { int i=42;}
  10485. int main ()
  10486. {
  10487. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10488. int status = $lt_dlunknown;
  10489. if (self)
  10490. {
  10491. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10492. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10493. /* dlclose (self); */
  10494. }
  10495. else
  10496. puts (dlerror ());
  10497. return status;
  10498. }
  10499. _LT_EOF
  10500. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10501. (eval $ac_link) 2>&5
  10502. ac_status=$?
  10503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10504. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10505. (./conftest; exit; ) >&5 2>/dev/null
  10506. lt_status=$?
  10507. case x$lt_status in
  10508. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10509. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10510. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10511. esac
  10512. else :
  10513. # compilation failed
  10514. lt_cv_dlopen_self=no
  10515. fi
  10516. fi
  10517. rm -fr conftest*
  10518. fi
  10519. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10520. $as_echo "$lt_cv_dlopen_self" >&6; }
  10521. if test "x$lt_cv_dlopen_self" = xyes; then
  10522. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10523. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10524. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10525. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10526. $as_echo_n "(cached) " >&6
  10527. else
  10528. if test "$cross_compiling" = yes; then :
  10529. lt_cv_dlopen_self_static=cross
  10530. else
  10531. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10532. lt_status=$lt_dlunknown
  10533. cat > conftest.$ac_ext <<_LT_EOF
  10534. #line 12227 "configure"
  10535. #include "confdefs.h"
  10536. #if HAVE_DLFCN_H
  10537. #include <dlfcn.h>
  10538. #endif
  10539. #include <stdio.h>
  10540. #ifdef RTLD_GLOBAL
  10541. # define LT_DLGLOBAL RTLD_GLOBAL
  10542. #else
  10543. # ifdef DL_GLOBAL
  10544. # define LT_DLGLOBAL DL_GLOBAL
  10545. # else
  10546. # define LT_DLGLOBAL 0
  10547. # endif
  10548. #endif
  10549. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10550. find out it does not work in some platform. */
  10551. #ifndef LT_DLLAZY_OR_NOW
  10552. # ifdef RTLD_LAZY
  10553. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10554. # else
  10555. # ifdef DL_LAZY
  10556. # define LT_DLLAZY_OR_NOW DL_LAZY
  10557. # else
  10558. # ifdef RTLD_NOW
  10559. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10560. # else
  10561. # ifdef DL_NOW
  10562. # define LT_DLLAZY_OR_NOW DL_NOW
  10563. # else
  10564. # define LT_DLLAZY_OR_NOW 0
  10565. # endif
  10566. # endif
  10567. # endif
  10568. # endif
  10569. #endif
  10570. void fnord() { int i=42;}
  10571. int main ()
  10572. {
  10573. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10574. int status = $lt_dlunknown;
  10575. if (self)
  10576. {
  10577. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10578. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10579. /* dlclose (self); */
  10580. }
  10581. else
  10582. puts (dlerror ());
  10583. return status;
  10584. }
  10585. _LT_EOF
  10586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10587. (eval $ac_link) 2>&5
  10588. ac_status=$?
  10589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10590. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10591. (./conftest; exit; ) >&5 2>/dev/null
  10592. lt_status=$?
  10593. case x$lt_status in
  10594. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10595. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10596. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10597. esac
  10598. else :
  10599. # compilation failed
  10600. lt_cv_dlopen_self_static=no
  10601. fi
  10602. fi
  10603. rm -fr conftest*
  10604. fi
  10605. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10606. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10607. fi
  10608. CPPFLAGS="$save_CPPFLAGS"
  10609. LDFLAGS="$save_LDFLAGS"
  10610. LIBS="$save_LIBS"
  10611. ;;
  10612. esac
  10613. case $lt_cv_dlopen_self in
  10614. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10615. *) enable_dlopen_self=unknown ;;
  10616. esac
  10617. case $lt_cv_dlopen_self_static in
  10618. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10619. *) enable_dlopen_self_static=unknown ;;
  10620. esac
  10621. fi
  10622. striplib=
  10623. old_striplib=
  10624. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10625. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10626. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10627. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10628. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10629. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10630. $as_echo "yes" >&6; }
  10631. else
  10632. # FIXME - insert some real tests, host_os isn't really good enough
  10633. case $host_os in
  10634. darwin*)
  10635. if test -n "$STRIP" ; then
  10636. striplib="$STRIP -x"
  10637. old_striplib="$STRIP -S"
  10638. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10639. $as_echo "yes" >&6; }
  10640. else
  10641. { $as_echo "$as_me:$LINENO: result: no" >&5
  10642. $as_echo "no" >&6; }
  10643. fi
  10644. ;;
  10645. *)
  10646. { $as_echo "$as_me:$LINENO: result: no" >&5
  10647. $as_echo "no" >&6; }
  10648. ;;
  10649. esac
  10650. fi
  10651. # Report which library types will actually be built
  10652. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10653. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10654. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10655. $as_echo "$can_build_shared" >&6; }
  10656. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10657. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10658. test "$can_build_shared" = "no" && enable_shared=no
  10659. # On AIX, shared libraries and static libraries use the same namespace, and
  10660. # are all built from PIC.
  10661. case $host_os in
  10662. aix3*)
  10663. test "$enable_shared" = yes && enable_static=no
  10664. if test -n "$RANLIB"; then
  10665. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10666. postinstall_cmds='$RANLIB $lib'
  10667. fi
  10668. ;;
  10669. aix[4-9]*)
  10670. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10671. test "$enable_shared" = yes && enable_static=no
  10672. fi
  10673. ;;
  10674. esac
  10675. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10676. $as_echo "$enable_shared" >&6; }
  10677. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10678. $as_echo_n "checking whether to build static libraries... " >&6; }
  10679. # Make sure either enable_shared or enable_static is yes.
  10680. test "$enable_shared" = yes || enable_static=yes
  10681. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10682. $as_echo "$enable_static" >&6; }
  10683. fi
  10684. ac_ext=c
  10685. ac_cpp='$CPP $CPPFLAGS'
  10686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10689. CC="$lt_save_CC"
  10690. ac_config_commands="$ac_config_commands libtool"
  10691. # Only expand once:
  10692. if test X"$GCC" = "Xyes"; then
  10693. CFLAGS="$CFLAGS -Wall -W"
  10694. TARGET="depend allprogs"
  10695. else
  10696. TARGET="everything"
  10697. echo >.depend-done
  10698. fi
  10699. CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
  10700. if test $ac_cv_c_compiler_gnu = yes; then
  10701. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  10702. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  10703. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  10704. $as_echo_n "(cached) " >&6
  10705. else
  10706. ac_pattern="Autoconf.*'x'"
  10707. cat >conftest.$ac_ext <<_ACEOF
  10708. /* confdefs.h. */
  10709. _ACEOF
  10710. cat confdefs.h >>conftest.$ac_ext
  10711. cat >>conftest.$ac_ext <<_ACEOF
  10712. /* end confdefs.h. */
  10713. #include <sgtty.h>
  10714. Autoconf TIOCGETP
  10715. _ACEOF
  10716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10717. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  10718. ac_cv_prog_gcc_traditional=yes
  10719. else
  10720. ac_cv_prog_gcc_traditional=no
  10721. fi
  10722. rm -f conftest*
  10723. if test $ac_cv_prog_gcc_traditional = no; then
  10724. cat >conftest.$ac_ext <<_ACEOF
  10725. /* confdefs.h. */
  10726. _ACEOF
  10727. cat confdefs.h >>conftest.$ac_ext
  10728. cat >>conftest.$ac_ext <<_ACEOF
  10729. /* end confdefs.h. */
  10730. #include <termio.h>
  10731. Autoconf TCGETA
  10732. _ACEOF
  10733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10734. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  10735. ac_cv_prog_gcc_traditional=yes
  10736. fi
  10737. rm -f conftest*
  10738. fi
  10739. fi
  10740. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  10741. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  10742. if test $ac_cv_prog_gcc_traditional = yes; then
  10743. CC="$CC -traditional"
  10744. fi
  10745. fi
  10746. # Check whether --enable-largefile was given.
  10747. if test "${enable_largefile+set}" = set; then
  10748. enableval=$enable_largefile;
  10749. fi
  10750. if test "$enable_largefile" != no; then
  10751. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10752. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10753. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10754. $as_echo_n "(cached) " >&6
  10755. else
  10756. ac_cv_sys_largefile_CC=no
  10757. if test "$GCC" != yes; then
  10758. ac_save_CC=$CC
  10759. while :; do
  10760. # IRIX 6.2 and later do not support large files by default,
  10761. # so use the C compiler's -n32 option if that helps.
  10762. cat >conftest.$ac_ext <<_ACEOF
  10763. /* confdefs.h. */
  10764. _ACEOF
  10765. cat confdefs.h >>conftest.$ac_ext
  10766. cat >>conftest.$ac_ext <<_ACEOF
  10767. /* end confdefs.h. */
  10768. #include <sys/types.h>
  10769. /* Check that off_t can represent 2**63 - 1 correctly.
  10770. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10771. since some C++ compilers masquerading as C compilers
  10772. incorrectly reject 9223372036854775807. */
  10773. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10774. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10775. && LARGE_OFF_T % 2147483647 == 1)
  10776. ? 1 : -1];
  10777. int
  10778. main ()
  10779. {
  10780. ;
  10781. return 0;
  10782. }
  10783. _ACEOF
  10784. rm -f conftest.$ac_objext
  10785. if { (ac_try="$ac_compile"
  10786. case "(($ac_try" in
  10787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10788. *) ac_try_echo=$ac_try;;
  10789. esac
  10790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10791. $as_echo "$ac_try_echo") >&5
  10792. (eval "$ac_compile") 2>conftest.er1
  10793. ac_status=$?
  10794. grep -v '^ *+' conftest.er1 >conftest.err
  10795. rm -f conftest.er1
  10796. cat conftest.err >&5
  10797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10798. (exit $ac_status); } && {
  10799. test -z "$ac_c_werror_flag" ||
  10800. test ! -s conftest.err
  10801. } && test -s conftest.$ac_objext; then
  10802. break
  10803. else
  10804. $as_echo "$as_me: failed program was:" >&5
  10805. sed 's/^/| /' conftest.$ac_ext >&5
  10806. fi
  10807. rm -f core conftest.err conftest.$ac_objext
  10808. CC="$CC -n32"
  10809. rm -f conftest.$ac_objext
  10810. if { (ac_try="$ac_compile"
  10811. case "(($ac_try" in
  10812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10813. *) ac_try_echo=$ac_try;;
  10814. esac
  10815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10816. $as_echo "$ac_try_echo") >&5
  10817. (eval "$ac_compile") 2>conftest.er1
  10818. ac_status=$?
  10819. grep -v '^ *+' conftest.er1 >conftest.err
  10820. rm -f conftest.er1
  10821. cat conftest.err >&5
  10822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10823. (exit $ac_status); } && {
  10824. test -z "$ac_c_werror_flag" ||
  10825. test ! -s conftest.err
  10826. } && test -s conftest.$ac_objext; then
  10827. ac_cv_sys_largefile_CC=' -n32'; break
  10828. else
  10829. $as_echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. fi
  10832. rm -f core conftest.err conftest.$ac_objext
  10833. break
  10834. done
  10835. CC=$ac_save_CC
  10836. rm -f conftest.$ac_ext
  10837. fi
  10838. fi
  10839. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10840. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10841. if test "$ac_cv_sys_largefile_CC" != no; then
  10842. CC=$CC$ac_cv_sys_largefile_CC
  10843. fi
  10844. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10845. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10846. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. while :; do
  10850. cat >conftest.$ac_ext <<_ACEOF
  10851. /* confdefs.h. */
  10852. _ACEOF
  10853. cat confdefs.h >>conftest.$ac_ext
  10854. cat >>conftest.$ac_ext <<_ACEOF
  10855. /* end confdefs.h. */
  10856. #include <sys/types.h>
  10857. /* Check that off_t can represent 2**63 - 1 correctly.
  10858. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10859. since some C++ compilers masquerading as C compilers
  10860. incorrectly reject 9223372036854775807. */
  10861. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10862. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10863. && LARGE_OFF_T % 2147483647 == 1)
  10864. ? 1 : -1];
  10865. int
  10866. main ()
  10867. {
  10868. ;
  10869. return 0;
  10870. }
  10871. _ACEOF
  10872. rm -f conftest.$ac_objext
  10873. if { (ac_try="$ac_compile"
  10874. case "(($ac_try" in
  10875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10876. *) ac_try_echo=$ac_try;;
  10877. esac
  10878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10879. $as_echo "$ac_try_echo") >&5
  10880. (eval "$ac_compile") 2>conftest.er1
  10881. ac_status=$?
  10882. grep -v '^ *+' conftest.er1 >conftest.err
  10883. rm -f conftest.er1
  10884. cat conftest.err >&5
  10885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10886. (exit $ac_status); } && {
  10887. test -z "$ac_c_werror_flag" ||
  10888. test ! -s conftest.err
  10889. } && test -s conftest.$ac_objext; then
  10890. ac_cv_sys_file_offset_bits=no; break
  10891. else
  10892. $as_echo "$as_me: failed program was:" >&5
  10893. sed 's/^/| /' conftest.$ac_ext >&5
  10894. fi
  10895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10896. cat >conftest.$ac_ext <<_ACEOF
  10897. /* confdefs.h. */
  10898. _ACEOF
  10899. cat confdefs.h >>conftest.$ac_ext
  10900. cat >>conftest.$ac_ext <<_ACEOF
  10901. /* end confdefs.h. */
  10902. #define _FILE_OFFSET_BITS 64
  10903. #include <sys/types.h>
  10904. /* Check that off_t can represent 2**63 - 1 correctly.
  10905. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10906. since some C++ compilers masquerading as C compilers
  10907. incorrectly reject 9223372036854775807. */
  10908. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10909. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10910. && LARGE_OFF_T % 2147483647 == 1)
  10911. ? 1 : -1];
  10912. int
  10913. main ()
  10914. {
  10915. ;
  10916. return 0;
  10917. }
  10918. _ACEOF
  10919. rm -f conftest.$ac_objext
  10920. if { (ac_try="$ac_compile"
  10921. case "(($ac_try" in
  10922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10923. *) ac_try_echo=$ac_try;;
  10924. esac
  10925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10926. $as_echo "$ac_try_echo") >&5
  10927. (eval "$ac_compile") 2>conftest.er1
  10928. ac_status=$?
  10929. grep -v '^ *+' conftest.er1 >conftest.err
  10930. rm -f conftest.er1
  10931. cat conftest.err >&5
  10932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10933. (exit $ac_status); } && {
  10934. test -z "$ac_c_werror_flag" ||
  10935. test ! -s conftest.err
  10936. } && test -s conftest.$ac_objext; then
  10937. ac_cv_sys_file_offset_bits=64; break
  10938. else
  10939. $as_echo "$as_me: failed program was:" >&5
  10940. sed 's/^/| /' conftest.$ac_ext >&5
  10941. fi
  10942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10943. ac_cv_sys_file_offset_bits=unknown
  10944. break
  10945. done
  10946. fi
  10947. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10948. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10949. case $ac_cv_sys_file_offset_bits in #(
  10950. no | unknown) ;;
  10951. *)
  10952. cat >>confdefs.h <<_ACEOF
  10953. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10954. _ACEOF
  10955. ;;
  10956. esac
  10957. rm -rf conftest*
  10958. if test $ac_cv_sys_file_offset_bits = unknown; then
  10959. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10960. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10961. if test "${ac_cv_sys_large_files+set}" = set; then
  10962. $as_echo_n "(cached) " >&6
  10963. else
  10964. while :; do
  10965. cat >conftest.$ac_ext <<_ACEOF
  10966. /* confdefs.h. */
  10967. _ACEOF
  10968. cat confdefs.h >>conftest.$ac_ext
  10969. cat >>conftest.$ac_ext <<_ACEOF
  10970. /* end confdefs.h. */
  10971. #include <sys/types.h>
  10972. /* Check that off_t can represent 2**63 - 1 correctly.
  10973. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10974. since some C++ compilers masquerading as C compilers
  10975. incorrectly reject 9223372036854775807. */
  10976. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10977. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10978. && LARGE_OFF_T % 2147483647 == 1)
  10979. ? 1 : -1];
  10980. int
  10981. main ()
  10982. {
  10983. ;
  10984. return 0;
  10985. }
  10986. _ACEOF
  10987. rm -f conftest.$ac_objext
  10988. if { (ac_try="$ac_compile"
  10989. case "(($ac_try" in
  10990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10991. *) ac_try_echo=$ac_try;;
  10992. esac
  10993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10994. $as_echo "$ac_try_echo") >&5
  10995. (eval "$ac_compile") 2>conftest.er1
  10996. ac_status=$?
  10997. grep -v '^ *+' conftest.er1 >conftest.err
  10998. rm -f conftest.er1
  10999. cat conftest.err >&5
  11000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11001. (exit $ac_status); } && {
  11002. test -z "$ac_c_werror_flag" ||
  11003. test ! -s conftest.err
  11004. } && test -s conftest.$ac_objext; then
  11005. ac_cv_sys_large_files=no; break
  11006. else
  11007. $as_echo "$as_me: failed program was:" >&5
  11008. sed 's/^/| /' conftest.$ac_ext >&5
  11009. fi
  11010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11011. cat >conftest.$ac_ext <<_ACEOF
  11012. /* confdefs.h. */
  11013. _ACEOF
  11014. cat confdefs.h >>conftest.$ac_ext
  11015. cat >>conftest.$ac_ext <<_ACEOF
  11016. /* end confdefs.h. */
  11017. #define _LARGE_FILES 1
  11018. #include <sys/types.h>
  11019. /* Check that off_t can represent 2**63 - 1 correctly.
  11020. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11021. since some C++ compilers masquerading as C compilers
  11022. incorrectly reject 9223372036854775807. */
  11023. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11024. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11025. && LARGE_OFF_T % 2147483647 == 1)
  11026. ? 1 : -1];
  11027. int
  11028. main ()
  11029. {
  11030. ;
  11031. return 0;
  11032. }
  11033. _ACEOF
  11034. rm -f conftest.$ac_objext
  11035. if { (ac_try="$ac_compile"
  11036. case "(($ac_try" in
  11037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11038. *) ac_try_echo=$ac_try;;
  11039. esac
  11040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11041. $as_echo "$ac_try_echo") >&5
  11042. (eval "$ac_compile") 2>conftest.er1
  11043. ac_status=$?
  11044. grep -v '^ *+' conftest.er1 >conftest.err
  11045. rm -f conftest.er1
  11046. cat conftest.err >&5
  11047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11048. (exit $ac_status); } && {
  11049. test -z "$ac_c_werror_flag" ||
  11050. test ! -s conftest.err
  11051. } && test -s conftest.$ac_objext; then
  11052. ac_cv_sys_large_files=1; break
  11053. else
  11054. $as_echo "$as_me: failed program was:" >&5
  11055. sed 's/^/| /' conftest.$ac_ext >&5
  11056. fi
  11057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11058. ac_cv_sys_large_files=unknown
  11059. break
  11060. done
  11061. fi
  11062. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  11063. $as_echo "$ac_cv_sys_large_files" >&6; }
  11064. case $ac_cv_sys_large_files in #(
  11065. no | unknown) ;;
  11066. *)
  11067. cat >>confdefs.h <<_ACEOF
  11068. #define _LARGE_FILES $ac_cv_sys_large_files
  11069. _ACEOF
  11070. ;;
  11071. esac
  11072. rm -rf conftest*
  11073. fi
  11074. fi
  11075. { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
  11076. $as_echo_n "checking for library containing strerror... " >&6; }
  11077. if test "${ac_cv_search_strerror+set}" = set; then
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. ac_func_search_save_LIBS=$LIBS
  11081. cat >conftest.$ac_ext <<_ACEOF
  11082. /* confdefs.h. */
  11083. _ACEOF
  11084. cat confdefs.h >>conftest.$ac_ext
  11085. cat >>conftest.$ac_ext <<_ACEOF
  11086. /* end confdefs.h. */
  11087. /* Override any GCC internal prototype to avoid an error.
  11088. Use char because int might match the return type of a GCC
  11089. builtin and then its argument prototype would still apply. */
  11090. #ifdef __cplusplus
  11091. extern "C"
  11092. #endif
  11093. char strerror ();
  11094. int
  11095. main ()
  11096. {
  11097. return strerror ();
  11098. ;
  11099. return 0;
  11100. }
  11101. _ACEOF
  11102. for ac_lib in '' cposix; do
  11103. if test -z "$ac_lib"; then
  11104. ac_res="none required"
  11105. else
  11106. ac_res=-l$ac_lib
  11107. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11108. fi
  11109. rm -f conftest.$ac_objext conftest$ac_exeext
  11110. if { (ac_try="$ac_link"
  11111. case "(($ac_try" in
  11112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11113. *) ac_try_echo=$ac_try;;
  11114. esac
  11115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11116. $as_echo "$ac_try_echo") >&5
  11117. (eval "$ac_link") 2>conftest.er1
  11118. ac_status=$?
  11119. grep -v '^ *+' conftest.er1 >conftest.err
  11120. rm -f conftest.er1
  11121. cat conftest.err >&5
  11122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11123. (exit $ac_status); } && {
  11124. test -z "$ac_c_werror_flag" ||
  11125. test ! -s conftest.err
  11126. } && test -s conftest$ac_exeext && {
  11127. test "$cross_compiling" = yes ||
  11128. $as_test_x conftest$ac_exeext
  11129. }; then
  11130. ac_cv_search_strerror=$ac_res
  11131. else
  11132. $as_echo "$as_me: failed program was:" >&5
  11133. sed 's/^/| /' conftest.$ac_ext >&5
  11134. fi
  11135. rm -rf conftest.dSYM
  11136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11137. conftest$ac_exeext
  11138. if test "${ac_cv_search_strerror+set}" = set; then
  11139. break
  11140. fi
  11141. done
  11142. if test "${ac_cv_search_strerror+set}" = set; then
  11143. :
  11144. else
  11145. ac_cv_search_strerror=no
  11146. fi
  11147. rm conftest.$ac_ext
  11148. LIBS=$ac_func_search_save_LIBS
  11149. fi
  11150. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  11151. $as_echo "$ac_cv_search_strerror" >&6; }
  11152. ac_res=$ac_cv_search_strerror
  11153. if test "$ac_res" != no; then
  11154. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11155. fi
  11156. { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
  11157. $as_echo_n "checking for function prototypes... " >&6; }
  11158. if test "$ac_cv_prog_cc_c89" != no; then
  11159. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11160. $as_echo "yes" >&6; }
  11161. cat >>confdefs.h <<\_ACEOF
  11162. #define PROTOTYPES 1
  11163. _ACEOF
  11164. cat >>confdefs.h <<\_ACEOF
  11165. #define __PROTOTYPES 1
  11166. _ACEOF
  11167. else
  11168. { $as_echo "$as_me:$LINENO: result: no" >&5
  11169. $as_echo "no" >&6; }
  11170. fi
  11171. if test "$ac_cv_prog_cc_stdc" != no; then
  11172. U= ANSI2KNR=
  11173. else
  11174. U=_ ANSI2KNR=./ansi2knr
  11175. fi
  11176. # Ensure some checks needed by ansi2knr itself.
  11177. for ac_header in string.h
  11178. do
  11179. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11180. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11181. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11182. $as_echo_n "checking for $ac_header... " >&6; }
  11183. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11184. $as_echo_n "(cached) " >&6
  11185. fi
  11186. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11187. $as_echo "$as_val"'`
  11188. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11189. $as_echo "$ac_res" >&6; }
  11190. else
  11191. # Is the header compilable?
  11192. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11193. $as_echo_n "checking $ac_header usability... " >&6; }
  11194. cat >conftest.$ac_ext <<_ACEOF
  11195. /* confdefs.h. */
  11196. _ACEOF
  11197. cat confdefs.h >>conftest.$ac_ext
  11198. cat >>conftest.$ac_ext <<_ACEOF
  11199. /* end confdefs.h. */
  11200. $ac_includes_default
  11201. #include <$ac_header>
  11202. _ACEOF
  11203. rm -f conftest.$ac_objext
  11204. if { (ac_try="$ac_compile"
  11205. case "(($ac_try" in
  11206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11207. *) ac_try_echo=$ac_try;;
  11208. esac
  11209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11210. $as_echo "$ac_try_echo") >&5
  11211. (eval "$ac_compile") 2>conftest.er1
  11212. ac_status=$?
  11213. grep -v '^ *+' conftest.er1 >conftest.err
  11214. rm -f conftest.er1
  11215. cat conftest.err >&5
  11216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11217. (exit $ac_status); } && {
  11218. test -z "$ac_c_werror_flag" ||
  11219. test ! -s conftest.err
  11220. } && test -s conftest.$ac_objext; then
  11221. ac_header_compiler=yes
  11222. else
  11223. $as_echo "$as_me: failed program was:" >&5
  11224. sed 's/^/| /' conftest.$ac_ext >&5
  11225. ac_header_compiler=no
  11226. fi
  11227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11228. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11229. $as_echo "$ac_header_compiler" >&6; }
  11230. # Is the header present?
  11231. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11232. $as_echo_n "checking $ac_header presence... " >&6; }
  11233. cat >conftest.$ac_ext <<_ACEOF
  11234. /* confdefs.h. */
  11235. _ACEOF
  11236. cat confdefs.h >>conftest.$ac_ext
  11237. cat >>conftest.$ac_ext <<_ACEOF
  11238. /* end confdefs.h. */
  11239. #include <$ac_header>
  11240. _ACEOF
  11241. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11242. case "(($ac_try" in
  11243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11244. *) ac_try_echo=$ac_try;;
  11245. esac
  11246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11247. $as_echo "$ac_try_echo") >&5
  11248. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11249. ac_status=$?
  11250. grep -v '^ *+' conftest.er1 >conftest.err
  11251. rm -f conftest.er1
  11252. cat conftest.err >&5
  11253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11254. (exit $ac_status); } >/dev/null && {
  11255. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11256. test ! -s conftest.err
  11257. }; then
  11258. ac_header_preproc=yes
  11259. else
  11260. $as_echo "$as_me: failed program was:" >&5
  11261. sed 's/^/| /' conftest.$ac_ext >&5
  11262. ac_header_preproc=no
  11263. fi
  11264. rm -f conftest.err conftest.$ac_ext
  11265. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11266. $as_echo "$ac_header_preproc" >&6; }
  11267. # So? What about this header?
  11268. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11269. yes:no: )
  11270. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11271. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11272. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11273. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11274. ac_header_preproc=yes
  11275. ;;
  11276. no:yes:* )
  11277. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11278. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11279. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11280. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11281. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11282. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11283. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11284. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11285. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11286. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11287. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11288. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11289. ( cat <<\_ASBOX
  11290. ## ---------------------------------- ##
  11291. ## Report this to popt-devel@rpm5.org ##
  11292. ## ---------------------------------- ##
  11293. _ASBOX
  11294. ) | sed "s/^/$as_me: WARNING: /" >&2
  11295. ;;
  11296. esac
  11297. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11298. $as_echo_n "checking for $ac_header... " >&6; }
  11299. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. eval "$as_ac_Header=\$ac_header_preproc"
  11303. fi
  11304. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11305. $as_echo "$as_val"'`
  11306. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11307. $as_echo "$ac_res" >&6; }
  11308. fi
  11309. as_val=`eval 'as_val=${'$as_ac_Header'}
  11310. $as_echo "$as_val"'`
  11311. if test "x$as_val" = x""yes; then
  11312. cat >>confdefs.h <<_ACEOF
  11313. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11314. _ACEOF
  11315. fi
  11316. done
  11317. for ac_header in float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h
  11318. do
  11319. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11320. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11321. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11322. $as_echo_n "checking for $ac_header... " >&6; }
  11323. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11324. $as_echo_n "(cached) " >&6
  11325. fi
  11326. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11327. $as_echo "$as_val"'`
  11328. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11329. $as_echo "$ac_res" >&6; }
  11330. else
  11331. # Is the header compilable?
  11332. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11333. $as_echo_n "checking $ac_header usability... " >&6; }
  11334. cat >conftest.$ac_ext <<_ACEOF
  11335. /* confdefs.h. */
  11336. _ACEOF
  11337. cat confdefs.h >>conftest.$ac_ext
  11338. cat >>conftest.$ac_ext <<_ACEOF
  11339. /* end confdefs.h. */
  11340. $ac_includes_default
  11341. #include <$ac_header>
  11342. _ACEOF
  11343. rm -f conftest.$ac_objext
  11344. if { (ac_try="$ac_compile"
  11345. case "(($ac_try" in
  11346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11347. *) ac_try_echo=$ac_try;;
  11348. esac
  11349. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11350. $as_echo "$ac_try_echo") >&5
  11351. (eval "$ac_compile") 2>conftest.er1
  11352. ac_status=$?
  11353. grep -v '^ *+' conftest.er1 >conftest.err
  11354. rm -f conftest.er1
  11355. cat conftest.err >&5
  11356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11357. (exit $ac_status); } && {
  11358. test -z "$ac_c_werror_flag" ||
  11359. test ! -s conftest.err
  11360. } && test -s conftest.$ac_objext; then
  11361. ac_header_compiler=yes
  11362. else
  11363. $as_echo "$as_me: failed program was:" >&5
  11364. sed 's/^/| /' conftest.$ac_ext >&5
  11365. ac_header_compiler=no
  11366. fi
  11367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11368. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11369. $as_echo "$ac_header_compiler" >&6; }
  11370. # Is the header present?
  11371. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11372. $as_echo_n "checking $ac_header presence... " >&6; }
  11373. cat >conftest.$ac_ext <<_ACEOF
  11374. /* confdefs.h. */
  11375. _ACEOF
  11376. cat confdefs.h >>conftest.$ac_ext
  11377. cat >>conftest.$ac_ext <<_ACEOF
  11378. /* end confdefs.h. */
  11379. #include <$ac_header>
  11380. _ACEOF
  11381. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11382. case "(($ac_try" in
  11383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11384. *) ac_try_echo=$ac_try;;
  11385. esac
  11386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11387. $as_echo "$ac_try_echo") >&5
  11388. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11389. ac_status=$?
  11390. grep -v '^ *+' conftest.er1 >conftest.err
  11391. rm -f conftest.er1
  11392. cat conftest.err >&5
  11393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11394. (exit $ac_status); } >/dev/null && {
  11395. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11396. test ! -s conftest.err
  11397. }; then
  11398. ac_header_preproc=yes
  11399. else
  11400. $as_echo "$as_me: failed program was:" >&5
  11401. sed 's/^/| /' conftest.$ac_ext >&5
  11402. ac_header_preproc=no
  11403. fi
  11404. rm -f conftest.err conftest.$ac_ext
  11405. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11406. $as_echo "$ac_header_preproc" >&6; }
  11407. # So? What about this header?
  11408. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11409. yes:no: )
  11410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11411. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11412. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11413. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11414. ac_header_preproc=yes
  11415. ;;
  11416. no:yes:* )
  11417. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11418. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11419. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11420. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11421. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11422. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11423. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11424. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11425. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11426. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11427. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11428. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11429. ( cat <<\_ASBOX
  11430. ## ---------------------------------- ##
  11431. ## Report this to popt-devel@rpm5.org ##
  11432. ## ---------------------------------- ##
  11433. _ASBOX
  11434. ) | sed "s/^/$as_me: WARNING: /" >&2
  11435. ;;
  11436. esac
  11437. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11438. $as_echo_n "checking for $ac_header... " >&6; }
  11439. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11440. $as_echo_n "(cached) " >&6
  11441. else
  11442. eval "$as_ac_Header=\$ac_header_preproc"
  11443. fi
  11444. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11445. $as_echo "$as_val"'`
  11446. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11447. $as_echo "$ac_res" >&6; }
  11448. fi
  11449. as_val=`eval 'as_val=${'$as_ac_Header'}
  11450. $as_echo "$as_val"'`
  11451. if test "x$as_val" = x""yes; then
  11452. cat >>confdefs.h <<_ACEOF
  11453. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11454. _ACEOF
  11455. fi
  11456. done
  11457. # For some systems we know that we have ld_version scripts.
  11458. # Use it then as default.
  11459. have_ld_version_script=no
  11460. case "${host}" in
  11461. *-*-linux*)
  11462. have_ld_version_script=yes
  11463. ;;
  11464. *-*-gnu*)
  11465. have_ld_version_script=yes
  11466. ;;
  11467. esac
  11468. # Check whether --enable-ld-version-script was given.
  11469. if test "${enable_ld_version_script+set}" = set; then
  11470. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  11471. else
  11472. :
  11473. fi
  11474. if test "$have_ld_version_script" = "yes"; then
  11475. HAVE_LD_VERSION_SCRIPT_TRUE=
  11476. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  11477. else
  11478. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  11479. HAVE_LD_VERSION_SCRIPT_FALSE=
  11480. fi
  11481. # Check whether --enable-build-gcov was given.
  11482. if test "${enable_build_gcov+set}" = set; then
  11483. enableval=$enable_build_gcov; if test ".$enableval" = .yes; then
  11484. if test ".`$CC --version 2>&1 | grep 'GCC'`" != .; then
  11485. CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
  11486. fi
  11487. fi
  11488. fi
  11489. { $as_echo "$as_me:$LINENO: checking for setreuid" >&5
  11490. $as_echo_n "checking for setreuid... " >&6; }
  11491. if test "${ac_cv_func_setreuid+set}" = set; then
  11492. $as_echo_n "(cached) " >&6
  11493. else
  11494. cat >conftest.$ac_ext <<_ACEOF
  11495. /* confdefs.h. */
  11496. _ACEOF
  11497. cat confdefs.h >>conftest.$ac_ext
  11498. cat >>conftest.$ac_ext <<_ACEOF
  11499. /* end confdefs.h. */
  11500. /* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
  11501. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11502. #define setreuid innocuous_setreuid
  11503. /* System header to define __stub macros and hopefully few prototypes,
  11504. which can conflict with char setreuid (); below.
  11505. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11506. <limits.h> exists even on freestanding compilers. */
  11507. #ifdef __STDC__
  11508. # include <limits.h>
  11509. #else
  11510. # include <assert.h>
  11511. #endif
  11512. #undef setreuid
  11513. /* Override any GCC internal prototype to avoid an error.
  11514. Use char because int might match the return type of a GCC
  11515. builtin and then its argument prototype would still apply. */
  11516. #ifdef __cplusplus
  11517. extern "C"
  11518. #endif
  11519. char setreuid ();
  11520. /* The GNU C library defines this for functions which it implements
  11521. to always fail with ENOSYS. Some functions are actually named
  11522. something starting with __ and the normal name is an alias. */
  11523. #if defined __stub_setreuid || defined __stub___setreuid
  11524. choke me
  11525. #endif
  11526. int
  11527. main ()
  11528. {
  11529. return setreuid ();
  11530. ;
  11531. return 0;
  11532. }
  11533. _ACEOF
  11534. rm -f conftest.$ac_objext conftest$ac_exeext
  11535. if { (ac_try="$ac_link"
  11536. case "(($ac_try" in
  11537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11538. *) ac_try_echo=$ac_try;;
  11539. esac
  11540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11541. $as_echo "$ac_try_echo") >&5
  11542. (eval "$ac_link") 2>conftest.er1
  11543. ac_status=$?
  11544. grep -v '^ *+' conftest.er1 >conftest.err
  11545. rm -f conftest.er1
  11546. cat conftest.err >&5
  11547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11548. (exit $ac_status); } && {
  11549. test -z "$ac_c_werror_flag" ||
  11550. test ! -s conftest.err
  11551. } && test -s conftest$ac_exeext && {
  11552. test "$cross_compiling" = yes ||
  11553. $as_test_x conftest$ac_exeext
  11554. }; then
  11555. ac_cv_func_setreuid=yes
  11556. else
  11557. $as_echo "$as_me: failed program was:" >&5
  11558. sed 's/^/| /' conftest.$ac_ext >&5
  11559. ac_cv_func_setreuid=no
  11560. fi
  11561. rm -rf conftest.dSYM
  11562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11563. conftest$ac_exeext conftest.$ac_ext
  11564. fi
  11565. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
  11566. $as_echo "$ac_cv_func_setreuid" >&6; }
  11567. if test "x$ac_cv_func_setreuid" = x""yes; then
  11568. :
  11569. else
  11570. { $as_echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
  11571. $as_echo_n "checking for setreuid in -lucb... " >&6; }
  11572. if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
  11573. $as_echo_n "(cached) " >&6
  11574. else
  11575. ac_check_lib_save_LIBS=$LIBS
  11576. LIBS="-lucb $LIBS"
  11577. cat >conftest.$ac_ext <<_ACEOF
  11578. /* confdefs.h. */
  11579. _ACEOF
  11580. cat confdefs.h >>conftest.$ac_ext
  11581. cat >>conftest.$ac_ext <<_ACEOF
  11582. /* end confdefs.h. */
  11583. /* Override any GCC internal prototype to avoid an error.
  11584. Use char because int might match the return type of a GCC
  11585. builtin and then its argument prototype would still apply. */
  11586. #ifdef __cplusplus
  11587. extern "C"
  11588. #endif
  11589. char setreuid ();
  11590. int
  11591. main ()
  11592. {
  11593. return setreuid ();
  11594. ;
  11595. return 0;
  11596. }
  11597. _ACEOF
  11598. rm -f conftest.$ac_objext conftest$ac_exeext
  11599. if { (ac_try="$ac_link"
  11600. case "(($ac_try" in
  11601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11602. *) ac_try_echo=$ac_try;;
  11603. esac
  11604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11605. $as_echo "$ac_try_echo") >&5
  11606. (eval "$ac_link") 2>conftest.er1
  11607. ac_status=$?
  11608. grep -v '^ *+' conftest.er1 >conftest.err
  11609. rm -f conftest.er1
  11610. cat conftest.err >&5
  11611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11612. (exit $ac_status); } && {
  11613. test -z "$ac_c_werror_flag" ||
  11614. test ! -s conftest.err
  11615. } && test -s conftest$ac_exeext && {
  11616. test "$cross_compiling" = yes ||
  11617. $as_test_x conftest$ac_exeext
  11618. }; then
  11619. ac_cv_lib_ucb_setreuid=yes
  11620. else
  11621. $as_echo "$as_me: failed program was:" >&5
  11622. sed 's/^/| /' conftest.$ac_ext >&5
  11623. ac_cv_lib_ucb_setreuid=no
  11624. fi
  11625. rm -rf conftest.dSYM
  11626. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11627. conftest$ac_exeext conftest.$ac_ext
  11628. LIBS=$ac_check_lib_save_LIBS
  11629. fi
  11630. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
  11631. $as_echo "$ac_cv_lib_ucb_setreuid" >&6; }
  11632. if test "x$ac_cv_lib_ucb_setreuid" = x""yes; then
  11633. if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
  11634. fi
  11635. fi
  11636. for ac_func in getuid geteuid iconv mtrace __secure_getenv setregid stpcpy strerror vasprintf srandom
  11637. do
  11638. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11639. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11640. $as_echo_n "checking for $ac_func... " >&6; }
  11641. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11642. $as_echo_n "(cached) " >&6
  11643. else
  11644. cat >conftest.$ac_ext <<_ACEOF
  11645. /* confdefs.h. */
  11646. _ACEOF
  11647. cat confdefs.h >>conftest.$ac_ext
  11648. cat >>conftest.$ac_ext <<_ACEOF
  11649. /* end confdefs.h. */
  11650. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11651. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11652. #define $ac_func innocuous_$ac_func
  11653. /* System header to define __stub macros and hopefully few prototypes,
  11654. which can conflict with char $ac_func (); below.
  11655. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11656. <limits.h> exists even on freestanding compilers. */
  11657. #ifdef __STDC__
  11658. # include <limits.h>
  11659. #else
  11660. # include <assert.h>
  11661. #endif
  11662. #undef $ac_func
  11663. /* Override any GCC internal prototype to avoid an error.
  11664. Use char because int might match the return type of a GCC
  11665. builtin and then its argument prototype would still apply. */
  11666. #ifdef __cplusplus
  11667. extern "C"
  11668. #endif
  11669. char $ac_func ();
  11670. /* The GNU C library defines this for functions which it implements
  11671. to always fail with ENOSYS. Some functions are actually named
  11672. something starting with __ and the normal name is an alias. */
  11673. #if defined __stub_$ac_func || defined __stub___$ac_func
  11674. choke me
  11675. #endif
  11676. int
  11677. main ()
  11678. {
  11679. return $ac_func ();
  11680. ;
  11681. return 0;
  11682. }
  11683. _ACEOF
  11684. rm -f conftest.$ac_objext conftest$ac_exeext
  11685. if { (ac_try="$ac_link"
  11686. case "(($ac_try" in
  11687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11688. *) ac_try_echo=$ac_try;;
  11689. esac
  11690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11691. $as_echo "$ac_try_echo") >&5
  11692. (eval "$ac_link") 2>conftest.er1
  11693. ac_status=$?
  11694. grep -v '^ *+' conftest.er1 >conftest.err
  11695. rm -f conftest.er1
  11696. cat conftest.err >&5
  11697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11698. (exit $ac_status); } && {
  11699. test -z "$ac_c_werror_flag" ||
  11700. test ! -s conftest.err
  11701. } && test -s conftest$ac_exeext && {
  11702. test "$cross_compiling" = yes ||
  11703. $as_test_x conftest$ac_exeext
  11704. }; then
  11705. eval "$as_ac_var=yes"
  11706. else
  11707. $as_echo "$as_me: failed program was:" >&5
  11708. sed 's/^/| /' conftest.$ac_ext >&5
  11709. eval "$as_ac_var=no"
  11710. fi
  11711. rm -rf conftest.dSYM
  11712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11713. conftest$ac_exeext conftest.$ac_ext
  11714. fi
  11715. ac_res=`eval 'as_val=${'$as_ac_var'}
  11716. $as_echo "$as_val"'`
  11717. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11718. $as_echo "$ac_res" >&6; }
  11719. as_val=`eval 'as_val=${'$as_ac_var'}
  11720. $as_echo "$as_val"'`
  11721. if test "x$as_val" = x""yes; then
  11722. cat >>confdefs.h <<_ACEOF
  11723. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11724. _ACEOF
  11725. fi
  11726. done
  11727. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  11728. $as_echo_n "checking whether NLS is requested... " >&6; }
  11729. # Check whether --enable-nls was given.
  11730. if test "${enable_nls+set}" = set; then
  11731. enableval=$enable_nls; USE_NLS=$enableval
  11732. else
  11733. USE_NLS=yes
  11734. fi
  11735. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  11736. $as_echo "$USE_NLS" >&6; }
  11737. GETTEXT_MACRO_VERSION=0.17
  11738. # Prepare PATH_SEPARATOR.
  11739. # The user is always right.
  11740. if test "${PATH_SEPARATOR+set}" != set; then
  11741. echo "#! /bin/sh" >conf$$.sh
  11742. echo "exit 0" >>conf$$.sh
  11743. chmod +x conf$$.sh
  11744. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11745. PATH_SEPARATOR=';'
  11746. else
  11747. PATH_SEPARATOR=:
  11748. fi
  11749. rm -f conf$$.sh
  11750. fi
  11751. # Find out how to test for executable files. Don't use a zero-byte file,
  11752. # as systems may use methods other than mode bits to determine executability.
  11753. cat >conf$$.file <<_ASEOF
  11754. #! /bin/sh
  11755. exit 0
  11756. _ASEOF
  11757. chmod +x conf$$.file
  11758. if test -x conf$$.file >/dev/null 2>&1; then
  11759. ac_executable_p="test -x"
  11760. else
  11761. ac_executable_p="test -f"
  11762. fi
  11763. rm -f conf$$.file
  11764. # Extract the first word of "msgfmt", so it can be a program name with args.
  11765. set dummy msgfmt; ac_word=$2
  11766. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11767. $as_echo_n "checking for $ac_word... " >&6; }
  11768. if test "${ac_cv_path_MSGFMT+set}" = set; then
  11769. $as_echo_n "(cached) " >&6
  11770. else
  11771. case "$MSGFMT" in
  11772. [\\/]* | ?:[\\/]*)
  11773. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  11774. ;;
  11775. *)
  11776. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11777. for ac_dir in $PATH; do
  11778. IFS="$ac_save_IFS"
  11779. test -z "$ac_dir" && ac_dir=.
  11780. for ac_exec_ext in '' $ac_executable_extensions; do
  11781. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11782. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11783. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  11784. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11785. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  11786. break 2
  11787. fi
  11788. fi
  11789. done
  11790. done
  11791. IFS="$ac_save_IFS"
  11792. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  11793. ;;
  11794. esac
  11795. fi
  11796. MSGFMT="$ac_cv_path_MSGFMT"
  11797. if test "$MSGFMT" != ":"; then
  11798. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  11799. $as_echo "$MSGFMT" >&6; }
  11800. else
  11801. { $as_echo "$as_me:$LINENO: result: no" >&5
  11802. $as_echo "no" >&6; }
  11803. fi
  11804. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  11805. set dummy gmsgfmt; ac_word=$2
  11806. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11807. $as_echo_n "checking for $ac_word... " >&6; }
  11808. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  11809. $as_echo_n "(cached) " >&6
  11810. else
  11811. case $GMSGFMT in
  11812. [\\/]* | ?:[\\/]*)
  11813. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  11814. ;;
  11815. *)
  11816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11817. for as_dir in $PATH
  11818. do
  11819. IFS=$as_save_IFS
  11820. test -z "$as_dir" && as_dir=.
  11821. for ac_exec_ext in '' $ac_executable_extensions; do
  11822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11823. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  11824. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11825. break 2
  11826. fi
  11827. done
  11828. done
  11829. IFS=$as_save_IFS
  11830. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  11831. ;;
  11832. esac
  11833. fi
  11834. GMSGFMT=$ac_cv_path_GMSGFMT
  11835. if test -n "$GMSGFMT"; then
  11836. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  11837. $as_echo "$GMSGFMT" >&6; }
  11838. else
  11839. { $as_echo "$as_me:$LINENO: result: no" >&5
  11840. $as_echo "no" >&6; }
  11841. fi
  11842. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11843. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  11844. *) MSGFMT_015=$MSGFMT ;;
  11845. esac
  11846. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11847. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  11848. *) GMSGFMT_015=$GMSGFMT ;;
  11849. esac
  11850. # Prepare PATH_SEPARATOR.
  11851. # The user is always right.
  11852. if test "${PATH_SEPARATOR+set}" != set; then
  11853. echo "#! /bin/sh" >conf$$.sh
  11854. echo "exit 0" >>conf$$.sh
  11855. chmod +x conf$$.sh
  11856. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11857. PATH_SEPARATOR=';'
  11858. else
  11859. PATH_SEPARATOR=:
  11860. fi
  11861. rm -f conf$$.sh
  11862. fi
  11863. # Find out how to test for executable files. Don't use a zero-byte file,
  11864. # as systems may use methods other than mode bits to determine executability.
  11865. cat >conf$$.file <<_ASEOF
  11866. #! /bin/sh
  11867. exit 0
  11868. _ASEOF
  11869. chmod +x conf$$.file
  11870. if test -x conf$$.file >/dev/null 2>&1; then
  11871. ac_executable_p="test -x"
  11872. else
  11873. ac_executable_p="test -f"
  11874. fi
  11875. rm -f conf$$.file
  11876. # Extract the first word of "xgettext", so it can be a program name with args.
  11877. set dummy xgettext; ac_word=$2
  11878. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11879. $as_echo_n "checking for $ac_word... " >&6; }
  11880. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  11881. $as_echo_n "(cached) " >&6
  11882. else
  11883. case "$XGETTEXT" in
  11884. [\\/]* | ?:[\\/]*)
  11885. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  11886. ;;
  11887. *)
  11888. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11889. for ac_dir in $PATH; do
  11890. IFS="$ac_save_IFS"
  11891. test -z "$ac_dir" && ac_dir=.
  11892. for ac_exec_ext in '' $ac_executable_extensions; do
  11893. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11894. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11895. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  11896. (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
  11897. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  11898. break 2
  11899. fi
  11900. fi
  11901. done
  11902. done
  11903. IFS="$ac_save_IFS"
  11904. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  11905. ;;
  11906. esac
  11907. fi
  11908. XGETTEXT="$ac_cv_path_XGETTEXT"
  11909. if test "$XGETTEXT" != ":"; then
  11910. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  11911. $as_echo "$XGETTEXT" >&6; }
  11912. else
  11913. { $as_echo "$as_me:$LINENO: result: no" >&5
  11914. $as_echo "no" >&6; }
  11915. fi
  11916. rm -f messages.po
  11917. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  11918. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  11919. *) XGETTEXT_015=$XGETTEXT ;;
  11920. esac
  11921. # Prepare PATH_SEPARATOR.
  11922. # The user is always right.
  11923. if test "${PATH_SEPARATOR+set}" != set; then
  11924. echo "#! /bin/sh" >conf$$.sh
  11925. echo "exit 0" >>conf$$.sh
  11926. chmod +x conf$$.sh
  11927. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11928. PATH_SEPARATOR=';'
  11929. else
  11930. PATH_SEPARATOR=:
  11931. fi
  11932. rm -f conf$$.sh
  11933. fi
  11934. # Find out how to test for executable files. Don't use a zero-byte file,
  11935. # as systems may use methods other than mode bits to determine executability.
  11936. cat >conf$$.file <<_ASEOF
  11937. #! /bin/sh
  11938. exit 0
  11939. _ASEOF
  11940. chmod +x conf$$.file
  11941. if test -x conf$$.file >/dev/null 2>&1; then
  11942. ac_executable_p="test -x"
  11943. else
  11944. ac_executable_p="test -f"
  11945. fi
  11946. rm -f conf$$.file
  11947. # Extract the first word of "msgmerge", so it can be a program name with args.
  11948. set dummy msgmerge; ac_word=$2
  11949. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11950. $as_echo_n "checking for $ac_word... " >&6; }
  11951. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  11952. $as_echo_n "(cached) " >&6
  11953. else
  11954. case "$MSGMERGE" in
  11955. [\\/]* | ?:[\\/]*)
  11956. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  11957. ;;
  11958. *)
  11959. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11960. for ac_dir in $PATH; do
  11961. IFS="$ac_save_IFS"
  11962. test -z "$ac_dir" && ac_dir=.
  11963. for ac_exec_ext in '' $ac_executable_extensions; do
  11964. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11965. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  11966. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  11967. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  11968. break 2
  11969. fi
  11970. fi
  11971. done
  11972. done
  11973. IFS="$ac_save_IFS"
  11974. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  11975. ;;
  11976. esac
  11977. fi
  11978. MSGMERGE="$ac_cv_path_MSGMERGE"
  11979. if test "$MSGMERGE" != ":"; then
  11980. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  11981. $as_echo "$MSGMERGE" >&6; }
  11982. else
  11983. { $as_echo "$as_me:$LINENO: result: no" >&5
  11984. $as_echo "no" >&6; }
  11985. fi
  11986. test -n "$localedir" || localedir='${datadir}/locale'
  11987. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  11988. ac_config_commands="$ac_config_commands po-directories"
  11989. if test "X$prefix" = "XNONE"; then
  11990. acl_final_prefix="$ac_default_prefix"
  11991. else
  11992. acl_final_prefix="$prefix"
  11993. fi
  11994. if test "X$exec_prefix" = "XNONE"; then
  11995. acl_final_exec_prefix='${prefix}'
  11996. else
  11997. acl_final_exec_prefix="$exec_prefix"
  11998. fi
  11999. acl_save_prefix="$prefix"
  12000. prefix="$acl_final_prefix"
  12001. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  12002. prefix="$acl_save_prefix"
  12003. # Check whether --with-gnu-ld was given.
  12004. if test "${with_gnu_ld+set}" = set; then
  12005. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12006. else
  12007. with_gnu_ld=no
  12008. fi
  12009. # Prepare PATH_SEPARATOR.
  12010. # The user is always right.
  12011. if test "${PATH_SEPARATOR+set}" != set; then
  12012. echo "#! /bin/sh" >conf$$.sh
  12013. echo "exit 0" >>conf$$.sh
  12014. chmod +x conf$$.sh
  12015. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12016. PATH_SEPARATOR=';'
  12017. else
  12018. PATH_SEPARATOR=:
  12019. fi
  12020. rm -f conf$$.sh
  12021. fi
  12022. ac_prog=ld
  12023. if test "$GCC" = yes; then
  12024. # Check if gcc -print-prog-name=ld gives a path.
  12025. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  12026. $as_echo_n "checking for ld used by GCC... " >&6; }
  12027. case $host in
  12028. *-*-mingw*)
  12029. # gcc leaves a trailing carriage return which upsets mingw
  12030. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12031. *)
  12032. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12033. esac
  12034. case $ac_prog in
  12035. # Accept absolute paths.
  12036. [\\/]* | [A-Za-z]:[\\/]*)
  12037. re_direlt='/[^/][^/]*/\.\./'
  12038. # Canonicalize the path of ld
  12039. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  12040. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12041. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  12042. done
  12043. test -z "$LD" && LD="$ac_prog"
  12044. ;;
  12045. "")
  12046. # If it fails, then pretend we aren't using GCC.
  12047. ac_prog=ld
  12048. ;;
  12049. *)
  12050. # If it is relative, then search for the first ld in PATH.
  12051. with_gnu_ld=unknown
  12052. ;;
  12053. esac
  12054. elif test "$with_gnu_ld" = yes; then
  12055. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  12056. $as_echo_n "checking for GNU ld... " >&6; }
  12057. else
  12058. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12059. $as_echo_n "checking for non-GNU ld... " >&6; }
  12060. fi
  12061. if test "${acl_cv_path_LD+set}" = set; then
  12062. $as_echo_n "(cached) " >&6
  12063. else
  12064. if test -z "$LD"; then
  12065. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  12066. for ac_dir in $PATH; do
  12067. test -z "$ac_dir" && ac_dir=.
  12068. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12069. acl_cv_path_LD="$ac_dir/$ac_prog"
  12070. # Check to see if the program is GNU ld. I'd rather use --version,
  12071. # but apparently some GNU ld's only accept -v.
  12072. # Break only if it was the GNU/non-GNU ld that we prefer.
  12073. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  12074. *GNU* | *'with BFD'*)
  12075. test "$with_gnu_ld" != no && break ;;
  12076. *)
  12077. test "$with_gnu_ld" != yes && break ;;
  12078. esac
  12079. fi
  12080. done
  12081. IFS="$ac_save_ifs"
  12082. else
  12083. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  12084. fi
  12085. fi
  12086. LD="$acl_cv_path_LD"
  12087. if test -n "$LD"; then
  12088. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  12089. $as_echo "$LD" >&6; }
  12090. else
  12091. { $as_echo "$as_me:$LINENO: result: no" >&5
  12092. $as_echo "no" >&6; }
  12093. fi
  12094. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12095. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12096. { (exit 1); exit 1; }; }
  12097. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12098. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12099. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  12100. $as_echo_n "(cached) " >&6
  12101. else
  12102. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12103. case `$LD -v 2>&1 </dev/null` in
  12104. *GNU* | *'with BFD'*)
  12105. acl_cv_prog_gnu_ld=yes ;;
  12106. *)
  12107. acl_cv_prog_gnu_ld=no ;;
  12108. esac
  12109. fi
  12110. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  12111. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  12112. with_gnu_ld=$acl_cv_prog_gnu_ld
  12113. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  12114. $as_echo_n "checking for shared library run path origin... " >&6; }
  12115. if test "${acl_cv_rpath+set}" = set; then
  12116. $as_echo_n "(cached) " >&6
  12117. else
  12118. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  12119. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  12120. . ./conftest.sh
  12121. rm -f ./conftest.sh
  12122. acl_cv_rpath=done
  12123. fi
  12124. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  12125. $as_echo "$acl_cv_rpath" >&6; }
  12126. wl="$acl_cv_wl"
  12127. acl_libext="$acl_cv_libext"
  12128. acl_shlibext="$acl_cv_shlibext"
  12129. acl_libname_spec="$acl_cv_libname_spec"
  12130. acl_library_names_spec="$acl_cv_library_names_spec"
  12131. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  12132. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  12133. acl_hardcode_direct="$acl_cv_hardcode_direct"
  12134. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  12135. # Check whether --enable-rpath was given.
  12136. if test "${enable_rpath+set}" = set; then
  12137. enableval=$enable_rpath; :
  12138. else
  12139. enable_rpath=yes
  12140. fi
  12141. acl_libdirstem=lib
  12142. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  12143. if test -n "$searchpath"; then
  12144. acl_save_IFS="${IFS= }"; IFS=":"
  12145. for searchdir in $searchpath; do
  12146. if test -d "$searchdir"; then
  12147. case "$searchdir" in
  12148. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  12149. *) searchdir=`cd "$searchdir" && pwd`
  12150. case "$searchdir" in
  12151. */lib64 ) acl_libdirstem=lib64 ;;
  12152. esac ;;
  12153. esac
  12154. fi
  12155. done
  12156. IFS="$acl_save_IFS"
  12157. fi
  12158. use_additional=yes
  12159. acl_save_prefix="$prefix"
  12160. prefix="$acl_final_prefix"
  12161. acl_save_exec_prefix="$exec_prefix"
  12162. exec_prefix="$acl_final_exec_prefix"
  12163. eval additional_includedir=\"$includedir\"
  12164. eval additional_libdir=\"$libdir\"
  12165. exec_prefix="$acl_save_exec_prefix"
  12166. prefix="$acl_save_prefix"
  12167. # Check whether --with-libiconv-prefix was given.
  12168. if test "${with_libiconv_prefix+set}" = set; then
  12169. withval=$with_libiconv_prefix;
  12170. if test "X$withval" = "Xno"; then
  12171. use_additional=no
  12172. else
  12173. if test "X$withval" = "X"; then
  12174. acl_save_prefix="$prefix"
  12175. prefix="$acl_final_prefix"
  12176. acl_save_exec_prefix="$exec_prefix"
  12177. exec_prefix="$acl_final_exec_prefix"
  12178. eval additional_includedir=\"$includedir\"
  12179. eval additional_libdir=\"$libdir\"
  12180. exec_prefix="$acl_save_exec_prefix"
  12181. prefix="$acl_save_prefix"
  12182. else
  12183. additional_includedir="$withval/include"
  12184. additional_libdir="$withval/$acl_libdirstem"
  12185. fi
  12186. fi
  12187. fi
  12188. LIBICONV=
  12189. LTLIBICONV=
  12190. INCICONV=
  12191. LIBICONV_PREFIX=
  12192. rpathdirs=
  12193. ltrpathdirs=
  12194. names_already_handled=
  12195. names_next_round='iconv '
  12196. while test -n "$names_next_round"; do
  12197. names_this_round="$names_next_round"
  12198. names_next_round=
  12199. for name in $names_this_round; do
  12200. already_handled=
  12201. for n in $names_already_handled; do
  12202. if test "$n" = "$name"; then
  12203. already_handled=yes
  12204. break
  12205. fi
  12206. done
  12207. if test -z "$already_handled"; then
  12208. names_already_handled="$names_already_handled $name"
  12209. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12210. eval value=\"\$HAVE_LIB$uppername\"
  12211. if test -n "$value"; then
  12212. if test "$value" = yes; then
  12213. eval value=\"\$LIB$uppername\"
  12214. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12215. eval value=\"\$LTLIB$uppername\"
  12216. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12217. else
  12218. :
  12219. fi
  12220. else
  12221. found_dir=
  12222. found_la=
  12223. found_so=
  12224. found_a=
  12225. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12226. if test -n "$acl_shlibext"; then
  12227. shrext=".$acl_shlibext" # typically: shrext=.so
  12228. else
  12229. shrext=
  12230. fi
  12231. if test $use_additional = yes; then
  12232. dir="$additional_libdir"
  12233. if test -n "$acl_shlibext"; then
  12234. if test -f "$dir/$libname$shrext"; then
  12235. found_dir="$dir"
  12236. found_so="$dir/$libname$shrext"
  12237. else
  12238. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12239. ver=`(cd "$dir" && \
  12240. for f in "$libname$shrext".*; do echo "$f"; done \
  12241. | sed -e "s,^$libname$shrext\\\\.,," \
  12242. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12243. | sed 1q ) 2>/dev/null`
  12244. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12245. found_dir="$dir"
  12246. found_so="$dir/$libname$shrext.$ver"
  12247. fi
  12248. else
  12249. eval library_names=\"$acl_library_names_spec\"
  12250. for f in $library_names; do
  12251. if test -f "$dir/$f"; then
  12252. found_dir="$dir"
  12253. found_so="$dir/$f"
  12254. break
  12255. fi
  12256. done
  12257. fi
  12258. fi
  12259. fi
  12260. if test "X$found_dir" = "X"; then
  12261. if test -f "$dir/$libname.$acl_libext"; then
  12262. found_dir="$dir"
  12263. found_a="$dir/$libname.$acl_libext"
  12264. fi
  12265. fi
  12266. if test "X$found_dir" != "X"; then
  12267. if test -f "$dir/$libname.la"; then
  12268. found_la="$dir/$libname.la"
  12269. fi
  12270. fi
  12271. fi
  12272. if test "X$found_dir" = "X"; then
  12273. for x in $LDFLAGS $LTLIBICONV; do
  12274. acl_save_prefix="$prefix"
  12275. prefix="$acl_final_prefix"
  12276. acl_save_exec_prefix="$exec_prefix"
  12277. exec_prefix="$acl_final_exec_prefix"
  12278. eval x=\"$x\"
  12279. exec_prefix="$acl_save_exec_prefix"
  12280. prefix="$acl_save_prefix"
  12281. case "$x" in
  12282. -L*)
  12283. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12284. if test -n "$acl_shlibext"; then
  12285. if test -f "$dir/$libname$shrext"; then
  12286. found_dir="$dir"
  12287. found_so="$dir/$libname$shrext"
  12288. else
  12289. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12290. ver=`(cd "$dir" && \
  12291. for f in "$libname$shrext".*; do echo "$f"; done \
  12292. | sed -e "s,^$libname$shrext\\\\.,," \
  12293. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12294. | sed 1q ) 2>/dev/null`
  12295. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12296. found_dir="$dir"
  12297. found_so="$dir/$libname$shrext.$ver"
  12298. fi
  12299. else
  12300. eval library_names=\"$acl_library_names_spec\"
  12301. for f in $library_names; do
  12302. if test -f "$dir/$f"; then
  12303. found_dir="$dir"
  12304. found_so="$dir/$f"
  12305. break
  12306. fi
  12307. done
  12308. fi
  12309. fi
  12310. fi
  12311. if test "X$found_dir" = "X"; then
  12312. if test -f "$dir/$libname.$acl_libext"; then
  12313. found_dir="$dir"
  12314. found_a="$dir/$libname.$acl_libext"
  12315. fi
  12316. fi
  12317. if test "X$found_dir" != "X"; then
  12318. if test -f "$dir/$libname.la"; then
  12319. found_la="$dir/$libname.la"
  12320. fi
  12321. fi
  12322. ;;
  12323. esac
  12324. if test "X$found_dir" != "X"; then
  12325. break
  12326. fi
  12327. done
  12328. fi
  12329. if test "X$found_dir" != "X"; then
  12330. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12331. if test "X$found_so" != "X"; then
  12332. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12333. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12334. else
  12335. haveit=
  12336. for x in $ltrpathdirs; do
  12337. if test "X$x" = "X$found_dir"; then
  12338. haveit=yes
  12339. break
  12340. fi
  12341. done
  12342. if test -z "$haveit"; then
  12343. ltrpathdirs="$ltrpathdirs $found_dir"
  12344. fi
  12345. if test "$acl_hardcode_direct" = yes; then
  12346. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12347. else
  12348. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12349. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12350. haveit=
  12351. for x in $rpathdirs; do
  12352. if test "X$x" = "X$found_dir"; then
  12353. haveit=yes
  12354. break
  12355. fi
  12356. done
  12357. if test -z "$haveit"; then
  12358. rpathdirs="$rpathdirs $found_dir"
  12359. fi
  12360. else
  12361. haveit=
  12362. for x in $LDFLAGS $LIBICONV; do
  12363. acl_save_prefix="$prefix"
  12364. prefix="$acl_final_prefix"
  12365. acl_save_exec_prefix="$exec_prefix"
  12366. exec_prefix="$acl_final_exec_prefix"
  12367. eval x=\"$x\"
  12368. exec_prefix="$acl_save_exec_prefix"
  12369. prefix="$acl_save_prefix"
  12370. if test "X$x" = "X-L$found_dir"; then
  12371. haveit=yes
  12372. break
  12373. fi
  12374. done
  12375. if test -z "$haveit"; then
  12376. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12377. fi
  12378. if test "$acl_hardcode_minus_L" != no; then
  12379. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12380. else
  12381. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12382. fi
  12383. fi
  12384. fi
  12385. fi
  12386. else
  12387. if test "X$found_a" != "X"; then
  12388. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12389. else
  12390. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12391. fi
  12392. fi
  12393. additional_includedir=
  12394. case "$found_dir" in
  12395. */$acl_libdirstem | */$acl_libdirstem/)
  12396. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12397. LIBICONV_PREFIX="$basedir"
  12398. additional_includedir="$basedir/include"
  12399. ;;
  12400. esac
  12401. if test "X$additional_includedir" != "X"; then
  12402. if test "X$additional_includedir" != "X/usr/include"; then
  12403. haveit=
  12404. if test "X$additional_includedir" = "X/usr/local/include"; then
  12405. if test -n "$GCC"; then
  12406. case $host_os in
  12407. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12408. esac
  12409. fi
  12410. fi
  12411. if test -z "$haveit"; then
  12412. for x in $CPPFLAGS $INCICONV; do
  12413. acl_save_prefix="$prefix"
  12414. prefix="$acl_final_prefix"
  12415. acl_save_exec_prefix="$exec_prefix"
  12416. exec_prefix="$acl_final_exec_prefix"
  12417. eval x=\"$x\"
  12418. exec_prefix="$acl_save_exec_prefix"
  12419. prefix="$acl_save_prefix"
  12420. if test "X$x" = "X-I$additional_includedir"; then
  12421. haveit=yes
  12422. break
  12423. fi
  12424. done
  12425. if test -z "$haveit"; then
  12426. if test -d "$additional_includedir"; then
  12427. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12428. fi
  12429. fi
  12430. fi
  12431. fi
  12432. fi
  12433. if test -n "$found_la"; then
  12434. save_libdir="$libdir"
  12435. case "$found_la" in
  12436. */* | *\\*) . "$found_la" ;;
  12437. *) . "./$found_la" ;;
  12438. esac
  12439. libdir="$save_libdir"
  12440. for dep in $dependency_libs; do
  12441. case "$dep" in
  12442. -L*)
  12443. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12444. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12445. haveit=
  12446. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12447. if test -n "$GCC"; then
  12448. case $host_os in
  12449. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12450. esac
  12451. fi
  12452. fi
  12453. if test -z "$haveit"; then
  12454. haveit=
  12455. for x in $LDFLAGS $LIBICONV; do
  12456. acl_save_prefix="$prefix"
  12457. prefix="$acl_final_prefix"
  12458. acl_save_exec_prefix="$exec_prefix"
  12459. exec_prefix="$acl_final_exec_prefix"
  12460. eval x=\"$x\"
  12461. exec_prefix="$acl_save_exec_prefix"
  12462. prefix="$acl_save_prefix"
  12463. if test "X$x" = "X-L$additional_libdir"; then
  12464. haveit=yes
  12465. break
  12466. fi
  12467. done
  12468. if test -z "$haveit"; then
  12469. if test -d "$additional_libdir"; then
  12470. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12471. fi
  12472. fi
  12473. haveit=
  12474. for x in $LDFLAGS $LTLIBICONV; do
  12475. acl_save_prefix="$prefix"
  12476. prefix="$acl_final_prefix"
  12477. acl_save_exec_prefix="$exec_prefix"
  12478. exec_prefix="$acl_final_exec_prefix"
  12479. eval x=\"$x\"
  12480. exec_prefix="$acl_save_exec_prefix"
  12481. prefix="$acl_save_prefix"
  12482. if test "X$x" = "X-L$additional_libdir"; then
  12483. haveit=yes
  12484. break
  12485. fi
  12486. done
  12487. if test -z "$haveit"; then
  12488. if test -d "$additional_libdir"; then
  12489. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12490. fi
  12491. fi
  12492. fi
  12493. fi
  12494. ;;
  12495. -R*)
  12496. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12497. if test "$enable_rpath" != no; then
  12498. haveit=
  12499. for x in $rpathdirs; do
  12500. if test "X$x" = "X$dir"; then
  12501. haveit=yes
  12502. break
  12503. fi
  12504. done
  12505. if test -z "$haveit"; then
  12506. rpathdirs="$rpathdirs $dir"
  12507. fi
  12508. haveit=
  12509. for x in $ltrpathdirs; do
  12510. if test "X$x" = "X$dir"; then
  12511. haveit=yes
  12512. break
  12513. fi
  12514. done
  12515. if test -z "$haveit"; then
  12516. ltrpathdirs="$ltrpathdirs $dir"
  12517. fi
  12518. fi
  12519. ;;
  12520. -l*)
  12521. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12522. ;;
  12523. *.la)
  12524. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12525. ;;
  12526. *)
  12527. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12528. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12529. ;;
  12530. esac
  12531. done
  12532. fi
  12533. else
  12534. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12535. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12536. fi
  12537. fi
  12538. fi
  12539. done
  12540. done
  12541. if test "X$rpathdirs" != "X"; then
  12542. if test -n "$acl_hardcode_libdir_separator"; then
  12543. alldirs=
  12544. for found_dir in $rpathdirs; do
  12545. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12546. done
  12547. acl_save_libdir="$libdir"
  12548. libdir="$alldirs"
  12549. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12550. libdir="$acl_save_libdir"
  12551. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12552. else
  12553. for found_dir in $rpathdirs; do
  12554. acl_save_libdir="$libdir"
  12555. libdir="$found_dir"
  12556. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12557. libdir="$acl_save_libdir"
  12558. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12559. done
  12560. fi
  12561. fi
  12562. if test "X$ltrpathdirs" != "X"; then
  12563. for found_dir in $ltrpathdirs; do
  12564. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12565. done
  12566. fi
  12567. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  12568. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  12569. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  12570. $as_echo_n "(cached) " >&6
  12571. else
  12572. gt_save_LIBS="$LIBS"
  12573. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12574. cat >conftest.$ac_ext <<_ACEOF
  12575. /* confdefs.h. */
  12576. _ACEOF
  12577. cat confdefs.h >>conftest.$ac_ext
  12578. cat >>conftest.$ac_ext <<_ACEOF
  12579. /* end confdefs.h. */
  12580. #include <CoreFoundation/CFPreferences.h>
  12581. int
  12582. main ()
  12583. {
  12584. CFPreferencesCopyAppValue(NULL, NULL)
  12585. ;
  12586. return 0;
  12587. }
  12588. _ACEOF
  12589. rm -f conftest.$ac_objext conftest$ac_exeext
  12590. if { (ac_try="$ac_link"
  12591. case "(($ac_try" in
  12592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12593. *) ac_try_echo=$ac_try;;
  12594. esac
  12595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12596. $as_echo "$ac_try_echo") >&5
  12597. (eval "$ac_link") 2>conftest.er1
  12598. ac_status=$?
  12599. grep -v '^ *+' conftest.er1 >conftest.err
  12600. rm -f conftest.er1
  12601. cat conftest.err >&5
  12602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12603. (exit $ac_status); } && {
  12604. test -z "$ac_c_werror_flag" ||
  12605. test ! -s conftest.err
  12606. } && test -s conftest$ac_exeext && {
  12607. test "$cross_compiling" = yes ||
  12608. $as_test_x conftest$ac_exeext
  12609. }; then
  12610. gt_cv_func_CFPreferencesCopyAppValue=yes
  12611. else
  12612. $as_echo "$as_me: failed program was:" >&5
  12613. sed 's/^/| /' conftest.$ac_ext >&5
  12614. gt_cv_func_CFPreferencesCopyAppValue=no
  12615. fi
  12616. rm -rf conftest.dSYM
  12617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12618. conftest$ac_exeext conftest.$ac_ext
  12619. LIBS="$gt_save_LIBS"
  12620. fi
  12621. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  12622. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12623. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12624. cat >>confdefs.h <<\_ACEOF
  12625. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  12626. _ACEOF
  12627. fi
  12628. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  12629. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  12630. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  12631. $as_echo_n "(cached) " >&6
  12632. else
  12633. gt_save_LIBS="$LIBS"
  12634. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12635. cat >conftest.$ac_ext <<_ACEOF
  12636. /* confdefs.h. */
  12637. _ACEOF
  12638. cat confdefs.h >>conftest.$ac_ext
  12639. cat >>conftest.$ac_ext <<_ACEOF
  12640. /* end confdefs.h. */
  12641. #include <CoreFoundation/CFLocale.h>
  12642. int
  12643. main ()
  12644. {
  12645. CFLocaleCopyCurrent();
  12646. ;
  12647. return 0;
  12648. }
  12649. _ACEOF
  12650. rm -f conftest.$ac_objext conftest$ac_exeext
  12651. if { (ac_try="$ac_link"
  12652. case "(($ac_try" in
  12653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12654. *) ac_try_echo=$ac_try;;
  12655. esac
  12656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12657. $as_echo "$ac_try_echo") >&5
  12658. (eval "$ac_link") 2>conftest.er1
  12659. ac_status=$?
  12660. grep -v '^ *+' conftest.er1 >conftest.err
  12661. rm -f conftest.er1
  12662. cat conftest.err >&5
  12663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12664. (exit $ac_status); } && {
  12665. test -z "$ac_c_werror_flag" ||
  12666. test ! -s conftest.err
  12667. } && test -s conftest$ac_exeext && {
  12668. test "$cross_compiling" = yes ||
  12669. $as_test_x conftest$ac_exeext
  12670. }; then
  12671. gt_cv_func_CFLocaleCopyCurrent=yes
  12672. else
  12673. $as_echo "$as_me: failed program was:" >&5
  12674. sed 's/^/| /' conftest.$ac_ext >&5
  12675. gt_cv_func_CFLocaleCopyCurrent=no
  12676. fi
  12677. rm -rf conftest.dSYM
  12678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12679. conftest$ac_exeext conftest.$ac_ext
  12680. LIBS="$gt_save_LIBS"
  12681. fi
  12682. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12683. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12684. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12685. cat >>confdefs.h <<\_ACEOF
  12686. #define HAVE_CFLOCALECOPYCURRENT 1
  12687. _ACEOF
  12688. fi
  12689. INTL_MACOSX_LIBS=
  12690. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12691. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12692. fi
  12693. LIBINTL=
  12694. LTLIBINTL=
  12695. POSUB=
  12696. case " $gt_needs " in
  12697. *" need-formatstring-macros "*) gt_api_version=3 ;;
  12698. *" need-ngettext "*) gt_api_version=2 ;;
  12699. *) gt_api_version=1 ;;
  12700. esac
  12701. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  12702. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  12703. if test "$USE_NLS" = "yes"; then
  12704. gt_use_preinstalled_gnugettext=no
  12705. if test $gt_api_version -ge 3; then
  12706. gt_revision_test_code='
  12707. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  12708. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  12709. #endif
  12710. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  12711. '
  12712. else
  12713. gt_revision_test_code=
  12714. fi
  12715. if test $gt_api_version -ge 2; then
  12716. gt_expression_test_code=' + * ngettext ("", "", 0)'
  12717. else
  12718. gt_expression_test_code=
  12719. fi
  12720. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  12721. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  12722. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  12723. $as_echo_n "(cached) " >&6
  12724. else
  12725. cat >conftest.$ac_ext <<_ACEOF
  12726. /* confdefs.h. */
  12727. _ACEOF
  12728. cat confdefs.h >>conftest.$ac_ext
  12729. cat >>conftest.$ac_ext <<_ACEOF
  12730. /* end confdefs.h. */
  12731. #include <libintl.h>
  12732. $gt_revision_test_code
  12733. extern int _nl_msg_cat_cntr;
  12734. extern int *_nl_domain_bindings;
  12735. int
  12736. main ()
  12737. {
  12738. bindtextdomain ("", "");
  12739. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  12740. ;
  12741. return 0;
  12742. }
  12743. _ACEOF
  12744. rm -f conftest.$ac_objext conftest$ac_exeext
  12745. if { (ac_try="$ac_link"
  12746. case "(($ac_try" in
  12747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12748. *) ac_try_echo=$ac_try;;
  12749. esac
  12750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12751. $as_echo "$ac_try_echo") >&5
  12752. (eval "$ac_link") 2>conftest.er1
  12753. ac_status=$?
  12754. grep -v '^ *+' conftest.er1 >conftest.err
  12755. rm -f conftest.er1
  12756. cat conftest.err >&5
  12757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12758. (exit $ac_status); } && {
  12759. test -z "$ac_c_werror_flag" ||
  12760. test ! -s conftest.err
  12761. } && test -s conftest$ac_exeext && {
  12762. test "$cross_compiling" = yes ||
  12763. $as_test_x conftest$ac_exeext
  12764. }; then
  12765. eval "$gt_func_gnugettext_libc=yes"
  12766. else
  12767. $as_echo "$as_me: failed program was:" >&5
  12768. sed 's/^/| /' conftest.$ac_ext >&5
  12769. eval "$gt_func_gnugettext_libc=no"
  12770. fi
  12771. rm -rf conftest.dSYM
  12772. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12773. conftest$ac_exeext conftest.$ac_ext
  12774. fi
  12775. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  12776. $as_echo "$as_val"'`
  12777. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12778. $as_echo "$ac_res" >&6; }
  12779. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  12780. am_save_CPPFLAGS="$CPPFLAGS"
  12781. for element in $INCICONV; do
  12782. haveit=
  12783. for x in $CPPFLAGS; do
  12784. acl_save_prefix="$prefix"
  12785. prefix="$acl_final_prefix"
  12786. acl_save_exec_prefix="$exec_prefix"
  12787. exec_prefix="$acl_final_exec_prefix"
  12788. eval x=\"$x\"
  12789. exec_prefix="$acl_save_exec_prefix"
  12790. prefix="$acl_save_prefix"
  12791. if test "X$x" = "X$element"; then
  12792. haveit=yes
  12793. break
  12794. fi
  12795. done
  12796. if test -z "$haveit"; then
  12797. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12798. fi
  12799. done
  12800. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  12801. $as_echo_n "checking for iconv... " >&6; }
  12802. if test "${am_cv_func_iconv+set}" = set; then
  12803. $as_echo_n "(cached) " >&6
  12804. else
  12805. am_cv_func_iconv="no, consider installing GNU libiconv"
  12806. am_cv_lib_iconv=no
  12807. cat >conftest.$ac_ext <<_ACEOF
  12808. /* confdefs.h. */
  12809. _ACEOF
  12810. cat confdefs.h >>conftest.$ac_ext
  12811. cat >>conftest.$ac_ext <<_ACEOF
  12812. /* end confdefs.h. */
  12813. #include <stdlib.h>
  12814. #include <iconv.h>
  12815. int
  12816. main ()
  12817. {
  12818. iconv_t cd = iconv_open("","");
  12819. iconv(cd,NULL,NULL,NULL,NULL);
  12820. iconv_close(cd);
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. rm -f conftest.$ac_objext conftest$ac_exeext
  12826. if { (ac_try="$ac_link"
  12827. case "(($ac_try" in
  12828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12829. *) ac_try_echo=$ac_try;;
  12830. esac
  12831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12832. $as_echo "$ac_try_echo") >&5
  12833. (eval "$ac_link") 2>conftest.er1
  12834. ac_status=$?
  12835. grep -v '^ *+' conftest.er1 >conftest.err
  12836. rm -f conftest.er1
  12837. cat conftest.err >&5
  12838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12839. (exit $ac_status); } && {
  12840. test -z "$ac_c_werror_flag" ||
  12841. test ! -s conftest.err
  12842. } && test -s conftest$ac_exeext && {
  12843. test "$cross_compiling" = yes ||
  12844. $as_test_x conftest$ac_exeext
  12845. }; then
  12846. am_cv_func_iconv=yes
  12847. else
  12848. $as_echo "$as_me: failed program was:" >&5
  12849. sed 's/^/| /' conftest.$ac_ext >&5
  12850. fi
  12851. rm -rf conftest.dSYM
  12852. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12853. conftest$ac_exeext conftest.$ac_ext
  12854. if test "$am_cv_func_iconv" != yes; then
  12855. am_save_LIBS="$LIBS"
  12856. LIBS="$LIBS $LIBICONV"
  12857. cat >conftest.$ac_ext <<_ACEOF
  12858. /* confdefs.h. */
  12859. _ACEOF
  12860. cat confdefs.h >>conftest.$ac_ext
  12861. cat >>conftest.$ac_ext <<_ACEOF
  12862. /* end confdefs.h. */
  12863. #include <stdlib.h>
  12864. #include <iconv.h>
  12865. int
  12866. main ()
  12867. {
  12868. iconv_t cd = iconv_open("","");
  12869. iconv(cd,NULL,NULL,NULL,NULL);
  12870. iconv_close(cd);
  12871. ;
  12872. return 0;
  12873. }
  12874. _ACEOF
  12875. rm -f conftest.$ac_objext conftest$ac_exeext
  12876. if { (ac_try="$ac_link"
  12877. case "(($ac_try" in
  12878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12879. *) ac_try_echo=$ac_try;;
  12880. esac
  12881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12882. $as_echo "$ac_try_echo") >&5
  12883. (eval "$ac_link") 2>conftest.er1
  12884. ac_status=$?
  12885. grep -v '^ *+' conftest.er1 >conftest.err
  12886. rm -f conftest.er1
  12887. cat conftest.err >&5
  12888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12889. (exit $ac_status); } && {
  12890. test -z "$ac_c_werror_flag" ||
  12891. test ! -s conftest.err
  12892. } && test -s conftest$ac_exeext && {
  12893. test "$cross_compiling" = yes ||
  12894. $as_test_x conftest$ac_exeext
  12895. }; then
  12896. am_cv_lib_iconv=yes
  12897. am_cv_func_iconv=yes
  12898. else
  12899. $as_echo "$as_me: failed program was:" >&5
  12900. sed 's/^/| /' conftest.$ac_ext >&5
  12901. fi
  12902. rm -rf conftest.dSYM
  12903. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12904. conftest$ac_exeext conftest.$ac_ext
  12905. LIBS="$am_save_LIBS"
  12906. fi
  12907. fi
  12908. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12909. $as_echo "$am_cv_func_iconv" >&6; }
  12910. if test "$am_cv_func_iconv" = yes; then
  12911. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  12912. $as_echo_n "checking for working iconv... " >&6; }
  12913. if test "${am_cv_func_iconv_works+set}" = set; then
  12914. $as_echo_n "(cached) " >&6
  12915. else
  12916. am_save_LIBS="$LIBS"
  12917. if test $am_cv_lib_iconv = yes; then
  12918. LIBS="$LIBS $LIBICONV"
  12919. fi
  12920. if test "$cross_compiling" = yes; then
  12921. case "$host_os" in
  12922. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12923. *) am_cv_func_iconv_works="guessing yes" ;;
  12924. esac
  12925. else
  12926. cat >conftest.$ac_ext <<_ACEOF
  12927. /* confdefs.h. */
  12928. _ACEOF
  12929. cat confdefs.h >>conftest.$ac_ext
  12930. cat >>conftest.$ac_ext <<_ACEOF
  12931. /* end confdefs.h. */
  12932. #include <iconv.h>
  12933. #include <string.h>
  12934. int main ()
  12935. {
  12936. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12937. returns. */
  12938. {
  12939. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12940. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12941. {
  12942. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12943. char buf[10];
  12944. const char *inptr = input;
  12945. size_t inbytesleft = strlen (input);
  12946. char *outptr = buf;
  12947. size_t outbytesleft = sizeof (buf);
  12948. size_t res = iconv (cd_utf8_to_88591,
  12949. (char **) &inptr, &inbytesleft,
  12950. &outptr, &outbytesleft);
  12951. if (res == 0)
  12952. return 1;
  12953. }
  12954. }
  12955. #if 0 /* This bug could be worked around by the caller. */
  12956. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12957. {
  12958. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12959. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12960. {
  12961. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12962. char buf[50];
  12963. const char *inptr = input;
  12964. size_t inbytesleft = strlen (input);
  12965. char *outptr = buf;
  12966. size_t outbytesleft = sizeof (buf);
  12967. size_t res = iconv (cd_88591_to_utf8,
  12968. (char **) &inptr, &inbytesleft,
  12969. &outptr, &outbytesleft);
  12970. if ((int)res > 0)
  12971. return 1;
  12972. }
  12973. }
  12974. #endif
  12975. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12976. provided. */
  12977. if (/* Try standardized names. */
  12978. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12979. /* Try IRIX, OSF/1 names. */
  12980. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12981. /* Try AIX names. */
  12982. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12983. /* Try HP-UX names. */
  12984. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12985. return 1;
  12986. return 0;
  12987. }
  12988. _ACEOF
  12989. rm -f conftest$ac_exeext
  12990. if { (ac_try="$ac_link"
  12991. case "(($ac_try" in
  12992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12993. *) ac_try_echo=$ac_try;;
  12994. esac
  12995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12996. $as_echo "$ac_try_echo") >&5
  12997. (eval "$ac_link") 2>&5
  12998. ac_status=$?
  12999. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13000. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13001. { (case "(($ac_try" in
  13002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13003. *) ac_try_echo=$ac_try;;
  13004. esac
  13005. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13006. $as_echo "$ac_try_echo") >&5
  13007. (eval "$ac_try") 2>&5
  13008. ac_status=$?
  13009. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13010. (exit $ac_status); }; }; then
  13011. am_cv_func_iconv_works=yes
  13012. else
  13013. $as_echo "$as_me: program exited with status $ac_status" >&5
  13014. $as_echo "$as_me: failed program was:" >&5
  13015. sed 's/^/| /' conftest.$ac_ext >&5
  13016. ( exit $ac_status )
  13017. am_cv_func_iconv_works=no
  13018. fi
  13019. rm -rf conftest.dSYM
  13020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13021. fi
  13022. LIBS="$am_save_LIBS"
  13023. fi
  13024. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13025. $as_echo "$am_cv_func_iconv_works" >&6; }
  13026. case "$am_cv_func_iconv_works" in
  13027. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13028. *) am_func_iconv=yes ;;
  13029. esac
  13030. else
  13031. am_func_iconv=no am_cv_lib_iconv=no
  13032. fi
  13033. if test "$am_func_iconv" = yes; then
  13034. cat >>confdefs.h <<\_ACEOF
  13035. #define HAVE_ICONV 1
  13036. _ACEOF
  13037. fi
  13038. if test "$am_cv_lib_iconv" = yes; then
  13039. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13040. $as_echo_n "checking how to link with libiconv... " >&6; }
  13041. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13042. $as_echo "$LIBICONV" >&6; }
  13043. else
  13044. CPPFLAGS="$am_save_CPPFLAGS"
  13045. LIBICONV=
  13046. LTLIBICONV=
  13047. fi
  13048. use_additional=yes
  13049. acl_save_prefix="$prefix"
  13050. prefix="$acl_final_prefix"
  13051. acl_save_exec_prefix="$exec_prefix"
  13052. exec_prefix="$acl_final_exec_prefix"
  13053. eval additional_includedir=\"$includedir\"
  13054. eval additional_libdir=\"$libdir\"
  13055. exec_prefix="$acl_save_exec_prefix"
  13056. prefix="$acl_save_prefix"
  13057. # Check whether --with-libintl-prefix was given.
  13058. if test "${with_libintl_prefix+set}" = set; then
  13059. withval=$with_libintl_prefix;
  13060. if test "X$withval" = "Xno"; then
  13061. use_additional=no
  13062. else
  13063. if test "X$withval" = "X"; then
  13064. acl_save_prefix="$prefix"
  13065. prefix="$acl_final_prefix"
  13066. acl_save_exec_prefix="$exec_prefix"
  13067. exec_prefix="$acl_final_exec_prefix"
  13068. eval additional_includedir=\"$includedir\"
  13069. eval additional_libdir=\"$libdir\"
  13070. exec_prefix="$acl_save_exec_prefix"
  13071. prefix="$acl_save_prefix"
  13072. else
  13073. additional_includedir="$withval/include"
  13074. additional_libdir="$withval/$acl_libdirstem"
  13075. fi
  13076. fi
  13077. fi
  13078. LIBINTL=
  13079. LTLIBINTL=
  13080. INCINTL=
  13081. LIBINTL_PREFIX=
  13082. rpathdirs=
  13083. ltrpathdirs=
  13084. names_already_handled=
  13085. names_next_round='intl '
  13086. while test -n "$names_next_round"; do
  13087. names_this_round="$names_next_round"
  13088. names_next_round=
  13089. for name in $names_this_round; do
  13090. already_handled=
  13091. for n in $names_already_handled; do
  13092. if test "$n" = "$name"; then
  13093. already_handled=yes
  13094. break
  13095. fi
  13096. done
  13097. if test -z "$already_handled"; then
  13098. names_already_handled="$names_already_handled $name"
  13099. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13100. eval value=\"\$HAVE_LIB$uppername\"
  13101. if test -n "$value"; then
  13102. if test "$value" = yes; then
  13103. eval value=\"\$LIB$uppername\"
  13104. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  13105. eval value=\"\$LTLIB$uppername\"
  13106. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  13107. else
  13108. :
  13109. fi
  13110. else
  13111. found_dir=
  13112. found_la=
  13113. found_so=
  13114. found_a=
  13115. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13116. if test -n "$acl_shlibext"; then
  13117. shrext=".$acl_shlibext" # typically: shrext=.so
  13118. else
  13119. shrext=
  13120. fi
  13121. if test $use_additional = yes; then
  13122. dir="$additional_libdir"
  13123. if test -n "$acl_shlibext"; then
  13124. if test -f "$dir/$libname$shrext"; then
  13125. found_dir="$dir"
  13126. found_so="$dir/$libname$shrext"
  13127. else
  13128. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13129. ver=`(cd "$dir" && \
  13130. for f in "$libname$shrext".*; do echo "$f"; done \
  13131. | sed -e "s,^$libname$shrext\\\\.,," \
  13132. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13133. | sed 1q ) 2>/dev/null`
  13134. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13135. found_dir="$dir"
  13136. found_so="$dir/$libname$shrext.$ver"
  13137. fi
  13138. else
  13139. eval library_names=\"$acl_library_names_spec\"
  13140. for f in $library_names; do
  13141. if test -f "$dir/$f"; then
  13142. found_dir="$dir"
  13143. found_so="$dir/$f"
  13144. break
  13145. fi
  13146. done
  13147. fi
  13148. fi
  13149. fi
  13150. if test "X$found_dir" = "X"; then
  13151. if test -f "$dir/$libname.$acl_libext"; then
  13152. found_dir="$dir"
  13153. found_a="$dir/$libname.$acl_libext"
  13154. fi
  13155. fi
  13156. if test "X$found_dir" != "X"; then
  13157. if test -f "$dir/$libname.la"; then
  13158. found_la="$dir/$libname.la"
  13159. fi
  13160. fi
  13161. fi
  13162. if test "X$found_dir" = "X"; then
  13163. for x in $LDFLAGS $LTLIBINTL; do
  13164. acl_save_prefix="$prefix"
  13165. prefix="$acl_final_prefix"
  13166. acl_save_exec_prefix="$exec_prefix"
  13167. exec_prefix="$acl_final_exec_prefix"
  13168. eval x=\"$x\"
  13169. exec_prefix="$acl_save_exec_prefix"
  13170. prefix="$acl_save_prefix"
  13171. case "$x" in
  13172. -L*)
  13173. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13174. if test -n "$acl_shlibext"; then
  13175. if test -f "$dir/$libname$shrext"; then
  13176. found_dir="$dir"
  13177. found_so="$dir/$libname$shrext"
  13178. else
  13179. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13180. ver=`(cd "$dir" && \
  13181. for f in "$libname$shrext".*; do echo "$f"; done \
  13182. | sed -e "s,^$libname$shrext\\\\.,," \
  13183. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13184. | sed 1q ) 2>/dev/null`
  13185. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13186. found_dir="$dir"
  13187. found_so="$dir/$libname$shrext.$ver"
  13188. fi
  13189. else
  13190. eval library_names=\"$acl_library_names_spec\"
  13191. for f in $library_names; do
  13192. if test -f "$dir/$f"; then
  13193. found_dir="$dir"
  13194. found_so="$dir/$f"
  13195. break
  13196. fi
  13197. done
  13198. fi
  13199. fi
  13200. fi
  13201. if test "X$found_dir" = "X"; then
  13202. if test -f "$dir/$libname.$acl_libext"; then
  13203. found_dir="$dir"
  13204. found_a="$dir/$libname.$acl_libext"
  13205. fi
  13206. fi
  13207. if test "X$found_dir" != "X"; then
  13208. if test -f "$dir/$libname.la"; then
  13209. found_la="$dir/$libname.la"
  13210. fi
  13211. fi
  13212. ;;
  13213. esac
  13214. if test "X$found_dir" != "X"; then
  13215. break
  13216. fi
  13217. done
  13218. fi
  13219. if test "X$found_dir" != "X"; then
  13220. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13221. if test "X$found_so" != "X"; then
  13222. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13223. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13224. else
  13225. haveit=
  13226. for x in $ltrpathdirs; do
  13227. if test "X$x" = "X$found_dir"; then
  13228. haveit=yes
  13229. break
  13230. fi
  13231. done
  13232. if test -z "$haveit"; then
  13233. ltrpathdirs="$ltrpathdirs $found_dir"
  13234. fi
  13235. if test "$acl_hardcode_direct" = yes; then
  13236. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13237. else
  13238. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13239. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13240. haveit=
  13241. for x in $rpathdirs; do
  13242. if test "X$x" = "X$found_dir"; then
  13243. haveit=yes
  13244. break
  13245. fi
  13246. done
  13247. if test -z "$haveit"; then
  13248. rpathdirs="$rpathdirs $found_dir"
  13249. fi
  13250. else
  13251. haveit=
  13252. for x in $LDFLAGS $LIBINTL; do
  13253. acl_save_prefix="$prefix"
  13254. prefix="$acl_final_prefix"
  13255. acl_save_exec_prefix="$exec_prefix"
  13256. exec_prefix="$acl_final_exec_prefix"
  13257. eval x=\"$x\"
  13258. exec_prefix="$acl_save_exec_prefix"
  13259. prefix="$acl_save_prefix"
  13260. if test "X$x" = "X-L$found_dir"; then
  13261. haveit=yes
  13262. break
  13263. fi
  13264. done
  13265. if test -z "$haveit"; then
  13266. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13267. fi
  13268. if test "$acl_hardcode_minus_L" != no; then
  13269. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13270. else
  13271. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13272. fi
  13273. fi
  13274. fi
  13275. fi
  13276. else
  13277. if test "X$found_a" != "X"; then
  13278. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13279. else
  13280. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13281. fi
  13282. fi
  13283. additional_includedir=
  13284. case "$found_dir" in
  13285. */$acl_libdirstem | */$acl_libdirstem/)
  13286. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13287. LIBINTL_PREFIX="$basedir"
  13288. additional_includedir="$basedir/include"
  13289. ;;
  13290. esac
  13291. if test "X$additional_includedir" != "X"; then
  13292. if test "X$additional_includedir" != "X/usr/include"; then
  13293. haveit=
  13294. if test "X$additional_includedir" = "X/usr/local/include"; then
  13295. if test -n "$GCC"; then
  13296. case $host_os in
  13297. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13298. esac
  13299. fi
  13300. fi
  13301. if test -z "$haveit"; then
  13302. for x in $CPPFLAGS $INCINTL; do
  13303. acl_save_prefix="$prefix"
  13304. prefix="$acl_final_prefix"
  13305. acl_save_exec_prefix="$exec_prefix"
  13306. exec_prefix="$acl_final_exec_prefix"
  13307. eval x=\"$x\"
  13308. exec_prefix="$acl_save_exec_prefix"
  13309. prefix="$acl_save_prefix"
  13310. if test "X$x" = "X-I$additional_includedir"; then
  13311. haveit=yes
  13312. break
  13313. fi
  13314. done
  13315. if test -z "$haveit"; then
  13316. if test -d "$additional_includedir"; then
  13317. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13318. fi
  13319. fi
  13320. fi
  13321. fi
  13322. fi
  13323. if test -n "$found_la"; then
  13324. save_libdir="$libdir"
  13325. case "$found_la" in
  13326. */* | *\\*) . "$found_la" ;;
  13327. *) . "./$found_la" ;;
  13328. esac
  13329. libdir="$save_libdir"
  13330. for dep in $dependency_libs; do
  13331. case "$dep" in
  13332. -L*)
  13333. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13334. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13335. haveit=
  13336. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13337. if test -n "$GCC"; then
  13338. case $host_os in
  13339. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13340. esac
  13341. fi
  13342. fi
  13343. if test -z "$haveit"; then
  13344. haveit=
  13345. for x in $LDFLAGS $LIBINTL; do
  13346. acl_save_prefix="$prefix"
  13347. prefix="$acl_final_prefix"
  13348. acl_save_exec_prefix="$exec_prefix"
  13349. exec_prefix="$acl_final_exec_prefix"
  13350. eval x=\"$x\"
  13351. exec_prefix="$acl_save_exec_prefix"
  13352. prefix="$acl_save_prefix"
  13353. if test "X$x" = "X-L$additional_libdir"; then
  13354. haveit=yes
  13355. break
  13356. fi
  13357. done
  13358. if test -z "$haveit"; then
  13359. if test -d "$additional_libdir"; then
  13360. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  13361. fi
  13362. fi
  13363. haveit=
  13364. for x in $LDFLAGS $LTLIBINTL; do
  13365. acl_save_prefix="$prefix"
  13366. prefix="$acl_final_prefix"
  13367. acl_save_exec_prefix="$exec_prefix"
  13368. exec_prefix="$acl_final_exec_prefix"
  13369. eval x=\"$x\"
  13370. exec_prefix="$acl_save_exec_prefix"
  13371. prefix="$acl_save_prefix"
  13372. if test "X$x" = "X-L$additional_libdir"; then
  13373. haveit=yes
  13374. break
  13375. fi
  13376. done
  13377. if test -z "$haveit"; then
  13378. if test -d "$additional_libdir"; then
  13379. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  13380. fi
  13381. fi
  13382. fi
  13383. fi
  13384. ;;
  13385. -R*)
  13386. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13387. if test "$enable_rpath" != no; then
  13388. haveit=
  13389. for x in $rpathdirs; do
  13390. if test "X$x" = "X$dir"; then
  13391. haveit=yes
  13392. break
  13393. fi
  13394. done
  13395. if test -z "$haveit"; then
  13396. rpathdirs="$rpathdirs $dir"
  13397. fi
  13398. haveit=
  13399. for x in $ltrpathdirs; do
  13400. if test "X$x" = "X$dir"; then
  13401. haveit=yes
  13402. break
  13403. fi
  13404. done
  13405. if test -z "$haveit"; then
  13406. ltrpathdirs="$ltrpathdirs $dir"
  13407. fi
  13408. fi
  13409. ;;
  13410. -l*)
  13411. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13412. ;;
  13413. *.la)
  13414. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13415. ;;
  13416. *)
  13417. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  13418. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  13419. ;;
  13420. esac
  13421. done
  13422. fi
  13423. else
  13424. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13425. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  13426. fi
  13427. fi
  13428. fi
  13429. done
  13430. done
  13431. if test "X$rpathdirs" != "X"; then
  13432. if test -n "$acl_hardcode_libdir_separator"; then
  13433. alldirs=
  13434. for found_dir in $rpathdirs; do
  13435. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13436. done
  13437. acl_save_libdir="$libdir"
  13438. libdir="$alldirs"
  13439. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13440. libdir="$acl_save_libdir"
  13441. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13442. else
  13443. for found_dir in $rpathdirs; do
  13444. acl_save_libdir="$libdir"
  13445. libdir="$found_dir"
  13446. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13447. libdir="$acl_save_libdir"
  13448. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13449. done
  13450. fi
  13451. fi
  13452. if test "X$ltrpathdirs" != "X"; then
  13453. for found_dir in $ltrpathdirs; do
  13454. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  13455. done
  13456. fi
  13457. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  13458. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  13459. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  13460. $as_echo_n "(cached) " >&6
  13461. else
  13462. gt_save_CPPFLAGS="$CPPFLAGS"
  13463. CPPFLAGS="$CPPFLAGS $INCINTL"
  13464. gt_save_LIBS="$LIBS"
  13465. LIBS="$LIBS $LIBINTL"
  13466. cat >conftest.$ac_ext <<_ACEOF
  13467. /* confdefs.h. */
  13468. _ACEOF
  13469. cat confdefs.h >>conftest.$ac_ext
  13470. cat >>conftest.$ac_ext <<_ACEOF
  13471. /* end confdefs.h. */
  13472. #include <libintl.h>
  13473. $gt_revision_test_code
  13474. extern int _nl_msg_cat_cntr;
  13475. extern
  13476. #ifdef __cplusplus
  13477. "C"
  13478. #endif
  13479. const char *_nl_expand_alias (const char *);
  13480. int
  13481. main ()
  13482. {
  13483. bindtextdomain ("", "");
  13484. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13485. ;
  13486. return 0;
  13487. }
  13488. _ACEOF
  13489. rm -f conftest.$ac_objext conftest$ac_exeext
  13490. if { (ac_try="$ac_link"
  13491. case "(($ac_try" in
  13492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13493. *) ac_try_echo=$ac_try;;
  13494. esac
  13495. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13496. $as_echo "$ac_try_echo") >&5
  13497. (eval "$ac_link") 2>conftest.er1
  13498. ac_status=$?
  13499. grep -v '^ *+' conftest.er1 >conftest.err
  13500. rm -f conftest.er1
  13501. cat conftest.err >&5
  13502. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13503. (exit $ac_status); } && {
  13504. test -z "$ac_c_werror_flag" ||
  13505. test ! -s conftest.err
  13506. } && test -s conftest$ac_exeext && {
  13507. test "$cross_compiling" = yes ||
  13508. $as_test_x conftest$ac_exeext
  13509. }; then
  13510. eval "$gt_func_gnugettext_libintl=yes"
  13511. else
  13512. $as_echo "$as_me: failed program was:" >&5
  13513. sed 's/^/| /' conftest.$ac_ext >&5
  13514. eval "$gt_func_gnugettext_libintl=no"
  13515. fi
  13516. rm -rf conftest.dSYM
  13517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13518. conftest$ac_exeext conftest.$ac_ext
  13519. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  13520. LIBS="$LIBS $LIBICONV"
  13521. cat >conftest.$ac_ext <<_ACEOF
  13522. /* confdefs.h. */
  13523. _ACEOF
  13524. cat confdefs.h >>conftest.$ac_ext
  13525. cat >>conftest.$ac_ext <<_ACEOF
  13526. /* end confdefs.h. */
  13527. #include <libintl.h>
  13528. $gt_revision_test_code
  13529. extern int _nl_msg_cat_cntr;
  13530. extern
  13531. #ifdef __cplusplus
  13532. "C"
  13533. #endif
  13534. const char *_nl_expand_alias (const char *);
  13535. int
  13536. main ()
  13537. {
  13538. bindtextdomain ("", "");
  13539. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13540. ;
  13541. return 0;
  13542. }
  13543. _ACEOF
  13544. rm -f conftest.$ac_objext conftest$ac_exeext
  13545. if { (ac_try="$ac_link"
  13546. case "(($ac_try" in
  13547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13548. *) ac_try_echo=$ac_try;;
  13549. esac
  13550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13551. $as_echo "$ac_try_echo") >&5
  13552. (eval "$ac_link") 2>conftest.er1
  13553. ac_status=$?
  13554. grep -v '^ *+' conftest.er1 >conftest.err
  13555. rm -f conftest.er1
  13556. cat conftest.err >&5
  13557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13558. (exit $ac_status); } && {
  13559. test -z "$ac_c_werror_flag" ||
  13560. test ! -s conftest.err
  13561. } && test -s conftest$ac_exeext && {
  13562. test "$cross_compiling" = yes ||
  13563. $as_test_x conftest$ac_exeext
  13564. }; then
  13565. LIBINTL="$LIBINTL $LIBICONV"
  13566. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  13567. eval "$gt_func_gnugettext_libintl=yes"
  13568. else
  13569. $as_echo "$as_me: failed program was:" >&5
  13570. sed 's/^/| /' conftest.$ac_ext >&5
  13571. fi
  13572. rm -rf conftest.dSYM
  13573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13574. conftest$ac_exeext conftest.$ac_ext
  13575. fi
  13576. CPPFLAGS="$gt_save_CPPFLAGS"
  13577. LIBS="$gt_save_LIBS"
  13578. fi
  13579. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  13580. $as_echo "$as_val"'`
  13581. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13582. $as_echo "$ac_res" >&6; }
  13583. fi
  13584. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  13585. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  13586. && test "$PACKAGE" != gettext-runtime \
  13587. && test "$PACKAGE" != gettext-tools; }; then
  13588. gt_use_preinstalled_gnugettext=yes
  13589. else
  13590. LIBINTL=
  13591. LTLIBINTL=
  13592. INCINTL=
  13593. fi
  13594. if test -n "$INTL_MACOSX_LIBS"; then
  13595. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13596. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13597. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  13598. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  13599. fi
  13600. fi
  13601. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13602. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13603. cat >>confdefs.h <<\_ACEOF
  13604. #define ENABLE_NLS 1
  13605. _ACEOF
  13606. else
  13607. USE_NLS=no
  13608. fi
  13609. fi
  13610. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  13611. $as_echo_n "checking whether to use NLS... " >&6; }
  13612. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  13613. $as_echo "$USE_NLS" >&6; }
  13614. if test "$USE_NLS" = "yes"; then
  13615. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  13616. $as_echo_n "checking where the gettext function comes from... " >&6; }
  13617. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13618. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13619. gt_source="external libintl"
  13620. else
  13621. gt_source="libc"
  13622. fi
  13623. else
  13624. gt_source="included intl directory"
  13625. fi
  13626. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  13627. $as_echo "$gt_source" >&6; }
  13628. fi
  13629. if test "$USE_NLS" = "yes"; then
  13630. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13631. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13632. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  13633. $as_echo_n "checking how to link with libintl... " >&6; }
  13634. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  13635. $as_echo "$LIBINTL" >&6; }
  13636. for element in $INCINTL; do
  13637. haveit=
  13638. for x in $CPPFLAGS; do
  13639. acl_save_prefix="$prefix"
  13640. prefix="$acl_final_prefix"
  13641. acl_save_exec_prefix="$exec_prefix"
  13642. exec_prefix="$acl_final_exec_prefix"
  13643. eval x=\"$x\"
  13644. exec_prefix="$acl_save_exec_prefix"
  13645. prefix="$acl_save_prefix"
  13646. if test "X$x" = "X$element"; then
  13647. haveit=yes
  13648. break
  13649. fi
  13650. done
  13651. if test -z "$haveit"; then
  13652. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13653. fi
  13654. done
  13655. fi
  13656. cat >>confdefs.h <<\_ACEOF
  13657. #define HAVE_GETTEXT 1
  13658. _ACEOF
  13659. cat >>confdefs.h <<\_ACEOF
  13660. #define HAVE_DCGETTEXT 1
  13661. _ACEOF
  13662. fi
  13663. POSUB=po
  13664. fi
  13665. INTLLIBS="$LIBINTL"
  13666. am_save_CPPFLAGS="$CPPFLAGS"
  13667. for element in $INCICONV; do
  13668. haveit=
  13669. for x in $CPPFLAGS; do
  13670. acl_save_prefix="$prefix"
  13671. prefix="$acl_final_prefix"
  13672. acl_save_exec_prefix="$exec_prefix"
  13673. exec_prefix="$acl_final_exec_prefix"
  13674. eval x=\"$x\"
  13675. exec_prefix="$acl_save_exec_prefix"
  13676. prefix="$acl_save_prefix"
  13677. if test "X$x" = "X$element"; then
  13678. haveit=yes
  13679. break
  13680. fi
  13681. done
  13682. if test -z "$haveit"; then
  13683. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13684. fi
  13685. done
  13686. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13687. $as_echo_n "checking for iconv... " >&6; }
  13688. if test "${am_cv_func_iconv+set}" = set; then
  13689. $as_echo_n "(cached) " >&6
  13690. else
  13691. am_cv_func_iconv="no, consider installing GNU libiconv"
  13692. am_cv_lib_iconv=no
  13693. cat >conftest.$ac_ext <<_ACEOF
  13694. /* confdefs.h. */
  13695. _ACEOF
  13696. cat confdefs.h >>conftest.$ac_ext
  13697. cat >>conftest.$ac_ext <<_ACEOF
  13698. /* end confdefs.h. */
  13699. #include <stdlib.h>
  13700. #include <iconv.h>
  13701. int
  13702. main ()
  13703. {
  13704. iconv_t cd = iconv_open("","");
  13705. iconv(cd,NULL,NULL,NULL,NULL);
  13706. iconv_close(cd);
  13707. ;
  13708. return 0;
  13709. }
  13710. _ACEOF
  13711. rm -f conftest.$ac_objext conftest$ac_exeext
  13712. if { (ac_try="$ac_link"
  13713. case "(($ac_try" in
  13714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13715. *) ac_try_echo=$ac_try;;
  13716. esac
  13717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13718. $as_echo "$ac_try_echo") >&5
  13719. (eval "$ac_link") 2>conftest.er1
  13720. ac_status=$?
  13721. grep -v '^ *+' conftest.er1 >conftest.err
  13722. rm -f conftest.er1
  13723. cat conftest.err >&5
  13724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13725. (exit $ac_status); } && {
  13726. test -z "$ac_c_werror_flag" ||
  13727. test ! -s conftest.err
  13728. } && test -s conftest$ac_exeext && {
  13729. test "$cross_compiling" = yes ||
  13730. $as_test_x conftest$ac_exeext
  13731. }; then
  13732. am_cv_func_iconv=yes
  13733. else
  13734. $as_echo "$as_me: failed program was:" >&5
  13735. sed 's/^/| /' conftest.$ac_ext >&5
  13736. fi
  13737. rm -rf conftest.dSYM
  13738. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13739. conftest$ac_exeext conftest.$ac_ext
  13740. if test "$am_cv_func_iconv" != yes; then
  13741. am_save_LIBS="$LIBS"
  13742. LIBS="$LIBS $LIBICONV"
  13743. cat >conftest.$ac_ext <<_ACEOF
  13744. /* confdefs.h. */
  13745. _ACEOF
  13746. cat confdefs.h >>conftest.$ac_ext
  13747. cat >>conftest.$ac_ext <<_ACEOF
  13748. /* end confdefs.h. */
  13749. #include <stdlib.h>
  13750. #include <iconv.h>
  13751. int
  13752. main ()
  13753. {
  13754. iconv_t cd = iconv_open("","");
  13755. iconv(cd,NULL,NULL,NULL,NULL);
  13756. iconv_close(cd);
  13757. ;
  13758. return 0;
  13759. }
  13760. _ACEOF
  13761. rm -f conftest.$ac_objext conftest$ac_exeext
  13762. if { (ac_try="$ac_link"
  13763. case "(($ac_try" in
  13764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13765. *) ac_try_echo=$ac_try;;
  13766. esac
  13767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13768. $as_echo "$ac_try_echo") >&5
  13769. (eval "$ac_link") 2>conftest.er1
  13770. ac_status=$?
  13771. grep -v '^ *+' conftest.er1 >conftest.err
  13772. rm -f conftest.er1
  13773. cat conftest.err >&5
  13774. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13775. (exit $ac_status); } && {
  13776. test -z "$ac_c_werror_flag" ||
  13777. test ! -s conftest.err
  13778. } && test -s conftest$ac_exeext && {
  13779. test "$cross_compiling" = yes ||
  13780. $as_test_x conftest$ac_exeext
  13781. }; then
  13782. am_cv_lib_iconv=yes
  13783. am_cv_func_iconv=yes
  13784. else
  13785. $as_echo "$as_me: failed program was:" >&5
  13786. sed 's/^/| /' conftest.$ac_ext >&5
  13787. fi
  13788. rm -rf conftest.dSYM
  13789. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13790. conftest$ac_exeext conftest.$ac_ext
  13791. LIBS="$am_save_LIBS"
  13792. fi
  13793. fi
  13794. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13795. $as_echo "$am_cv_func_iconv" >&6; }
  13796. if test "$am_cv_func_iconv" = yes; then
  13797. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13798. $as_echo_n "checking for working iconv... " >&6; }
  13799. if test "${am_cv_func_iconv_works+set}" = set; then
  13800. $as_echo_n "(cached) " >&6
  13801. else
  13802. am_save_LIBS="$LIBS"
  13803. if test $am_cv_lib_iconv = yes; then
  13804. LIBS="$LIBS $LIBICONV"
  13805. fi
  13806. if test "$cross_compiling" = yes; then
  13807. case "$host_os" in
  13808. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13809. *) am_cv_func_iconv_works="guessing yes" ;;
  13810. esac
  13811. else
  13812. cat >conftest.$ac_ext <<_ACEOF
  13813. /* confdefs.h. */
  13814. _ACEOF
  13815. cat confdefs.h >>conftest.$ac_ext
  13816. cat >>conftest.$ac_ext <<_ACEOF
  13817. /* end confdefs.h. */
  13818. #include <iconv.h>
  13819. #include <string.h>
  13820. int main ()
  13821. {
  13822. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13823. returns. */
  13824. {
  13825. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13826. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13827. {
  13828. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13829. char buf[10];
  13830. const char *inptr = input;
  13831. size_t inbytesleft = strlen (input);
  13832. char *outptr = buf;
  13833. size_t outbytesleft = sizeof (buf);
  13834. size_t res = iconv (cd_utf8_to_88591,
  13835. (char **) &inptr, &inbytesleft,
  13836. &outptr, &outbytesleft);
  13837. if (res == 0)
  13838. return 1;
  13839. }
  13840. }
  13841. #if 0 /* This bug could be worked around by the caller. */
  13842. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13843. {
  13844. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13845. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13846. {
  13847. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13848. char buf[50];
  13849. const char *inptr = input;
  13850. size_t inbytesleft = strlen (input);
  13851. char *outptr = buf;
  13852. size_t outbytesleft = sizeof (buf);
  13853. size_t res = iconv (cd_88591_to_utf8,
  13854. (char **) &inptr, &inbytesleft,
  13855. &outptr, &outbytesleft);
  13856. if ((int)res > 0)
  13857. return 1;
  13858. }
  13859. }
  13860. #endif
  13861. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13862. provided. */
  13863. if (/* Try standardized names. */
  13864. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13865. /* Try IRIX, OSF/1 names. */
  13866. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13867. /* Try AIX names. */
  13868. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13869. /* Try HP-UX names. */
  13870. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13871. return 1;
  13872. return 0;
  13873. }
  13874. _ACEOF
  13875. rm -f conftest$ac_exeext
  13876. if { (ac_try="$ac_link"
  13877. case "(($ac_try" in
  13878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13879. *) ac_try_echo=$ac_try;;
  13880. esac
  13881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13882. $as_echo "$ac_try_echo") >&5
  13883. (eval "$ac_link") 2>&5
  13884. ac_status=$?
  13885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13886. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13887. { (case "(($ac_try" in
  13888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13889. *) ac_try_echo=$ac_try;;
  13890. esac
  13891. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13892. $as_echo "$ac_try_echo") >&5
  13893. (eval "$ac_try") 2>&5
  13894. ac_status=$?
  13895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13896. (exit $ac_status); }; }; then
  13897. am_cv_func_iconv_works=yes
  13898. else
  13899. $as_echo "$as_me: program exited with status $ac_status" >&5
  13900. $as_echo "$as_me: failed program was:" >&5
  13901. sed 's/^/| /' conftest.$ac_ext >&5
  13902. ( exit $ac_status )
  13903. am_cv_func_iconv_works=no
  13904. fi
  13905. rm -rf conftest.dSYM
  13906. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13907. fi
  13908. LIBS="$am_save_LIBS"
  13909. fi
  13910. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13911. $as_echo "$am_cv_func_iconv_works" >&6; }
  13912. case "$am_cv_func_iconv_works" in
  13913. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13914. *) am_func_iconv=yes ;;
  13915. esac
  13916. else
  13917. am_func_iconv=no am_cv_lib_iconv=no
  13918. fi
  13919. if test "$am_func_iconv" = yes; then
  13920. cat >>confdefs.h <<\_ACEOF
  13921. #define HAVE_ICONV 1
  13922. _ACEOF
  13923. fi
  13924. if test "$am_cv_lib_iconv" = yes; then
  13925. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13926. $as_echo_n "checking how to link with libiconv... " >&6; }
  13927. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13928. $as_echo "$LIBICONV" >&6; }
  13929. else
  13930. CPPFLAGS="$am_save_CPPFLAGS"
  13931. LIBICONV=
  13932. LTLIBICONV=
  13933. fi
  13934. popt_sysconfdir="${sysconfdir}"
  13935. eval "popt_sysconfdir=\"${popt_sysconfdir}\"" # expand contained ${prefix}
  13936. cat >>confdefs.h <<_ACEOF
  13937. #define POPT_SYSCONFDIR "$popt_sysconfdir"
  13938. _ACEOF
  13939. # Define a (hope) portable Libs pkgconfig directive that
  13940. # - Don't harm if the default library search path include ${libdir}
  13941. # (https://bugzilla.novell.com/show_bug.cgi?id=529921)
  13942. # - Don't require a not upstream patch to pkgconfig
  13943. # (https://bugs.freedesktop.org/show_bug.cgi?id=16095)
  13944. popt_pkgconfig_libs='-L${libdir} -lpopt'
  13945. case "${host}" in
  13946. *-*-linux*)
  13947. case "${libdir}" in
  13948. /usr/lib|/usr/lib64|/lib|/lib64)
  13949. popt_pkgconfig_libs='-lpopt'
  13950. ;;
  13951. *)
  13952. popt_pkgconfig_libs='-L${libdir} -lpopt'
  13953. ;;
  13954. esac
  13955. ;;
  13956. *-*-gnu*)
  13957. case "${libdir}" in
  13958. /usr/lib|/usr/lib64|/lib|/lib64)
  13959. popt_pkgconfig_libs='-lpopt'
  13960. ;;
  13961. *)
  13962. popt_pkgconfig_libs='-L${libdir} -lpopt'
  13963. ;;
  13964. esac
  13965. ;;
  13966. esac
  13967. POPT_PKGCONFIG_LIBS="$popt_pkgconfig_libs"
  13968. POPT_SOURCE_PATH="`pwd`"
  13969. cat >>confdefs.h <<_ACEOF
  13970. #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
  13971. _ACEOF
  13972. subdirs="$subdirs "
  13973. ac_config_files="$ac_config_files po/Makefile.in m4/Makefile Doxyfile Makefile popt.pc popt.spec test-poptrc auto/Makefile auto/desc auto/types"
  13974. cat >confcache <<\_ACEOF
  13975. # This file is a shell script that caches the results of configure
  13976. # tests run on this system so they can be shared between configure
  13977. # scripts and configure runs, see configure's option --config-cache.
  13978. # It is not useful on other systems. If it contains results you don't
  13979. # want to keep, you may remove or edit it.
  13980. #
  13981. # config.status only pays attention to the cache file if you give it
  13982. # the --recheck option to rerun configure.
  13983. #
  13984. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13985. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13986. # following values.
  13987. _ACEOF
  13988. # The following way of writing the cache mishandles newlines in values,
  13989. # but we know of no workaround that is simple, portable, and efficient.
  13990. # So, we kill variables containing newlines.
  13991. # Ultrix sh set writes to stderr and can't be redirected directly,
  13992. # and sets the high bit in the cache file unless we assign to the vars.
  13993. (
  13994. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13995. eval ac_val=\$$ac_var
  13996. case $ac_val in #(
  13997. *${as_nl}*)
  13998. case $ac_var in #(
  13999. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  14000. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14001. esac
  14002. case $ac_var in #(
  14003. _ | IFS | as_nl) ;; #(
  14004. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14005. *) $as_unset $ac_var ;;
  14006. esac ;;
  14007. esac
  14008. done
  14009. (set) 2>&1 |
  14010. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14011. *${as_nl}ac_space=\ *)
  14012. # `set' does not quote correctly, so add quotes (double-quote
  14013. # substitution turns \\\\ into \\, and sed turns \\ into \).
  14014. sed -n \
  14015. "s/'/'\\\\''/g;
  14016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14017. ;; #(
  14018. *)
  14019. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14021. ;;
  14022. esac |
  14023. sort
  14024. ) |
  14025. sed '
  14026. /^ac_cv_env_/b end
  14027. t clear
  14028. :clear
  14029. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14030. t end
  14031. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14032. :end' >>confcache
  14033. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14034. if test -w "$cache_file"; then
  14035. test "x$cache_file" != "x/dev/null" &&
  14036. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  14037. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14038. cat confcache >$cache_file
  14039. else
  14040. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  14041. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14042. fi
  14043. fi
  14044. rm -f confcache
  14045. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14046. # Let make expand exec_prefix.
  14047. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14048. DEFS=-DHAVE_CONFIG_H
  14049. ac_libobjs=
  14050. ac_ltlibobjs=
  14051. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14052. # 1. Remove the extension, and $U if already installed.
  14053. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14054. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14055. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14056. # will be set to the directory where LIBOBJS objects are built.
  14057. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14058. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  14059. done
  14060. LIBOBJS=$ac_libobjs
  14061. LTLIBOBJS=$ac_ltlibobjs
  14062. if test -n "$EXEEXT"; then
  14063. am__EXEEXT_TRUE=
  14064. am__EXEEXT_FALSE='#'
  14065. else
  14066. am__EXEEXT_TRUE='#'
  14067. am__EXEEXT_FALSE=
  14068. fi
  14069. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14070. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  14071. Usually this means the macro was only invoked conditionally." >&5
  14072. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  14073. Usually this means the macro was only invoked conditionally." >&2;}
  14074. { (exit 1); exit 1; }; }
  14075. fi
  14076. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14077. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  14078. Usually this means the macro was only invoked conditionally." >&5
  14079. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  14080. Usually this means the macro was only invoked conditionally." >&2;}
  14081. { (exit 1); exit 1; }; }
  14082. fi
  14083. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14084. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14085. Usually this means the macro was only invoked conditionally." >&5
  14086. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14087. Usually this means the macro was only invoked conditionally." >&2;}
  14088. { (exit 1); exit 1; }; }
  14089. fi
  14090. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14091. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14092. Usually this means the macro was only invoked conditionally." >&5
  14093. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14094. Usually this means the macro was only invoked conditionally." >&2;}
  14095. { (exit 1); exit 1; }; }
  14096. fi
  14097. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  14098. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  14099. Usually this means the macro was only invoked conditionally." >&5
  14100. $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  14101. Usually this means the macro was only invoked conditionally." >&2;}
  14102. { (exit 1); exit 1; }; }
  14103. fi
  14104. : ${CONFIG_STATUS=./config.status}
  14105. ac_write_fail=0
  14106. ac_clean_files_save=$ac_clean_files
  14107. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14108. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  14109. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14110. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14111. #! $SHELL
  14112. # Generated by $as_me.
  14113. # Run this file to recreate the current configuration.
  14114. # Compiler output produced by configure, useful for debugging
  14115. # configure, is in config.log if it exists.
  14116. debug=false
  14117. ac_cs_recheck=false
  14118. ac_cs_silent=false
  14119. SHELL=\${CONFIG_SHELL-$SHELL}
  14120. _ACEOF
  14121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14122. ## --------------------- ##
  14123. ## M4sh Initialization. ##
  14124. ## --------------------- ##
  14125. # Be more Bourne compatible
  14126. DUALCASE=1; export DUALCASE # for MKS sh
  14127. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14128. emulate sh
  14129. NULLCMD=:
  14130. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14131. # is contrary to our usage. Disable this feature.
  14132. alias -g '${1+"$@"}'='"$@"'
  14133. setopt NO_GLOB_SUBST
  14134. else
  14135. case `(set -o) 2>/dev/null` in
  14136. *posix*) set -o posix ;;
  14137. esac
  14138. fi
  14139. # PATH needs CR
  14140. # Avoid depending upon Character Ranges.
  14141. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14142. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14143. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14144. as_cr_digits='0123456789'
  14145. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14146. as_nl='
  14147. '
  14148. export as_nl
  14149. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14150. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14151. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14152. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14153. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14154. as_echo='printf %s\n'
  14155. as_echo_n='printf %s'
  14156. else
  14157. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14158. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14159. as_echo_n='/usr/ucb/echo -n'
  14160. else
  14161. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14162. as_echo_n_body='eval
  14163. arg=$1;
  14164. case $arg in
  14165. *"$as_nl"*)
  14166. expr "X$arg" : "X\\(.*\\)$as_nl";
  14167. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14168. esac;
  14169. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14170. '
  14171. export as_echo_n_body
  14172. as_echo_n='sh -c $as_echo_n_body as_echo'
  14173. fi
  14174. export as_echo_body
  14175. as_echo='sh -c $as_echo_body as_echo'
  14176. fi
  14177. # The user is always right.
  14178. if test "${PATH_SEPARATOR+set}" != set; then
  14179. PATH_SEPARATOR=:
  14180. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14181. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14182. PATH_SEPARATOR=';'
  14183. }
  14184. fi
  14185. # Support unset when possible.
  14186. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14187. as_unset=unset
  14188. else
  14189. as_unset=false
  14190. fi
  14191. # IFS
  14192. # We need space, tab and new line, in precisely that order. Quoting is
  14193. # there to prevent editors from complaining about space-tab.
  14194. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14195. # splitting by setting IFS to empty value.)
  14196. IFS=" "" $as_nl"
  14197. # Find who we are. Look in the path if we contain no directory separator.
  14198. case $0 in
  14199. *[\\/]* ) as_myself=$0 ;;
  14200. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14201. for as_dir in $PATH
  14202. do
  14203. IFS=$as_save_IFS
  14204. test -z "$as_dir" && as_dir=.
  14205. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14206. done
  14207. IFS=$as_save_IFS
  14208. ;;
  14209. esac
  14210. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14211. # in which case we are not to be found in the path.
  14212. if test "x$as_myself" = x; then
  14213. as_myself=$0
  14214. fi
  14215. if test ! -f "$as_myself"; then
  14216. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14217. { (exit 1); exit 1; }
  14218. fi
  14219. # Work around bugs in pre-3.0 UWIN ksh.
  14220. for as_var in ENV MAIL MAILPATH
  14221. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14222. done
  14223. PS1='$ '
  14224. PS2='> '
  14225. PS4='+ '
  14226. # NLS nuisances.
  14227. LC_ALL=C
  14228. export LC_ALL
  14229. LANGUAGE=C
  14230. export LANGUAGE
  14231. # Required to use basename.
  14232. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14233. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14234. as_expr=expr
  14235. else
  14236. as_expr=false
  14237. fi
  14238. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14239. as_basename=basename
  14240. else
  14241. as_basename=false
  14242. fi
  14243. # Name of the executable.
  14244. as_me=`$as_basename -- "$0" ||
  14245. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14246. X"$0" : 'X\(//\)$' \| \
  14247. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14248. $as_echo X/"$0" |
  14249. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14250. s//\1/
  14251. q
  14252. }
  14253. /^X\/\(\/\/\)$/{
  14254. s//\1/
  14255. q
  14256. }
  14257. /^X\/\(\/\).*/{
  14258. s//\1/
  14259. q
  14260. }
  14261. s/.*/./; q'`
  14262. # CDPATH.
  14263. $as_unset CDPATH
  14264. as_lineno_1=$LINENO
  14265. as_lineno_2=$LINENO
  14266. test "x$as_lineno_1" != "x$as_lineno_2" &&
  14267. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  14268. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  14269. # uniformly replaced by the line number. The first 'sed' inserts a
  14270. # line-number line after each line using $LINENO; the second 'sed'
  14271. # does the real work. The second script uses 'N' to pair each
  14272. # line-number line with the line containing $LINENO, and appends
  14273. # trailing '-' during substitution so that $LINENO is not a special
  14274. # case at line end.
  14275. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  14276. # scripts with optimization help from Paolo Bonzini. Blame Lee
  14277. # E. McMahon (1931-1989) for sed's syntax. :-)
  14278. sed -n '
  14279. p
  14280. /[$]LINENO/=
  14281. ' <$as_myself |
  14282. sed '
  14283. s/[$]LINENO.*/&-/
  14284. t lineno
  14285. b
  14286. :lineno
  14287. N
  14288. :loop
  14289. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  14290. t loop
  14291. s/-\n.*//
  14292. ' >$as_me.lineno &&
  14293. chmod +x "$as_me.lineno" ||
  14294. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  14295. { (exit 1); exit 1; }; }
  14296. # Don't try to exec as it changes $[0], causing all sort of problems
  14297. # (the dirname of $[0] is not the place where we might find the
  14298. # original and so on. Autoconf is especially sensitive to this).
  14299. . "./$as_me.lineno"
  14300. # Exit status is that of the last command.
  14301. exit
  14302. }
  14303. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14304. as_dirname=dirname
  14305. else
  14306. as_dirname=false
  14307. fi
  14308. ECHO_C= ECHO_N= ECHO_T=
  14309. case `echo -n x` in
  14310. -n*)
  14311. case `echo 'x\c'` in
  14312. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14313. *) ECHO_C='\c';;
  14314. esac;;
  14315. *)
  14316. ECHO_N='-n';;
  14317. esac
  14318. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14319. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14320. as_expr=expr
  14321. else
  14322. as_expr=false
  14323. fi
  14324. rm -f conf$$ conf$$.exe conf$$.file
  14325. if test -d conf$$.dir; then
  14326. rm -f conf$$.dir/conf$$.file
  14327. else
  14328. rm -f conf$$.dir
  14329. mkdir conf$$.dir 2>/dev/null
  14330. fi
  14331. if (echo >conf$$.file) 2>/dev/null; then
  14332. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14333. as_ln_s='ln -s'
  14334. # ... but there are two gotchas:
  14335. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14336. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14337. # In both cases, we have to default to `cp -p'.
  14338. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14339. as_ln_s='cp -p'
  14340. elif ln conf$$.file conf$$ 2>/dev/null; then
  14341. as_ln_s=ln
  14342. else
  14343. as_ln_s='cp -p'
  14344. fi
  14345. else
  14346. as_ln_s='cp -p'
  14347. fi
  14348. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14349. rmdir conf$$.dir 2>/dev/null
  14350. if mkdir -p . 2>/dev/null; then
  14351. as_mkdir_p=:
  14352. else
  14353. test -d ./-p && rmdir ./-p
  14354. as_mkdir_p=false
  14355. fi
  14356. if test -x / >/dev/null 2>&1; then
  14357. as_test_x='test -x'
  14358. else
  14359. if ls -dL / >/dev/null 2>&1; then
  14360. as_ls_L_option=L
  14361. else
  14362. as_ls_L_option=
  14363. fi
  14364. as_test_x='
  14365. eval sh -c '\''
  14366. if test -d "$1"; then
  14367. test -d "$1/.";
  14368. else
  14369. case $1 in
  14370. -*)set "./$1";;
  14371. esac;
  14372. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  14373. ???[sx]*):;;*)false;;esac;fi
  14374. '\'' sh
  14375. '
  14376. fi
  14377. as_executable_p=$as_test_x
  14378. # Sed expression to map a string onto a valid CPP name.
  14379. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14380. # Sed expression to map a string onto a valid variable name.
  14381. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14382. exec 6>&1
  14383. # Save the log message, to keep $[0] and so on meaningful, and to
  14384. # report actual input values of CONFIG_FILES etc. instead of their
  14385. # values after options handling.
  14386. ac_log="
  14387. This file was extended by popt $as_me 1.16, which was
  14388. generated by GNU Autoconf 2.63. Invocation command line was
  14389. CONFIG_FILES = $CONFIG_FILES
  14390. CONFIG_HEADERS = $CONFIG_HEADERS
  14391. CONFIG_LINKS = $CONFIG_LINKS
  14392. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14393. $ $0 $@
  14394. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14395. "
  14396. _ACEOF
  14397. case $ac_config_files in *"
  14398. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14399. esac
  14400. case $ac_config_headers in *"
  14401. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14402. esac
  14403. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14404. # Files that config.status was made for.
  14405. config_files="$ac_config_files"
  14406. config_headers="$ac_config_headers"
  14407. config_commands="$ac_config_commands"
  14408. _ACEOF
  14409. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14410. ac_cs_usage="\
  14411. \`$as_me' instantiates files from templates according to the
  14412. current configuration.
  14413. Usage: $0 [OPTION]... [FILE]...
  14414. -h, --help print this help, then exit
  14415. -V, --version print version number and configuration settings, then exit
  14416. -q, --quiet, --silent
  14417. do not print progress messages
  14418. -d, --debug don't remove temporary files
  14419. --recheck update $as_me by reconfiguring in the same conditions
  14420. --file=FILE[:TEMPLATE]
  14421. instantiate the configuration file FILE
  14422. --header=FILE[:TEMPLATE]
  14423. instantiate the configuration header FILE
  14424. Configuration files:
  14425. $config_files
  14426. Configuration headers:
  14427. $config_headers
  14428. Configuration commands:
  14429. $config_commands
  14430. Report bugs to <bug-autoconf@gnu.org>."
  14431. _ACEOF
  14432. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14433. ac_cs_version="\\
  14434. popt config.status 1.16
  14435. configured by $0, generated by GNU Autoconf 2.63,
  14436. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14437. Copyright (C) 2008 Free Software Foundation, Inc.
  14438. This config.status script is free software; the Free Software Foundation
  14439. gives unlimited permission to copy, distribute and modify it."
  14440. ac_pwd='$ac_pwd'
  14441. srcdir='$srcdir'
  14442. INSTALL='$INSTALL'
  14443. MKDIR_P='$MKDIR_P'
  14444. AWK='$AWK'
  14445. test -n "\$AWK" || AWK=awk
  14446. _ACEOF
  14447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14448. # The default lists apply if the user does not specify any file.
  14449. ac_need_defaults=:
  14450. while test $# != 0
  14451. do
  14452. case $1 in
  14453. --*=*)
  14454. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14455. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14456. ac_shift=:
  14457. ;;
  14458. *)
  14459. ac_option=$1
  14460. ac_optarg=$2
  14461. ac_shift=shift
  14462. ;;
  14463. esac
  14464. case $ac_option in
  14465. # Handling of the options.
  14466. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14467. ac_cs_recheck=: ;;
  14468. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14469. $as_echo "$ac_cs_version"; exit ;;
  14470. --debug | --debu | --deb | --de | --d | -d )
  14471. debug=: ;;
  14472. --file | --fil | --fi | --f )
  14473. $ac_shift
  14474. case $ac_optarg in
  14475. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14476. esac
  14477. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  14478. ac_need_defaults=false;;
  14479. --header | --heade | --head | --hea )
  14480. $ac_shift
  14481. case $ac_optarg in
  14482. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14483. esac
  14484. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  14485. ac_need_defaults=false;;
  14486. --he | --h)
  14487. # Conflict between --help and --header
  14488. { $as_echo "$as_me: error: ambiguous option: $1
  14489. Try \`$0 --help' for more information." >&2
  14490. { (exit 1); exit 1; }; };;
  14491. --help | --hel | -h )
  14492. $as_echo "$ac_cs_usage"; exit ;;
  14493. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14494. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14495. ac_cs_silent=: ;;
  14496. # This is an error.
  14497. -*) { $as_echo "$as_me: error: unrecognized option: $1
  14498. Try \`$0 --help' for more information." >&2
  14499. { (exit 1); exit 1; }; } ;;
  14500. *) ac_config_targets="$ac_config_targets $1"
  14501. ac_need_defaults=false ;;
  14502. esac
  14503. shift
  14504. done
  14505. ac_configure_extra_args=
  14506. if $ac_cs_silent; then
  14507. exec 6>/dev/null
  14508. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14509. fi
  14510. _ACEOF
  14511. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14512. if \$ac_cs_recheck; then
  14513. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14514. shift
  14515. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14516. CONFIG_SHELL='$SHELL'
  14517. export CONFIG_SHELL
  14518. exec "\$@"
  14519. fi
  14520. _ACEOF
  14521. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14522. exec 5>>config.log
  14523. {
  14524. echo
  14525. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14526. ## Running $as_me. ##
  14527. _ASBOX
  14528. $as_echo "$ac_log"
  14529. } >&5
  14530. _ACEOF
  14531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14532. #
  14533. # INIT-COMMANDS
  14534. #
  14535. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14536. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14537. # if CDPATH is set.
  14538. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14539. sed_quote_subst='$sed_quote_subst'
  14540. double_quote_subst='$double_quote_subst'
  14541. delay_variable_subst='$delay_variable_subst'
  14542. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14543. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14544. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14545. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14546. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14547. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14548. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14549. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14550. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14551. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14552. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14553. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14554. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14555. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14556. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14557. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14558. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14559. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14560. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14561. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14562. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14563. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14564. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14565. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14566. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14567. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14568. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14569. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14570. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14571. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14572. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14573. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14574. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14575. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14576. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14577. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14578. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14579. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14580. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14581. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14582. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14583. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14584. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14585. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14586. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  14587. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14588. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14589. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14590. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14591. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14592. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14593. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14594. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14595. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14596. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14597. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14598. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14599. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14600. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14601. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14602. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14603. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14604. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14605. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14606. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14607. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14608. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14609. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14610. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14611. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14612. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14613. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14614. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14615. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14616. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14617. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14618. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14619. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14620. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14621. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14622. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14623. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14624. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14625. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14626. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14627. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14628. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14629. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14630. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14631. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14632. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14633. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14634. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14635. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14636. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14637. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14638. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14639. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14640. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14641. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14642. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14643. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14644. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14645. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14646. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14647. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14648. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14649. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14650. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14651. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14652. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14653. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14654. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14655. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14656. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14657. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14658. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14659. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14660. LTCC='$LTCC'
  14661. LTCFLAGS='$LTCFLAGS'
  14662. compiler='$compiler_DEFAULT'
  14663. # Quote evaled strings.
  14664. for var in SED \
  14665. GREP \
  14666. EGREP \
  14667. FGREP \
  14668. LD \
  14669. NM \
  14670. LN_S \
  14671. lt_SP2NL \
  14672. lt_NL2SP \
  14673. reload_flag \
  14674. OBJDUMP \
  14675. deplibs_check_method \
  14676. file_magic_cmd \
  14677. AR \
  14678. AR_FLAGS \
  14679. STRIP \
  14680. RANLIB \
  14681. CC \
  14682. CFLAGS \
  14683. compiler \
  14684. lt_cv_sys_global_symbol_pipe \
  14685. lt_cv_sys_global_symbol_to_cdecl \
  14686. lt_cv_sys_global_symbol_to_c_name_address \
  14687. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14688. SHELL \
  14689. ECHO \
  14690. lt_prog_compiler_no_builtin_flag \
  14691. lt_prog_compiler_wl \
  14692. lt_prog_compiler_pic \
  14693. lt_prog_compiler_static \
  14694. lt_cv_prog_compiler_c_o \
  14695. need_locks \
  14696. DSYMUTIL \
  14697. NMEDIT \
  14698. LIPO \
  14699. OTOOL \
  14700. OTOOL64 \
  14701. shrext_cmds \
  14702. export_dynamic_flag_spec \
  14703. whole_archive_flag_spec \
  14704. compiler_needs_object \
  14705. with_gnu_ld \
  14706. allow_undefined_flag \
  14707. no_undefined_flag \
  14708. hardcode_libdir_flag_spec \
  14709. hardcode_libdir_flag_spec_ld \
  14710. hardcode_libdir_separator \
  14711. fix_srcfile_path \
  14712. exclude_expsyms \
  14713. include_expsyms \
  14714. file_list_spec \
  14715. variables_saved_for_relink \
  14716. libname_spec \
  14717. library_names_spec \
  14718. soname_spec \
  14719. finish_eval \
  14720. old_striplib \
  14721. striplib; do
  14722. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14723. *[\\\\\\\`\\"\\\$]*)
  14724. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14725. ;;
  14726. *)
  14727. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14728. ;;
  14729. esac
  14730. done
  14731. # Double-quote double-evaled strings.
  14732. for var in reload_cmds \
  14733. old_postinstall_cmds \
  14734. old_postuninstall_cmds \
  14735. old_archive_cmds \
  14736. extract_expsyms_cmds \
  14737. old_archive_from_new_cmds \
  14738. old_archive_from_expsyms_cmds \
  14739. archive_cmds \
  14740. archive_expsym_cmds \
  14741. module_cmds \
  14742. module_expsym_cmds \
  14743. export_symbols_cmds \
  14744. prelink_cmds \
  14745. postinstall_cmds \
  14746. postuninstall_cmds \
  14747. finish_cmds \
  14748. sys_lib_search_path_spec \
  14749. sys_lib_dlsearch_path_spec; do
  14750. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14751. *[\\\\\\\`\\"\\\$]*)
  14752. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14753. ;;
  14754. *)
  14755. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14756. ;;
  14757. esac
  14758. done
  14759. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14760. case \$lt_ECHO in
  14761. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14762. ;;
  14763. esac
  14764. ac_aux_dir='$ac_aux_dir'
  14765. xsi_shell='$xsi_shell'
  14766. lt_shell_append='$lt_shell_append'
  14767. # See if we are running on zsh, and set the options which allow our
  14768. # commands through without removal of \ escapes INIT.
  14769. if test -n "\${ZSH_VERSION+set}" ; then
  14770. setopt NO_GLOB_SUBST
  14771. fi
  14772. PACKAGE='$PACKAGE'
  14773. VERSION='$VERSION'
  14774. TIMESTAMP='$TIMESTAMP'
  14775. RM='$RM'
  14776. ofile='$ofile'
  14777. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14778. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14779. # from automake < 1.5.
  14780. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14781. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14782. LINGUAS="${LINGUAS-%UNSET%}"
  14783. _ACEOF
  14784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14785. # Handling of arguments.
  14786. for ac_config_target in $ac_config_targets
  14787. do
  14788. case $ac_config_target in
  14789. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14790. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14791. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14792. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14793. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14794. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  14795. "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
  14796. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14797. "popt.pc") CONFIG_FILES="$CONFIG_FILES popt.pc" ;;
  14798. "popt.spec") CONFIG_FILES="$CONFIG_FILES popt.spec" ;;
  14799. "test-poptrc") CONFIG_FILES="$CONFIG_FILES test-poptrc" ;;
  14800. "auto/Makefile") CONFIG_FILES="$CONFIG_FILES auto/Makefile" ;;
  14801. "auto/desc") CONFIG_FILES="$CONFIG_FILES auto/desc" ;;
  14802. "auto/types") CONFIG_FILES="$CONFIG_FILES auto/types" ;;
  14803. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14804. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14805. { (exit 1); exit 1; }; };;
  14806. esac
  14807. done
  14808. # If the user did not use the arguments to specify the items to instantiate,
  14809. # then the envvar interface is used. Set only those that are not.
  14810. # We use the long form for the default assignment because of an extremely
  14811. # bizarre bug on SunOS 4.1.3.
  14812. if $ac_need_defaults; then
  14813. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14814. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14815. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14816. fi
  14817. # Have a temporary directory for convenience. Make it in the build tree
  14818. # simply because there is no reason against having it here, and in addition,
  14819. # creating and moving files from /tmp can sometimes cause problems.
  14820. # Hook for its removal unless debugging.
  14821. # Note that there is a small window in which the directory will not be cleaned:
  14822. # after its creation but before its name has been assigned to `$tmp'.
  14823. $debug ||
  14824. {
  14825. tmp=
  14826. trap 'exit_status=$?
  14827. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14828. ' 0
  14829. trap '{ (exit 1); exit 1; }' 1 2 13 15
  14830. }
  14831. # Create a (secure) tmp directory for tmp files.
  14832. {
  14833. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14834. test -n "$tmp" && test -d "$tmp"
  14835. } ||
  14836. {
  14837. tmp=./conf$$-$RANDOM
  14838. (umask 077 && mkdir "$tmp")
  14839. } ||
  14840. {
  14841. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  14842. { (exit 1); exit 1; }
  14843. }
  14844. # Set up the scripts for CONFIG_FILES section.
  14845. # No need to generate them if there are no CONFIG_FILES.
  14846. # This happens for instance with `./config.status config.h'.
  14847. if test -n "$CONFIG_FILES"; then
  14848. ac_cr=' '
  14849. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14850. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14851. ac_cs_awk_cr='\\r'
  14852. else
  14853. ac_cs_awk_cr=$ac_cr
  14854. fi
  14855. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14856. _ACEOF
  14857. {
  14858. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14859. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14860. echo "_ACEOF"
  14861. } >conf$$subs.sh ||
  14862. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14863. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14864. { (exit 1); exit 1; }; }
  14865. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14866. ac_delim='%!_!# '
  14867. for ac_last_try in false false false false false :; do
  14868. . ./conf$$subs.sh ||
  14869. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14870. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14871. { (exit 1); exit 1; }; }
  14872. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14873. if test $ac_delim_n = $ac_delim_num; then
  14874. break
  14875. elif $ac_last_try; then
  14876. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  14877. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  14878. { (exit 1); exit 1; }; }
  14879. else
  14880. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14881. fi
  14882. done
  14883. rm -f conf$$subs.sh
  14884. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14885. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14886. _ACEOF
  14887. sed -n '
  14888. h
  14889. s/^/S["/; s/!.*/"]=/
  14890. p
  14891. g
  14892. s/^[^!]*!//
  14893. :repl
  14894. t repl
  14895. s/'"$ac_delim"'$//
  14896. t delim
  14897. :nl
  14898. h
  14899. s/\(.\{148\}\).*/\1/
  14900. t more1
  14901. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14902. p
  14903. n
  14904. b repl
  14905. :more1
  14906. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14907. p
  14908. g
  14909. s/.\{148\}//
  14910. t nl
  14911. :delim
  14912. h
  14913. s/\(.\{148\}\).*/\1/
  14914. t more2
  14915. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14916. p
  14917. b
  14918. :more2
  14919. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14920. p
  14921. g
  14922. s/.\{148\}//
  14923. t delim
  14924. ' <conf$$subs.awk | sed '
  14925. /^[^""]/{
  14926. N
  14927. s/\n//
  14928. }
  14929. ' >>$CONFIG_STATUS || ac_write_fail=1
  14930. rm -f conf$$subs.awk
  14931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14932. _ACAWK
  14933. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14934. for (key in S) S_is_set[key] = 1
  14935. FS = ""
  14936. }
  14937. {
  14938. line = $ 0
  14939. nfields = split(line, field, "@")
  14940. substed = 0
  14941. len = length(field[1])
  14942. for (i = 2; i < nfields; i++) {
  14943. key = field[i]
  14944. keylen = length(key)
  14945. if (S_is_set[key]) {
  14946. value = S[key]
  14947. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14948. len += length(value) + length(field[++i])
  14949. substed = 1
  14950. } else
  14951. len += 1 + keylen
  14952. }
  14953. print line
  14954. }
  14955. _ACAWK
  14956. _ACEOF
  14957. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14958. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14959. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14960. else
  14961. cat
  14962. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14963. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  14964. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  14965. { (exit 1); exit 1; }; }
  14966. _ACEOF
  14967. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14968. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14969. # trailing colons and then remove the whole line if VPATH becomes empty
  14970. # (actually we leave an empty line to preserve line numbers).
  14971. if test "x$srcdir" = x.; then
  14972. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14973. s/:*\$(srcdir):*/:/
  14974. s/:*\${srcdir}:*/:/
  14975. s/:*@srcdir@:*/:/
  14976. s/^\([^=]*=[ ]*\):*/\1/
  14977. s/:*$//
  14978. s/^[^=]*=[ ]*$//
  14979. }'
  14980. fi
  14981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14982. fi # test -n "$CONFIG_FILES"
  14983. # Set up the scripts for CONFIG_HEADERS section.
  14984. # No need to generate them if there are no CONFIG_HEADERS.
  14985. # This happens for instance with `./config.status Makefile'.
  14986. if test -n "$CONFIG_HEADERS"; then
  14987. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14988. BEGIN {
  14989. _ACEOF
  14990. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14991. # here-document in config.status, that substitutes the proper values into
  14992. # config.h.in to produce config.h.
  14993. # Create a delimiter string that does not exist in confdefs.h, to ease
  14994. # handling of long lines.
  14995. ac_delim='%!_!# '
  14996. for ac_last_try in false false :; do
  14997. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14998. if test -z "$ac_t"; then
  14999. break
  15000. elif $ac_last_try; then
  15001. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  15002. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  15003. { (exit 1); exit 1; }; }
  15004. else
  15005. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15006. fi
  15007. done
  15008. # For the awk script, D is an array of macro values keyed by name,
  15009. # likewise P contains macro parameters if any. Preserve backslash
  15010. # newline sequences.
  15011. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15012. sed -n '
  15013. s/.\{148\}/&'"$ac_delim"'/g
  15014. t rset
  15015. :rset
  15016. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15017. t def
  15018. d
  15019. :def
  15020. s/\\$//
  15021. t bsnl
  15022. s/["\\]/\\&/g
  15023. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15024. D["\1"]=" \3"/p
  15025. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15026. d
  15027. :bsnl
  15028. s/["\\]/\\&/g
  15029. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15030. D["\1"]=" \3\\\\\\n"\\/p
  15031. t cont
  15032. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15033. t cont
  15034. d
  15035. :cont
  15036. n
  15037. s/.\{148\}/&'"$ac_delim"'/g
  15038. t clear
  15039. :clear
  15040. s/\\$//
  15041. t bsnlc
  15042. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15043. d
  15044. :bsnlc
  15045. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15046. b cont
  15047. ' <confdefs.h | sed '
  15048. s/'"$ac_delim"'/"\\\
  15049. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15051. for (key in D) D_is_set[key] = 1
  15052. FS = ""
  15053. }
  15054. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15055. line = \$ 0
  15056. split(line, arg, " ")
  15057. if (arg[1] == "#") {
  15058. defundef = arg[2]
  15059. mac1 = arg[3]
  15060. } else {
  15061. defundef = substr(arg[1], 2)
  15062. mac1 = arg[2]
  15063. }
  15064. split(mac1, mac2, "(") #)
  15065. macro = mac2[1]
  15066. prefix = substr(line, 1, index(line, defundef) - 1)
  15067. if (D_is_set[macro]) {
  15068. # Preserve the white space surrounding the "#".
  15069. print prefix "define", macro P[macro] D[macro]
  15070. next
  15071. } else {
  15072. # Replace #undef with comments. This is necessary, for example,
  15073. # in the case of _POSIX_SOURCE, which is predefined and required
  15074. # on some systems where configure will not decide to define it.
  15075. if (defundef == "undef") {
  15076. print "/*", prefix defundef, macro, "*/"
  15077. next
  15078. }
  15079. }
  15080. }
  15081. { print }
  15082. _ACAWK
  15083. _ACEOF
  15084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15085. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  15086. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  15087. { (exit 1); exit 1; }; }
  15088. fi # test -n "$CONFIG_HEADERS"
  15089. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15090. shift
  15091. for ac_tag
  15092. do
  15093. case $ac_tag in
  15094. :[FHLC]) ac_mode=$ac_tag; continue;;
  15095. esac
  15096. case $ac_mode$ac_tag in
  15097. :[FHL]*:*);;
  15098. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  15099. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  15100. { (exit 1); exit 1; }; };;
  15101. :[FH]-) ac_tag=-:-;;
  15102. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15103. esac
  15104. ac_save_IFS=$IFS
  15105. IFS=:
  15106. set x $ac_tag
  15107. IFS=$ac_save_IFS
  15108. shift
  15109. ac_file=$1
  15110. shift
  15111. case $ac_mode in
  15112. :L) ac_source=$1;;
  15113. :[FH])
  15114. ac_file_inputs=
  15115. for ac_f
  15116. do
  15117. case $ac_f in
  15118. -) ac_f="$tmp/stdin";;
  15119. *) # Look for the file first in the build tree, then in the source tree
  15120. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15121. # because $ac_f cannot contain `:'.
  15122. test -f "$ac_f" ||
  15123. case $ac_f in
  15124. [\\/$]*) false;;
  15125. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15126. esac ||
  15127. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  15128. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  15129. { (exit 1); exit 1; }; };;
  15130. esac
  15131. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15132. ac_file_inputs="$ac_file_inputs '$ac_f'"
  15133. done
  15134. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15135. # use $as_me), people would be surprised to read:
  15136. # /* config.h. Generated by config.status. */
  15137. configure_input='Generated from '`
  15138. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15139. `' by configure.'
  15140. if test x"$ac_file" != x-; then
  15141. configure_input="$ac_file. $configure_input"
  15142. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  15143. $as_echo "$as_me: creating $ac_file" >&6;}
  15144. fi
  15145. # Neutralize special characters interpreted by sed in replacement strings.
  15146. case $configure_input in #(
  15147. *\&* | *\|* | *\\* )
  15148. ac_sed_conf_input=`$as_echo "$configure_input" |
  15149. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15150. *) ac_sed_conf_input=$configure_input;;
  15151. esac
  15152. case $ac_tag in
  15153. *:-:* | *:-) cat >"$tmp/stdin" \
  15154. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15155. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15156. { (exit 1); exit 1; }; } ;;
  15157. esac
  15158. ;;
  15159. esac
  15160. ac_dir=`$as_dirname -- "$ac_file" ||
  15161. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15162. X"$ac_file" : 'X\(//\)[^/]' \| \
  15163. X"$ac_file" : 'X\(//\)$' \| \
  15164. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15165. $as_echo X"$ac_file" |
  15166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15167. s//\1/
  15168. q
  15169. }
  15170. /^X\(\/\/\)[^/].*/{
  15171. s//\1/
  15172. q
  15173. }
  15174. /^X\(\/\/\)$/{
  15175. s//\1/
  15176. q
  15177. }
  15178. /^X\(\/\).*/{
  15179. s//\1/
  15180. q
  15181. }
  15182. s/.*/./; q'`
  15183. { as_dir="$ac_dir"
  15184. case $as_dir in #(
  15185. -*) as_dir=./$as_dir;;
  15186. esac
  15187. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15188. as_dirs=
  15189. while :; do
  15190. case $as_dir in #(
  15191. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15192. *) as_qdir=$as_dir;;
  15193. esac
  15194. as_dirs="'$as_qdir' $as_dirs"
  15195. as_dir=`$as_dirname -- "$as_dir" ||
  15196. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15197. X"$as_dir" : 'X\(//\)[^/]' \| \
  15198. X"$as_dir" : 'X\(//\)$' \| \
  15199. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15200. $as_echo X"$as_dir" |
  15201. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15202. s//\1/
  15203. q
  15204. }
  15205. /^X\(\/\/\)[^/].*/{
  15206. s//\1/
  15207. q
  15208. }
  15209. /^X\(\/\/\)$/{
  15210. s//\1/
  15211. q
  15212. }
  15213. /^X\(\/\).*/{
  15214. s//\1/
  15215. q
  15216. }
  15217. s/.*/./; q'`
  15218. test -d "$as_dir" && break
  15219. done
  15220. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15221. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15222. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15223. { (exit 1); exit 1; }; }; }
  15224. ac_builddir=.
  15225. case "$ac_dir" in
  15226. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15227. *)
  15228. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15229. # A ".." for each directory in $ac_dir_suffix.
  15230. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15231. case $ac_top_builddir_sub in
  15232. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15233. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15234. esac ;;
  15235. esac
  15236. ac_abs_top_builddir=$ac_pwd
  15237. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15238. # for backward compatibility:
  15239. ac_top_builddir=$ac_top_build_prefix
  15240. case $srcdir in
  15241. .) # We are building in place.
  15242. ac_srcdir=.
  15243. ac_top_srcdir=$ac_top_builddir_sub
  15244. ac_abs_top_srcdir=$ac_pwd ;;
  15245. [\\/]* | ?:[\\/]* ) # Absolute name.
  15246. ac_srcdir=$srcdir$ac_dir_suffix;
  15247. ac_top_srcdir=$srcdir
  15248. ac_abs_top_srcdir=$srcdir ;;
  15249. *) # Relative name.
  15250. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15251. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15252. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15253. esac
  15254. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15255. case $ac_mode in
  15256. :F)
  15257. #
  15258. # CONFIG_FILE
  15259. #
  15260. case $INSTALL in
  15261. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15262. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15263. esac
  15264. ac_MKDIR_P=$MKDIR_P
  15265. case $MKDIR_P in
  15266. [\\/$]* | ?:[\\/]* ) ;;
  15267. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15268. esac
  15269. _ACEOF
  15270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15271. # If the template does not know about datarootdir, expand it.
  15272. # FIXME: This hack should be removed a few years after 2.60.
  15273. ac_datarootdir_hack=; ac_datarootdir_seen=
  15274. ac_sed_dataroot='
  15275. /datarootdir/ {
  15276. p
  15277. q
  15278. }
  15279. /@datadir@/p
  15280. /@docdir@/p
  15281. /@infodir@/p
  15282. /@localedir@/p
  15283. /@mandir@/p
  15284. '
  15285. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15286. *datarootdir*) ac_datarootdir_seen=yes;;
  15287. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15288. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15289. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15290. _ACEOF
  15291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15292. ac_datarootdir_hack='
  15293. s&@datadir@&$datadir&g
  15294. s&@docdir@&$docdir&g
  15295. s&@infodir@&$infodir&g
  15296. s&@localedir@&$localedir&g
  15297. s&@mandir@&$mandir&g
  15298. s&\\\${datarootdir}&$datarootdir&g' ;;
  15299. esac
  15300. _ACEOF
  15301. # Neutralize VPATH when `$srcdir' = `.'.
  15302. # Shell code in configure.ac might set extrasub.
  15303. # FIXME: do we really want to maintain this feature?
  15304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15305. ac_sed_extra="$ac_vpsub
  15306. $extrasub
  15307. _ACEOF
  15308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15309. :t
  15310. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15311. s|@configure_input@|$ac_sed_conf_input|;t t
  15312. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15313. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15314. s&@srcdir@&$ac_srcdir&;t t
  15315. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15316. s&@top_srcdir@&$ac_top_srcdir&;t t
  15317. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15318. s&@builddir@&$ac_builddir&;t t
  15319. s&@abs_builddir@&$ac_abs_builddir&;t t
  15320. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15321. s&@INSTALL@&$ac_INSTALL&;t t
  15322. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15323. $ac_datarootdir_hack
  15324. "
  15325. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15326. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15327. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15328. { (exit 1); exit 1; }; }
  15329. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15330. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15331. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15332. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15333. which seems to be undefined. Please make sure it is defined." >&5
  15334. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15335. which seems to be undefined. Please make sure it is defined." >&2;}
  15336. rm -f "$tmp/stdin"
  15337. case $ac_file in
  15338. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15339. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15340. esac \
  15341. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15342. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15343. { (exit 1); exit 1; }; }
  15344. ;;
  15345. :H)
  15346. #
  15347. # CONFIG_HEADER
  15348. #
  15349. if test x"$ac_file" != x-; then
  15350. {
  15351. $as_echo "/* $configure_input */" \
  15352. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15353. } >"$tmp/config.h" \
  15354. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15355. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15356. { (exit 1); exit 1; }; }
  15357. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15358. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  15359. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15360. else
  15361. rm -f "$ac_file"
  15362. mv "$tmp/config.h" "$ac_file" \
  15363. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15364. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15365. { (exit 1); exit 1; }; }
  15366. fi
  15367. else
  15368. $as_echo "/* $configure_input */" \
  15369. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15370. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  15371. $as_echo "$as_me: error: could not create -" >&2;}
  15372. { (exit 1); exit 1; }; }
  15373. fi
  15374. # Compute "$ac_file"'s index in $config_headers.
  15375. _am_arg="$ac_file"
  15376. _am_stamp_count=1
  15377. for _am_header in $config_headers :; do
  15378. case $_am_header in
  15379. $_am_arg | $_am_arg:* )
  15380. break ;;
  15381. * )
  15382. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15383. esac
  15384. done
  15385. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15386. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15387. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15388. X"$_am_arg" : 'X\(//\)$' \| \
  15389. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15390. $as_echo X"$_am_arg" |
  15391. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15392. s//\1/
  15393. q
  15394. }
  15395. /^X\(\/\/\)[^/].*/{
  15396. s//\1/
  15397. q
  15398. }
  15399. /^X\(\/\/\)$/{
  15400. s//\1/
  15401. q
  15402. }
  15403. /^X\(\/\).*/{
  15404. s//\1/
  15405. q
  15406. }
  15407. s/.*/./; q'`/stamp-h$_am_stamp_count
  15408. ;;
  15409. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  15410. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15411. ;;
  15412. esac
  15413. case $ac_file$ac_mode in
  15414. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15415. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15416. # are listed without --file. Let's play safe and only enable the eval
  15417. # if we detect the quoting.
  15418. case $CONFIG_FILES in
  15419. *\'*) eval set x "$CONFIG_FILES" ;;
  15420. *) set x $CONFIG_FILES ;;
  15421. esac
  15422. shift
  15423. for mf
  15424. do
  15425. # Strip MF so we end up with the name of the file.
  15426. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15427. # Check whether this is an Automake generated Makefile or not.
  15428. # We used to match only the files named `Makefile.in', but
  15429. # some people rename them; so instead we look at the file content.
  15430. # Grep'ing the first line is not enough: some people post-process
  15431. # each Makefile.in and add a new line on top of each file to say so.
  15432. # Grep'ing the whole file is not good either: AIX grep has a line
  15433. # limit of 2048, but all sed's we know have understand at least 4000.
  15434. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15435. dirpart=`$as_dirname -- "$mf" ||
  15436. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15437. X"$mf" : 'X\(//\)[^/]' \| \
  15438. X"$mf" : 'X\(//\)$' \| \
  15439. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15440. $as_echo X"$mf" |
  15441. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15442. s//\1/
  15443. q
  15444. }
  15445. /^X\(\/\/\)[^/].*/{
  15446. s//\1/
  15447. q
  15448. }
  15449. /^X\(\/\/\)$/{
  15450. s//\1/
  15451. q
  15452. }
  15453. /^X\(\/\).*/{
  15454. s//\1/
  15455. q
  15456. }
  15457. s/.*/./; q'`
  15458. else
  15459. continue
  15460. fi
  15461. # Extract the definition of DEPDIR, am__include, and am__quote
  15462. # from the Makefile without running `make'.
  15463. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15464. test -z "$DEPDIR" && continue
  15465. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15466. test -z "am__include" && continue
  15467. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15468. # When using ansi2knr, U may be empty or an underscore; expand it
  15469. U=`sed -n 's/^U = //p' < "$mf"`
  15470. # Find all dependency output files, they are included files with
  15471. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15472. # simplest approach to changing $(DEPDIR) to its actual value in the
  15473. # expansion.
  15474. for file in `sed -n "
  15475. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15476. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15477. # Make sure the directory exists.
  15478. test -f "$dirpart/$file" && continue
  15479. fdir=`$as_dirname -- "$file" ||
  15480. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15481. X"$file" : 'X\(//\)[^/]' \| \
  15482. X"$file" : 'X\(//\)$' \| \
  15483. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15484. $as_echo X"$file" |
  15485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15486. s//\1/
  15487. q
  15488. }
  15489. /^X\(\/\/\)[^/].*/{
  15490. s//\1/
  15491. q
  15492. }
  15493. /^X\(\/\/\)$/{
  15494. s//\1/
  15495. q
  15496. }
  15497. /^X\(\/\).*/{
  15498. s//\1/
  15499. q
  15500. }
  15501. s/.*/./; q'`
  15502. { as_dir=$dirpart/$fdir
  15503. case $as_dir in #(
  15504. -*) as_dir=./$as_dir;;
  15505. esac
  15506. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15507. as_dirs=
  15508. while :; do
  15509. case $as_dir in #(
  15510. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15511. *) as_qdir=$as_dir;;
  15512. esac
  15513. as_dirs="'$as_qdir' $as_dirs"
  15514. as_dir=`$as_dirname -- "$as_dir" ||
  15515. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15516. X"$as_dir" : 'X\(//\)[^/]' \| \
  15517. X"$as_dir" : 'X\(//\)$' \| \
  15518. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15519. $as_echo X"$as_dir" |
  15520. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15521. s//\1/
  15522. q
  15523. }
  15524. /^X\(\/\/\)[^/].*/{
  15525. s//\1/
  15526. q
  15527. }
  15528. /^X\(\/\/\)$/{
  15529. s//\1/
  15530. q
  15531. }
  15532. /^X\(\/\).*/{
  15533. s//\1/
  15534. q
  15535. }
  15536. s/.*/./; q'`
  15537. test -d "$as_dir" && break
  15538. done
  15539. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15540. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15541. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15542. { (exit 1); exit 1; }; }; }
  15543. # echo "creating $dirpart/$file"
  15544. echo '# dummy' > "$dirpart/$file"
  15545. done
  15546. done
  15547. }
  15548. ;;
  15549. "libtool":C)
  15550. # See if we are running on zsh, and set the options which allow our
  15551. # commands through without removal of \ escapes.
  15552. if test -n "${ZSH_VERSION+set}" ; then
  15553. setopt NO_GLOB_SUBST
  15554. fi
  15555. cfgfile="${ofile}T"
  15556. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15557. $RM "$cfgfile"
  15558. cat <<_LT_EOF >> "$cfgfile"
  15559. #! $SHELL
  15560. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15561. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15562. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15563. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15564. #
  15565. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15566. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15567. # Written by Gordon Matzigkeit, 1996
  15568. #
  15569. # This file is part of GNU Libtool.
  15570. #
  15571. # GNU Libtool is free software; you can redistribute it and/or
  15572. # modify it under the terms of the GNU General Public License as
  15573. # published by the Free Software Foundation; either version 2 of
  15574. # the License, or (at your option) any later version.
  15575. #
  15576. # As a special exception to the GNU General Public License,
  15577. # if you distribute this file as part of a program or library that
  15578. # is built using GNU Libtool, you may include this file under the
  15579. # same distribution terms that you use for the rest of that program.
  15580. #
  15581. # GNU Libtool is distributed in the hope that it will be useful,
  15582. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15583. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15584. # GNU General Public License for more details.
  15585. #
  15586. # You should have received a copy of the GNU General Public License
  15587. # along with GNU Libtool; see the file COPYING. If not, a copy
  15588. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15589. # obtained by writing to the Free Software Foundation, Inc.,
  15590. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15591. # The names of the tagged configurations supported by this script.
  15592. available_tags=""
  15593. # ### BEGIN LIBTOOL CONFIG
  15594. # Which release of libtool.m4 was used?
  15595. macro_version=$macro_version
  15596. macro_revision=$macro_revision
  15597. # Whether or not to build shared libraries.
  15598. build_libtool_libs=$enable_shared
  15599. # Whether or not to build static libraries.
  15600. build_old_libs=$enable_static
  15601. # What type of objects to build.
  15602. pic_mode=$pic_mode
  15603. # Whether or not to optimize for fast installation.
  15604. fast_install=$enable_fast_install
  15605. # The host system.
  15606. host_alias=$host_alias
  15607. host=$host
  15608. host_os=$host_os
  15609. # The build system.
  15610. build_alias=$build_alias
  15611. build=$build
  15612. build_os=$build_os
  15613. # A sed program that does not truncate output.
  15614. SED=$lt_SED
  15615. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15616. Xsed="\$SED -e 1s/^X//"
  15617. # A grep program that handles long lines.
  15618. GREP=$lt_GREP
  15619. # An ERE matcher.
  15620. EGREP=$lt_EGREP
  15621. # A literal string matcher.
  15622. FGREP=$lt_FGREP
  15623. # A BSD- or MS-compatible name lister.
  15624. NM=$lt_NM
  15625. # Whether we need soft or hard links.
  15626. LN_S=$lt_LN_S
  15627. # What is the maximum length of a command?
  15628. max_cmd_len=$max_cmd_len
  15629. # Object file suffix (normally "o").
  15630. objext=$ac_objext
  15631. # Executable file suffix (normally "").
  15632. exeext=$exeext
  15633. # whether the shell understands "unset".
  15634. lt_unset=$lt_unset
  15635. # turn spaces into newlines.
  15636. SP2NL=$lt_lt_SP2NL
  15637. # turn newlines into spaces.
  15638. NL2SP=$lt_lt_NL2SP
  15639. # How to create reloadable object files.
  15640. reload_flag=$lt_reload_flag
  15641. reload_cmds=$lt_reload_cmds
  15642. # An object symbol dumper.
  15643. OBJDUMP=$lt_OBJDUMP
  15644. # Method to check whether dependent libraries are shared objects.
  15645. deplibs_check_method=$lt_deplibs_check_method
  15646. # Command to use when deplibs_check_method == "file_magic".
  15647. file_magic_cmd=$lt_file_magic_cmd
  15648. # The archiver.
  15649. AR=$lt_AR
  15650. AR_FLAGS=$lt_AR_FLAGS
  15651. # A symbol stripping program.
  15652. STRIP=$lt_STRIP
  15653. # Commands used to install an old-style archive.
  15654. RANLIB=$lt_RANLIB
  15655. old_postinstall_cmds=$lt_old_postinstall_cmds
  15656. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15657. # A C compiler.
  15658. LTCC=$lt_CC
  15659. # LTCC compiler flags.
  15660. LTCFLAGS=$lt_CFLAGS
  15661. # Take the output of nm and produce a listing of raw symbols and C names.
  15662. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15663. # Transform the output of nm in a proper C declaration.
  15664. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15665. # Transform the output of nm in a C name address pair.
  15666. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15667. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15668. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15669. # The name of the directory that contains temporary libtool files.
  15670. objdir=$objdir
  15671. # Shell to use when invoking shell scripts.
  15672. SHELL=$lt_SHELL
  15673. # An echo program that does not interpret backslashes.
  15674. ECHO=$lt_ECHO
  15675. # Used to examine libraries when file_magic_cmd begins with "file".
  15676. MAGIC_CMD=$MAGIC_CMD
  15677. # Must we lock files when doing compilation?
  15678. need_locks=$lt_need_locks
  15679. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15680. DSYMUTIL=$lt_DSYMUTIL
  15681. # Tool to change global to local symbols on Mac OS X.
  15682. NMEDIT=$lt_NMEDIT
  15683. # Tool to manipulate fat objects and archives on Mac OS X.
  15684. LIPO=$lt_LIPO
  15685. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15686. OTOOL=$lt_OTOOL
  15687. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15688. OTOOL64=$lt_OTOOL64
  15689. # Old archive suffix (normally "a").
  15690. libext=$libext
  15691. # Shared library suffix (normally ".so").
  15692. shrext_cmds=$lt_shrext_cmds
  15693. # The commands to extract the exported symbol list from a shared archive.
  15694. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15695. # Variables whose values should be saved in libtool wrapper scripts and
  15696. # restored at link time.
  15697. variables_saved_for_relink=$lt_variables_saved_for_relink
  15698. # Do we need the "lib" prefix for modules?
  15699. need_lib_prefix=$need_lib_prefix
  15700. # Do we need a version for libraries?
  15701. need_version=$need_version
  15702. # Library versioning type.
  15703. version_type=$version_type
  15704. # Shared library runtime path variable.
  15705. runpath_var=$runpath_var
  15706. # Shared library path variable.
  15707. shlibpath_var=$shlibpath_var
  15708. # Is shlibpath searched before the hard-coded library search path?
  15709. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15710. # Format of library name prefix.
  15711. libname_spec=$lt_libname_spec
  15712. # List of archive names. First name is the real one, the rest are links.
  15713. # The last name is the one that the linker finds with -lNAME
  15714. library_names_spec=$lt_library_names_spec
  15715. # The coded name of the library, if different from the real name.
  15716. soname_spec=$lt_soname_spec
  15717. # Command to use after installation of a shared archive.
  15718. postinstall_cmds=$lt_postinstall_cmds
  15719. # Command to use after uninstallation of a shared archive.
  15720. postuninstall_cmds=$lt_postuninstall_cmds
  15721. # Commands used to finish a libtool library installation in a directory.
  15722. finish_cmds=$lt_finish_cmds
  15723. # As "finish_cmds", except a single script fragment to be evaled but
  15724. # not shown.
  15725. finish_eval=$lt_finish_eval
  15726. # Whether we should hardcode library paths into libraries.
  15727. hardcode_into_libs=$hardcode_into_libs
  15728. # Compile-time system search path for libraries.
  15729. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15730. # Run-time system search path for libraries.
  15731. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15732. # Whether dlopen is supported.
  15733. dlopen_support=$enable_dlopen
  15734. # Whether dlopen of programs is supported.
  15735. dlopen_self=$enable_dlopen_self
  15736. # Whether dlopen of statically linked programs is supported.
  15737. dlopen_self_static=$enable_dlopen_self_static
  15738. # Commands to strip libraries.
  15739. old_striplib=$lt_old_striplib
  15740. striplib=$lt_striplib
  15741. # The linker used to build libraries.
  15742. LD=$lt_LD
  15743. # Commands used to build an old-style archive.
  15744. old_archive_cmds=$lt_old_archive_cmds
  15745. # A language specific compiler.
  15746. CC=$lt_compiler
  15747. # Is the compiler the GNU compiler?
  15748. with_gcc=$GCC
  15749. # Compiler flag to turn off builtin functions.
  15750. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15751. # How to pass a linker flag through the compiler.
  15752. wl=$lt_lt_prog_compiler_wl
  15753. # Additional compiler flags for building library objects.
  15754. pic_flag=$lt_lt_prog_compiler_pic
  15755. # Compiler flag to prevent dynamic linking.
  15756. link_static_flag=$lt_lt_prog_compiler_static
  15757. # Does compiler simultaneously support -c and -o options?
  15758. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15759. # Whether or not to add -lc for building shared libraries.
  15760. build_libtool_need_lc=$archive_cmds_need_lc
  15761. # Whether or not to disallow shared libs when runtime libs are static.
  15762. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15763. # Compiler flag to allow reflexive dlopens.
  15764. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15765. # Compiler flag to generate shared objects directly from archives.
  15766. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15767. # Whether the compiler copes with passing no objects directly.
  15768. compiler_needs_object=$lt_compiler_needs_object
  15769. # Create an old-style archive from a shared archive.
  15770. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15771. # Create a temporary old-style archive to link instead of a shared archive.
  15772. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15773. # Commands used to build a shared archive.
  15774. archive_cmds=$lt_archive_cmds
  15775. archive_expsym_cmds=$lt_archive_expsym_cmds
  15776. # Commands used to build a loadable module if different from building
  15777. # a shared archive.
  15778. module_cmds=$lt_module_cmds
  15779. module_expsym_cmds=$lt_module_expsym_cmds
  15780. # Whether we are building with GNU ld or not.
  15781. with_gnu_ld=$lt_with_gnu_ld
  15782. # Flag that allows shared libraries with undefined symbols to be built.
  15783. allow_undefined_flag=$lt_allow_undefined_flag
  15784. # Flag that enforces no undefined symbols.
  15785. no_undefined_flag=$lt_no_undefined_flag
  15786. # Flag to hardcode \$libdir into a binary during linking.
  15787. # This must work even if \$libdir does not exist
  15788. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15789. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15790. # during linking. This must work even if \$libdir does not exist.
  15791. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15792. # Whether we need a single "-rpath" flag with a separated argument.
  15793. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15794. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15795. # DIR into the resulting binary.
  15796. hardcode_direct=$hardcode_direct
  15797. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15798. # DIR into the resulting binary and the resulting library dependency is
  15799. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15800. # library is relocated.
  15801. hardcode_direct_absolute=$hardcode_direct_absolute
  15802. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15803. # into the resulting binary.
  15804. hardcode_minus_L=$hardcode_minus_L
  15805. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15806. # into the resulting binary.
  15807. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15808. # Set to "yes" if building a shared library automatically hardcodes DIR
  15809. # into the library and all subsequent libraries and executables linked
  15810. # against it.
  15811. hardcode_automatic=$hardcode_automatic
  15812. # Set to yes if linker adds runtime paths of dependent libraries
  15813. # to runtime path list.
  15814. inherit_rpath=$inherit_rpath
  15815. # Whether libtool must link a program against all its dependency libraries.
  15816. link_all_deplibs=$link_all_deplibs
  15817. # Fix the shell variable \$srcfile for the compiler.
  15818. fix_srcfile_path=$lt_fix_srcfile_path
  15819. # Set to "yes" if exported symbols are required.
  15820. always_export_symbols=$always_export_symbols
  15821. # The commands to list exported symbols.
  15822. export_symbols_cmds=$lt_export_symbols_cmds
  15823. # Symbols that should not be listed in the preloaded symbols.
  15824. exclude_expsyms=$lt_exclude_expsyms
  15825. # Symbols that must always be exported.
  15826. include_expsyms=$lt_include_expsyms
  15827. # Commands necessary for linking programs (against libraries) with templates.
  15828. prelink_cmds=$lt_prelink_cmds
  15829. # Specify filename containing input files.
  15830. file_list_spec=$lt_file_list_spec
  15831. # How to hardcode a shared library path into an executable.
  15832. hardcode_action=$hardcode_action
  15833. # ### END LIBTOOL CONFIG
  15834. _LT_EOF
  15835. case $host_os in
  15836. aix3*)
  15837. cat <<\_LT_EOF >> "$cfgfile"
  15838. # AIX sometimes has problems with the GCC collect2 program. For some
  15839. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15840. # vanish in a puff of smoke.
  15841. if test "X${COLLECT_NAMES+set}" != Xset; then
  15842. COLLECT_NAMES=
  15843. export COLLECT_NAMES
  15844. fi
  15845. _LT_EOF
  15846. ;;
  15847. esac
  15848. ltmain="$ac_aux_dir/ltmain.sh"
  15849. # We use sed instead of cat because bash on DJGPP gets confused if
  15850. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15851. # text mode, it properly converts lines to CR/LF. This bash problem
  15852. # is reportedly fixed, but why not run on old versions too?
  15853. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15854. || (rm -f "$cfgfile"; exit 1)
  15855. case $xsi_shell in
  15856. yes)
  15857. cat << \_LT_EOF >> "$cfgfile"
  15858. # func_dirname file append nondir_replacement
  15859. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15860. # otherwise set result to NONDIR_REPLACEMENT.
  15861. func_dirname ()
  15862. {
  15863. case ${1} in
  15864. */*) func_dirname_result="${1%/*}${2}" ;;
  15865. * ) func_dirname_result="${3}" ;;
  15866. esac
  15867. }
  15868. # func_basename file
  15869. func_basename ()
  15870. {
  15871. func_basename_result="${1##*/}"
  15872. }
  15873. # func_dirname_and_basename file append nondir_replacement
  15874. # perform func_basename and func_dirname in a single function
  15875. # call:
  15876. # dirname: Compute the dirname of FILE. If nonempty,
  15877. # add APPEND to the result, otherwise set result
  15878. # to NONDIR_REPLACEMENT.
  15879. # value returned in "$func_dirname_result"
  15880. # basename: Compute filename of FILE.
  15881. # value retuned in "$func_basename_result"
  15882. # Implementation must be kept synchronized with func_dirname
  15883. # and func_basename. For efficiency, we do not delegate to
  15884. # those functions but instead duplicate the functionality here.
  15885. func_dirname_and_basename ()
  15886. {
  15887. case ${1} in
  15888. */*) func_dirname_result="${1%/*}${2}" ;;
  15889. * ) func_dirname_result="${3}" ;;
  15890. esac
  15891. func_basename_result="${1##*/}"
  15892. }
  15893. # func_stripname prefix suffix name
  15894. # strip PREFIX and SUFFIX off of NAME.
  15895. # PREFIX and SUFFIX must not contain globbing or regex special
  15896. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15897. # dot (in which case that matches only a dot).
  15898. func_stripname ()
  15899. {
  15900. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15901. # positional parameters, so assign one to ordinary parameter first.
  15902. func_stripname_result=${3}
  15903. func_stripname_result=${func_stripname_result#"${1}"}
  15904. func_stripname_result=${func_stripname_result%"${2}"}
  15905. }
  15906. # func_opt_split
  15907. func_opt_split ()
  15908. {
  15909. func_opt_split_opt=${1%%=*}
  15910. func_opt_split_arg=${1#*=}
  15911. }
  15912. # func_lo2o object
  15913. func_lo2o ()
  15914. {
  15915. case ${1} in
  15916. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15917. *) func_lo2o_result=${1} ;;
  15918. esac
  15919. }
  15920. # func_xform libobj-or-source
  15921. func_xform ()
  15922. {
  15923. func_xform_result=${1%.*}.lo
  15924. }
  15925. # func_arith arithmetic-term...
  15926. func_arith ()
  15927. {
  15928. func_arith_result=$(( $* ))
  15929. }
  15930. # func_len string
  15931. # STRING may not start with a hyphen.
  15932. func_len ()
  15933. {
  15934. func_len_result=${#1}
  15935. }
  15936. _LT_EOF
  15937. ;;
  15938. *) # Bourne compatible functions.
  15939. cat << \_LT_EOF >> "$cfgfile"
  15940. # func_dirname file append nondir_replacement
  15941. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15942. # otherwise set result to NONDIR_REPLACEMENT.
  15943. func_dirname ()
  15944. {
  15945. # Extract subdirectory from the argument.
  15946. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15947. if test "X$func_dirname_result" = "X${1}"; then
  15948. func_dirname_result="${3}"
  15949. else
  15950. func_dirname_result="$func_dirname_result${2}"
  15951. fi
  15952. }
  15953. # func_basename file
  15954. func_basename ()
  15955. {
  15956. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15957. }
  15958. # func_stripname prefix suffix name
  15959. # strip PREFIX and SUFFIX off of NAME.
  15960. # PREFIX and SUFFIX must not contain globbing or regex special
  15961. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15962. # dot (in which case that matches only a dot).
  15963. # func_strip_suffix prefix name
  15964. func_stripname ()
  15965. {
  15966. case ${2} in
  15967. .*) func_stripname_result=`$ECHO "X${3}" \
  15968. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15969. *) func_stripname_result=`$ECHO "X${3}" \
  15970. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15971. esac
  15972. }
  15973. # sed scripts:
  15974. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15975. my_sed_long_arg='1s/^-[^=]*=//'
  15976. # func_opt_split
  15977. func_opt_split ()
  15978. {
  15979. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15980. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15981. }
  15982. # func_lo2o object
  15983. func_lo2o ()
  15984. {
  15985. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15986. }
  15987. # func_xform libobj-or-source
  15988. func_xform ()
  15989. {
  15990. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15991. }
  15992. # func_arith arithmetic-term...
  15993. func_arith ()
  15994. {
  15995. func_arith_result=`expr "$@"`
  15996. }
  15997. # func_len string
  15998. # STRING may not start with a hyphen.
  15999. func_len ()
  16000. {
  16001. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16002. }
  16003. _LT_EOF
  16004. esac
  16005. case $lt_shell_append in
  16006. yes)
  16007. cat << \_LT_EOF >> "$cfgfile"
  16008. # func_append var value
  16009. # Append VALUE to the end of shell variable VAR.
  16010. func_append ()
  16011. {
  16012. eval "$1+=\$2"
  16013. }
  16014. _LT_EOF
  16015. ;;
  16016. *)
  16017. cat << \_LT_EOF >> "$cfgfile"
  16018. # func_append var value
  16019. # Append VALUE to the end of shell variable VAR.
  16020. func_append ()
  16021. {
  16022. eval "$1=\$$1\$2"
  16023. }
  16024. _LT_EOF
  16025. ;;
  16026. esac
  16027. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16028. || (rm -f "$cfgfile"; exit 1)
  16029. mv -f "$cfgfile" "$ofile" ||
  16030. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16031. chmod +x "$ofile"
  16032. ;;
  16033. "po-directories":C)
  16034. for ac_file in $CONFIG_FILES; do
  16035. # Support "outfile[:infile[:infile...]]"
  16036. case "$ac_file" in
  16037. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  16038. esac
  16039. # PO directories have a Makefile.in generated from Makefile.in.in.
  16040. case "$ac_file" in */Makefile.in)
  16041. # Adjust a relative srcdir.
  16042. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  16043. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  16044. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  16045. # In autoconf-2.13 it is called $ac_given_srcdir.
  16046. # In autoconf-2.50 it is called $srcdir.
  16047. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  16048. case "$ac_given_srcdir" in
  16049. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  16050. /*) top_srcdir="$ac_given_srcdir" ;;
  16051. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  16052. esac
  16053. # Treat a directory as a PO directory if and only if it has a
  16054. # POTFILES.in file. This allows packages to have multiple PO
  16055. # directories under different names or in different locations.
  16056. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  16057. rm -f "$ac_dir/POTFILES"
  16058. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  16059. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  16060. POMAKEFILEDEPS="POTFILES.in"
  16061. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  16062. # on $ac_dir but don't depend on user-specified configuration
  16063. # parameters.
  16064. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  16065. # The LINGUAS file contains the set of available languages.
  16066. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  16067. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  16068. fi
  16069. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  16070. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  16071. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  16072. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  16073. else
  16074. # The set of available languages was given in configure.in.
  16075. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  16076. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  16077. fi
  16078. # Compute POFILES
  16079. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  16080. # Compute UPDATEPOFILES
  16081. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  16082. # Compute DUMMYPOFILES
  16083. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  16084. # Compute GMOFILES
  16085. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  16086. case "$ac_given_srcdir" in
  16087. .) srcdirpre= ;;
  16088. *) srcdirpre='$(srcdir)/' ;;
  16089. esac
  16090. POFILES=
  16091. UPDATEPOFILES=
  16092. DUMMYPOFILES=
  16093. GMOFILES=
  16094. for lang in $ALL_LINGUAS; do
  16095. POFILES="$POFILES $srcdirpre$lang.po"
  16096. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  16097. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  16098. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  16099. done
  16100. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  16101. # environment variable.
  16102. INST_LINGUAS=
  16103. if test -n "$ALL_LINGUAS"; then
  16104. for presentlang in $ALL_LINGUAS; do
  16105. useit=no
  16106. if test "%UNSET%" != "$LINGUAS"; then
  16107. desiredlanguages="$LINGUAS"
  16108. else
  16109. desiredlanguages="$ALL_LINGUAS"
  16110. fi
  16111. for desiredlang in $desiredlanguages; do
  16112. # Use the presentlang catalog if desiredlang is
  16113. # a. equal to presentlang, or
  16114. # b. a variant of presentlang (because in this case,
  16115. # presentlang can be used as a fallback for messages
  16116. # which are not translated in the desiredlang catalog).
  16117. case "$desiredlang" in
  16118. "$presentlang"*) useit=yes;;
  16119. esac
  16120. done
  16121. if test $useit = yes; then
  16122. INST_LINGUAS="$INST_LINGUAS $presentlang"
  16123. fi
  16124. done
  16125. fi
  16126. CATALOGS=
  16127. if test -n "$INST_LINGUAS"; then
  16128. for lang in $INST_LINGUAS; do
  16129. CATALOGS="$CATALOGS $lang.gmo"
  16130. done
  16131. fi
  16132. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  16133. 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"
  16134. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  16135. if test -f "$f"; then
  16136. case "$f" in
  16137. *.orig | *.bak | *~) ;;
  16138. *) cat "$f" >> "$ac_dir/Makefile" ;;
  16139. esac
  16140. fi
  16141. done
  16142. fi
  16143. ;;
  16144. esac
  16145. done ;;
  16146. esac
  16147. done # for ac_tag
  16148. { (exit 0); exit 0; }
  16149. _ACEOF
  16150. chmod +x $CONFIG_STATUS
  16151. ac_clean_files=$ac_clean_files_save
  16152. test $ac_write_fail = 0 ||
  16153. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  16154. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  16155. { (exit 1); exit 1; }; }
  16156. # configure is writing to config.log, and then calls config.status.
  16157. # config.status does its own redirection, appending to config.log.
  16158. # Unfortunately, on DOS this fails, as config.log is still kept open
  16159. # by configure, so config.status won't be able to write to it; its
  16160. # output is simply discarded. So we exec the FD to /dev/null,
  16161. # effectively closing config.log, so it can be properly (re)opened and
  16162. # appended to by config.status. When coming back to configure, we
  16163. # need to make the FD available again.
  16164. if test "$no_create" != yes; then
  16165. ac_cs_success=:
  16166. ac_config_status_args=
  16167. test "$silent" = yes &&
  16168. ac_config_status_args="$ac_config_status_args --quiet"
  16169. exec 5>/dev/null
  16170. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16171. exec 5>>config.log
  16172. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16173. # would make configure fail if this is the last instruction.
  16174. $ac_cs_success || { (exit 1); exit 1; }
  16175. fi
  16176. #
  16177. # CONFIG_SUBDIRS section.
  16178. #
  16179. if test "$no_recursion" != yes; then
  16180. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16181. # so they do not pile up.
  16182. ac_sub_configure_args=
  16183. ac_prev=
  16184. eval "set x $ac_configure_args"
  16185. shift
  16186. for ac_arg
  16187. do
  16188. if test -n "$ac_prev"; then
  16189. ac_prev=
  16190. continue
  16191. fi
  16192. case $ac_arg in
  16193. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16194. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16195. ac_prev=cache_file ;;
  16196. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16197. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16198. | --c=*)
  16199. ;;
  16200. --config-cache | -C)
  16201. ;;
  16202. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16203. ac_prev=srcdir ;;
  16204. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16205. ;;
  16206. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16207. ac_prev=prefix ;;
  16208. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16209. ;;
  16210. --disable-option-checking)
  16211. ;;
  16212. *)
  16213. case $ac_arg in
  16214. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16215. esac
  16216. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  16217. esac
  16218. done
  16219. # Always prepend --prefix to ensure using the same prefix
  16220. # in subdir configurations.
  16221. ac_arg="--prefix=$prefix"
  16222. case $ac_arg in
  16223. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16224. esac
  16225. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16226. # Pass --silent
  16227. if test "$silent" = yes; then
  16228. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16229. fi
  16230. # Always prepend --disable-option-checking to silence warnings, since
  16231. # different subdirs can have different --enable and --with options.
  16232. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16233. ac_popdir=`pwd`
  16234. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16235. # Do not complain, so a configure script can configure whichever
  16236. # parts of a large source tree are present.
  16237. test -d "$srcdir/$ac_dir" || continue
  16238. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16239. $as_echo "$as_me:$LINENO: $ac_msg" >&5
  16240. $as_echo "$ac_msg" >&6
  16241. { as_dir="$ac_dir"
  16242. case $as_dir in #(
  16243. -*) as_dir=./$as_dir;;
  16244. esac
  16245. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16246. as_dirs=
  16247. while :; do
  16248. case $as_dir in #(
  16249. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16250. *) as_qdir=$as_dir;;
  16251. esac
  16252. as_dirs="'$as_qdir' $as_dirs"
  16253. as_dir=`$as_dirname -- "$as_dir" ||
  16254. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16255. X"$as_dir" : 'X\(//\)[^/]' \| \
  16256. X"$as_dir" : 'X\(//\)$' \| \
  16257. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16258. $as_echo X"$as_dir" |
  16259. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16260. s//\1/
  16261. q
  16262. }
  16263. /^X\(\/\/\)[^/].*/{
  16264. s//\1/
  16265. q
  16266. }
  16267. /^X\(\/\/\)$/{
  16268. s//\1/
  16269. q
  16270. }
  16271. /^X\(\/\).*/{
  16272. s//\1/
  16273. q
  16274. }
  16275. s/.*/./; q'`
  16276. test -d "$as_dir" && break
  16277. done
  16278. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16279. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  16280. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  16281. { (exit 1); exit 1; }; }; }
  16282. ac_builddir=.
  16283. case "$ac_dir" in
  16284. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16285. *)
  16286. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16287. # A ".." for each directory in $ac_dir_suffix.
  16288. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16289. case $ac_top_builddir_sub in
  16290. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16291. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16292. esac ;;
  16293. esac
  16294. ac_abs_top_builddir=$ac_pwd
  16295. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16296. # for backward compatibility:
  16297. ac_top_builddir=$ac_top_build_prefix
  16298. case $srcdir in
  16299. .) # We are building in place.
  16300. ac_srcdir=.
  16301. ac_top_srcdir=$ac_top_builddir_sub
  16302. ac_abs_top_srcdir=$ac_pwd ;;
  16303. [\\/]* | ?:[\\/]* ) # Absolute name.
  16304. ac_srcdir=$srcdir$ac_dir_suffix;
  16305. ac_top_srcdir=$srcdir
  16306. ac_abs_top_srcdir=$srcdir ;;
  16307. *) # Relative name.
  16308. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16309. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16310. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16311. esac
  16312. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16313. cd "$ac_dir"
  16314. # Check for guested configure; otherwise get Cygnus style configure.
  16315. if test -f "$ac_srcdir/configure.gnu"; then
  16316. ac_sub_configure=$ac_srcdir/configure.gnu
  16317. elif test -f "$ac_srcdir/configure"; then
  16318. ac_sub_configure=$ac_srcdir/configure
  16319. elif test -f "$ac_srcdir/configure.in"; then
  16320. # This should be Cygnus configure.
  16321. ac_sub_configure=$ac_aux_dir/configure
  16322. else
  16323. { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  16324. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16325. ac_sub_configure=
  16326. fi
  16327. # The recursion is here.
  16328. if test -n "$ac_sub_configure"; then
  16329. # Make the cache file name correct relative to the subdirectory.
  16330. case $cache_file in
  16331. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16332. *) # Relative name.
  16333. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16334. esac
  16335. { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  16336. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16337. # The eval makes quoting arguments work.
  16338. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16339. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16340. { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  16341. $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  16342. { (exit 1); exit 1; }; }
  16343. fi
  16344. cd "$ac_popdir"
  16345. done
  16346. fi
  16347. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16348. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16349. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16350. fi