configure 781 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME=
  647. PACKAGE_TARNAME=
  648. PACKAGE_VERSION=
  649. PACKAGE_STRING=
  650. PACKAGE_BUGREPORT=
  651. ac_unique_file="lib/iconv.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. gt_needs=
  688. ac_header_list=
  689. ac_func_list=
  690. enable_option_checking=no
  691. ac_subst_vars='gltests_LTLIBOBJS
  692. gltests_LIBOBJS
  693. gl_LTLIBOBJS
  694. gl_LIBOBJS
  695. am__EXEEXT_FALSE
  696. am__EXEEXT_TRUE
  697. LTLIBOBJS
  698. LIBOBJS
  699. subdirs
  700. DLL_VARIABLE
  701. WOE32DLL
  702. SRCLIBOBJS
  703. LIBICRT_LTLIBDEPS
  704. LIBICRT_LIBDEPS
  705. NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
  706. NEXT_WCHAR_H
  707. HAVE_WCHAR_H
  708. HAVE_WINT_T
  709. WCHAR_H
  710. REPLACE_WCWIDTH
  711. REPLACE_WCSNRTOMBS
  712. REPLACE_WCSRTOMBS
  713. REPLACE_WCRTOMB
  714. REPLACE_MBSNRTOWCS
  715. REPLACE_MBSRTOWCS
  716. REPLACE_MBRLEN
  717. REPLACE_MBRTOWC
  718. REPLACE_MBSINIT
  719. REPLACE_WCTOB
  720. REPLACE_BTOWC
  721. REPLACE_MBSTATE_T
  722. HAVE_DECL_WCWIDTH
  723. HAVE_DECL_WCTOB
  724. HAVE_WCSNRTOMBS
  725. HAVE_WCSRTOMBS
  726. HAVE_WCRTOMB
  727. HAVE_MBSNRTOWCS
  728. HAVE_MBSRTOWCS
  729. HAVE_MBRLEN
  730. HAVE_MBRTOWC
  731. HAVE_MBSINIT
  732. HAVE_BTOWC
  733. GNULIB_WCWIDTH
  734. GNULIB_WCSNRTOMBS
  735. GNULIB_WCSRTOMBS
  736. GNULIB_WCRTOMB
  737. GNULIB_MBSNRTOWCS
  738. GNULIB_MBSRTOWCS
  739. GNULIB_MBRLEN
  740. GNULIB_MBRTOWC
  741. GNULIB_MBSINIT
  742. GNULIB_WCTOB
  743. GNULIB_BTOWC
  744. HAVE_UNISTD_H
  745. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
  746. NEXT_UNISTD_H
  747. NEXT_AS_FIRST_DIRECTIVE_STRING_H
  748. NEXT_STRING_H
  749. HAVE_RANDOM_H
  750. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
  751. NEXT_STDLIB_H
  752. NEXT_AS_FIRST_DIRECTIVE_STDIO_H
  753. NEXT_STDIO_H
  754. STDINT_H
  755. WINT_T_SUFFIX
  756. WCHAR_T_SUFFIX
  757. SIG_ATOMIC_T_SUFFIX
  758. SIZE_T_SUFFIX
  759. PTRDIFF_T_SUFFIX
  760. HAVE_SIGNED_WINT_T
  761. HAVE_SIGNED_WCHAR_T
  762. HAVE_SIGNED_SIG_ATOMIC_T
  763. BITSIZEOF_WINT_T
  764. BITSIZEOF_WCHAR_T
  765. BITSIZEOF_SIG_ATOMIC_T
  766. BITSIZEOF_SIZE_T
  767. BITSIZEOF_PTRDIFF_T
  768. HAVE_SYS_BITYPES_H
  769. HAVE_SYS_INTTYPES_H
  770. HAVE_STDINT_H
  771. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  772. NEXT_STDINT_H
  773. HAVE_SYS_TYPES_H
  774. HAVE_INTTYPES_H
  775. HAVE_UNSIGNED_LONG_LONG_INT
  776. HAVE_LONG_LONG_INT
  777. HAVE__BOOL
  778. STDBOOL_H
  779. REPLACE_PERROR
  780. REPLACE_GETLINE
  781. HAVE_DECL_GETLINE
  782. HAVE_DECL_GETDELIM
  783. REPLACE_FCLOSE
  784. HAVE_DECL_FPURGE
  785. REPLACE_FPURGE
  786. REPLACE_FFLUSH
  787. REPLACE_FTELL
  788. REPLACE_FTELLO
  789. HAVE_FTELLO
  790. REPLACE_FSEEK
  791. REPLACE_FSEEKO
  792. HAVE_FSEEKO
  793. REPLACE_FREOPEN
  794. REPLACE_FOPEN
  795. REPLACE_OBSTACK_PRINTF
  796. HAVE_DECL_OBSTACK_PRINTF
  797. REPLACE_VASPRINTF
  798. HAVE_VASPRINTF
  799. REPLACE_VDPRINTF
  800. HAVE_VDPRINTF
  801. REPLACE_DPRINTF
  802. HAVE_DPRINTF
  803. REPLACE_VSPRINTF
  804. REPLACE_SPRINTF
  805. HAVE_DECL_VSNPRINTF
  806. REPLACE_VSNPRINTF
  807. HAVE_DECL_SNPRINTF
  808. REPLACE_SNPRINTF
  809. REPLACE_VPRINTF
  810. REPLACE_PRINTF
  811. REPLACE_VFPRINTF
  812. REPLACE_FPRINTF
  813. REPLACE_STDIO_WRITE_FUNCS
  814. GNULIB_STDIO_H_SIGPIPE
  815. GNULIB_PERROR
  816. GNULIB_GETLINE
  817. GNULIB_GETDELIM
  818. GNULIB_FWRITE
  819. GNULIB_PUTS
  820. GNULIB_FPUTS
  821. GNULIB_PUTCHAR
  822. GNULIB_PUTC
  823. GNULIB_FPUTC
  824. GNULIB_FCLOSE
  825. GNULIB_FPURGE
  826. GNULIB_FFLUSH
  827. GNULIB_FTELLO
  828. GNULIB_FTELL
  829. GNULIB_FSEEKO
  830. GNULIB_FSEEK
  831. GNULIB_FREOPEN
  832. GNULIB_FOPEN
  833. GNULIB_OBSTACK_PRINTF_POSIX
  834. GNULIB_OBSTACK_PRINTF
  835. GNULIB_VASPRINTF
  836. GNULIB_VDPRINTF
  837. GNULIB_DPRINTF
  838. GNULIB_VSPRINTF_POSIX
  839. GNULIB_VSNPRINTF
  840. GNULIB_VPRINTF_POSIX
  841. GNULIB_VPRINTF
  842. GNULIB_VFPRINTF_POSIX
  843. GNULIB_VFPRINTF
  844. GNULIB_SPRINTF_POSIX
  845. GNULIB_SNPRINTF
  846. GNULIB_PRINTF_POSIX
  847. GNULIB_PRINTF
  848. GNULIB_FPRINTF_POSIX
  849. GNULIB_FPRINTF
  850. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  851. NEXT_SIGNAL_H
  852. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  853. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  854. HAVE_SIGACTION
  855. HAVE_SIGINFO_T
  856. HAVE_SIGSET_T
  857. HAVE_POSIX_SIGNALBLOCKING
  858. GNULIB_SIGACTION
  859. GNULIB_SIGPROCMASK
  860. GNULIB_SIGNAL_H_SIGPIPE
  861. REPLACE_STRSIGNAL
  862. REPLACE_STRERROR
  863. REPLACE_STRCASESTR
  864. REPLACE_STRSTR
  865. REPLACE_STRDUP
  866. REPLACE_MEMMEM
  867. REPLACE_MEMCHR
  868. HAVE_STRVERSCMP
  869. HAVE_DECL_STRSIGNAL
  870. HAVE_DECL_STRERROR
  871. HAVE_DECL_STRTOK_R
  872. HAVE_STRCASESTR
  873. HAVE_STRSEP
  874. HAVE_STRPBRK
  875. HAVE_DECL_STRNLEN
  876. HAVE_DECL_STRNDUP
  877. HAVE_STRNDUP
  878. HAVE_DECL_STRDUP
  879. HAVE_STRCHRNUL
  880. HAVE_STPNCPY
  881. HAVE_STPCPY
  882. HAVE_RAWMEMCHR
  883. HAVE_DECL_MEMRCHR
  884. HAVE_MEMPCPY
  885. HAVE_DECL_MEMMEM
  886. GNULIB_STRVERSCMP
  887. GNULIB_STRSIGNAL
  888. GNULIB_STRERROR
  889. GNULIB_MBSTOK_R
  890. GNULIB_MBSSEP
  891. GNULIB_MBSSPN
  892. GNULIB_MBSPBRK
  893. GNULIB_MBSCSPN
  894. GNULIB_MBSCASESTR
  895. GNULIB_MBSPCASECMP
  896. GNULIB_MBSNCASECMP
  897. GNULIB_MBSCASECMP
  898. GNULIB_MBSSTR
  899. GNULIB_MBSRCHR
  900. GNULIB_MBSCHR
  901. GNULIB_MBSNLEN
  902. GNULIB_MBSLEN
  903. GNULIB_STRTOK_R
  904. GNULIB_STRCASESTR
  905. GNULIB_STRSTR
  906. GNULIB_STRSEP
  907. GNULIB_STRPBRK
  908. GNULIB_STRNLEN
  909. GNULIB_STRNDUP
  910. GNULIB_STRDUP
  911. GNULIB_STRCHRNUL
  912. GNULIB_STPNCPY
  913. GNULIB_STPCPY
  914. GNULIB_RAWMEMCHR
  915. GNULIB_MEMRCHR
  916. GNULIB_MEMPCPY
  917. GNULIB_MEMMEM
  918. GNULIB_MEMCHR
  919. APPLE_UNIVERSAL_BUILD
  920. VOID_UNSETENV
  921. REPLACE_STRTOD
  922. REPLACE_PUTENV
  923. REPLACE_MKSTEMP
  924. HAVE_DECL_GETLOADAVG
  925. HAVE_UNSETENV
  926. HAVE_SYS_LOADAVG_H
  927. HAVE_STRUCT_RANDOM_DATA
  928. HAVE_STRTOULL
  929. HAVE_STRTOLL
  930. HAVE_STRTOD
  931. HAVE_SETENV
  932. HAVE_RPMATCH
  933. HAVE_RANDOM_R
  934. HAVE_REALLOC_POSIX
  935. HAVE_MKDTEMP
  936. HAVE_GETSUBOPT
  937. HAVE_CALLOC_POSIX
  938. HAVE_ATOLL
  939. GNULIB_UNSETENV
  940. GNULIB_STRTOULL
  941. GNULIB_STRTOLL
  942. GNULIB_STRTOD
  943. GNULIB_SETENV
  944. GNULIB_RPMATCH
  945. GNULIB_RANDOM_R
  946. GNULIB_PUTENV
  947. GNULIB_MKSTEMP
  948. GNULIB_MKDTEMP
  949. GNULIB_GETSUBOPT
  950. GNULIB_GETLOADAVG
  951. GNULIB_ATOLL
  952. GNULIB_CALLOC_POSIX
  953. GNULIB_REALLOC_POSIX
  954. GNULIB_MALLOC_POSIX
  955. HAVE_MALLOC_POSIX
  956. EOVERFLOW_VALUE
  957. EOVERFLOW_HIDDEN
  958. ENOLINK_VALUE
  959. ENOLINK_HIDDEN
  960. EMULTIHOP_VALUE
  961. EMULTIHOP_HIDDEN
  962. ERRNO_H
  963. NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
  964. NEXT_ERRNO_H
  965. PRAGMA_SYSTEM_HEADER
  966. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  967. INCLUDE_NEXT
  968. UNISTD_H_HAVE_WINSOCK2_H
  969. REPLACE_WRITE
  970. REPLACE_LSEEK
  971. REPLACE_LCHOWN
  972. REPLACE_GETPAGESIZE
  973. REPLACE_GETCWD
  974. REPLACE_FCHDIR
  975. REPLACE_CLOSE
  976. REPLACE_CHOWN
  977. HAVE_SYS_PARAM_H
  978. HAVE_OS_H
  979. HAVE_DECL_GETLOGIN_R
  980. HAVE_DECL_ENVIRON
  981. HAVE_SLEEP
  982. HAVE_READLINK
  983. HAVE_LINK
  984. HAVE_GETUSERSHELL
  985. HAVE_GETPAGESIZE
  986. HAVE_GETHOSTNAME
  987. HAVE_GETDTABLESIZE
  988. HAVE_GETDOMAINNAME
  989. HAVE_FTRUNCATE
  990. HAVE_FSYNC
  991. HAVE_EUIDACCESS
  992. HAVE_DUP2
  993. GNULIB_WRITE
  994. GNULIB_UNISTD_H_SIGPIPE
  995. GNULIB_SLEEP
  996. GNULIB_READLINK
  997. GNULIB_LSEEK
  998. GNULIB_LINK
  999. GNULIB_LCHOWN
  1000. GNULIB_GETUSERSHELL
  1001. GNULIB_GETPAGESIZE
  1002. GNULIB_GETLOGIN_R
  1003. GNULIB_GETHOSTNAME
  1004. GNULIB_GETDTABLESIZE
  1005. GNULIB_GETDOMAINNAME
  1006. GNULIB_GETCWD
  1007. GNULIB_FTRUNCATE
  1008. GNULIB_FSYNC
  1009. GNULIB_FCHDIR
  1010. GNULIB_EUIDACCESS
  1011. GNULIB_ENVIRON
  1012. GNULIB_DUP2
  1013. GNULIB_CLOSE
  1014. GNULIB_CHOWN
  1015. ALLOCA_H
  1016. ALLOCA
  1017. GL_COND_LIBTOOL_FALSE
  1018. GL_COND_LIBTOOL_TRUE
  1019. EILSEQ
  1020. BROKEN_WCHAR_H
  1021. USE_MBSTATE_T
  1022. HAVE_WCHAR_T
  1023. ICONV_CONST
  1024. POSUB
  1025. LTLIBINTL
  1026. LIBINTL
  1027. INTLLIBS
  1028. INTL_MACOSX_LIBS
  1029. XGETTEXT_EXTRA_OPTIONS
  1030. MSGMERGE
  1031. XGETTEXT_015
  1032. XGETTEXT
  1033. GMSGFMT_015
  1034. MSGFMT_015
  1035. GMSGFMT
  1036. MSGFMT
  1037. GETTEXT_MACRO_VERSION
  1038. USE_NLS
  1039. LTLIBICONV
  1040. LIBICONV
  1041. HAVE_VISIBILITY
  1042. CFLAG_VISIBILITY
  1043. WINDRES
  1044. WOE32
  1045. RC
  1046. OTOOL64
  1047. OTOOL
  1048. LIPO
  1049. NMEDIT
  1050. DSYMUTIL
  1051. lt_ECHO
  1052. AR
  1053. NM
  1054. ac_ct_DUMPBIN
  1055. DUMPBIN
  1056. LD
  1057. FGREP
  1058. SED
  1059. LIBTOOL
  1060. OBJDUMP
  1061. DLLTOOL
  1062. AS
  1063. LN_S
  1064. LN
  1065. CP
  1066. USE_EXTRA_ENCODINGS
  1067. RELOCATABLE_BUILD_DIR
  1068. RELOCATABLE_SRC_DIR
  1069. RELOCATABLE_CONFIG_H_DIR
  1070. RELOCATABLE_LIBRARY_PATH
  1071. RELOCATABLE_VIA_LD_FALSE
  1072. RELOCATABLE_VIA_LD_TRUE
  1073. INSTALL_PROGRAM_ENV
  1074. RELOCATABLE_LDFLAGS
  1075. RELOCATABLE
  1076. EGREP
  1077. GREP
  1078. RANLIB
  1079. host_os
  1080. host_vendor
  1081. host_cpu
  1082. host
  1083. build_os
  1084. build_vendor
  1085. build_cpu
  1086. build
  1087. CPP
  1088. am__fastdepCC_FALSE
  1089. am__fastdepCC_TRUE
  1090. CCDEPMODE
  1091. AMDEPBACKSLASH
  1092. AMDEP_FALSE
  1093. AMDEP_TRUE
  1094. am__quote
  1095. am__include
  1096. DEPDIR
  1097. OBJEXT
  1098. EXEEXT
  1099. ac_ct_CC
  1100. CPPFLAGS
  1101. LDFLAGS
  1102. CFLAGS
  1103. CC
  1104. am__untar
  1105. am__tar
  1106. AMTAR
  1107. am__leading_dot
  1108. SET_MAKE
  1109. AWK
  1110. mkdir_p
  1111. MKDIR_P
  1112. INSTALL_STRIP_PROGRAM
  1113. STRIP
  1114. install_sh
  1115. MAKEINFO
  1116. AUTOHEADER
  1117. AUTOMAKE
  1118. AUTOCONF
  1119. ACLOCAL
  1120. VERSION
  1121. PACKAGE
  1122. CYGPATH_W
  1123. am__isrc
  1124. INSTALL_DATA
  1125. INSTALL_SCRIPT
  1126. INSTALL_PROGRAM
  1127. target_alias
  1128. host_alias
  1129. build_alias
  1130. LIBS
  1131. ECHO_T
  1132. ECHO_N
  1133. ECHO_C
  1134. DEFS
  1135. mandir
  1136. localedir
  1137. libdir
  1138. psdir
  1139. pdfdir
  1140. dvidir
  1141. htmldir
  1142. infodir
  1143. docdir
  1144. oldincludedir
  1145. includedir
  1146. localstatedir
  1147. sharedstatedir
  1148. sysconfdir
  1149. datadir
  1150. datarootdir
  1151. libexecdir
  1152. sbindir
  1153. bindir
  1154. program_transform_name
  1155. prefix
  1156. exec_prefix
  1157. PACKAGE_BUGREPORT
  1158. PACKAGE_STRING
  1159. PACKAGE_VERSION
  1160. PACKAGE_TARNAME
  1161. PACKAGE_NAME
  1162. PATH_SEPARATOR
  1163. SHELL'
  1164. ac_subst_files=''
  1165. ac_user_opts='
  1166. enable_option_checking
  1167. enable_dependency_tracking
  1168. with_gnu_ld
  1169. enable_relocatable
  1170. enable_extra_encodings
  1171. enable_static
  1172. enable_shared
  1173. with_pic
  1174. enable_fast_install
  1175. enable_libtool_lock
  1176. enable_rpath
  1177. with_libiconv_prefix
  1178. enable_nls
  1179. with_libintl_prefix
  1180. '
  1181. ac_precious_vars='build_alias
  1182. host_alias
  1183. target_alias
  1184. CC
  1185. CFLAGS
  1186. LDFLAGS
  1187. LIBS
  1188. CPPFLAGS
  1189. CPP'
  1190. ac_subdirs_all='libcharset
  1191. preload'
  1192. # Initialize some variables set by options.
  1193. ac_init_help=
  1194. ac_init_version=false
  1195. ac_unrecognized_opts=
  1196. ac_unrecognized_sep=
  1197. # The variables have the same names as the options, with
  1198. # dashes changed to underlines.
  1199. cache_file=/dev/null
  1200. exec_prefix=NONE
  1201. no_create=
  1202. no_recursion=
  1203. prefix=NONE
  1204. program_prefix=NONE
  1205. program_suffix=NONE
  1206. program_transform_name=s,x,x,
  1207. silent=
  1208. site=
  1209. srcdir=
  1210. verbose=
  1211. x_includes=NONE
  1212. x_libraries=NONE
  1213. # Installation directory options.
  1214. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1215. # and all the variables that are supposed to be based on exec_prefix
  1216. # by default will actually change.
  1217. # Use braces instead of parens because sh, perl, etc. also accept them.
  1218. # (The list follows the same order as the GNU Coding Standards.)
  1219. bindir='${exec_prefix}/bin'
  1220. sbindir='${exec_prefix}/sbin'
  1221. libexecdir='${exec_prefix}/libexec'
  1222. datarootdir='${prefix}/share'
  1223. datadir='${datarootdir}'
  1224. sysconfdir='${prefix}/etc'
  1225. sharedstatedir='${prefix}/com'
  1226. localstatedir='${prefix}/var'
  1227. includedir='${prefix}/include'
  1228. oldincludedir='/usr/include'
  1229. docdir='${datarootdir}/doc/${PACKAGE}'
  1230. infodir='${datarootdir}/info'
  1231. htmldir='${docdir}'
  1232. dvidir='${docdir}'
  1233. pdfdir='${docdir}'
  1234. psdir='${docdir}'
  1235. libdir='${exec_prefix}/lib'
  1236. localedir='${datarootdir}/locale'
  1237. mandir='${datarootdir}/man'
  1238. ac_prev=
  1239. ac_dashdash=
  1240. for ac_option
  1241. do
  1242. # If the previous option needs an argument, assign it.
  1243. if test -n "$ac_prev"; then
  1244. eval $ac_prev=\$ac_option
  1245. ac_prev=
  1246. continue
  1247. fi
  1248. case $ac_option in
  1249. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1250. *) ac_optarg=yes ;;
  1251. esac
  1252. # Accept the important Cygnus configure options, so we can diagnose typos.
  1253. case $ac_dashdash$ac_option in
  1254. --)
  1255. ac_dashdash=yes ;;
  1256. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1257. ac_prev=bindir ;;
  1258. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1259. bindir=$ac_optarg ;;
  1260. -build | --build | --buil | --bui | --bu)
  1261. ac_prev=build_alias ;;
  1262. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1263. build_alias=$ac_optarg ;;
  1264. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1265. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1266. ac_prev=cache_file ;;
  1267. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1268. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1269. cache_file=$ac_optarg ;;
  1270. --config-cache | -C)
  1271. cache_file=config.cache ;;
  1272. -datadir | --datadir | --datadi | --datad)
  1273. ac_prev=datadir ;;
  1274. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1275. datadir=$ac_optarg ;;
  1276. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1277. | --dataroo | --dataro | --datar)
  1278. ac_prev=datarootdir ;;
  1279. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1280. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1281. datarootdir=$ac_optarg ;;
  1282. -disable-* | --disable-*)
  1283. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1284. # Reject names that are not valid shell variable names.
  1285. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1286. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1287. { (exit 1); exit 1; }; }
  1288. ac_useropt_orig=$ac_useropt
  1289. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1290. case $ac_user_opts in
  1291. *"
  1292. "enable_$ac_useropt"
  1293. "*) ;;
  1294. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1295. ac_unrecognized_sep=', ';;
  1296. esac
  1297. eval enable_$ac_useropt=no ;;
  1298. -docdir | --docdir | --docdi | --doc | --do)
  1299. ac_prev=docdir ;;
  1300. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1301. docdir=$ac_optarg ;;
  1302. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1303. ac_prev=dvidir ;;
  1304. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1305. dvidir=$ac_optarg ;;
  1306. -enable-* | --enable-*)
  1307. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1308. # Reject names that are not valid shell variable names.
  1309. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1310. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1311. { (exit 1); exit 1; }; }
  1312. ac_useropt_orig=$ac_useropt
  1313. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1314. case $ac_user_opts in
  1315. *"
  1316. "enable_$ac_useropt"
  1317. "*) ;;
  1318. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1319. ac_unrecognized_sep=', ';;
  1320. esac
  1321. eval enable_$ac_useropt=\$ac_optarg ;;
  1322. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1323. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1324. | --exec | --exe | --ex)
  1325. ac_prev=exec_prefix ;;
  1326. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1327. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1328. | --exec=* | --exe=* | --ex=*)
  1329. exec_prefix=$ac_optarg ;;
  1330. -gas | --gas | --ga | --g)
  1331. # Obsolete; use --with-gas.
  1332. with_gas=yes ;;
  1333. -help | --help | --hel | --he | -h)
  1334. ac_init_help=long ;;
  1335. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1336. ac_init_help=recursive ;;
  1337. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1338. ac_init_help=short ;;
  1339. -host | --host | --hos | --ho)
  1340. ac_prev=host_alias ;;
  1341. -host=* | --host=* | --hos=* | --ho=*)
  1342. host_alias=$ac_optarg ;;
  1343. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1344. ac_prev=htmldir ;;
  1345. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1346. | --ht=*)
  1347. htmldir=$ac_optarg ;;
  1348. -includedir | --includedir | --includedi | --included | --include \
  1349. | --includ | --inclu | --incl | --inc)
  1350. ac_prev=includedir ;;
  1351. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1352. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1353. includedir=$ac_optarg ;;
  1354. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1355. ac_prev=infodir ;;
  1356. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1357. infodir=$ac_optarg ;;
  1358. -libdir | --libdir | --libdi | --libd)
  1359. ac_prev=libdir ;;
  1360. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1361. libdir=$ac_optarg ;;
  1362. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1363. | --libexe | --libex | --libe)
  1364. ac_prev=libexecdir ;;
  1365. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1366. | --libexe=* | --libex=* | --libe=*)
  1367. libexecdir=$ac_optarg ;;
  1368. -localedir | --localedir | --localedi | --localed | --locale)
  1369. ac_prev=localedir ;;
  1370. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1371. localedir=$ac_optarg ;;
  1372. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1373. | --localstate | --localstat | --localsta | --localst | --locals)
  1374. ac_prev=localstatedir ;;
  1375. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1376. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1377. localstatedir=$ac_optarg ;;
  1378. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1379. ac_prev=mandir ;;
  1380. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1381. mandir=$ac_optarg ;;
  1382. -nfp | --nfp | --nf)
  1383. # Obsolete; use --without-fp.
  1384. with_fp=no ;;
  1385. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1386. | --no-cr | --no-c | -n)
  1387. no_create=yes ;;
  1388. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1389. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1390. no_recursion=yes ;;
  1391. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1392. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1393. | --oldin | --oldi | --old | --ol | --o)
  1394. ac_prev=oldincludedir ;;
  1395. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1396. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1397. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1398. oldincludedir=$ac_optarg ;;
  1399. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1400. ac_prev=prefix ;;
  1401. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1402. prefix=$ac_optarg ;;
  1403. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1404. | --program-pre | --program-pr | --program-p)
  1405. ac_prev=program_prefix ;;
  1406. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1407. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1408. program_prefix=$ac_optarg ;;
  1409. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1410. | --program-suf | --program-su | --program-s)
  1411. ac_prev=program_suffix ;;
  1412. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1413. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1414. program_suffix=$ac_optarg ;;
  1415. -program-transform-name | --program-transform-name \
  1416. | --program-transform-nam | --program-transform-na \
  1417. | --program-transform-n | --program-transform- \
  1418. | --program-transform | --program-transfor \
  1419. | --program-transfo | --program-transf \
  1420. | --program-trans | --program-tran \
  1421. | --progr-tra | --program-tr | --program-t)
  1422. ac_prev=program_transform_name ;;
  1423. -program-transform-name=* | --program-transform-name=* \
  1424. | --program-transform-nam=* | --program-transform-na=* \
  1425. | --program-transform-n=* | --program-transform-=* \
  1426. | --program-transform=* | --program-transfor=* \
  1427. | --program-transfo=* | --program-transf=* \
  1428. | --program-trans=* | --program-tran=* \
  1429. | --progr-tra=* | --program-tr=* | --program-t=*)
  1430. program_transform_name=$ac_optarg ;;
  1431. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1432. ac_prev=pdfdir ;;
  1433. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1434. pdfdir=$ac_optarg ;;
  1435. -psdir | --psdir | --psdi | --psd | --ps)
  1436. ac_prev=psdir ;;
  1437. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1438. psdir=$ac_optarg ;;
  1439. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1440. | -silent | --silent | --silen | --sile | --sil)
  1441. silent=yes ;;
  1442. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1443. ac_prev=sbindir ;;
  1444. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1445. | --sbi=* | --sb=*)
  1446. sbindir=$ac_optarg ;;
  1447. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1448. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1449. | --sharedst | --shareds | --shared | --share | --shar \
  1450. | --sha | --sh)
  1451. ac_prev=sharedstatedir ;;
  1452. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1453. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1454. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1455. | --sha=* | --sh=*)
  1456. sharedstatedir=$ac_optarg ;;
  1457. -site | --site | --sit)
  1458. ac_prev=site ;;
  1459. -site=* | --site=* | --sit=*)
  1460. site=$ac_optarg ;;
  1461. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1462. ac_prev=srcdir ;;
  1463. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1464. srcdir=$ac_optarg ;;
  1465. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1466. | --syscon | --sysco | --sysc | --sys | --sy)
  1467. ac_prev=sysconfdir ;;
  1468. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1469. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1470. sysconfdir=$ac_optarg ;;
  1471. -target | --target | --targe | --targ | --tar | --ta | --t)
  1472. ac_prev=target_alias ;;
  1473. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1474. target_alias=$ac_optarg ;;
  1475. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1476. verbose=yes ;;
  1477. -version | --version | --versio | --versi | --vers | -V)
  1478. ac_init_version=: ;;
  1479. -with-* | --with-*)
  1480. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1481. # Reject names that are not valid shell variable names.
  1482. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1483. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1484. { (exit 1); exit 1; }; }
  1485. ac_useropt_orig=$ac_useropt
  1486. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1487. case $ac_user_opts in
  1488. *"
  1489. "with_$ac_useropt"
  1490. "*) ;;
  1491. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1492. ac_unrecognized_sep=', ';;
  1493. esac
  1494. eval with_$ac_useropt=\$ac_optarg ;;
  1495. -without-* | --without-*)
  1496. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1497. # Reject names that are not valid shell variable names.
  1498. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1499. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1500. { (exit 1); exit 1; }; }
  1501. ac_useropt_orig=$ac_useropt
  1502. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1503. case $ac_user_opts in
  1504. *"
  1505. "with_$ac_useropt"
  1506. "*) ;;
  1507. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1508. ac_unrecognized_sep=', ';;
  1509. esac
  1510. eval with_$ac_useropt=no ;;
  1511. --x)
  1512. # Obsolete; use --with-x.
  1513. with_x=yes ;;
  1514. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1515. | --x-incl | --x-inc | --x-in | --x-i)
  1516. ac_prev=x_includes ;;
  1517. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1518. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1519. x_includes=$ac_optarg ;;
  1520. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1521. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1522. ac_prev=x_libraries ;;
  1523. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1524. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1525. x_libraries=$ac_optarg ;;
  1526. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1527. Try \`$0 --help' for more information." >&2
  1528. { (exit 1); exit 1; }; }
  1529. ;;
  1530. *=*)
  1531. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1532. # Reject names that are not valid shell variable names.
  1533. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1534. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1535. { (exit 1); exit 1; }; }
  1536. eval $ac_envvar=\$ac_optarg
  1537. export $ac_envvar ;;
  1538. *)
  1539. # FIXME: should be removed in autoconf 3.0.
  1540. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1541. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1542. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1543. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1544. ;;
  1545. esac
  1546. done
  1547. if test -n "$ac_prev"; then
  1548. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1549. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1550. { (exit 1); exit 1; }; }
  1551. fi
  1552. if test -n "$ac_unrecognized_opts"; then
  1553. case $enable_option_checking in
  1554. no) ;;
  1555. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1556. { (exit 1); exit 1; }; } ;;
  1557. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1558. esac
  1559. fi
  1560. # Check all directory arguments for consistency.
  1561. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1562. datadir sysconfdir sharedstatedir localstatedir includedir \
  1563. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1564. libdir localedir mandir
  1565. do
  1566. eval ac_val=\$$ac_var
  1567. # Remove trailing slashes.
  1568. case $ac_val in
  1569. */ )
  1570. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1571. eval $ac_var=\$ac_val;;
  1572. esac
  1573. # Be sure to have absolute directory names.
  1574. case $ac_val in
  1575. [\\/$]* | ?:[\\/]* ) continue;;
  1576. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1577. esac
  1578. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1579. { (exit 1); exit 1; }; }
  1580. done
  1581. # There might be people who depend on the old broken behavior: `$host'
  1582. # used to hold the argument of --host etc.
  1583. # FIXME: To remove some day.
  1584. build=$build_alias
  1585. host=$host_alias
  1586. target=$target_alias
  1587. # FIXME: To remove some day.
  1588. if test "x$host_alias" != x; then
  1589. if test "x$build_alias" = x; then
  1590. cross_compiling=maybe
  1591. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1592. If a cross compiler is detected then cross compile mode will be used." >&2
  1593. elif test "x$build_alias" != "x$host_alias"; then
  1594. cross_compiling=yes
  1595. fi
  1596. fi
  1597. ac_tool_prefix=
  1598. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1599. test "$silent" = yes && exec 6>/dev/null
  1600. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1601. ac_ls_di=`ls -di .` &&
  1602. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1603. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1604. { (exit 1); exit 1; }; }
  1605. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1606. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1607. { (exit 1); exit 1; }; }
  1608. # Find the source files, if location was not specified.
  1609. if test -z "$srcdir"; then
  1610. ac_srcdir_defaulted=yes
  1611. # Try the directory containing this script, then the parent directory.
  1612. ac_confdir=`$as_dirname -- "$as_myself" ||
  1613. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1614. X"$as_myself" : 'X\(//\)[^/]' \| \
  1615. X"$as_myself" : 'X\(//\)$' \| \
  1616. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1617. $as_echo X"$as_myself" |
  1618. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1619. s//\1/
  1620. q
  1621. }
  1622. /^X\(\/\/\)[^/].*/{
  1623. s//\1/
  1624. q
  1625. }
  1626. /^X\(\/\/\)$/{
  1627. s//\1/
  1628. q
  1629. }
  1630. /^X\(\/\).*/{
  1631. s//\1/
  1632. q
  1633. }
  1634. s/.*/./; q'`
  1635. srcdir=$ac_confdir
  1636. if test ! -r "$srcdir/$ac_unique_file"; then
  1637. srcdir=..
  1638. fi
  1639. else
  1640. ac_srcdir_defaulted=no
  1641. fi
  1642. if test ! -r "$srcdir/$ac_unique_file"; then
  1643. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1644. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1645. { (exit 1); exit 1; }; }
  1646. fi
  1647. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1648. ac_abs_confdir=`(
  1649. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1650. { (exit 1); exit 1; }; }
  1651. pwd)`
  1652. # When building in place, set srcdir=.
  1653. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1654. srcdir=.
  1655. fi
  1656. # Remove unnecessary trailing slashes from srcdir.
  1657. # Double slashes in file names in object file debugging info
  1658. # mess up M-x gdb in Emacs.
  1659. case $srcdir in
  1660. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1661. esac
  1662. for ac_var in $ac_precious_vars; do
  1663. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1664. eval ac_env_${ac_var}_value=\$${ac_var}
  1665. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1666. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1667. done
  1668. #
  1669. # Report the --help message.
  1670. #
  1671. if test "$ac_init_help" = "long"; then
  1672. # Omit some internal or obsolete options to make the list less imposing.
  1673. # This message is too long to be a string in the A/UX 3.1 sh.
  1674. cat <<_ACEOF
  1675. \`configure' configures this package to adapt to many kinds of systems.
  1676. Usage: $0 [OPTION]... [VAR=VALUE]...
  1677. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1678. VAR=VALUE. See below for descriptions of some of the useful variables.
  1679. Defaults for the options are specified in brackets.
  1680. Configuration:
  1681. -h, --help display this help and exit
  1682. --help=short display options specific to this package
  1683. --help=recursive display the short help of all the included packages
  1684. -V, --version display version information and exit
  1685. -q, --quiet, --silent do not print \`checking...' messages
  1686. --cache-file=FILE cache test results in FILE [disabled]
  1687. -C, --config-cache alias for \`--cache-file=config.cache'
  1688. -n, --no-create do not create output files
  1689. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1690. Installation directories:
  1691. --prefix=PREFIX install architecture-independent files in PREFIX
  1692. [$ac_default_prefix]
  1693. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1694. [PREFIX]
  1695. By default, \`make install' will install all the files in
  1696. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1697. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1698. for instance \`--prefix=\$HOME'.
  1699. For better control, use the options below.
  1700. Fine tuning of the installation directories:
  1701. --bindir=DIR user executables [EPREFIX/bin]
  1702. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1703. --libexecdir=DIR program executables [EPREFIX/libexec]
  1704. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1705. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1706. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1707. --libdir=DIR object code libraries [EPREFIX/lib]
  1708. --includedir=DIR C header files [PREFIX/include]
  1709. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1710. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1711. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1712. --infodir=DIR info documentation [DATAROOTDIR/info]
  1713. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1714. --mandir=DIR man documentation [DATAROOTDIR/man]
  1715. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1716. --htmldir=DIR html documentation [DOCDIR]
  1717. --dvidir=DIR dvi documentation [DOCDIR]
  1718. --pdfdir=DIR pdf documentation [DOCDIR]
  1719. --psdir=DIR ps documentation [DOCDIR]
  1720. _ACEOF
  1721. cat <<\_ACEOF
  1722. Program names:
  1723. --program-prefix=PREFIX prepend PREFIX to installed program names
  1724. --program-suffix=SUFFIX append SUFFIX to installed program names
  1725. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1726. System types:
  1727. --build=BUILD configure for building on BUILD [guessed]
  1728. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1729. _ACEOF
  1730. fi
  1731. if test -n "$ac_init_help"; then
  1732. cat <<\_ACEOF
  1733. Optional Features:
  1734. --disable-option-checking ignore unrecognized --enable/--with options
  1735. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1736. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1737. --disable-dependency-tracking speeds up one-time build
  1738. --enable-dependency-tracking do not reject slow dependency extractors
  1739. --enable-relocatable install a package that can be moved in the filesystem
  1740. --enable-extra-encodings
  1741. add support for a few rarely used encodings
  1742. --enable-static[=PKGS] build static libraries [default=no]
  1743. --enable-shared[=PKGS] build shared libraries [default=yes]
  1744. --enable-fast-install[=PKGS]
  1745. optimize for fast installation [default=yes]
  1746. --disable-libtool-lock avoid locking (might break parallel builds)
  1747. --disable-rpath do not hardcode runtime library paths
  1748. --disable-nls do not use Native Language Support
  1749. Optional Packages:
  1750. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1751. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1752. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1753. --with-pic try to use only PIC/non-PIC objects [default=use
  1754. both]
  1755. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1756. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1757. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1758. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1759. --without-libintl-prefix don't search for libintl in includedir and libdir
  1760. Some influential environment variables:
  1761. CC C compiler command
  1762. CFLAGS C compiler flags
  1763. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1764. nonstandard directory <lib dir>
  1765. LIBS libraries to pass to the linker, e.g. -l<library>
  1766. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1767. you have headers in a nonstandard directory <include dir>
  1768. CPP C preprocessor
  1769. Use these variables to override the choices made by `configure' or to help
  1770. it to find libraries and programs with nonstandard names/locations.
  1771. _ACEOF
  1772. ac_status=$?
  1773. fi
  1774. if test "$ac_init_help" = "recursive"; then
  1775. # If there are subdirs, report their specific --help.
  1776. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1777. test -d "$ac_dir" ||
  1778. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1779. continue
  1780. ac_builddir=.
  1781. case "$ac_dir" in
  1782. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1783. *)
  1784. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1785. # A ".." for each directory in $ac_dir_suffix.
  1786. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1787. case $ac_top_builddir_sub in
  1788. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1789. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1790. esac ;;
  1791. esac
  1792. ac_abs_top_builddir=$ac_pwd
  1793. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1794. # for backward compatibility:
  1795. ac_top_builddir=$ac_top_build_prefix
  1796. case $srcdir in
  1797. .) # We are building in place.
  1798. ac_srcdir=.
  1799. ac_top_srcdir=$ac_top_builddir_sub
  1800. ac_abs_top_srcdir=$ac_pwd ;;
  1801. [\\/]* | ?:[\\/]* ) # Absolute name.
  1802. ac_srcdir=$srcdir$ac_dir_suffix;
  1803. ac_top_srcdir=$srcdir
  1804. ac_abs_top_srcdir=$srcdir ;;
  1805. *) # Relative name.
  1806. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1807. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1808. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1809. esac
  1810. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1811. cd "$ac_dir" || { ac_status=$?; continue; }
  1812. # Check for guested configure.
  1813. if test -f "$ac_srcdir/configure.gnu"; then
  1814. echo &&
  1815. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1816. elif test -f "$ac_srcdir/configure"; then
  1817. echo &&
  1818. $SHELL "$ac_srcdir/configure" --help=recursive
  1819. else
  1820. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1821. fi || ac_status=$?
  1822. cd "$ac_pwd" || { ac_status=$?; break; }
  1823. done
  1824. fi
  1825. test -n "$ac_init_help" && exit $ac_status
  1826. if $ac_init_version; then
  1827. cat <<\_ACEOF
  1828. configure
  1829. generated by GNU Autoconf 2.63
  1830. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1831. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1832. This configure script is free software; the Free Software Foundation
  1833. gives unlimited permission to copy, distribute and modify it.
  1834. _ACEOF
  1835. exit
  1836. fi
  1837. cat >config.log <<_ACEOF
  1838. This file contains any messages produced by compilers while
  1839. running configure, to aid debugging if configure makes a mistake.
  1840. It was created by $as_me, which was
  1841. generated by GNU Autoconf 2.63. Invocation command line was
  1842. $ $0 $@
  1843. _ACEOF
  1844. exec 5>>config.log
  1845. {
  1846. cat <<_ASUNAME
  1847. ## --------- ##
  1848. ## Platform. ##
  1849. ## --------- ##
  1850. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1851. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1852. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1853. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1854. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1855. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1856. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1857. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1858. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1859. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1860. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1861. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1862. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1863. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1864. _ASUNAME
  1865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1866. for as_dir in $PATH
  1867. do
  1868. IFS=$as_save_IFS
  1869. test -z "$as_dir" && as_dir=.
  1870. $as_echo "PATH: $as_dir"
  1871. done
  1872. IFS=$as_save_IFS
  1873. } >&5
  1874. cat >&5 <<_ACEOF
  1875. ## ----------- ##
  1876. ## Core tests. ##
  1877. ## ----------- ##
  1878. _ACEOF
  1879. # Keep a trace of the command line.
  1880. # Strip out --no-create and --no-recursion so they do not pile up.
  1881. # Strip out --silent because we don't want to record it for future runs.
  1882. # Also quote any args containing shell meta-characters.
  1883. # Make two passes to allow for proper duplicate-argument suppression.
  1884. ac_configure_args=
  1885. ac_configure_args0=
  1886. ac_configure_args1=
  1887. ac_must_keep_next=false
  1888. for ac_pass in 1 2
  1889. do
  1890. for ac_arg
  1891. do
  1892. case $ac_arg in
  1893. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1894. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1895. | -silent | --silent | --silen | --sile | --sil)
  1896. continue ;;
  1897. *\'*)
  1898. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1899. esac
  1900. case $ac_pass in
  1901. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1902. 2)
  1903. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1904. if test $ac_must_keep_next = true; then
  1905. ac_must_keep_next=false # Got value, back to normal.
  1906. else
  1907. case $ac_arg in
  1908. *=* | --config-cache | -C | -disable-* | --disable-* \
  1909. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1910. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1911. | -with-* | --with-* | -without-* | --without-* | --x)
  1912. case "$ac_configure_args0 " in
  1913. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1914. esac
  1915. ;;
  1916. -* ) ac_must_keep_next=true ;;
  1917. esac
  1918. fi
  1919. ac_configure_args="$ac_configure_args '$ac_arg'"
  1920. ;;
  1921. esac
  1922. done
  1923. done
  1924. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1925. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1926. # When interrupted or exit'd, cleanup temporary files, and complete
  1927. # config.log. We remove comments because anyway the quotes in there
  1928. # would cause problems or look ugly.
  1929. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1930. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1931. trap 'exit_status=$?
  1932. # Save into config.log some information that might help in debugging.
  1933. {
  1934. echo
  1935. cat <<\_ASBOX
  1936. ## ---------------- ##
  1937. ## Cache variables. ##
  1938. ## ---------------- ##
  1939. _ASBOX
  1940. echo
  1941. # The following way of writing the cache mishandles newlines in values,
  1942. (
  1943. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in #(
  1946. *${as_nl}*)
  1947. case $ac_var in #(
  1948. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1949. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1950. esac
  1951. case $ac_var in #(
  1952. _ | IFS | as_nl) ;; #(
  1953. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1954. *) $as_unset $ac_var ;;
  1955. esac ;;
  1956. esac
  1957. done
  1958. (set) 2>&1 |
  1959. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1960. *${as_nl}ac_space=\ *)
  1961. sed -n \
  1962. "s/'\''/'\''\\\\'\'''\''/g;
  1963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1964. ;; #(
  1965. *)
  1966. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1967. ;;
  1968. esac |
  1969. sort
  1970. )
  1971. echo
  1972. cat <<\_ASBOX
  1973. ## ----------------- ##
  1974. ## Output variables. ##
  1975. ## ----------------- ##
  1976. _ASBOX
  1977. echo
  1978. for ac_var in $ac_subst_vars
  1979. do
  1980. eval ac_val=\$$ac_var
  1981. case $ac_val in
  1982. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1983. esac
  1984. $as_echo "$ac_var='\''$ac_val'\''"
  1985. done | sort
  1986. echo
  1987. if test -n "$ac_subst_files"; then
  1988. cat <<\_ASBOX
  1989. ## ------------------- ##
  1990. ## File substitutions. ##
  1991. ## ------------------- ##
  1992. _ASBOX
  1993. echo
  1994. for ac_var in $ac_subst_files
  1995. do
  1996. eval ac_val=\$$ac_var
  1997. case $ac_val in
  1998. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1999. esac
  2000. $as_echo "$ac_var='\''$ac_val'\''"
  2001. done | sort
  2002. echo
  2003. fi
  2004. if test -s confdefs.h; then
  2005. cat <<\_ASBOX
  2006. ## ----------- ##
  2007. ## confdefs.h. ##
  2008. ## ----------- ##
  2009. _ASBOX
  2010. echo
  2011. cat confdefs.h
  2012. echo
  2013. fi
  2014. test "$ac_signal" != 0 &&
  2015. $as_echo "$as_me: caught signal $ac_signal"
  2016. $as_echo "$as_me: exit $exit_status"
  2017. } >&5
  2018. rm -f core *.core core.conftest.* &&
  2019. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2020. exit $exit_status
  2021. ' 0
  2022. for ac_signal in 1 2 13 15; do
  2023. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2024. done
  2025. ac_signal=0
  2026. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2027. rm -f -r conftest* confdefs.h
  2028. # Predefined preprocessor variables.
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_NAME "$PACKAGE_NAME"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2034. _ACEOF
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2037. _ACEOF
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define PACKAGE_STRING "$PACKAGE_STRING"
  2040. _ACEOF
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2043. _ACEOF
  2044. # Let the site file select an alternate cache file if it wants to.
  2045. # Prefer an explicitly selected file to automatically selected ones.
  2046. ac_site_file1=NONE
  2047. ac_site_file2=NONE
  2048. if test -n "$CONFIG_SITE"; then
  2049. ac_site_file1=$CONFIG_SITE
  2050. elif test "x$prefix" != xNONE; then
  2051. ac_site_file1=$prefix/share/config.site
  2052. ac_site_file2=$prefix/etc/config.site
  2053. else
  2054. ac_site_file1=$ac_default_prefix/share/config.site
  2055. ac_site_file2=$ac_default_prefix/etc/config.site
  2056. fi
  2057. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2058. do
  2059. test "x$ac_site_file" = xNONE && continue
  2060. if test -r "$ac_site_file"; then
  2061. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2062. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2063. sed 's/^/| /' "$ac_site_file" >&5
  2064. . "$ac_site_file"
  2065. fi
  2066. done
  2067. if test -r "$cache_file"; then
  2068. # Some versions of bash will fail to source /dev/null (special
  2069. # files actually), so we avoid doing that.
  2070. if test -f "$cache_file"; then
  2071. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2072. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2073. case $cache_file in
  2074. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2075. *) . "./$cache_file";;
  2076. esac
  2077. fi
  2078. else
  2079. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2080. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2081. >$cache_file
  2082. fi
  2083. gt_needs="$gt_needs need-ngettext"
  2084. ac_header_list="$ac_header_list stdlib.h"
  2085. ac_header_list="$ac_header_list string.h"
  2086. ac_func_list="$ac_func_list canonicalize_file_name"
  2087. ac_header_list="$ac_header_list sys/param.h"
  2088. ac_header_list="$ac_header_list unistd.h"
  2089. ac_func_list="$ac_func_list getcwd"
  2090. ac_func_list="$ac_func_list readlink"
  2091. ac_header_list="$ac_header_list errno.h"
  2092. ac_func_list="$ac_func_list pathconf"
  2093. ac_func_list="$ac_func_list setenv"
  2094. ac_header_list="$ac_header_list sys/socket.h"
  2095. ac_header_list="$ac_header_list signal.h"
  2096. ac_header_list="$ac_header_list stdint.h"
  2097. ac_header_list="$ac_header_list wchar.h"
  2098. ac_header_list="$ac_header_list stdio.h"
  2099. # Check that the precious variables saved in the cache have kept the same
  2100. # value.
  2101. ac_cache_corrupted=false
  2102. for ac_var in $ac_precious_vars; do
  2103. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2104. eval ac_new_set=\$ac_env_${ac_var}_set
  2105. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2106. eval ac_new_val=\$ac_env_${ac_var}_value
  2107. case $ac_old_set,$ac_new_set in
  2108. set,)
  2109. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2110. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2111. ac_cache_corrupted=: ;;
  2112. ,set)
  2113. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2114. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2115. ac_cache_corrupted=: ;;
  2116. ,);;
  2117. *)
  2118. if test "x$ac_old_val" != "x$ac_new_val"; then
  2119. # differences in whitespace do not lead to failure.
  2120. ac_old_val_w=`echo x $ac_old_val`
  2121. ac_new_val_w=`echo x $ac_new_val`
  2122. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2123. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2124. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2125. ac_cache_corrupted=:
  2126. else
  2127. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2128. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2129. eval $ac_var=\$ac_old_val
  2130. fi
  2131. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2132. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2133. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2134. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2135. fi;;
  2136. esac
  2137. # Pass precious variables to config.status.
  2138. if test "$ac_new_set" = set; then
  2139. case $ac_new_val in
  2140. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2141. *) ac_arg=$ac_var=$ac_new_val ;;
  2142. esac
  2143. case " $ac_configure_args " in
  2144. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2145. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2146. esac
  2147. fi
  2148. done
  2149. if $ac_cache_corrupted; then
  2150. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2152. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2153. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2154. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2155. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2156. { (exit 1); exit 1; }; }
  2157. fi
  2158. ac_ext=c
  2159. ac_cpp='$CPP $CPPFLAGS'
  2160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2163. ac_aux_dir=
  2164. for ac_dir in build-aux "$srcdir"/build-aux; do
  2165. if test -f "$ac_dir/install-sh"; then
  2166. ac_aux_dir=$ac_dir
  2167. ac_install_sh="$ac_aux_dir/install-sh -c"
  2168. break
  2169. elif test -f "$ac_dir/install.sh"; then
  2170. ac_aux_dir=$ac_dir
  2171. ac_install_sh="$ac_aux_dir/install.sh -c"
  2172. break
  2173. elif test -f "$ac_dir/shtool"; then
  2174. ac_aux_dir=$ac_dir
  2175. ac_install_sh="$ac_aux_dir/shtool install -c"
  2176. break
  2177. fi
  2178. done
  2179. if test -z "$ac_aux_dir"; then
  2180. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  2181. $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  2182. { (exit 1); exit 1; }; }
  2183. fi
  2184. # These three variables are undocumented and unsupported,
  2185. # and are intended to be withdrawn in a future Autoconf release.
  2186. # They can cause serious problems if a builder's source tree is in a directory
  2187. # whose full name contains unusual characters.
  2188. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2189. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2190. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2191. am__api_version='1.11'
  2192. # Find a good install program. We prefer a C program (faster),
  2193. # so one script is as good as another. But avoid the broken or
  2194. # incompatible versions:
  2195. # SysV /etc/install, /usr/sbin/install
  2196. # SunOS /usr/etc/install
  2197. # IRIX /sbin/install
  2198. # AIX /bin/install
  2199. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2200. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2201. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2202. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2203. # OS/2's system install, which has a completely different semantic
  2204. # ./install, which can be erroneously created by make from ./install.sh.
  2205. # Reject install programs that cannot install multiple files.
  2206. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2207. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2208. if test -z "$INSTALL"; then
  2209. if test "${ac_cv_path_install+set}" = set; then
  2210. $as_echo_n "(cached) " >&6
  2211. else
  2212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2213. for as_dir in $PATH
  2214. do
  2215. IFS=$as_save_IFS
  2216. test -z "$as_dir" && as_dir=.
  2217. # Account for people who put trailing slashes in PATH elements.
  2218. case $as_dir/ in
  2219. ./ | .// | /cC/* | \
  2220. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2221. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2222. /usr/ucb/* ) ;;
  2223. *)
  2224. # OSF1 and SCO ODT 3.0 have their own names for install.
  2225. # Don't use installbsd from OSF since it installs stuff as root
  2226. # by default.
  2227. for ac_prog in ginstall scoinst install; do
  2228. for ac_exec_ext in '' $ac_executable_extensions; do
  2229. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2230. if test $ac_prog = install &&
  2231. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2232. # AIX install. It has an incompatible calling convention.
  2233. :
  2234. elif test $ac_prog = install &&
  2235. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2236. # program-specific install script used by HP pwplus--don't use.
  2237. :
  2238. else
  2239. rm -rf conftest.one conftest.two conftest.dir
  2240. echo one > conftest.one
  2241. echo two > conftest.two
  2242. mkdir conftest.dir
  2243. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2244. test -s conftest.one && test -s conftest.two &&
  2245. test -s conftest.dir/conftest.one &&
  2246. test -s conftest.dir/conftest.two
  2247. then
  2248. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2249. break 3
  2250. fi
  2251. fi
  2252. fi
  2253. done
  2254. done
  2255. ;;
  2256. esac
  2257. done
  2258. IFS=$as_save_IFS
  2259. rm -rf conftest.one conftest.two conftest.dir
  2260. fi
  2261. if test "${ac_cv_path_install+set}" = set; then
  2262. INSTALL=$ac_cv_path_install
  2263. else
  2264. # As a last resort, use the slow shell script. Don't cache a
  2265. # value for INSTALL within a source directory, because that will
  2266. # break other packages using the cache if that directory is
  2267. # removed, or if the value is a relative name.
  2268. INSTALL=$ac_install_sh
  2269. fi
  2270. fi
  2271. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2272. $as_echo "$INSTALL" >&6; }
  2273. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2274. # It thinks the first close brace ends the variable substitution.
  2275. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2276. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2277. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2278. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2279. $as_echo_n "checking whether build environment is sane... " >&6; }
  2280. # Just in case
  2281. sleep 1
  2282. echo timestamp > conftest.file
  2283. # Reject unsafe characters in $srcdir or the absolute working directory
  2284. # name. Accept space and tab only in the latter.
  2285. am_lf='
  2286. '
  2287. case `pwd` in
  2288. *[\\\"\#\$\&\'\`$am_lf]*)
  2289. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2290. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2291. { (exit 1); exit 1; }; };;
  2292. esac
  2293. case $srcdir in
  2294. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2295. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2296. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2297. { (exit 1); exit 1; }; };;
  2298. esac
  2299. # Do `set' in a subshell so we don't clobber the current shell's
  2300. # arguments. Must try -L first in case configure is actually a
  2301. # symlink; some systems play weird games with the mod time of symlinks
  2302. # (eg FreeBSD returns the mod time of the symlink's containing
  2303. # directory).
  2304. if (
  2305. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2306. if test "$*" = "X"; then
  2307. # -L didn't work.
  2308. set X `ls -t "$srcdir/configure" conftest.file`
  2309. fi
  2310. rm -f conftest.file
  2311. if test "$*" != "X $srcdir/configure conftest.file" \
  2312. && test "$*" != "X conftest.file $srcdir/configure"; then
  2313. # If neither matched, then we have a broken ls. This can happen
  2314. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2315. # broken ls alias from the environment. This has actually
  2316. # happened. Such a system could not be considered "sane".
  2317. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2318. alias in your environment" >&5
  2319. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2320. alias in your environment" >&2;}
  2321. { (exit 1); exit 1; }; }
  2322. fi
  2323. test "$2" = conftest.file
  2324. )
  2325. then
  2326. # Ok.
  2327. :
  2328. else
  2329. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2330. Check your system clock" >&5
  2331. $as_echo "$as_me: error: newly created file is older than distributed files!
  2332. Check your system clock" >&2;}
  2333. { (exit 1); exit 1; }; }
  2334. fi
  2335. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2336. $as_echo "yes" >&6; }
  2337. test "$program_prefix" != NONE &&
  2338. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2339. # Use a double $ so make ignores it.
  2340. test "$program_suffix" != NONE &&
  2341. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2342. # Double any \ or $.
  2343. # By default was `s,x,x', remove it if useless.
  2344. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2345. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2346. # expand $ac_aux_dir to an absolute path
  2347. am_aux_dir=`cd $ac_aux_dir && pwd`
  2348. if test x"${MISSING+set}" != xset; then
  2349. case $am_aux_dir in
  2350. *\ * | *\ *)
  2351. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2352. *)
  2353. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2354. esac
  2355. fi
  2356. # Use eval to expand $SHELL
  2357. if eval "$MISSING --run true"; then
  2358. am_missing_run="$MISSING --run "
  2359. else
  2360. am_missing_run=
  2361. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2362. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2363. fi
  2364. if test x"${install_sh}" != xset; then
  2365. case $am_aux_dir in
  2366. *\ * | *\ *)
  2367. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2368. *)
  2369. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2370. esac
  2371. fi
  2372. # Installed binaries are usually stripped using `strip' when the user
  2373. # run `make install-strip'. However `strip' might not be the right
  2374. # tool to use in cross-compilation environments, therefore Automake
  2375. # will honor the `STRIP' environment variable to overrule this program.
  2376. if test "$cross_compiling" != no; then
  2377. if test -n "$ac_tool_prefix"; then
  2378. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2379. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2380. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if test "${ac_cv_prog_STRIP+set}" = set; then
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$STRIP"; then
  2386. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2395. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2396. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. STRIP=$ac_cv_prog_STRIP
  2405. if test -n "$STRIP"; then
  2406. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2407. $as_echo "$STRIP" >&6; }
  2408. else
  2409. { $as_echo "$as_me:$LINENO: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. fi
  2412. fi
  2413. if test -z "$ac_cv_prog_STRIP"; then
  2414. ac_ct_STRIP=$STRIP
  2415. # Extract the first word of "strip", so it can be a program name with args.
  2416. set dummy strip; ac_word=$2
  2417. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2418. $as_echo_n "checking for $ac_word... " >&6; }
  2419. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2420. $as_echo_n "(cached) " >&6
  2421. else
  2422. if test -n "$ac_ct_STRIP"; then
  2423. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. test -z "$as_dir" && as_dir=.
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2432. ac_cv_prog_ac_ct_STRIP="strip"
  2433. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2434. break 2
  2435. fi
  2436. done
  2437. done
  2438. IFS=$as_save_IFS
  2439. fi
  2440. fi
  2441. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2442. if test -n "$ac_ct_STRIP"; then
  2443. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2444. $as_echo "$ac_ct_STRIP" >&6; }
  2445. else
  2446. { $as_echo "$as_me:$LINENO: result: no" >&5
  2447. $as_echo "no" >&6; }
  2448. fi
  2449. if test "x$ac_ct_STRIP" = x; then
  2450. STRIP=":"
  2451. else
  2452. case $cross_compiling:$ac_tool_warned in
  2453. yes:)
  2454. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2456. ac_tool_warned=yes ;;
  2457. esac
  2458. STRIP=$ac_ct_STRIP
  2459. fi
  2460. else
  2461. STRIP="$ac_cv_prog_STRIP"
  2462. fi
  2463. fi
  2464. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2465. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2466. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2467. if test -z "$MKDIR_P"; then
  2468. if test "${ac_cv_path_mkdir+set}" = set; then
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_prog in mkdir gmkdir; do
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2479. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2480. 'mkdir (GNU coreutils) '* | \
  2481. 'mkdir (coreutils) '* | \
  2482. 'mkdir (fileutils) '4.1*)
  2483. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2484. break 3;;
  2485. esac
  2486. done
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. fi
  2491. if test "${ac_cv_path_mkdir+set}" = set; then
  2492. MKDIR_P="$ac_cv_path_mkdir -p"
  2493. else
  2494. # As a last resort, use the slow shell script. Don't cache a
  2495. # value for MKDIR_P within a source directory, because that will
  2496. # break other packages using the cache if that directory is
  2497. # removed, or if the value is a relative name.
  2498. test -d ./--version && rmdir ./--version
  2499. MKDIR_P="$ac_install_sh -d"
  2500. fi
  2501. fi
  2502. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2503. $as_echo "$MKDIR_P" >&6; }
  2504. mkdir_p="$MKDIR_P"
  2505. case $mkdir_p in
  2506. [\\/$]* | ?:[\\/]*) ;;
  2507. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2508. esac
  2509. for ac_prog in gawk mawk nawk awk
  2510. do
  2511. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2512. set dummy $ac_prog; ac_word=$2
  2513. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2514. $as_echo_n "checking for $ac_word... " >&6; }
  2515. if test "${ac_cv_prog_AWK+set}" = set; then
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. if test -n "$AWK"; then
  2519. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2528. ac_cv_prog_AWK="$ac_prog"
  2529. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. fi
  2537. AWK=$ac_cv_prog_AWK
  2538. if test -n "$AWK"; then
  2539. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2540. $as_echo "$AWK" >&6; }
  2541. else
  2542. { $as_echo "$as_me:$LINENO: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. fi
  2545. test -n "$AWK" && break
  2546. done
  2547. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2548. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2549. set x ${MAKE-make}
  2550. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2551. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. cat >conftest.make <<\_ACEOF
  2555. SHELL = /bin/sh
  2556. all:
  2557. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2558. _ACEOF
  2559. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2560. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2561. *@@@%%%=?*=@@@%%%*)
  2562. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2563. *)
  2564. eval ac_cv_prog_make_${ac_make}_set=no;;
  2565. esac
  2566. rm -f conftest.make
  2567. fi
  2568. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2569. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2570. $as_echo "yes" >&6; }
  2571. SET_MAKE=
  2572. else
  2573. { $as_echo "$as_me:$LINENO: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. SET_MAKE="MAKE=${MAKE-make}"
  2576. fi
  2577. rm -rf .tst 2>/dev/null
  2578. mkdir .tst 2>/dev/null
  2579. if test -d .tst; then
  2580. am__leading_dot=.
  2581. else
  2582. am__leading_dot=_
  2583. fi
  2584. rmdir .tst 2>/dev/null
  2585. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2586. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2587. # is not polluted with repeated "-I."
  2588. am__isrc=' -I$(srcdir)'
  2589. # test to see if srcdir already configured
  2590. if test -f $srcdir/config.status; then
  2591. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2592. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2593. { (exit 1); exit 1; }; }
  2594. fi
  2595. fi
  2596. # test whether we have cygpath
  2597. if test -z "$CYGPATH_W"; then
  2598. if (cygpath --version) >/dev/null 2>/dev/null; then
  2599. CYGPATH_W='cygpath -w'
  2600. else
  2601. CYGPATH_W=echo
  2602. fi
  2603. fi
  2604. # Define the identity of the package.
  2605. PACKAGE=libiconv
  2606. VERSION=1.13.1
  2607. cat >>confdefs.h <<_ACEOF
  2608. #define PACKAGE "$PACKAGE"
  2609. _ACEOF
  2610. cat >>confdefs.h <<_ACEOF
  2611. #define VERSION "$VERSION"
  2612. _ACEOF
  2613. # Some tools Automake needs.
  2614. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2615. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2616. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2617. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2618. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2619. # We need awk for the "check" target. The system "awk" is bad on
  2620. # some platforms.
  2621. # Always define AMTAR for backward compatibility.
  2622. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2623. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2624. ac_config_headers="$ac_config_headers config.h lib/config.h"
  2625. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2626. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2627. set x ${MAKE-make}
  2628. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2629. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. cat >conftest.make <<\_ACEOF
  2633. SHELL = /bin/sh
  2634. all:
  2635. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2636. _ACEOF
  2637. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2638. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2639. *@@@%%%=?*=@@@%%%*)
  2640. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2641. *)
  2642. eval ac_cv_prog_make_${ac_make}_set=no;;
  2643. esac
  2644. rm -f conftest.make
  2645. fi
  2646. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2647. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2648. $as_echo "yes" >&6; }
  2649. SET_MAKE=
  2650. else
  2651. { $as_echo "$as_me:$LINENO: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. SET_MAKE="MAKE=${MAKE-make}"
  2654. fi
  2655. ac_ext=c
  2656. ac_cpp='$CPP $CPPFLAGS'
  2657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2660. if test -n "$ac_tool_prefix"; then
  2661. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2662. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2663. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if test "${ac_cv_prog_CC+set}" = set; then
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$CC"; then
  2669. ac_cv_prog_CC="$CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2678. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2679. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. CC=$ac_cv_prog_CC
  2688. if test -n "$CC"; then
  2689. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2690. $as_echo "$CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:$LINENO: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. fi
  2696. if test -z "$ac_cv_prog_CC"; then
  2697. ac_ct_CC=$CC
  2698. # Extract the first word of "gcc", so it can be a program name with args.
  2699. set dummy gcc; ac_word=$2
  2700. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2701. $as_echo_n "checking for $ac_word... " >&6; }
  2702. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. if test -n "$ac_ct_CC"; then
  2706. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2707. else
  2708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2709. for as_dir in $PATH
  2710. do
  2711. IFS=$as_save_IFS
  2712. test -z "$as_dir" && as_dir=.
  2713. for ac_exec_ext in '' $ac_executable_extensions; do
  2714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2715. ac_cv_prog_ac_ct_CC="gcc"
  2716. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2717. break 2
  2718. fi
  2719. done
  2720. done
  2721. IFS=$as_save_IFS
  2722. fi
  2723. fi
  2724. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2725. if test -n "$ac_ct_CC"; then
  2726. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2727. $as_echo "$ac_ct_CC" >&6; }
  2728. else
  2729. { $as_echo "$as_me:$LINENO: result: no" >&5
  2730. $as_echo "no" >&6; }
  2731. fi
  2732. if test "x$ac_ct_CC" = x; then
  2733. CC=""
  2734. else
  2735. case $cross_compiling:$ac_tool_warned in
  2736. yes:)
  2737. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2739. ac_tool_warned=yes ;;
  2740. esac
  2741. CC=$ac_ct_CC
  2742. fi
  2743. else
  2744. CC="$ac_cv_prog_CC"
  2745. fi
  2746. if test -z "$CC"; then
  2747. if test -n "$ac_tool_prefix"; then
  2748. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2749. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2750. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if test "${ac_cv_prog_CC+set}" = set; then
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$CC"; then
  2756. ac_cv_prog_CC="$CC" # Let the user override the test.
  2757. else
  2758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2759. for as_dir in $PATH
  2760. do
  2761. IFS=$as_save_IFS
  2762. test -z "$as_dir" && as_dir=.
  2763. for ac_exec_ext in '' $ac_executable_extensions; do
  2764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2765. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2766. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767. break 2
  2768. fi
  2769. done
  2770. done
  2771. IFS=$as_save_IFS
  2772. fi
  2773. fi
  2774. CC=$ac_cv_prog_CC
  2775. if test -n "$CC"; then
  2776. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2777. $as_echo "$CC" >&6; }
  2778. else
  2779. { $as_echo "$as_me:$LINENO: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. fi
  2782. fi
  2783. fi
  2784. if test -z "$CC"; then
  2785. # Extract the first word of "cc", so it can be a program name with args.
  2786. set dummy cc; ac_word=$2
  2787. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2788. $as_echo_n "checking for $ac_word... " >&6; }
  2789. if test "${ac_cv_prog_CC+set}" = set; then
  2790. $as_echo_n "(cached) " >&6
  2791. else
  2792. if test -n "$CC"; then
  2793. ac_cv_prog_CC="$CC" # Let the user override the test.
  2794. else
  2795. ac_prog_rejected=no
  2796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2797. for as_dir in $PATH
  2798. do
  2799. IFS=$as_save_IFS
  2800. test -z "$as_dir" && as_dir=.
  2801. for ac_exec_ext in '' $ac_executable_extensions; do
  2802. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2803. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2804. ac_prog_rejected=yes
  2805. continue
  2806. fi
  2807. ac_cv_prog_CC="cc"
  2808. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2809. break 2
  2810. fi
  2811. done
  2812. done
  2813. IFS=$as_save_IFS
  2814. if test $ac_prog_rejected = yes; then
  2815. # We found a bogon in the path, so make sure we never use it.
  2816. set dummy $ac_cv_prog_CC
  2817. shift
  2818. if test $# != 0; then
  2819. # We chose a different compiler from the bogus one.
  2820. # However, it has the same basename, so the bogon will be chosen
  2821. # first if we set CC to just the basename; use the full file name.
  2822. shift
  2823. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2824. fi
  2825. fi
  2826. fi
  2827. fi
  2828. CC=$ac_cv_prog_CC
  2829. if test -n "$CC"; then
  2830. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2831. $as_echo "$CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:$LINENO: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. fi
  2837. if test -z "$CC"; then
  2838. if test -n "$ac_tool_prefix"; then
  2839. for ac_prog in cl.exe
  2840. do
  2841. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2842. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2843. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2844. $as_echo_n "checking for $ac_word... " >&6; }
  2845. if test "${ac_cv_prog_CC+set}" = set; then
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if test -n "$CC"; then
  2849. ac_cv_prog_CC="$CC" # Let the user override the test.
  2850. else
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2858. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2859. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2860. break 2
  2861. fi
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. fi
  2867. CC=$ac_cv_prog_CC
  2868. if test -n "$CC"; then
  2869. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2870. $as_echo "$CC" >&6; }
  2871. else
  2872. { $as_echo "$as_me:$LINENO: result: no" >&5
  2873. $as_echo "no" >&6; }
  2874. fi
  2875. test -n "$CC" && break
  2876. done
  2877. fi
  2878. if test -z "$CC"; then
  2879. ac_ct_CC=$CC
  2880. for ac_prog in cl.exe
  2881. do
  2882. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2883. set dummy $ac_prog; ac_word=$2
  2884. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2885. $as_echo_n "checking for $ac_word... " >&6; }
  2886. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. if test -n "$ac_ct_CC"; then
  2890. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2891. else
  2892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2893. for as_dir in $PATH
  2894. do
  2895. IFS=$as_save_IFS
  2896. test -z "$as_dir" && as_dir=.
  2897. for ac_exec_ext in '' $ac_executable_extensions; do
  2898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2899. ac_cv_prog_ac_ct_CC="$ac_prog"
  2900. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2901. break 2
  2902. fi
  2903. done
  2904. done
  2905. IFS=$as_save_IFS
  2906. fi
  2907. fi
  2908. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2909. if test -n "$ac_ct_CC"; then
  2910. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2911. $as_echo "$ac_ct_CC" >&6; }
  2912. else
  2913. { $as_echo "$as_me:$LINENO: result: no" >&5
  2914. $as_echo "no" >&6; }
  2915. fi
  2916. test -n "$ac_ct_CC" && break
  2917. done
  2918. if test "x$ac_ct_CC" = x; then
  2919. CC=""
  2920. else
  2921. case $cross_compiling:$ac_tool_warned in
  2922. yes:)
  2923. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2925. ac_tool_warned=yes ;;
  2926. esac
  2927. CC=$ac_ct_CC
  2928. fi
  2929. fi
  2930. fi
  2931. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2932. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2933. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2934. See \`config.log' for more details." >&5
  2935. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2936. See \`config.log' for more details." >&2;}
  2937. { (exit 1); exit 1; }; }; }
  2938. # Provide some information about the compiler.
  2939. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2940. set X $ac_compile
  2941. ac_compiler=$2
  2942. { (ac_try="$ac_compiler --version >&5"
  2943. case "(($ac_try" in
  2944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2945. *) ac_try_echo=$ac_try;;
  2946. esac
  2947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2948. $as_echo "$ac_try_echo") >&5
  2949. (eval "$ac_compiler --version >&5") 2>&5
  2950. ac_status=$?
  2951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2952. (exit $ac_status); }
  2953. { (ac_try="$ac_compiler -v >&5"
  2954. case "(($ac_try" in
  2955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2956. *) ac_try_echo=$ac_try;;
  2957. esac
  2958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2959. $as_echo "$ac_try_echo") >&5
  2960. (eval "$ac_compiler -v >&5") 2>&5
  2961. ac_status=$?
  2962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2963. (exit $ac_status); }
  2964. { (ac_try="$ac_compiler -V >&5"
  2965. case "(($ac_try" in
  2966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2967. *) ac_try_echo=$ac_try;;
  2968. esac
  2969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2970. $as_echo "$ac_try_echo") >&5
  2971. (eval "$ac_compiler -V >&5") 2>&5
  2972. ac_status=$?
  2973. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2974. (exit $ac_status); }
  2975. cat >conftest.$ac_ext <<_ACEOF
  2976. /* confdefs.h. */
  2977. _ACEOF
  2978. cat confdefs.h >>conftest.$ac_ext
  2979. cat >>conftest.$ac_ext <<_ACEOF
  2980. /* end confdefs.h. */
  2981. int
  2982. main ()
  2983. {
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. ac_clean_files_save=$ac_clean_files
  2989. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2990. # Try to create an executable without -o first, disregard a.out.
  2991. # It will help us diagnose broken compilers, and finding out an intuition
  2992. # of exeext.
  2993. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2994. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2995. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2996. # The possible output files:
  2997. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2998. ac_rmfiles=
  2999. for ac_file in $ac_files
  3000. do
  3001. case $ac_file in
  3002. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3003. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3004. esac
  3005. done
  3006. rm -f $ac_rmfiles
  3007. if { (ac_try="$ac_link_default"
  3008. case "(($ac_try" in
  3009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3010. *) ac_try_echo=$ac_try;;
  3011. esac
  3012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3013. $as_echo "$ac_try_echo") >&5
  3014. (eval "$ac_link_default") 2>&5
  3015. ac_status=$?
  3016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3017. (exit $ac_status); }; then
  3018. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3019. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3020. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3021. # so that the user can short-circuit this test for compilers unknown to
  3022. # Autoconf.
  3023. for ac_file in $ac_files ''
  3024. do
  3025. test -f "$ac_file" || continue
  3026. case $ac_file in
  3027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3028. ;;
  3029. [ab].out )
  3030. # We found the default executable, but exeext='' is most
  3031. # certainly right.
  3032. break;;
  3033. *.* )
  3034. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3035. then :; else
  3036. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3037. fi
  3038. # We set ac_cv_exeext here because the later test for it is not
  3039. # safe: cross compilers may not add the suffix if given an `-o'
  3040. # argument, so we may need to know it at that point already.
  3041. # Even if this section looks crufty: it has the advantage of
  3042. # actually working.
  3043. break;;
  3044. * )
  3045. break;;
  3046. esac
  3047. done
  3048. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3049. else
  3050. ac_file=''
  3051. fi
  3052. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3053. $as_echo "$ac_file" >&6; }
  3054. if test -z "$ac_file"; then
  3055. $as_echo "$as_me: failed program was:" >&5
  3056. sed 's/^/| /' conftest.$ac_ext >&5
  3057. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3058. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3059. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3060. See \`config.log' for more details." >&5
  3061. $as_echo "$as_me: error: C compiler cannot create executables
  3062. See \`config.log' for more details." >&2;}
  3063. { (exit 77); exit 77; }; }; }
  3064. fi
  3065. ac_exeext=$ac_cv_exeext
  3066. # Check that the compiler produces executables we can run. If not, either
  3067. # the compiler is broken, or we cross compile.
  3068. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3069. $as_echo_n "checking whether the C compiler works... " >&6; }
  3070. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3071. # If not cross compiling, check that we can run a simple program.
  3072. if test "$cross_compiling" != yes; then
  3073. if { ac_try='./$ac_file'
  3074. { (case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo") >&5
  3080. (eval "$ac_try") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3083. (exit $ac_status); }; }; then
  3084. cross_compiling=no
  3085. else
  3086. if test "$cross_compiling" = maybe; then
  3087. cross_compiling=yes
  3088. else
  3089. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3091. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3092. If you meant to cross compile, use \`--host'.
  3093. See \`config.log' for more details." >&5
  3094. $as_echo "$as_me: error: cannot run C compiled programs.
  3095. If you meant to cross compile, use \`--host'.
  3096. See \`config.log' for more details." >&2;}
  3097. { (exit 1); exit 1; }; }; }
  3098. fi
  3099. fi
  3100. fi
  3101. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3102. $as_echo "yes" >&6; }
  3103. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3104. ac_clean_files=$ac_clean_files_save
  3105. # Check that the compiler produces executables we can run. If not, either
  3106. # the compiler is broken, or we cross compile.
  3107. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3108. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3109. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3110. $as_echo "$cross_compiling" >&6; }
  3111. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3112. $as_echo_n "checking for suffix of executables... " >&6; }
  3113. if { (ac_try="$ac_link"
  3114. case "(($ac_try" in
  3115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. *) ac_try_echo=$ac_try;;
  3117. esac
  3118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3119. $as_echo "$ac_try_echo") >&5
  3120. (eval "$ac_link") 2>&5
  3121. ac_status=$?
  3122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. (exit $ac_status); }; then
  3124. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3125. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3126. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3127. # `rm'.
  3128. for ac_file in conftest.exe conftest conftest.*; do
  3129. test -f "$ac_file" || continue
  3130. case $ac_file in
  3131. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3132. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3133. break;;
  3134. * ) break;;
  3135. esac
  3136. done
  3137. else
  3138. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3140. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3141. See \`config.log' for more details." >&5
  3142. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3143. See \`config.log' for more details." >&2;}
  3144. { (exit 1); exit 1; }; }; }
  3145. fi
  3146. rm -f conftest$ac_cv_exeext
  3147. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3148. $as_echo "$ac_cv_exeext" >&6; }
  3149. rm -f conftest.$ac_ext
  3150. EXEEXT=$ac_cv_exeext
  3151. ac_exeext=$EXEEXT
  3152. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3153. $as_echo_n "checking for suffix of object files... " >&6; }
  3154. if test "${ac_cv_objext+set}" = set; then
  3155. $as_echo_n "(cached) " >&6
  3156. else
  3157. cat >conftest.$ac_ext <<_ACEOF
  3158. /* confdefs.h. */
  3159. _ACEOF
  3160. cat confdefs.h >>conftest.$ac_ext
  3161. cat >>conftest.$ac_ext <<_ACEOF
  3162. /* end confdefs.h. */
  3163. int
  3164. main ()
  3165. {
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. rm -f conftest.o conftest.obj
  3171. if { (ac_try="$ac_compile"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo") >&5
  3178. (eval "$ac_compile") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3181. (exit $ac_status); }; then
  3182. for ac_file in conftest.o conftest.obj conftest.*; do
  3183. test -f "$ac_file" || continue;
  3184. case $ac_file in
  3185. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3186. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3187. break;;
  3188. esac
  3189. done
  3190. else
  3191. $as_echo "$as_me: failed program was:" >&5
  3192. sed 's/^/| /' conftest.$ac_ext >&5
  3193. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3195. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3196. See \`config.log' for more details." >&5
  3197. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3198. See \`config.log' for more details." >&2;}
  3199. { (exit 1); exit 1; }; }; }
  3200. fi
  3201. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3202. fi
  3203. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3204. $as_echo "$ac_cv_objext" >&6; }
  3205. OBJEXT=$ac_cv_objext
  3206. ac_objext=$OBJEXT
  3207. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3208. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3209. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. cat >conftest.$ac_ext <<_ACEOF
  3213. /* confdefs.h. */
  3214. _ACEOF
  3215. cat confdefs.h >>conftest.$ac_ext
  3216. cat >>conftest.$ac_ext <<_ACEOF
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. #ifndef __GNUC__
  3222. choke me
  3223. #endif
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. rm -f conftest.$ac_objext
  3229. if { (ac_try="$ac_compile"
  3230. case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo") >&5
  3236. (eval "$ac_compile") 2>conftest.er1
  3237. ac_status=$?
  3238. grep -v '^ *+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } && {
  3243. test -z "$ac_c_werror_flag" ||
  3244. test ! -s conftest.err
  3245. } && test -s conftest.$ac_objext; then
  3246. ac_compiler_gnu=yes
  3247. else
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. ac_compiler_gnu=no
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3254. fi
  3255. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3256. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3257. if test $ac_compiler_gnu = yes; then
  3258. GCC=yes
  3259. else
  3260. GCC=
  3261. fi
  3262. ac_test_CFLAGS=${CFLAGS+set}
  3263. ac_save_CFLAGS=$CFLAGS
  3264. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3265. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3266. if test "${ac_cv_prog_cc_g+set}" = set; then
  3267. $as_echo_n "(cached) " >&6
  3268. else
  3269. ac_save_c_werror_flag=$ac_c_werror_flag
  3270. ac_c_werror_flag=yes
  3271. ac_cv_prog_cc_g=no
  3272. CFLAGS="-g"
  3273. cat >conftest.$ac_ext <<_ACEOF
  3274. /* confdefs.h. */
  3275. _ACEOF
  3276. cat confdefs.h >>conftest.$ac_ext
  3277. cat >>conftest.$ac_ext <<_ACEOF
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. rm -f conftest.$ac_objext
  3287. if { (ac_try="$ac_compile"
  3288. case "(($ac_try" in
  3289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3290. *) ac_try_echo=$ac_try;;
  3291. esac
  3292. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3293. $as_echo "$ac_try_echo") >&5
  3294. (eval "$ac_compile") 2>conftest.er1
  3295. ac_status=$?
  3296. grep -v '^ *+' conftest.er1 >conftest.err
  3297. rm -f conftest.er1
  3298. cat conftest.err >&5
  3299. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3300. (exit $ac_status); } && {
  3301. test -z "$ac_c_werror_flag" ||
  3302. test ! -s conftest.err
  3303. } && test -s conftest.$ac_objext; then
  3304. ac_cv_prog_cc_g=yes
  3305. else
  3306. $as_echo "$as_me: failed program was:" >&5
  3307. sed 's/^/| /' conftest.$ac_ext >&5
  3308. CFLAGS=""
  3309. cat >conftest.$ac_ext <<_ACEOF
  3310. /* confdefs.h. */
  3311. _ACEOF
  3312. cat confdefs.h >>conftest.$ac_ext
  3313. cat >>conftest.$ac_ext <<_ACEOF
  3314. /* end confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. rm -f conftest.$ac_objext
  3323. if { (ac_try="$ac_compile"
  3324. case "(($ac_try" in
  3325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3326. *) ac_try_echo=$ac_try;;
  3327. esac
  3328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3329. $as_echo "$ac_try_echo") >&5
  3330. (eval "$ac_compile") 2>conftest.er1
  3331. ac_status=$?
  3332. grep -v '^ *+' conftest.er1 >conftest.err
  3333. rm -f conftest.er1
  3334. cat conftest.err >&5
  3335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); } && {
  3337. test -z "$ac_c_werror_flag" ||
  3338. test ! -s conftest.err
  3339. } && test -s conftest.$ac_objext; then
  3340. :
  3341. else
  3342. $as_echo "$as_me: failed program was:" >&5
  3343. sed 's/^/| /' conftest.$ac_ext >&5
  3344. ac_c_werror_flag=$ac_save_c_werror_flag
  3345. CFLAGS="-g"
  3346. cat >conftest.$ac_ext <<_ACEOF
  3347. /* confdefs.h. */
  3348. _ACEOF
  3349. cat confdefs.h >>conftest.$ac_ext
  3350. cat >>conftest.$ac_ext <<_ACEOF
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. rm -f conftest.$ac_objext
  3360. if { (ac_try="$ac_compile"
  3361. case "(($ac_try" in
  3362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3363. *) ac_try_echo=$ac_try;;
  3364. esac
  3365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3366. $as_echo "$ac_try_echo") >&5
  3367. (eval "$ac_compile") 2>conftest.er1
  3368. ac_status=$?
  3369. grep -v '^ *+' conftest.er1 >conftest.err
  3370. rm -f conftest.er1
  3371. cat conftest.err >&5
  3372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3373. (exit $ac_status); } && {
  3374. test -z "$ac_c_werror_flag" ||
  3375. test ! -s conftest.err
  3376. } && test -s conftest.$ac_objext; then
  3377. ac_cv_prog_cc_g=yes
  3378. else
  3379. $as_echo "$as_me: failed program was:" >&5
  3380. sed 's/^/| /' conftest.$ac_ext >&5
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. ac_c_werror_flag=$ac_save_c_werror_flag
  3388. fi
  3389. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3390. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3391. if test "$ac_test_CFLAGS" = set; then
  3392. CFLAGS=$ac_save_CFLAGS
  3393. elif test $ac_cv_prog_cc_g = yes; then
  3394. if test "$GCC" = yes; then
  3395. CFLAGS="-g -O2"
  3396. else
  3397. CFLAGS="-g"
  3398. fi
  3399. else
  3400. if test "$GCC" = yes; then
  3401. CFLAGS="-O2"
  3402. else
  3403. CFLAGS=
  3404. fi
  3405. fi
  3406. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3407. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3408. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3409. $as_echo_n "(cached) " >&6
  3410. else
  3411. ac_cv_prog_cc_c89=no
  3412. ac_save_CC=$CC
  3413. cat >conftest.$ac_ext <<_ACEOF
  3414. /* confdefs.h. */
  3415. _ACEOF
  3416. cat confdefs.h >>conftest.$ac_ext
  3417. cat >>conftest.$ac_ext <<_ACEOF
  3418. /* end confdefs.h. */
  3419. #include <stdarg.h>
  3420. #include <stdio.h>
  3421. #include <sys/types.h>
  3422. #include <sys/stat.h>
  3423. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3424. struct buf { int x; };
  3425. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3426. static char *e (p, i)
  3427. char **p;
  3428. int i;
  3429. {
  3430. return p[i];
  3431. }
  3432. static char *f (char * (*g) (char **, int), char **p, ...)
  3433. {
  3434. char *s;
  3435. va_list v;
  3436. va_start (v,p);
  3437. s = g (p, va_arg (v,int));
  3438. va_end (v);
  3439. return s;
  3440. }
  3441. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3442. function prototypes and stuff, but not '\xHH' hex character constants.
  3443. These don't provoke an error unfortunately, instead are silently treated
  3444. as 'x'. The following induces an error, until -std is added to get
  3445. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3446. array size at least. It's necessary to write '\x00'==0 to get something
  3447. that's true only with -std. */
  3448. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3449. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3450. inside strings and character constants. */
  3451. #define FOO(x) 'x'
  3452. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3453. int test (int i, double x);
  3454. struct s1 {int (*f) (int a);};
  3455. struct s2 {int (*f) (double a);};
  3456. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3457. int argc;
  3458. char **argv;
  3459. int
  3460. main ()
  3461. {
  3462. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3463. ;
  3464. return 0;
  3465. }
  3466. _ACEOF
  3467. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3468. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3469. do
  3470. CC="$ac_save_CC $ac_arg"
  3471. rm -f conftest.$ac_objext
  3472. if { (ac_try="$ac_compile"
  3473. case "(($ac_try" in
  3474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3475. *) ac_try_echo=$ac_try;;
  3476. esac
  3477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3478. $as_echo "$ac_try_echo") >&5
  3479. (eval "$ac_compile") 2>conftest.er1
  3480. ac_status=$?
  3481. grep -v '^ *+' conftest.er1 >conftest.err
  3482. rm -f conftest.er1
  3483. cat conftest.err >&5
  3484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3485. (exit $ac_status); } && {
  3486. test -z "$ac_c_werror_flag" ||
  3487. test ! -s conftest.err
  3488. } && test -s conftest.$ac_objext; then
  3489. ac_cv_prog_cc_c89=$ac_arg
  3490. else
  3491. $as_echo "$as_me: failed program was:" >&5
  3492. sed 's/^/| /' conftest.$ac_ext >&5
  3493. fi
  3494. rm -f core conftest.err conftest.$ac_objext
  3495. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3496. done
  3497. rm -f conftest.$ac_ext
  3498. CC=$ac_save_CC
  3499. fi
  3500. # AC_CACHE_VAL
  3501. case "x$ac_cv_prog_cc_c89" in
  3502. x)
  3503. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3504. $as_echo "none needed" >&6; } ;;
  3505. xno)
  3506. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3507. $as_echo "unsupported" >&6; } ;;
  3508. *)
  3509. CC="$CC $ac_cv_prog_cc_c89"
  3510. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3511. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3512. esac
  3513. ac_ext=c
  3514. ac_cpp='$CPP $CPPFLAGS'
  3515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3518. DEPDIR="${am__leading_dot}deps"
  3519. ac_config_commands="$ac_config_commands depfiles"
  3520. am_make=${MAKE-make}
  3521. cat > confinc << 'END'
  3522. am__doit:
  3523. @echo this is the am__doit target
  3524. .PHONY: am__doit
  3525. END
  3526. # If we don't find an include directive, just comment out the code.
  3527. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3528. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3529. am__include="#"
  3530. am__quote=
  3531. _am_result=none
  3532. # First try GNU make style include.
  3533. echo "include confinc" > confmf
  3534. # Ignore all kinds of additional output from `make'.
  3535. case `$am_make -s -f confmf 2> /dev/null` in #(
  3536. *the\ am__doit\ target*)
  3537. am__include=include
  3538. am__quote=
  3539. _am_result=GNU
  3540. ;;
  3541. esac
  3542. # Now try BSD make style include.
  3543. if test "$am__include" = "#"; then
  3544. echo '.include "confinc"' > confmf
  3545. case `$am_make -s -f confmf 2> /dev/null` in #(
  3546. *the\ am__doit\ target*)
  3547. am__include=.include
  3548. am__quote="\""
  3549. _am_result=BSD
  3550. ;;
  3551. esac
  3552. fi
  3553. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3554. $as_echo "$_am_result" >&6; }
  3555. rm -f confinc confmf
  3556. # Check whether --enable-dependency-tracking was given.
  3557. if test "${enable_dependency_tracking+set}" = set; then
  3558. enableval=$enable_dependency_tracking;
  3559. fi
  3560. if test "x$enable_dependency_tracking" != xno; then
  3561. am_depcomp="$ac_aux_dir/depcomp"
  3562. AMDEPBACKSLASH='\'
  3563. fi
  3564. if test "x$enable_dependency_tracking" != xno; then
  3565. AMDEP_TRUE=
  3566. AMDEP_FALSE='#'
  3567. else
  3568. AMDEP_TRUE='#'
  3569. AMDEP_FALSE=
  3570. fi
  3571. depcc="$CC" am_compiler_list=
  3572. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3573. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3574. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3578. # We make a subdir and do the tests there. Otherwise we can end up
  3579. # making bogus files that we don't know about and never remove. For
  3580. # instance it was reported that on HP-UX the gcc test will end up
  3581. # making a dummy file named `D' -- because `-MD' means `put the output
  3582. # in D'.
  3583. mkdir conftest.dir
  3584. # Copy depcomp to subdir because otherwise we won't find it if we're
  3585. # using a relative directory.
  3586. cp "$am_depcomp" conftest.dir
  3587. cd conftest.dir
  3588. # We will build objects and dependencies in a subdirectory because
  3589. # it helps to detect inapplicable dependency modes. For instance
  3590. # both Tru64's cc and ICC support -MD to output dependencies as a
  3591. # side effect of compilation, but ICC will put the dependencies in
  3592. # the current directory while Tru64 will put them in the object
  3593. # directory.
  3594. mkdir sub
  3595. am_cv_CC_dependencies_compiler_type=none
  3596. if test "$am_compiler_list" = ""; then
  3597. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3598. fi
  3599. am__universal=false
  3600. case " $depcc " in #(
  3601. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3602. esac
  3603. for depmode in $am_compiler_list; do
  3604. # Setup a source with many dependencies, because some compilers
  3605. # like to wrap large dependency lists on column 80 (with \), and
  3606. # we should not choose a depcomp mode which is confused by this.
  3607. #
  3608. # We need to recreate these files for each test, as the compiler may
  3609. # overwrite some of them when testing with obscure command lines.
  3610. # This happens at least with the AIX C compiler.
  3611. : > sub/conftest.c
  3612. for i in 1 2 3 4 5 6; do
  3613. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3614. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3615. # Solaris 8's {/usr,}/bin/sh.
  3616. touch sub/conftst$i.h
  3617. done
  3618. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3619. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3620. # mode. It turns out that the SunPro C++ compiler does not properly
  3621. # handle `-M -o', and we need to detect this. Also, some Intel
  3622. # versions had trouble with output in subdirs
  3623. am__obj=sub/conftest.${OBJEXT-o}
  3624. am__minus_obj="-o $am__obj"
  3625. case $depmode in
  3626. gcc)
  3627. # This depmode causes a compiler race in universal mode.
  3628. test "$am__universal" = false || continue
  3629. ;;
  3630. nosideeffect)
  3631. # after this tag, mechanisms are not by side-effect, so they'll
  3632. # only be used when explicitly requested
  3633. if test "x$enable_dependency_tracking" = xyes; then
  3634. continue
  3635. else
  3636. break
  3637. fi
  3638. ;;
  3639. msvisualcpp | msvcmsys)
  3640. # This compiler won't grok `-c -o', but also, the minuso test has
  3641. # not run yet. These depmodes are late enough in the game, and
  3642. # so weak that their functioning should not be impacted.
  3643. am__obj=conftest.${OBJEXT-o}
  3644. am__minus_obj=
  3645. ;;
  3646. none) break ;;
  3647. esac
  3648. if depmode=$depmode \
  3649. source=sub/conftest.c object=$am__obj \
  3650. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3651. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3652. >/dev/null 2>conftest.err &&
  3653. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3654. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3655. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3656. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3657. # icc doesn't choke on unknown options, it will just issue warnings
  3658. # or remarks (even with -Werror). So we grep stderr for any message
  3659. # that says an option was ignored or not supported.
  3660. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3661. # icc: Command line warning: ignoring option '-M'; no argument required
  3662. # The diagnosis changed in icc 8.0:
  3663. # icc: Command line remark: option '-MP' not supported
  3664. if (grep 'ignoring option' conftest.err ||
  3665. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3666. am_cv_CC_dependencies_compiler_type=$depmode
  3667. break
  3668. fi
  3669. fi
  3670. done
  3671. cd ..
  3672. rm -rf conftest.dir
  3673. else
  3674. am_cv_CC_dependencies_compiler_type=none
  3675. fi
  3676. fi
  3677. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3678. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3679. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3680. if
  3681. test "x$enable_dependency_tracking" != xno \
  3682. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3683. am__fastdepCC_TRUE=
  3684. am__fastdepCC_FALSE='#'
  3685. else
  3686. am__fastdepCC_TRUE='#'
  3687. am__fastdepCC_FALSE=
  3688. fi
  3689. ac_ext=c
  3690. ac_cpp='$CPP $CPPFLAGS'
  3691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3694. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3695. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3696. # On Suns, sometimes $CPP names a directory.
  3697. if test -n "$CPP" && test -d "$CPP"; then
  3698. CPP=
  3699. fi
  3700. if test -z "$CPP"; then
  3701. if test "${ac_cv_prog_CPP+set}" = set; then
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. # Double quotes because CPP needs to be expanded
  3705. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3706. do
  3707. ac_preproc_ok=false
  3708. for ac_c_preproc_warn_flag in '' yes
  3709. do
  3710. # Use a header file that comes with gcc, so configuring glibc
  3711. # with a fresh cross-compiler works.
  3712. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3713. # <limits.h> exists even on freestanding compilers.
  3714. # On the NeXT, cc -E runs the code through the compiler's parser,
  3715. # not just through cpp. "Syntax error" is here to catch this case.
  3716. cat >conftest.$ac_ext <<_ACEOF
  3717. /* confdefs.h. */
  3718. _ACEOF
  3719. cat confdefs.h >>conftest.$ac_ext
  3720. cat >>conftest.$ac_ext <<_ACEOF
  3721. /* end confdefs.h. */
  3722. #ifdef __STDC__
  3723. # include <limits.h>
  3724. #else
  3725. # include <assert.h>
  3726. #endif
  3727. Syntax error
  3728. _ACEOF
  3729. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3730. case "(($ac_try" in
  3731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3732. *) ac_try_echo=$ac_try;;
  3733. esac
  3734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3735. $as_echo "$ac_try_echo") >&5
  3736. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3737. ac_status=$?
  3738. grep -v '^ *+' conftest.er1 >conftest.err
  3739. rm -f conftest.er1
  3740. cat conftest.err >&5
  3741. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3742. (exit $ac_status); } >/dev/null && {
  3743. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3744. test ! -s conftest.err
  3745. }; then
  3746. :
  3747. else
  3748. $as_echo "$as_me: failed program was:" >&5
  3749. sed 's/^/| /' conftest.$ac_ext >&5
  3750. # Broken: fails on valid input.
  3751. continue
  3752. fi
  3753. rm -f conftest.err conftest.$ac_ext
  3754. # OK, works on sane cases. Now check whether nonexistent headers
  3755. # can be detected and how.
  3756. cat >conftest.$ac_ext <<_ACEOF
  3757. /* confdefs.h. */
  3758. _ACEOF
  3759. cat confdefs.h >>conftest.$ac_ext
  3760. cat >>conftest.$ac_ext <<_ACEOF
  3761. /* end confdefs.h. */
  3762. #include <ac_nonexistent.h>
  3763. _ACEOF
  3764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3765. case "(($ac_try" in
  3766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3767. *) ac_try_echo=$ac_try;;
  3768. esac
  3769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3770. $as_echo "$ac_try_echo") >&5
  3771. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3772. ac_status=$?
  3773. grep -v '^ *+' conftest.er1 >conftest.err
  3774. rm -f conftest.er1
  3775. cat conftest.err >&5
  3776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3777. (exit $ac_status); } >/dev/null && {
  3778. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3779. test ! -s conftest.err
  3780. }; then
  3781. # Broken: success on invalid input.
  3782. continue
  3783. else
  3784. $as_echo "$as_me: failed program was:" >&5
  3785. sed 's/^/| /' conftest.$ac_ext >&5
  3786. # Passes both tests.
  3787. ac_preproc_ok=:
  3788. break
  3789. fi
  3790. rm -f conftest.err conftest.$ac_ext
  3791. done
  3792. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3793. rm -f conftest.err conftest.$ac_ext
  3794. if $ac_preproc_ok; then
  3795. break
  3796. fi
  3797. done
  3798. ac_cv_prog_CPP=$CPP
  3799. fi
  3800. CPP=$ac_cv_prog_CPP
  3801. else
  3802. ac_cv_prog_CPP=$CPP
  3803. fi
  3804. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3805. $as_echo "$CPP" >&6; }
  3806. ac_preproc_ok=false
  3807. for ac_c_preproc_warn_flag in '' yes
  3808. do
  3809. # Use a header file that comes with gcc, so configuring glibc
  3810. # with a fresh cross-compiler works.
  3811. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3812. # <limits.h> exists even on freestanding compilers.
  3813. # On the NeXT, cc -E runs the code through the compiler's parser,
  3814. # not just through cpp. "Syntax error" is here to catch this case.
  3815. cat >conftest.$ac_ext <<_ACEOF
  3816. /* confdefs.h. */
  3817. _ACEOF
  3818. cat confdefs.h >>conftest.$ac_ext
  3819. cat >>conftest.$ac_ext <<_ACEOF
  3820. /* end confdefs.h. */
  3821. #ifdef __STDC__
  3822. # include <limits.h>
  3823. #else
  3824. # include <assert.h>
  3825. #endif
  3826. Syntax error
  3827. _ACEOF
  3828. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3829. case "(($ac_try" in
  3830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3831. *) ac_try_echo=$ac_try;;
  3832. esac
  3833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3834. $as_echo "$ac_try_echo") >&5
  3835. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3836. ac_status=$?
  3837. grep -v '^ *+' conftest.er1 >conftest.err
  3838. rm -f conftest.er1
  3839. cat conftest.err >&5
  3840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); } >/dev/null && {
  3842. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3843. test ! -s conftest.err
  3844. }; then
  3845. :
  3846. else
  3847. $as_echo "$as_me: failed program was:" >&5
  3848. sed 's/^/| /' conftest.$ac_ext >&5
  3849. # Broken: fails on valid input.
  3850. continue
  3851. fi
  3852. rm -f conftest.err conftest.$ac_ext
  3853. # OK, works on sane cases. Now check whether nonexistent headers
  3854. # can be detected and how.
  3855. cat >conftest.$ac_ext <<_ACEOF
  3856. /* confdefs.h. */
  3857. _ACEOF
  3858. cat confdefs.h >>conftest.$ac_ext
  3859. cat >>conftest.$ac_ext <<_ACEOF
  3860. /* end confdefs.h. */
  3861. #include <ac_nonexistent.h>
  3862. _ACEOF
  3863. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3864. case "(($ac_try" in
  3865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3866. *) ac_try_echo=$ac_try;;
  3867. esac
  3868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3869. $as_echo "$ac_try_echo") >&5
  3870. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3871. ac_status=$?
  3872. grep -v '^ *+' conftest.er1 >conftest.err
  3873. rm -f conftest.er1
  3874. cat conftest.err >&5
  3875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); } >/dev/null && {
  3877. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3878. test ! -s conftest.err
  3879. }; then
  3880. # Broken: success on invalid input.
  3881. continue
  3882. else
  3883. $as_echo "$as_me: failed program was:" >&5
  3884. sed 's/^/| /' conftest.$ac_ext >&5
  3885. # Passes both tests.
  3886. ac_preproc_ok=:
  3887. break
  3888. fi
  3889. rm -f conftest.err conftest.$ac_ext
  3890. done
  3891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3892. rm -f conftest.err conftest.$ac_ext
  3893. if $ac_preproc_ok; then
  3894. :
  3895. else
  3896. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3897. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3898. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3899. See \`config.log' for more details." >&5
  3900. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3901. See \`config.log' for more details." >&2;}
  3902. { (exit 1); exit 1; }; }; }
  3903. fi
  3904. ac_ext=c
  3905. ac_cpp='$CPP $CPPFLAGS'
  3906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3909. # Find a good install program. We prefer a C program (faster),
  3910. # so one script is as good as another. But avoid the broken or
  3911. # incompatible versions:
  3912. # SysV /etc/install, /usr/sbin/install
  3913. # SunOS /usr/etc/install
  3914. # IRIX /sbin/install
  3915. # AIX /bin/install
  3916. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3917. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3918. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3919. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3920. # OS/2's system install, which has a completely different semantic
  3921. # ./install, which can be erroneously created by make from ./install.sh.
  3922. # Reject install programs that cannot install multiple files.
  3923. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3924. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3925. if test -z "$INSTALL"; then
  3926. if test "${ac_cv_path_install+set}" = set; then
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. # Account for people who put trailing slashes in PATH elements.
  3935. case $as_dir/ in
  3936. ./ | .// | /cC/* | \
  3937. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3938. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3939. /usr/ucb/* ) ;;
  3940. *)
  3941. # OSF1 and SCO ODT 3.0 have their own names for install.
  3942. # Don't use installbsd from OSF since it installs stuff as root
  3943. # by default.
  3944. for ac_prog in ginstall scoinst install; do
  3945. for ac_exec_ext in '' $ac_executable_extensions; do
  3946. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3947. if test $ac_prog = install &&
  3948. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3949. # AIX install. It has an incompatible calling convention.
  3950. :
  3951. elif test $ac_prog = install &&
  3952. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3953. # program-specific install script used by HP pwplus--don't use.
  3954. :
  3955. else
  3956. rm -rf conftest.one conftest.two conftest.dir
  3957. echo one > conftest.one
  3958. echo two > conftest.two
  3959. mkdir conftest.dir
  3960. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3961. test -s conftest.one && test -s conftest.two &&
  3962. test -s conftest.dir/conftest.one &&
  3963. test -s conftest.dir/conftest.two
  3964. then
  3965. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3966. break 3
  3967. fi
  3968. fi
  3969. fi
  3970. done
  3971. done
  3972. ;;
  3973. esac
  3974. done
  3975. IFS=$as_save_IFS
  3976. rm -rf conftest.one conftest.two conftest.dir
  3977. fi
  3978. if test "${ac_cv_path_install+set}" = set; then
  3979. INSTALL=$ac_cv_path_install
  3980. else
  3981. # As a last resort, use the slow shell script. Don't cache a
  3982. # value for INSTALL within a source directory, because that will
  3983. # break other packages using the cache if that directory is
  3984. # removed, or if the value is a relative name.
  3985. INSTALL=$ac_install_sh
  3986. fi
  3987. fi
  3988. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  3989. $as_echo "$INSTALL" >&6; }
  3990. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3991. # It thinks the first close brace ends the variable substitution.
  3992. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3993. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3994. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3995. # Extract the first word of "strip", so it can be a program name with args.
  3996. set dummy strip; ac_word=$2
  3997. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3998. $as_echo_n "checking for $ac_word... " >&6; }
  3999. if test "${ac_cv_path_STRIP+set}" = set; then
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. case $STRIP in
  4003. [\\/]* | ?:[\\/]*)
  4004. ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
  4005. ;;
  4006. *)
  4007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4008. for as_dir in $PATH
  4009. do
  4010. IFS=$as_save_IFS
  4011. test -z "$as_dir" && as_dir=.
  4012. for ac_exec_ext in '' $ac_executable_extensions; do
  4013. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4014. ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
  4015. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4016. break 2
  4017. fi
  4018. done
  4019. done
  4020. IFS=$as_save_IFS
  4021. test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
  4022. ;;
  4023. esac
  4024. fi
  4025. STRIP=$ac_cv_path_STRIP
  4026. if test -n "$STRIP"; then
  4027. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4028. $as_echo "$STRIP" >&6; }
  4029. else
  4030. { $as_echo "$as_me:$LINENO: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. # Installed binaries are usually stripped using `strip' when the user
  4034. # run `make install-strip'. However `strip' might not be the right
  4035. # tool to use in cross-compilation environments, therefore Automake
  4036. # will honor the `STRIP' environment variable to overrule this program.
  4037. if test "$cross_compiling" != no; then
  4038. if test -n "$ac_tool_prefix"; then
  4039. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4040. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4041. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4042. $as_echo_n "checking for $ac_word... " >&6; }
  4043. if test "${ac_cv_prog_STRIP+set}" = set; then
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$STRIP"; then
  4047. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4048. else
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4056. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4057. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4058. break 2
  4059. fi
  4060. done
  4061. done
  4062. IFS=$as_save_IFS
  4063. fi
  4064. fi
  4065. STRIP=$ac_cv_prog_STRIP
  4066. if test -n "$STRIP"; then
  4067. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4068. $as_echo "$STRIP" >&6; }
  4069. else
  4070. { $as_echo "$as_me:$LINENO: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072. fi
  4073. fi
  4074. if test -z "$ac_cv_prog_STRIP"; then
  4075. ac_ct_STRIP=$STRIP
  4076. # Extract the first word of "strip", so it can be a program name with args.
  4077. set dummy strip; ac_word=$2
  4078. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4079. $as_echo_n "checking for $ac_word... " >&6; }
  4080. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. if test -n "$ac_ct_STRIP"; then
  4084. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4085. else
  4086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4087. for as_dir in $PATH
  4088. do
  4089. IFS=$as_save_IFS
  4090. test -z "$as_dir" && as_dir=.
  4091. for ac_exec_ext in '' $ac_executable_extensions; do
  4092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4093. ac_cv_prog_ac_ct_STRIP="strip"
  4094. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4095. break 2
  4096. fi
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. fi
  4101. fi
  4102. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4103. if test -n "$ac_ct_STRIP"; then
  4104. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4105. $as_echo "$ac_ct_STRIP" >&6; }
  4106. else
  4107. { $as_echo "$as_me:$LINENO: result: no" >&5
  4108. $as_echo "no" >&6; }
  4109. fi
  4110. if test "x$ac_ct_STRIP" = x; then
  4111. STRIP=":"
  4112. else
  4113. case $cross_compiling:$ac_tool_warned in
  4114. yes:)
  4115. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4117. ac_tool_warned=yes ;;
  4118. esac
  4119. STRIP=$ac_ct_STRIP
  4120. fi
  4121. else
  4122. STRIP="$ac_cv_prog_STRIP"
  4123. fi
  4124. fi
  4125. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4126. # Make sure we can run config.sub.
  4127. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4128. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4129. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4130. { (exit 1); exit 1; }; }
  4131. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  4132. $as_echo_n "checking build system type... " >&6; }
  4133. if test "${ac_cv_build+set}" = set; then
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. ac_build_alias=$build_alias
  4137. test "x$ac_build_alias" = x &&
  4138. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4139. test "x$ac_build_alias" = x &&
  4140. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4141. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4142. { (exit 1); exit 1; }; }
  4143. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4144. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4145. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4146. { (exit 1); exit 1; }; }
  4147. fi
  4148. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4149. $as_echo "$ac_cv_build" >&6; }
  4150. case $ac_cv_build in
  4151. *-*-*) ;;
  4152. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4153. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  4154. { (exit 1); exit 1; }; };;
  4155. esac
  4156. build=$ac_cv_build
  4157. ac_save_IFS=$IFS; IFS='-'
  4158. set x $ac_cv_build
  4159. shift
  4160. build_cpu=$1
  4161. build_vendor=$2
  4162. shift; shift
  4163. # Remember, the first character of IFS is used to create $*,
  4164. # except with old shells:
  4165. build_os=$*
  4166. IFS=$ac_save_IFS
  4167. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4168. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  4169. $as_echo_n "checking host system type... " >&6; }
  4170. if test "${ac_cv_host+set}" = set; then
  4171. $as_echo_n "(cached) " >&6
  4172. else
  4173. if test "x$host_alias" = x; then
  4174. ac_cv_host=$ac_cv_build
  4175. else
  4176. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4177. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4178. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4179. { (exit 1); exit 1; }; }
  4180. fi
  4181. fi
  4182. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4183. $as_echo "$ac_cv_host" >&6; }
  4184. case $ac_cv_host in
  4185. *-*-*) ;;
  4186. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4187. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  4188. { (exit 1); exit 1; }; };;
  4189. esac
  4190. host=$ac_cv_host
  4191. ac_save_IFS=$IFS; IFS='-'
  4192. set x $ac_cv_host
  4193. shift
  4194. host_cpu=$1
  4195. host_vendor=$2
  4196. shift; shift
  4197. # Remember, the first character of IFS is used to create $*,
  4198. # except with old shells:
  4199. host_os=$*
  4200. IFS=$ac_save_IFS
  4201. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4202. if test -n "$ac_tool_prefix"; then
  4203. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4204. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4205. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4206. $as_echo_n "checking for $ac_word... " >&6; }
  4207. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. if test -n "$RANLIB"; then
  4211. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4212. else
  4213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4214. for as_dir in $PATH
  4215. do
  4216. IFS=$as_save_IFS
  4217. test -z "$as_dir" && as_dir=.
  4218. for ac_exec_ext in '' $ac_executable_extensions; do
  4219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4220. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4221. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4222. break 2
  4223. fi
  4224. done
  4225. done
  4226. IFS=$as_save_IFS
  4227. fi
  4228. fi
  4229. RANLIB=$ac_cv_prog_RANLIB
  4230. if test -n "$RANLIB"; then
  4231. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4232. $as_echo "$RANLIB" >&6; }
  4233. else
  4234. { $as_echo "$as_me:$LINENO: result: no" >&5
  4235. $as_echo "no" >&6; }
  4236. fi
  4237. fi
  4238. if test -z "$ac_cv_prog_RANLIB"; then
  4239. ac_ct_RANLIB=$RANLIB
  4240. # Extract the first word of "ranlib", so it can be a program name with args.
  4241. set dummy ranlib; ac_word=$2
  4242. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4243. $as_echo_n "checking for $ac_word... " >&6; }
  4244. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. if test -n "$ac_ct_RANLIB"; then
  4248. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4249. else
  4250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4251. for as_dir in $PATH
  4252. do
  4253. IFS=$as_save_IFS
  4254. test -z "$as_dir" && as_dir=.
  4255. for ac_exec_ext in '' $ac_executable_extensions; do
  4256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4257. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4258. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4259. break 2
  4260. fi
  4261. done
  4262. done
  4263. IFS=$as_save_IFS
  4264. fi
  4265. fi
  4266. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4267. if test -n "$ac_ct_RANLIB"; then
  4268. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4269. $as_echo "$ac_ct_RANLIB" >&6; }
  4270. else
  4271. { $as_echo "$as_me:$LINENO: result: no" >&5
  4272. $as_echo "no" >&6; }
  4273. fi
  4274. if test "x$ac_ct_RANLIB" = x; then
  4275. RANLIB=":"
  4276. else
  4277. case $cross_compiling:$ac_tool_warned in
  4278. yes:)
  4279. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4280. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4281. ac_tool_warned=yes ;;
  4282. esac
  4283. RANLIB=$ac_ct_RANLIB
  4284. fi
  4285. else
  4286. RANLIB="$ac_cv_prog_RANLIB"
  4287. fi
  4288. if test "x$CC" != xcc; then
  4289. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4290. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4291. else
  4292. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4293. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4294. fi
  4295. set dummy $CC; ac_cc=`$as_echo "$2" |
  4296. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4297. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. cat >conftest.$ac_ext <<_ACEOF
  4301. /* confdefs.h. */
  4302. _ACEOF
  4303. cat confdefs.h >>conftest.$ac_ext
  4304. cat >>conftest.$ac_ext <<_ACEOF
  4305. /* end confdefs.h. */
  4306. int
  4307. main ()
  4308. {
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. # Make sure it works both with $CC and with simple cc.
  4314. # We do the test twice because some compilers refuse to overwrite an
  4315. # existing .o file with -o, though they will create one.
  4316. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4317. rm -f conftest2.*
  4318. if { (case "(($ac_try" in
  4319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4320. *) ac_try_echo=$ac_try;;
  4321. esac
  4322. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4323. $as_echo "$ac_try_echo") >&5
  4324. (eval "$ac_try") 2>&5
  4325. ac_status=$?
  4326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); } &&
  4328. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4330. *) ac_try_echo=$ac_try;;
  4331. esac
  4332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4333. $as_echo "$ac_try_echo") >&5
  4334. (eval "$ac_try") 2>&5
  4335. ac_status=$?
  4336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4337. (exit $ac_status); };
  4338. then
  4339. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4340. if test "x$CC" != xcc; then
  4341. # Test first that cc exists at all.
  4342. if { ac_try='cc -c conftest.$ac_ext >&5'
  4343. { (case "(($ac_try" in
  4344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345. *) ac_try_echo=$ac_try;;
  4346. esac
  4347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4348. $as_echo "$ac_try_echo") >&5
  4349. (eval "$ac_try") 2>&5
  4350. ac_status=$?
  4351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4352. (exit $ac_status); }; }; then
  4353. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4354. rm -f conftest2.*
  4355. if { (case "(($ac_try" in
  4356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357. *) ac_try_echo=$ac_try;;
  4358. esac
  4359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4360. $as_echo "$ac_try_echo") >&5
  4361. (eval "$ac_try") 2>&5
  4362. ac_status=$?
  4363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); } &&
  4365. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4367. *) ac_try_echo=$ac_try;;
  4368. esac
  4369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4370. $as_echo "$ac_try_echo") >&5
  4371. (eval "$ac_try") 2>&5
  4372. ac_status=$?
  4373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4374. (exit $ac_status); };
  4375. then
  4376. # cc works too.
  4377. :
  4378. else
  4379. # cc exists but doesn't like -o.
  4380. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4381. fi
  4382. fi
  4383. fi
  4384. else
  4385. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4386. fi
  4387. rm -f core conftest*
  4388. fi
  4389. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4390. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4391. $as_echo "yes" >&6; }
  4392. else
  4393. { $as_echo "$as_me:$LINENO: result: no" >&5
  4394. $as_echo "no" >&6; }
  4395. cat >>confdefs.h <<\_ACEOF
  4396. #define NO_MINUS_C_MINUS_O 1
  4397. _ACEOF
  4398. fi
  4399. # FIXME: we rely on the cache variable name because
  4400. # there is no other way.
  4401. set dummy $CC
  4402. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4403. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4404. if test "$am_t" != yes; then
  4405. # Losing compiler, so override with the script.
  4406. # FIXME: It is wrong to rewrite CC.
  4407. # But if we don't then we get into trouble of one sort or another.
  4408. # A longer-term fix would be to have automake use am__CC in this case,
  4409. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4410. CC="$am_aux_dir/compile $CC"
  4411. fi
  4412. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4413. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4414. if test "${ac_cv_path_GREP+set}" = set; then
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. if test -z "$GREP"; then
  4418. ac_path_GREP_found=false
  4419. # Loop through the user's path and test for each of PROGNAME-LIST
  4420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4421. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4422. do
  4423. IFS=$as_save_IFS
  4424. test -z "$as_dir" && as_dir=.
  4425. for ac_prog in grep ggrep; do
  4426. for ac_exec_ext in '' $ac_executable_extensions; do
  4427. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4428. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4429. # Check for GNU ac_path_GREP and select it if it is found.
  4430. # Check for GNU $ac_path_GREP
  4431. case `"$ac_path_GREP" --version 2>&1` in
  4432. *GNU*)
  4433. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4434. *)
  4435. ac_count=0
  4436. $as_echo_n 0123456789 >"conftest.in"
  4437. while :
  4438. do
  4439. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4440. mv "conftest.tmp" "conftest.in"
  4441. cp "conftest.in" "conftest.nl"
  4442. $as_echo 'GREP' >> "conftest.nl"
  4443. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4444. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4445. ac_count=`expr $ac_count + 1`
  4446. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4447. # Best one so far, save it but keep looking for a better one
  4448. ac_cv_path_GREP="$ac_path_GREP"
  4449. ac_path_GREP_max=$ac_count
  4450. fi
  4451. # 10*(2^10) chars as input seems more than enough
  4452. test $ac_count -gt 10 && break
  4453. done
  4454. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4455. esac
  4456. $ac_path_GREP_found && break 3
  4457. done
  4458. done
  4459. done
  4460. IFS=$as_save_IFS
  4461. if test -z "$ac_cv_path_GREP"; then
  4462. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4463. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4464. { (exit 1); exit 1; }; }
  4465. fi
  4466. else
  4467. ac_cv_path_GREP=$GREP
  4468. fi
  4469. fi
  4470. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4471. $as_echo "$ac_cv_path_GREP" >&6; }
  4472. GREP="$ac_cv_path_GREP"
  4473. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4474. $as_echo_n "checking for egrep... " >&6; }
  4475. if test "${ac_cv_path_EGREP+set}" = set; then
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4479. then ac_cv_path_EGREP="$GREP -E"
  4480. else
  4481. if test -z "$EGREP"; then
  4482. ac_path_EGREP_found=false
  4483. # Loop through the user's path and test for each of PROGNAME-LIST
  4484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4486. do
  4487. IFS=$as_save_IFS
  4488. test -z "$as_dir" && as_dir=.
  4489. for ac_prog in egrep; do
  4490. for ac_exec_ext in '' $ac_executable_extensions; do
  4491. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4492. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4493. # Check for GNU ac_path_EGREP and select it if it is found.
  4494. # Check for GNU $ac_path_EGREP
  4495. case `"$ac_path_EGREP" --version 2>&1` in
  4496. *GNU*)
  4497. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4498. *)
  4499. ac_count=0
  4500. $as_echo_n 0123456789 >"conftest.in"
  4501. while :
  4502. do
  4503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4504. mv "conftest.tmp" "conftest.in"
  4505. cp "conftest.in" "conftest.nl"
  4506. $as_echo 'EGREP' >> "conftest.nl"
  4507. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4509. ac_count=`expr $ac_count + 1`
  4510. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4511. # Best one so far, save it but keep looking for a better one
  4512. ac_cv_path_EGREP="$ac_path_EGREP"
  4513. ac_path_EGREP_max=$ac_count
  4514. fi
  4515. # 10*(2^10) chars as input seems more than enough
  4516. test $ac_count -gt 10 && break
  4517. done
  4518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4519. esac
  4520. $ac_path_EGREP_found && break 3
  4521. done
  4522. done
  4523. done
  4524. IFS=$as_save_IFS
  4525. if test -z "$ac_cv_path_EGREP"; then
  4526. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4527. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4528. { (exit 1); exit 1; }; }
  4529. fi
  4530. else
  4531. ac_cv_path_EGREP=$EGREP
  4532. fi
  4533. fi
  4534. fi
  4535. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4536. $as_echo "$ac_cv_path_EGREP" >&6; }
  4537. EGREP="$ac_cv_path_EGREP"
  4538. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4539. $as_echo_n "checking for ANSI C header files... " >&6; }
  4540. if test "${ac_cv_header_stdc+set}" = set; then
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <stdlib.h>
  4550. #include <stdarg.h>
  4551. #include <string.h>
  4552. #include <float.h>
  4553. int
  4554. main ()
  4555. {
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. rm -f conftest.$ac_objext
  4561. if { (ac_try="$ac_compile"
  4562. case "(($ac_try" in
  4563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4564. *) ac_try_echo=$ac_try;;
  4565. esac
  4566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4567. $as_echo "$ac_try_echo") >&5
  4568. (eval "$ac_compile") 2>conftest.er1
  4569. ac_status=$?
  4570. grep -v '^ *+' conftest.er1 >conftest.err
  4571. rm -f conftest.er1
  4572. cat conftest.err >&5
  4573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } && {
  4575. test -z "$ac_c_werror_flag" ||
  4576. test ! -s conftest.err
  4577. } && test -s conftest.$ac_objext; then
  4578. ac_cv_header_stdc=yes
  4579. else
  4580. $as_echo "$as_me: failed program was:" >&5
  4581. sed 's/^/| /' conftest.$ac_ext >&5
  4582. ac_cv_header_stdc=no
  4583. fi
  4584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4585. if test $ac_cv_header_stdc = yes; then
  4586. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4587. cat >conftest.$ac_ext <<_ACEOF
  4588. /* confdefs.h. */
  4589. _ACEOF
  4590. cat confdefs.h >>conftest.$ac_ext
  4591. cat >>conftest.$ac_ext <<_ACEOF
  4592. /* end confdefs.h. */
  4593. #include <string.h>
  4594. _ACEOF
  4595. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4596. $EGREP "memchr" >/dev/null 2>&1; then
  4597. :
  4598. else
  4599. ac_cv_header_stdc=no
  4600. fi
  4601. rm -f conftest*
  4602. fi
  4603. if test $ac_cv_header_stdc = yes; then
  4604. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4605. cat >conftest.$ac_ext <<_ACEOF
  4606. /* confdefs.h. */
  4607. _ACEOF
  4608. cat confdefs.h >>conftest.$ac_ext
  4609. cat >>conftest.$ac_ext <<_ACEOF
  4610. /* end confdefs.h. */
  4611. #include <stdlib.h>
  4612. _ACEOF
  4613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4614. $EGREP "free" >/dev/null 2>&1; then
  4615. :
  4616. else
  4617. ac_cv_header_stdc=no
  4618. fi
  4619. rm -f conftest*
  4620. fi
  4621. if test $ac_cv_header_stdc = yes; then
  4622. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4623. if test "$cross_compiling" = yes; then
  4624. :
  4625. else
  4626. cat >conftest.$ac_ext <<_ACEOF
  4627. /* confdefs.h. */
  4628. _ACEOF
  4629. cat confdefs.h >>conftest.$ac_ext
  4630. cat >>conftest.$ac_ext <<_ACEOF
  4631. /* end confdefs.h. */
  4632. #include <ctype.h>
  4633. #include <stdlib.h>
  4634. #if ((' ' & 0x0FF) == 0x020)
  4635. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4636. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4637. #else
  4638. # define ISLOWER(c) \
  4639. (('a' <= (c) && (c) <= 'i') \
  4640. || ('j' <= (c) && (c) <= 'r') \
  4641. || ('s' <= (c) && (c) <= 'z'))
  4642. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4643. #endif
  4644. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4645. int
  4646. main ()
  4647. {
  4648. int i;
  4649. for (i = 0; i < 256; i++)
  4650. if (XOR (islower (i), ISLOWER (i))
  4651. || toupper (i) != TOUPPER (i))
  4652. return 2;
  4653. return 0;
  4654. }
  4655. _ACEOF
  4656. rm -f conftest$ac_exeext
  4657. if { (ac_try="$ac_link"
  4658. case "(($ac_try" in
  4659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4660. *) ac_try_echo=$ac_try;;
  4661. esac
  4662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4663. $as_echo "$ac_try_echo") >&5
  4664. (eval "$ac_link") 2>&5
  4665. ac_status=$?
  4666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4667. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4668. { (case "(($ac_try" in
  4669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4670. *) ac_try_echo=$ac_try;;
  4671. esac
  4672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4673. $as_echo "$ac_try_echo") >&5
  4674. (eval "$ac_try") 2>&5
  4675. ac_status=$?
  4676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); }; }; then
  4678. :
  4679. else
  4680. $as_echo "$as_me: program exited with status $ac_status" >&5
  4681. $as_echo "$as_me: failed program was:" >&5
  4682. sed 's/^/| /' conftest.$ac_ext >&5
  4683. ( exit $ac_status )
  4684. ac_cv_header_stdc=no
  4685. fi
  4686. rm -rf conftest.dSYM
  4687. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. fi
  4690. fi
  4691. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4692. $as_echo "$ac_cv_header_stdc" >&6; }
  4693. if test $ac_cv_header_stdc = yes; then
  4694. cat >>confdefs.h <<\_ACEOF
  4695. #define STDC_HEADERS 1
  4696. _ACEOF
  4697. fi
  4698. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4699. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4700. inttypes.h stdint.h unistd.h
  4701. do
  4702. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4703. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4704. $as_echo_n "checking for $ac_header... " >&6; }
  4705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. cat >conftest.$ac_ext <<_ACEOF
  4709. /* confdefs.h. */
  4710. _ACEOF
  4711. cat confdefs.h >>conftest.$ac_ext
  4712. cat >>conftest.$ac_ext <<_ACEOF
  4713. /* end confdefs.h. */
  4714. $ac_includes_default
  4715. #include <$ac_header>
  4716. _ACEOF
  4717. rm -f conftest.$ac_objext
  4718. if { (ac_try="$ac_compile"
  4719. case "(($ac_try" in
  4720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4721. *) ac_try_echo=$ac_try;;
  4722. esac
  4723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4724. $as_echo "$ac_try_echo") >&5
  4725. (eval "$ac_compile") 2>conftest.er1
  4726. ac_status=$?
  4727. grep -v '^ *+' conftest.er1 >conftest.err
  4728. rm -f conftest.er1
  4729. cat conftest.err >&5
  4730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); } && {
  4732. test -z "$ac_c_werror_flag" ||
  4733. test ! -s conftest.err
  4734. } && test -s conftest.$ac_objext; then
  4735. eval "$as_ac_Header=yes"
  4736. else
  4737. $as_echo "$as_me: failed program was:" >&5
  4738. sed 's/^/| /' conftest.$ac_ext >&5
  4739. eval "$as_ac_Header=no"
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4742. fi
  4743. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4744. $as_echo "$as_val"'`
  4745. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4746. $as_echo "$ac_res" >&6; }
  4747. as_val=`eval 'as_val=${'$as_ac_Header'}
  4748. $as_echo "$as_val"'`
  4749. if test "x$as_val" = x""yes; then
  4750. cat >>confdefs.h <<_ACEOF
  4751. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4752. _ACEOF
  4753. fi
  4754. done
  4755. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4756. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4757. $as_echo_n "checking for minix/config.h... " >&6; }
  4758. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4759. $as_echo_n "(cached) " >&6
  4760. fi
  4761. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4762. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4763. else
  4764. # Is the header compilable?
  4765. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4766. $as_echo_n "checking minix/config.h usability... " >&6; }
  4767. cat >conftest.$ac_ext <<_ACEOF
  4768. /* confdefs.h. */
  4769. _ACEOF
  4770. cat confdefs.h >>conftest.$ac_ext
  4771. cat >>conftest.$ac_ext <<_ACEOF
  4772. /* end confdefs.h. */
  4773. $ac_includes_default
  4774. #include <minix/config.h>
  4775. _ACEOF
  4776. rm -f conftest.$ac_objext
  4777. if { (ac_try="$ac_compile"
  4778. case "(($ac_try" in
  4779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4780. *) ac_try_echo=$ac_try;;
  4781. esac
  4782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4783. $as_echo "$ac_try_echo") >&5
  4784. (eval "$ac_compile") 2>conftest.er1
  4785. ac_status=$?
  4786. grep -v '^ *+' conftest.er1 >conftest.err
  4787. rm -f conftest.er1
  4788. cat conftest.err >&5
  4789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4790. (exit $ac_status); } && {
  4791. test -z "$ac_c_werror_flag" ||
  4792. test ! -s conftest.err
  4793. } && test -s conftest.$ac_objext; then
  4794. ac_header_compiler=yes
  4795. else
  4796. $as_echo "$as_me: failed program was:" >&5
  4797. sed 's/^/| /' conftest.$ac_ext >&5
  4798. ac_header_compiler=no
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4802. $as_echo "$ac_header_compiler" >&6; }
  4803. # Is the header present?
  4804. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4805. $as_echo_n "checking minix/config.h presence... " >&6; }
  4806. cat >conftest.$ac_ext <<_ACEOF
  4807. /* confdefs.h. */
  4808. _ACEOF
  4809. cat confdefs.h >>conftest.$ac_ext
  4810. cat >>conftest.$ac_ext <<_ACEOF
  4811. /* end confdefs.h. */
  4812. #include <minix/config.h>
  4813. _ACEOF
  4814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4815. case "(($ac_try" in
  4816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4817. *) ac_try_echo=$ac_try;;
  4818. esac
  4819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4820. $as_echo "$ac_try_echo") >&5
  4821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4822. ac_status=$?
  4823. grep -v '^ *+' conftest.er1 >conftest.err
  4824. rm -f conftest.er1
  4825. cat conftest.err >&5
  4826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4827. (exit $ac_status); } >/dev/null && {
  4828. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4829. test ! -s conftest.err
  4830. }; then
  4831. ac_header_preproc=yes
  4832. else
  4833. $as_echo "$as_me: failed program was:" >&5
  4834. sed 's/^/| /' conftest.$ac_ext >&5
  4835. ac_header_preproc=no
  4836. fi
  4837. rm -f conftest.err conftest.$ac_ext
  4838. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4839. $as_echo "$ac_header_preproc" >&6; }
  4840. # So? What about this header?
  4841. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4842. yes:no: )
  4843. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4844. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4845. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4846. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4847. ac_header_preproc=yes
  4848. ;;
  4849. no:yes:* )
  4850. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4851. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4852. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4853. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4854. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4855. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4856. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4857. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4858. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4859. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4860. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4861. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4862. ;;
  4863. esac
  4864. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4865. $as_echo_n "checking for minix/config.h... " >&6; }
  4866. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. ac_cv_header_minix_config_h=$ac_header_preproc
  4870. fi
  4871. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4872. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4873. fi
  4874. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4875. MINIX=yes
  4876. else
  4877. MINIX=
  4878. fi
  4879. if test "$MINIX" = yes; then
  4880. cat >>confdefs.h <<\_ACEOF
  4881. #define _POSIX_SOURCE 1
  4882. _ACEOF
  4883. cat >>confdefs.h <<\_ACEOF
  4884. #define _POSIX_1_SOURCE 2
  4885. _ACEOF
  4886. cat >>confdefs.h <<\_ACEOF
  4887. #define _MINIX 1
  4888. _ACEOF
  4889. fi
  4890. case "$host_os" in
  4891. hpux*)
  4892. cat >>confdefs.h <<\_ACEOF
  4893. #define _XOPEN_SOURCE 500
  4894. _ACEOF
  4895. ;;
  4896. esac
  4897. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4898. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4899. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. cat >conftest.$ac_ext <<_ACEOF
  4903. /* confdefs.h. */
  4904. _ACEOF
  4905. cat confdefs.h >>conftest.$ac_ext
  4906. cat >>conftest.$ac_ext <<_ACEOF
  4907. /* end confdefs.h. */
  4908. # define __EXTENSIONS__ 1
  4909. $ac_includes_default
  4910. int
  4911. main ()
  4912. {
  4913. ;
  4914. return 0;
  4915. }
  4916. _ACEOF
  4917. rm -f conftest.$ac_objext
  4918. if { (ac_try="$ac_compile"
  4919. case "(($ac_try" in
  4920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4921. *) ac_try_echo=$ac_try;;
  4922. esac
  4923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4924. $as_echo "$ac_try_echo") >&5
  4925. (eval "$ac_compile") 2>conftest.er1
  4926. ac_status=$?
  4927. grep -v '^ *+' conftest.er1 >conftest.err
  4928. rm -f conftest.er1
  4929. cat conftest.err >&5
  4930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } && {
  4932. test -z "$ac_c_werror_flag" ||
  4933. test ! -s conftest.err
  4934. } && test -s conftest.$ac_objext; then
  4935. ac_cv_safe_to_define___extensions__=yes
  4936. else
  4937. $as_echo "$as_me: failed program was:" >&5
  4938. sed 's/^/| /' conftest.$ac_ext >&5
  4939. ac_cv_safe_to_define___extensions__=no
  4940. fi
  4941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4942. fi
  4943. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4944. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4945. test $ac_cv_safe_to_define___extensions__ = yes &&
  4946. cat >>confdefs.h <<\_ACEOF
  4947. #define __EXTENSIONS__ 1
  4948. _ACEOF
  4949. cat >>confdefs.h <<\_ACEOF
  4950. #define _ALL_SOURCE 1
  4951. _ACEOF
  4952. cat >>confdefs.h <<\_ACEOF
  4953. #define _GNU_SOURCE 1
  4954. _ACEOF
  4955. cat >>confdefs.h <<\_ACEOF
  4956. #define _POSIX_PTHREAD_SEMANTICS 1
  4957. _ACEOF
  4958. cat >>confdefs.h <<\_ACEOF
  4959. #define _TANDEM_SOURCE 1
  4960. _ACEOF
  4961. # Check whether --with-gnu-ld was given.
  4962. if test "${with_gnu_ld+set}" = set; then
  4963. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4964. else
  4965. with_gnu_ld=no
  4966. fi
  4967. # Prepare PATH_SEPARATOR.
  4968. # The user is always right.
  4969. if test "${PATH_SEPARATOR+set}" != set; then
  4970. echo "#! /bin/sh" >conf$$.sh
  4971. echo "exit 0" >>conf$$.sh
  4972. chmod +x conf$$.sh
  4973. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4974. PATH_SEPARATOR=';'
  4975. else
  4976. PATH_SEPARATOR=:
  4977. fi
  4978. rm -f conf$$.sh
  4979. fi
  4980. ac_prog=ld
  4981. if test "$GCC" = yes; then
  4982. # Check if gcc -print-prog-name=ld gives a path.
  4983. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  4984. $as_echo_n "checking for ld used by GCC... " >&6; }
  4985. case $host in
  4986. *-*-mingw*)
  4987. # gcc leaves a trailing carriage return which upsets mingw
  4988. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4989. *)
  4990. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4991. esac
  4992. case $ac_prog in
  4993. # Accept absolute paths.
  4994. [\\/]* | [A-Za-z]:[\\/]*)
  4995. re_direlt='/[^/][^/]*/\.\./'
  4996. # Canonicalize the path of ld
  4997. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4998. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4999. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  5000. done
  5001. test -z "$LD" && LD="$ac_prog"
  5002. ;;
  5003. "")
  5004. # If it fails, then pretend we aren't using GCC.
  5005. ac_prog=ld
  5006. ;;
  5007. *)
  5008. # If it is relative, then search for the first ld in PATH.
  5009. with_gnu_ld=unknown
  5010. ;;
  5011. esac
  5012. elif test "$with_gnu_ld" = yes; then
  5013. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  5014. $as_echo_n "checking for GNU ld... " >&6; }
  5015. else
  5016. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5017. $as_echo_n "checking for non-GNU ld... " >&6; }
  5018. fi
  5019. if test "${acl_cv_path_LD+set}" = set; then
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -z "$LD"; then
  5023. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  5024. for ac_dir in $PATH; do
  5025. test -z "$ac_dir" && ac_dir=.
  5026. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5027. acl_cv_path_LD="$ac_dir/$ac_prog"
  5028. # Check to see if the program is GNU ld. I'd rather use --version,
  5029. # but apparently some GNU ld's only accept -v.
  5030. # Break only if it was the GNU/non-GNU ld that we prefer.
  5031. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  5032. *GNU* | *'with BFD'*)
  5033. test "$with_gnu_ld" != no && break ;;
  5034. *)
  5035. test "$with_gnu_ld" != yes && break ;;
  5036. esac
  5037. fi
  5038. done
  5039. IFS="$ac_save_ifs"
  5040. else
  5041. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  5042. fi
  5043. fi
  5044. LD="$acl_cv_path_LD"
  5045. if test -n "$LD"; then
  5046. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  5047. $as_echo "$LD" >&6; }
  5048. else
  5049. { $as_echo "$as_me:$LINENO: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5053. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5054. { (exit 1); exit 1; }; }
  5055. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5056. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5057. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5061. case `$LD -v 2>&1 </dev/null` in
  5062. *GNU* | *'with BFD'*)
  5063. acl_cv_prog_gnu_ld=yes ;;
  5064. *)
  5065. acl_cv_prog_gnu_ld=no ;;
  5066. esac
  5067. fi
  5068. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  5069. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  5070. with_gnu_ld=$acl_cv_prog_gnu_ld
  5071. { $as_echo "$as_me:$LINENO: checking for shared library path variable" >&5
  5072. $as_echo_n "checking for shared library path variable... " >&6; }
  5073. if test "${acl_cv_libpath+set}" = set; then
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. LD="$LD" \
  5077. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
  5078. . ./conftest.sh
  5079. rm -f ./conftest.sh
  5080. acl_cv_libpath=${acl_cv_shlibpath_var:-none}
  5081. fi
  5082. { $as_echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
  5083. $as_echo "$acl_cv_libpath" >&6; }
  5084. shlibpath_var="$acl_cv_shlibpath_var"
  5085. { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
  5086. $as_echo_n "checking whether to activate relocatable installation... " >&6; }
  5087. # Check whether --enable-relocatable was given.
  5088. if test "${enable_relocatable+set}" = set; then
  5089. enableval=$enable_relocatable; if test "$enableval" != no; then
  5090. RELOCATABLE=yes
  5091. else
  5092. RELOCATABLE=no
  5093. fi
  5094. else
  5095. RELOCATABLE=no
  5096. fi
  5097. { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
  5098. $as_echo "$RELOCATABLE" >&6; }
  5099. if test "X$prefix" = "XNONE"; then
  5100. reloc_final_prefix="$ac_default_prefix"
  5101. else
  5102. reloc_final_prefix="$prefix"
  5103. fi
  5104. cat >>confdefs.h <<_ACEOF
  5105. #define INSTALLPREFIX "${reloc_final_prefix}"
  5106. _ACEOF
  5107. if test $RELOCATABLE = yes; then
  5108. cat >>confdefs.h <<\_ACEOF
  5109. #define ENABLE_RELOCATABLE 1
  5110. _ACEOF
  5111. fi
  5112. is_noop=no
  5113. use_elf_origin_trick=no
  5114. if test $RELOCATABLE = yes; then
  5115. # --enable-relocatable implies --disable-rpath
  5116. enable_rpath=no
  5117. for ac_header in mach-o/dyld.h
  5118. do
  5119. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5120. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5121. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5122. $as_echo_n "checking for $ac_header... " >&6; }
  5123. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5124. $as_echo_n "(cached) " >&6
  5125. fi
  5126. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5127. $as_echo "$as_val"'`
  5128. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5129. $as_echo "$ac_res" >&6; }
  5130. else
  5131. # Is the header compilable?
  5132. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5133. $as_echo_n "checking $ac_header usability... " >&6; }
  5134. cat >conftest.$ac_ext <<_ACEOF
  5135. /* confdefs.h. */
  5136. _ACEOF
  5137. cat confdefs.h >>conftest.$ac_ext
  5138. cat >>conftest.$ac_ext <<_ACEOF
  5139. /* end confdefs.h. */
  5140. $ac_includes_default
  5141. #include <$ac_header>
  5142. _ACEOF
  5143. rm -f conftest.$ac_objext
  5144. if { (ac_try="$ac_compile"
  5145. case "(($ac_try" in
  5146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5147. *) ac_try_echo=$ac_try;;
  5148. esac
  5149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5150. $as_echo "$ac_try_echo") >&5
  5151. (eval "$ac_compile") 2>conftest.er1
  5152. ac_status=$?
  5153. grep -v '^ *+' conftest.er1 >conftest.err
  5154. rm -f conftest.er1
  5155. cat conftest.err >&5
  5156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5157. (exit $ac_status); } && {
  5158. test -z "$ac_c_werror_flag" ||
  5159. test ! -s conftest.err
  5160. } && test -s conftest.$ac_objext; then
  5161. ac_header_compiler=yes
  5162. else
  5163. $as_echo "$as_me: failed program was:" >&5
  5164. sed 's/^/| /' conftest.$ac_ext >&5
  5165. ac_header_compiler=no
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5168. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5169. $as_echo "$ac_header_compiler" >&6; }
  5170. # Is the header present?
  5171. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5172. $as_echo_n "checking $ac_header presence... " >&6; }
  5173. cat >conftest.$ac_ext <<_ACEOF
  5174. /* confdefs.h. */
  5175. _ACEOF
  5176. cat confdefs.h >>conftest.$ac_ext
  5177. cat >>conftest.$ac_ext <<_ACEOF
  5178. /* end confdefs.h. */
  5179. #include <$ac_header>
  5180. _ACEOF
  5181. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5182. case "(($ac_try" in
  5183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184. *) ac_try_echo=$ac_try;;
  5185. esac
  5186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5187. $as_echo "$ac_try_echo") >&5
  5188. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5189. ac_status=$?
  5190. grep -v '^ *+' conftest.er1 >conftest.err
  5191. rm -f conftest.er1
  5192. cat conftest.err >&5
  5193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5194. (exit $ac_status); } >/dev/null && {
  5195. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5196. test ! -s conftest.err
  5197. }; then
  5198. ac_header_preproc=yes
  5199. else
  5200. $as_echo "$as_me: failed program was:" >&5
  5201. sed 's/^/| /' conftest.$ac_ext >&5
  5202. ac_header_preproc=no
  5203. fi
  5204. rm -f conftest.err conftest.$ac_ext
  5205. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5206. $as_echo "$ac_header_preproc" >&6; }
  5207. # So? What about this header?
  5208. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5209. yes:no: )
  5210. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5211. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5212. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5213. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5214. ac_header_preproc=yes
  5215. ;;
  5216. no:yes:* )
  5217. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5218. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5219. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5220. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5221. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5222. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5223. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5224. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5225. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5226. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5227. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5228. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5229. ;;
  5230. esac
  5231. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5232. $as_echo_n "checking for $ac_header... " >&6; }
  5233. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5234. $as_echo_n "(cached) " >&6
  5235. else
  5236. eval "$as_ac_Header=\$ac_header_preproc"
  5237. fi
  5238. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5239. $as_echo "$as_val"'`
  5240. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5241. $as_echo "$ac_res" >&6; }
  5242. fi
  5243. as_val=`eval 'as_val=${'$as_ac_Header'}
  5244. $as_echo "$as_val"'`
  5245. if test "x$as_val" = x""yes; then
  5246. cat >>confdefs.h <<_ACEOF
  5247. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5248. _ACEOF
  5249. fi
  5250. done
  5251. for ac_func in _NSGetExecutablePath
  5252. do
  5253. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5254. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5255. $as_echo_n "checking for $ac_func... " >&6; }
  5256. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. cat >conftest.$ac_ext <<_ACEOF
  5260. /* confdefs.h. */
  5261. _ACEOF
  5262. cat confdefs.h >>conftest.$ac_ext
  5263. cat >>conftest.$ac_ext <<_ACEOF
  5264. /* end confdefs.h. */
  5265. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5266. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5267. #define $ac_func innocuous_$ac_func
  5268. /* System header to define __stub macros and hopefully few prototypes,
  5269. which can conflict with char $ac_func (); below.
  5270. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5271. <limits.h> exists even on freestanding compilers. */
  5272. #ifdef __STDC__
  5273. # include <limits.h>
  5274. #else
  5275. # include <assert.h>
  5276. #endif
  5277. #undef $ac_func
  5278. /* Override any GCC internal prototype to avoid an error.
  5279. Use char because int might match the return type of a GCC
  5280. builtin and then its argument prototype would still apply. */
  5281. #ifdef __cplusplus
  5282. extern "C"
  5283. #endif
  5284. char $ac_func ();
  5285. /* The GNU C library defines this for functions which it implements
  5286. to always fail with ENOSYS. Some functions are actually named
  5287. something starting with __ and the normal name is an alias. */
  5288. #if defined __stub_$ac_func || defined __stub___$ac_func
  5289. choke me
  5290. #endif
  5291. int
  5292. main ()
  5293. {
  5294. return $ac_func ();
  5295. ;
  5296. return 0;
  5297. }
  5298. _ACEOF
  5299. rm -f conftest.$ac_objext conftest$ac_exeext
  5300. if { (ac_try="$ac_link"
  5301. case "(($ac_try" in
  5302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5303. *) ac_try_echo=$ac_try;;
  5304. esac
  5305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5306. $as_echo "$ac_try_echo") >&5
  5307. (eval "$ac_link") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } && {
  5314. test -z "$ac_c_werror_flag" ||
  5315. test ! -s conftest.err
  5316. } && test -s conftest$ac_exeext && {
  5317. test "$cross_compiling" = yes ||
  5318. $as_test_x conftest$ac_exeext
  5319. }; then
  5320. eval "$as_ac_var=yes"
  5321. else
  5322. $as_echo "$as_me: failed program was:" >&5
  5323. sed 's/^/| /' conftest.$ac_ext >&5
  5324. eval "$as_ac_var=no"
  5325. fi
  5326. rm -rf conftest.dSYM
  5327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5328. conftest$ac_exeext conftest.$ac_ext
  5329. fi
  5330. ac_res=`eval 'as_val=${'$as_ac_var'}
  5331. $as_echo "$as_val"'`
  5332. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5333. $as_echo "$ac_res" >&6; }
  5334. as_val=`eval 'as_val=${'$as_ac_var'}
  5335. $as_echo "$as_val"'`
  5336. if test "x$as_val" = x""yes; then
  5337. cat >>confdefs.h <<_ACEOF
  5338. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5339. _ACEOF
  5340. fi
  5341. done
  5342. case "$host_os" in
  5343. mingw*) is_noop=yes ;;
  5344. linux*) use_elf_origin_trick=yes ;;
  5345. esac
  5346. if test $is_noop = yes; then
  5347. RELOCATABLE_LDFLAGS=:
  5348. else
  5349. if test $use_elf_origin_trick = yes; then
  5350. case "$ac_aux_dir" in
  5351. /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
  5352. *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
  5353. esac
  5354. RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
  5355. else
  5356. INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
  5357. case "$ac_aux_dir" in
  5358. /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
  5359. *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
  5360. esac
  5361. fi
  5362. fi
  5363. fi
  5364. if test $is_noop = yes || test $use_elf_origin_trick = yes; then
  5365. RELOCATABLE_VIA_LD_TRUE=
  5366. RELOCATABLE_VIA_LD_FALSE='#'
  5367. else
  5368. RELOCATABLE_VIA_LD_TRUE='#'
  5369. RELOCATABLE_VIA_LD_FALSE=
  5370. fi
  5371. if test $RELOCATABLE = yes; then
  5372. SRCLIBOBJS="$SRCLIBOBJS relocatable.$ac_objext"
  5373. fi
  5374. if test $RELOCATABLE = yes; then
  5375. SRCLIBOBJS="$SRCLIBOBJS progreloc.$ac_objext"
  5376. fi
  5377. : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
  5378. RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
  5379. RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
  5380. # Check whether --enable-extra-encodings was given.
  5381. if test "${enable_extra_encodings+set}" = set; then
  5382. enableval=$enable_extra_encodings;
  5383. cat >>confdefs.h <<\_ACEOF
  5384. #define ENABLE_EXTRA 1
  5385. _ACEOF
  5386. USE_EXTRA_ENCODINGS=yes
  5387. else
  5388. USE_EXTRA_ENCODINGS=no
  5389. fi
  5390. { $as_echo "$as_me:$LINENO: checking how to copy files" >&5
  5391. $as_echo_n "checking how to copy files... " >&6; }
  5392. if test "${cl_cv_prog_cp+set}" = set; then
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. echo "blabla" > conftest.x
  5396. err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
  5397. if test -z "$err"; then
  5398. cl_cv_prog_cp='cp -p'
  5399. else
  5400. cl_cv_prog_cp='cp'
  5401. fi
  5402. rm -f conftest*
  5403. fi
  5404. { $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
  5405. $as_echo "$cl_cv_prog_cp" >&6; }
  5406. CP="$cl_cv_prog_cp"
  5407. { $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
  5408. $as_echo_n "checking how to make hard links... " >&6; }
  5409. if test "${cl_cv_prog_LN+set}" = set; then
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. rm -f conftestdata conftestfile
  5413. echo data > conftestfile
  5414. if ln conftestfile conftestdata 2>/dev/null; then
  5415. cl_cv_prog_LN=ln
  5416. else
  5417. cl_cv_prog_LN="$cl_cv_prog_cp"
  5418. fi
  5419. rm -f conftestdata conftestfile
  5420. fi
  5421. { $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
  5422. $as_echo "$cl_cv_prog_LN" >&6; }
  5423. LN="$cl_cv_prog_LN"
  5424. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5425. $as_echo_n "checking whether ln -s works... " >&6; }
  5426. LN_S=$as_ln_s
  5427. if test "$LN_S" = "ln -s"; then
  5428. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5429. $as_echo "yes" >&6; }
  5430. else
  5431. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5432. $as_echo "no, using $LN_S" >&6; }
  5433. fi
  5434. case `pwd` in
  5435. *\ * | *\ *)
  5436. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5437. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5438. esac
  5439. macro_version='2.2.6'
  5440. macro_revision='1.3012'
  5441. ltmain="$ac_aux_dir/ltmain.sh"
  5442. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5443. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5444. if test "${ac_cv_path_SED+set}" = set; then
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5448. for ac_i in 1 2 3 4 5 6 7; do
  5449. ac_script="$ac_script$as_nl$ac_script"
  5450. done
  5451. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5452. $as_unset ac_script || ac_script=
  5453. if test -z "$SED"; then
  5454. ac_path_SED_found=false
  5455. # Loop through the user's path and test for each of PROGNAME-LIST
  5456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5457. for as_dir in $PATH
  5458. do
  5459. IFS=$as_save_IFS
  5460. test -z "$as_dir" && as_dir=.
  5461. for ac_prog in sed gsed; do
  5462. for ac_exec_ext in '' $ac_executable_extensions; do
  5463. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5464. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5465. # Check for GNU ac_path_SED and select it if it is found.
  5466. # Check for GNU $ac_path_SED
  5467. case `"$ac_path_SED" --version 2>&1` in
  5468. *GNU*)
  5469. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5470. *)
  5471. ac_count=0
  5472. $as_echo_n 0123456789 >"conftest.in"
  5473. while :
  5474. do
  5475. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5476. mv "conftest.tmp" "conftest.in"
  5477. cp "conftest.in" "conftest.nl"
  5478. $as_echo '' >> "conftest.nl"
  5479. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5480. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5481. ac_count=`expr $ac_count + 1`
  5482. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5483. # Best one so far, save it but keep looking for a better one
  5484. ac_cv_path_SED="$ac_path_SED"
  5485. ac_path_SED_max=$ac_count
  5486. fi
  5487. # 10*(2^10) chars as input seems more than enough
  5488. test $ac_count -gt 10 && break
  5489. done
  5490. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5491. esac
  5492. $ac_path_SED_found && break 3
  5493. done
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. if test -z "$ac_cv_path_SED"; then
  5498. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5499. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5500. { (exit 1); exit 1; }; }
  5501. fi
  5502. else
  5503. ac_cv_path_SED=$SED
  5504. fi
  5505. fi
  5506. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5507. $as_echo "$ac_cv_path_SED" >&6; }
  5508. SED="$ac_cv_path_SED"
  5509. rm -f conftest.sed
  5510. test -z "$SED" && SED=sed
  5511. Xsed="$SED -e 1s/^X//"
  5512. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  5513. $as_echo_n "checking for fgrep... " >&6; }
  5514. if test "${ac_cv_path_FGREP+set}" = set; then
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5518. then ac_cv_path_FGREP="$GREP -F"
  5519. else
  5520. if test -z "$FGREP"; then
  5521. ac_path_FGREP_found=false
  5522. # Loop through the user's path and test for each of PROGNAME-LIST
  5523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5524. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5525. do
  5526. IFS=$as_save_IFS
  5527. test -z "$as_dir" && as_dir=.
  5528. for ac_prog in fgrep; do
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5531. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5532. # Check for GNU ac_path_FGREP and select it if it is found.
  5533. # Check for GNU $ac_path_FGREP
  5534. case `"$ac_path_FGREP" --version 2>&1` in
  5535. *GNU*)
  5536. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5537. *)
  5538. ac_count=0
  5539. $as_echo_n 0123456789 >"conftest.in"
  5540. while :
  5541. do
  5542. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5543. mv "conftest.tmp" "conftest.in"
  5544. cp "conftest.in" "conftest.nl"
  5545. $as_echo 'FGREP' >> "conftest.nl"
  5546. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5547. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5548. ac_count=`expr $ac_count + 1`
  5549. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5550. # Best one so far, save it but keep looking for a better one
  5551. ac_cv_path_FGREP="$ac_path_FGREP"
  5552. ac_path_FGREP_max=$ac_count
  5553. fi
  5554. # 10*(2^10) chars as input seems more than enough
  5555. test $ac_count -gt 10 && break
  5556. done
  5557. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5558. esac
  5559. $ac_path_FGREP_found && break 3
  5560. done
  5561. done
  5562. done
  5563. IFS=$as_save_IFS
  5564. if test -z "$ac_cv_path_FGREP"; then
  5565. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5566. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5567. { (exit 1); exit 1; }; }
  5568. fi
  5569. else
  5570. ac_cv_path_FGREP=$FGREP
  5571. fi
  5572. fi
  5573. fi
  5574. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  5575. $as_echo "$ac_cv_path_FGREP" >&6; }
  5576. FGREP="$ac_cv_path_FGREP"
  5577. test -z "$GREP" && GREP=grep
  5578. # Check whether --with-gnu-ld was given.
  5579. if test "${with_gnu_ld+set}" = set; then
  5580. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5581. else
  5582. with_gnu_ld=no
  5583. fi
  5584. ac_prog=ld
  5585. if test "$GCC" = yes; then
  5586. # Check if gcc -print-prog-name=ld gives a path.
  5587. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5588. $as_echo_n "checking for ld used by $CC... " >&6; }
  5589. case $host in
  5590. *-*-mingw*)
  5591. # gcc leaves a trailing carriage return which upsets mingw
  5592. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5593. *)
  5594. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5595. esac
  5596. case $ac_prog in
  5597. # Accept absolute paths.
  5598. [\\/]* | ?:[\\/]*)
  5599. re_direlt='/[^/][^/]*/\.\./'
  5600. # Canonicalize the pathname of ld
  5601. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5602. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5603. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5604. done
  5605. test -z "$LD" && LD="$ac_prog"
  5606. ;;
  5607. "")
  5608. # If it fails, then pretend we aren't using GCC.
  5609. ac_prog=ld
  5610. ;;
  5611. *)
  5612. # If it is relative, then search for the first ld in PATH.
  5613. with_gnu_ld=unknown
  5614. ;;
  5615. esac
  5616. elif test "$with_gnu_ld" = yes; then
  5617. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  5618. $as_echo_n "checking for GNU ld... " >&6; }
  5619. else
  5620. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5621. $as_echo_n "checking for non-GNU ld... " >&6; }
  5622. fi
  5623. if test "${lt_cv_path_LD+set}" = set; then
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -z "$LD"; then
  5627. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5628. for ac_dir in $PATH; do
  5629. IFS="$lt_save_ifs"
  5630. test -z "$ac_dir" && ac_dir=.
  5631. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5632. lt_cv_path_LD="$ac_dir/$ac_prog"
  5633. # Check to see if the program is GNU ld. I'd rather use --version,
  5634. # but apparently some variants of GNU ld only accept -v.
  5635. # Break only if it was the GNU/non-GNU ld that we prefer.
  5636. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5637. *GNU* | *'with BFD'*)
  5638. test "$with_gnu_ld" != no && break
  5639. ;;
  5640. *)
  5641. test "$with_gnu_ld" != yes && break
  5642. ;;
  5643. esac
  5644. fi
  5645. done
  5646. IFS="$lt_save_ifs"
  5647. else
  5648. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5649. fi
  5650. fi
  5651. LD="$lt_cv_path_LD"
  5652. if test -n "$LD"; then
  5653. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  5654. $as_echo "$LD" >&6; }
  5655. else
  5656. { $as_echo "$as_me:$LINENO: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5660. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5661. { (exit 1); exit 1; }; }
  5662. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5663. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5664. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5668. case `$LD -v 2>&1 </dev/null` in
  5669. *GNU* | *'with BFD'*)
  5670. lt_cv_prog_gnu_ld=yes
  5671. ;;
  5672. *)
  5673. lt_cv_prog_gnu_ld=no
  5674. ;;
  5675. esac
  5676. fi
  5677. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5678. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5679. with_gnu_ld=$lt_cv_prog_gnu_ld
  5680. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  5681. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5682. if test "${lt_cv_path_NM+set}" = set; then
  5683. $as_echo_n "(cached) " >&6
  5684. else
  5685. if test -n "$NM"; then
  5686. # Let the user override the test.
  5687. lt_cv_path_NM="$NM"
  5688. else
  5689. lt_nm_to_check="${ac_tool_prefix}nm"
  5690. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5691. lt_nm_to_check="$lt_nm_to_check nm"
  5692. fi
  5693. for lt_tmp_nm in $lt_nm_to_check; do
  5694. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5695. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5696. IFS="$lt_save_ifs"
  5697. test -z "$ac_dir" && ac_dir=.
  5698. tmp_nm="$ac_dir/$lt_tmp_nm"
  5699. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5700. # Check to see if the nm accepts a BSD-compat flag.
  5701. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5702. # nm: unknown option "B" ignored
  5703. # Tru64's nm complains that /dev/null is an invalid object file
  5704. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5705. */dev/null* | *'Invalid file or object type'*)
  5706. lt_cv_path_NM="$tmp_nm -B"
  5707. break
  5708. ;;
  5709. *)
  5710. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5711. */dev/null*)
  5712. lt_cv_path_NM="$tmp_nm -p"
  5713. break
  5714. ;;
  5715. *)
  5716. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5717. continue # so that we can try to find one that supports BSD flags
  5718. ;;
  5719. esac
  5720. ;;
  5721. esac
  5722. fi
  5723. done
  5724. IFS="$lt_save_ifs"
  5725. done
  5726. : ${lt_cv_path_NM=no}
  5727. fi
  5728. fi
  5729. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5730. $as_echo "$lt_cv_path_NM" >&6; }
  5731. if test "$lt_cv_path_NM" != "no"; then
  5732. NM="$lt_cv_path_NM"
  5733. else
  5734. # Didn't find any BSD compatible name lister, look for dumpbin.
  5735. if test -n "$ac_tool_prefix"; then
  5736. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5737. do
  5738. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5739. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5740. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5741. $as_echo_n "checking for $ac_word... " >&6; }
  5742. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  5743. $as_echo_n "(cached) " >&6
  5744. else
  5745. if test -n "$DUMPBIN"; then
  5746. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5755. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5756. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. fi
  5763. fi
  5764. DUMPBIN=$ac_cv_prog_DUMPBIN
  5765. if test -n "$DUMPBIN"; then
  5766. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  5767. $as_echo "$DUMPBIN" >&6; }
  5768. else
  5769. { $as_echo "$as_me:$LINENO: result: no" >&5
  5770. $as_echo "no" >&6; }
  5771. fi
  5772. test -n "$DUMPBIN" && break
  5773. done
  5774. fi
  5775. if test -z "$DUMPBIN"; then
  5776. ac_ct_DUMPBIN=$DUMPBIN
  5777. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5778. do
  5779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5780. set dummy $ac_prog; ac_word=$2
  5781. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$ac_ct_DUMPBIN"; then
  5787. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5796. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5797. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5806. if test -n "$ac_ct_DUMPBIN"; then
  5807. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  5808. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5809. else
  5810. { $as_echo "$as_me:$LINENO: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. test -n "$ac_ct_DUMPBIN" && break
  5814. done
  5815. if test "x$ac_ct_DUMPBIN" = x; then
  5816. DUMPBIN=":"
  5817. else
  5818. case $cross_compiling:$ac_tool_warned in
  5819. yes:)
  5820. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5822. ac_tool_warned=yes ;;
  5823. esac
  5824. DUMPBIN=$ac_ct_DUMPBIN
  5825. fi
  5826. fi
  5827. if test "$DUMPBIN" != ":"; then
  5828. NM="$DUMPBIN"
  5829. fi
  5830. fi
  5831. test -z "$NM" && NM=nm
  5832. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  5833. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5834. if test "${lt_cv_nm_interface+set}" = set; then
  5835. $as_echo_n "(cached) " >&6
  5836. else
  5837. lt_cv_nm_interface="BSD nm"
  5838. echo "int some_variable = 0;" > conftest.$ac_ext
  5839. (eval echo "\"\$as_me:6557: $ac_compile\"" >&5)
  5840. (eval "$ac_compile" 2>conftest.err)
  5841. cat conftest.err >&5
  5842. (eval echo "\"\$as_me:6560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5843. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5844. cat conftest.err >&5
  5845. (eval echo "\"\$as_me:6563: output\"" >&5)
  5846. cat conftest.out >&5
  5847. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5848. lt_cv_nm_interface="MS dumpbin"
  5849. fi
  5850. rm -f conftest*
  5851. fi
  5852. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  5853. $as_echo "$lt_cv_nm_interface" >&6; }
  5854. # find the maximum length of command line arguments
  5855. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5856. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5857. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. i=0
  5861. teststring="ABCD"
  5862. case $build_os in
  5863. msdosdjgpp*)
  5864. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5865. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5866. # during glob expansion). Even if it were fixed, the result of this
  5867. # check would be larger than it should be.
  5868. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5869. ;;
  5870. gnu*)
  5871. # Under GNU Hurd, this test is not required because there is
  5872. # no limit to the length of command line arguments.
  5873. # Libtool will interpret -1 as no limit whatsoever
  5874. lt_cv_sys_max_cmd_len=-1;
  5875. ;;
  5876. cygwin* | mingw* | cegcc*)
  5877. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5878. # about 5 minutes as the teststring grows exponentially.
  5879. # Worse, since 9x/ME are not pre-emptively multitasking,
  5880. # you end up with a "frozen" computer, even though with patience
  5881. # the test eventually succeeds (with a max line length of 256k).
  5882. # Instead, let's just punt: use the minimum linelength reported by
  5883. # all of the supported platforms: 8192 (on NT/2K/XP).
  5884. lt_cv_sys_max_cmd_len=8192;
  5885. ;;
  5886. amigaos*)
  5887. # On AmigaOS with pdksh, this test takes hours, literally.
  5888. # So we just punt and use a minimum line length of 8192.
  5889. lt_cv_sys_max_cmd_len=8192;
  5890. ;;
  5891. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5892. # This has been around since 386BSD, at least. Likely further.
  5893. if test -x /sbin/sysctl; then
  5894. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5895. elif test -x /usr/sbin/sysctl; then
  5896. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5897. else
  5898. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5899. fi
  5900. # And add a safety zone
  5901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5902. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5903. ;;
  5904. interix*)
  5905. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5906. lt_cv_sys_max_cmd_len=196608
  5907. ;;
  5908. osf*)
  5909. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5910. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5911. # nice to cause kernel panics so lets avoid the loop below.
  5912. # First set a reasonable default.
  5913. lt_cv_sys_max_cmd_len=16384
  5914. #
  5915. if test -x /sbin/sysconfig; then
  5916. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5917. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5918. esac
  5919. fi
  5920. ;;
  5921. sco3.2v5*)
  5922. lt_cv_sys_max_cmd_len=102400
  5923. ;;
  5924. sysv5* | sco5v6* | sysv4.2uw2*)
  5925. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5926. if test -n "$kargmax"; then
  5927. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5928. else
  5929. lt_cv_sys_max_cmd_len=32768
  5930. fi
  5931. ;;
  5932. *)
  5933. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5934. if test -n "$lt_cv_sys_max_cmd_len"; then
  5935. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5936. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5937. else
  5938. # Make teststring a little bigger before we do anything with it.
  5939. # a 1K string should be a reasonable start.
  5940. for i in 1 2 3 4 5 6 7 8 ; do
  5941. teststring=$teststring$teststring
  5942. done
  5943. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5944. # If test is not a shell built-in, we'll probably end up computing a
  5945. # maximum length that is only half of the actual maximum length, but
  5946. # we can't tell.
  5947. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5948. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5949. test $i != 17 # 1/2 MB should be enough
  5950. do
  5951. i=`expr $i + 1`
  5952. teststring=$teststring$teststring
  5953. done
  5954. # Only check the string length outside the loop.
  5955. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5956. teststring=
  5957. # Add a significant safety factor because C++ compilers can tack on
  5958. # massive amounts of additional arguments before passing them to the
  5959. # linker. It appears as though 1/2 is a usable value.
  5960. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5961. fi
  5962. ;;
  5963. esac
  5964. fi
  5965. if test -n $lt_cv_sys_max_cmd_len ; then
  5966. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5967. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5968. else
  5969. { $as_echo "$as_me:$LINENO: result: none" >&5
  5970. $as_echo "none" >&6; }
  5971. fi
  5972. max_cmd_len=$lt_cv_sys_max_cmd_len
  5973. : ${CP="cp -f"}
  5974. : ${MV="mv -f"}
  5975. : ${RM="rm -f"}
  5976. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5977. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5978. # Try some XSI features
  5979. xsi_shell=no
  5980. ( _lt_dummy="a/b/c"
  5981. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5982. = c,a/b,, \
  5983. && eval 'test $(( 1 + 1 )) -eq 2 \
  5984. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5985. && xsi_shell=yes
  5986. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5987. $as_echo "$xsi_shell" >&6; }
  5988. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5989. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5990. lt_shell_append=no
  5991. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5992. >/dev/null 2>&1 \
  5993. && lt_shell_append=yes
  5994. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5995. $as_echo "$lt_shell_append" >&6; }
  5996. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5997. lt_unset=unset
  5998. else
  5999. lt_unset=false
  6000. fi
  6001. # test EBCDIC or ASCII
  6002. case `echo X|tr X '\101'` in
  6003. A) # ASCII based system
  6004. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6005. lt_SP2NL='tr \040 \012'
  6006. lt_NL2SP='tr \015\012 \040\040'
  6007. ;;
  6008. *) # EBCDIC based system
  6009. lt_SP2NL='tr \100 \n'
  6010. lt_NL2SP='tr \r\n \100\100'
  6011. ;;
  6012. esac
  6013. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  6014. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6015. if test "${lt_cv_ld_reload_flag+set}" = set; then
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. lt_cv_ld_reload_flag='-r'
  6019. fi
  6020. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  6021. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6022. reload_flag=$lt_cv_ld_reload_flag
  6023. case $reload_flag in
  6024. "" | " "*) ;;
  6025. *) reload_flag=" $reload_flag" ;;
  6026. esac
  6027. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6028. case $host_os in
  6029. darwin*)
  6030. if test "$GCC" = yes; then
  6031. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6032. else
  6033. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6034. fi
  6035. ;;
  6036. esac
  6037. if test -n "$ac_tool_prefix"; then
  6038. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6039. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6040. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6041. $as_echo_n "checking for $ac_word... " >&6; }
  6042. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  6043. $as_echo_n "(cached) " >&6
  6044. else
  6045. if test -n "$OBJDUMP"; then
  6046. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6047. else
  6048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6049. for as_dir in $PATH
  6050. do
  6051. IFS=$as_save_IFS
  6052. test -z "$as_dir" && as_dir=.
  6053. for ac_exec_ext in '' $ac_executable_extensions; do
  6054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6055. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6056. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6057. break 2
  6058. fi
  6059. done
  6060. done
  6061. IFS=$as_save_IFS
  6062. fi
  6063. fi
  6064. OBJDUMP=$ac_cv_prog_OBJDUMP
  6065. if test -n "$OBJDUMP"; then
  6066. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  6067. $as_echo "$OBJDUMP" >&6; }
  6068. else
  6069. { $as_echo "$as_me:$LINENO: result: no" >&5
  6070. $as_echo "no" >&6; }
  6071. fi
  6072. fi
  6073. if test -z "$ac_cv_prog_OBJDUMP"; then
  6074. ac_ct_OBJDUMP=$OBJDUMP
  6075. # Extract the first word of "objdump", so it can be a program name with args.
  6076. set dummy objdump; ac_word=$2
  6077. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6078. $as_echo_n "checking for $ac_word... " >&6; }
  6079. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. if test -n "$ac_ct_OBJDUMP"; then
  6083. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6084. else
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_exec_ext in '' $ac_executable_extensions; do
  6091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6092. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6093. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6094. break 2
  6095. fi
  6096. done
  6097. done
  6098. IFS=$as_save_IFS
  6099. fi
  6100. fi
  6101. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6102. if test -n "$ac_ct_OBJDUMP"; then
  6103. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  6104. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6105. else
  6106. { $as_echo "$as_me:$LINENO: result: no" >&5
  6107. $as_echo "no" >&6; }
  6108. fi
  6109. if test "x$ac_ct_OBJDUMP" = x; then
  6110. OBJDUMP="false"
  6111. else
  6112. case $cross_compiling:$ac_tool_warned in
  6113. yes:)
  6114. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6116. ac_tool_warned=yes ;;
  6117. esac
  6118. OBJDUMP=$ac_ct_OBJDUMP
  6119. fi
  6120. else
  6121. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6122. fi
  6123. test -z "$OBJDUMP" && OBJDUMP=objdump
  6124. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  6125. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6126. if test "${lt_cv_deplibs_check_method+set}" = set; then
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6130. lt_cv_file_magic_test_file=
  6131. lt_cv_deplibs_check_method='unknown'
  6132. # Need to set the preceding variable on all platforms that support
  6133. # interlibrary dependencies.
  6134. # 'none' -- dependencies not supported.
  6135. # `unknown' -- same as none, but documents that we really don't know.
  6136. # 'pass_all' -- all dependencies passed with no checks.
  6137. # 'test_compile' -- check by making test program.
  6138. # 'file_magic [[regex]]' -- check by looking for files in library path
  6139. # which responds to the $file_magic_cmd with a given extended regex.
  6140. # If you have `file' or equivalent on your system and you're not sure
  6141. # whether `pass_all' will *always* work, you probably want this one.
  6142. case $host_os in
  6143. aix[4-9]*)
  6144. lt_cv_deplibs_check_method=pass_all
  6145. ;;
  6146. beos*)
  6147. lt_cv_deplibs_check_method=pass_all
  6148. ;;
  6149. bsdi[45]*)
  6150. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6151. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6152. lt_cv_file_magic_test_file=/shlib/libc.so
  6153. ;;
  6154. cygwin*)
  6155. # func_win32_libid is a shell function defined in ltmain.sh
  6156. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6157. lt_cv_file_magic_cmd='func_win32_libid'
  6158. ;;
  6159. mingw* | pw32*)
  6160. # Base MSYS/MinGW do not provide the 'file' command needed by
  6161. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6162. # unless we find 'file', for example because we are cross-compiling.
  6163. if ( file / ) >/dev/null 2>&1; then
  6164. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6165. lt_cv_file_magic_cmd='func_win32_libid'
  6166. else
  6167. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6168. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6169. fi
  6170. ;;
  6171. cegcc)
  6172. # use the weaker test based on 'objdump'. See mingw*.
  6173. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6174. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6175. ;;
  6176. darwin* | rhapsody*)
  6177. lt_cv_deplibs_check_method=pass_all
  6178. ;;
  6179. freebsd* | dragonfly*)
  6180. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6181. case $host_cpu in
  6182. i*86 )
  6183. # Not sure whether the presence of OpenBSD here was a mistake.
  6184. # Let's accept both of them until this is cleared up.
  6185. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6186. lt_cv_file_magic_cmd=/usr/bin/file
  6187. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6188. ;;
  6189. esac
  6190. else
  6191. lt_cv_deplibs_check_method=pass_all
  6192. fi
  6193. ;;
  6194. gnu*)
  6195. lt_cv_deplibs_check_method=pass_all
  6196. ;;
  6197. hpux10.20* | hpux11*)
  6198. lt_cv_file_magic_cmd=/usr/bin/file
  6199. case $host_cpu in
  6200. ia64*)
  6201. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6202. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6203. ;;
  6204. hppa*64*)
  6205. 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]'
  6206. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6207. ;;
  6208. *)
  6209. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  6210. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6211. ;;
  6212. esac
  6213. ;;
  6214. interix[3-9]*)
  6215. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6216. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6217. ;;
  6218. irix5* | irix6* | nonstopux*)
  6219. case $LD in
  6220. *-32|*"-32 ") libmagic=32-bit;;
  6221. *-n32|*"-n32 ") libmagic=N32;;
  6222. *-64|*"-64 ") libmagic=64-bit;;
  6223. *) libmagic=never-match;;
  6224. esac
  6225. lt_cv_deplibs_check_method=pass_all
  6226. ;;
  6227. # This must be Linux ELF.
  6228. linux* | k*bsd*-gnu)
  6229. lt_cv_deplibs_check_method=pass_all
  6230. ;;
  6231. netbsd*)
  6232. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6233. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6234. else
  6235. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6236. fi
  6237. ;;
  6238. newos6*)
  6239. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6240. lt_cv_file_magic_cmd=/usr/bin/file
  6241. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6242. ;;
  6243. *nto* | *qnx*)
  6244. lt_cv_deplibs_check_method=pass_all
  6245. ;;
  6246. openbsd*)
  6247. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6248. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6249. else
  6250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6251. fi
  6252. ;;
  6253. osf3* | osf4* | osf5*)
  6254. lt_cv_deplibs_check_method=pass_all
  6255. ;;
  6256. rdos*)
  6257. lt_cv_deplibs_check_method=pass_all
  6258. ;;
  6259. solaris*)
  6260. lt_cv_deplibs_check_method=pass_all
  6261. ;;
  6262. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6263. lt_cv_deplibs_check_method=pass_all
  6264. ;;
  6265. sysv4 | sysv4.3*)
  6266. case $host_vendor in
  6267. motorola)
  6268. 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]'
  6269. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6270. ;;
  6271. ncr)
  6272. lt_cv_deplibs_check_method=pass_all
  6273. ;;
  6274. sequent)
  6275. lt_cv_file_magic_cmd='/bin/file'
  6276. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6277. ;;
  6278. sni)
  6279. lt_cv_file_magic_cmd='/bin/file'
  6280. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6281. lt_cv_file_magic_test_file=/lib/libc.so
  6282. ;;
  6283. siemens)
  6284. lt_cv_deplibs_check_method=pass_all
  6285. ;;
  6286. pc)
  6287. lt_cv_deplibs_check_method=pass_all
  6288. ;;
  6289. esac
  6290. ;;
  6291. tpf*)
  6292. lt_cv_deplibs_check_method=pass_all
  6293. ;;
  6294. esac
  6295. fi
  6296. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  6297. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6298. file_magic_cmd=$lt_cv_file_magic_cmd
  6299. deplibs_check_method=$lt_cv_deplibs_check_method
  6300. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6301. if test -n "$ac_tool_prefix"; then
  6302. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6303. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6304. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6305. $as_echo_n "checking for $ac_word... " >&6; }
  6306. if test "${ac_cv_prog_AR+set}" = set; then
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. if test -n "$AR"; then
  6310. ac_cv_prog_AR="$AR" # Let the user override the test.
  6311. else
  6312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6313. for as_dir in $PATH
  6314. do
  6315. IFS=$as_save_IFS
  6316. test -z "$as_dir" && as_dir=.
  6317. for ac_exec_ext in '' $ac_executable_extensions; do
  6318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6319. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6320. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6321. break 2
  6322. fi
  6323. done
  6324. done
  6325. IFS=$as_save_IFS
  6326. fi
  6327. fi
  6328. AR=$ac_cv_prog_AR
  6329. if test -n "$AR"; then
  6330. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  6331. $as_echo "$AR" >&6; }
  6332. else
  6333. { $as_echo "$as_me:$LINENO: result: no" >&5
  6334. $as_echo "no" >&6; }
  6335. fi
  6336. fi
  6337. if test -z "$ac_cv_prog_AR"; then
  6338. ac_ct_AR=$AR
  6339. # Extract the first word of "ar", so it can be a program name with args.
  6340. set dummy ar; ac_word=$2
  6341. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$ac_ct_AR"; then
  6347. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6356. ac_cv_prog_ac_ct_AR="ar"
  6357. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6366. if test -n "$ac_ct_AR"; then
  6367. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6368. $as_echo "$ac_ct_AR" >&6; }
  6369. else
  6370. { $as_echo "$as_me:$LINENO: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. if test "x$ac_ct_AR" = x; then
  6374. AR="false"
  6375. else
  6376. case $cross_compiling:$ac_tool_warned in
  6377. yes:)
  6378. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6380. ac_tool_warned=yes ;;
  6381. esac
  6382. AR=$ac_ct_AR
  6383. fi
  6384. else
  6385. AR="$ac_cv_prog_AR"
  6386. fi
  6387. test -z "$AR" && AR=ar
  6388. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6389. if test -n "$ac_tool_prefix"; then
  6390. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6391. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6393. $as_echo_n "checking for $ac_word... " >&6; }
  6394. if test "${ac_cv_prog_STRIP+set}" = set; then
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. if test -n "$STRIP"; then
  6398. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6399. else
  6400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6401. for as_dir in $PATH
  6402. do
  6403. IFS=$as_save_IFS
  6404. test -z "$as_dir" && as_dir=.
  6405. for ac_exec_ext in '' $ac_executable_extensions; do
  6406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6407. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6408. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6409. break 2
  6410. fi
  6411. done
  6412. done
  6413. IFS=$as_save_IFS
  6414. fi
  6415. fi
  6416. STRIP=$ac_cv_prog_STRIP
  6417. if test -n "$STRIP"; then
  6418. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  6419. $as_echo "$STRIP" >&6; }
  6420. else
  6421. { $as_echo "$as_me:$LINENO: result: no" >&5
  6422. $as_echo "no" >&6; }
  6423. fi
  6424. fi
  6425. if test -z "$ac_cv_prog_STRIP"; then
  6426. ac_ct_STRIP=$STRIP
  6427. # Extract the first word of "strip", so it can be a program name with args.
  6428. set dummy strip; ac_word=$2
  6429. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6430. $as_echo_n "checking for $ac_word... " >&6; }
  6431. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. if test -n "$ac_ct_STRIP"; then
  6435. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6436. else
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6444. ac_cv_prog_ac_ct_STRIP="strip"
  6445. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6454. if test -n "$ac_ct_STRIP"; then
  6455. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6456. $as_echo "$ac_ct_STRIP" >&6; }
  6457. else
  6458. { $as_echo "$as_me:$LINENO: result: no" >&5
  6459. $as_echo "no" >&6; }
  6460. fi
  6461. if test "x$ac_ct_STRIP" = x; then
  6462. STRIP=":"
  6463. else
  6464. case $cross_compiling:$ac_tool_warned in
  6465. yes:)
  6466. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6468. ac_tool_warned=yes ;;
  6469. esac
  6470. STRIP=$ac_ct_STRIP
  6471. fi
  6472. else
  6473. STRIP="$ac_cv_prog_STRIP"
  6474. fi
  6475. test -z "$STRIP" && STRIP=:
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6479. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6480. $as_echo_n "checking for $ac_word... " >&6; }
  6481. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. if test -n "$RANLIB"; then
  6485. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6494. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6495. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. fi
  6502. fi
  6503. RANLIB=$ac_cv_prog_RANLIB
  6504. if test -n "$RANLIB"; then
  6505. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6506. $as_echo "$RANLIB" >&6; }
  6507. else
  6508. { $as_echo "$as_me:$LINENO: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. fi
  6512. if test -z "$ac_cv_prog_RANLIB"; then
  6513. ac_ct_RANLIB=$RANLIB
  6514. # Extract the first word of "ranlib", so it can be a program name with args.
  6515. set dummy ranlib; ac_word=$2
  6516. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6517. $as_echo_n "checking for $ac_word... " >&6; }
  6518. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. if test -n "$ac_ct_RANLIB"; then
  6522. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6523. else
  6524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6525. for as_dir in $PATH
  6526. do
  6527. IFS=$as_save_IFS
  6528. test -z "$as_dir" && as_dir=.
  6529. for ac_exec_ext in '' $ac_executable_extensions; do
  6530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6531. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6532. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6533. break 2
  6534. fi
  6535. done
  6536. done
  6537. IFS=$as_save_IFS
  6538. fi
  6539. fi
  6540. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6541. if test -n "$ac_ct_RANLIB"; then
  6542. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6543. $as_echo "$ac_ct_RANLIB" >&6; }
  6544. else
  6545. { $as_echo "$as_me:$LINENO: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. if test "x$ac_ct_RANLIB" = x; then
  6549. RANLIB=":"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. RANLIB=$ac_ct_RANLIB
  6558. fi
  6559. else
  6560. RANLIB="$ac_cv_prog_RANLIB"
  6561. fi
  6562. test -z "$RANLIB" && RANLIB=:
  6563. # Determine commands to create old-style static archives.
  6564. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6565. old_postinstall_cmds='chmod 644 $oldlib'
  6566. old_postuninstall_cmds=
  6567. if test -n "$RANLIB"; then
  6568. case $host_os in
  6569. openbsd*)
  6570. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6571. ;;
  6572. *)
  6573. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6574. ;;
  6575. esac
  6576. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6577. fi
  6578. # If no C compiler was specified, use CC.
  6579. LTCC=${LTCC-"$CC"}
  6580. # If no C compiler flags were specified, use CFLAGS.
  6581. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6582. # Allow CC to be a program name with arguments.
  6583. compiler=$CC
  6584. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6585. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6586. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6587. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. # These are sane defaults that work on at least a few old systems.
  6591. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6592. # Character class describing NM global symbol codes.
  6593. symcode='[BCDEGRST]'
  6594. # Regexp to match symbols that can be accessed directly from C.
  6595. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6596. # Define system-specific variables.
  6597. case $host_os in
  6598. aix*)
  6599. symcode='[BCDT]'
  6600. ;;
  6601. cygwin* | mingw* | pw32* | cegcc*)
  6602. symcode='[ABCDGISTW]'
  6603. ;;
  6604. hpux*)
  6605. if test "$host_cpu" = ia64; then
  6606. symcode='[ABCDEGRST]'
  6607. fi
  6608. ;;
  6609. irix* | nonstopux*)
  6610. symcode='[BCDEGRST]'
  6611. ;;
  6612. osf*)
  6613. symcode='[BCDEGQRST]'
  6614. ;;
  6615. solaris*)
  6616. symcode='[BDRT]'
  6617. ;;
  6618. sco3.2v5*)
  6619. symcode='[DT]'
  6620. ;;
  6621. sysv4.2uw2*)
  6622. symcode='[DT]'
  6623. ;;
  6624. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6625. symcode='[ABDT]'
  6626. ;;
  6627. sysv4)
  6628. symcode='[DFNSTU]'
  6629. ;;
  6630. esac
  6631. # If we're using GNU nm, then use its standard symbol codes.
  6632. case `$NM -V 2>&1` in
  6633. *GNU* | *'with BFD'*)
  6634. symcode='[ABCDGIRSTW]' ;;
  6635. esac
  6636. # Transform an extracted symbol line into a proper C declaration.
  6637. # Some systems (esp. on ia64) link data and code symbols differently,
  6638. # so use this general approach.
  6639. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6640. # Transform an extracted symbol line into symbol name and symbol address
  6641. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6642. 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'"
  6643. # Handle CRLF in mingw tool chain
  6644. opt_cr=
  6645. case $build_os in
  6646. mingw*)
  6647. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6648. ;;
  6649. esac
  6650. # Try without a prefix underscore, then with it.
  6651. for ac_symprfx in "" "_"; do
  6652. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6653. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6654. # Write the raw and C identifiers.
  6655. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6656. # Fake it for dumpbin and say T for any non-static function
  6657. # and D for any global variable.
  6658. # Also find C++ and __fastcall symbols from MSVC++,
  6659. # which start with @ or ?.
  6660. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6661. " {last_section=section; section=\$ 3};"\
  6662. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6663. " \$ 0!~/External *\|/{next};"\
  6664. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6665. " {if(hide[section]) next};"\
  6666. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6667. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6668. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6669. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6670. " ' prfx=^$ac_symprfx"
  6671. else
  6672. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6673. fi
  6674. # Check to see that the pipe works correctly.
  6675. pipe_works=no
  6676. rm -f conftest*
  6677. cat > conftest.$ac_ext <<_LT_EOF
  6678. #ifdef __cplusplus
  6679. extern "C" {
  6680. #endif
  6681. char nm_test_var;
  6682. void nm_test_func(void);
  6683. void nm_test_func(void){}
  6684. #ifdef __cplusplus
  6685. }
  6686. #endif
  6687. int main(){nm_test_var='a';nm_test_func();return(0);}
  6688. _LT_EOF
  6689. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6690. (eval $ac_compile) 2>&5
  6691. ac_status=$?
  6692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); }; then
  6694. # Now try to grab the symbols.
  6695. nlist=conftest.nm
  6696. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6697. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6698. ac_status=$?
  6699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); } && test -s "$nlist"; then
  6701. # Try sorting and uniquifying the output.
  6702. if sort "$nlist" | uniq > "$nlist"T; then
  6703. mv -f "$nlist"T "$nlist"
  6704. else
  6705. rm -f "$nlist"T
  6706. fi
  6707. # Make sure that we snagged all the symbols we need.
  6708. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6709. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6710. cat <<_LT_EOF > conftest.$ac_ext
  6711. #ifdef __cplusplus
  6712. extern "C" {
  6713. #endif
  6714. _LT_EOF
  6715. # Now generate the symbol file.
  6716. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6717. cat <<_LT_EOF >> conftest.$ac_ext
  6718. /* The mapping between symbol names and symbols. */
  6719. const struct {
  6720. const char *name;
  6721. void *address;
  6722. }
  6723. lt__PROGRAM__LTX_preloaded_symbols[] =
  6724. {
  6725. { "@PROGRAM@", (void *) 0 },
  6726. _LT_EOF
  6727. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6728. cat <<\_LT_EOF >> conftest.$ac_ext
  6729. {0, (void *) 0}
  6730. };
  6731. /* This works around a problem in FreeBSD linker */
  6732. #ifdef FREEBSD_WORKAROUND
  6733. static const void *lt_preloaded_setup() {
  6734. return lt__PROGRAM__LTX_preloaded_symbols;
  6735. }
  6736. #endif
  6737. #ifdef __cplusplus
  6738. }
  6739. #endif
  6740. _LT_EOF
  6741. # Now try linking the two files.
  6742. mv conftest.$ac_objext conftstm.$ac_objext
  6743. lt_save_LIBS="$LIBS"
  6744. lt_save_CFLAGS="$CFLAGS"
  6745. LIBS="conftstm.$ac_objext"
  6746. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6748. (eval $ac_link) 2>&5
  6749. ac_status=$?
  6750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6752. pipe_works=yes
  6753. fi
  6754. LIBS="$lt_save_LIBS"
  6755. CFLAGS="$lt_save_CFLAGS"
  6756. else
  6757. echo "cannot find nm_test_func in $nlist" >&5
  6758. fi
  6759. else
  6760. echo "cannot find nm_test_var in $nlist" >&5
  6761. fi
  6762. else
  6763. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6764. fi
  6765. else
  6766. echo "$progname: failed program was:" >&5
  6767. cat conftest.$ac_ext >&5
  6768. fi
  6769. rm -rf conftest* conftst*
  6770. # Do not use the global_symbol_pipe unless it works.
  6771. if test "$pipe_works" = yes; then
  6772. break
  6773. else
  6774. lt_cv_sys_global_symbol_pipe=
  6775. fi
  6776. done
  6777. fi
  6778. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6779. lt_cv_sys_global_symbol_to_cdecl=
  6780. fi
  6781. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6782. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6783. $as_echo "failed" >&6; }
  6784. else
  6785. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6786. $as_echo "ok" >&6; }
  6787. fi
  6788. # Check whether --enable-libtool-lock was given.
  6789. if test "${enable_libtool_lock+set}" = set; then
  6790. enableval=$enable_libtool_lock;
  6791. fi
  6792. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6793. # Some flags need to be propagated to the compiler or linker for good
  6794. # libtool support.
  6795. case $host in
  6796. ia64-*-hpux*)
  6797. # Find out which ABI we are using.
  6798. echo 'int i;' > conftest.$ac_ext
  6799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6800. (eval $ac_compile) 2>&5
  6801. ac_status=$?
  6802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6803. (exit $ac_status); }; then
  6804. case `/usr/bin/file conftest.$ac_objext` in
  6805. *ELF-32*)
  6806. HPUX_IA64_MODE="32"
  6807. ;;
  6808. *ELF-64*)
  6809. HPUX_IA64_MODE="64"
  6810. ;;
  6811. esac
  6812. fi
  6813. rm -rf conftest*
  6814. ;;
  6815. *-*-irix6*)
  6816. # Find out which ABI we are using.
  6817. echo '#line 7754 "configure"' > conftest.$ac_ext
  6818. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6819. (eval $ac_compile) 2>&5
  6820. ac_status=$?
  6821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6822. (exit $ac_status); }; then
  6823. if test "$lt_cv_prog_gnu_ld" = yes; then
  6824. case `/usr/bin/file conftest.$ac_objext` in
  6825. *32-bit*)
  6826. LD="${LD-ld} -melf32bsmip"
  6827. ;;
  6828. *N32*)
  6829. LD="${LD-ld} -melf32bmipn32"
  6830. ;;
  6831. *64-bit*)
  6832. LD="${LD-ld} -melf64bmip"
  6833. ;;
  6834. esac
  6835. else
  6836. case `/usr/bin/file conftest.$ac_objext` in
  6837. *32-bit*)
  6838. LD="${LD-ld} -32"
  6839. ;;
  6840. *N32*)
  6841. LD="${LD-ld} -n32"
  6842. ;;
  6843. *64-bit*)
  6844. LD="${LD-ld} -64"
  6845. ;;
  6846. esac
  6847. fi
  6848. fi
  6849. rm -rf conftest*
  6850. ;;
  6851. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6852. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6853. # Find out which ABI we are using.
  6854. echo 'int i;' > conftest.$ac_ext
  6855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6856. (eval $ac_compile) 2>&5
  6857. ac_status=$?
  6858. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6859. (exit $ac_status); }; then
  6860. case `/usr/bin/file conftest.o` in
  6861. *32-bit*)
  6862. case $host in
  6863. x86_64-*kfreebsd*-gnu)
  6864. LD="${LD-ld} -m elf_i386_fbsd"
  6865. ;;
  6866. x86_64-*linux*)
  6867. LD="${LD-ld} -m elf_i386"
  6868. ;;
  6869. ppc64-*linux*|powerpc64-*linux*)
  6870. LD="${LD-ld} -m elf32ppclinux"
  6871. ;;
  6872. s390x-*linux*)
  6873. LD="${LD-ld} -m elf_s390"
  6874. ;;
  6875. sparc64-*linux*)
  6876. LD="${LD-ld} -m elf32_sparc"
  6877. ;;
  6878. esac
  6879. ;;
  6880. *64-bit*)
  6881. case $host in
  6882. x86_64-*kfreebsd*-gnu)
  6883. LD="${LD-ld} -m elf_x86_64_fbsd"
  6884. ;;
  6885. x86_64-*linux*)
  6886. LD="${LD-ld} -m elf_x86_64"
  6887. ;;
  6888. ppc*-*linux*|powerpc*-*linux*)
  6889. LD="${LD-ld} -m elf64ppc"
  6890. ;;
  6891. s390*-*linux*|s390*-*tpf*)
  6892. LD="${LD-ld} -m elf64_s390"
  6893. ;;
  6894. sparc*-*linux*)
  6895. LD="${LD-ld} -m elf64_sparc"
  6896. ;;
  6897. esac
  6898. ;;
  6899. esac
  6900. fi
  6901. rm -rf conftest*
  6902. ;;
  6903. *-*-sco3.2v5*)
  6904. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6905. SAVE_CFLAGS="$CFLAGS"
  6906. CFLAGS="$CFLAGS -belf"
  6907. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6908. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6909. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6910. $as_echo_n "(cached) " >&6
  6911. else
  6912. ac_ext=c
  6913. ac_cpp='$CPP $CPPFLAGS'
  6914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6917. cat >conftest.$ac_ext <<_ACEOF
  6918. /* confdefs.h. */
  6919. _ACEOF
  6920. cat confdefs.h >>conftest.$ac_ext
  6921. cat >>conftest.$ac_ext <<_ACEOF
  6922. /* end confdefs.h. */
  6923. int
  6924. main ()
  6925. {
  6926. ;
  6927. return 0;
  6928. }
  6929. _ACEOF
  6930. rm -f conftest.$ac_objext conftest$ac_exeext
  6931. if { (ac_try="$ac_link"
  6932. case "(($ac_try" in
  6933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6934. *) ac_try_echo=$ac_try;;
  6935. esac
  6936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6937. $as_echo "$ac_try_echo") >&5
  6938. (eval "$ac_link") 2>conftest.er1
  6939. ac_status=$?
  6940. grep -v '^ *+' conftest.er1 >conftest.err
  6941. rm -f conftest.er1
  6942. cat conftest.err >&5
  6943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); } && {
  6945. test -z "$ac_c_werror_flag" ||
  6946. test ! -s conftest.err
  6947. } && test -s conftest$ac_exeext && {
  6948. test "$cross_compiling" = yes ||
  6949. $as_test_x conftest$ac_exeext
  6950. }; then
  6951. lt_cv_cc_needs_belf=yes
  6952. else
  6953. $as_echo "$as_me: failed program was:" >&5
  6954. sed 's/^/| /' conftest.$ac_ext >&5
  6955. lt_cv_cc_needs_belf=no
  6956. fi
  6957. rm -rf conftest.dSYM
  6958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6959. conftest$ac_exeext conftest.$ac_ext
  6960. ac_ext=c
  6961. ac_cpp='$CPP $CPPFLAGS'
  6962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6965. fi
  6966. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6967. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6968. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6969. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6970. CFLAGS="$SAVE_CFLAGS"
  6971. fi
  6972. ;;
  6973. sparc*-*solaris*)
  6974. # Find out which ABI we are using.
  6975. echo 'int i;' > conftest.$ac_ext
  6976. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6977. (eval $ac_compile) 2>&5
  6978. ac_status=$?
  6979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6980. (exit $ac_status); }; then
  6981. case `/usr/bin/file conftest.o` in
  6982. *64-bit*)
  6983. case $lt_cv_prog_gnu_ld in
  6984. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6985. *)
  6986. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6987. LD="${LD-ld} -64"
  6988. fi
  6989. ;;
  6990. esac
  6991. ;;
  6992. esac
  6993. fi
  6994. rm -rf conftest*
  6995. ;;
  6996. esac
  6997. need_locks="$enable_libtool_lock"
  6998. case $host_os in
  6999. rhapsody* | darwin*)
  7000. if test -n "$ac_tool_prefix"; then
  7001. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7002. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7003. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7004. $as_echo_n "checking for $ac_word... " >&6; }
  7005. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. if test -n "$DSYMUTIL"; then
  7009. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7010. else
  7011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7012. for as_dir in $PATH
  7013. do
  7014. IFS=$as_save_IFS
  7015. test -z "$as_dir" && as_dir=.
  7016. for ac_exec_ext in '' $ac_executable_extensions; do
  7017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7018. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7019. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7020. break 2
  7021. fi
  7022. done
  7023. done
  7024. IFS=$as_save_IFS
  7025. fi
  7026. fi
  7027. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7028. if test -n "$DSYMUTIL"; then
  7029. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  7030. $as_echo "$DSYMUTIL" >&6; }
  7031. else
  7032. { $as_echo "$as_me:$LINENO: result: no" >&5
  7033. $as_echo "no" >&6; }
  7034. fi
  7035. fi
  7036. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7037. ac_ct_DSYMUTIL=$DSYMUTIL
  7038. # Extract the first word of "dsymutil", so it can be a program name with args.
  7039. set dummy dsymutil; ac_word=$2
  7040. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7041. $as_echo_n "checking for $ac_word... " >&6; }
  7042. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  7043. $as_echo_n "(cached) " >&6
  7044. else
  7045. if test -n "$ac_ct_DSYMUTIL"; then
  7046. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7047. else
  7048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7049. for as_dir in $PATH
  7050. do
  7051. IFS=$as_save_IFS
  7052. test -z "$as_dir" && as_dir=.
  7053. for ac_exec_ext in '' $ac_executable_extensions; do
  7054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7055. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7056. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7057. break 2
  7058. fi
  7059. done
  7060. done
  7061. IFS=$as_save_IFS
  7062. fi
  7063. fi
  7064. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7065. if test -n "$ac_ct_DSYMUTIL"; then
  7066. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  7067. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7068. else
  7069. { $as_echo "$as_me:$LINENO: result: no" >&5
  7070. $as_echo "no" >&6; }
  7071. fi
  7072. if test "x$ac_ct_DSYMUTIL" = x; then
  7073. DSYMUTIL=":"
  7074. else
  7075. case $cross_compiling:$ac_tool_warned in
  7076. yes:)
  7077. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7079. ac_tool_warned=yes ;;
  7080. esac
  7081. DSYMUTIL=$ac_ct_DSYMUTIL
  7082. fi
  7083. else
  7084. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7085. fi
  7086. if test -n "$ac_tool_prefix"; then
  7087. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7088. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7089. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7090. $as_echo_n "checking for $ac_word... " >&6; }
  7091. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  7092. $as_echo_n "(cached) " >&6
  7093. else
  7094. if test -n "$NMEDIT"; then
  7095. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7096. else
  7097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7098. for as_dir in $PATH
  7099. do
  7100. IFS=$as_save_IFS
  7101. test -z "$as_dir" && as_dir=.
  7102. for ac_exec_ext in '' $ac_executable_extensions; do
  7103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7104. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7105. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7106. break 2
  7107. fi
  7108. done
  7109. done
  7110. IFS=$as_save_IFS
  7111. fi
  7112. fi
  7113. NMEDIT=$ac_cv_prog_NMEDIT
  7114. if test -n "$NMEDIT"; then
  7115. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  7116. $as_echo "$NMEDIT" >&6; }
  7117. else
  7118. { $as_echo "$as_me:$LINENO: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. fi
  7122. if test -z "$ac_cv_prog_NMEDIT"; then
  7123. ac_ct_NMEDIT=$NMEDIT
  7124. # Extract the first word of "nmedit", so it can be a program name with args.
  7125. set dummy nmedit; ac_word=$2
  7126. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7127. $as_echo_n "checking for $ac_word... " >&6; }
  7128. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. if test -n "$ac_ct_NMEDIT"; then
  7132. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7133. else
  7134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7135. for as_dir in $PATH
  7136. do
  7137. IFS=$as_save_IFS
  7138. test -z "$as_dir" && as_dir=.
  7139. for ac_exec_ext in '' $ac_executable_extensions; do
  7140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7141. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7142. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7143. break 2
  7144. fi
  7145. done
  7146. done
  7147. IFS=$as_save_IFS
  7148. fi
  7149. fi
  7150. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7151. if test -n "$ac_ct_NMEDIT"; then
  7152. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  7153. $as_echo "$ac_ct_NMEDIT" >&6; }
  7154. else
  7155. { $as_echo "$as_me:$LINENO: result: no" >&5
  7156. $as_echo "no" >&6; }
  7157. fi
  7158. if test "x$ac_ct_NMEDIT" = x; then
  7159. NMEDIT=":"
  7160. else
  7161. case $cross_compiling:$ac_tool_warned in
  7162. yes:)
  7163. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7165. ac_tool_warned=yes ;;
  7166. esac
  7167. NMEDIT=$ac_ct_NMEDIT
  7168. fi
  7169. else
  7170. NMEDIT="$ac_cv_prog_NMEDIT"
  7171. fi
  7172. if test -n "$ac_tool_prefix"; then
  7173. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7174. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7175. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7176. $as_echo_n "checking for $ac_word... " >&6; }
  7177. if test "${ac_cv_prog_LIPO+set}" = set; then
  7178. $as_echo_n "(cached) " >&6
  7179. else
  7180. if test -n "$LIPO"; then
  7181. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7182. else
  7183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7184. for as_dir in $PATH
  7185. do
  7186. IFS=$as_save_IFS
  7187. test -z "$as_dir" && as_dir=.
  7188. for ac_exec_ext in '' $ac_executable_extensions; do
  7189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7190. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7191. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7192. break 2
  7193. fi
  7194. done
  7195. done
  7196. IFS=$as_save_IFS
  7197. fi
  7198. fi
  7199. LIPO=$ac_cv_prog_LIPO
  7200. if test -n "$LIPO"; then
  7201. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  7202. $as_echo "$LIPO" >&6; }
  7203. else
  7204. { $as_echo "$as_me:$LINENO: result: no" >&5
  7205. $as_echo "no" >&6; }
  7206. fi
  7207. fi
  7208. if test -z "$ac_cv_prog_LIPO"; then
  7209. ac_ct_LIPO=$LIPO
  7210. # Extract the first word of "lipo", so it can be a program name with args.
  7211. set dummy lipo; ac_word=$2
  7212. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7213. $as_echo_n "checking for $ac_word... " >&6; }
  7214. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  7215. $as_echo_n "(cached) " >&6
  7216. else
  7217. if test -n "$ac_ct_LIPO"; then
  7218. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7219. else
  7220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7221. for as_dir in $PATH
  7222. do
  7223. IFS=$as_save_IFS
  7224. test -z "$as_dir" && as_dir=.
  7225. for ac_exec_ext in '' $ac_executable_extensions; do
  7226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7227. ac_cv_prog_ac_ct_LIPO="lipo"
  7228. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7229. break 2
  7230. fi
  7231. done
  7232. done
  7233. IFS=$as_save_IFS
  7234. fi
  7235. fi
  7236. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7237. if test -n "$ac_ct_LIPO"; then
  7238. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  7239. $as_echo "$ac_ct_LIPO" >&6; }
  7240. else
  7241. { $as_echo "$as_me:$LINENO: result: no" >&5
  7242. $as_echo "no" >&6; }
  7243. fi
  7244. if test "x$ac_ct_LIPO" = x; then
  7245. LIPO=":"
  7246. else
  7247. case $cross_compiling:$ac_tool_warned in
  7248. yes:)
  7249. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7251. ac_tool_warned=yes ;;
  7252. esac
  7253. LIPO=$ac_ct_LIPO
  7254. fi
  7255. else
  7256. LIPO="$ac_cv_prog_LIPO"
  7257. fi
  7258. if test -n "$ac_tool_prefix"; then
  7259. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7260. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7261. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7262. $as_echo_n "checking for $ac_word... " >&6; }
  7263. if test "${ac_cv_prog_OTOOL+set}" = set; then
  7264. $as_echo_n "(cached) " >&6
  7265. else
  7266. if test -n "$OTOOL"; then
  7267. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7268. else
  7269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7270. for as_dir in $PATH
  7271. do
  7272. IFS=$as_save_IFS
  7273. test -z "$as_dir" && as_dir=.
  7274. for ac_exec_ext in '' $ac_executable_extensions; do
  7275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7276. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7277. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7278. break 2
  7279. fi
  7280. done
  7281. done
  7282. IFS=$as_save_IFS
  7283. fi
  7284. fi
  7285. OTOOL=$ac_cv_prog_OTOOL
  7286. if test -n "$OTOOL"; then
  7287. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  7288. $as_echo "$OTOOL" >&6; }
  7289. else
  7290. { $as_echo "$as_me:$LINENO: result: no" >&5
  7291. $as_echo "no" >&6; }
  7292. fi
  7293. fi
  7294. if test -z "$ac_cv_prog_OTOOL"; then
  7295. ac_ct_OTOOL=$OTOOL
  7296. # Extract the first word of "otool", so it can be a program name with args.
  7297. set dummy otool; ac_word=$2
  7298. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7299. $as_echo_n "checking for $ac_word... " >&6; }
  7300. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  7301. $as_echo_n "(cached) " >&6
  7302. else
  7303. if test -n "$ac_ct_OTOOL"; then
  7304. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7305. else
  7306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7307. for as_dir in $PATH
  7308. do
  7309. IFS=$as_save_IFS
  7310. test -z "$as_dir" && as_dir=.
  7311. for ac_exec_ext in '' $ac_executable_extensions; do
  7312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7313. ac_cv_prog_ac_ct_OTOOL="otool"
  7314. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7315. break 2
  7316. fi
  7317. done
  7318. done
  7319. IFS=$as_save_IFS
  7320. fi
  7321. fi
  7322. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7323. if test -n "$ac_ct_OTOOL"; then
  7324. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  7325. $as_echo "$ac_ct_OTOOL" >&6; }
  7326. else
  7327. { $as_echo "$as_me:$LINENO: result: no" >&5
  7328. $as_echo "no" >&6; }
  7329. fi
  7330. if test "x$ac_ct_OTOOL" = x; then
  7331. OTOOL=":"
  7332. else
  7333. case $cross_compiling:$ac_tool_warned in
  7334. yes:)
  7335. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7337. ac_tool_warned=yes ;;
  7338. esac
  7339. OTOOL=$ac_ct_OTOOL
  7340. fi
  7341. else
  7342. OTOOL="$ac_cv_prog_OTOOL"
  7343. fi
  7344. if test -n "$ac_tool_prefix"; then
  7345. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7346. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7347. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7348. $as_echo_n "checking for $ac_word... " >&6; }
  7349. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. if test -n "$OTOOL64"; then
  7353. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7354. else
  7355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7356. for as_dir in $PATH
  7357. do
  7358. IFS=$as_save_IFS
  7359. test -z "$as_dir" && as_dir=.
  7360. for ac_exec_ext in '' $ac_executable_extensions; do
  7361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7362. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7363. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7364. break 2
  7365. fi
  7366. done
  7367. done
  7368. IFS=$as_save_IFS
  7369. fi
  7370. fi
  7371. OTOOL64=$ac_cv_prog_OTOOL64
  7372. if test -n "$OTOOL64"; then
  7373. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  7374. $as_echo "$OTOOL64" >&6; }
  7375. else
  7376. { $as_echo "$as_me:$LINENO: result: no" >&5
  7377. $as_echo "no" >&6; }
  7378. fi
  7379. fi
  7380. if test -z "$ac_cv_prog_OTOOL64"; then
  7381. ac_ct_OTOOL64=$OTOOL64
  7382. # Extract the first word of "otool64", so it can be a program name with args.
  7383. set dummy otool64; ac_word=$2
  7384. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7385. $as_echo_n "checking for $ac_word... " >&6; }
  7386. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. if test -n "$ac_ct_OTOOL64"; then
  7390. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7391. else
  7392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7393. for as_dir in $PATH
  7394. do
  7395. IFS=$as_save_IFS
  7396. test -z "$as_dir" && as_dir=.
  7397. for ac_exec_ext in '' $ac_executable_extensions; do
  7398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7399. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7400. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7401. break 2
  7402. fi
  7403. done
  7404. done
  7405. IFS=$as_save_IFS
  7406. fi
  7407. fi
  7408. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7409. if test -n "$ac_ct_OTOOL64"; then
  7410. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  7411. $as_echo "$ac_ct_OTOOL64" >&6; }
  7412. else
  7413. { $as_echo "$as_me:$LINENO: result: no" >&5
  7414. $as_echo "no" >&6; }
  7415. fi
  7416. if test "x$ac_ct_OTOOL64" = x; then
  7417. OTOOL64=":"
  7418. else
  7419. case $cross_compiling:$ac_tool_warned in
  7420. yes:)
  7421. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7423. ac_tool_warned=yes ;;
  7424. esac
  7425. OTOOL64=$ac_ct_OTOOL64
  7426. fi
  7427. else
  7428. OTOOL64="$ac_cv_prog_OTOOL64"
  7429. fi
  7430. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  7431. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7432. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. lt_cv_apple_cc_single_mod=no
  7436. if test -z "${LT_MULTI_MODULE}"; then
  7437. # By default we will add the -single_module flag. You can override
  7438. # by either setting the environment variable LT_MULTI_MODULE
  7439. # non-empty at configure time, or by adding -multi_module to the
  7440. # link flags.
  7441. rm -rf libconftest.dylib*
  7442. echo "int foo(void){return 1;}" > conftest.c
  7443. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7444. -dynamiclib -Wl,-single_module conftest.c" >&5
  7445. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7446. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7447. _lt_result=$?
  7448. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7449. lt_cv_apple_cc_single_mod=yes
  7450. else
  7451. cat conftest.err >&5
  7452. fi
  7453. rm -rf libconftest.dylib*
  7454. rm -f conftest.*
  7455. fi
  7456. fi
  7457. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  7458. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7459. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  7460. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7461. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  7462. $as_echo_n "(cached) " >&6
  7463. else
  7464. lt_cv_ld_exported_symbols_list=no
  7465. save_LDFLAGS=$LDFLAGS
  7466. echo "_main" > conftest.sym
  7467. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7468. cat >conftest.$ac_ext <<_ACEOF
  7469. /* confdefs.h. */
  7470. _ACEOF
  7471. cat confdefs.h >>conftest.$ac_ext
  7472. cat >>conftest.$ac_ext <<_ACEOF
  7473. /* end confdefs.h. */
  7474. int
  7475. main ()
  7476. {
  7477. ;
  7478. return 0;
  7479. }
  7480. _ACEOF
  7481. rm -f conftest.$ac_objext conftest$ac_exeext
  7482. if { (ac_try="$ac_link"
  7483. case "(($ac_try" in
  7484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7485. *) ac_try_echo=$ac_try;;
  7486. esac
  7487. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7488. $as_echo "$ac_try_echo") >&5
  7489. (eval "$ac_link") 2>conftest.er1
  7490. ac_status=$?
  7491. grep -v '^ *+' conftest.er1 >conftest.err
  7492. rm -f conftest.er1
  7493. cat conftest.err >&5
  7494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7495. (exit $ac_status); } && {
  7496. test -z "$ac_c_werror_flag" ||
  7497. test ! -s conftest.err
  7498. } && test -s conftest$ac_exeext && {
  7499. test "$cross_compiling" = yes ||
  7500. $as_test_x conftest$ac_exeext
  7501. }; then
  7502. lt_cv_ld_exported_symbols_list=yes
  7503. else
  7504. $as_echo "$as_me: failed program was:" >&5
  7505. sed 's/^/| /' conftest.$ac_ext >&5
  7506. lt_cv_ld_exported_symbols_list=no
  7507. fi
  7508. rm -rf conftest.dSYM
  7509. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7510. conftest$ac_exeext conftest.$ac_ext
  7511. LDFLAGS="$save_LDFLAGS"
  7512. fi
  7513. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  7514. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7515. case $host_os in
  7516. rhapsody* | darwin1.[012])
  7517. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7518. darwin1.*)
  7519. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7520. darwin*) # darwin 5.x on
  7521. # if running on 10.5 or later, the deployment target defaults
  7522. # to the OS version, if on x86, and 10.4, the deployment
  7523. # target defaults to 10.4. Don't you love it?
  7524. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7525. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7526. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7527. 10.[012]*)
  7528. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7529. 10.*)
  7530. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7531. esac
  7532. ;;
  7533. esac
  7534. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7535. _lt_dar_single_mod='$single_module'
  7536. fi
  7537. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7538. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7539. else
  7540. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7541. fi
  7542. if test "$DSYMUTIL" != ":"; then
  7543. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7544. else
  7545. _lt_dsymutil=
  7546. fi
  7547. ;;
  7548. esac
  7549. for ac_header in dlfcn.h
  7550. do
  7551. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7552. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7553. $as_echo_n "checking for $ac_header... " >&6; }
  7554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. cat >conftest.$ac_ext <<_ACEOF
  7558. /* confdefs.h. */
  7559. _ACEOF
  7560. cat confdefs.h >>conftest.$ac_ext
  7561. cat >>conftest.$ac_ext <<_ACEOF
  7562. /* end confdefs.h. */
  7563. $ac_includes_default
  7564. #include <$ac_header>
  7565. _ACEOF
  7566. rm -f conftest.$ac_objext
  7567. if { (ac_try="$ac_compile"
  7568. case "(($ac_try" in
  7569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7570. *) ac_try_echo=$ac_try;;
  7571. esac
  7572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7573. $as_echo "$ac_try_echo") >&5
  7574. (eval "$ac_compile") 2>conftest.er1
  7575. ac_status=$?
  7576. grep -v '^ *+' conftest.er1 >conftest.err
  7577. rm -f conftest.er1
  7578. cat conftest.err >&5
  7579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7580. (exit $ac_status); } && {
  7581. test -z "$ac_c_werror_flag" ||
  7582. test ! -s conftest.err
  7583. } && test -s conftest.$ac_objext; then
  7584. eval "$as_ac_Header=yes"
  7585. else
  7586. $as_echo "$as_me: failed program was:" >&5
  7587. sed 's/^/| /' conftest.$ac_ext >&5
  7588. eval "$as_ac_Header=no"
  7589. fi
  7590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7591. fi
  7592. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7593. $as_echo "$as_val"'`
  7594. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7595. $as_echo "$ac_res" >&6; }
  7596. as_val=`eval 'as_val=${'$as_ac_Header'}
  7597. $as_echo "$as_val"'`
  7598. if test "x$as_val" = x""yes; then
  7599. cat >>confdefs.h <<_ACEOF
  7600. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7601. _ACEOF
  7602. fi
  7603. done
  7604. # Set options
  7605. # Check whether --enable-static was given.
  7606. if test "${enable_static+set}" = set; then
  7607. enableval=$enable_static; p=${PACKAGE-default}
  7608. case $enableval in
  7609. yes) enable_static=yes ;;
  7610. no) enable_static=no ;;
  7611. *)
  7612. enable_static=no
  7613. # Look at the argument we got. We use all the common list separators.
  7614. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7615. for pkg in $enableval; do
  7616. IFS="$lt_save_ifs"
  7617. if test "X$pkg" = "X$p"; then
  7618. enable_static=yes
  7619. fi
  7620. done
  7621. IFS="$lt_save_ifs"
  7622. ;;
  7623. esac
  7624. else
  7625. enable_static=no
  7626. fi
  7627. enable_win32_dll=yes
  7628. case $host in
  7629. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  7630. if test -n "$ac_tool_prefix"; then
  7631. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7632. set dummy ${ac_tool_prefix}as; ac_word=$2
  7633. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7634. $as_echo_n "checking for $ac_word... " >&6; }
  7635. if test "${ac_cv_prog_AS+set}" = set; then
  7636. $as_echo_n "(cached) " >&6
  7637. else
  7638. if test -n "$AS"; then
  7639. ac_cv_prog_AS="$AS" # Let the user override the test.
  7640. else
  7641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7642. for as_dir in $PATH
  7643. do
  7644. IFS=$as_save_IFS
  7645. test -z "$as_dir" && as_dir=.
  7646. for ac_exec_ext in '' $ac_executable_extensions; do
  7647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7648. ac_cv_prog_AS="${ac_tool_prefix}as"
  7649. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7650. break 2
  7651. fi
  7652. done
  7653. done
  7654. IFS=$as_save_IFS
  7655. fi
  7656. fi
  7657. AS=$ac_cv_prog_AS
  7658. if test -n "$AS"; then
  7659. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  7660. $as_echo "$AS" >&6; }
  7661. else
  7662. { $as_echo "$as_me:$LINENO: result: no" >&5
  7663. $as_echo "no" >&6; }
  7664. fi
  7665. fi
  7666. if test -z "$ac_cv_prog_AS"; then
  7667. ac_ct_AS=$AS
  7668. # Extract the first word of "as", so it can be a program name with args.
  7669. set dummy as; ac_word=$2
  7670. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7671. $as_echo_n "checking for $ac_word... " >&6; }
  7672. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  7673. $as_echo_n "(cached) " >&6
  7674. else
  7675. if test -n "$ac_ct_AS"; then
  7676. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7677. else
  7678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7679. for as_dir in $PATH
  7680. do
  7681. IFS=$as_save_IFS
  7682. test -z "$as_dir" && as_dir=.
  7683. for ac_exec_ext in '' $ac_executable_extensions; do
  7684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7685. ac_cv_prog_ac_ct_AS="as"
  7686. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7687. break 2
  7688. fi
  7689. done
  7690. done
  7691. IFS=$as_save_IFS
  7692. fi
  7693. fi
  7694. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7695. if test -n "$ac_ct_AS"; then
  7696. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  7697. $as_echo "$ac_ct_AS" >&6; }
  7698. else
  7699. { $as_echo "$as_me:$LINENO: result: no" >&5
  7700. $as_echo "no" >&6; }
  7701. fi
  7702. if test "x$ac_ct_AS" = x; then
  7703. AS="false"
  7704. else
  7705. case $cross_compiling:$ac_tool_warned in
  7706. yes:)
  7707. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7709. ac_tool_warned=yes ;;
  7710. esac
  7711. AS=$ac_ct_AS
  7712. fi
  7713. else
  7714. AS="$ac_cv_prog_AS"
  7715. fi
  7716. if test -n "$ac_tool_prefix"; then
  7717. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7718. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7719. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7720. $as_echo_n "checking for $ac_word... " >&6; }
  7721. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  7722. $as_echo_n "(cached) " >&6
  7723. else
  7724. if test -n "$DLLTOOL"; then
  7725. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7726. else
  7727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7728. for as_dir in $PATH
  7729. do
  7730. IFS=$as_save_IFS
  7731. test -z "$as_dir" && as_dir=.
  7732. for ac_exec_ext in '' $ac_executable_extensions; do
  7733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7734. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7735. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7736. break 2
  7737. fi
  7738. done
  7739. done
  7740. IFS=$as_save_IFS
  7741. fi
  7742. fi
  7743. DLLTOOL=$ac_cv_prog_DLLTOOL
  7744. if test -n "$DLLTOOL"; then
  7745. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  7746. $as_echo "$DLLTOOL" >&6; }
  7747. else
  7748. { $as_echo "$as_me:$LINENO: result: no" >&5
  7749. $as_echo "no" >&6; }
  7750. fi
  7751. fi
  7752. if test -z "$ac_cv_prog_DLLTOOL"; then
  7753. ac_ct_DLLTOOL=$DLLTOOL
  7754. # Extract the first word of "dlltool", so it can be a program name with args.
  7755. set dummy dlltool; ac_word=$2
  7756. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7757. $as_echo_n "checking for $ac_word... " >&6; }
  7758. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  7759. $as_echo_n "(cached) " >&6
  7760. else
  7761. if test -n "$ac_ct_DLLTOOL"; then
  7762. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7763. else
  7764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7765. for as_dir in $PATH
  7766. do
  7767. IFS=$as_save_IFS
  7768. test -z "$as_dir" && as_dir=.
  7769. for ac_exec_ext in '' $ac_executable_extensions; do
  7770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7771. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7772. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7773. break 2
  7774. fi
  7775. done
  7776. done
  7777. IFS=$as_save_IFS
  7778. fi
  7779. fi
  7780. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7781. if test -n "$ac_ct_DLLTOOL"; then
  7782. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  7783. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7784. else
  7785. { $as_echo "$as_me:$LINENO: result: no" >&5
  7786. $as_echo "no" >&6; }
  7787. fi
  7788. if test "x$ac_ct_DLLTOOL" = x; then
  7789. DLLTOOL="false"
  7790. else
  7791. case $cross_compiling:$ac_tool_warned in
  7792. yes:)
  7793. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7794. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7795. ac_tool_warned=yes ;;
  7796. esac
  7797. DLLTOOL=$ac_ct_DLLTOOL
  7798. fi
  7799. else
  7800. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7801. fi
  7802. if test -n "$ac_tool_prefix"; then
  7803. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7804. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7805. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7806. $as_echo_n "checking for $ac_word... " >&6; }
  7807. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  7808. $as_echo_n "(cached) " >&6
  7809. else
  7810. if test -n "$OBJDUMP"; then
  7811. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7812. else
  7813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7814. for as_dir in $PATH
  7815. do
  7816. IFS=$as_save_IFS
  7817. test -z "$as_dir" && as_dir=.
  7818. for ac_exec_ext in '' $ac_executable_extensions; do
  7819. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7820. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7821. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7822. break 2
  7823. fi
  7824. done
  7825. done
  7826. IFS=$as_save_IFS
  7827. fi
  7828. fi
  7829. OBJDUMP=$ac_cv_prog_OBJDUMP
  7830. if test -n "$OBJDUMP"; then
  7831. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  7832. $as_echo "$OBJDUMP" >&6; }
  7833. else
  7834. { $as_echo "$as_me:$LINENO: result: no" >&5
  7835. $as_echo "no" >&6; }
  7836. fi
  7837. fi
  7838. if test -z "$ac_cv_prog_OBJDUMP"; then
  7839. ac_ct_OBJDUMP=$OBJDUMP
  7840. # Extract the first word of "objdump", so it can be a program name with args.
  7841. set dummy objdump; ac_word=$2
  7842. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7843. $as_echo_n "checking for $ac_word... " >&6; }
  7844. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  7845. $as_echo_n "(cached) " >&6
  7846. else
  7847. if test -n "$ac_ct_OBJDUMP"; then
  7848. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7849. else
  7850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7851. for as_dir in $PATH
  7852. do
  7853. IFS=$as_save_IFS
  7854. test -z "$as_dir" && as_dir=.
  7855. for ac_exec_ext in '' $ac_executable_extensions; do
  7856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7857. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7858. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7859. break 2
  7860. fi
  7861. done
  7862. done
  7863. IFS=$as_save_IFS
  7864. fi
  7865. fi
  7866. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7867. if test -n "$ac_ct_OBJDUMP"; then
  7868. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  7869. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7870. else
  7871. { $as_echo "$as_me:$LINENO: result: no" >&5
  7872. $as_echo "no" >&6; }
  7873. fi
  7874. if test "x$ac_ct_OBJDUMP" = x; then
  7875. OBJDUMP="false"
  7876. else
  7877. case $cross_compiling:$ac_tool_warned in
  7878. yes:)
  7879. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7881. ac_tool_warned=yes ;;
  7882. esac
  7883. OBJDUMP=$ac_ct_OBJDUMP
  7884. fi
  7885. else
  7886. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7887. fi
  7888. ;;
  7889. esac
  7890. test -z "$AS" && AS=as
  7891. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7892. test -z "$OBJDUMP" && OBJDUMP=objdump
  7893. enable_dlopen=no
  7894. # Check whether --enable-shared was given.
  7895. if test "${enable_shared+set}" = set; then
  7896. enableval=$enable_shared; p=${PACKAGE-default}
  7897. case $enableval in
  7898. yes) enable_shared=yes ;;
  7899. no) enable_shared=no ;;
  7900. *)
  7901. enable_shared=no
  7902. # Look at the argument we got. We use all the common list separators.
  7903. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7904. for pkg in $enableval; do
  7905. IFS="$lt_save_ifs"
  7906. if test "X$pkg" = "X$p"; then
  7907. enable_shared=yes
  7908. fi
  7909. done
  7910. IFS="$lt_save_ifs"
  7911. ;;
  7912. esac
  7913. else
  7914. enable_shared=yes
  7915. fi
  7916. # Check whether --with-pic was given.
  7917. if test "${with_pic+set}" = set; then
  7918. withval=$with_pic; pic_mode="$withval"
  7919. else
  7920. pic_mode=default
  7921. fi
  7922. test -z "$pic_mode" && pic_mode=default
  7923. # Check whether --enable-fast-install was given.
  7924. if test "${enable_fast_install+set}" = set; then
  7925. enableval=$enable_fast_install; p=${PACKAGE-default}
  7926. case $enableval in
  7927. yes) enable_fast_install=yes ;;
  7928. no) enable_fast_install=no ;;
  7929. *)
  7930. enable_fast_install=no
  7931. # Look at the argument we got. We use all the common list separators.
  7932. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7933. for pkg in $enableval; do
  7934. IFS="$lt_save_ifs"
  7935. if test "X$pkg" = "X$p"; then
  7936. enable_fast_install=yes
  7937. fi
  7938. done
  7939. IFS="$lt_save_ifs"
  7940. ;;
  7941. esac
  7942. else
  7943. enable_fast_install=yes
  7944. fi
  7945. # This can be used to rebuild libtool when needed
  7946. LIBTOOL_DEPS="$ltmain"
  7947. # Always use our own libtool.
  7948. LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
  7949. test -z "$LN_S" && LN_S="ln -s"
  7950. if test -n "${ZSH_VERSION+set}" ; then
  7951. setopt NO_GLOB_SUBST
  7952. fi
  7953. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7954. $as_echo_n "checking for objdir... " >&6; }
  7955. if test "${lt_cv_objdir+set}" = set; then
  7956. $as_echo_n "(cached) " >&6
  7957. else
  7958. rm -f .libs 2>/dev/null
  7959. mkdir .libs 2>/dev/null
  7960. if test -d .libs; then
  7961. lt_cv_objdir=.libs
  7962. else
  7963. # MS-DOS does not allow filenames that begin with a dot.
  7964. lt_cv_objdir=_libs
  7965. fi
  7966. rmdir .libs 2>/dev/null
  7967. fi
  7968. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7969. $as_echo "$lt_cv_objdir" >&6; }
  7970. objdir=$lt_cv_objdir
  7971. cat >>confdefs.h <<_ACEOF
  7972. #define LT_OBJDIR "$lt_cv_objdir/"
  7973. _ACEOF
  7974. case $host_os in
  7975. aix3*)
  7976. # AIX sometimes has problems with the GCC collect2 program. For some
  7977. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7978. # vanish in a puff of smoke.
  7979. if test "X${COLLECT_NAMES+set}" != Xset; then
  7980. COLLECT_NAMES=
  7981. export COLLECT_NAMES
  7982. fi
  7983. ;;
  7984. esac
  7985. # Sed substitution that helps us do robust quoting. It backslashifies
  7986. # metacharacters that are still active within double-quoted strings.
  7987. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7988. # Same as above, but do not quote variable references.
  7989. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7990. # Sed substitution to delay expansion of an escaped shell variable in a
  7991. # double_quote_subst'ed string.
  7992. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7993. # Sed substitution to delay expansion of an escaped single quote.
  7994. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7995. # Sed substitution to avoid accidental globbing in evaled expressions
  7996. no_glob_subst='s/\*/\\\*/g'
  7997. # Global variables:
  7998. ofile=libtool
  7999. can_build_shared=yes
  8000. # All known linkers require a `.a' archive for static linking (except MSVC,
  8001. # which needs '.lib').
  8002. libext=a
  8003. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8004. old_CC="$CC"
  8005. old_CFLAGS="$CFLAGS"
  8006. # Set sane defaults for various variables
  8007. test -z "$CC" && CC=cc
  8008. test -z "$LTCC" && LTCC=$CC
  8009. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8010. test -z "$LD" && LD=ld
  8011. test -z "$ac_objext" && ac_objext=o
  8012. for cc_temp in $compiler""; do
  8013. case $cc_temp in
  8014. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8015. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8016. \-*) ;;
  8017. *) break;;
  8018. esac
  8019. done
  8020. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8021. # Only perform the check for file, if the check method requires it
  8022. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8023. case $deplibs_check_method in
  8024. file_magic*)
  8025. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8026. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8027. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8028. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8029. $as_echo_n "(cached) " >&6
  8030. else
  8031. case $MAGIC_CMD in
  8032. [\\/*] | ?:[\\/]*)
  8033. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8034. ;;
  8035. *)
  8036. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8037. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8038. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8039. for ac_dir in $ac_dummy; do
  8040. IFS="$lt_save_ifs"
  8041. test -z "$ac_dir" && ac_dir=.
  8042. if test -f $ac_dir/${ac_tool_prefix}file; then
  8043. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8044. if test -n "$file_magic_test_file"; then
  8045. case $deplibs_check_method in
  8046. "file_magic "*)
  8047. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8048. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8049. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8050. $EGREP "$file_magic_regex" > /dev/null; then
  8051. :
  8052. else
  8053. cat <<_LT_EOF 1>&2
  8054. *** Warning: the command libtool uses to detect shared libraries,
  8055. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8056. *** The result is that libtool may fail to recognize shared libraries
  8057. *** as such. This will affect the creation of libtool libraries that
  8058. *** depend on shared libraries, but programs linked with such libtool
  8059. *** libraries will work regardless of this problem. Nevertheless, you
  8060. *** may want to report the problem to your system manager and/or to
  8061. *** bug-libtool@gnu.org
  8062. _LT_EOF
  8063. fi ;;
  8064. esac
  8065. fi
  8066. break
  8067. fi
  8068. done
  8069. IFS="$lt_save_ifs"
  8070. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8071. ;;
  8072. esac
  8073. fi
  8074. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8075. if test -n "$MAGIC_CMD"; then
  8076. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8077. $as_echo "$MAGIC_CMD" >&6; }
  8078. else
  8079. { $as_echo "$as_me:$LINENO: result: no" >&5
  8080. $as_echo "no" >&6; }
  8081. fi
  8082. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8083. if test -n "$ac_tool_prefix"; then
  8084. { $as_echo "$as_me:$LINENO: checking for file" >&5
  8085. $as_echo_n "checking for file... " >&6; }
  8086. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8087. $as_echo_n "(cached) " >&6
  8088. else
  8089. case $MAGIC_CMD in
  8090. [\\/*] | ?:[\\/]*)
  8091. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8092. ;;
  8093. *)
  8094. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8095. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8096. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8097. for ac_dir in $ac_dummy; do
  8098. IFS="$lt_save_ifs"
  8099. test -z "$ac_dir" && ac_dir=.
  8100. if test -f $ac_dir/file; then
  8101. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8102. if test -n "$file_magic_test_file"; then
  8103. case $deplibs_check_method in
  8104. "file_magic "*)
  8105. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8106. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8107. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8108. $EGREP "$file_magic_regex" > /dev/null; then
  8109. :
  8110. else
  8111. cat <<_LT_EOF 1>&2
  8112. *** Warning: the command libtool uses to detect shared libraries,
  8113. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8114. *** The result is that libtool may fail to recognize shared libraries
  8115. *** as such. This will affect the creation of libtool libraries that
  8116. *** depend on shared libraries, but programs linked with such libtool
  8117. *** libraries will work regardless of this problem. Nevertheless, you
  8118. *** may want to report the problem to your system manager and/or to
  8119. *** bug-libtool@gnu.org
  8120. _LT_EOF
  8121. fi ;;
  8122. esac
  8123. fi
  8124. break
  8125. fi
  8126. done
  8127. IFS="$lt_save_ifs"
  8128. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8129. ;;
  8130. esac
  8131. fi
  8132. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8133. if test -n "$MAGIC_CMD"; then
  8134. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8135. $as_echo "$MAGIC_CMD" >&6; }
  8136. else
  8137. { $as_echo "$as_me:$LINENO: result: no" >&5
  8138. $as_echo "no" >&6; }
  8139. fi
  8140. else
  8141. MAGIC_CMD=:
  8142. fi
  8143. fi
  8144. fi
  8145. ;;
  8146. esac
  8147. # Use C for the default configuration in the libtool script
  8148. lt_save_CC="$CC"
  8149. ac_ext=c
  8150. ac_cpp='$CPP $CPPFLAGS'
  8151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8154. # Source file extension for C test sources.
  8155. ac_ext=c
  8156. # Object file extension for compiled C test sources.
  8157. objext=o
  8158. objext=$objext
  8159. # Code to be used in simple compile tests
  8160. lt_simple_compile_test_code="int some_variable = 0;"
  8161. # Code to be used in simple link tests
  8162. lt_simple_link_test_code='int main(){return(0);}'
  8163. # If no C compiler was specified, use CC.
  8164. LTCC=${LTCC-"$CC"}
  8165. # If no C compiler flags were specified, use CFLAGS.
  8166. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8167. # Allow CC to be a program name with arguments.
  8168. compiler=$CC
  8169. # Save the default compiler, since it gets overwritten when the other
  8170. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8171. compiler_DEFAULT=$CC
  8172. # save warnings/boilerplate of simple test code
  8173. ac_outfile=conftest.$ac_objext
  8174. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8175. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8176. _lt_compiler_boilerplate=`cat conftest.err`
  8177. $RM conftest*
  8178. ac_outfile=conftest.$ac_objext
  8179. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8180. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8181. _lt_linker_boilerplate=`cat conftest.err`
  8182. $RM -r conftest*
  8183. ## CAVEAT EMPTOR:
  8184. ## There is no encapsulation within the following macros, do not change
  8185. ## the running order or otherwise move them around unless you know exactly
  8186. ## what you are doing...
  8187. if test -n "$compiler"; then
  8188. lt_prog_compiler_no_builtin_flag=
  8189. if test "$GCC" = yes; then
  8190. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8191. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8192. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8193. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8194. $as_echo_n "(cached) " >&6
  8195. else
  8196. lt_cv_prog_compiler_rtti_exceptions=no
  8197. ac_outfile=conftest.$ac_objext
  8198. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8199. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8200. # Insert the option either (1) after the last *FLAGS variable, or
  8201. # (2) before a word containing "conftest.", or (3) at the end.
  8202. # Note that $ac_compile itself does not contain backslashes and begins
  8203. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8204. # The option is referenced via a variable to avoid confusing sed.
  8205. lt_compile=`echo "$ac_compile" | $SED \
  8206. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8207. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8208. -e 's:$: $lt_compiler_flag:'`
  8209. (eval echo "\"\$as_me:9420: $lt_compile\"" >&5)
  8210. (eval "$lt_compile" 2>conftest.err)
  8211. ac_status=$?
  8212. cat conftest.err >&5
  8213. echo "$as_me:9424: \$? = $ac_status" >&5
  8214. if (exit $ac_status) && test -s "$ac_outfile"; then
  8215. # The compiler can only warn and ignore the option if not recognized
  8216. # So say no if there are warnings other than the usual output.
  8217. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8218. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8219. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8220. lt_cv_prog_compiler_rtti_exceptions=yes
  8221. fi
  8222. fi
  8223. $RM conftest*
  8224. fi
  8225. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8226. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8227. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8228. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8229. else
  8230. :
  8231. fi
  8232. fi
  8233. lt_prog_compiler_wl=
  8234. lt_prog_compiler_pic=
  8235. lt_prog_compiler_static=
  8236. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8237. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8238. if test "$GCC" = yes; then
  8239. lt_prog_compiler_wl='-Wl,'
  8240. lt_prog_compiler_static='-static'
  8241. case $host_os in
  8242. aix*)
  8243. # All AIX code is PIC.
  8244. if test "$host_cpu" = ia64; then
  8245. # AIX 5 now supports IA64 processor
  8246. lt_prog_compiler_static='-Bstatic'
  8247. fi
  8248. ;;
  8249. amigaos*)
  8250. case $host_cpu in
  8251. powerpc)
  8252. # see comment about AmigaOS4 .so support
  8253. lt_prog_compiler_pic='-fPIC'
  8254. ;;
  8255. m68k)
  8256. # FIXME: we need at least 68020 code to build shared libraries, but
  8257. # adding the `-m68020' flag to GCC prevents building anything better,
  8258. # like `-m68040'.
  8259. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8260. ;;
  8261. esac
  8262. ;;
  8263. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8264. # PIC is the default for these OSes.
  8265. ;;
  8266. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8267. # This hack is so that the source file can tell whether it is being
  8268. # built for inclusion in a dll (and should export symbols for example).
  8269. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8270. # (--disable-auto-import) libraries
  8271. lt_prog_compiler_pic='-DDLL_EXPORT'
  8272. ;;
  8273. darwin* | rhapsody*)
  8274. # PIC is the default on this platform
  8275. # Common symbols not allowed in MH_DYLIB files
  8276. lt_prog_compiler_pic='-fno-common'
  8277. ;;
  8278. hpux*)
  8279. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8280. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8281. # sets the default TLS model and affects inlining.
  8282. case $host_cpu in
  8283. hppa*64*)
  8284. # +Z the default
  8285. ;;
  8286. *)
  8287. lt_prog_compiler_pic='-fPIC'
  8288. ;;
  8289. esac
  8290. ;;
  8291. interix[3-9]*)
  8292. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8293. # Instead, we relocate shared libraries at runtime.
  8294. ;;
  8295. msdosdjgpp*)
  8296. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8297. # on systems that don't support them.
  8298. lt_prog_compiler_can_build_shared=no
  8299. enable_shared=no
  8300. ;;
  8301. *nto* | *qnx*)
  8302. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8303. # it will coredump.
  8304. lt_prog_compiler_pic='-fPIC -shared'
  8305. ;;
  8306. sysv4*MP*)
  8307. if test -d /usr/nec; then
  8308. lt_prog_compiler_pic=-Kconform_pic
  8309. fi
  8310. ;;
  8311. *)
  8312. lt_prog_compiler_pic='-fPIC'
  8313. ;;
  8314. esac
  8315. else
  8316. # PORTME Check for flag to pass linker flags through the system compiler.
  8317. case $host_os in
  8318. aix*)
  8319. lt_prog_compiler_wl='-Wl,'
  8320. if test "$host_cpu" = ia64; then
  8321. # AIX 5 now supports IA64 processor
  8322. lt_prog_compiler_static='-Bstatic'
  8323. else
  8324. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8325. fi
  8326. ;;
  8327. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8328. # This hack is so that the source file can tell whether it is being
  8329. # built for inclusion in a dll (and should export symbols for example).
  8330. lt_prog_compiler_pic='-DDLL_EXPORT'
  8331. ;;
  8332. hpux9* | hpux10* | hpux11*)
  8333. lt_prog_compiler_wl='-Wl,'
  8334. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8335. # not for PA HP-UX.
  8336. case $host_cpu in
  8337. hppa*64*|ia64*)
  8338. # +Z the default
  8339. ;;
  8340. *)
  8341. lt_prog_compiler_pic='+Z'
  8342. ;;
  8343. esac
  8344. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8345. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8346. ;;
  8347. irix5* | irix6* | nonstopux*)
  8348. lt_prog_compiler_wl='-Wl,'
  8349. # PIC (with -KPIC) is the default.
  8350. lt_prog_compiler_static='-non_shared'
  8351. ;;
  8352. linux* | k*bsd*-gnu)
  8353. case $cc_basename in
  8354. # old Intel for x86_64 which still supported -KPIC.
  8355. ecc*)
  8356. lt_prog_compiler_wl='-Wl,'
  8357. lt_prog_compiler_pic='-KPIC'
  8358. lt_prog_compiler_static='-static'
  8359. ;;
  8360. # icc used to be incompatible with GCC.
  8361. # ICC 10 doesn't accept -KPIC any more.
  8362. icc* | ifort*)
  8363. lt_prog_compiler_wl='-Wl,'
  8364. lt_prog_compiler_pic='-fPIC'
  8365. lt_prog_compiler_static='-static'
  8366. ;;
  8367. # Lahey Fortran 8.1.
  8368. lf95*)
  8369. lt_prog_compiler_wl='-Wl,'
  8370. lt_prog_compiler_pic='--shared'
  8371. lt_prog_compiler_static='--static'
  8372. ;;
  8373. pgcc* | pgf77* | pgf90* | pgf95*)
  8374. # Portland Group compilers (*not* the Pentium gcc compiler,
  8375. # which looks to be a dead project)
  8376. lt_prog_compiler_wl='-Wl,'
  8377. lt_prog_compiler_pic='-fpic'
  8378. lt_prog_compiler_static='-Bstatic'
  8379. ;;
  8380. ccc*)
  8381. lt_prog_compiler_wl='-Wl,'
  8382. # All Alpha code is PIC.
  8383. lt_prog_compiler_static='-non_shared'
  8384. ;;
  8385. xl*)
  8386. # IBM XL C 8.0/Fortran 10.1 on PPC
  8387. lt_prog_compiler_wl='-Wl,'
  8388. lt_prog_compiler_pic='-qpic'
  8389. lt_prog_compiler_static='-qstaticlink'
  8390. ;;
  8391. *)
  8392. case `$CC -V 2>&1 | sed 5q` in
  8393. *Sun\ C*)
  8394. # Sun C 5.9
  8395. lt_prog_compiler_pic='-KPIC'
  8396. lt_prog_compiler_static='-Bstatic'
  8397. lt_prog_compiler_wl='-Wl,'
  8398. ;;
  8399. *Sun\ F*)
  8400. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8401. lt_prog_compiler_pic='-KPIC'
  8402. lt_prog_compiler_static='-Bstatic'
  8403. lt_prog_compiler_wl=''
  8404. ;;
  8405. esac
  8406. ;;
  8407. esac
  8408. ;;
  8409. newsos6)
  8410. lt_prog_compiler_pic='-KPIC'
  8411. lt_prog_compiler_static='-Bstatic'
  8412. ;;
  8413. *nto* | *qnx*)
  8414. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8415. # it will coredump.
  8416. lt_prog_compiler_pic='-fPIC -shared'
  8417. ;;
  8418. osf3* | osf4* | osf5*)
  8419. lt_prog_compiler_wl='-Wl,'
  8420. # All OSF/1 code is PIC.
  8421. lt_prog_compiler_static='-non_shared'
  8422. ;;
  8423. rdos*)
  8424. lt_prog_compiler_static='-non_shared'
  8425. ;;
  8426. solaris*)
  8427. lt_prog_compiler_pic='-KPIC'
  8428. lt_prog_compiler_static='-Bstatic'
  8429. case $cc_basename in
  8430. f77* | f90* | f95*)
  8431. lt_prog_compiler_wl='-Qoption ld ';;
  8432. *)
  8433. lt_prog_compiler_wl='-Wl,';;
  8434. esac
  8435. ;;
  8436. sunos4*)
  8437. lt_prog_compiler_wl='-Qoption ld '
  8438. lt_prog_compiler_pic='-PIC'
  8439. lt_prog_compiler_static='-Bstatic'
  8440. ;;
  8441. sysv4 | sysv4.2uw2* | sysv4.3*)
  8442. lt_prog_compiler_wl='-Wl,'
  8443. lt_prog_compiler_pic='-KPIC'
  8444. lt_prog_compiler_static='-Bstatic'
  8445. ;;
  8446. sysv4*MP*)
  8447. if test -d /usr/nec ;then
  8448. lt_prog_compiler_pic='-Kconform_pic'
  8449. lt_prog_compiler_static='-Bstatic'
  8450. fi
  8451. ;;
  8452. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8453. lt_prog_compiler_wl='-Wl,'
  8454. lt_prog_compiler_pic='-KPIC'
  8455. lt_prog_compiler_static='-Bstatic'
  8456. ;;
  8457. unicos*)
  8458. lt_prog_compiler_wl='-Wl,'
  8459. lt_prog_compiler_can_build_shared=no
  8460. ;;
  8461. uts4*)
  8462. lt_prog_compiler_pic='-pic'
  8463. lt_prog_compiler_static='-Bstatic'
  8464. ;;
  8465. *)
  8466. lt_prog_compiler_can_build_shared=no
  8467. ;;
  8468. esac
  8469. fi
  8470. case $host_os in
  8471. # For platforms which do not support PIC, -DPIC is meaningless:
  8472. *djgpp*)
  8473. lt_prog_compiler_pic=
  8474. ;;
  8475. *)
  8476. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8477. ;;
  8478. esac
  8479. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8480. $as_echo "$lt_prog_compiler_pic" >&6; }
  8481. #
  8482. # Check to make sure the PIC flag actually works.
  8483. #
  8484. if test -n "$lt_prog_compiler_pic"; then
  8485. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8486. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8487. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. lt_cv_prog_compiler_pic_works=no
  8491. ac_outfile=conftest.$ac_objext
  8492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8493. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8494. # Insert the option either (1) after the last *FLAGS variable, or
  8495. # (2) before a word containing "conftest.", or (3) at the end.
  8496. # Note that $ac_compile itself does not contain backslashes and begins
  8497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8498. # The option is referenced via a variable to avoid confusing sed.
  8499. lt_compile=`echo "$ac_compile" | $SED \
  8500. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8501. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8502. -e 's:$: $lt_compiler_flag:'`
  8503. (eval echo "\"\$as_me:9759: $lt_compile\"" >&5)
  8504. (eval "$lt_compile" 2>conftest.err)
  8505. ac_status=$?
  8506. cat conftest.err >&5
  8507. echo "$as_me:9763: \$? = $ac_status" >&5
  8508. if (exit $ac_status) && test -s "$ac_outfile"; then
  8509. # The compiler can only warn and ignore the option if not recognized
  8510. # So say no if there are warnings other than the usual output.
  8511. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8512. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8513. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8514. lt_cv_prog_compiler_pic_works=yes
  8515. fi
  8516. fi
  8517. $RM conftest*
  8518. fi
  8519. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8520. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8521. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8522. case $lt_prog_compiler_pic in
  8523. "" | " "*) ;;
  8524. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8525. esac
  8526. else
  8527. lt_prog_compiler_pic=
  8528. lt_prog_compiler_can_build_shared=no
  8529. fi
  8530. fi
  8531. #
  8532. # Check to make sure the static flag actually works.
  8533. #
  8534. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8535. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8536. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8537. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. lt_cv_prog_compiler_static_works=no
  8541. save_LDFLAGS="$LDFLAGS"
  8542. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8543. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8544. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8545. # The linker can only warn and ignore the option if not recognized
  8546. # So say no if there are warnings
  8547. if test -s conftest.err; then
  8548. # Append any errors to the config.log.
  8549. cat conftest.err 1>&5
  8550. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8551. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8552. if diff conftest.exp conftest.er2 >/dev/null; then
  8553. lt_cv_prog_compiler_static_works=yes
  8554. fi
  8555. else
  8556. lt_cv_prog_compiler_static_works=yes
  8557. fi
  8558. fi
  8559. $RM -r conftest*
  8560. LDFLAGS="$save_LDFLAGS"
  8561. fi
  8562. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8563. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8564. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8565. :
  8566. else
  8567. lt_prog_compiler_static=
  8568. fi
  8569. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8570. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8571. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8572. $as_echo_n "(cached) " >&6
  8573. else
  8574. lt_cv_prog_compiler_c_o=no
  8575. $RM -r conftest 2>/dev/null
  8576. mkdir conftest
  8577. cd conftest
  8578. mkdir out
  8579. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8580. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8581. # Insert the option either (1) after the last *FLAGS variable, or
  8582. # (2) before a word containing "conftest.", or (3) at the end.
  8583. # Note that $ac_compile itself does not contain backslashes and begins
  8584. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8585. lt_compile=`echo "$ac_compile" | $SED \
  8586. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8587. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8588. -e 's:$: $lt_compiler_flag:'`
  8589. (eval echo "\"\$as_me:9864: $lt_compile\"" >&5)
  8590. (eval "$lt_compile" 2>out/conftest.err)
  8591. ac_status=$?
  8592. cat out/conftest.err >&5
  8593. echo "$as_me:9868: \$? = $ac_status" >&5
  8594. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8595. then
  8596. # The compiler can only warn and ignore the option if not recognized
  8597. # So say no if there are warnings
  8598. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8599. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8600. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8601. lt_cv_prog_compiler_c_o=yes
  8602. fi
  8603. fi
  8604. chmod u+w . 2>&5
  8605. $RM conftest*
  8606. # SGI C++ compiler will create directory out/ii_files/ for
  8607. # template instantiation
  8608. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8609. $RM out/* && rmdir out
  8610. cd ..
  8611. $RM -r conftest
  8612. $RM conftest*
  8613. fi
  8614. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8615. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8616. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8617. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8618. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8619. $as_echo_n "(cached) " >&6
  8620. else
  8621. lt_cv_prog_compiler_c_o=no
  8622. $RM -r conftest 2>/dev/null
  8623. mkdir conftest
  8624. cd conftest
  8625. mkdir out
  8626. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8627. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8628. # Insert the option either (1) after the last *FLAGS variable, or
  8629. # (2) before a word containing "conftest.", or (3) at the end.
  8630. # Note that $ac_compile itself does not contain backslashes and begins
  8631. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8632. lt_compile=`echo "$ac_compile" | $SED \
  8633. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8634. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8635. -e 's:$: $lt_compiler_flag:'`
  8636. (eval echo "\"\$as_me:9919: $lt_compile\"" >&5)
  8637. (eval "$lt_compile" 2>out/conftest.err)
  8638. ac_status=$?
  8639. cat out/conftest.err >&5
  8640. echo "$as_me:9923: \$? = $ac_status" >&5
  8641. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8642. then
  8643. # The compiler can only warn and ignore the option if not recognized
  8644. # So say no if there are warnings
  8645. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8646. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8647. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8648. lt_cv_prog_compiler_c_o=yes
  8649. fi
  8650. fi
  8651. chmod u+w . 2>&5
  8652. $RM conftest*
  8653. # SGI C++ compiler will create directory out/ii_files/ for
  8654. # template instantiation
  8655. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8656. $RM out/* && rmdir out
  8657. cd ..
  8658. $RM -r conftest
  8659. $RM conftest*
  8660. fi
  8661. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8662. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8663. hard_links="nottested"
  8664. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8665. # do not overwrite the value of need_locks provided by the user
  8666. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8667. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8668. hard_links=yes
  8669. $RM conftest*
  8670. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8671. touch conftest.a
  8672. ln conftest.a conftest.b 2>&5 || hard_links=no
  8673. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8674. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8675. $as_echo "$hard_links" >&6; }
  8676. if test "$hard_links" = no; then
  8677. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8678. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8679. need_locks=warn
  8680. fi
  8681. else
  8682. need_locks=no
  8683. fi
  8684. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8685. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8686. runpath_var=
  8687. allow_undefined_flag=
  8688. always_export_symbols=no
  8689. archive_cmds=
  8690. archive_expsym_cmds=
  8691. compiler_needs_object=no
  8692. enable_shared_with_static_runtimes=no
  8693. export_dynamic_flag_spec=
  8694. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8695. hardcode_automatic=no
  8696. hardcode_direct=no
  8697. hardcode_direct_absolute=no
  8698. hardcode_libdir_flag_spec=
  8699. hardcode_libdir_flag_spec_ld=
  8700. hardcode_libdir_separator=
  8701. hardcode_minus_L=no
  8702. hardcode_shlibpath_var=unsupported
  8703. inherit_rpath=no
  8704. link_all_deplibs=unknown
  8705. module_cmds=
  8706. module_expsym_cmds=
  8707. old_archive_from_new_cmds=
  8708. old_archive_from_expsyms_cmds=
  8709. thread_safe_flag_spec=
  8710. whole_archive_flag_spec=
  8711. # include_expsyms should be a list of space-separated symbols to be *always*
  8712. # included in the symbol list
  8713. include_expsyms=
  8714. # exclude_expsyms can be an extended regexp of symbols to exclude
  8715. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8716. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8717. # as well as any symbol that contains `d'.
  8718. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8719. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8720. # platforms (ab)use it in PIC code, but their linkers get confused if
  8721. # the symbol is explicitly referenced. Since portable code cannot
  8722. # rely on this symbol name, it's probably fine to never include it in
  8723. # preloaded symbol tables.
  8724. # Exclude shared library initialization/finalization symbols.
  8725. extract_expsyms_cmds=
  8726. case $host_os in
  8727. cygwin* | mingw* | pw32* | cegcc*)
  8728. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8729. # When not using gcc, we currently assume that we are using
  8730. # Microsoft Visual C++.
  8731. if test "$GCC" != yes; then
  8732. with_gnu_ld=no
  8733. fi
  8734. ;;
  8735. interix*)
  8736. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8737. with_gnu_ld=yes
  8738. ;;
  8739. openbsd*)
  8740. with_gnu_ld=no
  8741. ;;
  8742. esac
  8743. ld_shlibs=yes
  8744. if test "$with_gnu_ld" = yes; then
  8745. # If archive_cmds runs LD, not CC, wlarc should be empty
  8746. wlarc='${wl}'
  8747. # Set some defaults for GNU ld with shared library support. These
  8748. # are reset later if shared libraries are not supported. Putting them
  8749. # here allows them to be overridden if necessary.
  8750. runpath_var=LD_RUN_PATH
  8751. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8752. export_dynamic_flag_spec='${wl}--export-dynamic'
  8753. # ancient GNU ld didn't support --whole-archive et. al.
  8754. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8755. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8756. else
  8757. whole_archive_flag_spec=
  8758. fi
  8759. supports_anon_versioning=no
  8760. case `$LD -v 2>&1` in
  8761. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8762. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8763. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8764. *\ 2.11.*) ;; # other 2.11 versions
  8765. *) supports_anon_versioning=yes ;;
  8766. esac
  8767. # See if GNU ld supports shared libraries.
  8768. case $host_os in
  8769. aix[3-9]*)
  8770. # On AIX/PPC, the GNU linker is very broken
  8771. if test "$host_cpu" != ia64; then
  8772. ld_shlibs=no
  8773. cat <<_LT_EOF 1>&2
  8774. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8775. *** to be unable to reliably create shared libraries on AIX.
  8776. *** Therefore, libtool is disabling shared libraries support. If you
  8777. *** really care for shared libraries, you may want to modify your PATH
  8778. *** so that a non-GNU linker is found, and then restart.
  8779. _LT_EOF
  8780. fi
  8781. ;;
  8782. amigaos*)
  8783. case $host_cpu in
  8784. powerpc)
  8785. # see comment about AmigaOS4 .so support
  8786. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8787. archive_expsym_cmds=''
  8788. ;;
  8789. m68k)
  8790. 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)'
  8791. hardcode_libdir_flag_spec='-L$libdir'
  8792. hardcode_minus_L=yes
  8793. ;;
  8794. esac
  8795. ;;
  8796. beos*)
  8797. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8798. allow_undefined_flag=unsupported
  8799. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8800. # support --undefined. This deserves some investigation. FIXME
  8801. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8802. else
  8803. ld_shlibs=no
  8804. fi
  8805. ;;
  8806. cygwin* | mingw* | pw32* | cegcc*)
  8807. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8808. # as there is no search path for DLLs.
  8809. hardcode_libdir_flag_spec='-L$libdir'
  8810. allow_undefined_flag=unsupported
  8811. always_export_symbols=no
  8812. enable_shared_with_static_runtimes=yes
  8813. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8814. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8815. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8816. # If the export-symbols file already is a .def file (1st line
  8817. # is EXPORTS), use it as is; otherwise, prepend...
  8818. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8819. cp $export_symbols $output_objdir/$soname.def;
  8820. else
  8821. echo EXPORTS > $output_objdir/$soname.def;
  8822. cat $export_symbols >> $output_objdir/$soname.def;
  8823. fi~
  8824. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8825. else
  8826. ld_shlibs=no
  8827. fi
  8828. ;;
  8829. interix[3-9]*)
  8830. hardcode_direct=no
  8831. hardcode_shlibpath_var=no
  8832. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8833. export_dynamic_flag_spec='${wl}-E'
  8834. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8835. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8836. # default) and relocated if they conflict, which is a slow very memory
  8837. # consuming and fragmenting process. To avoid this, we pick a random,
  8838. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8839. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8840. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8841. 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'
  8842. ;;
  8843. gnu* | linux* | tpf* | k*bsd*-gnu)
  8844. tmp_diet=no
  8845. if test "$host_os" = linux-dietlibc; then
  8846. case $cc_basename in
  8847. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8848. esac
  8849. fi
  8850. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8851. && test "$tmp_diet" = no
  8852. then
  8853. tmp_addflag=
  8854. tmp_sharedflag='-shared'
  8855. case $cc_basename,$host_cpu in
  8856. pgcc*) # Portland Group C compiler
  8857. 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'
  8858. tmp_addflag=' $pic_flag'
  8859. ;;
  8860. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8861. 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'
  8862. tmp_addflag=' $pic_flag -Mnomain' ;;
  8863. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8864. tmp_addflag=' -i_dynamic' ;;
  8865. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8866. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8867. ifc* | ifort*) # Intel Fortran compiler
  8868. tmp_addflag=' -nofor_main' ;;
  8869. lf95*) # Lahey Fortran 8.1
  8870. whole_archive_flag_spec=
  8871. tmp_sharedflag='--shared' ;;
  8872. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8873. tmp_sharedflag='-qmkshrobj'
  8874. tmp_addflag= ;;
  8875. esac
  8876. case `$CC -V 2>&1 | sed 5q` in
  8877. *Sun\ C*) # Sun C 5.9
  8878. 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'
  8879. compiler_needs_object=yes
  8880. tmp_sharedflag='-G' ;;
  8881. *Sun\ F*) # Sun Fortran 8.3
  8882. tmp_sharedflag='-G' ;;
  8883. esac
  8884. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8885. if test "x$supports_anon_versioning" = xyes; then
  8886. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8887. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8888. echo "local: *; };" >> $output_objdir/$libname.ver~
  8889. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8890. fi
  8891. case $cc_basename in
  8892. xlf*)
  8893. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8894. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8895. hardcode_libdir_flag_spec=
  8896. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8897. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8898. if test "x$supports_anon_versioning" = xyes; then
  8899. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8900. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8901. echo "local: *; };" >> $output_objdir/$libname.ver~
  8902. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8903. fi
  8904. ;;
  8905. esac
  8906. else
  8907. ld_shlibs=no
  8908. fi
  8909. ;;
  8910. netbsd*)
  8911. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8912. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8913. wlarc=
  8914. else
  8915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8916. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8917. fi
  8918. ;;
  8919. solaris*)
  8920. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8921. ld_shlibs=no
  8922. cat <<_LT_EOF 1>&2
  8923. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8924. *** create shared libraries on Solaris systems. Therefore, libtool
  8925. *** is disabling shared libraries support. We urge you to upgrade GNU
  8926. *** binutils to release 2.9.1 or newer. Another option is to modify
  8927. *** your PATH or compiler configuration so that the native linker is
  8928. *** used, and then restart.
  8929. _LT_EOF
  8930. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8931. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8932. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8933. else
  8934. ld_shlibs=no
  8935. fi
  8936. ;;
  8937. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8938. case `$LD -v 2>&1` in
  8939. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8940. ld_shlibs=no
  8941. cat <<_LT_EOF 1>&2
  8942. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8943. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8944. *** is disabling shared libraries support. We urge you to upgrade GNU
  8945. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8946. *** your PATH or compiler configuration so that the native linker is
  8947. *** used, and then restart.
  8948. _LT_EOF
  8949. ;;
  8950. *)
  8951. # For security reasons, it is highly recommended that you always
  8952. # use absolute paths for naming shared libraries, and exclude the
  8953. # DT_RUNPATH tag from executables and libraries. But doing so
  8954. # requires that you compile everything twice, which is a pain.
  8955. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8956. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8957. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8958. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8959. else
  8960. ld_shlibs=no
  8961. fi
  8962. ;;
  8963. esac
  8964. ;;
  8965. sunos4*)
  8966. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8967. wlarc=
  8968. hardcode_direct=yes
  8969. hardcode_shlibpath_var=no
  8970. ;;
  8971. *)
  8972. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8973. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8974. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8975. else
  8976. ld_shlibs=no
  8977. fi
  8978. ;;
  8979. esac
  8980. if test "$ld_shlibs" = no; then
  8981. runpath_var=
  8982. hardcode_libdir_flag_spec=
  8983. export_dynamic_flag_spec=
  8984. whole_archive_flag_spec=
  8985. fi
  8986. else
  8987. # PORTME fill in a description of your system's linker (not GNU ld)
  8988. case $host_os in
  8989. aix3*)
  8990. allow_undefined_flag=unsupported
  8991. always_export_symbols=yes
  8992. 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'
  8993. # Note: this linker hardcodes the directories in LIBPATH if there
  8994. # are no directories specified by -L.
  8995. hardcode_minus_L=yes
  8996. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8997. # Neither direct hardcoding nor static linking is supported with a
  8998. # broken collect2.
  8999. hardcode_direct=unsupported
  9000. fi
  9001. ;;
  9002. aix[4-9]*)
  9003. if test "$host_cpu" = ia64; then
  9004. # On IA64, the linker does run time linking by default, so we don't
  9005. # have to do anything special.
  9006. aix_use_runtimelinking=no
  9007. exp_sym_flag='-Bexport'
  9008. no_entry_flag=""
  9009. else
  9010. # If we're using GNU nm, then we don't want the "-C" option.
  9011. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9012. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9013. 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'
  9014. else
  9015. 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'
  9016. fi
  9017. aix_use_runtimelinking=no
  9018. # Test if we are trying to use run time linking or normal
  9019. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9020. # need to do runtime linking.
  9021. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9022. for ld_flag in $LDFLAGS; do
  9023. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9024. aix_use_runtimelinking=yes
  9025. break
  9026. fi
  9027. done
  9028. ;;
  9029. esac
  9030. exp_sym_flag='-bexport'
  9031. no_entry_flag='-bnoentry'
  9032. fi
  9033. # When large executables or shared objects are built, AIX ld can
  9034. # have problems creating the table of contents. If linking a library
  9035. # or program results in "error TOC overflow" add -mminimal-toc to
  9036. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9037. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9038. archive_cmds=''
  9039. hardcode_direct=yes
  9040. hardcode_direct_absolute=yes
  9041. hardcode_libdir_separator=':'
  9042. link_all_deplibs=yes
  9043. file_list_spec='${wl}-f,'
  9044. if test "$GCC" = yes; then
  9045. case $host_os in aix4.[012]|aix4.[012].*)
  9046. # We only want to do this on AIX 4.2 and lower, the check
  9047. # below for broken collect2 doesn't work under 4.3+
  9048. collect2name=`${CC} -print-prog-name=collect2`
  9049. if test -f "$collect2name" &&
  9050. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9051. then
  9052. # We have reworked collect2
  9053. :
  9054. else
  9055. # We have old collect2
  9056. hardcode_direct=unsupported
  9057. # It fails to find uninstalled libraries when the uninstalled
  9058. # path is not listed in the libpath. Setting hardcode_minus_L
  9059. # to unsupported forces relinking
  9060. hardcode_minus_L=yes
  9061. hardcode_libdir_flag_spec='-L$libdir'
  9062. hardcode_libdir_separator=
  9063. fi
  9064. ;;
  9065. esac
  9066. shared_flag='-shared'
  9067. if test "$aix_use_runtimelinking" = yes; then
  9068. shared_flag="$shared_flag "'${wl}-G'
  9069. fi
  9070. else
  9071. # not using gcc
  9072. if test "$host_cpu" = ia64; then
  9073. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9074. # chokes on -Wl,-G. The following line is correct:
  9075. shared_flag='-G'
  9076. else
  9077. if test "$aix_use_runtimelinking" = yes; then
  9078. shared_flag='${wl}-G'
  9079. else
  9080. shared_flag='${wl}-bM:SRE'
  9081. fi
  9082. fi
  9083. fi
  9084. export_dynamic_flag_spec='${wl}-bexpall'
  9085. # It seems that -bexpall does not export symbols beginning with
  9086. # underscore (_), so it is better to generate a list of symbols to export.
  9087. always_export_symbols=yes
  9088. if test "$aix_use_runtimelinking" = yes; then
  9089. # Warning - without using the other runtime loading flags (-brtl),
  9090. # -berok will link without error, but may produce a broken library.
  9091. allow_undefined_flag='-berok'
  9092. # Determine the default libpath from the value encoded in an
  9093. # empty executable.
  9094. cat >conftest.$ac_ext <<_ACEOF
  9095. /* confdefs.h. */
  9096. _ACEOF
  9097. cat confdefs.h >>conftest.$ac_ext
  9098. cat >>conftest.$ac_ext <<_ACEOF
  9099. /* end confdefs.h. */
  9100. int
  9101. main ()
  9102. {
  9103. ;
  9104. return 0;
  9105. }
  9106. _ACEOF
  9107. rm -f conftest.$ac_objext conftest$ac_exeext
  9108. if { (ac_try="$ac_link"
  9109. case "(($ac_try" in
  9110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9111. *) ac_try_echo=$ac_try;;
  9112. esac
  9113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9114. $as_echo "$ac_try_echo") >&5
  9115. (eval "$ac_link") 2>conftest.er1
  9116. ac_status=$?
  9117. grep -v '^ *+' conftest.er1 >conftest.err
  9118. rm -f conftest.er1
  9119. cat conftest.err >&5
  9120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. (exit $ac_status); } && {
  9122. test -z "$ac_c_werror_flag" ||
  9123. test ! -s conftest.err
  9124. } && test -s conftest$ac_exeext && {
  9125. test "$cross_compiling" = yes ||
  9126. $as_test_x conftest$ac_exeext
  9127. }; then
  9128. lt_aix_libpath_sed='
  9129. /Import File Strings/,/^$/ {
  9130. /^0/ {
  9131. s/^0 *\(.*\)$/\1/
  9132. p
  9133. }
  9134. }'
  9135. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9136. # Check for a 64-bit object if we didn't find anything.
  9137. if test -z "$aix_libpath"; then
  9138. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9139. fi
  9140. else
  9141. $as_echo "$as_me: failed program was:" >&5
  9142. sed 's/^/| /' conftest.$ac_ext >&5
  9143. fi
  9144. rm -rf conftest.dSYM
  9145. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9148. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9149. 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"
  9150. else
  9151. if test "$host_cpu" = ia64; then
  9152. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9153. allow_undefined_flag="-z nodefs"
  9154. 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"
  9155. else
  9156. # Determine the default libpath from the value encoded in an
  9157. # empty executable.
  9158. cat >conftest.$ac_ext <<_ACEOF
  9159. /* confdefs.h. */
  9160. _ACEOF
  9161. cat confdefs.h >>conftest.$ac_ext
  9162. cat >>conftest.$ac_ext <<_ACEOF
  9163. /* end confdefs.h. */
  9164. int
  9165. main ()
  9166. {
  9167. ;
  9168. return 0;
  9169. }
  9170. _ACEOF
  9171. rm -f conftest.$ac_objext conftest$ac_exeext
  9172. if { (ac_try="$ac_link"
  9173. case "(($ac_try" in
  9174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9175. *) ac_try_echo=$ac_try;;
  9176. esac
  9177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9178. $as_echo "$ac_try_echo") >&5
  9179. (eval "$ac_link") 2>conftest.er1
  9180. ac_status=$?
  9181. grep -v '^ *+' conftest.er1 >conftest.err
  9182. rm -f conftest.er1
  9183. cat conftest.err >&5
  9184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9185. (exit $ac_status); } && {
  9186. test -z "$ac_c_werror_flag" ||
  9187. test ! -s conftest.err
  9188. } && test -s conftest$ac_exeext && {
  9189. test "$cross_compiling" = yes ||
  9190. $as_test_x conftest$ac_exeext
  9191. }; then
  9192. lt_aix_libpath_sed='
  9193. /Import File Strings/,/^$/ {
  9194. /^0/ {
  9195. s/^0 *\(.*\)$/\1/
  9196. p
  9197. }
  9198. }'
  9199. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9200. # Check for a 64-bit object if we didn't find anything.
  9201. if test -z "$aix_libpath"; then
  9202. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9203. fi
  9204. else
  9205. $as_echo "$as_me: failed program was:" >&5
  9206. sed 's/^/| /' conftest.$ac_ext >&5
  9207. fi
  9208. rm -rf conftest.dSYM
  9209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9210. conftest$ac_exeext conftest.$ac_ext
  9211. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9212. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9213. # Warning - without using the other run time loading flags,
  9214. # -berok will link without error, but may produce a broken library.
  9215. no_undefined_flag=' ${wl}-bernotok'
  9216. allow_undefined_flag=' ${wl}-berok'
  9217. # Exported symbols can be pulled into shared objects from archives
  9218. whole_archive_flag_spec='$convenience'
  9219. archive_cmds_need_lc=yes
  9220. # This is similar to how AIX traditionally builds its shared libraries.
  9221. 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'
  9222. fi
  9223. fi
  9224. ;;
  9225. amigaos*)
  9226. case $host_cpu in
  9227. powerpc)
  9228. # see comment about AmigaOS4 .so support
  9229. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9230. archive_expsym_cmds=''
  9231. ;;
  9232. m68k)
  9233. 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)'
  9234. hardcode_libdir_flag_spec='-L$libdir'
  9235. hardcode_minus_L=yes
  9236. ;;
  9237. esac
  9238. ;;
  9239. bsdi[45]*)
  9240. export_dynamic_flag_spec=-rdynamic
  9241. ;;
  9242. cygwin* | mingw* | pw32* | cegcc*)
  9243. # When not using gcc, we currently assume that we are using
  9244. # Microsoft Visual C++.
  9245. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9246. # no search path for DLLs.
  9247. hardcode_libdir_flag_spec=' '
  9248. allow_undefined_flag=unsupported
  9249. # Tell ltmain to make .lib files, not .a files.
  9250. libext=lib
  9251. # Tell ltmain to make .dll files, not .so files.
  9252. shrext_cmds=".dll"
  9253. # FIXME: Setting linknames here is a bad hack.
  9254. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9255. # The linker will automatically build a .lib file if we build a DLL.
  9256. old_archive_from_new_cmds='true'
  9257. # FIXME: Should let the user specify the lib program.
  9258. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9259. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9260. enable_shared_with_static_runtimes=yes
  9261. ;;
  9262. darwin* | rhapsody*)
  9263. archive_cmds_need_lc=no
  9264. hardcode_direct=no
  9265. hardcode_automatic=yes
  9266. hardcode_shlibpath_var=unsupported
  9267. whole_archive_flag_spec=''
  9268. link_all_deplibs=yes
  9269. allow_undefined_flag="$_lt_dar_allow_undefined"
  9270. case $cc_basename in
  9271. ifort*) _lt_dar_can_shared=yes ;;
  9272. *) _lt_dar_can_shared=$GCC ;;
  9273. esac
  9274. if test "$_lt_dar_can_shared" = "yes"; then
  9275. output_verbose_link_cmd=echo
  9276. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9277. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9278. 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}"
  9279. 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}"
  9280. else
  9281. ld_shlibs=no
  9282. fi
  9283. ;;
  9284. dgux*)
  9285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9286. hardcode_libdir_flag_spec='-L$libdir'
  9287. hardcode_shlibpath_var=no
  9288. ;;
  9289. freebsd1*)
  9290. ld_shlibs=no
  9291. ;;
  9292. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9293. # support. Future versions do this automatically, but an explicit c++rt0.o
  9294. # does not break anything, and helps significantly (at the cost of a little
  9295. # extra space).
  9296. freebsd2.2*)
  9297. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9298. hardcode_libdir_flag_spec='-R$libdir'
  9299. hardcode_direct=yes
  9300. hardcode_shlibpath_var=no
  9301. ;;
  9302. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9303. freebsd2*)
  9304. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9305. hardcode_direct=yes
  9306. hardcode_minus_L=yes
  9307. hardcode_shlibpath_var=no
  9308. ;;
  9309. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9310. freebsd* | dragonfly*)
  9311. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9312. hardcode_libdir_flag_spec='-R$libdir'
  9313. hardcode_direct=yes
  9314. hardcode_shlibpath_var=no
  9315. ;;
  9316. hpux9*)
  9317. if test "$GCC" = yes; then
  9318. 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'
  9319. else
  9320. 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'
  9321. fi
  9322. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9323. hardcode_libdir_separator=:
  9324. hardcode_direct=yes
  9325. # hardcode_minus_L: Not really in the search PATH,
  9326. # but as the default location of the library.
  9327. hardcode_minus_L=yes
  9328. export_dynamic_flag_spec='${wl}-E'
  9329. ;;
  9330. hpux10*)
  9331. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9332. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9333. else
  9334. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9335. fi
  9336. if test "$with_gnu_ld" = no; then
  9337. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9338. hardcode_libdir_flag_spec_ld='+b $libdir'
  9339. hardcode_libdir_separator=:
  9340. hardcode_direct=yes
  9341. hardcode_direct_absolute=yes
  9342. export_dynamic_flag_spec='${wl}-E'
  9343. # hardcode_minus_L: Not really in the search PATH,
  9344. # but as the default location of the library.
  9345. hardcode_minus_L=yes
  9346. fi
  9347. ;;
  9348. hpux11*)
  9349. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9350. case $host_cpu in
  9351. hppa*64*)
  9352. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9353. ;;
  9354. ia64*)
  9355. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9356. ;;
  9357. *)
  9358. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9359. ;;
  9360. esac
  9361. else
  9362. case $host_cpu in
  9363. hppa*64*)
  9364. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9365. ;;
  9366. ia64*)
  9367. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9368. ;;
  9369. *)
  9370. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9371. ;;
  9372. esac
  9373. fi
  9374. if test "$with_gnu_ld" = no; then
  9375. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9376. hardcode_libdir_separator=:
  9377. case $host_cpu in
  9378. hppa*64*|ia64*)
  9379. hardcode_direct=no
  9380. hardcode_shlibpath_var=no
  9381. ;;
  9382. *)
  9383. hardcode_direct=yes
  9384. hardcode_direct_absolute=yes
  9385. export_dynamic_flag_spec='${wl}-E'
  9386. # hardcode_minus_L: Not really in the search PATH,
  9387. # but as the default location of the library.
  9388. hardcode_minus_L=yes
  9389. ;;
  9390. esac
  9391. fi
  9392. ;;
  9393. irix5* | irix6* | nonstopux*)
  9394. if test "$GCC" = yes; then
  9395. 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'
  9396. # Try to use the -exported_symbol ld option, if it does not
  9397. # work, assume that -exports_file does not work either and
  9398. # implicitly export all symbols.
  9399. save_LDFLAGS="$LDFLAGS"
  9400. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9401. cat >conftest.$ac_ext <<_ACEOF
  9402. int foo(void) {}
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext conftest$ac_exeext
  9405. if { (ac_try="$ac_link"
  9406. case "(($ac_try" in
  9407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9408. *) ac_try_echo=$ac_try;;
  9409. esac
  9410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9411. $as_echo "$ac_try_echo") >&5
  9412. (eval "$ac_link") 2>conftest.er1
  9413. ac_status=$?
  9414. grep -v '^ *+' conftest.er1 >conftest.err
  9415. rm -f conftest.er1
  9416. cat conftest.err >&5
  9417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9418. (exit $ac_status); } && {
  9419. test -z "$ac_c_werror_flag" ||
  9420. test ! -s conftest.err
  9421. } && test -s conftest$ac_exeext && {
  9422. test "$cross_compiling" = yes ||
  9423. $as_test_x conftest$ac_exeext
  9424. }; then
  9425. 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'
  9426. else
  9427. $as_echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. fi
  9430. rm -rf conftest.dSYM
  9431. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9432. conftest$ac_exeext conftest.$ac_ext
  9433. LDFLAGS="$save_LDFLAGS"
  9434. else
  9435. 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'
  9436. 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'
  9437. fi
  9438. archive_cmds_need_lc='no'
  9439. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9440. hardcode_libdir_separator=:
  9441. inherit_rpath=yes
  9442. link_all_deplibs=yes
  9443. ;;
  9444. netbsd*)
  9445. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9446. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9447. else
  9448. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9449. fi
  9450. hardcode_libdir_flag_spec='-R$libdir'
  9451. hardcode_direct=yes
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. newsos6)
  9455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9456. hardcode_direct=yes
  9457. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9458. hardcode_libdir_separator=:
  9459. hardcode_shlibpath_var=no
  9460. ;;
  9461. *nto* | *qnx*)
  9462. ;;
  9463. openbsd*)
  9464. if test -f /usr/libexec/ld.so; then
  9465. hardcode_direct=yes
  9466. hardcode_shlibpath_var=no
  9467. hardcode_direct_absolute=yes
  9468. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9470. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9471. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9472. export_dynamic_flag_spec='${wl}-E'
  9473. else
  9474. case $host_os in
  9475. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9476. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9477. hardcode_libdir_flag_spec='-R$libdir'
  9478. ;;
  9479. *)
  9480. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9481. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9482. ;;
  9483. esac
  9484. fi
  9485. else
  9486. ld_shlibs=no
  9487. fi
  9488. ;;
  9489. os2*)
  9490. hardcode_libdir_flag_spec='-L$libdir'
  9491. hardcode_minus_L=yes
  9492. allow_undefined_flag=unsupported
  9493. 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'
  9494. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9495. ;;
  9496. osf3*)
  9497. if test "$GCC" = yes; then
  9498. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9499. 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'
  9500. else
  9501. allow_undefined_flag=' -expect_unresolved \*'
  9502. 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'
  9503. fi
  9504. archive_cmds_need_lc='no'
  9505. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9506. hardcode_libdir_separator=:
  9507. ;;
  9508. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9509. if test "$GCC" = yes; then
  9510. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9511. 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'
  9512. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9513. else
  9514. allow_undefined_flag=' -expect_unresolved \*'
  9515. 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'
  9516. 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~
  9517. $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'
  9518. # Both c and cxx compiler support -rpath directly
  9519. hardcode_libdir_flag_spec='-rpath $libdir'
  9520. fi
  9521. archive_cmds_need_lc='no'
  9522. hardcode_libdir_separator=:
  9523. ;;
  9524. solaris*)
  9525. no_undefined_flag=' -z defs'
  9526. if test "$GCC" = yes; then
  9527. wlarc='${wl}'
  9528. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9529. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9530. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9531. else
  9532. case `$CC -V 2>&1` in
  9533. *"Compilers 5.0"*)
  9534. wlarc=''
  9535. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9536. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9537. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9538. ;;
  9539. *)
  9540. wlarc='${wl}'
  9541. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9542. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9543. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9544. ;;
  9545. esac
  9546. fi
  9547. hardcode_libdir_flag_spec='-R$libdir'
  9548. hardcode_shlibpath_var=no
  9549. case $host_os in
  9550. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9551. *)
  9552. # The compiler driver will combine and reorder linker options,
  9553. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9554. # but is careful enough not to reorder.
  9555. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9556. if test "$GCC" = yes; then
  9557. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9558. else
  9559. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9560. fi
  9561. ;;
  9562. esac
  9563. link_all_deplibs=yes
  9564. ;;
  9565. sunos4*)
  9566. if test "x$host_vendor" = xsequent; then
  9567. # Use $CC to link under sequent, because it throws in some extra .o
  9568. # files that make .init and .fini sections work.
  9569. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9570. else
  9571. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9572. fi
  9573. hardcode_libdir_flag_spec='-L$libdir'
  9574. hardcode_direct=yes
  9575. hardcode_minus_L=yes
  9576. hardcode_shlibpath_var=no
  9577. ;;
  9578. sysv4)
  9579. case $host_vendor in
  9580. sni)
  9581. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9582. hardcode_direct=yes # is this really true???
  9583. ;;
  9584. siemens)
  9585. ## LD is ld it makes a PLAMLIB
  9586. ## CC just makes a GrossModule.
  9587. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9588. reload_cmds='$CC -r -o $output$reload_objs'
  9589. hardcode_direct=no
  9590. ;;
  9591. motorola)
  9592. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9593. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9594. ;;
  9595. esac
  9596. runpath_var='LD_RUN_PATH'
  9597. hardcode_shlibpath_var=no
  9598. ;;
  9599. sysv4.3*)
  9600. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9601. hardcode_shlibpath_var=no
  9602. export_dynamic_flag_spec='-Bexport'
  9603. ;;
  9604. sysv4*MP*)
  9605. if test -d /usr/nec; then
  9606. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9607. hardcode_shlibpath_var=no
  9608. runpath_var=LD_RUN_PATH
  9609. hardcode_runpath_var=yes
  9610. ld_shlibs=yes
  9611. fi
  9612. ;;
  9613. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9614. no_undefined_flag='${wl}-z,text'
  9615. archive_cmds_need_lc=no
  9616. hardcode_shlibpath_var=no
  9617. runpath_var='LD_RUN_PATH'
  9618. if test "$GCC" = yes; then
  9619. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9620. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9621. else
  9622. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9623. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9624. fi
  9625. ;;
  9626. sysv5* | sco3.2v5* | sco5v6*)
  9627. # Note: We can NOT use -z defs as we might desire, because we do not
  9628. # link with -lc, and that would cause any symbols used from libc to
  9629. # always be unresolved, which means just about no library would
  9630. # ever link correctly. If we're not using GNU ld we use -z text
  9631. # though, which does catch some bad symbols but isn't as heavy-handed
  9632. # as -z defs.
  9633. no_undefined_flag='${wl}-z,text'
  9634. allow_undefined_flag='${wl}-z,nodefs'
  9635. archive_cmds_need_lc=no
  9636. hardcode_shlibpath_var=no
  9637. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9638. hardcode_libdir_separator=':'
  9639. link_all_deplibs=yes
  9640. export_dynamic_flag_spec='${wl}-Bexport'
  9641. runpath_var='LD_RUN_PATH'
  9642. if test "$GCC" = yes; then
  9643. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9644. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9645. else
  9646. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9648. fi
  9649. ;;
  9650. uts4*)
  9651. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9652. hardcode_libdir_flag_spec='-L$libdir'
  9653. hardcode_shlibpath_var=no
  9654. ;;
  9655. *)
  9656. ld_shlibs=no
  9657. ;;
  9658. esac
  9659. if test x$host_vendor = xsni; then
  9660. case $host in
  9661. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9662. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9663. ;;
  9664. esac
  9665. fi
  9666. fi
  9667. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9668. $as_echo "$ld_shlibs" >&6; }
  9669. test "$ld_shlibs" = no && can_build_shared=no
  9670. with_gnu_ld=$with_gnu_ld
  9671. #
  9672. # Do we need to explicitly link libc?
  9673. #
  9674. case "x$archive_cmds_need_lc" in
  9675. x|xyes)
  9676. # Assume -lc should be added
  9677. archive_cmds_need_lc=yes
  9678. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9679. case $archive_cmds in
  9680. *'~'*)
  9681. # FIXME: we may have to deal with multi-command sequences.
  9682. ;;
  9683. '$CC '*)
  9684. # Test whether the compiler implicitly links with -lc since on some
  9685. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9686. # to ld, don't add -lc before -lgcc.
  9687. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9688. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9689. $RM conftest*
  9690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9692. (eval $ac_compile) 2>&5
  9693. ac_status=$?
  9694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9695. (exit $ac_status); } 2>conftest.err; then
  9696. soname=conftest
  9697. lib=conftest
  9698. libobjs=conftest.$ac_objext
  9699. deplibs=
  9700. wl=$lt_prog_compiler_wl
  9701. pic_flag=$lt_prog_compiler_pic
  9702. compiler_flags=-v
  9703. linker_flags=-v
  9704. verstring=
  9705. output_objdir=.
  9706. libname=conftest
  9707. lt_save_allow_undefined_flag=$allow_undefined_flag
  9708. allow_undefined_flag=
  9709. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9710. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9711. ac_status=$?
  9712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9713. (exit $ac_status); }
  9714. then
  9715. archive_cmds_need_lc=no
  9716. else
  9717. archive_cmds_need_lc=yes
  9718. fi
  9719. allow_undefined_flag=$lt_save_allow_undefined_flag
  9720. else
  9721. cat conftest.err 1>&5
  9722. fi
  9723. $RM conftest*
  9724. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9725. $as_echo "$archive_cmds_need_lc" >&6; }
  9726. ;;
  9727. esac
  9728. fi
  9729. ;;
  9730. esac
  9731. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9732. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9733. if test "$GCC" = yes; then
  9734. case $host_os in
  9735. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9736. *) lt_awk_arg="/^libraries:/" ;;
  9737. esac
  9738. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9739. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9740. # if the path contains ";" then we assume it to be the separator
  9741. # otherwise default to the standard path separator (i.e. ":") - it is
  9742. # assumed that no part of a normal pathname contains ";" but that should
  9743. # okay in the real world where ";" in dirpaths is itself problematic.
  9744. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9745. else
  9746. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9747. fi
  9748. # Ok, now we have the path, separated by spaces, we can step through it
  9749. # and add multilib dir if necessary.
  9750. lt_tmp_lt_search_path_spec=
  9751. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9752. for lt_sys_path in $lt_search_path_spec; do
  9753. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9754. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9755. else
  9756. test -d "$lt_sys_path" && \
  9757. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9758. fi
  9759. done
  9760. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9761. BEGIN {RS=" "; FS="/|\n";} {
  9762. lt_foo="";
  9763. lt_count=0;
  9764. for (lt_i = NF; lt_i > 0; lt_i--) {
  9765. if ($lt_i != "" && $lt_i != ".") {
  9766. if ($lt_i == "..") {
  9767. lt_count++;
  9768. } else {
  9769. if (lt_count == 0) {
  9770. lt_foo="/" $lt_i lt_foo;
  9771. } else {
  9772. lt_count--;
  9773. }
  9774. }
  9775. }
  9776. }
  9777. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9778. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9779. }'`
  9780. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9781. else
  9782. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9783. fi
  9784. library_names_spec=
  9785. libname_spec='lib$name'
  9786. soname_spec=
  9787. shrext_cmds=".so"
  9788. postinstall_cmds=
  9789. postuninstall_cmds=
  9790. finish_cmds=
  9791. finish_eval=
  9792. shlibpath_var=
  9793. shlibpath_overrides_runpath=unknown
  9794. version_type=none
  9795. dynamic_linker="$host_os ld.so"
  9796. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9797. need_lib_prefix=unknown
  9798. hardcode_into_libs=no
  9799. # when you set need_version to no, make sure it does not cause -set_version
  9800. # flags to be left without arguments
  9801. need_version=unknown
  9802. case $host_os in
  9803. aix3*)
  9804. version_type=linux
  9805. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9806. shlibpath_var=LIBPATH
  9807. # AIX 3 has no versioning support, so we append a major version to the name.
  9808. soname_spec='${libname}${release}${shared_ext}$major'
  9809. ;;
  9810. aix[4-9]*)
  9811. version_type=linux
  9812. need_lib_prefix=no
  9813. need_version=no
  9814. hardcode_into_libs=yes
  9815. if test "$host_cpu" = ia64; then
  9816. # AIX 5 supports IA64
  9817. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9818. shlibpath_var=LD_LIBRARY_PATH
  9819. else
  9820. # With GCC up to 2.95.x, collect2 would create an import file
  9821. # for dependence libraries. The import file would start with
  9822. # the line `#! .'. This would cause the generated library to
  9823. # depend on `.', always an invalid library. This was fixed in
  9824. # development snapshots of GCC prior to 3.0.
  9825. case $host_os in
  9826. aix4 | aix4.[01] | aix4.[01].*)
  9827. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9828. echo ' yes '
  9829. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9830. :
  9831. else
  9832. can_build_shared=no
  9833. fi
  9834. ;;
  9835. esac
  9836. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9837. # soname into executable. Probably we can add versioning support to
  9838. # collect2, so additional links can be useful in future.
  9839. if test "$aix_use_runtimelinking" = yes; then
  9840. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9841. # instead of lib<name>.a to let people know that these are not
  9842. # typical AIX shared libraries.
  9843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9844. else
  9845. # We preserve .a as extension for shared libraries through AIX4.2
  9846. # and later when we are not doing run time linking.
  9847. library_names_spec='${libname}${release}.a $libname.a'
  9848. soname_spec='${libname}${release}${shared_ext}$major'
  9849. fi
  9850. shlibpath_var=LIBPATH
  9851. fi
  9852. ;;
  9853. amigaos*)
  9854. case $host_cpu in
  9855. powerpc)
  9856. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9857. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9859. ;;
  9860. m68k)
  9861. library_names_spec='$libname.ixlibrary $libname.a'
  9862. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9863. 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'
  9864. ;;
  9865. esac
  9866. ;;
  9867. beos*)
  9868. library_names_spec='${libname}${shared_ext}'
  9869. dynamic_linker="$host_os ld.so"
  9870. shlibpath_var=LIBRARY_PATH
  9871. ;;
  9872. bsdi[45]*)
  9873. version_type=linux
  9874. need_version=no
  9875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9876. soname_spec='${libname}${release}${shared_ext}$major'
  9877. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9878. shlibpath_var=LD_LIBRARY_PATH
  9879. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9880. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9881. # the default ld.so.conf also contains /usr/contrib/lib and
  9882. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9883. # libtool to hard-code these into programs
  9884. ;;
  9885. cygwin* | mingw* | pw32* | cegcc*)
  9886. version_type=windows
  9887. shrext_cmds=".dll"
  9888. need_version=no
  9889. need_lib_prefix=no
  9890. case $GCC,$host_os in
  9891. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9892. library_names_spec='$libname.dll.a'
  9893. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9894. postinstall_cmds='base_file=`basename \${file}`~
  9895. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9896. dldir=$destdir/`dirname \$dlpath`~
  9897. test -d \$dldir || mkdir -p \$dldir~
  9898. $install_prog $dir/$dlname \$dldir/$dlname~
  9899. chmod a+x \$dldir/$dlname~
  9900. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9901. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9902. fi'
  9903. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9904. dlpath=$dir/\$dldll~
  9905. $RM \$dlpath'
  9906. shlibpath_overrides_runpath=yes
  9907. case $host_os in
  9908. cygwin*)
  9909. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9910. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9911. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9912. ;;
  9913. mingw* | cegcc*)
  9914. # MinGW DLLs use traditional 'lib' prefix
  9915. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9916. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9917. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9918. # It is most probably a Windows format PATH printed by
  9919. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9920. # path with ; separators, and with drive letters. We can handle the
  9921. # drive letters (cygwin fileutils understands them), so leave them,
  9922. # especially as we might pass files found there to a mingw objdump,
  9923. # which wouldn't understand a cygwinified path. Ahh.
  9924. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9925. else
  9926. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9927. fi
  9928. ;;
  9929. pw32*)
  9930. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9931. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9932. ;;
  9933. esac
  9934. ;;
  9935. *)
  9936. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9937. ;;
  9938. esac
  9939. dynamic_linker='Win32 ld.exe'
  9940. # FIXME: first we should search . and the directory the executable is in
  9941. shlibpath_var=PATH
  9942. ;;
  9943. darwin* | rhapsody*)
  9944. dynamic_linker="$host_os dyld"
  9945. version_type=darwin
  9946. need_lib_prefix=no
  9947. need_version=no
  9948. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9949. soname_spec='${libname}${release}${major}$shared_ext'
  9950. shlibpath_overrides_runpath=yes
  9951. shlibpath_var=DYLD_LIBRARY_PATH
  9952. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9953. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9954. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9955. ;;
  9956. dgux*)
  9957. version_type=linux
  9958. need_lib_prefix=no
  9959. need_version=no
  9960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9961. soname_spec='${libname}${release}${shared_ext}$major'
  9962. shlibpath_var=LD_LIBRARY_PATH
  9963. ;;
  9964. freebsd1*)
  9965. dynamic_linker=no
  9966. ;;
  9967. freebsd* | dragonfly*)
  9968. # DragonFly does not have aout. When/if they implement a new
  9969. # versioning mechanism, adjust this.
  9970. if test -x /usr/bin/objformat; then
  9971. objformat=`/usr/bin/objformat`
  9972. else
  9973. case $host_os in
  9974. freebsd[123]*) objformat=aout ;;
  9975. *) objformat=elf ;;
  9976. esac
  9977. fi
  9978. version_type=freebsd-$objformat
  9979. case $version_type in
  9980. freebsd-elf*)
  9981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9982. need_version=no
  9983. need_lib_prefix=no
  9984. ;;
  9985. freebsd-*)
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9987. need_version=yes
  9988. ;;
  9989. esac
  9990. shlibpath_var=LD_LIBRARY_PATH
  9991. case $host_os in
  9992. freebsd2*)
  9993. shlibpath_overrides_runpath=yes
  9994. ;;
  9995. freebsd3.[01]* | freebsdelf3.[01]*)
  9996. shlibpath_overrides_runpath=yes
  9997. hardcode_into_libs=yes
  9998. ;;
  9999. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10000. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10001. shlibpath_overrides_runpath=no
  10002. hardcode_into_libs=yes
  10003. ;;
  10004. *) # from 4.6 on, and DragonFly
  10005. shlibpath_overrides_runpath=yes
  10006. hardcode_into_libs=yes
  10007. ;;
  10008. esac
  10009. ;;
  10010. gnu*)
  10011. version_type=linux
  10012. need_lib_prefix=no
  10013. need_version=no
  10014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10015. soname_spec='${libname}${release}${shared_ext}$major'
  10016. shlibpath_var=LD_LIBRARY_PATH
  10017. hardcode_into_libs=yes
  10018. ;;
  10019. hpux9* | hpux10* | hpux11*)
  10020. # Give a soname corresponding to the major version so that dld.sl refuses to
  10021. # link against other versions.
  10022. version_type=sunos
  10023. need_lib_prefix=no
  10024. need_version=no
  10025. case $host_cpu in
  10026. ia64*)
  10027. shrext_cmds='.so'
  10028. hardcode_into_libs=yes
  10029. dynamic_linker="$host_os dld.so"
  10030. shlibpath_var=LD_LIBRARY_PATH
  10031. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10033. soname_spec='${libname}${release}${shared_ext}$major'
  10034. if test "X$HPUX_IA64_MODE" = X32; then
  10035. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10036. else
  10037. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10038. fi
  10039. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10040. ;;
  10041. hppa*64*)
  10042. shrext_cmds='.sl'
  10043. hardcode_into_libs=yes
  10044. dynamic_linker="$host_os dld.sl"
  10045. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10046. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10048. soname_spec='${libname}${release}${shared_ext}$major'
  10049. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10051. ;;
  10052. *)
  10053. shrext_cmds='.sl'
  10054. dynamic_linker="$host_os dld.sl"
  10055. shlibpath_var=SHLIB_PATH
  10056. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10058. soname_spec='${libname}${release}${shared_ext}$major'
  10059. ;;
  10060. esac
  10061. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10062. postinstall_cmds='chmod 555 $lib'
  10063. ;;
  10064. interix[3-9]*)
  10065. version_type=linux
  10066. need_lib_prefix=no
  10067. need_version=no
  10068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10069. soname_spec='${libname}${release}${shared_ext}$major'
  10070. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=no
  10073. hardcode_into_libs=yes
  10074. ;;
  10075. irix5* | irix6* | nonstopux*)
  10076. case $host_os in
  10077. nonstopux*) version_type=nonstopux ;;
  10078. *)
  10079. if test "$lt_cv_prog_gnu_ld" = yes; then
  10080. version_type=linux
  10081. else
  10082. version_type=irix
  10083. fi ;;
  10084. esac
  10085. need_lib_prefix=no
  10086. need_version=no
  10087. soname_spec='${libname}${release}${shared_ext}$major'
  10088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10089. case $host_os in
  10090. irix5* | nonstopux*)
  10091. libsuff= shlibsuff=
  10092. ;;
  10093. *)
  10094. case $LD in # libtool.m4 will add one of these switches to LD
  10095. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10096. libsuff= shlibsuff= libmagic=32-bit;;
  10097. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10098. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10099. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10100. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10101. *) libsuff= shlibsuff= libmagic=never-match;;
  10102. esac
  10103. ;;
  10104. esac
  10105. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10106. shlibpath_overrides_runpath=no
  10107. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10108. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10109. hardcode_into_libs=yes
  10110. ;;
  10111. # No shared lib support for Linux oldld, aout, or coff.
  10112. linux*oldld* | linux*aout* | linux*coff*)
  10113. dynamic_linker=no
  10114. ;;
  10115. # This must be Linux ELF.
  10116. linux* | k*bsd*-gnu)
  10117. version_type=linux
  10118. need_lib_prefix=no
  10119. need_version=no
  10120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10121. soname_spec='${libname}${release}${shared_ext}$major'
  10122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10123. shlibpath_var=LD_LIBRARY_PATH
  10124. shlibpath_overrides_runpath=no
  10125. # Some binutils ld are patched to set DT_RUNPATH
  10126. save_LDFLAGS=$LDFLAGS
  10127. save_libdir=$libdir
  10128. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10129. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10130. cat >conftest.$ac_ext <<_ACEOF
  10131. /* confdefs.h. */
  10132. _ACEOF
  10133. cat confdefs.h >>conftest.$ac_ext
  10134. cat >>conftest.$ac_ext <<_ACEOF
  10135. /* end confdefs.h. */
  10136. int
  10137. main ()
  10138. {
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. rm -f conftest.$ac_objext conftest$ac_exeext
  10144. if { (ac_try="$ac_link"
  10145. case "(($ac_try" in
  10146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10147. *) ac_try_echo=$ac_try;;
  10148. esac
  10149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10150. $as_echo "$ac_try_echo") >&5
  10151. (eval "$ac_link") 2>conftest.er1
  10152. ac_status=$?
  10153. grep -v '^ *+' conftest.er1 >conftest.err
  10154. rm -f conftest.er1
  10155. cat conftest.err >&5
  10156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10157. (exit $ac_status); } && {
  10158. test -z "$ac_c_werror_flag" ||
  10159. test ! -s conftest.err
  10160. } && test -s conftest$ac_exeext && {
  10161. test "$cross_compiling" = yes ||
  10162. $as_test_x conftest$ac_exeext
  10163. }; then
  10164. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10165. shlibpath_overrides_runpath=yes
  10166. fi
  10167. else
  10168. $as_echo "$as_me: failed program was:" >&5
  10169. sed 's/^/| /' conftest.$ac_ext >&5
  10170. fi
  10171. rm -rf conftest.dSYM
  10172. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. LDFLAGS=$save_LDFLAGS
  10175. libdir=$save_libdir
  10176. # This implies no fast_install, which is unacceptable.
  10177. # Some rework will be needed to allow for fast_install
  10178. # before this can be enabled.
  10179. hardcode_into_libs=yes
  10180. # Append ld.so.conf contents to the search path
  10181. if test -f /etc/ld.so.conf; then
  10182. 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' ' '`
  10183. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10184. fi
  10185. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10186. # powerpc, because MkLinux only supported shared libraries with the
  10187. # GNU dynamic linker. Since this was broken with cross compilers,
  10188. # most powerpc-linux boxes support dynamic linking these days and
  10189. # people can always --disable-shared, the test was removed, and we
  10190. # assume the GNU/Linux dynamic linker is in use.
  10191. dynamic_linker='GNU/Linux ld.so'
  10192. ;;
  10193. netbsd*)
  10194. version_type=sunos
  10195. need_lib_prefix=no
  10196. need_version=no
  10197. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10199. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10200. dynamic_linker='NetBSD (a.out) ld.so'
  10201. else
  10202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10203. soname_spec='${libname}${release}${shared_ext}$major'
  10204. dynamic_linker='NetBSD ld.elf_so'
  10205. fi
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=yes
  10208. hardcode_into_libs=yes
  10209. ;;
  10210. newsos6)
  10211. version_type=linux
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10213. shlibpath_var=LD_LIBRARY_PATH
  10214. shlibpath_overrides_runpath=yes
  10215. ;;
  10216. *nto* | *qnx*)
  10217. version_type=qnx
  10218. need_lib_prefix=no
  10219. need_version=no
  10220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10221. soname_spec='${libname}${release}${shared_ext}$major'
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. shlibpath_overrides_runpath=no
  10224. hardcode_into_libs=yes
  10225. dynamic_linker='ldqnx.so'
  10226. ;;
  10227. openbsd*)
  10228. version_type=sunos
  10229. sys_lib_dlsearch_path_spec="/usr/lib"
  10230. need_lib_prefix=no
  10231. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10232. case $host_os in
  10233. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10234. *) need_version=no ;;
  10235. esac
  10236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10237. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10238. shlibpath_var=LD_LIBRARY_PATH
  10239. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10240. case $host_os in
  10241. openbsd2.[89] | openbsd2.[89].*)
  10242. shlibpath_overrides_runpath=no
  10243. ;;
  10244. *)
  10245. shlibpath_overrides_runpath=yes
  10246. ;;
  10247. esac
  10248. else
  10249. shlibpath_overrides_runpath=yes
  10250. fi
  10251. ;;
  10252. os2*)
  10253. libname_spec='$name'
  10254. shrext_cmds=".dll"
  10255. need_lib_prefix=no
  10256. library_names_spec='$libname${shared_ext} $libname.a'
  10257. dynamic_linker='OS/2 ld.exe'
  10258. shlibpath_var=LIBPATH
  10259. ;;
  10260. osf3* | osf4* | osf5*)
  10261. version_type=osf
  10262. need_lib_prefix=no
  10263. need_version=no
  10264. soname_spec='${libname}${release}${shared_ext}$major'
  10265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10266. shlibpath_var=LD_LIBRARY_PATH
  10267. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10268. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10269. ;;
  10270. rdos*)
  10271. dynamic_linker=no
  10272. ;;
  10273. solaris*)
  10274. version_type=linux
  10275. need_lib_prefix=no
  10276. need_version=no
  10277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10278. soname_spec='${libname}${release}${shared_ext}$major'
  10279. shlibpath_var=LD_LIBRARY_PATH
  10280. shlibpath_overrides_runpath=yes
  10281. hardcode_into_libs=yes
  10282. # ldd complains unless libraries are executable
  10283. postinstall_cmds='chmod +x $lib'
  10284. ;;
  10285. sunos4*)
  10286. version_type=sunos
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10288. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10289. shlibpath_var=LD_LIBRARY_PATH
  10290. shlibpath_overrides_runpath=yes
  10291. if test "$with_gnu_ld" = yes; then
  10292. need_lib_prefix=no
  10293. fi
  10294. need_version=yes
  10295. ;;
  10296. sysv4 | sysv4.3*)
  10297. version_type=linux
  10298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10299. soname_spec='${libname}${release}${shared_ext}$major'
  10300. shlibpath_var=LD_LIBRARY_PATH
  10301. case $host_vendor in
  10302. sni)
  10303. shlibpath_overrides_runpath=no
  10304. need_lib_prefix=no
  10305. runpath_var=LD_RUN_PATH
  10306. ;;
  10307. siemens)
  10308. need_lib_prefix=no
  10309. ;;
  10310. motorola)
  10311. need_lib_prefix=no
  10312. need_version=no
  10313. shlibpath_overrides_runpath=no
  10314. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10315. ;;
  10316. esac
  10317. ;;
  10318. sysv4*MP*)
  10319. if test -d /usr/nec ;then
  10320. version_type=linux
  10321. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10322. soname_spec='$libname${shared_ext}.$major'
  10323. shlibpath_var=LD_LIBRARY_PATH
  10324. fi
  10325. ;;
  10326. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10327. version_type=freebsd-elf
  10328. need_lib_prefix=no
  10329. need_version=no
  10330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10331. soname_spec='${libname}${release}${shared_ext}$major'
  10332. shlibpath_var=LD_LIBRARY_PATH
  10333. shlibpath_overrides_runpath=yes
  10334. hardcode_into_libs=yes
  10335. if test "$with_gnu_ld" = yes; then
  10336. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10337. else
  10338. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10339. case $host_os in
  10340. sco3.2v5*)
  10341. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10342. ;;
  10343. esac
  10344. fi
  10345. sys_lib_dlsearch_path_spec='/usr/lib'
  10346. ;;
  10347. tpf*)
  10348. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10349. version_type=linux
  10350. need_lib_prefix=no
  10351. need_version=no
  10352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10353. shlibpath_var=LD_LIBRARY_PATH
  10354. shlibpath_overrides_runpath=no
  10355. hardcode_into_libs=yes
  10356. ;;
  10357. uts4*)
  10358. version_type=linux
  10359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10360. soname_spec='${libname}${release}${shared_ext}$major'
  10361. shlibpath_var=LD_LIBRARY_PATH
  10362. ;;
  10363. *)
  10364. dynamic_linker=no
  10365. ;;
  10366. esac
  10367. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10368. $as_echo "$dynamic_linker" >&6; }
  10369. test "$dynamic_linker" = no && can_build_shared=no
  10370. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10371. if test "$GCC" = yes; then
  10372. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10373. fi
  10374. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10375. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10376. fi
  10377. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10378. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10379. fi
  10380. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10381. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10382. hardcode_action=
  10383. if test -n "$hardcode_libdir_flag_spec" ||
  10384. test -n "$runpath_var" ||
  10385. test "X$hardcode_automatic" = "Xyes" ; then
  10386. # We can hardcode non-existent directories.
  10387. if test "$hardcode_direct" != no &&
  10388. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10389. # have to relink, otherwise we might link with an installed library
  10390. # when we should be linking with a yet-to-be-installed one
  10391. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10392. test "$hardcode_minus_L" != no; then
  10393. # Linking always hardcodes the temporary library directory.
  10394. hardcode_action=relink
  10395. else
  10396. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10397. hardcode_action=immediate
  10398. fi
  10399. else
  10400. # We cannot hardcode anything, or else we can only hardcode existing
  10401. # directories.
  10402. hardcode_action=unsupported
  10403. fi
  10404. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10405. $as_echo "$hardcode_action" >&6; }
  10406. if test "$hardcode_action" = relink ||
  10407. test "$inherit_rpath" = yes; then
  10408. # Fast installation is not supported
  10409. enable_fast_install=no
  10410. elif test "$shlibpath_overrides_runpath" = yes ||
  10411. test "$enable_shared" = no; then
  10412. # Fast installation is not necessary
  10413. enable_fast_install=needless
  10414. fi
  10415. if test "x$enable_dlopen" != xyes; then
  10416. enable_dlopen=unknown
  10417. enable_dlopen_self=unknown
  10418. enable_dlopen_self_static=unknown
  10419. else
  10420. lt_cv_dlopen=no
  10421. lt_cv_dlopen_libs=
  10422. case $host_os in
  10423. beos*)
  10424. lt_cv_dlopen="load_add_on"
  10425. lt_cv_dlopen_libs=
  10426. lt_cv_dlopen_self=yes
  10427. ;;
  10428. mingw* | pw32* | cegcc*)
  10429. lt_cv_dlopen="LoadLibrary"
  10430. lt_cv_dlopen_libs=
  10431. ;;
  10432. cygwin*)
  10433. lt_cv_dlopen="dlopen"
  10434. lt_cv_dlopen_libs=
  10435. ;;
  10436. darwin*)
  10437. # if libdl is installed we need to link against it
  10438. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10439. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10440. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10441. $as_echo_n "(cached) " >&6
  10442. else
  10443. ac_check_lib_save_LIBS=$LIBS
  10444. LIBS="-ldl $LIBS"
  10445. cat >conftest.$ac_ext <<_ACEOF
  10446. /* confdefs.h. */
  10447. _ACEOF
  10448. cat confdefs.h >>conftest.$ac_ext
  10449. cat >>conftest.$ac_ext <<_ACEOF
  10450. /* end confdefs.h. */
  10451. /* Override any GCC internal prototype to avoid an error.
  10452. Use char because int might match the return type of a GCC
  10453. builtin and then its argument prototype would still apply. */
  10454. #ifdef __cplusplus
  10455. extern "C"
  10456. #endif
  10457. char dlopen ();
  10458. int
  10459. main ()
  10460. {
  10461. return dlopen ();
  10462. ;
  10463. return 0;
  10464. }
  10465. _ACEOF
  10466. rm -f conftest.$ac_objext conftest$ac_exeext
  10467. if { (ac_try="$ac_link"
  10468. case "(($ac_try" in
  10469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10470. *) ac_try_echo=$ac_try;;
  10471. esac
  10472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10473. $as_echo "$ac_try_echo") >&5
  10474. (eval "$ac_link") 2>conftest.er1
  10475. ac_status=$?
  10476. grep -v '^ *+' conftest.er1 >conftest.err
  10477. rm -f conftest.er1
  10478. cat conftest.err >&5
  10479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10480. (exit $ac_status); } && {
  10481. test -z "$ac_c_werror_flag" ||
  10482. test ! -s conftest.err
  10483. } && test -s conftest$ac_exeext && {
  10484. test "$cross_compiling" = yes ||
  10485. $as_test_x conftest$ac_exeext
  10486. }; then
  10487. ac_cv_lib_dl_dlopen=yes
  10488. else
  10489. $as_echo "$as_me: failed program was:" >&5
  10490. sed 's/^/| /' conftest.$ac_ext >&5
  10491. ac_cv_lib_dl_dlopen=no
  10492. fi
  10493. rm -rf conftest.dSYM
  10494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10495. conftest$ac_exeext conftest.$ac_ext
  10496. LIBS=$ac_check_lib_save_LIBS
  10497. fi
  10498. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10499. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10500. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10501. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10502. else
  10503. lt_cv_dlopen="dyld"
  10504. lt_cv_dlopen_libs=
  10505. lt_cv_dlopen_self=yes
  10506. fi
  10507. ;;
  10508. *)
  10509. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10510. $as_echo_n "checking for shl_load... " >&6; }
  10511. if test "${ac_cv_func_shl_load+set}" = set; then
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. cat >conftest.$ac_ext <<_ACEOF
  10515. /* confdefs.h. */
  10516. _ACEOF
  10517. cat confdefs.h >>conftest.$ac_ext
  10518. cat >>conftest.$ac_ext <<_ACEOF
  10519. /* end confdefs.h. */
  10520. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10521. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10522. #define shl_load innocuous_shl_load
  10523. /* System header to define __stub macros and hopefully few prototypes,
  10524. which can conflict with char shl_load (); below.
  10525. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10526. <limits.h> exists even on freestanding compilers. */
  10527. #ifdef __STDC__
  10528. # include <limits.h>
  10529. #else
  10530. # include <assert.h>
  10531. #endif
  10532. #undef shl_load
  10533. /* Override any GCC internal prototype to avoid an error.
  10534. Use char because int might match the return type of a GCC
  10535. builtin and then its argument prototype would still apply. */
  10536. #ifdef __cplusplus
  10537. extern "C"
  10538. #endif
  10539. char shl_load ();
  10540. /* The GNU C library defines this for functions which it implements
  10541. to always fail with ENOSYS. Some functions are actually named
  10542. something starting with __ and the normal name is an alias. */
  10543. #if defined __stub_shl_load || defined __stub___shl_load
  10544. choke me
  10545. #endif
  10546. int
  10547. main ()
  10548. {
  10549. return shl_load ();
  10550. ;
  10551. return 0;
  10552. }
  10553. _ACEOF
  10554. rm -f conftest.$ac_objext conftest$ac_exeext
  10555. if { (ac_try="$ac_link"
  10556. case "(($ac_try" in
  10557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10558. *) ac_try_echo=$ac_try;;
  10559. esac
  10560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10561. $as_echo "$ac_try_echo") >&5
  10562. (eval "$ac_link") 2>conftest.er1
  10563. ac_status=$?
  10564. grep -v '^ *+' conftest.er1 >conftest.err
  10565. rm -f conftest.er1
  10566. cat conftest.err >&5
  10567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10568. (exit $ac_status); } && {
  10569. test -z "$ac_c_werror_flag" ||
  10570. test ! -s conftest.err
  10571. } && test -s conftest$ac_exeext && {
  10572. test "$cross_compiling" = yes ||
  10573. $as_test_x conftest$ac_exeext
  10574. }; then
  10575. ac_cv_func_shl_load=yes
  10576. else
  10577. $as_echo "$as_me: failed program was:" >&5
  10578. sed 's/^/| /' conftest.$ac_ext >&5
  10579. ac_cv_func_shl_load=no
  10580. fi
  10581. rm -rf conftest.dSYM
  10582. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10583. conftest$ac_exeext conftest.$ac_ext
  10584. fi
  10585. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10586. $as_echo "$ac_cv_func_shl_load" >&6; }
  10587. if test "x$ac_cv_func_shl_load" = x""yes; then
  10588. lt_cv_dlopen="shl_load"
  10589. else
  10590. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10591. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10592. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. ac_check_lib_save_LIBS=$LIBS
  10596. LIBS="-ldld $LIBS"
  10597. cat >conftest.$ac_ext <<_ACEOF
  10598. /* confdefs.h. */
  10599. _ACEOF
  10600. cat confdefs.h >>conftest.$ac_ext
  10601. cat >>conftest.$ac_ext <<_ACEOF
  10602. /* end confdefs.h. */
  10603. /* Override any GCC internal prototype to avoid an error.
  10604. Use char because int might match the return type of a GCC
  10605. builtin and then its argument prototype would still apply. */
  10606. #ifdef __cplusplus
  10607. extern "C"
  10608. #endif
  10609. char shl_load ();
  10610. int
  10611. main ()
  10612. {
  10613. return shl_load ();
  10614. ;
  10615. return 0;
  10616. }
  10617. _ACEOF
  10618. rm -f conftest.$ac_objext conftest$ac_exeext
  10619. if { (ac_try="$ac_link"
  10620. case "(($ac_try" in
  10621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10622. *) ac_try_echo=$ac_try;;
  10623. esac
  10624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10625. $as_echo "$ac_try_echo") >&5
  10626. (eval "$ac_link") 2>conftest.er1
  10627. ac_status=$?
  10628. grep -v '^ *+' conftest.er1 >conftest.err
  10629. rm -f conftest.er1
  10630. cat conftest.err >&5
  10631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10632. (exit $ac_status); } && {
  10633. test -z "$ac_c_werror_flag" ||
  10634. test ! -s conftest.err
  10635. } && test -s conftest$ac_exeext && {
  10636. test "$cross_compiling" = yes ||
  10637. $as_test_x conftest$ac_exeext
  10638. }; then
  10639. ac_cv_lib_dld_shl_load=yes
  10640. else
  10641. $as_echo "$as_me: failed program was:" >&5
  10642. sed 's/^/| /' conftest.$ac_ext >&5
  10643. ac_cv_lib_dld_shl_load=no
  10644. fi
  10645. rm -rf conftest.dSYM
  10646. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10647. conftest$ac_exeext conftest.$ac_ext
  10648. LIBS=$ac_check_lib_save_LIBS
  10649. fi
  10650. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10651. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10652. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10653. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10654. else
  10655. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10656. $as_echo_n "checking for dlopen... " >&6; }
  10657. if test "${ac_cv_func_dlopen+set}" = set; then
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. cat >conftest.$ac_ext <<_ACEOF
  10661. /* confdefs.h. */
  10662. _ACEOF
  10663. cat confdefs.h >>conftest.$ac_ext
  10664. cat >>conftest.$ac_ext <<_ACEOF
  10665. /* end confdefs.h. */
  10666. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10668. #define dlopen innocuous_dlopen
  10669. /* System header to define __stub macros and hopefully few prototypes,
  10670. which can conflict with char dlopen (); below.
  10671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10672. <limits.h> exists even on freestanding compilers. */
  10673. #ifdef __STDC__
  10674. # include <limits.h>
  10675. #else
  10676. # include <assert.h>
  10677. #endif
  10678. #undef dlopen
  10679. /* Override any GCC internal prototype to avoid an error.
  10680. Use char because int might match the return type of a GCC
  10681. builtin and then its argument prototype would still apply. */
  10682. #ifdef __cplusplus
  10683. extern "C"
  10684. #endif
  10685. char dlopen ();
  10686. /* The GNU C library defines this for functions which it implements
  10687. to always fail with ENOSYS. Some functions are actually named
  10688. something starting with __ and the normal name is an alias. */
  10689. #if defined __stub_dlopen || defined __stub___dlopen
  10690. choke me
  10691. #endif
  10692. int
  10693. main ()
  10694. {
  10695. return dlopen ();
  10696. ;
  10697. return 0;
  10698. }
  10699. _ACEOF
  10700. rm -f conftest.$ac_objext conftest$ac_exeext
  10701. if { (ac_try="$ac_link"
  10702. case "(($ac_try" in
  10703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10704. *) ac_try_echo=$ac_try;;
  10705. esac
  10706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10707. $as_echo "$ac_try_echo") >&5
  10708. (eval "$ac_link") 2>conftest.er1
  10709. ac_status=$?
  10710. grep -v '^ *+' conftest.er1 >conftest.err
  10711. rm -f conftest.er1
  10712. cat conftest.err >&5
  10713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10714. (exit $ac_status); } && {
  10715. test -z "$ac_c_werror_flag" ||
  10716. test ! -s conftest.err
  10717. } && test -s conftest$ac_exeext && {
  10718. test "$cross_compiling" = yes ||
  10719. $as_test_x conftest$ac_exeext
  10720. }; then
  10721. ac_cv_func_dlopen=yes
  10722. else
  10723. $as_echo "$as_me: failed program was:" >&5
  10724. sed 's/^/| /' conftest.$ac_ext >&5
  10725. ac_cv_func_dlopen=no
  10726. fi
  10727. rm -rf conftest.dSYM
  10728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10729. conftest$ac_exeext conftest.$ac_ext
  10730. fi
  10731. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10732. $as_echo "$ac_cv_func_dlopen" >&6; }
  10733. if test "x$ac_cv_func_dlopen" = x""yes; then
  10734. lt_cv_dlopen="dlopen"
  10735. else
  10736. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10737. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10738. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10739. $as_echo_n "(cached) " >&6
  10740. else
  10741. ac_check_lib_save_LIBS=$LIBS
  10742. LIBS="-ldl $LIBS"
  10743. cat >conftest.$ac_ext <<_ACEOF
  10744. /* confdefs.h. */
  10745. _ACEOF
  10746. cat confdefs.h >>conftest.$ac_ext
  10747. cat >>conftest.$ac_ext <<_ACEOF
  10748. /* end confdefs.h. */
  10749. /* Override any GCC internal prototype to avoid an error.
  10750. Use char because int might match the return type of a GCC
  10751. builtin and then its argument prototype would still apply. */
  10752. #ifdef __cplusplus
  10753. extern "C"
  10754. #endif
  10755. char dlopen ();
  10756. int
  10757. main ()
  10758. {
  10759. return dlopen ();
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. rm -f conftest.$ac_objext conftest$ac_exeext
  10765. if { (ac_try="$ac_link"
  10766. case "(($ac_try" in
  10767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10768. *) ac_try_echo=$ac_try;;
  10769. esac
  10770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10771. $as_echo "$ac_try_echo") >&5
  10772. (eval "$ac_link") 2>conftest.er1
  10773. ac_status=$?
  10774. grep -v '^ *+' conftest.er1 >conftest.err
  10775. rm -f conftest.er1
  10776. cat conftest.err >&5
  10777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10778. (exit $ac_status); } && {
  10779. test -z "$ac_c_werror_flag" ||
  10780. test ! -s conftest.err
  10781. } && test -s conftest$ac_exeext && {
  10782. test "$cross_compiling" = yes ||
  10783. $as_test_x conftest$ac_exeext
  10784. }; then
  10785. ac_cv_lib_dl_dlopen=yes
  10786. else
  10787. $as_echo "$as_me: failed program was:" >&5
  10788. sed 's/^/| /' conftest.$ac_ext >&5
  10789. ac_cv_lib_dl_dlopen=no
  10790. fi
  10791. rm -rf conftest.dSYM
  10792. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10793. conftest$ac_exeext conftest.$ac_ext
  10794. LIBS=$ac_check_lib_save_LIBS
  10795. fi
  10796. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10797. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10798. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10799. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10800. else
  10801. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10802. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10803. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10804. $as_echo_n "(cached) " >&6
  10805. else
  10806. ac_check_lib_save_LIBS=$LIBS
  10807. LIBS="-lsvld $LIBS"
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814. /* Override any GCC internal prototype to avoid an error.
  10815. Use char because int might match the return type of a GCC
  10816. builtin and then its argument prototype would still apply. */
  10817. #ifdef __cplusplus
  10818. extern "C"
  10819. #endif
  10820. char dlopen ();
  10821. int
  10822. main ()
  10823. {
  10824. return dlopen ();
  10825. ;
  10826. return 0;
  10827. }
  10828. _ACEOF
  10829. rm -f conftest.$ac_objext conftest$ac_exeext
  10830. if { (ac_try="$ac_link"
  10831. case "(($ac_try" in
  10832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10833. *) ac_try_echo=$ac_try;;
  10834. esac
  10835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10836. $as_echo "$ac_try_echo") >&5
  10837. (eval "$ac_link") 2>conftest.er1
  10838. ac_status=$?
  10839. grep -v '^ *+' conftest.er1 >conftest.err
  10840. rm -f conftest.er1
  10841. cat conftest.err >&5
  10842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10843. (exit $ac_status); } && {
  10844. test -z "$ac_c_werror_flag" ||
  10845. test ! -s conftest.err
  10846. } && test -s conftest$ac_exeext && {
  10847. test "$cross_compiling" = yes ||
  10848. $as_test_x conftest$ac_exeext
  10849. }; then
  10850. ac_cv_lib_svld_dlopen=yes
  10851. else
  10852. $as_echo "$as_me: failed program was:" >&5
  10853. sed 's/^/| /' conftest.$ac_ext >&5
  10854. ac_cv_lib_svld_dlopen=no
  10855. fi
  10856. rm -rf conftest.dSYM
  10857. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10858. conftest$ac_exeext conftest.$ac_ext
  10859. LIBS=$ac_check_lib_save_LIBS
  10860. fi
  10861. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10862. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10863. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10864. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10865. else
  10866. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10867. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10868. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10869. $as_echo_n "(cached) " >&6
  10870. else
  10871. ac_check_lib_save_LIBS=$LIBS
  10872. LIBS="-ldld $LIBS"
  10873. cat >conftest.$ac_ext <<_ACEOF
  10874. /* confdefs.h. */
  10875. _ACEOF
  10876. cat confdefs.h >>conftest.$ac_ext
  10877. cat >>conftest.$ac_ext <<_ACEOF
  10878. /* end confdefs.h. */
  10879. /* Override any GCC internal prototype to avoid an error.
  10880. Use char because int might match the return type of a GCC
  10881. builtin and then its argument prototype would still apply. */
  10882. #ifdef __cplusplus
  10883. extern "C"
  10884. #endif
  10885. char dld_link ();
  10886. int
  10887. main ()
  10888. {
  10889. return dld_link ();
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. rm -f conftest.$ac_objext conftest$ac_exeext
  10895. if { (ac_try="$ac_link"
  10896. case "(($ac_try" in
  10897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10898. *) ac_try_echo=$ac_try;;
  10899. esac
  10900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10901. $as_echo "$ac_try_echo") >&5
  10902. (eval "$ac_link") 2>conftest.er1
  10903. ac_status=$?
  10904. grep -v '^ *+' conftest.er1 >conftest.err
  10905. rm -f conftest.er1
  10906. cat conftest.err >&5
  10907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10908. (exit $ac_status); } && {
  10909. test -z "$ac_c_werror_flag" ||
  10910. test ! -s conftest.err
  10911. } && test -s conftest$ac_exeext && {
  10912. test "$cross_compiling" = yes ||
  10913. $as_test_x conftest$ac_exeext
  10914. }; then
  10915. ac_cv_lib_dld_dld_link=yes
  10916. else
  10917. $as_echo "$as_me: failed program was:" >&5
  10918. sed 's/^/| /' conftest.$ac_ext >&5
  10919. ac_cv_lib_dld_dld_link=no
  10920. fi
  10921. rm -rf conftest.dSYM
  10922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10923. conftest$ac_exeext conftest.$ac_ext
  10924. LIBS=$ac_check_lib_save_LIBS
  10925. fi
  10926. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10927. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10928. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10929. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10930. fi
  10931. fi
  10932. fi
  10933. fi
  10934. fi
  10935. fi
  10936. ;;
  10937. esac
  10938. if test "x$lt_cv_dlopen" != xno; then
  10939. enable_dlopen=yes
  10940. else
  10941. enable_dlopen=no
  10942. fi
  10943. case $lt_cv_dlopen in
  10944. dlopen)
  10945. save_CPPFLAGS="$CPPFLAGS"
  10946. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10947. save_LDFLAGS="$LDFLAGS"
  10948. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10949. save_LIBS="$LIBS"
  10950. LIBS="$lt_cv_dlopen_libs $LIBS"
  10951. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10952. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10953. if test "${lt_cv_dlopen_self+set}" = set; then
  10954. $as_echo_n "(cached) " >&6
  10955. else
  10956. if test "$cross_compiling" = yes; then :
  10957. lt_cv_dlopen_self=cross
  10958. else
  10959. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10960. lt_status=$lt_dlunknown
  10961. cat > conftest.$ac_ext <<_LT_EOF
  10962. #line 12719 "configure"
  10963. #include "confdefs.h"
  10964. #if HAVE_DLFCN_H
  10965. #include <dlfcn.h>
  10966. #endif
  10967. #include <stdio.h>
  10968. #ifdef RTLD_GLOBAL
  10969. # define LT_DLGLOBAL RTLD_GLOBAL
  10970. #else
  10971. # ifdef DL_GLOBAL
  10972. # define LT_DLGLOBAL DL_GLOBAL
  10973. # else
  10974. # define LT_DLGLOBAL 0
  10975. # endif
  10976. #endif
  10977. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10978. find out it does not work in some platform. */
  10979. #ifndef LT_DLLAZY_OR_NOW
  10980. # ifdef RTLD_LAZY
  10981. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10982. # else
  10983. # ifdef DL_LAZY
  10984. # define LT_DLLAZY_OR_NOW DL_LAZY
  10985. # else
  10986. # ifdef RTLD_NOW
  10987. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10988. # else
  10989. # ifdef DL_NOW
  10990. # define LT_DLLAZY_OR_NOW DL_NOW
  10991. # else
  10992. # define LT_DLLAZY_OR_NOW 0
  10993. # endif
  10994. # endif
  10995. # endif
  10996. # endif
  10997. #endif
  10998. void fnord() { int i=42;}
  10999. int main ()
  11000. {
  11001. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11002. int status = $lt_dlunknown;
  11003. if (self)
  11004. {
  11005. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11006. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11007. /* dlclose (self); */
  11008. }
  11009. else
  11010. puts (dlerror ());
  11011. return status;
  11012. }
  11013. _LT_EOF
  11014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11015. (eval $ac_link) 2>&5
  11016. ac_status=$?
  11017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11018. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11019. (./conftest; exit; ) >&5 2>/dev/null
  11020. lt_status=$?
  11021. case x$lt_status in
  11022. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11023. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11024. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11025. esac
  11026. else :
  11027. # compilation failed
  11028. lt_cv_dlopen_self=no
  11029. fi
  11030. fi
  11031. rm -fr conftest*
  11032. fi
  11033. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11034. $as_echo "$lt_cv_dlopen_self" >&6; }
  11035. if test "x$lt_cv_dlopen_self" = xyes; then
  11036. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11037. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11038. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11039. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11040. $as_echo_n "(cached) " >&6
  11041. else
  11042. if test "$cross_compiling" = yes; then :
  11043. lt_cv_dlopen_self_static=cross
  11044. else
  11045. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11046. lt_status=$lt_dlunknown
  11047. cat > conftest.$ac_ext <<_LT_EOF
  11048. #line 12815 "configure"
  11049. #include "confdefs.h"
  11050. #if HAVE_DLFCN_H
  11051. #include <dlfcn.h>
  11052. #endif
  11053. #include <stdio.h>
  11054. #ifdef RTLD_GLOBAL
  11055. # define LT_DLGLOBAL RTLD_GLOBAL
  11056. #else
  11057. # ifdef DL_GLOBAL
  11058. # define LT_DLGLOBAL DL_GLOBAL
  11059. # else
  11060. # define LT_DLGLOBAL 0
  11061. # endif
  11062. #endif
  11063. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11064. find out it does not work in some platform. */
  11065. #ifndef LT_DLLAZY_OR_NOW
  11066. # ifdef RTLD_LAZY
  11067. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11068. # else
  11069. # ifdef DL_LAZY
  11070. # define LT_DLLAZY_OR_NOW DL_LAZY
  11071. # else
  11072. # ifdef RTLD_NOW
  11073. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11074. # else
  11075. # ifdef DL_NOW
  11076. # define LT_DLLAZY_OR_NOW DL_NOW
  11077. # else
  11078. # define LT_DLLAZY_OR_NOW 0
  11079. # endif
  11080. # endif
  11081. # endif
  11082. # endif
  11083. #endif
  11084. void fnord() { int i=42;}
  11085. int main ()
  11086. {
  11087. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11088. int status = $lt_dlunknown;
  11089. if (self)
  11090. {
  11091. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11092. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11093. /* dlclose (self); */
  11094. }
  11095. else
  11096. puts (dlerror ());
  11097. return status;
  11098. }
  11099. _LT_EOF
  11100. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11101. (eval $ac_link) 2>&5
  11102. ac_status=$?
  11103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11104. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11105. (./conftest; exit; ) >&5 2>/dev/null
  11106. lt_status=$?
  11107. case x$lt_status in
  11108. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11109. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11110. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11111. esac
  11112. else :
  11113. # compilation failed
  11114. lt_cv_dlopen_self_static=no
  11115. fi
  11116. fi
  11117. rm -fr conftest*
  11118. fi
  11119. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11120. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11121. fi
  11122. CPPFLAGS="$save_CPPFLAGS"
  11123. LDFLAGS="$save_LDFLAGS"
  11124. LIBS="$save_LIBS"
  11125. ;;
  11126. esac
  11127. case $lt_cv_dlopen_self in
  11128. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11129. *) enable_dlopen_self=unknown ;;
  11130. esac
  11131. case $lt_cv_dlopen_self_static in
  11132. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11133. *) enable_dlopen_self_static=unknown ;;
  11134. esac
  11135. fi
  11136. striplib=
  11137. old_striplib=
  11138. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11139. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11140. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11141. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11142. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11143. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11144. $as_echo "yes" >&6; }
  11145. else
  11146. # FIXME - insert some real tests, host_os isn't really good enough
  11147. case $host_os in
  11148. darwin*)
  11149. if test -n "$STRIP" ; then
  11150. striplib="$STRIP -x"
  11151. old_striplib="$STRIP -S"
  11152. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11153. $as_echo "yes" >&6; }
  11154. else
  11155. { $as_echo "$as_me:$LINENO: result: no" >&5
  11156. $as_echo "no" >&6; }
  11157. fi
  11158. ;;
  11159. *)
  11160. { $as_echo "$as_me:$LINENO: result: no" >&5
  11161. $as_echo "no" >&6; }
  11162. ;;
  11163. esac
  11164. fi
  11165. # Report which library types will actually be built
  11166. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11167. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11168. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11169. $as_echo "$can_build_shared" >&6; }
  11170. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11171. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11172. test "$can_build_shared" = "no" && enable_shared=no
  11173. # On AIX, shared libraries and static libraries use the same namespace, and
  11174. # are all built from PIC.
  11175. case $host_os in
  11176. aix3*)
  11177. test "$enable_shared" = yes && enable_static=no
  11178. if test -n "$RANLIB"; then
  11179. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11180. postinstall_cmds='$RANLIB $lib'
  11181. fi
  11182. ;;
  11183. aix[4-9]*)
  11184. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11185. test "$enable_shared" = yes && enable_static=no
  11186. fi
  11187. ;;
  11188. esac
  11189. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11190. $as_echo "$enable_shared" >&6; }
  11191. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11192. $as_echo_n "checking whether to build static libraries... " >&6; }
  11193. # Make sure either enable_shared or enable_static is yes.
  11194. test "$enable_shared" = yes || enable_static=yes
  11195. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11196. $as_echo "$enable_static" >&6; }
  11197. fi
  11198. ac_ext=c
  11199. ac_cpp='$CPP $CPPFLAGS'
  11200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11203. CC="$lt_save_CC"
  11204. ac_config_commands="$ac_config_commands libtool"
  11205. # Only expand once:
  11206. if test -n "$ac_tool_prefix"; then
  11207. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11208. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11209. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11210. $as_echo_n "checking for $ac_word... " >&6; }
  11211. if test "${ac_cv_prog_RC+set}" = set; then
  11212. $as_echo_n "(cached) " >&6
  11213. else
  11214. if test -n "$RC"; then
  11215. ac_cv_prog_RC="$RC" # Let the user override the test.
  11216. else
  11217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11218. for as_dir in $PATH
  11219. do
  11220. IFS=$as_save_IFS
  11221. test -z "$as_dir" && as_dir=.
  11222. for ac_exec_ext in '' $ac_executable_extensions; do
  11223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11224. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11225. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11226. break 2
  11227. fi
  11228. done
  11229. done
  11230. IFS=$as_save_IFS
  11231. fi
  11232. fi
  11233. RC=$ac_cv_prog_RC
  11234. if test -n "$RC"; then
  11235. { $as_echo "$as_me:$LINENO: result: $RC" >&5
  11236. $as_echo "$RC" >&6; }
  11237. else
  11238. { $as_echo "$as_me:$LINENO: result: no" >&5
  11239. $as_echo "no" >&6; }
  11240. fi
  11241. fi
  11242. if test -z "$ac_cv_prog_RC"; then
  11243. ac_ct_RC=$RC
  11244. # Extract the first word of "windres", so it can be a program name with args.
  11245. set dummy windres; ac_word=$2
  11246. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11247. $as_echo_n "checking for $ac_word... " >&6; }
  11248. if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. if test -n "$ac_ct_RC"; then
  11252. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11253. else
  11254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11255. for as_dir in $PATH
  11256. do
  11257. IFS=$as_save_IFS
  11258. test -z "$as_dir" && as_dir=.
  11259. for ac_exec_ext in '' $ac_executable_extensions; do
  11260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11261. ac_cv_prog_ac_ct_RC="windres"
  11262. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11263. break 2
  11264. fi
  11265. done
  11266. done
  11267. IFS=$as_save_IFS
  11268. fi
  11269. fi
  11270. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11271. if test -n "$ac_ct_RC"; then
  11272. { $as_echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
  11273. $as_echo "$ac_ct_RC" >&6; }
  11274. else
  11275. { $as_echo "$as_me:$LINENO: result: no" >&5
  11276. $as_echo "no" >&6; }
  11277. fi
  11278. if test "x$ac_ct_RC" = x; then
  11279. RC=""
  11280. else
  11281. case $cross_compiling:$ac_tool_warned in
  11282. yes:)
  11283. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  11284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11285. ac_tool_warned=yes ;;
  11286. esac
  11287. RC=$ac_ct_RC
  11288. fi
  11289. else
  11290. RC="$ac_cv_prog_RC"
  11291. fi
  11292. # Source file extension for RC test sources.
  11293. ac_ext=rc
  11294. # Object file extension for compiled RC test sources.
  11295. objext=o
  11296. objext_RC=$objext
  11297. # Code to be used in simple compile tests
  11298. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11299. # Code to be used in simple link tests
  11300. lt_simple_link_test_code="$lt_simple_compile_test_code"
  11301. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11302. # If no C compiler was specified, use CC.
  11303. LTCC=${LTCC-"$CC"}
  11304. # If no C compiler flags were specified, use CFLAGS.
  11305. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11306. # Allow CC to be a program name with arguments.
  11307. compiler=$CC
  11308. # save warnings/boilerplate of simple test code
  11309. ac_outfile=conftest.$ac_objext
  11310. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11311. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11312. _lt_compiler_boilerplate=`cat conftest.err`
  11313. $RM conftest*
  11314. ac_outfile=conftest.$ac_objext
  11315. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11316. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11317. _lt_linker_boilerplate=`cat conftest.err`
  11318. $RM -r conftest*
  11319. # Allow CC to be a program name with arguments.
  11320. lt_save_CC="$CC"
  11321. lt_save_GCC=$GCC
  11322. GCC=
  11323. CC=${RC-"windres"}
  11324. compiler=$CC
  11325. compiler_RC=$CC
  11326. for cc_temp in $compiler""; do
  11327. case $cc_temp in
  11328. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11329. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11330. \-*) ;;
  11331. *) break;;
  11332. esac
  11333. done
  11334. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11335. lt_cv_prog_compiler_c_o_RC=yes
  11336. if test -n "$compiler"; then
  11337. :
  11338. fi
  11339. GCC=$lt_save_GCC
  11340. ac_ext=c
  11341. ac_cpp='$CPP $CPPFLAGS'
  11342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11345. CC="$lt_save_CC"
  11346. case "$host_os" in
  11347. mingw* | cygwin*) is_woe32=yes ;;
  11348. *) is_woe32=no ;;
  11349. esac
  11350. WOE32=$is_woe32
  11351. if test $WOE32 = yes; then
  11352. if test -n "$ac_tool_prefix"; then
  11353. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11354. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11355. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11356. $as_echo_n "checking for $ac_word... " >&6; }
  11357. if test "${ac_cv_prog_WINDRES+set}" = set; then
  11358. $as_echo_n "(cached) " >&6
  11359. else
  11360. if test -n "$WINDRES"; then
  11361. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11362. else
  11363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11364. for as_dir in $PATH
  11365. do
  11366. IFS=$as_save_IFS
  11367. test -z "$as_dir" && as_dir=.
  11368. for ac_exec_ext in '' $ac_executable_extensions; do
  11369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11370. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11371. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11372. break 2
  11373. fi
  11374. done
  11375. done
  11376. IFS=$as_save_IFS
  11377. fi
  11378. fi
  11379. WINDRES=$ac_cv_prog_WINDRES
  11380. if test -n "$WINDRES"; then
  11381. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  11382. $as_echo "$WINDRES" >&6; }
  11383. else
  11384. { $as_echo "$as_me:$LINENO: result: no" >&5
  11385. $as_echo "no" >&6; }
  11386. fi
  11387. fi
  11388. if test -z "$ac_cv_prog_WINDRES"; then
  11389. ac_ct_WINDRES=$WINDRES
  11390. # Extract the first word of "windres", so it can be a program name with args.
  11391. set dummy windres; ac_word=$2
  11392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11393. $as_echo_n "checking for $ac_word... " >&6; }
  11394. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  11395. $as_echo_n "(cached) " >&6
  11396. else
  11397. if test -n "$ac_ct_WINDRES"; then
  11398. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11399. else
  11400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11401. for as_dir in $PATH
  11402. do
  11403. IFS=$as_save_IFS
  11404. test -z "$as_dir" && as_dir=.
  11405. for ac_exec_ext in '' $ac_executable_extensions; do
  11406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11407. ac_cv_prog_ac_ct_WINDRES="windres"
  11408. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11409. break 2
  11410. fi
  11411. done
  11412. done
  11413. IFS=$as_save_IFS
  11414. fi
  11415. fi
  11416. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11417. if test -n "$ac_ct_WINDRES"; then
  11418. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  11419. $as_echo "$ac_ct_WINDRES" >&6; }
  11420. else
  11421. { $as_echo "$as_me:$LINENO: result: no" >&5
  11422. $as_echo "no" >&6; }
  11423. fi
  11424. if test "x$ac_ct_WINDRES" = x; then
  11425. WINDRES=""
  11426. else
  11427. case $cross_compiling:$ac_tool_warned in
  11428. yes:)
  11429. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  11430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11431. ac_tool_warned=yes ;;
  11432. esac
  11433. WINDRES=$ac_ct_WINDRES
  11434. fi
  11435. else
  11436. WINDRES="$ac_cv_prog_WINDRES"
  11437. fi
  11438. fi
  11439. CFLAG_VISIBILITY=
  11440. HAVE_VISIBILITY=0
  11441. if test -n "$GCC"; then
  11442. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  11443. $as_echo_n "checking for simple visibility declarations... " >&6; }
  11444. if test "${gl_cv_cc_visibility+set}" = set; then
  11445. $as_echo_n "(cached) " >&6
  11446. else
  11447. gl_save_CFLAGS="$CFLAGS"
  11448. CFLAGS="$CFLAGS -fvisibility=hidden"
  11449. cat >conftest.$ac_ext <<_ACEOF
  11450. /* confdefs.h. */
  11451. _ACEOF
  11452. cat confdefs.h >>conftest.$ac_ext
  11453. cat >>conftest.$ac_ext <<_ACEOF
  11454. /* end confdefs.h. */
  11455. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11456. extern __attribute__((__visibility__("default"))) int exportedvar;
  11457. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11458. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11459. int
  11460. main ()
  11461. {
  11462. ;
  11463. return 0;
  11464. }
  11465. _ACEOF
  11466. rm -f conftest.$ac_objext
  11467. if { (ac_try="$ac_compile"
  11468. case "(($ac_try" in
  11469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11470. *) ac_try_echo=$ac_try;;
  11471. esac
  11472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11473. $as_echo "$ac_try_echo") >&5
  11474. (eval "$ac_compile") 2>conftest.er1
  11475. ac_status=$?
  11476. grep -v '^ *+' conftest.er1 >conftest.err
  11477. rm -f conftest.er1
  11478. cat conftest.err >&5
  11479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11480. (exit $ac_status); } && {
  11481. test -z "$ac_c_werror_flag" ||
  11482. test ! -s conftest.err
  11483. } && test -s conftest.$ac_objext; then
  11484. gl_cv_cc_visibility=yes
  11485. else
  11486. $as_echo "$as_me: failed program was:" >&5
  11487. sed 's/^/| /' conftest.$ac_ext >&5
  11488. gl_cv_cc_visibility=no
  11489. fi
  11490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11491. CFLAGS="$gl_save_CFLAGS"
  11492. fi
  11493. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  11494. $as_echo "$gl_cv_cc_visibility" >&6; }
  11495. if test $gl_cv_cc_visibility = yes; then
  11496. CFLAG_VISIBILITY="-fvisibility=hidden"
  11497. HAVE_VISIBILITY=1
  11498. fi
  11499. fi
  11500. cat >>confdefs.h <<_ACEOF
  11501. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  11502. _ACEOF
  11503. if test "X$prefix" = "XNONE"; then
  11504. acl_final_prefix="$ac_default_prefix"
  11505. else
  11506. acl_final_prefix="$prefix"
  11507. fi
  11508. if test "X$exec_prefix" = "XNONE"; then
  11509. acl_final_exec_prefix='${prefix}'
  11510. else
  11511. acl_final_exec_prefix="$exec_prefix"
  11512. fi
  11513. acl_save_prefix="$prefix"
  11514. prefix="$acl_final_prefix"
  11515. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11516. prefix="$acl_save_prefix"
  11517. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11518. $as_echo_n "checking for shared library run path origin... " >&6; }
  11519. if test "${acl_cv_rpath+set}" = set; then
  11520. $as_echo_n "(cached) " >&6
  11521. else
  11522. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11523. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11524. . ./conftest.sh
  11525. rm -f ./conftest.sh
  11526. acl_cv_rpath=done
  11527. fi
  11528. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11529. $as_echo "$acl_cv_rpath" >&6; }
  11530. wl="$acl_cv_wl"
  11531. acl_libext="$acl_cv_libext"
  11532. acl_shlibext="$acl_cv_shlibext"
  11533. acl_libname_spec="$acl_cv_libname_spec"
  11534. acl_library_names_spec="$acl_cv_library_names_spec"
  11535. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11536. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11537. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11538. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11539. # Check whether --enable-rpath was given.
  11540. if test "${enable_rpath+set}" = set; then
  11541. enableval=$enable_rpath; :
  11542. else
  11543. enable_rpath=yes
  11544. fi
  11545. acl_libdirstem=lib
  11546. acl_libdirstem2=
  11547. case "$host_os" in
  11548. solaris*)
  11549. { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
  11550. $as_echo_n "checking for 64-bit host... " >&6; }
  11551. if test "${gl_cv_solaris_64bit+set}" = set; then
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. cat >conftest.$ac_ext <<_ACEOF
  11555. /* confdefs.h. */
  11556. _ACEOF
  11557. cat confdefs.h >>conftest.$ac_ext
  11558. cat >>conftest.$ac_ext <<_ACEOF
  11559. /* end confdefs.h. */
  11560. #ifdef _LP64
  11561. sixtyfour bits
  11562. #endif
  11563. _ACEOF
  11564. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11565. $EGREP "sixtyfour bits" >/dev/null 2>&1; then
  11566. gl_cv_solaris_64bit=yes
  11567. else
  11568. gl_cv_solaris_64bit=no
  11569. fi
  11570. rm -f conftest*
  11571. fi
  11572. { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
  11573. $as_echo "$gl_cv_solaris_64bit" >&6; }
  11574. if test $gl_cv_solaris_64bit = yes; then
  11575. acl_libdirstem=lib/64
  11576. case "$host_cpu" in
  11577. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  11578. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  11579. esac
  11580. fi
  11581. ;;
  11582. *)
  11583. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11584. if test -n "$searchpath"; then
  11585. acl_save_IFS="${IFS= }"; IFS=":"
  11586. for searchdir in $searchpath; do
  11587. if test -d "$searchdir"; then
  11588. case "$searchdir" in
  11589. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11590. */../ | */.. )
  11591. # Better ignore directories of this form. They are misleading.
  11592. ;;
  11593. *) searchdir=`cd "$searchdir" && pwd`
  11594. case "$searchdir" in
  11595. */lib64 ) acl_libdirstem=lib64 ;;
  11596. esac ;;
  11597. esac
  11598. fi
  11599. done
  11600. IFS="$acl_save_IFS"
  11601. fi
  11602. ;;
  11603. esac
  11604. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  11605. use_additional=yes
  11606. acl_save_prefix="$prefix"
  11607. prefix="$acl_final_prefix"
  11608. acl_save_exec_prefix="$exec_prefix"
  11609. exec_prefix="$acl_final_exec_prefix"
  11610. eval additional_includedir=\"$includedir\"
  11611. eval additional_libdir=\"$libdir\"
  11612. exec_prefix="$acl_save_exec_prefix"
  11613. prefix="$acl_save_prefix"
  11614. # Check whether --with-libiconv-prefix was given.
  11615. if test "${with_libiconv_prefix+set}" = set; then
  11616. withval=$with_libiconv_prefix;
  11617. if test "X$withval" = "Xno"; then
  11618. use_additional=no
  11619. else
  11620. if test "X$withval" = "X"; then
  11621. acl_save_prefix="$prefix"
  11622. prefix="$acl_final_prefix"
  11623. acl_save_exec_prefix="$exec_prefix"
  11624. exec_prefix="$acl_final_exec_prefix"
  11625. eval additional_includedir=\"$includedir\"
  11626. eval additional_libdir=\"$libdir\"
  11627. exec_prefix="$acl_save_exec_prefix"
  11628. prefix="$acl_save_prefix"
  11629. else
  11630. additional_includedir="$withval/include"
  11631. additional_libdir="$withval/$acl_libdirstem"
  11632. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  11633. && ! test -d "$withval/$acl_libdirstem"; then
  11634. additional_libdir="$withval/$acl_libdirstem2"
  11635. fi
  11636. fi
  11637. fi
  11638. fi
  11639. LIBICONV=
  11640. LTLIBICONV=
  11641. INCICONV=
  11642. LIBICONV_PREFIX=
  11643. HAVE_LIBICONV=
  11644. rpathdirs=
  11645. ltrpathdirs=
  11646. names_already_handled=
  11647. names_next_round='iconv '
  11648. while test -n "$names_next_round"; do
  11649. names_this_round="$names_next_round"
  11650. names_next_round=
  11651. for name in $names_this_round; do
  11652. already_handled=
  11653. for n in $names_already_handled; do
  11654. if test "$n" = "$name"; then
  11655. already_handled=yes
  11656. break
  11657. fi
  11658. done
  11659. if test -z "$already_handled"; then
  11660. names_already_handled="$names_already_handled $name"
  11661. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11662. eval value=\"\$HAVE_LIB$uppername\"
  11663. if test -n "$value"; then
  11664. if test "$value" = yes; then
  11665. eval value=\"\$LIB$uppername\"
  11666. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11667. eval value=\"\$LTLIB$uppername\"
  11668. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11669. else
  11670. :
  11671. fi
  11672. else
  11673. found_dir=
  11674. found_la=
  11675. found_so=
  11676. found_a=
  11677. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11678. if test -n "$acl_shlibext"; then
  11679. shrext=".$acl_shlibext" # typically: shrext=.so
  11680. else
  11681. shrext=
  11682. fi
  11683. if test $use_additional = yes; then
  11684. dir="$additional_libdir"
  11685. if test -n "$acl_shlibext"; then
  11686. if test -f "$dir/$libname$shrext"; then
  11687. found_dir="$dir"
  11688. found_so="$dir/$libname$shrext"
  11689. else
  11690. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11691. ver=`(cd "$dir" && \
  11692. for f in "$libname$shrext".*; do echo "$f"; done \
  11693. | sed -e "s,^$libname$shrext\\\\.,," \
  11694. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11695. | sed 1q ) 2>/dev/null`
  11696. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11697. found_dir="$dir"
  11698. found_so="$dir/$libname$shrext.$ver"
  11699. fi
  11700. else
  11701. eval library_names=\"$acl_library_names_spec\"
  11702. for f in $library_names; do
  11703. if test -f "$dir/$f"; then
  11704. found_dir="$dir"
  11705. found_so="$dir/$f"
  11706. break
  11707. fi
  11708. done
  11709. fi
  11710. fi
  11711. fi
  11712. if test "X$found_dir" = "X"; then
  11713. if test -f "$dir/$libname.$acl_libext"; then
  11714. found_dir="$dir"
  11715. found_a="$dir/$libname.$acl_libext"
  11716. fi
  11717. fi
  11718. if test "X$found_dir" != "X"; then
  11719. if test -f "$dir/$libname.la"; then
  11720. found_la="$dir/$libname.la"
  11721. fi
  11722. fi
  11723. fi
  11724. if test "X$found_dir" = "X"; then
  11725. for x in $LDFLAGS $LTLIBICONV; do
  11726. acl_save_prefix="$prefix"
  11727. prefix="$acl_final_prefix"
  11728. acl_save_exec_prefix="$exec_prefix"
  11729. exec_prefix="$acl_final_exec_prefix"
  11730. eval x=\"$x\"
  11731. exec_prefix="$acl_save_exec_prefix"
  11732. prefix="$acl_save_prefix"
  11733. case "$x" in
  11734. -L*)
  11735. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11736. if test -n "$acl_shlibext"; then
  11737. if test -f "$dir/$libname$shrext"; then
  11738. found_dir="$dir"
  11739. found_so="$dir/$libname$shrext"
  11740. else
  11741. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11742. ver=`(cd "$dir" && \
  11743. for f in "$libname$shrext".*; do echo "$f"; done \
  11744. | sed -e "s,^$libname$shrext\\\\.,," \
  11745. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11746. | sed 1q ) 2>/dev/null`
  11747. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11748. found_dir="$dir"
  11749. found_so="$dir/$libname$shrext.$ver"
  11750. fi
  11751. else
  11752. eval library_names=\"$acl_library_names_spec\"
  11753. for f in $library_names; do
  11754. if test -f "$dir/$f"; then
  11755. found_dir="$dir"
  11756. found_so="$dir/$f"
  11757. break
  11758. fi
  11759. done
  11760. fi
  11761. fi
  11762. fi
  11763. if test "X$found_dir" = "X"; then
  11764. if test -f "$dir/$libname.$acl_libext"; then
  11765. found_dir="$dir"
  11766. found_a="$dir/$libname.$acl_libext"
  11767. fi
  11768. fi
  11769. if test "X$found_dir" != "X"; then
  11770. if test -f "$dir/$libname.la"; then
  11771. found_la="$dir/$libname.la"
  11772. fi
  11773. fi
  11774. ;;
  11775. esac
  11776. if test "X$found_dir" != "X"; then
  11777. break
  11778. fi
  11779. done
  11780. fi
  11781. if test "X$found_dir" != "X"; then
  11782. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11783. if test "X$found_so" != "X"; then
  11784. if test "$enable_rpath" = no \
  11785. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  11786. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  11787. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11788. else
  11789. haveit=
  11790. for x in $ltrpathdirs; do
  11791. if test "X$x" = "X$found_dir"; then
  11792. haveit=yes
  11793. break
  11794. fi
  11795. done
  11796. if test -z "$haveit"; then
  11797. ltrpathdirs="$ltrpathdirs $found_dir"
  11798. fi
  11799. if test "$acl_hardcode_direct" = yes; then
  11800. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11801. else
  11802. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11803. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11804. haveit=
  11805. for x in $rpathdirs; do
  11806. if test "X$x" = "X$found_dir"; then
  11807. haveit=yes
  11808. break
  11809. fi
  11810. done
  11811. if test -z "$haveit"; then
  11812. rpathdirs="$rpathdirs $found_dir"
  11813. fi
  11814. else
  11815. haveit=
  11816. for x in $LDFLAGS $LIBICONV; do
  11817. acl_save_prefix="$prefix"
  11818. prefix="$acl_final_prefix"
  11819. acl_save_exec_prefix="$exec_prefix"
  11820. exec_prefix="$acl_final_exec_prefix"
  11821. eval x=\"$x\"
  11822. exec_prefix="$acl_save_exec_prefix"
  11823. prefix="$acl_save_prefix"
  11824. if test "X$x" = "X-L$found_dir"; then
  11825. haveit=yes
  11826. break
  11827. fi
  11828. done
  11829. if test -z "$haveit"; then
  11830. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11831. fi
  11832. if test "$acl_hardcode_minus_L" != no; then
  11833. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11834. else
  11835. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11836. fi
  11837. fi
  11838. fi
  11839. fi
  11840. else
  11841. if test "X$found_a" != "X"; then
  11842. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11843. else
  11844. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11845. fi
  11846. fi
  11847. additional_includedir=
  11848. case "$found_dir" in
  11849. */$acl_libdirstem | */$acl_libdirstem/)
  11850. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11851. if test "$name" = 'iconv'; then
  11852. LIBICONV_PREFIX="$basedir"
  11853. fi
  11854. additional_includedir="$basedir/include"
  11855. ;;
  11856. */$acl_libdirstem2 | */$acl_libdirstem2/)
  11857. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  11858. if test "$name" = 'iconv'; then
  11859. LIBICONV_PREFIX="$basedir"
  11860. fi
  11861. additional_includedir="$basedir/include"
  11862. ;;
  11863. esac
  11864. if test "X$additional_includedir" != "X"; then
  11865. if test "X$additional_includedir" != "X/usr/include"; then
  11866. haveit=
  11867. if test "X$additional_includedir" = "X/usr/local/include"; then
  11868. if test -n "$GCC"; then
  11869. case $host_os in
  11870. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11871. esac
  11872. fi
  11873. fi
  11874. if test -z "$haveit"; then
  11875. for x in $CPPFLAGS $INCICONV; do
  11876. acl_save_prefix="$prefix"
  11877. prefix="$acl_final_prefix"
  11878. acl_save_exec_prefix="$exec_prefix"
  11879. exec_prefix="$acl_final_exec_prefix"
  11880. eval x=\"$x\"
  11881. exec_prefix="$acl_save_exec_prefix"
  11882. prefix="$acl_save_prefix"
  11883. if test "X$x" = "X-I$additional_includedir"; then
  11884. haveit=yes
  11885. break
  11886. fi
  11887. done
  11888. if test -z "$haveit"; then
  11889. if test -d "$additional_includedir"; then
  11890. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11891. fi
  11892. fi
  11893. fi
  11894. fi
  11895. fi
  11896. if test -n "$found_la"; then
  11897. save_libdir="$libdir"
  11898. case "$found_la" in
  11899. */* | *\\*) . "$found_la" ;;
  11900. *) . "./$found_la" ;;
  11901. esac
  11902. libdir="$save_libdir"
  11903. for dep in $dependency_libs; do
  11904. case "$dep" in
  11905. -L*)
  11906. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11907. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  11908. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  11909. haveit=
  11910. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  11911. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  11912. if test -n "$GCC"; then
  11913. case $host_os in
  11914. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11915. esac
  11916. fi
  11917. fi
  11918. if test -z "$haveit"; then
  11919. haveit=
  11920. for x in $LDFLAGS $LIBICONV; do
  11921. acl_save_prefix="$prefix"
  11922. prefix="$acl_final_prefix"
  11923. acl_save_exec_prefix="$exec_prefix"
  11924. exec_prefix="$acl_final_exec_prefix"
  11925. eval x=\"$x\"
  11926. exec_prefix="$acl_save_exec_prefix"
  11927. prefix="$acl_save_prefix"
  11928. if test "X$x" = "X-L$additional_libdir"; then
  11929. haveit=yes
  11930. break
  11931. fi
  11932. done
  11933. if test -z "$haveit"; then
  11934. if test -d "$additional_libdir"; then
  11935. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11936. fi
  11937. fi
  11938. haveit=
  11939. for x in $LDFLAGS $LTLIBICONV; do
  11940. acl_save_prefix="$prefix"
  11941. prefix="$acl_final_prefix"
  11942. acl_save_exec_prefix="$exec_prefix"
  11943. exec_prefix="$acl_final_exec_prefix"
  11944. eval x=\"$x\"
  11945. exec_prefix="$acl_save_exec_prefix"
  11946. prefix="$acl_save_prefix"
  11947. if test "X$x" = "X-L$additional_libdir"; then
  11948. haveit=yes
  11949. break
  11950. fi
  11951. done
  11952. if test -z "$haveit"; then
  11953. if test -d "$additional_libdir"; then
  11954. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11955. fi
  11956. fi
  11957. fi
  11958. fi
  11959. ;;
  11960. -R*)
  11961. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11962. if test "$enable_rpath" != no; then
  11963. haveit=
  11964. for x in $rpathdirs; do
  11965. if test "X$x" = "X$dir"; then
  11966. haveit=yes
  11967. break
  11968. fi
  11969. done
  11970. if test -z "$haveit"; then
  11971. rpathdirs="$rpathdirs $dir"
  11972. fi
  11973. haveit=
  11974. for x in $ltrpathdirs; do
  11975. if test "X$x" = "X$dir"; then
  11976. haveit=yes
  11977. break
  11978. fi
  11979. done
  11980. if test -z "$haveit"; then
  11981. ltrpathdirs="$ltrpathdirs $dir"
  11982. fi
  11983. fi
  11984. ;;
  11985. -l*)
  11986. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11987. ;;
  11988. *.la)
  11989. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11990. ;;
  11991. *)
  11992. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11993. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11994. ;;
  11995. esac
  11996. done
  11997. fi
  11998. else
  11999. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12000. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12001. fi
  12002. fi
  12003. fi
  12004. done
  12005. done
  12006. if test "X$rpathdirs" != "X"; then
  12007. if test -n "$acl_hardcode_libdir_separator"; then
  12008. alldirs=
  12009. for found_dir in $rpathdirs; do
  12010. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12011. done
  12012. acl_save_libdir="$libdir"
  12013. libdir="$alldirs"
  12014. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12015. libdir="$acl_save_libdir"
  12016. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12017. else
  12018. for found_dir in $rpathdirs; do
  12019. acl_save_libdir="$libdir"
  12020. libdir="$found_dir"
  12021. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12022. libdir="$acl_save_libdir"
  12023. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12024. done
  12025. fi
  12026. fi
  12027. if test "X$ltrpathdirs" != "X"; then
  12028. for found_dir in $ltrpathdirs; do
  12029. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12030. done
  12031. fi
  12032. am_save_CPPFLAGS="$CPPFLAGS"
  12033. for element in $INCICONV; do
  12034. haveit=
  12035. for x in $CPPFLAGS; do
  12036. acl_save_prefix="$prefix"
  12037. prefix="$acl_final_prefix"
  12038. acl_save_exec_prefix="$exec_prefix"
  12039. exec_prefix="$acl_final_exec_prefix"
  12040. eval x=\"$x\"
  12041. exec_prefix="$acl_save_exec_prefix"
  12042. prefix="$acl_save_prefix"
  12043. if test "X$x" = "X$element"; then
  12044. haveit=yes
  12045. break
  12046. fi
  12047. done
  12048. if test -z "$haveit"; then
  12049. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12050. fi
  12051. done
  12052. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  12053. $as_echo_n "checking for iconv... " >&6; }
  12054. if test "${am_cv_func_iconv+set}" = set; then
  12055. $as_echo_n "(cached) " >&6
  12056. else
  12057. am_cv_func_iconv="no, consider installing GNU libiconv"
  12058. am_cv_lib_iconv=no
  12059. cat >conftest.$ac_ext <<_ACEOF
  12060. /* confdefs.h. */
  12061. _ACEOF
  12062. cat confdefs.h >>conftest.$ac_ext
  12063. cat >>conftest.$ac_ext <<_ACEOF
  12064. /* end confdefs.h. */
  12065. #include <stdlib.h>
  12066. #include <iconv.h>
  12067. int
  12068. main ()
  12069. {
  12070. iconv_t cd = iconv_open("","");
  12071. iconv(cd,NULL,NULL,NULL,NULL);
  12072. iconv_close(cd);
  12073. ;
  12074. return 0;
  12075. }
  12076. _ACEOF
  12077. rm -f conftest.$ac_objext conftest$ac_exeext
  12078. if { (ac_try="$ac_link"
  12079. case "(($ac_try" in
  12080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12081. *) ac_try_echo=$ac_try;;
  12082. esac
  12083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12084. $as_echo "$ac_try_echo") >&5
  12085. (eval "$ac_link") 2>conftest.er1
  12086. ac_status=$?
  12087. grep -v '^ *+' conftest.er1 >conftest.err
  12088. rm -f conftest.er1
  12089. cat conftest.err >&5
  12090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12091. (exit $ac_status); } && {
  12092. test -z "$ac_c_werror_flag" ||
  12093. test ! -s conftest.err
  12094. } && test -s conftest$ac_exeext && {
  12095. test "$cross_compiling" = yes ||
  12096. $as_test_x conftest$ac_exeext
  12097. }; then
  12098. am_cv_func_iconv=yes
  12099. else
  12100. $as_echo "$as_me: failed program was:" >&5
  12101. sed 's/^/| /' conftest.$ac_ext >&5
  12102. fi
  12103. rm -rf conftest.dSYM
  12104. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12105. conftest$ac_exeext conftest.$ac_ext
  12106. if test "$am_cv_func_iconv" != yes; then
  12107. am_save_LIBS="$LIBS"
  12108. LIBS="$LIBS $LIBICONV"
  12109. cat >conftest.$ac_ext <<_ACEOF
  12110. /* confdefs.h. */
  12111. _ACEOF
  12112. cat confdefs.h >>conftest.$ac_ext
  12113. cat >>conftest.$ac_ext <<_ACEOF
  12114. /* end confdefs.h. */
  12115. #include <stdlib.h>
  12116. #include <iconv.h>
  12117. int
  12118. main ()
  12119. {
  12120. iconv_t cd = iconv_open("","");
  12121. iconv(cd,NULL,NULL,NULL,NULL);
  12122. iconv_close(cd);
  12123. ;
  12124. return 0;
  12125. }
  12126. _ACEOF
  12127. rm -f conftest.$ac_objext conftest$ac_exeext
  12128. if { (ac_try="$ac_link"
  12129. case "(($ac_try" in
  12130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12131. *) ac_try_echo=$ac_try;;
  12132. esac
  12133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12134. $as_echo "$ac_try_echo") >&5
  12135. (eval "$ac_link") 2>conftest.er1
  12136. ac_status=$?
  12137. grep -v '^ *+' conftest.er1 >conftest.err
  12138. rm -f conftest.er1
  12139. cat conftest.err >&5
  12140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12141. (exit $ac_status); } && {
  12142. test -z "$ac_c_werror_flag" ||
  12143. test ! -s conftest.err
  12144. } && test -s conftest$ac_exeext && {
  12145. test "$cross_compiling" = yes ||
  12146. $as_test_x conftest$ac_exeext
  12147. }; then
  12148. am_cv_lib_iconv=yes
  12149. am_cv_func_iconv=yes
  12150. else
  12151. $as_echo "$as_me: failed program was:" >&5
  12152. sed 's/^/| /' conftest.$ac_ext >&5
  12153. fi
  12154. rm -rf conftest.dSYM
  12155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12156. conftest$ac_exeext conftest.$ac_ext
  12157. LIBS="$am_save_LIBS"
  12158. fi
  12159. fi
  12160. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12161. $as_echo "$am_cv_func_iconv" >&6; }
  12162. if test "$am_cv_func_iconv" = yes; then
  12163. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  12164. $as_echo_n "checking for working iconv... " >&6; }
  12165. if test "${am_cv_func_iconv_works+set}" = set; then
  12166. $as_echo_n "(cached) " >&6
  12167. else
  12168. am_save_LIBS="$LIBS"
  12169. if test $am_cv_lib_iconv = yes; then
  12170. LIBS="$LIBS $LIBICONV"
  12171. fi
  12172. if test "$cross_compiling" = yes; then
  12173. case "$host_os" in
  12174. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12175. *) am_cv_func_iconv_works="guessing yes" ;;
  12176. esac
  12177. else
  12178. cat >conftest.$ac_ext <<_ACEOF
  12179. /* confdefs.h. */
  12180. _ACEOF
  12181. cat confdefs.h >>conftest.$ac_ext
  12182. cat >>conftest.$ac_ext <<_ACEOF
  12183. /* end confdefs.h. */
  12184. #include <iconv.h>
  12185. #include <string.h>
  12186. int main ()
  12187. {
  12188. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12189. returns. */
  12190. {
  12191. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12192. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12193. {
  12194. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12195. char buf[10];
  12196. const char *inptr = input;
  12197. size_t inbytesleft = strlen (input);
  12198. char *outptr = buf;
  12199. size_t outbytesleft = sizeof (buf);
  12200. size_t res = iconv (cd_utf8_to_88591,
  12201. (char **) &inptr, &inbytesleft,
  12202. &outptr, &outbytesleft);
  12203. if (res == 0)
  12204. return 1;
  12205. }
  12206. }
  12207. #if 0 /* This bug could be worked around by the caller. */
  12208. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12209. {
  12210. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12211. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12212. {
  12213. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12214. char buf[50];
  12215. const char *inptr = input;
  12216. size_t inbytesleft = strlen (input);
  12217. char *outptr = buf;
  12218. size_t outbytesleft = sizeof (buf);
  12219. size_t res = iconv (cd_88591_to_utf8,
  12220. (char **) &inptr, &inbytesleft,
  12221. &outptr, &outbytesleft);
  12222. if ((int)res > 0)
  12223. return 1;
  12224. }
  12225. }
  12226. #endif
  12227. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12228. provided. */
  12229. if (/* Try standardized names. */
  12230. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12231. /* Try IRIX, OSF/1 names. */
  12232. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12233. /* Try AIX names. */
  12234. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12235. /* Try HP-UX names. */
  12236. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12237. return 1;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. rm -f conftest$ac_exeext
  12242. if { (ac_try="$ac_link"
  12243. case "(($ac_try" in
  12244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12245. *) ac_try_echo=$ac_try;;
  12246. esac
  12247. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12248. $as_echo "$ac_try_echo") >&5
  12249. (eval "$ac_link") 2>&5
  12250. ac_status=$?
  12251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12252. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12253. { (case "(($ac_try" in
  12254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12255. *) ac_try_echo=$ac_try;;
  12256. esac
  12257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12258. $as_echo "$ac_try_echo") >&5
  12259. (eval "$ac_try") 2>&5
  12260. ac_status=$?
  12261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12262. (exit $ac_status); }; }; then
  12263. am_cv_func_iconv_works=yes
  12264. else
  12265. $as_echo "$as_me: program exited with status $ac_status" >&5
  12266. $as_echo "$as_me: failed program was:" >&5
  12267. sed 's/^/| /' conftest.$ac_ext >&5
  12268. ( exit $ac_status )
  12269. am_cv_func_iconv_works=no
  12270. fi
  12271. rm -rf conftest.dSYM
  12272. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12273. fi
  12274. LIBS="$am_save_LIBS"
  12275. fi
  12276. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12277. $as_echo "$am_cv_func_iconv_works" >&6; }
  12278. case "$am_cv_func_iconv_works" in
  12279. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12280. *) am_func_iconv=yes ;;
  12281. esac
  12282. else
  12283. am_func_iconv=no am_cv_lib_iconv=no
  12284. fi
  12285. if test "$am_func_iconv" = yes; then
  12286. cat >>confdefs.h <<\_ACEOF
  12287. #define HAVE_ICONV 1
  12288. _ACEOF
  12289. fi
  12290. if test "$am_cv_lib_iconv" = yes; then
  12291. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12292. $as_echo_n "checking how to link with libiconv... " >&6; }
  12293. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12294. $as_echo "$LIBICONV" >&6; }
  12295. else
  12296. CPPFLAGS="$am_save_CPPFLAGS"
  12297. LIBICONV=
  12298. LTLIBICONV=
  12299. fi
  12300. if test "$am_cv_func_iconv" = yes; then
  12301. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12302. $as_echo_n "checking for iconv declaration... " >&6; }
  12303. if test "${am_cv_proto_iconv+set}" = set; then
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. cat >conftest.$ac_ext <<_ACEOF
  12307. /* confdefs.h. */
  12308. _ACEOF
  12309. cat confdefs.h >>conftest.$ac_ext
  12310. cat >>conftest.$ac_ext <<_ACEOF
  12311. /* end confdefs.h. */
  12312. #include <stdlib.h>
  12313. #include <iconv.h>
  12314. extern
  12315. #ifdef __cplusplus
  12316. "C"
  12317. #endif
  12318. #if defined(__STDC__) || defined(__cplusplus)
  12319. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12320. #else
  12321. size_t iconv();
  12322. #endif
  12323. int
  12324. main ()
  12325. {
  12326. ;
  12327. return 0;
  12328. }
  12329. _ACEOF
  12330. rm -f conftest.$ac_objext
  12331. if { (ac_try="$ac_compile"
  12332. case "(($ac_try" in
  12333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12334. *) ac_try_echo=$ac_try;;
  12335. esac
  12336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12337. $as_echo "$ac_try_echo") >&5
  12338. (eval "$ac_compile") 2>conftest.er1
  12339. ac_status=$?
  12340. grep -v '^ *+' conftest.er1 >conftest.err
  12341. rm -f conftest.er1
  12342. cat conftest.err >&5
  12343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12344. (exit $ac_status); } && {
  12345. test -z "$ac_c_werror_flag" ||
  12346. test ! -s conftest.err
  12347. } && test -s conftest.$ac_objext; then
  12348. am_cv_proto_iconv_arg1=""
  12349. else
  12350. $as_echo "$as_me: failed program was:" >&5
  12351. sed 's/^/| /' conftest.$ac_ext >&5
  12352. am_cv_proto_iconv_arg1="const"
  12353. fi
  12354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12355. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  12356. fi
  12357. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12358. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  12359. }$am_cv_proto_iconv" >&5
  12360. $as_echo "${ac_t:-
  12361. }$am_cv_proto_iconv" >&6; }
  12362. cat >>confdefs.h <<_ACEOF
  12363. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12364. _ACEOF
  12365. fi
  12366. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  12367. $as_echo_n "checking whether NLS is requested... " >&6; }
  12368. # Check whether --enable-nls was given.
  12369. if test "${enable_nls+set}" = set; then
  12370. enableval=$enable_nls; USE_NLS=$enableval
  12371. else
  12372. USE_NLS=yes
  12373. fi
  12374. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  12375. $as_echo "$USE_NLS" >&6; }
  12376. GETTEXT_MACRO_VERSION=0.17
  12377. # Prepare PATH_SEPARATOR.
  12378. # The user is always right.
  12379. if test "${PATH_SEPARATOR+set}" != set; then
  12380. echo "#! /bin/sh" >conf$$.sh
  12381. echo "exit 0" >>conf$$.sh
  12382. chmod +x conf$$.sh
  12383. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12384. PATH_SEPARATOR=';'
  12385. else
  12386. PATH_SEPARATOR=:
  12387. fi
  12388. rm -f conf$$.sh
  12389. fi
  12390. # Find out how to test for executable files. Don't use a zero-byte file,
  12391. # as systems may use methods other than mode bits to determine executability.
  12392. cat >conf$$.file <<_ASEOF
  12393. #! /bin/sh
  12394. exit 0
  12395. _ASEOF
  12396. chmod +x conf$$.file
  12397. if test -x conf$$.file >/dev/null 2>&1; then
  12398. ac_executable_p="test -x"
  12399. else
  12400. ac_executable_p="test -f"
  12401. fi
  12402. rm -f conf$$.file
  12403. # Extract the first word of "msgfmt", so it can be a program name with args.
  12404. set dummy msgfmt; ac_word=$2
  12405. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12406. $as_echo_n "checking for $ac_word... " >&6; }
  12407. if test "${ac_cv_path_MSGFMT+set}" = set; then
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. case "$MSGFMT" in
  12411. [\\/]* | ?:[\\/]*)
  12412. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  12413. ;;
  12414. *)
  12415. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  12416. for ac_dir in $PATH; do
  12417. IFS="$ac_save_IFS"
  12418. test -z "$ac_dir" && ac_dir=.
  12419. for ac_exec_ext in '' $ac_executable_extensions; do
  12420. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  12421. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  12422. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  12423. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  12424. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  12425. break 2
  12426. fi
  12427. fi
  12428. done
  12429. done
  12430. IFS="$ac_save_IFS"
  12431. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  12432. ;;
  12433. esac
  12434. fi
  12435. MSGFMT="$ac_cv_path_MSGFMT"
  12436. if test "$MSGFMT" != ":"; then
  12437. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  12438. $as_echo "$MSGFMT" >&6; }
  12439. else
  12440. { $as_echo "$as_me:$LINENO: result: no" >&5
  12441. $as_echo "no" >&6; }
  12442. fi
  12443. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  12444. set dummy gmsgfmt; ac_word=$2
  12445. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12446. $as_echo_n "checking for $ac_word... " >&6; }
  12447. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  12448. $as_echo_n "(cached) " >&6
  12449. else
  12450. case $GMSGFMT in
  12451. [\\/]* | ?:[\\/]*)
  12452. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  12453. ;;
  12454. *)
  12455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12456. for as_dir in $PATH
  12457. do
  12458. IFS=$as_save_IFS
  12459. test -z "$as_dir" && as_dir=.
  12460. for ac_exec_ext in '' $ac_executable_extensions; do
  12461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12462. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  12463. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12464. break 2
  12465. fi
  12466. done
  12467. done
  12468. IFS=$as_save_IFS
  12469. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  12470. ;;
  12471. esac
  12472. fi
  12473. GMSGFMT=$ac_cv_path_GMSGFMT
  12474. if test -n "$GMSGFMT"; then
  12475. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  12476. $as_echo "$GMSGFMT" >&6; }
  12477. else
  12478. { $as_echo "$as_me:$LINENO: result: no" >&5
  12479. $as_echo "no" >&6; }
  12480. fi
  12481. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  12482. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  12483. *) MSGFMT_015=$MSGFMT ;;
  12484. esac
  12485. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  12486. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  12487. *) GMSGFMT_015=$GMSGFMT ;;
  12488. esac
  12489. # Prepare PATH_SEPARATOR.
  12490. # The user is always right.
  12491. if test "${PATH_SEPARATOR+set}" != set; then
  12492. echo "#! /bin/sh" >conf$$.sh
  12493. echo "exit 0" >>conf$$.sh
  12494. chmod +x conf$$.sh
  12495. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12496. PATH_SEPARATOR=';'
  12497. else
  12498. PATH_SEPARATOR=:
  12499. fi
  12500. rm -f conf$$.sh
  12501. fi
  12502. # Find out how to test for executable files. Don't use a zero-byte file,
  12503. # as systems may use methods other than mode bits to determine executability.
  12504. cat >conf$$.file <<_ASEOF
  12505. #! /bin/sh
  12506. exit 0
  12507. _ASEOF
  12508. chmod +x conf$$.file
  12509. if test -x conf$$.file >/dev/null 2>&1; then
  12510. ac_executable_p="test -x"
  12511. else
  12512. ac_executable_p="test -f"
  12513. fi
  12514. rm -f conf$$.file
  12515. # Extract the first word of "xgettext", so it can be a program name with args.
  12516. set dummy xgettext; ac_word=$2
  12517. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12518. $as_echo_n "checking for $ac_word... " >&6; }
  12519. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  12520. $as_echo_n "(cached) " >&6
  12521. else
  12522. case "$XGETTEXT" in
  12523. [\\/]* | ?:[\\/]*)
  12524. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  12525. ;;
  12526. *)
  12527. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  12528. for ac_dir in $PATH; do
  12529. IFS="$ac_save_IFS"
  12530. test -z "$ac_dir" && ac_dir=.
  12531. for ac_exec_ext in '' $ac_executable_extensions; do
  12532. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  12533. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  12534. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  12535. (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
  12536. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  12537. break 2
  12538. fi
  12539. fi
  12540. done
  12541. done
  12542. IFS="$ac_save_IFS"
  12543. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  12544. ;;
  12545. esac
  12546. fi
  12547. XGETTEXT="$ac_cv_path_XGETTEXT"
  12548. if test "$XGETTEXT" != ":"; then
  12549. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  12550. $as_echo "$XGETTEXT" >&6; }
  12551. else
  12552. { $as_echo "$as_me:$LINENO: result: no" >&5
  12553. $as_echo "no" >&6; }
  12554. fi
  12555. rm -f messages.po
  12556. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  12557. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  12558. *) XGETTEXT_015=$XGETTEXT ;;
  12559. esac
  12560. # Prepare PATH_SEPARATOR.
  12561. # The user is always right.
  12562. if test "${PATH_SEPARATOR+set}" != set; then
  12563. echo "#! /bin/sh" >conf$$.sh
  12564. echo "exit 0" >>conf$$.sh
  12565. chmod +x conf$$.sh
  12566. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12567. PATH_SEPARATOR=';'
  12568. else
  12569. PATH_SEPARATOR=:
  12570. fi
  12571. rm -f conf$$.sh
  12572. fi
  12573. # Find out how to test for executable files. Don't use a zero-byte file,
  12574. # as systems may use methods other than mode bits to determine executability.
  12575. cat >conf$$.file <<_ASEOF
  12576. #! /bin/sh
  12577. exit 0
  12578. _ASEOF
  12579. chmod +x conf$$.file
  12580. if test -x conf$$.file >/dev/null 2>&1; then
  12581. ac_executable_p="test -x"
  12582. else
  12583. ac_executable_p="test -f"
  12584. fi
  12585. rm -f conf$$.file
  12586. # Extract the first word of "msgmerge", so it can be a program name with args.
  12587. set dummy msgmerge; ac_word=$2
  12588. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12589. $as_echo_n "checking for $ac_word... " >&6; }
  12590. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. case "$MSGMERGE" in
  12594. [\\/]* | ?:[\\/]*)
  12595. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  12596. ;;
  12597. *)
  12598. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  12599. for ac_dir in $PATH; do
  12600. IFS="$ac_save_IFS"
  12601. test -z "$ac_dir" && ac_dir=.
  12602. for ac_exec_ext in '' $ac_executable_extensions; do
  12603. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  12604. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  12605. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  12606. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  12607. break 2
  12608. fi
  12609. fi
  12610. done
  12611. done
  12612. IFS="$ac_save_IFS"
  12613. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  12614. ;;
  12615. esac
  12616. fi
  12617. MSGMERGE="$ac_cv_path_MSGMERGE"
  12618. if test "$MSGMERGE" != ":"; then
  12619. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  12620. $as_echo "$MSGMERGE" >&6; }
  12621. else
  12622. { $as_echo "$as_me:$LINENO: result: no" >&5
  12623. $as_echo "no" >&6; }
  12624. fi
  12625. test -n "$localedir" || localedir='${datadir}/locale'
  12626. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  12627. ac_config_commands="$ac_config_commands po-directories"
  12628. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  12629. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  12630. if test "${gt_cv_func_CFPreferencesCopyAppValue+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/CFPreferences.h>
  12642. int
  12643. main ()
  12644. {
  12645. CFPreferencesCopyAppValue(NULL, NULL)
  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_CFPreferencesCopyAppValue=yes
  12672. else
  12673. $as_echo "$as_me: failed program was:" >&5
  12674. sed 's/^/| /' conftest.$ac_ext >&5
  12675. gt_cv_func_CFPreferencesCopyAppValue=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_CFPreferencesCopyAppValue" >&5
  12683. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12684. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12685. cat >>confdefs.h <<\_ACEOF
  12686. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  12687. _ACEOF
  12688. fi
  12689. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  12690. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  12691. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  12692. $as_echo_n "(cached) " >&6
  12693. else
  12694. gt_save_LIBS="$LIBS"
  12695. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12696. cat >conftest.$ac_ext <<_ACEOF
  12697. /* confdefs.h. */
  12698. _ACEOF
  12699. cat confdefs.h >>conftest.$ac_ext
  12700. cat >>conftest.$ac_ext <<_ACEOF
  12701. /* end confdefs.h. */
  12702. #include <CoreFoundation/CFLocale.h>
  12703. int
  12704. main ()
  12705. {
  12706. CFLocaleCopyCurrent();
  12707. ;
  12708. return 0;
  12709. }
  12710. _ACEOF
  12711. rm -f conftest.$ac_objext conftest$ac_exeext
  12712. if { (ac_try="$ac_link"
  12713. case "(($ac_try" in
  12714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12715. *) ac_try_echo=$ac_try;;
  12716. esac
  12717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12718. $as_echo "$ac_try_echo") >&5
  12719. (eval "$ac_link") 2>conftest.er1
  12720. ac_status=$?
  12721. grep -v '^ *+' conftest.er1 >conftest.err
  12722. rm -f conftest.er1
  12723. cat conftest.err >&5
  12724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12725. (exit $ac_status); } && {
  12726. test -z "$ac_c_werror_flag" ||
  12727. test ! -s conftest.err
  12728. } && test -s conftest$ac_exeext && {
  12729. test "$cross_compiling" = yes ||
  12730. $as_test_x conftest$ac_exeext
  12731. }; then
  12732. gt_cv_func_CFLocaleCopyCurrent=yes
  12733. else
  12734. $as_echo "$as_me: failed program was:" >&5
  12735. sed 's/^/| /' conftest.$ac_ext >&5
  12736. gt_cv_func_CFLocaleCopyCurrent=no
  12737. fi
  12738. rm -rf conftest.dSYM
  12739. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12740. conftest$ac_exeext conftest.$ac_ext
  12741. LIBS="$gt_save_LIBS"
  12742. fi
  12743. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12744. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12745. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12746. cat >>confdefs.h <<\_ACEOF
  12747. #define HAVE_CFLOCALECOPYCURRENT 1
  12748. _ACEOF
  12749. fi
  12750. INTL_MACOSX_LIBS=
  12751. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12752. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12753. fi
  12754. LIBINTL=
  12755. LTLIBINTL=
  12756. POSUB=
  12757. case " $gt_needs " in
  12758. *" need-formatstring-macros "*) gt_api_version=3 ;;
  12759. *" need-ngettext "*) gt_api_version=2 ;;
  12760. *) gt_api_version=1 ;;
  12761. esac
  12762. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  12763. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  12764. if test "$USE_NLS" = "yes"; then
  12765. gt_use_preinstalled_gnugettext=no
  12766. if test $gt_api_version -ge 3; then
  12767. gt_revision_test_code='
  12768. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  12769. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  12770. #endif
  12771. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  12772. '
  12773. else
  12774. gt_revision_test_code=
  12775. fi
  12776. if test $gt_api_version -ge 2; then
  12777. gt_expression_test_code=' + * ngettext ("", "", 0)'
  12778. else
  12779. gt_expression_test_code=
  12780. fi
  12781. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  12782. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  12783. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  12784. $as_echo_n "(cached) " >&6
  12785. else
  12786. cat >conftest.$ac_ext <<_ACEOF
  12787. /* confdefs.h. */
  12788. _ACEOF
  12789. cat confdefs.h >>conftest.$ac_ext
  12790. cat >>conftest.$ac_ext <<_ACEOF
  12791. /* end confdefs.h. */
  12792. #include <libintl.h>
  12793. $gt_revision_test_code
  12794. extern int _nl_msg_cat_cntr;
  12795. extern int *_nl_domain_bindings;
  12796. int
  12797. main ()
  12798. {
  12799. bindtextdomain ("", "");
  12800. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  12801. ;
  12802. return 0;
  12803. }
  12804. _ACEOF
  12805. rm -f conftest.$ac_objext conftest$ac_exeext
  12806. if { (ac_try="$ac_link"
  12807. case "(($ac_try" in
  12808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12809. *) ac_try_echo=$ac_try;;
  12810. esac
  12811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12812. $as_echo "$ac_try_echo") >&5
  12813. (eval "$ac_link") 2>conftest.er1
  12814. ac_status=$?
  12815. grep -v '^ *+' conftest.er1 >conftest.err
  12816. rm -f conftest.er1
  12817. cat conftest.err >&5
  12818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12819. (exit $ac_status); } && {
  12820. test -z "$ac_c_werror_flag" ||
  12821. test ! -s conftest.err
  12822. } && test -s conftest$ac_exeext && {
  12823. test "$cross_compiling" = yes ||
  12824. $as_test_x conftest$ac_exeext
  12825. }; then
  12826. eval "$gt_func_gnugettext_libc=yes"
  12827. else
  12828. $as_echo "$as_me: failed program was:" >&5
  12829. sed 's/^/| /' conftest.$ac_ext >&5
  12830. eval "$gt_func_gnugettext_libc=no"
  12831. fi
  12832. rm -rf conftest.dSYM
  12833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12834. conftest$ac_exeext conftest.$ac_ext
  12835. fi
  12836. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  12837. $as_echo "$as_val"'`
  12838. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12839. $as_echo "$ac_res" >&6; }
  12840. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  12841. am_save_CPPFLAGS="$CPPFLAGS"
  12842. for element in $INCICONV; do
  12843. haveit=
  12844. for x in $CPPFLAGS; do
  12845. acl_save_prefix="$prefix"
  12846. prefix="$acl_final_prefix"
  12847. acl_save_exec_prefix="$exec_prefix"
  12848. exec_prefix="$acl_final_exec_prefix"
  12849. eval x=\"$x\"
  12850. exec_prefix="$acl_save_exec_prefix"
  12851. prefix="$acl_save_prefix"
  12852. if test "X$x" = "X$element"; then
  12853. haveit=yes
  12854. break
  12855. fi
  12856. done
  12857. if test -z "$haveit"; then
  12858. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12859. fi
  12860. done
  12861. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  12862. $as_echo_n "checking for iconv... " >&6; }
  12863. if test "${am_cv_func_iconv+set}" = set; then
  12864. $as_echo_n "(cached) " >&6
  12865. else
  12866. am_cv_func_iconv="no, consider installing GNU libiconv"
  12867. am_cv_lib_iconv=no
  12868. cat >conftest.$ac_ext <<_ACEOF
  12869. /* confdefs.h. */
  12870. _ACEOF
  12871. cat confdefs.h >>conftest.$ac_ext
  12872. cat >>conftest.$ac_ext <<_ACEOF
  12873. /* end confdefs.h. */
  12874. #include <stdlib.h>
  12875. #include <iconv.h>
  12876. int
  12877. main ()
  12878. {
  12879. iconv_t cd = iconv_open("","");
  12880. iconv(cd,NULL,NULL,NULL,NULL);
  12881. iconv_close(cd);
  12882. ;
  12883. return 0;
  12884. }
  12885. _ACEOF
  12886. rm -f conftest.$ac_objext conftest$ac_exeext
  12887. if { (ac_try="$ac_link"
  12888. case "(($ac_try" in
  12889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12890. *) ac_try_echo=$ac_try;;
  12891. esac
  12892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12893. $as_echo "$ac_try_echo") >&5
  12894. (eval "$ac_link") 2>conftest.er1
  12895. ac_status=$?
  12896. grep -v '^ *+' conftest.er1 >conftest.err
  12897. rm -f conftest.er1
  12898. cat conftest.err >&5
  12899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12900. (exit $ac_status); } && {
  12901. test -z "$ac_c_werror_flag" ||
  12902. test ! -s conftest.err
  12903. } && test -s conftest$ac_exeext && {
  12904. test "$cross_compiling" = yes ||
  12905. $as_test_x conftest$ac_exeext
  12906. }; then
  12907. am_cv_func_iconv=yes
  12908. else
  12909. $as_echo "$as_me: failed program was:" >&5
  12910. sed 's/^/| /' conftest.$ac_ext >&5
  12911. fi
  12912. rm -rf conftest.dSYM
  12913. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12914. conftest$ac_exeext conftest.$ac_ext
  12915. if test "$am_cv_func_iconv" != yes; then
  12916. am_save_LIBS="$LIBS"
  12917. LIBS="$LIBS $LIBICONV"
  12918. cat >conftest.$ac_ext <<_ACEOF
  12919. /* confdefs.h. */
  12920. _ACEOF
  12921. cat confdefs.h >>conftest.$ac_ext
  12922. cat >>conftest.$ac_ext <<_ACEOF
  12923. /* end confdefs.h. */
  12924. #include <stdlib.h>
  12925. #include <iconv.h>
  12926. int
  12927. main ()
  12928. {
  12929. iconv_t cd = iconv_open("","");
  12930. iconv(cd,NULL,NULL,NULL,NULL);
  12931. iconv_close(cd);
  12932. ;
  12933. return 0;
  12934. }
  12935. _ACEOF
  12936. rm -f conftest.$ac_objext conftest$ac_exeext
  12937. if { (ac_try="$ac_link"
  12938. case "(($ac_try" in
  12939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12940. *) ac_try_echo=$ac_try;;
  12941. esac
  12942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12943. $as_echo "$ac_try_echo") >&5
  12944. (eval "$ac_link") 2>conftest.er1
  12945. ac_status=$?
  12946. grep -v '^ *+' conftest.er1 >conftest.err
  12947. rm -f conftest.er1
  12948. cat conftest.err >&5
  12949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12950. (exit $ac_status); } && {
  12951. test -z "$ac_c_werror_flag" ||
  12952. test ! -s conftest.err
  12953. } && test -s conftest$ac_exeext && {
  12954. test "$cross_compiling" = yes ||
  12955. $as_test_x conftest$ac_exeext
  12956. }; then
  12957. am_cv_lib_iconv=yes
  12958. am_cv_func_iconv=yes
  12959. else
  12960. $as_echo "$as_me: failed program was:" >&5
  12961. sed 's/^/| /' conftest.$ac_ext >&5
  12962. fi
  12963. rm -rf conftest.dSYM
  12964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12965. conftest$ac_exeext conftest.$ac_ext
  12966. LIBS="$am_save_LIBS"
  12967. fi
  12968. fi
  12969. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12970. $as_echo "$am_cv_func_iconv" >&6; }
  12971. if test "$am_cv_func_iconv" = yes; then
  12972. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  12973. $as_echo_n "checking for working iconv... " >&6; }
  12974. if test "${am_cv_func_iconv_works+set}" = set; then
  12975. $as_echo_n "(cached) " >&6
  12976. else
  12977. am_save_LIBS="$LIBS"
  12978. if test $am_cv_lib_iconv = yes; then
  12979. LIBS="$LIBS $LIBICONV"
  12980. fi
  12981. if test "$cross_compiling" = yes; then
  12982. case "$host_os" in
  12983. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12984. *) am_cv_func_iconv_works="guessing yes" ;;
  12985. esac
  12986. else
  12987. cat >conftest.$ac_ext <<_ACEOF
  12988. /* confdefs.h. */
  12989. _ACEOF
  12990. cat confdefs.h >>conftest.$ac_ext
  12991. cat >>conftest.$ac_ext <<_ACEOF
  12992. /* end confdefs.h. */
  12993. #include <iconv.h>
  12994. #include <string.h>
  12995. int main ()
  12996. {
  12997. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12998. returns. */
  12999. {
  13000. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13001. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13002. {
  13003. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13004. char buf[10];
  13005. const char *inptr = input;
  13006. size_t inbytesleft = strlen (input);
  13007. char *outptr = buf;
  13008. size_t outbytesleft = sizeof (buf);
  13009. size_t res = iconv (cd_utf8_to_88591,
  13010. (char **) &inptr, &inbytesleft,
  13011. &outptr, &outbytesleft);
  13012. if (res == 0)
  13013. return 1;
  13014. }
  13015. }
  13016. #if 0 /* This bug could be worked around by the caller. */
  13017. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13018. {
  13019. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13020. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13021. {
  13022. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13023. char buf[50];
  13024. const char *inptr = input;
  13025. size_t inbytesleft = strlen (input);
  13026. char *outptr = buf;
  13027. size_t outbytesleft = sizeof (buf);
  13028. size_t res = iconv (cd_88591_to_utf8,
  13029. (char **) &inptr, &inbytesleft,
  13030. &outptr, &outbytesleft);
  13031. if ((int)res > 0)
  13032. return 1;
  13033. }
  13034. }
  13035. #endif
  13036. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13037. provided. */
  13038. if (/* Try standardized names. */
  13039. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13040. /* Try IRIX, OSF/1 names. */
  13041. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13042. /* Try AIX names. */
  13043. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13044. /* Try HP-UX names. */
  13045. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13046. return 1;
  13047. return 0;
  13048. }
  13049. _ACEOF
  13050. rm -f conftest$ac_exeext
  13051. if { (ac_try="$ac_link"
  13052. case "(($ac_try" in
  13053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13054. *) ac_try_echo=$ac_try;;
  13055. esac
  13056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13057. $as_echo "$ac_try_echo") >&5
  13058. (eval "$ac_link") 2>&5
  13059. ac_status=$?
  13060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13062. { (case "(($ac_try" in
  13063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13064. *) ac_try_echo=$ac_try;;
  13065. esac
  13066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13067. $as_echo "$ac_try_echo") >&5
  13068. (eval "$ac_try") 2>&5
  13069. ac_status=$?
  13070. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13071. (exit $ac_status); }; }; then
  13072. am_cv_func_iconv_works=yes
  13073. else
  13074. $as_echo "$as_me: program exited with status $ac_status" >&5
  13075. $as_echo "$as_me: failed program was:" >&5
  13076. sed 's/^/| /' conftest.$ac_ext >&5
  13077. ( exit $ac_status )
  13078. am_cv_func_iconv_works=no
  13079. fi
  13080. rm -rf conftest.dSYM
  13081. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13082. fi
  13083. LIBS="$am_save_LIBS"
  13084. fi
  13085. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13086. $as_echo "$am_cv_func_iconv_works" >&6; }
  13087. case "$am_cv_func_iconv_works" in
  13088. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13089. *) am_func_iconv=yes ;;
  13090. esac
  13091. else
  13092. am_func_iconv=no am_cv_lib_iconv=no
  13093. fi
  13094. if test "$am_func_iconv" = yes; then
  13095. cat >>confdefs.h <<\_ACEOF
  13096. #define HAVE_ICONV 1
  13097. _ACEOF
  13098. fi
  13099. if test "$am_cv_lib_iconv" = yes; then
  13100. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13101. $as_echo_n "checking how to link with libiconv... " >&6; }
  13102. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13103. $as_echo "$LIBICONV" >&6; }
  13104. else
  13105. CPPFLAGS="$am_save_CPPFLAGS"
  13106. LIBICONV=
  13107. LTLIBICONV=
  13108. fi
  13109. use_additional=yes
  13110. acl_save_prefix="$prefix"
  13111. prefix="$acl_final_prefix"
  13112. acl_save_exec_prefix="$exec_prefix"
  13113. exec_prefix="$acl_final_exec_prefix"
  13114. eval additional_includedir=\"$includedir\"
  13115. eval additional_libdir=\"$libdir\"
  13116. exec_prefix="$acl_save_exec_prefix"
  13117. prefix="$acl_save_prefix"
  13118. # Check whether --with-libintl-prefix was given.
  13119. if test "${with_libintl_prefix+set}" = set; then
  13120. withval=$with_libintl_prefix;
  13121. if test "X$withval" = "Xno"; then
  13122. use_additional=no
  13123. else
  13124. if test "X$withval" = "X"; then
  13125. acl_save_prefix="$prefix"
  13126. prefix="$acl_final_prefix"
  13127. acl_save_exec_prefix="$exec_prefix"
  13128. exec_prefix="$acl_final_exec_prefix"
  13129. eval additional_includedir=\"$includedir\"
  13130. eval additional_libdir=\"$libdir\"
  13131. exec_prefix="$acl_save_exec_prefix"
  13132. prefix="$acl_save_prefix"
  13133. else
  13134. additional_includedir="$withval/include"
  13135. additional_libdir="$withval/$acl_libdirstem"
  13136. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  13137. && ! test -d "$withval/$acl_libdirstem"; then
  13138. additional_libdir="$withval/$acl_libdirstem2"
  13139. fi
  13140. fi
  13141. fi
  13142. fi
  13143. LIBINTL=
  13144. LTLIBINTL=
  13145. INCINTL=
  13146. LIBINTL_PREFIX=
  13147. HAVE_LIBINTL=
  13148. rpathdirs=
  13149. ltrpathdirs=
  13150. names_already_handled=
  13151. names_next_round='intl '
  13152. while test -n "$names_next_round"; do
  13153. names_this_round="$names_next_round"
  13154. names_next_round=
  13155. for name in $names_this_round; do
  13156. already_handled=
  13157. for n in $names_already_handled; do
  13158. if test "$n" = "$name"; then
  13159. already_handled=yes
  13160. break
  13161. fi
  13162. done
  13163. if test -z "$already_handled"; then
  13164. names_already_handled="$names_already_handled $name"
  13165. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13166. eval value=\"\$HAVE_LIB$uppername\"
  13167. if test -n "$value"; then
  13168. if test "$value" = yes; then
  13169. eval value=\"\$LIB$uppername\"
  13170. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  13171. eval value=\"\$LTLIB$uppername\"
  13172. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  13173. else
  13174. :
  13175. fi
  13176. else
  13177. found_dir=
  13178. found_la=
  13179. found_so=
  13180. found_a=
  13181. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13182. if test -n "$acl_shlibext"; then
  13183. shrext=".$acl_shlibext" # typically: shrext=.so
  13184. else
  13185. shrext=
  13186. fi
  13187. if test $use_additional = yes; then
  13188. dir="$additional_libdir"
  13189. if test -n "$acl_shlibext"; then
  13190. if test -f "$dir/$libname$shrext"; then
  13191. found_dir="$dir"
  13192. found_so="$dir/$libname$shrext"
  13193. else
  13194. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13195. ver=`(cd "$dir" && \
  13196. for f in "$libname$shrext".*; do echo "$f"; done \
  13197. | sed -e "s,^$libname$shrext\\\\.,," \
  13198. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13199. | sed 1q ) 2>/dev/null`
  13200. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13201. found_dir="$dir"
  13202. found_so="$dir/$libname$shrext.$ver"
  13203. fi
  13204. else
  13205. eval library_names=\"$acl_library_names_spec\"
  13206. for f in $library_names; do
  13207. if test -f "$dir/$f"; then
  13208. found_dir="$dir"
  13209. found_so="$dir/$f"
  13210. break
  13211. fi
  13212. done
  13213. fi
  13214. fi
  13215. fi
  13216. if test "X$found_dir" = "X"; then
  13217. if test -f "$dir/$libname.$acl_libext"; then
  13218. found_dir="$dir"
  13219. found_a="$dir/$libname.$acl_libext"
  13220. fi
  13221. fi
  13222. if test "X$found_dir" != "X"; then
  13223. if test -f "$dir/$libname.la"; then
  13224. found_la="$dir/$libname.la"
  13225. fi
  13226. fi
  13227. fi
  13228. if test "X$found_dir" = "X"; then
  13229. for x in $LDFLAGS $LTLIBINTL; do
  13230. acl_save_prefix="$prefix"
  13231. prefix="$acl_final_prefix"
  13232. acl_save_exec_prefix="$exec_prefix"
  13233. exec_prefix="$acl_final_exec_prefix"
  13234. eval x=\"$x\"
  13235. exec_prefix="$acl_save_exec_prefix"
  13236. prefix="$acl_save_prefix"
  13237. case "$x" in
  13238. -L*)
  13239. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13240. if test -n "$acl_shlibext"; then
  13241. if test -f "$dir/$libname$shrext"; then
  13242. found_dir="$dir"
  13243. found_so="$dir/$libname$shrext"
  13244. else
  13245. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13246. ver=`(cd "$dir" && \
  13247. for f in "$libname$shrext".*; do echo "$f"; done \
  13248. | sed -e "s,^$libname$shrext\\\\.,," \
  13249. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13250. | sed 1q ) 2>/dev/null`
  13251. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13252. found_dir="$dir"
  13253. found_so="$dir/$libname$shrext.$ver"
  13254. fi
  13255. else
  13256. eval library_names=\"$acl_library_names_spec\"
  13257. for f in $library_names; do
  13258. if test -f "$dir/$f"; then
  13259. found_dir="$dir"
  13260. found_so="$dir/$f"
  13261. break
  13262. fi
  13263. done
  13264. fi
  13265. fi
  13266. fi
  13267. if test "X$found_dir" = "X"; then
  13268. if test -f "$dir/$libname.$acl_libext"; then
  13269. found_dir="$dir"
  13270. found_a="$dir/$libname.$acl_libext"
  13271. fi
  13272. fi
  13273. if test "X$found_dir" != "X"; then
  13274. if test -f "$dir/$libname.la"; then
  13275. found_la="$dir/$libname.la"
  13276. fi
  13277. fi
  13278. ;;
  13279. esac
  13280. if test "X$found_dir" != "X"; then
  13281. break
  13282. fi
  13283. done
  13284. fi
  13285. if test "X$found_dir" != "X"; then
  13286. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13287. if test "X$found_so" != "X"; then
  13288. if test "$enable_rpath" = no \
  13289. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  13290. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  13291. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13292. else
  13293. haveit=
  13294. for x in $ltrpathdirs; do
  13295. if test "X$x" = "X$found_dir"; then
  13296. haveit=yes
  13297. break
  13298. fi
  13299. done
  13300. if test -z "$haveit"; then
  13301. ltrpathdirs="$ltrpathdirs $found_dir"
  13302. fi
  13303. if test "$acl_hardcode_direct" = yes; then
  13304. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13305. else
  13306. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13307. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13308. haveit=
  13309. for x in $rpathdirs; do
  13310. if test "X$x" = "X$found_dir"; then
  13311. haveit=yes
  13312. break
  13313. fi
  13314. done
  13315. if test -z "$haveit"; then
  13316. rpathdirs="$rpathdirs $found_dir"
  13317. fi
  13318. else
  13319. haveit=
  13320. for x in $LDFLAGS $LIBINTL; do
  13321. acl_save_prefix="$prefix"
  13322. prefix="$acl_final_prefix"
  13323. acl_save_exec_prefix="$exec_prefix"
  13324. exec_prefix="$acl_final_exec_prefix"
  13325. eval x=\"$x\"
  13326. exec_prefix="$acl_save_exec_prefix"
  13327. prefix="$acl_save_prefix"
  13328. if test "X$x" = "X-L$found_dir"; then
  13329. haveit=yes
  13330. break
  13331. fi
  13332. done
  13333. if test -z "$haveit"; then
  13334. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13335. fi
  13336. if test "$acl_hardcode_minus_L" != no; then
  13337. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13338. else
  13339. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13340. fi
  13341. fi
  13342. fi
  13343. fi
  13344. else
  13345. if test "X$found_a" != "X"; then
  13346. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13347. else
  13348. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13349. fi
  13350. fi
  13351. additional_includedir=
  13352. case "$found_dir" in
  13353. */$acl_libdirstem | */$acl_libdirstem/)
  13354. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13355. if test "$name" = 'intl'; then
  13356. LIBINTL_PREFIX="$basedir"
  13357. fi
  13358. additional_includedir="$basedir/include"
  13359. ;;
  13360. */$acl_libdirstem2 | */$acl_libdirstem2/)
  13361. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  13362. if test "$name" = 'intl'; then
  13363. LIBINTL_PREFIX="$basedir"
  13364. fi
  13365. additional_includedir="$basedir/include"
  13366. ;;
  13367. esac
  13368. if test "X$additional_includedir" != "X"; then
  13369. if test "X$additional_includedir" != "X/usr/include"; then
  13370. haveit=
  13371. if test "X$additional_includedir" = "X/usr/local/include"; then
  13372. if test -n "$GCC"; then
  13373. case $host_os in
  13374. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13375. esac
  13376. fi
  13377. fi
  13378. if test -z "$haveit"; then
  13379. for x in $CPPFLAGS $INCINTL; do
  13380. acl_save_prefix="$prefix"
  13381. prefix="$acl_final_prefix"
  13382. acl_save_exec_prefix="$exec_prefix"
  13383. exec_prefix="$acl_final_exec_prefix"
  13384. eval x=\"$x\"
  13385. exec_prefix="$acl_save_exec_prefix"
  13386. prefix="$acl_save_prefix"
  13387. if test "X$x" = "X-I$additional_includedir"; then
  13388. haveit=yes
  13389. break
  13390. fi
  13391. done
  13392. if test -z "$haveit"; then
  13393. if test -d "$additional_includedir"; then
  13394. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13395. fi
  13396. fi
  13397. fi
  13398. fi
  13399. fi
  13400. if test -n "$found_la"; then
  13401. save_libdir="$libdir"
  13402. case "$found_la" in
  13403. */* | *\\*) . "$found_la" ;;
  13404. *) . "./$found_la" ;;
  13405. esac
  13406. libdir="$save_libdir"
  13407. for dep in $dependency_libs; do
  13408. case "$dep" in
  13409. -L*)
  13410. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13411. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  13412. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  13413. haveit=
  13414. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  13415. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  13416. if test -n "$GCC"; then
  13417. case $host_os in
  13418. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13419. esac
  13420. fi
  13421. fi
  13422. if test -z "$haveit"; then
  13423. haveit=
  13424. for x in $LDFLAGS $LIBINTL; do
  13425. acl_save_prefix="$prefix"
  13426. prefix="$acl_final_prefix"
  13427. acl_save_exec_prefix="$exec_prefix"
  13428. exec_prefix="$acl_final_exec_prefix"
  13429. eval x=\"$x\"
  13430. exec_prefix="$acl_save_exec_prefix"
  13431. prefix="$acl_save_prefix"
  13432. if test "X$x" = "X-L$additional_libdir"; then
  13433. haveit=yes
  13434. break
  13435. fi
  13436. done
  13437. if test -z "$haveit"; then
  13438. if test -d "$additional_libdir"; then
  13439. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  13440. fi
  13441. fi
  13442. haveit=
  13443. for x in $LDFLAGS $LTLIBINTL; do
  13444. acl_save_prefix="$prefix"
  13445. prefix="$acl_final_prefix"
  13446. acl_save_exec_prefix="$exec_prefix"
  13447. exec_prefix="$acl_final_exec_prefix"
  13448. eval x=\"$x\"
  13449. exec_prefix="$acl_save_exec_prefix"
  13450. prefix="$acl_save_prefix"
  13451. if test "X$x" = "X-L$additional_libdir"; then
  13452. haveit=yes
  13453. break
  13454. fi
  13455. done
  13456. if test -z "$haveit"; then
  13457. if test -d "$additional_libdir"; then
  13458. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  13459. fi
  13460. fi
  13461. fi
  13462. fi
  13463. ;;
  13464. -R*)
  13465. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13466. if test "$enable_rpath" != no; then
  13467. haveit=
  13468. for x in $rpathdirs; do
  13469. if test "X$x" = "X$dir"; then
  13470. haveit=yes
  13471. break
  13472. fi
  13473. done
  13474. if test -z "$haveit"; then
  13475. rpathdirs="$rpathdirs $dir"
  13476. fi
  13477. haveit=
  13478. for x in $ltrpathdirs; do
  13479. if test "X$x" = "X$dir"; then
  13480. haveit=yes
  13481. break
  13482. fi
  13483. done
  13484. if test -z "$haveit"; then
  13485. ltrpathdirs="$ltrpathdirs $dir"
  13486. fi
  13487. fi
  13488. ;;
  13489. -l*)
  13490. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13491. ;;
  13492. *.la)
  13493. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13494. ;;
  13495. *)
  13496. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  13497. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  13498. ;;
  13499. esac
  13500. done
  13501. fi
  13502. else
  13503. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13504. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  13505. fi
  13506. fi
  13507. fi
  13508. done
  13509. done
  13510. if test "X$rpathdirs" != "X"; then
  13511. if test -n "$acl_hardcode_libdir_separator"; then
  13512. alldirs=
  13513. for found_dir in $rpathdirs; do
  13514. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13515. done
  13516. acl_save_libdir="$libdir"
  13517. libdir="$alldirs"
  13518. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13519. libdir="$acl_save_libdir"
  13520. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13521. else
  13522. for found_dir in $rpathdirs; do
  13523. acl_save_libdir="$libdir"
  13524. libdir="$found_dir"
  13525. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13526. libdir="$acl_save_libdir"
  13527. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13528. done
  13529. fi
  13530. fi
  13531. if test "X$ltrpathdirs" != "X"; then
  13532. for found_dir in $ltrpathdirs; do
  13533. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  13534. done
  13535. fi
  13536. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  13537. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  13538. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  13539. $as_echo_n "(cached) " >&6
  13540. else
  13541. gt_save_CPPFLAGS="$CPPFLAGS"
  13542. CPPFLAGS="$CPPFLAGS $INCINTL"
  13543. gt_save_LIBS="$LIBS"
  13544. LIBS="$LIBS $LIBINTL"
  13545. cat >conftest.$ac_ext <<_ACEOF
  13546. /* confdefs.h. */
  13547. _ACEOF
  13548. cat confdefs.h >>conftest.$ac_ext
  13549. cat >>conftest.$ac_ext <<_ACEOF
  13550. /* end confdefs.h. */
  13551. #include <libintl.h>
  13552. $gt_revision_test_code
  13553. extern int _nl_msg_cat_cntr;
  13554. extern
  13555. #ifdef __cplusplus
  13556. "C"
  13557. #endif
  13558. const char *_nl_expand_alias (const char *);
  13559. int
  13560. main ()
  13561. {
  13562. bindtextdomain ("", "");
  13563. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13564. ;
  13565. return 0;
  13566. }
  13567. _ACEOF
  13568. rm -f conftest.$ac_objext conftest$ac_exeext
  13569. if { (ac_try="$ac_link"
  13570. case "(($ac_try" in
  13571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13572. *) ac_try_echo=$ac_try;;
  13573. esac
  13574. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13575. $as_echo "$ac_try_echo") >&5
  13576. (eval "$ac_link") 2>conftest.er1
  13577. ac_status=$?
  13578. grep -v '^ *+' conftest.er1 >conftest.err
  13579. rm -f conftest.er1
  13580. cat conftest.err >&5
  13581. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13582. (exit $ac_status); } && {
  13583. test -z "$ac_c_werror_flag" ||
  13584. test ! -s conftest.err
  13585. } && test -s conftest$ac_exeext && {
  13586. test "$cross_compiling" = yes ||
  13587. $as_test_x conftest$ac_exeext
  13588. }; then
  13589. eval "$gt_func_gnugettext_libintl=yes"
  13590. else
  13591. $as_echo "$as_me: failed program was:" >&5
  13592. sed 's/^/| /' conftest.$ac_ext >&5
  13593. eval "$gt_func_gnugettext_libintl=no"
  13594. fi
  13595. rm -rf conftest.dSYM
  13596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13597. conftest$ac_exeext conftest.$ac_ext
  13598. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  13599. LIBS="$LIBS $LIBICONV"
  13600. cat >conftest.$ac_ext <<_ACEOF
  13601. /* confdefs.h. */
  13602. _ACEOF
  13603. cat confdefs.h >>conftest.$ac_ext
  13604. cat >>conftest.$ac_ext <<_ACEOF
  13605. /* end confdefs.h. */
  13606. #include <libintl.h>
  13607. $gt_revision_test_code
  13608. extern int _nl_msg_cat_cntr;
  13609. extern
  13610. #ifdef __cplusplus
  13611. "C"
  13612. #endif
  13613. const char *_nl_expand_alias (const char *);
  13614. int
  13615. main ()
  13616. {
  13617. bindtextdomain ("", "");
  13618. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13619. ;
  13620. return 0;
  13621. }
  13622. _ACEOF
  13623. rm -f conftest.$ac_objext conftest$ac_exeext
  13624. if { (ac_try="$ac_link"
  13625. case "(($ac_try" in
  13626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13627. *) ac_try_echo=$ac_try;;
  13628. esac
  13629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13630. $as_echo "$ac_try_echo") >&5
  13631. (eval "$ac_link") 2>conftest.er1
  13632. ac_status=$?
  13633. grep -v '^ *+' conftest.er1 >conftest.err
  13634. rm -f conftest.er1
  13635. cat conftest.err >&5
  13636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13637. (exit $ac_status); } && {
  13638. test -z "$ac_c_werror_flag" ||
  13639. test ! -s conftest.err
  13640. } && test -s conftest$ac_exeext && {
  13641. test "$cross_compiling" = yes ||
  13642. $as_test_x conftest$ac_exeext
  13643. }; then
  13644. LIBINTL="$LIBINTL $LIBICONV"
  13645. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  13646. eval "$gt_func_gnugettext_libintl=yes"
  13647. else
  13648. $as_echo "$as_me: failed program was:" >&5
  13649. sed 's/^/| /' conftest.$ac_ext >&5
  13650. fi
  13651. rm -rf conftest.dSYM
  13652. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13653. conftest$ac_exeext conftest.$ac_ext
  13654. fi
  13655. CPPFLAGS="$gt_save_CPPFLAGS"
  13656. LIBS="$gt_save_LIBS"
  13657. fi
  13658. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  13659. $as_echo "$as_val"'`
  13660. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13661. $as_echo "$ac_res" >&6; }
  13662. fi
  13663. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  13664. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  13665. && test "$PACKAGE" != gettext-runtime \
  13666. && test "$PACKAGE" != gettext-tools; }; then
  13667. gt_use_preinstalled_gnugettext=yes
  13668. else
  13669. LIBINTL=
  13670. LTLIBINTL=
  13671. INCINTL=
  13672. fi
  13673. if test -n "$INTL_MACOSX_LIBS"; then
  13674. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13675. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13676. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  13677. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  13678. fi
  13679. fi
  13680. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13681. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13682. cat >>confdefs.h <<\_ACEOF
  13683. #define ENABLE_NLS 1
  13684. _ACEOF
  13685. else
  13686. USE_NLS=no
  13687. fi
  13688. fi
  13689. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  13690. $as_echo_n "checking whether to use NLS... " >&6; }
  13691. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  13692. $as_echo "$USE_NLS" >&6; }
  13693. if test "$USE_NLS" = "yes"; then
  13694. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  13695. $as_echo_n "checking where the gettext function comes from... " >&6; }
  13696. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13697. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13698. gt_source="external libintl"
  13699. else
  13700. gt_source="libc"
  13701. fi
  13702. else
  13703. gt_source="included intl directory"
  13704. fi
  13705. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  13706. $as_echo "$gt_source" >&6; }
  13707. fi
  13708. if test "$USE_NLS" = "yes"; then
  13709. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13710. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13711. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  13712. $as_echo_n "checking how to link with libintl... " >&6; }
  13713. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  13714. $as_echo "$LIBINTL" >&6; }
  13715. for element in $INCINTL; do
  13716. haveit=
  13717. for x in $CPPFLAGS; do
  13718. acl_save_prefix="$prefix"
  13719. prefix="$acl_final_prefix"
  13720. acl_save_exec_prefix="$exec_prefix"
  13721. exec_prefix="$acl_final_exec_prefix"
  13722. eval x=\"$x\"
  13723. exec_prefix="$acl_save_exec_prefix"
  13724. prefix="$acl_save_prefix"
  13725. if test "X$x" = "X$element"; then
  13726. haveit=yes
  13727. break
  13728. fi
  13729. done
  13730. if test -z "$haveit"; then
  13731. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13732. fi
  13733. done
  13734. fi
  13735. cat >>confdefs.h <<\_ACEOF
  13736. #define HAVE_GETTEXT 1
  13737. _ACEOF
  13738. cat >>confdefs.h <<\_ACEOF
  13739. #define HAVE_DCGETTEXT 1
  13740. _ACEOF
  13741. fi
  13742. POSUB=po
  13743. fi
  13744. INTLLIBS="$LIBINTL"
  13745. { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
  13746. $as_echo_n "checking for mbstate_t... " >&6; }
  13747. if test "${ac_cv_type_mbstate_t+set}" = set; then
  13748. $as_echo_n "(cached) " >&6
  13749. else
  13750. cat >conftest.$ac_ext <<_ACEOF
  13751. /* confdefs.h. */
  13752. _ACEOF
  13753. cat confdefs.h >>conftest.$ac_ext
  13754. cat >>conftest.$ac_ext <<_ACEOF
  13755. /* end confdefs.h. */
  13756. $ac_includes_default
  13757. # include <wchar.h>
  13758. int
  13759. main ()
  13760. {
  13761. mbstate_t x; return sizeof x;
  13762. ;
  13763. return 0;
  13764. }
  13765. _ACEOF
  13766. rm -f conftest.$ac_objext
  13767. if { (ac_try="$ac_compile"
  13768. case "(($ac_try" in
  13769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13770. *) ac_try_echo=$ac_try;;
  13771. esac
  13772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13773. $as_echo "$ac_try_echo") >&5
  13774. (eval "$ac_compile") 2>conftest.er1
  13775. ac_status=$?
  13776. grep -v '^ *+' conftest.er1 >conftest.err
  13777. rm -f conftest.er1
  13778. cat conftest.err >&5
  13779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13780. (exit $ac_status); } && {
  13781. test -z "$ac_c_werror_flag" ||
  13782. test ! -s conftest.err
  13783. } && test -s conftest.$ac_objext; then
  13784. ac_cv_type_mbstate_t=yes
  13785. else
  13786. $as_echo "$as_me: failed program was:" >&5
  13787. sed 's/^/| /' conftest.$ac_ext >&5
  13788. ac_cv_type_mbstate_t=no
  13789. fi
  13790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13791. fi
  13792. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  13793. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  13794. if test $ac_cv_type_mbstate_t = yes; then
  13795. cat >>confdefs.h <<\_ACEOF
  13796. #define HAVE_MBSTATE_T 1
  13797. _ACEOF
  13798. else
  13799. cat >>confdefs.h <<\_ACEOF
  13800. #define mbstate_t int
  13801. _ACEOF
  13802. fi
  13803. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  13804. $as_echo_n "checking for wchar_t... " >&6; }
  13805. if test "${gt_cv_c_wchar_t+set}" = set; then
  13806. $as_echo_n "(cached) " >&6
  13807. else
  13808. cat >conftest.$ac_ext <<_ACEOF
  13809. /* confdefs.h. */
  13810. _ACEOF
  13811. cat confdefs.h >>conftest.$ac_ext
  13812. cat >>conftest.$ac_ext <<_ACEOF
  13813. /* end confdefs.h. */
  13814. #include <stddef.h>
  13815. wchar_t foo = (wchar_t)'\0';
  13816. int
  13817. main ()
  13818. {
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. rm -f conftest.$ac_objext
  13824. if { (ac_try="$ac_compile"
  13825. case "(($ac_try" in
  13826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13827. *) ac_try_echo=$ac_try;;
  13828. esac
  13829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13830. $as_echo "$ac_try_echo") >&5
  13831. (eval "$ac_compile") 2>conftest.er1
  13832. ac_status=$?
  13833. grep -v '^ *+' conftest.er1 >conftest.err
  13834. rm -f conftest.er1
  13835. cat conftest.err >&5
  13836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13837. (exit $ac_status); } && {
  13838. test -z "$ac_c_werror_flag" ||
  13839. test ! -s conftest.err
  13840. } && test -s conftest.$ac_objext; then
  13841. gt_cv_c_wchar_t=yes
  13842. else
  13843. $as_echo "$as_me: failed program was:" >&5
  13844. sed 's/^/| /' conftest.$ac_ext >&5
  13845. gt_cv_c_wchar_t=no
  13846. fi
  13847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13848. fi
  13849. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13850. $as_echo "$gt_cv_c_wchar_t" >&6; }
  13851. if test $gt_cv_c_wchar_t = yes; then
  13852. cat >>confdefs.h <<\_ACEOF
  13853. #define HAVE_WCHAR_T 1
  13854. _ACEOF
  13855. fi
  13856. if test "$am_cv_func_iconv" = yes -a -n "$am_cv_proto_iconv_arg1"; then
  13857. ICONV_CONST="const"
  13858. else
  13859. ICONV_CONST=""
  13860. fi
  13861. if test $gt_cv_c_wchar_t = yes; then
  13862. HAVE_WCHAR_T=1
  13863. else
  13864. HAVE_WCHAR_T=0
  13865. fi
  13866. for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
  13867. do
  13868. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13869. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13870. $as_echo_n "checking for $ac_func... " >&6; }
  13871. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. cat >conftest.$ac_ext <<_ACEOF
  13875. /* confdefs.h. */
  13876. _ACEOF
  13877. cat confdefs.h >>conftest.$ac_ext
  13878. cat >>conftest.$ac_ext <<_ACEOF
  13879. /* end confdefs.h. */
  13880. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13881. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13882. #define $ac_func innocuous_$ac_func
  13883. /* System header to define __stub macros and hopefully few prototypes,
  13884. which can conflict with char $ac_func (); below.
  13885. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13886. <limits.h> exists even on freestanding compilers. */
  13887. #ifdef __STDC__
  13888. # include <limits.h>
  13889. #else
  13890. # include <assert.h>
  13891. #endif
  13892. #undef $ac_func
  13893. /* Override any GCC internal prototype to avoid an error.
  13894. Use char because int might match the return type of a GCC
  13895. builtin and then its argument prototype would still apply. */
  13896. #ifdef __cplusplus
  13897. extern "C"
  13898. #endif
  13899. char $ac_func ();
  13900. /* The GNU C library defines this for functions which it implements
  13901. to always fail with ENOSYS. Some functions are actually named
  13902. something starting with __ and the normal name is an alias. */
  13903. #if defined __stub_$ac_func || defined __stub___$ac_func
  13904. choke me
  13905. #endif
  13906. int
  13907. main ()
  13908. {
  13909. return $ac_func ();
  13910. ;
  13911. return 0;
  13912. }
  13913. _ACEOF
  13914. rm -f conftest.$ac_objext conftest$ac_exeext
  13915. if { (ac_try="$ac_link"
  13916. case "(($ac_try" in
  13917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13918. *) ac_try_echo=$ac_try;;
  13919. esac
  13920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13921. $as_echo "$ac_try_echo") >&5
  13922. (eval "$ac_link") 2>conftest.er1
  13923. ac_status=$?
  13924. grep -v '^ *+' conftest.er1 >conftest.err
  13925. rm -f conftest.er1
  13926. cat conftest.err >&5
  13927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13928. (exit $ac_status); } && {
  13929. test -z "$ac_c_werror_flag" ||
  13930. test ! -s conftest.err
  13931. } && test -s conftest$ac_exeext && {
  13932. test "$cross_compiling" = yes ||
  13933. $as_test_x conftest$ac_exeext
  13934. }; then
  13935. eval "$as_ac_var=yes"
  13936. else
  13937. $as_echo "$as_me: failed program was:" >&5
  13938. sed 's/^/| /' conftest.$ac_ext >&5
  13939. eval "$as_ac_var=no"
  13940. fi
  13941. rm -rf conftest.dSYM
  13942. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13943. conftest$ac_exeext conftest.$ac_ext
  13944. fi
  13945. ac_res=`eval 'as_val=${'$as_ac_var'}
  13946. $as_echo "$as_val"'`
  13947. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13948. $as_echo "$ac_res" >&6; }
  13949. as_val=`eval 'as_val=${'$as_ac_var'}
  13950. $as_echo "$as_val"'`
  13951. if test "x$as_val" = x""yes; then
  13952. cat >>confdefs.h <<_ACEOF
  13953. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13954. _ACEOF
  13955. fi
  13956. done
  13957. if test $ac_cv_func_wcrtomb = yes || test $ac_cv_func_mbrtowc = yes; then
  13958. USE_MBSTATE_T=1
  13959. else
  13960. USE_MBSTATE_T=0
  13961. fi
  13962. { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
  13963. $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
  13964. if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
  13965. $as_echo_n "(cached) " >&6
  13966. else
  13967. cat >conftest.$ac_ext <<_ACEOF
  13968. #include <wchar.h>
  13969. wchar_t w;
  13970. _ACEOF
  13971. rm -f conftest.$ac_objext
  13972. if { (ac_try="$ac_compile"
  13973. case "(($ac_try" in
  13974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13975. *) ac_try_echo=$ac_try;;
  13976. esac
  13977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13978. $as_echo "$ac_try_echo") >&5
  13979. (eval "$ac_compile") 2>conftest.er1
  13980. ac_status=$?
  13981. grep -v '^ *+' conftest.er1 >conftest.err
  13982. rm -f conftest.er1
  13983. cat conftest.err >&5
  13984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13985. (exit $ac_status); } && {
  13986. test -z "$ac_c_werror_flag" ||
  13987. test ! -s conftest.err
  13988. } && test -s conftest.$ac_objext; then
  13989. gl_cv_header_wchar_h_standalone=yes
  13990. else
  13991. $as_echo "$as_me: failed program was:" >&5
  13992. sed 's/^/| /' conftest.$ac_ext >&5
  13993. gl_cv_header_wchar_h_standalone=no
  13994. fi
  13995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13996. fi
  13997. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
  13998. $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
  13999. if test $gl_cv_header_wchar_h_standalone = yes; then
  14000. BROKEN_WCHAR_H=0
  14001. else
  14002. BROKEN_WCHAR_H=1
  14003. fi
  14004. for ac_func in memmove
  14005. do
  14006. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14007. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  14008. $as_echo_n "checking for $ac_func... " >&6; }
  14009. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14010. $as_echo_n "(cached) " >&6
  14011. else
  14012. cat >conftest.$ac_ext <<_ACEOF
  14013. /* confdefs.h. */
  14014. _ACEOF
  14015. cat confdefs.h >>conftest.$ac_ext
  14016. cat >>conftest.$ac_ext <<_ACEOF
  14017. /* end confdefs.h. */
  14018. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14019. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14020. #define $ac_func innocuous_$ac_func
  14021. /* System header to define __stub macros and hopefully few prototypes,
  14022. which can conflict with char $ac_func (); below.
  14023. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14024. <limits.h> exists even on freestanding compilers. */
  14025. #ifdef __STDC__
  14026. # include <limits.h>
  14027. #else
  14028. # include <assert.h>
  14029. #endif
  14030. #undef $ac_func
  14031. /* Override any GCC internal prototype to avoid an error.
  14032. Use char because int might match the return type of a GCC
  14033. builtin and then its argument prototype would still apply. */
  14034. #ifdef __cplusplus
  14035. extern "C"
  14036. #endif
  14037. char $ac_func ();
  14038. /* The GNU C library defines this for functions which it implements
  14039. to always fail with ENOSYS. Some functions are actually named
  14040. something starting with __ and the normal name is an alias. */
  14041. #if defined __stub_$ac_func || defined __stub___$ac_func
  14042. choke me
  14043. #endif
  14044. int
  14045. main ()
  14046. {
  14047. return $ac_func ();
  14048. ;
  14049. return 0;
  14050. }
  14051. _ACEOF
  14052. rm -f conftest.$ac_objext conftest$ac_exeext
  14053. if { (ac_try="$ac_link"
  14054. case "(($ac_try" in
  14055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14056. *) ac_try_echo=$ac_try;;
  14057. esac
  14058. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14059. $as_echo "$ac_try_echo") >&5
  14060. (eval "$ac_link") 2>conftest.er1
  14061. ac_status=$?
  14062. grep -v '^ *+' conftest.er1 >conftest.err
  14063. rm -f conftest.er1
  14064. cat conftest.err >&5
  14065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14066. (exit $ac_status); } && {
  14067. test -z "$ac_c_werror_flag" ||
  14068. test ! -s conftest.err
  14069. } && test -s conftest$ac_exeext && {
  14070. test "$cross_compiling" = yes ||
  14071. $as_test_x conftest$ac_exeext
  14072. }; then
  14073. eval "$as_ac_var=yes"
  14074. else
  14075. $as_echo "$as_me: failed program was:" >&5
  14076. sed 's/^/| /' conftest.$ac_ext >&5
  14077. eval "$as_ac_var=no"
  14078. fi
  14079. rm -rf conftest.dSYM
  14080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14081. conftest$ac_exeext conftest.$ac_ext
  14082. fi
  14083. ac_res=`eval 'as_val=${'$as_ac_var'}
  14084. $as_echo "$as_val"'`
  14085. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14086. $as_echo "$ac_res" >&6; }
  14087. as_val=`eval 'as_val=${'$as_ac_var'}
  14088. $as_echo "$as_val"'`
  14089. if test "x$as_val" = x""yes; then
  14090. cat >>confdefs.h <<_ACEOF
  14091. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14092. _ACEOF
  14093. else
  14094. SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
  14095. fi
  14096. done
  14097. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14098. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14099. if test "${am_cv_langinfo_codeset+set}" = set; then
  14100. $as_echo_n "(cached) " >&6
  14101. else
  14102. cat >conftest.$ac_ext <<_ACEOF
  14103. /* confdefs.h. */
  14104. _ACEOF
  14105. cat confdefs.h >>conftest.$ac_ext
  14106. cat >>conftest.$ac_ext <<_ACEOF
  14107. /* end confdefs.h. */
  14108. #include <langinfo.h>
  14109. int
  14110. main ()
  14111. {
  14112. char* cs = nl_langinfo(CODESET); return !cs;
  14113. ;
  14114. return 0;
  14115. }
  14116. _ACEOF
  14117. rm -f conftest.$ac_objext conftest$ac_exeext
  14118. if { (ac_try="$ac_link"
  14119. case "(($ac_try" in
  14120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14121. *) ac_try_echo=$ac_try;;
  14122. esac
  14123. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14124. $as_echo "$ac_try_echo") >&5
  14125. (eval "$ac_link") 2>conftest.er1
  14126. ac_status=$?
  14127. grep -v '^ *+' conftest.er1 >conftest.err
  14128. rm -f conftest.er1
  14129. cat conftest.err >&5
  14130. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14131. (exit $ac_status); } && {
  14132. test -z "$ac_c_werror_flag" ||
  14133. test ! -s conftest.err
  14134. } && test -s conftest$ac_exeext && {
  14135. test "$cross_compiling" = yes ||
  14136. $as_test_x conftest$ac_exeext
  14137. }; then
  14138. am_cv_langinfo_codeset=yes
  14139. else
  14140. $as_echo "$as_me: failed program was:" >&5
  14141. sed 's/^/| /' conftest.$ac_ext >&5
  14142. am_cv_langinfo_codeset=no
  14143. fi
  14144. rm -rf conftest.dSYM
  14145. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14146. conftest$ac_exeext conftest.$ac_ext
  14147. fi
  14148. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14149. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14150. if test $am_cv_langinfo_codeset = yes; then
  14151. cat >>confdefs.h <<\_ACEOF
  14152. #define HAVE_LANGINFO_CODESET 1
  14153. _ACEOF
  14154. fi
  14155. for ac_header in wchar.h
  14156. do
  14157. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14159. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14160. $as_echo_n "checking for $ac_header... " >&6; }
  14161. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14162. $as_echo_n "(cached) " >&6
  14163. fi
  14164. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14165. $as_echo "$as_val"'`
  14166. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14167. $as_echo "$ac_res" >&6; }
  14168. else
  14169. # Is the header compilable?
  14170. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14171. $as_echo_n "checking $ac_header usability... " >&6; }
  14172. cat >conftest.$ac_ext <<_ACEOF
  14173. /* confdefs.h. */
  14174. _ACEOF
  14175. cat confdefs.h >>conftest.$ac_ext
  14176. cat >>conftest.$ac_ext <<_ACEOF
  14177. /* end confdefs.h. */
  14178. $ac_includes_default
  14179. #include <$ac_header>
  14180. _ACEOF
  14181. rm -f conftest.$ac_objext
  14182. if { (ac_try="$ac_compile"
  14183. case "(($ac_try" in
  14184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14185. *) ac_try_echo=$ac_try;;
  14186. esac
  14187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14188. $as_echo "$ac_try_echo") >&5
  14189. (eval "$ac_compile") 2>conftest.er1
  14190. ac_status=$?
  14191. grep -v '^ *+' conftest.er1 >conftest.err
  14192. rm -f conftest.er1
  14193. cat conftest.err >&5
  14194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14195. (exit $ac_status); } && {
  14196. test -z "$ac_c_werror_flag" ||
  14197. test ! -s conftest.err
  14198. } && test -s conftest.$ac_objext; then
  14199. ac_header_compiler=yes
  14200. else
  14201. $as_echo "$as_me: failed program was:" >&5
  14202. sed 's/^/| /' conftest.$ac_ext >&5
  14203. ac_header_compiler=no
  14204. fi
  14205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14206. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14207. $as_echo "$ac_header_compiler" >&6; }
  14208. # Is the header present?
  14209. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14210. $as_echo_n "checking $ac_header presence... " >&6; }
  14211. cat >conftest.$ac_ext <<_ACEOF
  14212. /* confdefs.h. */
  14213. _ACEOF
  14214. cat confdefs.h >>conftest.$ac_ext
  14215. cat >>conftest.$ac_ext <<_ACEOF
  14216. /* end confdefs.h. */
  14217. #include <$ac_header>
  14218. _ACEOF
  14219. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14220. case "(($ac_try" in
  14221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14222. *) ac_try_echo=$ac_try;;
  14223. esac
  14224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14225. $as_echo "$ac_try_echo") >&5
  14226. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14227. ac_status=$?
  14228. grep -v '^ *+' conftest.er1 >conftest.err
  14229. rm -f conftest.er1
  14230. cat conftest.err >&5
  14231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14232. (exit $ac_status); } >/dev/null && {
  14233. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14234. test ! -s conftest.err
  14235. }; then
  14236. ac_header_preproc=yes
  14237. else
  14238. $as_echo "$as_me: failed program was:" >&5
  14239. sed 's/^/| /' conftest.$ac_ext >&5
  14240. ac_header_preproc=no
  14241. fi
  14242. rm -f conftest.err conftest.$ac_ext
  14243. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14244. $as_echo "$ac_header_preproc" >&6; }
  14245. # So? What about this header?
  14246. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14247. yes:no: )
  14248. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14249. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14250. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14251. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14252. ac_header_preproc=yes
  14253. ;;
  14254. no:yes:* )
  14255. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14256. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14257. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14258. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14259. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14260. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14261. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14262. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14263. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14264. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14266. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14267. ;;
  14268. esac
  14269. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14270. $as_echo_n "checking for $ac_header... " >&6; }
  14271. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14272. $as_echo_n "(cached) " >&6
  14273. else
  14274. eval "$as_ac_Header=\$ac_header_preproc"
  14275. fi
  14276. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14277. $as_echo "$as_val"'`
  14278. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14279. $as_echo "$ac_res" >&6; }
  14280. fi
  14281. as_val=`eval 'as_val=${'$as_ac_Header'}
  14282. $as_echo "$as_val"'`
  14283. if test "x$as_val" = x""yes; then
  14284. cat >>confdefs.h <<_ACEOF
  14285. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14286. _ACEOF
  14287. fi
  14288. done
  14289. { $as_echo "$as_me:$LINENO: checking for EILSEQ" >&5
  14290. $as_echo_n "checking for EILSEQ... " >&6; }
  14291. if test "${ac_cv_decl_EILSEQ+set}" = set; then
  14292. $as_echo_n "(cached) " >&6
  14293. else
  14294. cat >conftest.$ac_ext <<_ACEOF
  14295. /* confdefs.h. */
  14296. _ACEOF
  14297. cat confdefs.h >>conftest.$ac_ext
  14298. cat >>conftest.$ac_ext <<_ACEOF
  14299. /* end confdefs.h. */
  14300. #include <errno.h>
  14301. #ifdef EILSEQ
  14302. yes
  14303. #endif
  14304. _ACEOF
  14305. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14306. $EGREP "yes" >/dev/null 2>&1; then
  14307. have_eilseq=1
  14308. fi
  14309. rm -f conftest*
  14310. if test -n "$have_eilseq"; then
  14311. ac_cv_decl_EILSEQ=yes
  14312. else
  14313. cat >conftest.$ac_ext <<_ACEOF
  14314. /* confdefs.h. */
  14315. _ACEOF
  14316. cat confdefs.h >>conftest.$ac_ext
  14317. cat >>conftest.$ac_ext <<_ACEOF
  14318. /* end confdefs.h. */
  14319. #include <errno.h>
  14320. #if HAVE_WCHAR_H
  14321. #include <wchar.h>
  14322. #endif
  14323. #ifdef EILSEQ
  14324. yes
  14325. #endif
  14326. _ACEOF
  14327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14328. $EGREP "yes" >/dev/null 2>&1; then
  14329. have_eilseq=1
  14330. fi
  14331. rm -f conftest*
  14332. if test -n "$have_eilseq"; then
  14333. if test "$cross_compiling" = yes; then
  14334. # Depending upon the size, compute the lo and hi bounds.
  14335. cat >conftest.$ac_ext <<_ACEOF
  14336. /* confdefs.h. */
  14337. _ACEOF
  14338. cat confdefs.h >>conftest.$ac_ext
  14339. cat >>conftest.$ac_ext <<_ACEOF
  14340. /* end confdefs.h. */
  14341. #include <errno.h>
  14342. #if HAVE_WCHAR_H
  14343. #include <wchar.h>
  14344. #endif
  14345. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14346. #include <stdio.h>
  14347. #include <stdlib.h>
  14348. int
  14349. main ()
  14350. {
  14351. static int test_array [1 - 2 * !((EILSEQ) >= 0)];
  14352. test_array [0] = 0
  14353. ;
  14354. return 0;
  14355. }
  14356. _ACEOF
  14357. rm -f conftest.$ac_objext
  14358. if { (ac_try="$ac_compile"
  14359. case "(($ac_try" in
  14360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14361. *) ac_try_echo=$ac_try;;
  14362. esac
  14363. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14364. $as_echo "$ac_try_echo") >&5
  14365. (eval "$ac_compile") 2>conftest.er1
  14366. ac_status=$?
  14367. grep -v '^ *+' conftest.er1 >conftest.err
  14368. rm -f conftest.er1
  14369. cat conftest.err >&5
  14370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14371. (exit $ac_status); } && {
  14372. test -z "$ac_c_werror_flag" ||
  14373. test ! -s conftest.err
  14374. } && test -s conftest.$ac_objext; then
  14375. ac_lo=0 ac_mid=0
  14376. while :; do
  14377. cat >conftest.$ac_ext <<_ACEOF
  14378. /* confdefs.h. */
  14379. _ACEOF
  14380. cat confdefs.h >>conftest.$ac_ext
  14381. cat >>conftest.$ac_ext <<_ACEOF
  14382. /* end confdefs.h. */
  14383. #include <errno.h>
  14384. #if HAVE_WCHAR_H
  14385. #include <wchar.h>
  14386. #endif
  14387. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14388. #include <stdio.h>
  14389. #include <stdlib.h>
  14390. int
  14391. main ()
  14392. {
  14393. static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
  14394. test_array [0] = 0
  14395. ;
  14396. return 0;
  14397. }
  14398. _ACEOF
  14399. rm -f conftest.$ac_objext
  14400. if { (ac_try="$ac_compile"
  14401. case "(($ac_try" in
  14402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14403. *) ac_try_echo=$ac_try;;
  14404. esac
  14405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14406. $as_echo "$ac_try_echo") >&5
  14407. (eval "$ac_compile") 2>conftest.er1
  14408. ac_status=$?
  14409. grep -v '^ *+' conftest.er1 >conftest.err
  14410. rm -f conftest.er1
  14411. cat conftest.err >&5
  14412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14413. (exit $ac_status); } && {
  14414. test -z "$ac_c_werror_flag" ||
  14415. test ! -s conftest.err
  14416. } && test -s conftest.$ac_objext; then
  14417. ac_hi=$ac_mid; break
  14418. else
  14419. $as_echo "$as_me: failed program was:" >&5
  14420. sed 's/^/| /' conftest.$ac_ext >&5
  14421. ac_lo=`expr $ac_mid + 1`
  14422. if test $ac_lo -le $ac_mid; then
  14423. ac_lo= ac_hi=
  14424. break
  14425. fi
  14426. ac_mid=`expr 2 '*' $ac_mid + 1`
  14427. fi
  14428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14429. done
  14430. else
  14431. $as_echo "$as_me: failed program was:" >&5
  14432. sed 's/^/| /' conftest.$ac_ext >&5
  14433. cat >conftest.$ac_ext <<_ACEOF
  14434. /* confdefs.h. */
  14435. _ACEOF
  14436. cat confdefs.h >>conftest.$ac_ext
  14437. cat >>conftest.$ac_ext <<_ACEOF
  14438. /* end confdefs.h. */
  14439. #include <errno.h>
  14440. #if HAVE_WCHAR_H
  14441. #include <wchar.h>
  14442. #endif
  14443. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14444. #include <stdio.h>
  14445. #include <stdlib.h>
  14446. int
  14447. main ()
  14448. {
  14449. static int test_array [1 - 2 * !((EILSEQ) < 0)];
  14450. test_array [0] = 0
  14451. ;
  14452. return 0;
  14453. }
  14454. _ACEOF
  14455. rm -f conftest.$ac_objext
  14456. if { (ac_try="$ac_compile"
  14457. case "(($ac_try" in
  14458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14459. *) ac_try_echo=$ac_try;;
  14460. esac
  14461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14462. $as_echo "$ac_try_echo") >&5
  14463. (eval "$ac_compile") 2>conftest.er1
  14464. ac_status=$?
  14465. grep -v '^ *+' conftest.er1 >conftest.err
  14466. rm -f conftest.er1
  14467. cat conftest.err >&5
  14468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14469. (exit $ac_status); } && {
  14470. test -z "$ac_c_werror_flag" ||
  14471. test ! -s conftest.err
  14472. } && test -s conftest.$ac_objext; then
  14473. ac_hi=-1 ac_mid=-1
  14474. while :; do
  14475. cat >conftest.$ac_ext <<_ACEOF
  14476. /* confdefs.h. */
  14477. _ACEOF
  14478. cat confdefs.h >>conftest.$ac_ext
  14479. cat >>conftest.$ac_ext <<_ACEOF
  14480. /* end confdefs.h. */
  14481. #include <errno.h>
  14482. #if HAVE_WCHAR_H
  14483. #include <wchar.h>
  14484. #endif
  14485. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14486. #include <stdio.h>
  14487. #include <stdlib.h>
  14488. int
  14489. main ()
  14490. {
  14491. static int test_array [1 - 2 * !((EILSEQ) >= $ac_mid)];
  14492. test_array [0] = 0
  14493. ;
  14494. return 0;
  14495. }
  14496. _ACEOF
  14497. rm -f conftest.$ac_objext
  14498. if { (ac_try="$ac_compile"
  14499. case "(($ac_try" in
  14500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14501. *) ac_try_echo=$ac_try;;
  14502. esac
  14503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14504. $as_echo "$ac_try_echo") >&5
  14505. (eval "$ac_compile") 2>conftest.er1
  14506. ac_status=$?
  14507. grep -v '^ *+' conftest.er1 >conftest.err
  14508. rm -f conftest.er1
  14509. cat conftest.err >&5
  14510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14511. (exit $ac_status); } && {
  14512. test -z "$ac_c_werror_flag" ||
  14513. test ! -s conftest.err
  14514. } && test -s conftest.$ac_objext; then
  14515. ac_lo=$ac_mid; break
  14516. else
  14517. $as_echo "$as_me: failed program was:" >&5
  14518. sed 's/^/| /' conftest.$ac_ext >&5
  14519. ac_hi=`expr '(' $ac_mid ')' - 1`
  14520. if test $ac_mid -le $ac_hi; then
  14521. ac_lo= ac_hi=
  14522. break
  14523. fi
  14524. ac_mid=`expr 2 '*' $ac_mid`
  14525. fi
  14526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14527. done
  14528. else
  14529. $as_echo "$as_me: failed program was:" >&5
  14530. sed 's/^/| /' conftest.$ac_ext >&5
  14531. ac_lo= ac_hi=
  14532. fi
  14533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14534. fi
  14535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14536. # Binary search between lo and hi bounds.
  14537. while test "x$ac_lo" != "x$ac_hi"; do
  14538. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14539. cat >conftest.$ac_ext <<_ACEOF
  14540. /* confdefs.h. */
  14541. _ACEOF
  14542. cat confdefs.h >>conftest.$ac_ext
  14543. cat >>conftest.$ac_ext <<_ACEOF
  14544. /* end confdefs.h. */
  14545. #include <errno.h>
  14546. #if HAVE_WCHAR_H
  14547. #include <wchar.h>
  14548. #endif
  14549. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14550. #include <stdio.h>
  14551. #include <stdlib.h>
  14552. int
  14553. main ()
  14554. {
  14555. static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
  14556. test_array [0] = 0
  14557. ;
  14558. return 0;
  14559. }
  14560. _ACEOF
  14561. rm -f conftest.$ac_objext
  14562. if { (ac_try="$ac_compile"
  14563. case "(($ac_try" in
  14564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14565. *) ac_try_echo=$ac_try;;
  14566. esac
  14567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14568. $as_echo "$ac_try_echo") >&5
  14569. (eval "$ac_compile") 2>conftest.er1
  14570. ac_status=$?
  14571. grep -v '^ *+' conftest.er1 >conftest.err
  14572. rm -f conftest.er1
  14573. cat conftest.err >&5
  14574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14575. (exit $ac_status); } && {
  14576. test -z "$ac_c_werror_flag" ||
  14577. test ! -s conftest.err
  14578. } && test -s conftest.$ac_objext; then
  14579. ac_hi=$ac_mid
  14580. else
  14581. $as_echo "$as_me: failed program was:" >&5
  14582. sed 's/^/| /' conftest.$ac_ext >&5
  14583. ac_lo=`expr '(' $ac_mid ')' + 1`
  14584. fi
  14585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14586. done
  14587. case $ac_lo in
  14588. ?*) ac_cv_decl_EILSEQ=$ac_lo;;
  14589. '') ;;
  14590. esac
  14591. else
  14592. cat >conftest.$ac_ext <<_ACEOF
  14593. /* confdefs.h. */
  14594. _ACEOF
  14595. cat confdefs.h >>conftest.$ac_ext
  14596. cat >>conftest.$ac_ext <<_ACEOF
  14597. /* end confdefs.h. */
  14598. #include <errno.h>
  14599. #if HAVE_WCHAR_H
  14600. #include <wchar.h>
  14601. #endif
  14602. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  14603. #include <stdio.h>
  14604. #include <stdlib.h>
  14605. static long int longval () { return EILSEQ; }
  14606. static unsigned long int ulongval () { return EILSEQ; }
  14607. #include <stdio.h>
  14608. #include <stdlib.h>
  14609. int
  14610. main ()
  14611. {
  14612. FILE *f = fopen ("conftest.val", "w");
  14613. if (! f)
  14614. return 1;
  14615. if ((EILSEQ) < 0)
  14616. {
  14617. long int i = longval ();
  14618. if (i != (EILSEQ))
  14619. return 1;
  14620. fprintf (f, "%ld", i);
  14621. }
  14622. else
  14623. {
  14624. unsigned long int i = ulongval ();
  14625. if (i != (EILSEQ))
  14626. return 1;
  14627. fprintf (f, "%lu", i);
  14628. }
  14629. /* Do not output a trailing newline, as this causes \r\n confusion
  14630. on some platforms. */
  14631. return ferror (f) || fclose (f) != 0;
  14632. ;
  14633. return 0;
  14634. }
  14635. _ACEOF
  14636. rm -f conftest$ac_exeext
  14637. if { (ac_try="$ac_link"
  14638. case "(($ac_try" in
  14639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14640. *) ac_try_echo=$ac_try;;
  14641. esac
  14642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14643. $as_echo "$ac_try_echo") >&5
  14644. (eval "$ac_link") 2>&5
  14645. ac_status=$?
  14646. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14647. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14648. { (case "(($ac_try" in
  14649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14650. *) ac_try_echo=$ac_try;;
  14651. esac
  14652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14653. $as_echo "$ac_try_echo") >&5
  14654. (eval "$ac_try") 2>&5
  14655. ac_status=$?
  14656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14657. (exit $ac_status); }; }; then
  14658. ac_cv_decl_EILSEQ=`cat conftest.val`
  14659. else
  14660. $as_echo "$as_me: program exited with status $ac_status" >&5
  14661. $as_echo "$as_me: failed program was:" >&5
  14662. sed 's/^/| /' conftest.$ac_ext >&5
  14663. fi
  14664. rm -rf conftest.dSYM
  14665. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14666. fi
  14667. rm -f conftest.val
  14668. else
  14669. ac_cv_decl_EILSEQ=ENOENT
  14670. fi
  14671. fi
  14672. fi
  14673. { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EILSEQ" >&5
  14674. $as_echo "$ac_cv_decl_EILSEQ" >&6; }
  14675. if test "$ac_cv_decl_EILSEQ" != yes; then
  14676. cat >>confdefs.h <<_ACEOF
  14677. #define EILSEQ $ac_cv_decl_EILSEQ
  14678. _ACEOF
  14679. EILSEQ="$ac_cv_decl_EILSEQ"
  14680. fi
  14681. { $as_echo "$as_me:$LINENO: checking byte ordering" >&5
  14682. $as_echo_n "checking byte ordering... " >&6; }
  14683. if test "${cl_cv_sys_endian+set}" = set; then
  14684. $as_echo_n "(cached) " >&6
  14685. else
  14686. if test "$cross_compiling" = yes; then
  14687. : # must guess the endianness
  14688. else
  14689. cat >conftest.$ac_ext <<_ACEOF
  14690. /* confdefs.h. */
  14691. _ACEOF
  14692. cat confdefs.h >>conftest.$ac_ext
  14693. cat >>conftest.$ac_ext <<_ACEOF
  14694. /* end confdefs.h. */
  14695. int main () {
  14696. /* Are we little or big endian? From Harbison&Steele. */
  14697. union
  14698. {
  14699. long l;
  14700. char c[sizeof (long)];
  14701. } u;
  14702. u.l = 1;
  14703. exit (u.c[0] == 1);
  14704. }
  14705. _ACEOF
  14706. rm -f conftest$ac_exeext
  14707. if { (ac_try="$ac_link"
  14708. case "(($ac_try" in
  14709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14710. *) ac_try_echo=$ac_try;;
  14711. esac
  14712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14713. $as_echo "$ac_try_echo") >&5
  14714. (eval "$ac_link") 2>&5
  14715. ac_status=$?
  14716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14717. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14718. { (case "(($ac_try" in
  14719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14720. *) ac_try_echo=$ac_try;;
  14721. esac
  14722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14723. $as_echo "$ac_try_echo") >&5
  14724. (eval "$ac_try") 2>&5
  14725. ac_status=$?
  14726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14727. (exit $ac_status); }; }; then
  14728. cl_cv_sys_endian="big endian"
  14729. else
  14730. $as_echo "$as_me: program exited with status $ac_status" >&5
  14731. $as_echo "$as_me: failed program was:" >&5
  14732. sed 's/^/| /' conftest.$ac_ext >&5
  14733. ( exit $ac_status )
  14734. cl_cv_sys_endian="little endian"
  14735. fi
  14736. rm -rf conftest.dSYM
  14737. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14738. fi
  14739. if test -z "$cl_cv_sys_endian"; then
  14740. cat >conftest.$ac_ext <<_ACEOF
  14741. /* confdefs.h. */
  14742. _ACEOF
  14743. cat confdefs.h >>conftest.$ac_ext
  14744. cat >>conftest.$ac_ext <<_ACEOF
  14745. /* end confdefs.h. */
  14746. #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
  14747. yes
  14748. #endif
  14749. _ACEOF
  14750. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14751. $EGREP "yes" >/dev/null 2>&1; then
  14752. cl_cv_sys_endian="big endian"
  14753. fi
  14754. rm -f conftest*
  14755. fi
  14756. if test -z "$cl_cv_sys_endian"; then
  14757. cat >conftest.$ac_ext <<_ACEOF
  14758. /* confdefs.h. */
  14759. _ACEOF
  14760. cat confdefs.h >>conftest.$ac_ext
  14761. cat >>conftest.$ac_ext <<_ACEOF
  14762. /* end confdefs.h. */
  14763. #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
  14764. yes
  14765. #endif
  14766. _ACEOF
  14767. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14768. $EGREP "yes" >/dev/null 2>&1; then
  14769. cl_cv_sys_endian="little endian"
  14770. fi
  14771. rm -f conftest*
  14772. fi
  14773. if test -z "$cl_cv_sys_endian"; then
  14774. cl_cv_sys_endian="guessing little endian"
  14775. fi
  14776. fi
  14777. { $as_echo "$as_me:$LINENO: result: $cl_cv_sys_endian" >&5
  14778. $as_echo "$cl_cv_sys_endian" >&6; }
  14779. case "$cl_cv_sys_endian" in
  14780. *little*)
  14781. cat >>confdefs.h <<\_ACEOF
  14782. #define WORDS_LITTLEENDIAN 1
  14783. _ACEOF
  14784. ;;
  14785. *big*) ;;
  14786. esac
  14787. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14788. # for constant arguments. Useless!
  14789. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  14790. $as_echo_n "checking for working alloca.h... " >&6; }
  14791. if test "${ac_cv_working_alloca_h+set}" = set; then
  14792. $as_echo_n "(cached) " >&6
  14793. else
  14794. cat >conftest.$ac_ext <<_ACEOF
  14795. /* confdefs.h. */
  14796. _ACEOF
  14797. cat confdefs.h >>conftest.$ac_ext
  14798. cat >>conftest.$ac_ext <<_ACEOF
  14799. /* end confdefs.h. */
  14800. #include <alloca.h>
  14801. int
  14802. main ()
  14803. {
  14804. char *p = (char *) alloca (2 * sizeof (int));
  14805. if (p) return 0;
  14806. ;
  14807. return 0;
  14808. }
  14809. _ACEOF
  14810. rm -f conftest.$ac_objext conftest$ac_exeext
  14811. if { (ac_try="$ac_link"
  14812. case "(($ac_try" in
  14813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14814. *) ac_try_echo=$ac_try;;
  14815. esac
  14816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14817. $as_echo "$ac_try_echo") >&5
  14818. (eval "$ac_link") 2>conftest.er1
  14819. ac_status=$?
  14820. grep -v '^ *+' conftest.er1 >conftest.err
  14821. rm -f conftest.er1
  14822. cat conftest.err >&5
  14823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14824. (exit $ac_status); } && {
  14825. test -z "$ac_c_werror_flag" ||
  14826. test ! -s conftest.err
  14827. } && test -s conftest$ac_exeext && {
  14828. test "$cross_compiling" = yes ||
  14829. $as_test_x conftest$ac_exeext
  14830. }; then
  14831. ac_cv_working_alloca_h=yes
  14832. else
  14833. $as_echo "$as_me: failed program was:" >&5
  14834. sed 's/^/| /' conftest.$ac_ext >&5
  14835. ac_cv_working_alloca_h=no
  14836. fi
  14837. rm -rf conftest.dSYM
  14838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14839. conftest$ac_exeext conftest.$ac_ext
  14840. fi
  14841. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  14842. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14843. if test $ac_cv_working_alloca_h = yes; then
  14844. cat >>confdefs.h <<\_ACEOF
  14845. #define HAVE_ALLOCA_H 1
  14846. _ACEOF
  14847. fi
  14848. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  14849. $as_echo_n "checking for alloca... " >&6; }
  14850. if test "${ac_cv_func_alloca_works+set}" = set; then
  14851. $as_echo_n "(cached) " >&6
  14852. else
  14853. cat >conftest.$ac_ext <<_ACEOF
  14854. /* confdefs.h. */
  14855. _ACEOF
  14856. cat confdefs.h >>conftest.$ac_ext
  14857. cat >>conftest.$ac_ext <<_ACEOF
  14858. /* end confdefs.h. */
  14859. #ifdef __GNUC__
  14860. # define alloca __builtin_alloca
  14861. #else
  14862. # ifdef _MSC_VER
  14863. # include <malloc.h>
  14864. # define alloca _alloca
  14865. # else
  14866. # ifdef HAVE_ALLOCA_H
  14867. # include <alloca.h>
  14868. # else
  14869. # ifdef _AIX
  14870. #pragma alloca
  14871. # else
  14872. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14873. char *alloca ();
  14874. # endif
  14875. # endif
  14876. # endif
  14877. # endif
  14878. #endif
  14879. int
  14880. main ()
  14881. {
  14882. char *p = (char *) alloca (1);
  14883. if (p) return 0;
  14884. ;
  14885. return 0;
  14886. }
  14887. _ACEOF
  14888. rm -f conftest.$ac_objext conftest$ac_exeext
  14889. if { (ac_try="$ac_link"
  14890. case "(($ac_try" in
  14891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14892. *) ac_try_echo=$ac_try;;
  14893. esac
  14894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14895. $as_echo "$ac_try_echo") >&5
  14896. (eval "$ac_link") 2>conftest.er1
  14897. ac_status=$?
  14898. grep -v '^ *+' conftest.er1 >conftest.err
  14899. rm -f conftest.er1
  14900. cat conftest.err >&5
  14901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14902. (exit $ac_status); } && {
  14903. test -z "$ac_c_werror_flag" ||
  14904. test ! -s conftest.err
  14905. } && test -s conftest$ac_exeext && {
  14906. test "$cross_compiling" = yes ||
  14907. $as_test_x conftest$ac_exeext
  14908. }; then
  14909. ac_cv_func_alloca_works=yes
  14910. else
  14911. $as_echo "$as_me: failed program was:" >&5
  14912. sed 's/^/| /' conftest.$ac_ext >&5
  14913. ac_cv_func_alloca_works=no
  14914. fi
  14915. rm -rf conftest.dSYM
  14916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14917. conftest$ac_exeext conftest.$ac_ext
  14918. fi
  14919. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  14920. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14921. if test $ac_cv_func_alloca_works = yes; then
  14922. cat >>confdefs.h <<\_ACEOF
  14923. #define HAVE_ALLOCA 1
  14924. _ACEOF
  14925. else
  14926. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14927. # that cause trouble. Some versions do not even contain alloca or
  14928. # contain a buggy version. If you still want to use their alloca,
  14929. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14930. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14931. cat >>confdefs.h <<\_ACEOF
  14932. #define C_ALLOCA 1
  14933. _ACEOF
  14934. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  14935. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14936. if test "${ac_cv_os_cray+set}" = set; then
  14937. $as_echo_n "(cached) " >&6
  14938. else
  14939. cat >conftest.$ac_ext <<_ACEOF
  14940. /* confdefs.h. */
  14941. _ACEOF
  14942. cat confdefs.h >>conftest.$ac_ext
  14943. cat >>conftest.$ac_ext <<_ACEOF
  14944. /* end confdefs.h. */
  14945. #if defined CRAY && ! defined CRAY2
  14946. webecray
  14947. #else
  14948. wenotbecray
  14949. #endif
  14950. _ACEOF
  14951. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14952. $EGREP "webecray" >/dev/null 2>&1; then
  14953. ac_cv_os_cray=yes
  14954. else
  14955. ac_cv_os_cray=no
  14956. fi
  14957. rm -f conftest*
  14958. fi
  14959. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  14960. $as_echo "$ac_cv_os_cray" >&6; }
  14961. if test $ac_cv_os_cray = yes; then
  14962. for ac_func in _getb67 GETB67 getb67; do
  14963. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14964. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  14965. $as_echo_n "checking for $ac_func... " >&6; }
  14966. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14967. $as_echo_n "(cached) " >&6
  14968. else
  14969. cat >conftest.$ac_ext <<_ACEOF
  14970. /* confdefs.h. */
  14971. _ACEOF
  14972. cat confdefs.h >>conftest.$ac_ext
  14973. cat >>conftest.$ac_ext <<_ACEOF
  14974. /* end confdefs.h. */
  14975. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14976. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14977. #define $ac_func innocuous_$ac_func
  14978. /* System header to define __stub macros and hopefully few prototypes,
  14979. which can conflict with char $ac_func (); below.
  14980. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14981. <limits.h> exists even on freestanding compilers. */
  14982. #ifdef __STDC__
  14983. # include <limits.h>
  14984. #else
  14985. # include <assert.h>
  14986. #endif
  14987. #undef $ac_func
  14988. /* Override any GCC internal prototype to avoid an error.
  14989. Use char because int might match the return type of a GCC
  14990. builtin and then its argument prototype would still apply. */
  14991. #ifdef __cplusplus
  14992. extern "C"
  14993. #endif
  14994. char $ac_func ();
  14995. /* The GNU C library defines this for functions which it implements
  14996. to always fail with ENOSYS. Some functions are actually named
  14997. something starting with __ and the normal name is an alias. */
  14998. #if defined __stub_$ac_func || defined __stub___$ac_func
  14999. choke me
  15000. #endif
  15001. int
  15002. main ()
  15003. {
  15004. return $ac_func ();
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. rm -f conftest.$ac_objext conftest$ac_exeext
  15010. if { (ac_try="$ac_link"
  15011. case "(($ac_try" in
  15012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15013. *) ac_try_echo=$ac_try;;
  15014. esac
  15015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15016. $as_echo "$ac_try_echo") >&5
  15017. (eval "$ac_link") 2>conftest.er1
  15018. ac_status=$?
  15019. grep -v '^ *+' conftest.er1 >conftest.err
  15020. rm -f conftest.er1
  15021. cat conftest.err >&5
  15022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15023. (exit $ac_status); } && {
  15024. test -z "$ac_c_werror_flag" ||
  15025. test ! -s conftest.err
  15026. } && test -s conftest$ac_exeext && {
  15027. test "$cross_compiling" = yes ||
  15028. $as_test_x conftest$ac_exeext
  15029. }; then
  15030. eval "$as_ac_var=yes"
  15031. else
  15032. $as_echo "$as_me: failed program was:" >&5
  15033. sed 's/^/| /' conftest.$ac_ext >&5
  15034. eval "$as_ac_var=no"
  15035. fi
  15036. rm -rf conftest.dSYM
  15037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15038. conftest$ac_exeext conftest.$ac_ext
  15039. fi
  15040. ac_res=`eval 'as_val=${'$as_ac_var'}
  15041. $as_echo "$as_val"'`
  15042. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15043. $as_echo "$ac_res" >&6; }
  15044. as_val=`eval 'as_val=${'$as_ac_var'}
  15045. $as_echo "$as_val"'`
  15046. if test "x$as_val" = x""yes; then
  15047. cat >>confdefs.h <<_ACEOF
  15048. #define CRAY_STACKSEG_END $ac_func
  15049. _ACEOF
  15050. break
  15051. fi
  15052. done
  15053. fi
  15054. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  15055. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15056. if test "${ac_cv_c_stack_direction+set}" = set; then
  15057. $as_echo_n "(cached) " >&6
  15058. else
  15059. if test "$cross_compiling" = yes; then
  15060. ac_cv_c_stack_direction=0
  15061. else
  15062. cat >conftest.$ac_ext <<_ACEOF
  15063. /* confdefs.h. */
  15064. _ACEOF
  15065. cat confdefs.h >>conftest.$ac_ext
  15066. cat >>conftest.$ac_ext <<_ACEOF
  15067. /* end confdefs.h. */
  15068. $ac_includes_default
  15069. int
  15070. find_stack_direction ()
  15071. {
  15072. static char *addr = 0;
  15073. auto char dummy;
  15074. if (addr == 0)
  15075. {
  15076. addr = &dummy;
  15077. return find_stack_direction ();
  15078. }
  15079. else
  15080. return (&dummy > addr) ? 1 : -1;
  15081. }
  15082. int
  15083. main ()
  15084. {
  15085. return find_stack_direction () < 0;
  15086. }
  15087. _ACEOF
  15088. rm -f conftest$ac_exeext
  15089. if { (ac_try="$ac_link"
  15090. case "(($ac_try" in
  15091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15092. *) ac_try_echo=$ac_try;;
  15093. esac
  15094. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15095. $as_echo "$ac_try_echo") >&5
  15096. (eval "$ac_link") 2>&5
  15097. ac_status=$?
  15098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15099. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15100. { (case "(($ac_try" in
  15101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15102. *) ac_try_echo=$ac_try;;
  15103. esac
  15104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15105. $as_echo "$ac_try_echo") >&5
  15106. (eval "$ac_try") 2>&5
  15107. ac_status=$?
  15108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15109. (exit $ac_status); }; }; then
  15110. ac_cv_c_stack_direction=1
  15111. else
  15112. $as_echo "$as_me: program exited with status $ac_status" >&5
  15113. $as_echo "$as_me: failed program was:" >&5
  15114. sed 's/^/| /' conftest.$ac_ext >&5
  15115. ( exit $ac_status )
  15116. ac_cv_c_stack_direction=-1
  15117. fi
  15118. rm -rf conftest.dSYM
  15119. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15120. fi
  15121. fi
  15122. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  15123. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15124. cat >>confdefs.h <<_ACEOF
  15125. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15126. _ACEOF
  15127. fi
  15128. for ac_header in $ac_header_list
  15129. do
  15130. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15131. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15132. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15133. $as_echo_n "checking for $ac_header... " >&6; }
  15134. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15135. $as_echo_n "(cached) " >&6
  15136. fi
  15137. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15138. $as_echo "$as_val"'`
  15139. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15140. $as_echo "$ac_res" >&6; }
  15141. else
  15142. # Is the header compilable?
  15143. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15144. $as_echo_n "checking $ac_header usability... " >&6; }
  15145. cat >conftest.$ac_ext <<_ACEOF
  15146. /* confdefs.h. */
  15147. _ACEOF
  15148. cat confdefs.h >>conftest.$ac_ext
  15149. cat >>conftest.$ac_ext <<_ACEOF
  15150. /* end confdefs.h. */
  15151. $ac_includes_default
  15152. #include <$ac_header>
  15153. _ACEOF
  15154. rm -f conftest.$ac_objext
  15155. if { (ac_try="$ac_compile"
  15156. case "(($ac_try" in
  15157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15158. *) ac_try_echo=$ac_try;;
  15159. esac
  15160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15161. $as_echo "$ac_try_echo") >&5
  15162. (eval "$ac_compile") 2>conftest.er1
  15163. ac_status=$?
  15164. grep -v '^ *+' conftest.er1 >conftest.err
  15165. rm -f conftest.er1
  15166. cat conftest.err >&5
  15167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15168. (exit $ac_status); } && {
  15169. test -z "$ac_c_werror_flag" ||
  15170. test ! -s conftest.err
  15171. } && test -s conftest.$ac_objext; then
  15172. ac_header_compiler=yes
  15173. else
  15174. $as_echo "$as_me: failed program was:" >&5
  15175. sed 's/^/| /' conftest.$ac_ext >&5
  15176. ac_header_compiler=no
  15177. fi
  15178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15179. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15180. $as_echo "$ac_header_compiler" >&6; }
  15181. # Is the header present?
  15182. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15183. $as_echo_n "checking $ac_header presence... " >&6; }
  15184. cat >conftest.$ac_ext <<_ACEOF
  15185. /* confdefs.h. */
  15186. _ACEOF
  15187. cat confdefs.h >>conftest.$ac_ext
  15188. cat >>conftest.$ac_ext <<_ACEOF
  15189. /* end confdefs.h. */
  15190. #include <$ac_header>
  15191. _ACEOF
  15192. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15193. case "(($ac_try" in
  15194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15195. *) ac_try_echo=$ac_try;;
  15196. esac
  15197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15198. $as_echo "$ac_try_echo") >&5
  15199. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15200. ac_status=$?
  15201. grep -v '^ *+' conftest.er1 >conftest.err
  15202. rm -f conftest.er1
  15203. cat conftest.err >&5
  15204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15205. (exit $ac_status); } >/dev/null && {
  15206. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15207. test ! -s conftest.err
  15208. }; then
  15209. ac_header_preproc=yes
  15210. else
  15211. $as_echo "$as_me: failed program was:" >&5
  15212. sed 's/^/| /' conftest.$ac_ext >&5
  15213. ac_header_preproc=no
  15214. fi
  15215. rm -f conftest.err conftest.$ac_ext
  15216. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15217. $as_echo "$ac_header_preproc" >&6; }
  15218. # So? What about this header?
  15219. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15220. yes:no: )
  15221. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15222. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15223. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15224. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15225. ac_header_preproc=yes
  15226. ;;
  15227. no:yes:* )
  15228. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15229. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15230. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15231. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15232. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15233. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15234. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15235. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15236. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15237. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15238. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15239. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15240. ;;
  15241. esac
  15242. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15243. $as_echo_n "checking for $ac_header... " >&6; }
  15244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15245. $as_echo_n "(cached) " >&6
  15246. else
  15247. eval "$as_ac_Header=\$ac_header_preproc"
  15248. fi
  15249. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15250. $as_echo "$as_val"'`
  15251. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15252. $as_echo "$ac_res" >&6; }
  15253. fi
  15254. as_val=`eval 'as_val=${'$as_ac_Header'}
  15255. $as_echo "$as_val"'`
  15256. if test "x$as_val" = x""yes; then
  15257. cat >>confdefs.h <<_ACEOF
  15258. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15259. _ACEOF
  15260. fi
  15261. done
  15262. { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
  15263. $as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
  15264. if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
  15265. $as_echo_n "(cached) " >&6
  15266. else
  15267. cat >conftest.$ac_ext <<_ACEOF
  15268. /* confdefs.h. */
  15269. _ACEOF
  15270. cat confdefs.h >>conftest.$ac_ext
  15271. cat >>conftest.$ac_ext <<_ACEOF
  15272. /* end confdefs.h. */
  15273. $ac_includes_default
  15274. int
  15275. main ()
  15276. {
  15277. #ifndef canonicalize_file_name
  15278. (void) canonicalize_file_name;
  15279. #endif
  15280. ;
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. rm -f conftest.$ac_objext
  15285. if { (ac_try="$ac_compile"
  15286. case "(($ac_try" in
  15287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15288. *) ac_try_echo=$ac_try;;
  15289. esac
  15290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15291. $as_echo "$ac_try_echo") >&5
  15292. (eval "$ac_compile") 2>conftest.er1
  15293. ac_status=$?
  15294. grep -v '^ *+' conftest.er1 >conftest.err
  15295. rm -f conftest.er1
  15296. cat conftest.err >&5
  15297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15298. (exit $ac_status); } && {
  15299. test -z "$ac_c_werror_flag" ||
  15300. test ! -s conftest.err
  15301. } && test -s conftest.$ac_objext; then
  15302. ac_cv_have_decl_canonicalize_file_name=yes
  15303. else
  15304. $as_echo "$as_me: failed program was:" >&5
  15305. sed 's/^/| /' conftest.$ac_ext >&5
  15306. ac_cv_have_decl_canonicalize_file_name=no
  15307. fi
  15308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15309. fi
  15310. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
  15311. $as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
  15312. if test "x$ac_cv_have_decl_canonicalize_file_name" = x""yes; then
  15313. cat >>confdefs.h <<_ACEOF
  15314. #define HAVE_DECL_CANONICALIZE_FILE_NAME 1
  15315. _ACEOF
  15316. else
  15317. cat >>confdefs.h <<_ACEOF
  15318. #define HAVE_DECL_CANONICALIZE_FILE_NAME 0
  15319. _ACEOF
  15320. fi
  15321. for ac_func in $ac_func_list
  15322. do
  15323. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15324. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15325. $as_echo_n "checking for $ac_func... " >&6; }
  15326. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15327. $as_echo_n "(cached) " >&6
  15328. else
  15329. cat >conftest.$ac_ext <<_ACEOF
  15330. /* confdefs.h. */
  15331. _ACEOF
  15332. cat confdefs.h >>conftest.$ac_ext
  15333. cat >>conftest.$ac_ext <<_ACEOF
  15334. /* end confdefs.h. */
  15335. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15336. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15337. #define $ac_func innocuous_$ac_func
  15338. /* System header to define __stub macros and hopefully few prototypes,
  15339. which can conflict with char $ac_func (); below.
  15340. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15341. <limits.h> exists even on freestanding compilers. */
  15342. #ifdef __STDC__
  15343. # include <limits.h>
  15344. #else
  15345. # include <assert.h>
  15346. #endif
  15347. #undef $ac_func
  15348. /* Override any GCC internal prototype to avoid an error.
  15349. Use char because int might match the return type of a GCC
  15350. builtin and then its argument prototype would still apply. */
  15351. #ifdef __cplusplus
  15352. extern "C"
  15353. #endif
  15354. char $ac_func ();
  15355. /* The GNU C library defines this for functions which it implements
  15356. to always fail with ENOSYS. Some functions are actually named
  15357. something starting with __ and the normal name is an alias. */
  15358. #if defined __stub_$ac_func || defined __stub___$ac_func
  15359. choke me
  15360. #endif
  15361. int
  15362. main ()
  15363. {
  15364. return $ac_func ();
  15365. ;
  15366. return 0;
  15367. }
  15368. _ACEOF
  15369. rm -f conftest.$ac_objext conftest$ac_exeext
  15370. if { (ac_try="$ac_link"
  15371. case "(($ac_try" in
  15372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15373. *) ac_try_echo=$ac_try;;
  15374. esac
  15375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15376. $as_echo "$ac_try_echo") >&5
  15377. (eval "$ac_link") 2>conftest.er1
  15378. ac_status=$?
  15379. grep -v '^ *+' conftest.er1 >conftest.err
  15380. rm -f conftest.er1
  15381. cat conftest.err >&5
  15382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15383. (exit $ac_status); } && {
  15384. test -z "$ac_c_werror_flag" ||
  15385. test ! -s conftest.err
  15386. } && test -s conftest$ac_exeext && {
  15387. test "$cross_compiling" = yes ||
  15388. $as_test_x conftest$ac_exeext
  15389. }; then
  15390. eval "$as_ac_var=yes"
  15391. else
  15392. $as_echo "$as_me: failed program was:" >&5
  15393. sed 's/^/| /' conftest.$ac_ext >&5
  15394. eval "$as_ac_var=no"
  15395. fi
  15396. rm -rf conftest.dSYM
  15397. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15398. conftest$ac_exeext conftest.$ac_ext
  15399. fi
  15400. ac_res=`eval 'as_val=${'$as_ac_var'}
  15401. $as_echo "$as_val"'`
  15402. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15403. $as_echo "$ac_res" >&6; }
  15404. as_val=`eval 'as_val=${'$as_ac_var'}
  15405. $as_echo "$as_val"'`
  15406. if test "x$as_val" = x""yes; then
  15407. cat >>confdefs.h <<_ACEOF
  15408. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15409. _ACEOF
  15410. fi
  15411. done
  15412. GNULIB_CHOWN=0;
  15413. GNULIB_CLOSE=0;
  15414. GNULIB_DUP2=0;
  15415. GNULIB_ENVIRON=0;
  15416. GNULIB_EUIDACCESS=0;
  15417. GNULIB_FCHDIR=0;
  15418. GNULIB_FSYNC=0;
  15419. GNULIB_FTRUNCATE=0;
  15420. GNULIB_GETCWD=0;
  15421. GNULIB_GETDOMAINNAME=0;
  15422. GNULIB_GETDTABLESIZE=0;
  15423. GNULIB_GETHOSTNAME=0;
  15424. GNULIB_GETLOGIN_R=0;
  15425. GNULIB_GETPAGESIZE=0;
  15426. GNULIB_GETUSERSHELL=0;
  15427. GNULIB_LCHOWN=0;
  15428. GNULIB_LINK=0;
  15429. GNULIB_LSEEK=0;
  15430. GNULIB_READLINK=0;
  15431. GNULIB_SLEEP=0;
  15432. GNULIB_UNISTD_H_SIGPIPE=0;
  15433. GNULIB_WRITE=0;
  15434. HAVE_DUP2=1;
  15435. HAVE_EUIDACCESS=1;
  15436. HAVE_FSYNC=1;
  15437. HAVE_FTRUNCATE=1;
  15438. HAVE_GETDOMAINNAME=1;
  15439. HAVE_GETDTABLESIZE=1;
  15440. HAVE_GETHOSTNAME=1;
  15441. HAVE_GETPAGESIZE=1;
  15442. HAVE_GETUSERSHELL=1;
  15443. HAVE_LINK=1;
  15444. HAVE_READLINK=1;
  15445. HAVE_SLEEP=1;
  15446. HAVE_DECL_ENVIRON=1;
  15447. HAVE_DECL_GETLOGIN_R=1;
  15448. HAVE_OS_H=0;
  15449. HAVE_SYS_PARAM_H=0;
  15450. REPLACE_CHOWN=0;
  15451. REPLACE_CLOSE=0;
  15452. REPLACE_FCHDIR=0;
  15453. REPLACE_GETCWD=0;
  15454. REPLACE_GETPAGESIZE=0;
  15455. REPLACE_LCHOWN=0;
  15456. REPLACE_LSEEK=0;
  15457. REPLACE_WRITE=0;
  15458. UNISTD_H_HAVE_WINSOCK2_H=0;
  15459. { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
  15460. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  15461. if test "${gl_cv_have_include_next+set}" = set; then
  15462. $as_echo_n "(cached) " >&6
  15463. else
  15464. rm -rf conftestd1a conftestd1b conftestd2
  15465. mkdir conftestd1a conftestd1b conftestd2
  15466. cat <<EOF > conftestd1a/conftest.h
  15467. #define DEFINED_IN_CONFTESTD1
  15468. #include_next <conftest.h>
  15469. #ifdef DEFINED_IN_CONFTESTD2
  15470. int foo;
  15471. #else
  15472. #error "include_next doesn't work"
  15473. #endif
  15474. EOF
  15475. cat <<EOF > conftestd1b/conftest.h
  15476. #define DEFINED_IN_CONFTESTD1
  15477. #include <stdio.h>
  15478. #include_next <conftest.h>
  15479. #ifdef DEFINED_IN_CONFTESTD2
  15480. int foo;
  15481. #else
  15482. #error "include_next doesn't work"
  15483. #endif
  15484. EOF
  15485. cat <<EOF > conftestd2/conftest.h
  15486. #ifndef DEFINED_IN_CONFTESTD1
  15487. #error "include_next test doesn't work"
  15488. #endif
  15489. #define DEFINED_IN_CONFTESTD2
  15490. EOF
  15491. gl_save_CPPFLAGS="$CPPFLAGS"
  15492. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  15493. cat >conftest.$ac_ext <<_ACEOF
  15494. #include <conftest.h>
  15495. _ACEOF
  15496. rm -f conftest.$ac_objext
  15497. if { (ac_try="$ac_compile"
  15498. case "(($ac_try" in
  15499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15500. *) ac_try_echo=$ac_try;;
  15501. esac
  15502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15503. $as_echo "$ac_try_echo") >&5
  15504. (eval "$ac_compile") 2>conftest.er1
  15505. ac_status=$?
  15506. grep -v '^ *+' conftest.er1 >conftest.err
  15507. rm -f conftest.er1
  15508. cat conftest.err >&5
  15509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15510. (exit $ac_status); } && {
  15511. test -z "$ac_c_werror_flag" ||
  15512. test ! -s conftest.err
  15513. } && test -s conftest.$ac_objext; then
  15514. gl_cv_have_include_next=yes
  15515. else
  15516. $as_echo "$as_me: failed program was:" >&5
  15517. sed 's/^/| /' conftest.$ac_ext >&5
  15518. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  15519. cat >conftest.$ac_ext <<_ACEOF
  15520. #include <conftest.h>
  15521. _ACEOF
  15522. rm -f conftest.$ac_objext
  15523. if { (ac_try="$ac_compile"
  15524. case "(($ac_try" in
  15525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15526. *) ac_try_echo=$ac_try;;
  15527. esac
  15528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15529. $as_echo "$ac_try_echo") >&5
  15530. (eval "$ac_compile") 2>conftest.er1
  15531. ac_status=$?
  15532. grep -v '^ *+' conftest.er1 >conftest.err
  15533. rm -f conftest.er1
  15534. cat conftest.err >&5
  15535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15536. (exit $ac_status); } && {
  15537. test -z "$ac_c_werror_flag" ||
  15538. test ! -s conftest.err
  15539. } && test -s conftest.$ac_objext; then
  15540. gl_cv_have_include_next=buggy
  15541. else
  15542. $as_echo "$as_me: failed program was:" >&5
  15543. sed 's/^/| /' conftest.$ac_ext >&5
  15544. gl_cv_have_include_next=no
  15545. fi
  15546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15547. fi
  15548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15549. CPPFLAGS="$gl_save_CPPFLAGS"
  15550. rm -rf conftestd1a conftestd1b conftestd2
  15551. fi
  15552. { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
  15553. $as_echo "$gl_cv_have_include_next" >&6; }
  15554. PRAGMA_SYSTEM_HEADER=
  15555. if test $gl_cv_have_include_next = yes; then
  15556. INCLUDE_NEXT=include_next
  15557. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  15558. if test -n "$GCC"; then
  15559. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  15560. fi
  15561. else
  15562. if test $gl_cv_have_include_next = buggy; then
  15563. INCLUDE_NEXT=include
  15564. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  15565. else
  15566. INCLUDE_NEXT=include
  15567. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  15568. fi
  15569. fi
  15570. { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
  15571. $as_echo_n "checking for complete errno.h... " >&6; }
  15572. if test "${gl_cv_header_errno_h_complete+set}" = set; then
  15573. $as_echo_n "(cached) " >&6
  15574. else
  15575. cat >conftest.$ac_ext <<_ACEOF
  15576. /* confdefs.h. */
  15577. _ACEOF
  15578. cat confdefs.h >>conftest.$ac_ext
  15579. cat >>conftest.$ac_ext <<_ACEOF
  15580. /* end confdefs.h. */
  15581. #include <errno.h>
  15582. #if !defined ENOMSG
  15583. booboo
  15584. #endif
  15585. #if !defined EIDRM
  15586. booboo
  15587. #endif
  15588. #if !defined ENOLINK
  15589. booboo
  15590. #endif
  15591. #if !defined EPROTO
  15592. booboo
  15593. #endif
  15594. #if !defined EMULTIHOP
  15595. booboo
  15596. #endif
  15597. #if !defined EBADMSG
  15598. booboo
  15599. #endif
  15600. #if !defined EOVERFLOW
  15601. booboo
  15602. #endif
  15603. #if !defined ENOTSUP
  15604. booboo
  15605. #endif
  15606. #if !defined ESTALE
  15607. booboo
  15608. #endif
  15609. #if !defined ECANCELED
  15610. booboo
  15611. #endif
  15612. _ACEOF
  15613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15614. $EGREP "booboo" >/dev/null 2>&1; then
  15615. gl_cv_header_errno_h_complete=no
  15616. else
  15617. gl_cv_header_errno_h_complete=yes
  15618. fi
  15619. rm -f conftest*
  15620. fi
  15621. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
  15622. $as_echo "$gl_cv_header_errno_h_complete" >&6; }
  15623. if test $gl_cv_header_errno_h_complete = yes; then
  15624. ERRNO_H=''
  15625. else
  15626. if test $gl_cv_have_include_next = yes; then
  15627. gl_cv_next_errno_h='<'errno.h'>'
  15628. else
  15629. { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
  15630. $as_echo_n "checking absolute name of <errno.h>... " >&6; }
  15631. if test "${gl_cv_next_errno_h+set}" = set; then
  15632. $as_echo_n "(cached) " >&6
  15633. else
  15634. if test $ac_cv_header_errno_h = yes; then
  15635. cat >conftest.$ac_ext <<_ACEOF
  15636. /* confdefs.h. */
  15637. _ACEOF
  15638. cat confdefs.h >>conftest.$ac_ext
  15639. cat >>conftest.$ac_ext <<_ACEOF
  15640. /* end confdefs.h. */
  15641. #include <errno.h>
  15642. _ACEOF
  15643. case "$host_os" in
  15644. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15645. *) gl_absname_cpp="$ac_cpp" ;;
  15646. esac
  15647. gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15648. sed -n '\#/errno.h#{
  15649. s#.*"\(.*/errno.h\)".*#\1#
  15650. s#^/[^/]#//&#
  15651. p
  15652. q
  15653. }'`'"'
  15654. else
  15655. gl_cv_next_errno_h='<'errno.h'>'
  15656. fi
  15657. fi
  15658. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
  15659. $as_echo "$gl_cv_next_errno_h" >&6; }
  15660. fi
  15661. NEXT_ERRNO_H=$gl_cv_next_errno_h
  15662. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15663. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15664. gl_next_as_first_directive='<'errno.h'>'
  15665. else
  15666. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15667. gl_next_as_first_directive=$gl_cv_next_errno_h
  15668. fi
  15669. NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
  15670. ERRNO_H='errno.h'
  15671. fi
  15672. if test -n "$ERRNO_H"; then
  15673. { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
  15674. $as_echo_n "checking for EMULTIHOP value... " >&6; }
  15675. if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
  15676. $as_echo_n "(cached) " >&6
  15677. else
  15678. cat >conftest.$ac_ext <<_ACEOF
  15679. /* confdefs.h. */
  15680. _ACEOF
  15681. cat confdefs.h >>conftest.$ac_ext
  15682. cat >>conftest.$ac_ext <<_ACEOF
  15683. /* end confdefs.h. */
  15684. #include <errno.h>
  15685. #ifdef EMULTIHOP
  15686. yes
  15687. #endif
  15688. _ACEOF
  15689. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15690. $EGREP "yes" >/dev/null 2>&1; then
  15691. gl_cv_header_errno_h_EMULTIHOP=yes
  15692. else
  15693. gl_cv_header_errno_h_EMULTIHOP=no
  15694. fi
  15695. rm -f conftest*
  15696. if test $gl_cv_header_errno_h_EMULTIHOP = no; then
  15697. cat >conftest.$ac_ext <<_ACEOF
  15698. /* confdefs.h. */
  15699. _ACEOF
  15700. cat confdefs.h >>conftest.$ac_ext
  15701. cat >>conftest.$ac_ext <<_ACEOF
  15702. /* end confdefs.h. */
  15703. #define _XOPEN_SOURCE_EXTENDED 1
  15704. #include <errno.h>
  15705. #ifdef EMULTIHOP
  15706. yes
  15707. #endif
  15708. _ACEOF
  15709. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15710. $EGREP "yes" >/dev/null 2>&1; then
  15711. gl_cv_header_errno_h_EMULTIHOP=hidden
  15712. fi
  15713. rm -f conftest*
  15714. if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
  15715. if test "$cross_compiling" = yes; then
  15716. # Depending upon the size, compute the lo and hi bounds.
  15717. cat >conftest.$ac_ext <<_ACEOF
  15718. /* confdefs.h. */
  15719. _ACEOF
  15720. cat confdefs.h >>conftest.$ac_ext
  15721. cat >>conftest.$ac_ext <<_ACEOF
  15722. /* end confdefs.h. */
  15723. #define _XOPEN_SOURCE_EXTENDED 1
  15724. #include <errno.h>
  15725. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15726. #include <stdio.h>
  15727. #include <stdlib.h>
  15728. int
  15729. main ()
  15730. {
  15731. static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
  15732. test_array [0] = 0
  15733. ;
  15734. return 0;
  15735. }
  15736. _ACEOF
  15737. rm -f conftest.$ac_objext
  15738. if { (ac_try="$ac_compile"
  15739. case "(($ac_try" in
  15740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15741. *) ac_try_echo=$ac_try;;
  15742. esac
  15743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15744. $as_echo "$ac_try_echo") >&5
  15745. (eval "$ac_compile") 2>conftest.er1
  15746. ac_status=$?
  15747. grep -v '^ *+' conftest.er1 >conftest.err
  15748. rm -f conftest.er1
  15749. cat conftest.err >&5
  15750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15751. (exit $ac_status); } && {
  15752. test -z "$ac_c_werror_flag" ||
  15753. test ! -s conftest.err
  15754. } && test -s conftest.$ac_objext; then
  15755. ac_lo=0 ac_mid=0
  15756. while :; do
  15757. cat >conftest.$ac_ext <<_ACEOF
  15758. /* confdefs.h. */
  15759. _ACEOF
  15760. cat confdefs.h >>conftest.$ac_ext
  15761. cat >>conftest.$ac_ext <<_ACEOF
  15762. /* end confdefs.h. */
  15763. #define _XOPEN_SOURCE_EXTENDED 1
  15764. #include <errno.h>
  15765. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15766. #include <stdio.h>
  15767. #include <stdlib.h>
  15768. int
  15769. main ()
  15770. {
  15771. static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
  15772. test_array [0] = 0
  15773. ;
  15774. return 0;
  15775. }
  15776. _ACEOF
  15777. rm -f conftest.$ac_objext
  15778. if { (ac_try="$ac_compile"
  15779. case "(($ac_try" in
  15780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15781. *) ac_try_echo=$ac_try;;
  15782. esac
  15783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15784. $as_echo "$ac_try_echo") >&5
  15785. (eval "$ac_compile") 2>conftest.er1
  15786. ac_status=$?
  15787. grep -v '^ *+' conftest.er1 >conftest.err
  15788. rm -f conftest.er1
  15789. cat conftest.err >&5
  15790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15791. (exit $ac_status); } && {
  15792. test -z "$ac_c_werror_flag" ||
  15793. test ! -s conftest.err
  15794. } && test -s conftest.$ac_objext; then
  15795. ac_hi=$ac_mid; break
  15796. else
  15797. $as_echo "$as_me: failed program was:" >&5
  15798. sed 's/^/| /' conftest.$ac_ext >&5
  15799. ac_lo=`expr $ac_mid + 1`
  15800. if test $ac_lo -le $ac_mid; then
  15801. ac_lo= ac_hi=
  15802. break
  15803. fi
  15804. ac_mid=`expr 2 '*' $ac_mid + 1`
  15805. fi
  15806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15807. done
  15808. else
  15809. $as_echo "$as_me: failed program was:" >&5
  15810. sed 's/^/| /' conftest.$ac_ext >&5
  15811. cat >conftest.$ac_ext <<_ACEOF
  15812. /* confdefs.h. */
  15813. _ACEOF
  15814. cat confdefs.h >>conftest.$ac_ext
  15815. cat >>conftest.$ac_ext <<_ACEOF
  15816. /* end confdefs.h. */
  15817. #define _XOPEN_SOURCE_EXTENDED 1
  15818. #include <errno.h>
  15819. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15820. #include <stdio.h>
  15821. #include <stdlib.h>
  15822. int
  15823. main ()
  15824. {
  15825. static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
  15826. test_array [0] = 0
  15827. ;
  15828. return 0;
  15829. }
  15830. _ACEOF
  15831. rm -f conftest.$ac_objext
  15832. if { (ac_try="$ac_compile"
  15833. case "(($ac_try" in
  15834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15835. *) ac_try_echo=$ac_try;;
  15836. esac
  15837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15838. $as_echo "$ac_try_echo") >&5
  15839. (eval "$ac_compile") 2>conftest.er1
  15840. ac_status=$?
  15841. grep -v '^ *+' conftest.er1 >conftest.err
  15842. rm -f conftest.er1
  15843. cat conftest.err >&5
  15844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15845. (exit $ac_status); } && {
  15846. test -z "$ac_c_werror_flag" ||
  15847. test ! -s conftest.err
  15848. } && test -s conftest.$ac_objext; then
  15849. ac_hi=-1 ac_mid=-1
  15850. while :; do
  15851. cat >conftest.$ac_ext <<_ACEOF
  15852. /* confdefs.h. */
  15853. _ACEOF
  15854. cat confdefs.h >>conftest.$ac_ext
  15855. cat >>conftest.$ac_ext <<_ACEOF
  15856. /* end confdefs.h. */
  15857. #define _XOPEN_SOURCE_EXTENDED 1
  15858. #include <errno.h>
  15859. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15860. #include <stdio.h>
  15861. #include <stdlib.h>
  15862. int
  15863. main ()
  15864. {
  15865. static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
  15866. test_array [0] = 0
  15867. ;
  15868. return 0;
  15869. }
  15870. _ACEOF
  15871. rm -f conftest.$ac_objext
  15872. if { (ac_try="$ac_compile"
  15873. case "(($ac_try" in
  15874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15875. *) ac_try_echo=$ac_try;;
  15876. esac
  15877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15878. $as_echo "$ac_try_echo") >&5
  15879. (eval "$ac_compile") 2>conftest.er1
  15880. ac_status=$?
  15881. grep -v '^ *+' conftest.er1 >conftest.err
  15882. rm -f conftest.er1
  15883. cat conftest.err >&5
  15884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15885. (exit $ac_status); } && {
  15886. test -z "$ac_c_werror_flag" ||
  15887. test ! -s conftest.err
  15888. } && test -s conftest.$ac_objext; then
  15889. ac_lo=$ac_mid; break
  15890. else
  15891. $as_echo "$as_me: failed program was:" >&5
  15892. sed 's/^/| /' conftest.$ac_ext >&5
  15893. ac_hi=`expr '(' $ac_mid ')' - 1`
  15894. if test $ac_mid -le $ac_hi; then
  15895. ac_lo= ac_hi=
  15896. break
  15897. fi
  15898. ac_mid=`expr 2 '*' $ac_mid`
  15899. fi
  15900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15901. done
  15902. else
  15903. $as_echo "$as_me: failed program was:" >&5
  15904. sed 's/^/| /' conftest.$ac_ext >&5
  15905. ac_lo= ac_hi=
  15906. fi
  15907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15908. fi
  15909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15910. # Binary search between lo and hi bounds.
  15911. while test "x$ac_lo" != "x$ac_hi"; do
  15912. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15913. cat >conftest.$ac_ext <<_ACEOF
  15914. /* confdefs.h. */
  15915. _ACEOF
  15916. cat confdefs.h >>conftest.$ac_ext
  15917. cat >>conftest.$ac_ext <<_ACEOF
  15918. /* end confdefs.h. */
  15919. #define _XOPEN_SOURCE_EXTENDED 1
  15920. #include <errno.h>
  15921. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15922. #include <stdio.h>
  15923. #include <stdlib.h>
  15924. int
  15925. main ()
  15926. {
  15927. static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
  15928. test_array [0] = 0
  15929. ;
  15930. return 0;
  15931. }
  15932. _ACEOF
  15933. rm -f conftest.$ac_objext
  15934. if { (ac_try="$ac_compile"
  15935. case "(($ac_try" in
  15936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15937. *) ac_try_echo=$ac_try;;
  15938. esac
  15939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15940. $as_echo "$ac_try_echo") >&5
  15941. (eval "$ac_compile") 2>conftest.er1
  15942. ac_status=$?
  15943. grep -v '^ *+' conftest.er1 >conftest.err
  15944. rm -f conftest.er1
  15945. cat conftest.err >&5
  15946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15947. (exit $ac_status); } && {
  15948. test -z "$ac_c_werror_flag" ||
  15949. test ! -s conftest.err
  15950. } && test -s conftest.$ac_objext; then
  15951. ac_hi=$ac_mid
  15952. else
  15953. $as_echo "$as_me: failed program was:" >&5
  15954. sed 's/^/| /' conftest.$ac_ext >&5
  15955. ac_lo=`expr '(' $ac_mid ')' + 1`
  15956. fi
  15957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15958. done
  15959. case $ac_lo in
  15960. ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
  15961. '') ;;
  15962. esac
  15963. else
  15964. cat >conftest.$ac_ext <<_ACEOF
  15965. /* confdefs.h. */
  15966. _ACEOF
  15967. cat confdefs.h >>conftest.$ac_ext
  15968. cat >>conftest.$ac_ext <<_ACEOF
  15969. /* end confdefs.h. */
  15970. #define _XOPEN_SOURCE_EXTENDED 1
  15971. #include <errno.h>
  15972. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  15973. #include <stdio.h>
  15974. #include <stdlib.h>
  15975. static long int longval () { return EMULTIHOP; }
  15976. static unsigned long int ulongval () { return EMULTIHOP; }
  15977. #include <stdio.h>
  15978. #include <stdlib.h>
  15979. int
  15980. main ()
  15981. {
  15982. FILE *f = fopen ("conftest.val", "w");
  15983. if (! f)
  15984. return 1;
  15985. if ((EMULTIHOP) < 0)
  15986. {
  15987. long int i = longval ();
  15988. if (i != (EMULTIHOP))
  15989. return 1;
  15990. fprintf (f, "%ld", i);
  15991. }
  15992. else
  15993. {
  15994. unsigned long int i = ulongval ();
  15995. if (i != (EMULTIHOP))
  15996. return 1;
  15997. fprintf (f, "%lu", i);
  15998. }
  15999. /* Do not output a trailing newline, as this causes \r\n confusion
  16000. on some platforms. */
  16001. return ferror (f) || fclose (f) != 0;
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. rm -f conftest$ac_exeext
  16007. if { (ac_try="$ac_link"
  16008. case "(($ac_try" in
  16009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16010. *) ac_try_echo=$ac_try;;
  16011. esac
  16012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16013. $as_echo "$ac_try_echo") >&5
  16014. (eval "$ac_link") 2>&5
  16015. ac_status=$?
  16016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16017. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16018. { (case "(($ac_try" in
  16019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16020. *) ac_try_echo=$ac_try;;
  16021. esac
  16022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16023. $as_echo "$ac_try_echo") >&5
  16024. (eval "$ac_try") 2>&5
  16025. ac_status=$?
  16026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16027. (exit $ac_status); }; }; then
  16028. gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
  16029. else
  16030. $as_echo "$as_me: program exited with status $ac_status" >&5
  16031. $as_echo "$as_me: failed program was:" >&5
  16032. sed 's/^/| /' conftest.$ac_ext >&5
  16033. fi
  16034. rm -rf conftest.dSYM
  16035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16036. fi
  16037. rm -f conftest.val
  16038. fi
  16039. fi
  16040. fi
  16041. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
  16042. $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
  16043. case $gl_cv_header_errno_h_EMULTIHOP in
  16044. yes | no)
  16045. EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
  16046. ;;
  16047. *)
  16048. EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
  16049. ;;
  16050. esac
  16051. fi
  16052. if test -n "$ERRNO_H"; then
  16053. { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
  16054. $as_echo_n "checking for ENOLINK value... " >&6; }
  16055. if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
  16056. $as_echo_n "(cached) " >&6
  16057. else
  16058. cat >conftest.$ac_ext <<_ACEOF
  16059. /* confdefs.h. */
  16060. _ACEOF
  16061. cat confdefs.h >>conftest.$ac_ext
  16062. cat >>conftest.$ac_ext <<_ACEOF
  16063. /* end confdefs.h. */
  16064. #include <errno.h>
  16065. #ifdef ENOLINK
  16066. yes
  16067. #endif
  16068. _ACEOF
  16069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16070. $EGREP "yes" >/dev/null 2>&1; then
  16071. gl_cv_header_errno_h_ENOLINK=yes
  16072. else
  16073. gl_cv_header_errno_h_ENOLINK=no
  16074. fi
  16075. rm -f conftest*
  16076. if test $gl_cv_header_errno_h_ENOLINK = no; then
  16077. cat >conftest.$ac_ext <<_ACEOF
  16078. /* confdefs.h. */
  16079. _ACEOF
  16080. cat confdefs.h >>conftest.$ac_ext
  16081. cat >>conftest.$ac_ext <<_ACEOF
  16082. /* end confdefs.h. */
  16083. #define _XOPEN_SOURCE_EXTENDED 1
  16084. #include <errno.h>
  16085. #ifdef ENOLINK
  16086. yes
  16087. #endif
  16088. _ACEOF
  16089. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16090. $EGREP "yes" >/dev/null 2>&1; then
  16091. gl_cv_header_errno_h_ENOLINK=hidden
  16092. fi
  16093. rm -f conftest*
  16094. if test $gl_cv_header_errno_h_ENOLINK = hidden; then
  16095. if test "$cross_compiling" = yes; then
  16096. # Depending upon the size, compute the lo and hi bounds.
  16097. cat >conftest.$ac_ext <<_ACEOF
  16098. /* confdefs.h. */
  16099. _ACEOF
  16100. cat confdefs.h >>conftest.$ac_ext
  16101. cat >>conftest.$ac_ext <<_ACEOF
  16102. /* end confdefs.h. */
  16103. #define _XOPEN_SOURCE_EXTENDED 1
  16104. #include <errno.h>
  16105. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16106. #include <stdio.h>
  16107. #include <stdlib.h>
  16108. int
  16109. main ()
  16110. {
  16111. static int test_array [1 - 2 * !((ENOLINK) >= 0)];
  16112. test_array [0] = 0
  16113. ;
  16114. return 0;
  16115. }
  16116. _ACEOF
  16117. rm -f conftest.$ac_objext
  16118. if { (ac_try="$ac_compile"
  16119. case "(($ac_try" in
  16120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16121. *) ac_try_echo=$ac_try;;
  16122. esac
  16123. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16124. $as_echo "$ac_try_echo") >&5
  16125. (eval "$ac_compile") 2>conftest.er1
  16126. ac_status=$?
  16127. grep -v '^ *+' conftest.er1 >conftest.err
  16128. rm -f conftest.er1
  16129. cat conftest.err >&5
  16130. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. (exit $ac_status); } && {
  16132. test -z "$ac_c_werror_flag" ||
  16133. test ! -s conftest.err
  16134. } && test -s conftest.$ac_objext; then
  16135. ac_lo=0 ac_mid=0
  16136. while :; do
  16137. cat >conftest.$ac_ext <<_ACEOF
  16138. /* confdefs.h. */
  16139. _ACEOF
  16140. cat confdefs.h >>conftest.$ac_ext
  16141. cat >>conftest.$ac_ext <<_ACEOF
  16142. /* end confdefs.h. */
  16143. #define _XOPEN_SOURCE_EXTENDED 1
  16144. #include <errno.h>
  16145. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16146. #include <stdio.h>
  16147. #include <stdlib.h>
  16148. int
  16149. main ()
  16150. {
  16151. static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
  16152. test_array [0] = 0
  16153. ;
  16154. return 0;
  16155. }
  16156. _ACEOF
  16157. rm -f conftest.$ac_objext
  16158. if { (ac_try="$ac_compile"
  16159. case "(($ac_try" in
  16160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16161. *) ac_try_echo=$ac_try;;
  16162. esac
  16163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16164. $as_echo "$ac_try_echo") >&5
  16165. (eval "$ac_compile") 2>conftest.er1
  16166. ac_status=$?
  16167. grep -v '^ *+' conftest.er1 >conftest.err
  16168. rm -f conftest.er1
  16169. cat conftest.err >&5
  16170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16171. (exit $ac_status); } && {
  16172. test -z "$ac_c_werror_flag" ||
  16173. test ! -s conftest.err
  16174. } && test -s conftest.$ac_objext; then
  16175. ac_hi=$ac_mid; break
  16176. else
  16177. $as_echo "$as_me: failed program was:" >&5
  16178. sed 's/^/| /' conftest.$ac_ext >&5
  16179. ac_lo=`expr $ac_mid + 1`
  16180. if test $ac_lo -le $ac_mid; then
  16181. ac_lo= ac_hi=
  16182. break
  16183. fi
  16184. ac_mid=`expr 2 '*' $ac_mid + 1`
  16185. fi
  16186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16187. done
  16188. else
  16189. $as_echo "$as_me: failed program was:" >&5
  16190. sed 's/^/| /' conftest.$ac_ext >&5
  16191. cat >conftest.$ac_ext <<_ACEOF
  16192. /* confdefs.h. */
  16193. _ACEOF
  16194. cat confdefs.h >>conftest.$ac_ext
  16195. cat >>conftest.$ac_ext <<_ACEOF
  16196. /* end confdefs.h. */
  16197. #define _XOPEN_SOURCE_EXTENDED 1
  16198. #include <errno.h>
  16199. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16200. #include <stdio.h>
  16201. #include <stdlib.h>
  16202. int
  16203. main ()
  16204. {
  16205. static int test_array [1 - 2 * !((ENOLINK) < 0)];
  16206. test_array [0] = 0
  16207. ;
  16208. return 0;
  16209. }
  16210. _ACEOF
  16211. rm -f conftest.$ac_objext
  16212. if { (ac_try="$ac_compile"
  16213. case "(($ac_try" in
  16214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16215. *) ac_try_echo=$ac_try;;
  16216. esac
  16217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16218. $as_echo "$ac_try_echo") >&5
  16219. (eval "$ac_compile") 2>conftest.er1
  16220. ac_status=$?
  16221. grep -v '^ *+' conftest.er1 >conftest.err
  16222. rm -f conftest.er1
  16223. cat conftest.err >&5
  16224. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16225. (exit $ac_status); } && {
  16226. test -z "$ac_c_werror_flag" ||
  16227. test ! -s conftest.err
  16228. } && test -s conftest.$ac_objext; then
  16229. ac_hi=-1 ac_mid=-1
  16230. while :; do
  16231. cat >conftest.$ac_ext <<_ACEOF
  16232. /* confdefs.h. */
  16233. _ACEOF
  16234. cat confdefs.h >>conftest.$ac_ext
  16235. cat >>conftest.$ac_ext <<_ACEOF
  16236. /* end confdefs.h. */
  16237. #define _XOPEN_SOURCE_EXTENDED 1
  16238. #include <errno.h>
  16239. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16240. #include <stdio.h>
  16241. #include <stdlib.h>
  16242. int
  16243. main ()
  16244. {
  16245. static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
  16246. test_array [0] = 0
  16247. ;
  16248. return 0;
  16249. }
  16250. _ACEOF
  16251. rm -f conftest.$ac_objext
  16252. if { (ac_try="$ac_compile"
  16253. case "(($ac_try" in
  16254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16255. *) ac_try_echo=$ac_try;;
  16256. esac
  16257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16258. $as_echo "$ac_try_echo") >&5
  16259. (eval "$ac_compile") 2>conftest.er1
  16260. ac_status=$?
  16261. grep -v '^ *+' conftest.er1 >conftest.err
  16262. rm -f conftest.er1
  16263. cat conftest.err >&5
  16264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16265. (exit $ac_status); } && {
  16266. test -z "$ac_c_werror_flag" ||
  16267. test ! -s conftest.err
  16268. } && test -s conftest.$ac_objext; then
  16269. ac_lo=$ac_mid; break
  16270. else
  16271. $as_echo "$as_me: failed program was:" >&5
  16272. sed 's/^/| /' conftest.$ac_ext >&5
  16273. ac_hi=`expr '(' $ac_mid ')' - 1`
  16274. if test $ac_mid -le $ac_hi; then
  16275. ac_lo= ac_hi=
  16276. break
  16277. fi
  16278. ac_mid=`expr 2 '*' $ac_mid`
  16279. fi
  16280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16281. done
  16282. else
  16283. $as_echo "$as_me: failed program was:" >&5
  16284. sed 's/^/| /' conftest.$ac_ext >&5
  16285. ac_lo= ac_hi=
  16286. fi
  16287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16288. fi
  16289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16290. # Binary search between lo and hi bounds.
  16291. while test "x$ac_lo" != "x$ac_hi"; do
  16292. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  16293. cat >conftest.$ac_ext <<_ACEOF
  16294. /* confdefs.h. */
  16295. _ACEOF
  16296. cat confdefs.h >>conftest.$ac_ext
  16297. cat >>conftest.$ac_ext <<_ACEOF
  16298. /* end confdefs.h. */
  16299. #define _XOPEN_SOURCE_EXTENDED 1
  16300. #include <errno.h>
  16301. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16302. #include <stdio.h>
  16303. #include <stdlib.h>
  16304. int
  16305. main ()
  16306. {
  16307. static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
  16308. test_array [0] = 0
  16309. ;
  16310. return 0;
  16311. }
  16312. _ACEOF
  16313. rm -f conftest.$ac_objext
  16314. if { (ac_try="$ac_compile"
  16315. case "(($ac_try" in
  16316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16317. *) ac_try_echo=$ac_try;;
  16318. esac
  16319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16320. $as_echo "$ac_try_echo") >&5
  16321. (eval "$ac_compile") 2>conftest.er1
  16322. ac_status=$?
  16323. grep -v '^ *+' conftest.er1 >conftest.err
  16324. rm -f conftest.er1
  16325. cat conftest.err >&5
  16326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16327. (exit $ac_status); } && {
  16328. test -z "$ac_c_werror_flag" ||
  16329. test ! -s conftest.err
  16330. } && test -s conftest.$ac_objext; then
  16331. ac_hi=$ac_mid
  16332. else
  16333. $as_echo "$as_me: failed program was:" >&5
  16334. sed 's/^/| /' conftest.$ac_ext >&5
  16335. ac_lo=`expr '(' $ac_mid ')' + 1`
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16338. done
  16339. case $ac_lo in
  16340. ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
  16341. '') ;;
  16342. esac
  16343. else
  16344. cat >conftest.$ac_ext <<_ACEOF
  16345. /* confdefs.h. */
  16346. _ACEOF
  16347. cat confdefs.h >>conftest.$ac_ext
  16348. cat >>conftest.$ac_ext <<_ACEOF
  16349. /* end confdefs.h. */
  16350. #define _XOPEN_SOURCE_EXTENDED 1
  16351. #include <errno.h>
  16352. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16353. #include <stdio.h>
  16354. #include <stdlib.h>
  16355. static long int longval () { return ENOLINK; }
  16356. static unsigned long int ulongval () { return ENOLINK; }
  16357. #include <stdio.h>
  16358. #include <stdlib.h>
  16359. int
  16360. main ()
  16361. {
  16362. FILE *f = fopen ("conftest.val", "w");
  16363. if (! f)
  16364. return 1;
  16365. if ((ENOLINK) < 0)
  16366. {
  16367. long int i = longval ();
  16368. if (i != (ENOLINK))
  16369. return 1;
  16370. fprintf (f, "%ld", i);
  16371. }
  16372. else
  16373. {
  16374. unsigned long int i = ulongval ();
  16375. if (i != (ENOLINK))
  16376. return 1;
  16377. fprintf (f, "%lu", i);
  16378. }
  16379. /* Do not output a trailing newline, as this causes \r\n confusion
  16380. on some platforms. */
  16381. return ferror (f) || fclose (f) != 0;
  16382. ;
  16383. return 0;
  16384. }
  16385. _ACEOF
  16386. rm -f conftest$ac_exeext
  16387. if { (ac_try="$ac_link"
  16388. case "(($ac_try" in
  16389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16390. *) ac_try_echo=$ac_try;;
  16391. esac
  16392. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16393. $as_echo "$ac_try_echo") >&5
  16394. (eval "$ac_link") 2>&5
  16395. ac_status=$?
  16396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16397. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16398. { (case "(($ac_try" in
  16399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16400. *) ac_try_echo=$ac_try;;
  16401. esac
  16402. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16403. $as_echo "$ac_try_echo") >&5
  16404. (eval "$ac_try") 2>&5
  16405. ac_status=$?
  16406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16407. (exit $ac_status); }; }; then
  16408. gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
  16409. else
  16410. $as_echo "$as_me: program exited with status $ac_status" >&5
  16411. $as_echo "$as_me: failed program was:" >&5
  16412. sed 's/^/| /' conftest.$ac_ext >&5
  16413. fi
  16414. rm -rf conftest.dSYM
  16415. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16416. fi
  16417. rm -f conftest.val
  16418. fi
  16419. fi
  16420. fi
  16421. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
  16422. $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
  16423. case $gl_cv_header_errno_h_ENOLINK in
  16424. yes | no)
  16425. ENOLINK_HIDDEN=0; ENOLINK_VALUE=
  16426. ;;
  16427. *)
  16428. ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
  16429. ;;
  16430. esac
  16431. fi
  16432. if test -n "$ERRNO_H"; then
  16433. { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
  16434. $as_echo_n "checking for EOVERFLOW value... " >&6; }
  16435. if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
  16436. $as_echo_n "(cached) " >&6
  16437. else
  16438. cat >conftest.$ac_ext <<_ACEOF
  16439. /* confdefs.h. */
  16440. _ACEOF
  16441. cat confdefs.h >>conftest.$ac_ext
  16442. cat >>conftest.$ac_ext <<_ACEOF
  16443. /* end confdefs.h. */
  16444. #include <errno.h>
  16445. #ifdef EOVERFLOW
  16446. yes
  16447. #endif
  16448. _ACEOF
  16449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16450. $EGREP "yes" >/dev/null 2>&1; then
  16451. gl_cv_header_errno_h_EOVERFLOW=yes
  16452. else
  16453. gl_cv_header_errno_h_EOVERFLOW=no
  16454. fi
  16455. rm -f conftest*
  16456. if test $gl_cv_header_errno_h_EOVERFLOW = no; then
  16457. cat >conftest.$ac_ext <<_ACEOF
  16458. /* confdefs.h. */
  16459. _ACEOF
  16460. cat confdefs.h >>conftest.$ac_ext
  16461. cat >>conftest.$ac_ext <<_ACEOF
  16462. /* end confdefs.h. */
  16463. #define _XOPEN_SOURCE_EXTENDED 1
  16464. #include <errno.h>
  16465. #ifdef EOVERFLOW
  16466. yes
  16467. #endif
  16468. _ACEOF
  16469. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16470. $EGREP "yes" >/dev/null 2>&1; then
  16471. gl_cv_header_errno_h_EOVERFLOW=hidden
  16472. fi
  16473. rm -f conftest*
  16474. if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
  16475. if test "$cross_compiling" = yes; then
  16476. # Depending upon the size, compute the lo and hi bounds.
  16477. cat >conftest.$ac_ext <<_ACEOF
  16478. /* confdefs.h. */
  16479. _ACEOF
  16480. cat confdefs.h >>conftest.$ac_ext
  16481. cat >>conftest.$ac_ext <<_ACEOF
  16482. /* end confdefs.h. */
  16483. #define _XOPEN_SOURCE_EXTENDED 1
  16484. #include <errno.h>
  16485. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16486. #include <stdio.h>
  16487. #include <stdlib.h>
  16488. int
  16489. main ()
  16490. {
  16491. static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
  16492. test_array [0] = 0
  16493. ;
  16494. return 0;
  16495. }
  16496. _ACEOF
  16497. rm -f conftest.$ac_objext
  16498. if { (ac_try="$ac_compile"
  16499. case "(($ac_try" in
  16500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16501. *) ac_try_echo=$ac_try;;
  16502. esac
  16503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16504. $as_echo "$ac_try_echo") >&5
  16505. (eval "$ac_compile") 2>conftest.er1
  16506. ac_status=$?
  16507. grep -v '^ *+' conftest.er1 >conftest.err
  16508. rm -f conftest.er1
  16509. cat conftest.err >&5
  16510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16511. (exit $ac_status); } && {
  16512. test -z "$ac_c_werror_flag" ||
  16513. test ! -s conftest.err
  16514. } && test -s conftest.$ac_objext; then
  16515. ac_lo=0 ac_mid=0
  16516. while :; do
  16517. cat >conftest.$ac_ext <<_ACEOF
  16518. /* confdefs.h. */
  16519. _ACEOF
  16520. cat confdefs.h >>conftest.$ac_ext
  16521. cat >>conftest.$ac_ext <<_ACEOF
  16522. /* end confdefs.h. */
  16523. #define _XOPEN_SOURCE_EXTENDED 1
  16524. #include <errno.h>
  16525. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16526. #include <stdio.h>
  16527. #include <stdlib.h>
  16528. int
  16529. main ()
  16530. {
  16531. static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
  16532. test_array [0] = 0
  16533. ;
  16534. return 0;
  16535. }
  16536. _ACEOF
  16537. rm -f conftest.$ac_objext
  16538. if { (ac_try="$ac_compile"
  16539. case "(($ac_try" in
  16540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16541. *) ac_try_echo=$ac_try;;
  16542. esac
  16543. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16544. $as_echo "$ac_try_echo") >&5
  16545. (eval "$ac_compile") 2>conftest.er1
  16546. ac_status=$?
  16547. grep -v '^ *+' conftest.er1 >conftest.err
  16548. rm -f conftest.er1
  16549. cat conftest.err >&5
  16550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16551. (exit $ac_status); } && {
  16552. test -z "$ac_c_werror_flag" ||
  16553. test ! -s conftest.err
  16554. } && test -s conftest.$ac_objext; then
  16555. ac_hi=$ac_mid; break
  16556. else
  16557. $as_echo "$as_me: failed program was:" >&5
  16558. sed 's/^/| /' conftest.$ac_ext >&5
  16559. ac_lo=`expr $ac_mid + 1`
  16560. if test $ac_lo -le $ac_mid; then
  16561. ac_lo= ac_hi=
  16562. break
  16563. fi
  16564. ac_mid=`expr 2 '*' $ac_mid + 1`
  16565. fi
  16566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16567. done
  16568. else
  16569. $as_echo "$as_me: failed program was:" >&5
  16570. sed 's/^/| /' conftest.$ac_ext >&5
  16571. cat >conftest.$ac_ext <<_ACEOF
  16572. /* confdefs.h. */
  16573. _ACEOF
  16574. cat confdefs.h >>conftest.$ac_ext
  16575. cat >>conftest.$ac_ext <<_ACEOF
  16576. /* end confdefs.h. */
  16577. #define _XOPEN_SOURCE_EXTENDED 1
  16578. #include <errno.h>
  16579. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16580. #include <stdio.h>
  16581. #include <stdlib.h>
  16582. int
  16583. main ()
  16584. {
  16585. static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
  16586. test_array [0] = 0
  16587. ;
  16588. return 0;
  16589. }
  16590. _ACEOF
  16591. rm -f conftest.$ac_objext
  16592. if { (ac_try="$ac_compile"
  16593. case "(($ac_try" in
  16594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16595. *) ac_try_echo=$ac_try;;
  16596. esac
  16597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16598. $as_echo "$ac_try_echo") >&5
  16599. (eval "$ac_compile") 2>conftest.er1
  16600. ac_status=$?
  16601. grep -v '^ *+' conftest.er1 >conftest.err
  16602. rm -f conftest.er1
  16603. cat conftest.err >&5
  16604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16605. (exit $ac_status); } && {
  16606. test -z "$ac_c_werror_flag" ||
  16607. test ! -s conftest.err
  16608. } && test -s conftest.$ac_objext; then
  16609. ac_hi=-1 ac_mid=-1
  16610. while :; do
  16611. cat >conftest.$ac_ext <<_ACEOF
  16612. /* confdefs.h. */
  16613. _ACEOF
  16614. cat confdefs.h >>conftest.$ac_ext
  16615. cat >>conftest.$ac_ext <<_ACEOF
  16616. /* end confdefs.h. */
  16617. #define _XOPEN_SOURCE_EXTENDED 1
  16618. #include <errno.h>
  16619. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16620. #include <stdio.h>
  16621. #include <stdlib.h>
  16622. int
  16623. main ()
  16624. {
  16625. static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
  16626. test_array [0] = 0
  16627. ;
  16628. return 0;
  16629. }
  16630. _ACEOF
  16631. rm -f conftest.$ac_objext
  16632. if { (ac_try="$ac_compile"
  16633. case "(($ac_try" in
  16634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16635. *) ac_try_echo=$ac_try;;
  16636. esac
  16637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16638. $as_echo "$ac_try_echo") >&5
  16639. (eval "$ac_compile") 2>conftest.er1
  16640. ac_status=$?
  16641. grep -v '^ *+' conftest.er1 >conftest.err
  16642. rm -f conftest.er1
  16643. cat conftest.err >&5
  16644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16645. (exit $ac_status); } && {
  16646. test -z "$ac_c_werror_flag" ||
  16647. test ! -s conftest.err
  16648. } && test -s conftest.$ac_objext; then
  16649. ac_lo=$ac_mid; break
  16650. else
  16651. $as_echo "$as_me: failed program was:" >&5
  16652. sed 's/^/| /' conftest.$ac_ext >&5
  16653. ac_hi=`expr '(' $ac_mid ')' - 1`
  16654. if test $ac_mid -le $ac_hi; then
  16655. ac_lo= ac_hi=
  16656. break
  16657. fi
  16658. ac_mid=`expr 2 '*' $ac_mid`
  16659. fi
  16660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16661. done
  16662. else
  16663. $as_echo "$as_me: failed program was:" >&5
  16664. sed 's/^/| /' conftest.$ac_ext >&5
  16665. ac_lo= ac_hi=
  16666. fi
  16667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16668. fi
  16669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16670. # Binary search between lo and hi bounds.
  16671. while test "x$ac_lo" != "x$ac_hi"; do
  16672. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  16673. cat >conftest.$ac_ext <<_ACEOF
  16674. /* confdefs.h. */
  16675. _ACEOF
  16676. cat confdefs.h >>conftest.$ac_ext
  16677. cat >>conftest.$ac_ext <<_ACEOF
  16678. /* end confdefs.h. */
  16679. #define _XOPEN_SOURCE_EXTENDED 1
  16680. #include <errno.h>
  16681. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16682. #include <stdio.h>
  16683. #include <stdlib.h>
  16684. int
  16685. main ()
  16686. {
  16687. static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
  16688. test_array [0] = 0
  16689. ;
  16690. return 0;
  16691. }
  16692. _ACEOF
  16693. rm -f conftest.$ac_objext
  16694. if { (ac_try="$ac_compile"
  16695. case "(($ac_try" in
  16696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16697. *) ac_try_echo=$ac_try;;
  16698. esac
  16699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16700. $as_echo "$ac_try_echo") >&5
  16701. (eval "$ac_compile") 2>conftest.er1
  16702. ac_status=$?
  16703. grep -v '^ *+' conftest.er1 >conftest.err
  16704. rm -f conftest.er1
  16705. cat conftest.err >&5
  16706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16707. (exit $ac_status); } && {
  16708. test -z "$ac_c_werror_flag" ||
  16709. test ! -s conftest.err
  16710. } && test -s conftest.$ac_objext; then
  16711. ac_hi=$ac_mid
  16712. else
  16713. $as_echo "$as_me: failed program was:" >&5
  16714. sed 's/^/| /' conftest.$ac_ext >&5
  16715. ac_lo=`expr '(' $ac_mid ')' + 1`
  16716. fi
  16717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16718. done
  16719. case $ac_lo in
  16720. ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
  16721. '') ;;
  16722. esac
  16723. else
  16724. cat >conftest.$ac_ext <<_ACEOF
  16725. /* confdefs.h. */
  16726. _ACEOF
  16727. cat confdefs.h >>conftest.$ac_ext
  16728. cat >>conftest.$ac_ext <<_ACEOF
  16729. /* end confdefs.h. */
  16730. #define _XOPEN_SOURCE_EXTENDED 1
  16731. #include <errno.h>
  16732. /* The following two lines are a workaround against an autoconf-2.52 bug. */
  16733. #include <stdio.h>
  16734. #include <stdlib.h>
  16735. static long int longval () { return EOVERFLOW; }
  16736. static unsigned long int ulongval () { return EOVERFLOW; }
  16737. #include <stdio.h>
  16738. #include <stdlib.h>
  16739. int
  16740. main ()
  16741. {
  16742. FILE *f = fopen ("conftest.val", "w");
  16743. if (! f)
  16744. return 1;
  16745. if ((EOVERFLOW) < 0)
  16746. {
  16747. long int i = longval ();
  16748. if (i != (EOVERFLOW))
  16749. return 1;
  16750. fprintf (f, "%ld", i);
  16751. }
  16752. else
  16753. {
  16754. unsigned long int i = ulongval ();
  16755. if (i != (EOVERFLOW))
  16756. return 1;
  16757. fprintf (f, "%lu", i);
  16758. }
  16759. /* Do not output a trailing newline, as this causes \r\n confusion
  16760. on some platforms. */
  16761. return ferror (f) || fclose (f) != 0;
  16762. ;
  16763. return 0;
  16764. }
  16765. _ACEOF
  16766. rm -f conftest$ac_exeext
  16767. if { (ac_try="$ac_link"
  16768. case "(($ac_try" in
  16769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16770. *) ac_try_echo=$ac_try;;
  16771. esac
  16772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16773. $as_echo "$ac_try_echo") >&5
  16774. (eval "$ac_link") 2>&5
  16775. ac_status=$?
  16776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16777. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16778. { (case "(($ac_try" in
  16779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16780. *) ac_try_echo=$ac_try;;
  16781. esac
  16782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16783. $as_echo "$ac_try_echo") >&5
  16784. (eval "$ac_try") 2>&5
  16785. ac_status=$?
  16786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16787. (exit $ac_status); }; }; then
  16788. gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
  16789. else
  16790. $as_echo "$as_me: program exited with status $ac_status" >&5
  16791. $as_echo "$as_me: failed program was:" >&5
  16792. sed 's/^/| /' conftest.$ac_ext >&5
  16793. fi
  16794. rm -rf conftest.dSYM
  16795. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16796. fi
  16797. rm -f conftest.val
  16798. fi
  16799. fi
  16800. fi
  16801. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
  16802. $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
  16803. case $gl_cv_header_errno_h_EOVERFLOW in
  16804. yes | no)
  16805. EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
  16806. ;;
  16807. *)
  16808. EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
  16809. ;;
  16810. esac
  16811. fi
  16812. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  16813. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  16814. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  16815. $as_echo_n "(cached) " >&6
  16816. else
  16817. cat >conftest.$ac_ext <<_ACEOF
  16818. /* confdefs.h. */
  16819. _ACEOF
  16820. cat confdefs.h >>conftest.$ac_ext
  16821. cat >>conftest.$ac_ext <<_ACEOF
  16822. /* end confdefs.h. */
  16823. $ac_includes_default
  16824. int
  16825. main ()
  16826. {
  16827. #ifndef strerror_r
  16828. (void) strerror_r;
  16829. #endif
  16830. ;
  16831. return 0;
  16832. }
  16833. _ACEOF
  16834. rm -f conftest.$ac_objext
  16835. if { (ac_try="$ac_compile"
  16836. case "(($ac_try" in
  16837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16838. *) ac_try_echo=$ac_try;;
  16839. esac
  16840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16841. $as_echo "$ac_try_echo") >&5
  16842. (eval "$ac_compile") 2>conftest.er1
  16843. ac_status=$?
  16844. grep -v '^ *+' conftest.er1 >conftest.err
  16845. rm -f conftest.er1
  16846. cat conftest.err >&5
  16847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16848. (exit $ac_status); } && {
  16849. test -z "$ac_c_werror_flag" ||
  16850. test ! -s conftest.err
  16851. } && test -s conftest.$ac_objext; then
  16852. ac_cv_have_decl_strerror_r=yes
  16853. else
  16854. $as_echo "$as_me: failed program was:" >&5
  16855. sed 's/^/| /' conftest.$ac_ext >&5
  16856. ac_cv_have_decl_strerror_r=no
  16857. fi
  16858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16859. fi
  16860. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  16861. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  16862. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  16863. cat >>confdefs.h <<_ACEOF
  16864. #define HAVE_DECL_STRERROR_R 1
  16865. _ACEOF
  16866. else
  16867. cat >>confdefs.h <<_ACEOF
  16868. #define HAVE_DECL_STRERROR_R 0
  16869. _ACEOF
  16870. fi
  16871. for ac_func in strerror_r
  16872. do
  16873. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16874. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16875. $as_echo_n "checking for $ac_func... " >&6; }
  16876. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16877. $as_echo_n "(cached) " >&6
  16878. else
  16879. cat >conftest.$ac_ext <<_ACEOF
  16880. /* confdefs.h. */
  16881. _ACEOF
  16882. cat confdefs.h >>conftest.$ac_ext
  16883. cat >>conftest.$ac_ext <<_ACEOF
  16884. /* end confdefs.h. */
  16885. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16887. #define $ac_func innocuous_$ac_func
  16888. /* System header to define __stub macros and hopefully few prototypes,
  16889. which can conflict with char $ac_func (); below.
  16890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16891. <limits.h> exists even on freestanding compilers. */
  16892. #ifdef __STDC__
  16893. # include <limits.h>
  16894. #else
  16895. # include <assert.h>
  16896. #endif
  16897. #undef $ac_func
  16898. /* Override any GCC internal prototype to avoid an error.
  16899. Use char because int might match the return type of a GCC
  16900. builtin and then its argument prototype would still apply. */
  16901. #ifdef __cplusplus
  16902. extern "C"
  16903. #endif
  16904. char $ac_func ();
  16905. /* The GNU C library defines this for functions which it implements
  16906. to always fail with ENOSYS. Some functions are actually named
  16907. something starting with __ and the normal name is an alias. */
  16908. #if defined __stub_$ac_func || defined __stub___$ac_func
  16909. choke me
  16910. #endif
  16911. int
  16912. main ()
  16913. {
  16914. return $ac_func ();
  16915. ;
  16916. return 0;
  16917. }
  16918. _ACEOF
  16919. rm -f conftest.$ac_objext conftest$ac_exeext
  16920. if { (ac_try="$ac_link"
  16921. case "(($ac_try" in
  16922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16923. *) ac_try_echo=$ac_try;;
  16924. esac
  16925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16926. $as_echo "$ac_try_echo") >&5
  16927. (eval "$ac_link") 2>conftest.er1
  16928. ac_status=$?
  16929. grep -v '^ *+' conftest.er1 >conftest.err
  16930. rm -f conftest.er1
  16931. cat conftest.err >&5
  16932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16933. (exit $ac_status); } && {
  16934. test -z "$ac_c_werror_flag" ||
  16935. test ! -s conftest.err
  16936. } && test -s conftest$ac_exeext && {
  16937. test "$cross_compiling" = yes ||
  16938. $as_test_x conftest$ac_exeext
  16939. }; then
  16940. eval "$as_ac_var=yes"
  16941. else
  16942. $as_echo "$as_me: failed program was:" >&5
  16943. sed 's/^/| /' conftest.$ac_ext >&5
  16944. eval "$as_ac_var=no"
  16945. fi
  16946. rm -rf conftest.dSYM
  16947. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16948. conftest$ac_exeext conftest.$ac_ext
  16949. fi
  16950. ac_res=`eval 'as_val=${'$as_ac_var'}
  16951. $as_echo "$as_val"'`
  16952. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16953. $as_echo "$ac_res" >&6; }
  16954. as_val=`eval 'as_val=${'$as_ac_var'}
  16955. $as_echo "$as_val"'`
  16956. if test "x$as_val" = x""yes; then
  16957. cat >>confdefs.h <<_ACEOF
  16958. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16959. _ACEOF
  16960. fi
  16961. done
  16962. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  16963. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  16964. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  16965. $as_echo_n "(cached) " >&6
  16966. else
  16967. ac_cv_func_strerror_r_char_p=no
  16968. if test $ac_cv_have_decl_strerror_r = yes; then
  16969. cat >conftest.$ac_ext <<_ACEOF
  16970. /* confdefs.h. */
  16971. _ACEOF
  16972. cat confdefs.h >>conftest.$ac_ext
  16973. cat >>conftest.$ac_ext <<_ACEOF
  16974. /* end confdefs.h. */
  16975. $ac_includes_default
  16976. int
  16977. main ()
  16978. {
  16979. char buf[100];
  16980. char x = *strerror_r (0, buf, sizeof buf);
  16981. char *p = strerror_r (0, buf, sizeof buf);
  16982. return !p || x;
  16983. ;
  16984. return 0;
  16985. }
  16986. _ACEOF
  16987. rm -f conftest.$ac_objext
  16988. if { (ac_try="$ac_compile"
  16989. case "(($ac_try" in
  16990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16991. *) ac_try_echo=$ac_try;;
  16992. esac
  16993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16994. $as_echo "$ac_try_echo") >&5
  16995. (eval "$ac_compile") 2>conftest.er1
  16996. ac_status=$?
  16997. grep -v '^ *+' conftest.er1 >conftest.err
  16998. rm -f conftest.er1
  16999. cat conftest.err >&5
  17000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17001. (exit $ac_status); } && {
  17002. test -z "$ac_c_werror_flag" ||
  17003. test ! -s conftest.err
  17004. } && test -s conftest.$ac_objext; then
  17005. ac_cv_func_strerror_r_char_p=yes
  17006. else
  17007. $as_echo "$as_me: failed program was:" >&5
  17008. sed 's/^/| /' conftest.$ac_ext >&5
  17009. fi
  17010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17011. else
  17012. # strerror_r is not declared. Choose between
  17013. # systems that have relatively inaccessible declarations for the
  17014. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  17015. # former has a strerror_r that returns char*, while the latter
  17016. # has a strerror_r that returns `int'.
  17017. # This test should segfault on the DEC system.
  17018. if test "$cross_compiling" = yes; then
  17019. :
  17020. else
  17021. cat >conftest.$ac_ext <<_ACEOF
  17022. /* confdefs.h. */
  17023. _ACEOF
  17024. cat confdefs.h >>conftest.$ac_ext
  17025. cat >>conftest.$ac_ext <<_ACEOF
  17026. /* end confdefs.h. */
  17027. $ac_includes_default
  17028. extern char *strerror_r ();
  17029. int
  17030. main ()
  17031. {
  17032. char buf[100];
  17033. char x = *strerror_r (0, buf, sizeof buf);
  17034. return ! isalpha (x);
  17035. ;
  17036. return 0;
  17037. }
  17038. _ACEOF
  17039. rm -f conftest$ac_exeext
  17040. if { (ac_try="$ac_link"
  17041. case "(($ac_try" in
  17042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17043. *) ac_try_echo=$ac_try;;
  17044. esac
  17045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17046. $as_echo "$ac_try_echo") >&5
  17047. (eval "$ac_link") 2>&5
  17048. ac_status=$?
  17049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17050. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17051. { (case "(($ac_try" in
  17052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17053. *) ac_try_echo=$ac_try;;
  17054. esac
  17055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17056. $as_echo "$ac_try_echo") >&5
  17057. (eval "$ac_try") 2>&5
  17058. ac_status=$?
  17059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17060. (exit $ac_status); }; }; then
  17061. ac_cv_func_strerror_r_char_p=yes
  17062. else
  17063. $as_echo "$as_me: program exited with status $ac_status" >&5
  17064. $as_echo "$as_me: failed program was:" >&5
  17065. sed 's/^/| /' conftest.$ac_ext >&5
  17066. fi
  17067. rm -rf conftest.dSYM
  17068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17069. fi
  17070. fi
  17071. fi
  17072. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  17073. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  17074. if test $ac_cv_func_strerror_r_char_p = yes; then
  17075. cat >>confdefs.h <<\_ACEOF
  17076. #define STRERROR_R_CHAR_P 1
  17077. _ACEOF
  17078. fi
  17079. XGETTEXT_EXTRA_OPTIONS=
  17080. { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
  17081. $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
  17082. if test "${gl_cv_func_malloc_posix+set}" = set; then
  17083. $as_echo_n "(cached) " >&6
  17084. else
  17085. cat >conftest.$ac_ext <<_ACEOF
  17086. /* confdefs.h. */
  17087. _ACEOF
  17088. cat confdefs.h >>conftest.$ac_ext
  17089. cat >>conftest.$ac_ext <<_ACEOF
  17090. /* end confdefs.h. */
  17091. int
  17092. main ()
  17093. {
  17094. #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  17095. choke me
  17096. #endif
  17097. ;
  17098. return 0;
  17099. }
  17100. _ACEOF
  17101. rm -f conftest.$ac_objext
  17102. if { (ac_try="$ac_compile"
  17103. case "(($ac_try" in
  17104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17105. *) ac_try_echo=$ac_try;;
  17106. esac
  17107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17108. $as_echo "$ac_try_echo") >&5
  17109. (eval "$ac_compile") 2>conftest.er1
  17110. ac_status=$?
  17111. grep -v '^ *+' conftest.er1 >conftest.err
  17112. rm -f conftest.er1
  17113. cat conftest.err >&5
  17114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17115. (exit $ac_status); } && {
  17116. test -z "$ac_c_werror_flag" ||
  17117. test ! -s conftest.err
  17118. } && test -s conftest.$ac_objext; then
  17119. gl_cv_func_malloc_posix=yes
  17120. else
  17121. $as_echo "$as_me: failed program was:" >&5
  17122. sed 's/^/| /' conftest.$ac_ext >&5
  17123. gl_cv_func_malloc_posix=no
  17124. fi
  17125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17126. fi
  17127. { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
  17128. $as_echo "$gl_cv_func_malloc_posix" >&6; }
  17129. GNULIB_MALLOC_POSIX=0;
  17130. GNULIB_REALLOC_POSIX=0;
  17131. GNULIB_CALLOC_POSIX=0;
  17132. GNULIB_ATOLL=0;
  17133. GNULIB_GETLOADAVG=0;
  17134. GNULIB_GETSUBOPT=0;
  17135. GNULIB_MKDTEMP=0;
  17136. GNULIB_MKSTEMP=0;
  17137. GNULIB_PUTENV=0;
  17138. GNULIB_RANDOM_R=0;
  17139. GNULIB_RPMATCH=0;
  17140. GNULIB_SETENV=0;
  17141. GNULIB_STRTOD=0;
  17142. GNULIB_STRTOLL=0;
  17143. GNULIB_STRTOULL=0;
  17144. GNULIB_UNSETENV=0;
  17145. HAVE_ATOLL=1;
  17146. HAVE_CALLOC_POSIX=1;
  17147. HAVE_GETSUBOPT=1;
  17148. HAVE_MALLOC_POSIX=1;
  17149. HAVE_MKDTEMP=1;
  17150. HAVE_REALLOC_POSIX=1;
  17151. HAVE_RANDOM_R=1;
  17152. HAVE_RPMATCH=1;
  17153. HAVE_SETENV=1;
  17154. HAVE_STRTOD=1;
  17155. HAVE_STRTOLL=1;
  17156. HAVE_STRTOULL=1;
  17157. HAVE_STRUCT_RANDOM_DATA=1;
  17158. HAVE_SYS_LOADAVG_H=0;
  17159. HAVE_UNSETENV=1;
  17160. HAVE_DECL_GETLOADAVG=1;
  17161. REPLACE_MKSTEMP=0;
  17162. REPLACE_PUTENV=0;
  17163. REPLACE_STRTOD=0;
  17164. VOID_UNSETENV=0;
  17165. for ac_header in stdlib.h
  17166. do
  17167. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17168. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17169. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17170. $as_echo_n "checking for $ac_header... " >&6; }
  17171. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17172. $as_echo_n "(cached) " >&6
  17173. fi
  17174. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17175. $as_echo "$as_val"'`
  17176. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17177. $as_echo "$ac_res" >&6; }
  17178. else
  17179. # Is the header compilable?
  17180. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17181. $as_echo_n "checking $ac_header usability... " >&6; }
  17182. cat >conftest.$ac_ext <<_ACEOF
  17183. /* confdefs.h. */
  17184. _ACEOF
  17185. cat confdefs.h >>conftest.$ac_ext
  17186. cat >>conftest.$ac_ext <<_ACEOF
  17187. /* end confdefs.h. */
  17188. $ac_includes_default
  17189. #include <$ac_header>
  17190. _ACEOF
  17191. rm -f conftest.$ac_objext
  17192. if { (ac_try="$ac_compile"
  17193. case "(($ac_try" in
  17194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17195. *) ac_try_echo=$ac_try;;
  17196. esac
  17197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17198. $as_echo "$ac_try_echo") >&5
  17199. (eval "$ac_compile") 2>conftest.er1
  17200. ac_status=$?
  17201. grep -v '^ *+' conftest.er1 >conftest.err
  17202. rm -f conftest.er1
  17203. cat conftest.err >&5
  17204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17205. (exit $ac_status); } && {
  17206. test -z "$ac_c_werror_flag" ||
  17207. test ! -s conftest.err
  17208. } && test -s conftest.$ac_objext; then
  17209. ac_header_compiler=yes
  17210. else
  17211. $as_echo "$as_me: failed program was:" >&5
  17212. sed 's/^/| /' conftest.$ac_ext >&5
  17213. ac_header_compiler=no
  17214. fi
  17215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17216. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17217. $as_echo "$ac_header_compiler" >&6; }
  17218. # Is the header present?
  17219. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17220. $as_echo_n "checking $ac_header presence... " >&6; }
  17221. cat >conftest.$ac_ext <<_ACEOF
  17222. /* confdefs.h. */
  17223. _ACEOF
  17224. cat confdefs.h >>conftest.$ac_ext
  17225. cat >>conftest.$ac_ext <<_ACEOF
  17226. /* end confdefs.h. */
  17227. #include <$ac_header>
  17228. _ACEOF
  17229. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17230. case "(($ac_try" in
  17231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17232. *) ac_try_echo=$ac_try;;
  17233. esac
  17234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17235. $as_echo "$ac_try_echo") >&5
  17236. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17237. ac_status=$?
  17238. grep -v '^ *+' conftest.er1 >conftest.err
  17239. rm -f conftest.er1
  17240. cat conftest.err >&5
  17241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17242. (exit $ac_status); } >/dev/null && {
  17243. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17244. test ! -s conftest.err
  17245. }; then
  17246. ac_header_preproc=yes
  17247. else
  17248. $as_echo "$as_me: failed program was:" >&5
  17249. sed 's/^/| /' conftest.$ac_ext >&5
  17250. ac_header_preproc=no
  17251. fi
  17252. rm -f conftest.err conftest.$ac_ext
  17253. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17254. $as_echo "$ac_header_preproc" >&6; }
  17255. # So? What about this header?
  17256. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17257. yes:no: )
  17258. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17259. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17260. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17261. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17262. ac_header_preproc=yes
  17263. ;;
  17264. no:yes:* )
  17265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17266. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17267. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17268. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17269. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17270. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17271. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17272. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17273. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17274. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17275. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17276. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17277. ;;
  17278. esac
  17279. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17280. $as_echo_n "checking for $ac_header... " >&6; }
  17281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17282. $as_echo_n "(cached) " >&6
  17283. else
  17284. eval "$as_ac_Header=\$ac_header_preproc"
  17285. fi
  17286. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17287. $as_echo "$as_val"'`
  17288. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17289. $as_echo "$ac_res" >&6; }
  17290. fi
  17291. as_val=`eval 'as_val=${'$as_ac_Header'}
  17292. $as_echo "$as_val"'`
  17293. if test "x$as_val" = x""yes; then
  17294. cat >>confdefs.h <<_ACEOF
  17295. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17296. _ACEOF
  17297. fi
  17298. done
  17299. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  17300. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  17301. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  17302. $as_echo_n "(cached) " >&6
  17303. else
  17304. if test "$cross_compiling" = yes; then
  17305. ac_cv_func_malloc_0_nonnull=no
  17306. else
  17307. cat >conftest.$ac_ext <<_ACEOF
  17308. /* confdefs.h. */
  17309. _ACEOF
  17310. cat confdefs.h >>conftest.$ac_ext
  17311. cat >>conftest.$ac_ext <<_ACEOF
  17312. /* end confdefs.h. */
  17313. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  17314. # include <stdlib.h>
  17315. #else
  17316. char *malloc ();
  17317. #endif
  17318. int
  17319. main ()
  17320. {
  17321. return ! malloc (0);
  17322. ;
  17323. return 0;
  17324. }
  17325. _ACEOF
  17326. rm -f conftest$ac_exeext
  17327. if { (ac_try="$ac_link"
  17328. case "(($ac_try" in
  17329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17330. *) ac_try_echo=$ac_try;;
  17331. esac
  17332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17333. $as_echo "$ac_try_echo") >&5
  17334. (eval "$ac_link") 2>&5
  17335. ac_status=$?
  17336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17337. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17338. { (case "(($ac_try" in
  17339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17340. *) ac_try_echo=$ac_try;;
  17341. esac
  17342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17343. $as_echo "$ac_try_echo") >&5
  17344. (eval "$ac_try") 2>&5
  17345. ac_status=$?
  17346. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17347. (exit $ac_status); }; }; then
  17348. ac_cv_func_malloc_0_nonnull=yes
  17349. else
  17350. $as_echo "$as_me: program exited with status $ac_status" >&5
  17351. $as_echo "$as_me: failed program was:" >&5
  17352. sed 's/^/| /' conftest.$ac_ext >&5
  17353. ( exit $ac_status )
  17354. ac_cv_func_malloc_0_nonnull=no
  17355. fi
  17356. rm -rf conftest.dSYM
  17357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17358. fi
  17359. fi
  17360. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  17361. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  17362. if test $ac_cv_func_malloc_0_nonnull = yes; then
  17363. gl_cv_func_malloc_0_nonnull=1
  17364. else
  17365. gl_cv_func_malloc_0_nonnull=0
  17366. fi
  17367. cat >>confdefs.h <<_ACEOF
  17368. #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
  17369. _ACEOF
  17370. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  17371. $as_echo_n "checking for long long int... " >&6; }
  17372. if test "${ac_cv_type_long_long_int+set}" = set; then
  17373. $as_echo_n "(cached) " >&6
  17374. else
  17375. cat >conftest.$ac_ext <<_ACEOF
  17376. /* confdefs.h. */
  17377. _ACEOF
  17378. cat confdefs.h >>conftest.$ac_ext
  17379. cat >>conftest.$ac_ext <<_ACEOF
  17380. /* end confdefs.h. */
  17381. /* For now, do not test the preprocessor; as of 2007 there are too many
  17382. implementations with broken preprocessors. Perhaps this can
  17383. be revisited in 2012. In the meantime, code should not expect
  17384. #if to work with literals wider than 32 bits. */
  17385. /* Test literals. */
  17386. long long int ll = 9223372036854775807ll;
  17387. long long int nll = -9223372036854775807LL;
  17388. unsigned long long int ull = 18446744073709551615ULL;
  17389. /* Test constant expressions. */
  17390. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  17391. ? 1 : -1)];
  17392. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  17393. ? 1 : -1)];
  17394. int i = 63;
  17395. int
  17396. main ()
  17397. {
  17398. /* Test availability of runtime routines for shift and division. */
  17399. long long int llmax = 9223372036854775807ll;
  17400. unsigned long long int ullmax = 18446744073709551615ull;
  17401. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  17402. | (llmax / ll) | (llmax % ll)
  17403. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  17404. | (ullmax / ull) | (ullmax % ull));
  17405. ;
  17406. return 0;
  17407. }
  17408. _ACEOF
  17409. rm -f conftest.$ac_objext conftest$ac_exeext
  17410. if { (ac_try="$ac_link"
  17411. case "(($ac_try" in
  17412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17413. *) ac_try_echo=$ac_try;;
  17414. esac
  17415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17416. $as_echo "$ac_try_echo") >&5
  17417. (eval "$ac_link") 2>conftest.er1
  17418. ac_status=$?
  17419. grep -v '^ *+' conftest.er1 >conftest.err
  17420. rm -f conftest.er1
  17421. cat conftest.err >&5
  17422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17423. (exit $ac_status); } && {
  17424. test -z "$ac_c_werror_flag" ||
  17425. test ! -s conftest.err
  17426. } && test -s conftest$ac_exeext && {
  17427. test "$cross_compiling" = yes ||
  17428. $as_test_x conftest$ac_exeext
  17429. }; then
  17430. if test "$cross_compiling" = yes; then
  17431. ac_cv_type_long_long_int=yes
  17432. else
  17433. cat >conftest.$ac_ext <<_ACEOF
  17434. /* confdefs.h. */
  17435. _ACEOF
  17436. cat confdefs.h >>conftest.$ac_ext
  17437. cat >>conftest.$ac_ext <<_ACEOF
  17438. /* end confdefs.h. */
  17439. #include <limits.h>
  17440. #ifndef LLONG_MAX
  17441. # define HALF \
  17442. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  17443. # define LLONG_MAX (HALF - 1 + HALF)
  17444. #endif
  17445. int
  17446. main ()
  17447. {
  17448. long long int n = 1;
  17449. int i;
  17450. for (i = 0; ; i++)
  17451. {
  17452. long long int m = n << i;
  17453. if (m >> i != n)
  17454. return 1;
  17455. if (LLONG_MAX / 2 < m)
  17456. break;
  17457. }
  17458. return 0;
  17459. ;
  17460. return 0;
  17461. }
  17462. _ACEOF
  17463. rm -f conftest$ac_exeext
  17464. if { (ac_try="$ac_link"
  17465. case "(($ac_try" in
  17466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17467. *) ac_try_echo=$ac_try;;
  17468. esac
  17469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17470. $as_echo "$ac_try_echo") >&5
  17471. (eval "$ac_link") 2>&5
  17472. ac_status=$?
  17473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17474. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17475. { (case "(($ac_try" in
  17476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17477. *) ac_try_echo=$ac_try;;
  17478. esac
  17479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17480. $as_echo "$ac_try_echo") >&5
  17481. (eval "$ac_try") 2>&5
  17482. ac_status=$?
  17483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17484. (exit $ac_status); }; }; then
  17485. ac_cv_type_long_long_int=yes
  17486. else
  17487. $as_echo "$as_me: program exited with status $ac_status" >&5
  17488. $as_echo "$as_me: failed program was:" >&5
  17489. sed 's/^/| /' conftest.$ac_ext >&5
  17490. ( exit $ac_status )
  17491. ac_cv_type_long_long_int=no
  17492. fi
  17493. rm -rf conftest.dSYM
  17494. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17495. fi
  17496. else
  17497. $as_echo "$as_me: failed program was:" >&5
  17498. sed 's/^/| /' conftest.$ac_ext >&5
  17499. ac_cv_type_long_long_int=no
  17500. fi
  17501. rm -rf conftest.dSYM
  17502. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17503. conftest$ac_exeext conftest.$ac_ext
  17504. fi
  17505. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  17506. $as_echo "$ac_cv_type_long_long_int" >&6; }
  17507. if test $ac_cv_type_long_long_int = yes; then
  17508. cat >>confdefs.h <<\_ACEOF
  17509. #define HAVE_LONG_LONG_INT 1
  17510. _ACEOF
  17511. fi
  17512. gl_cv_c_multiarch=no
  17513. cat >conftest.$ac_ext <<_ACEOF
  17514. /* confdefs.h. */
  17515. _ACEOF
  17516. cat confdefs.h >>conftest.$ac_ext
  17517. cat >>conftest.$ac_ext <<_ACEOF
  17518. /* end confdefs.h. */
  17519. #ifndef __APPLE_CC__
  17520. not a universal capable compiler
  17521. #endif
  17522. typedef int dummy;
  17523. _ACEOF
  17524. rm -f conftest.$ac_objext
  17525. if { (ac_try="$ac_compile"
  17526. case "(($ac_try" in
  17527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17528. *) ac_try_echo=$ac_try;;
  17529. esac
  17530. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17531. $as_echo "$ac_try_echo") >&5
  17532. (eval "$ac_compile") 2>conftest.er1
  17533. ac_status=$?
  17534. grep -v '^ *+' conftest.er1 >conftest.err
  17535. rm -f conftest.er1
  17536. cat conftest.err >&5
  17537. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17538. (exit $ac_status); } && {
  17539. test -z "$ac_c_werror_flag" ||
  17540. test ! -s conftest.err
  17541. } && test -s conftest.$ac_objext; then
  17542. arch=
  17543. prev=
  17544. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  17545. if test -n "$prev"; then
  17546. case $word in
  17547. i?86 | x86_64 | ppc | ppc64)
  17548. if test -z "$arch" || test "$arch" = "$word"; then
  17549. arch="$word"
  17550. else
  17551. gl_cv_c_multiarch=yes
  17552. fi
  17553. ;;
  17554. esac
  17555. prev=
  17556. else
  17557. if test "x$word" = "x-arch"; then
  17558. prev=arch
  17559. fi
  17560. fi
  17561. done
  17562. else
  17563. $as_echo "$as_me: failed program was:" >&5
  17564. sed 's/^/| /' conftest.$ac_ext >&5
  17565. fi
  17566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17567. if test $gl_cv_c_multiarch = yes; then
  17568. cat >>confdefs.h <<\_ACEOF
  17569. #define AA_APPLE_UNIVERSAL_BUILD 1
  17570. _ACEOF
  17571. APPLE_UNIVERSAL_BUILD=1
  17572. else
  17573. APPLE_UNIVERSAL_BUILD=0
  17574. fi
  17575. GNULIB_MEMCHR=0;
  17576. GNULIB_MEMMEM=0;
  17577. GNULIB_MEMPCPY=0;
  17578. GNULIB_MEMRCHR=0;
  17579. GNULIB_RAWMEMCHR=0;
  17580. GNULIB_STPCPY=0;
  17581. GNULIB_STPNCPY=0;
  17582. GNULIB_STRCHRNUL=0;
  17583. GNULIB_STRDUP=0;
  17584. GNULIB_STRNDUP=0;
  17585. GNULIB_STRNLEN=0;
  17586. GNULIB_STRPBRK=0;
  17587. GNULIB_STRSEP=0;
  17588. GNULIB_STRSTR=0;
  17589. GNULIB_STRCASESTR=0;
  17590. GNULIB_STRTOK_R=0;
  17591. GNULIB_MBSLEN=0;
  17592. GNULIB_MBSNLEN=0;
  17593. GNULIB_MBSCHR=0;
  17594. GNULIB_MBSRCHR=0;
  17595. GNULIB_MBSSTR=0;
  17596. GNULIB_MBSCASECMP=0;
  17597. GNULIB_MBSNCASECMP=0;
  17598. GNULIB_MBSPCASECMP=0;
  17599. GNULIB_MBSCASESTR=0;
  17600. GNULIB_MBSCSPN=0;
  17601. GNULIB_MBSPBRK=0;
  17602. GNULIB_MBSSPN=0;
  17603. GNULIB_MBSSEP=0;
  17604. GNULIB_MBSTOK_R=0;
  17605. GNULIB_STRERROR=0;
  17606. GNULIB_STRSIGNAL=0;
  17607. GNULIB_STRVERSCMP=0;
  17608. HAVE_DECL_MEMMEM=1;
  17609. HAVE_MEMPCPY=1;
  17610. HAVE_DECL_MEMRCHR=1;
  17611. HAVE_RAWMEMCHR=1;
  17612. HAVE_STPCPY=1;
  17613. HAVE_STPNCPY=1;
  17614. HAVE_STRCHRNUL=1;
  17615. HAVE_DECL_STRDUP=1;
  17616. HAVE_STRNDUP=1;
  17617. HAVE_DECL_STRNDUP=1;
  17618. HAVE_DECL_STRNLEN=1;
  17619. HAVE_STRPBRK=1;
  17620. HAVE_STRSEP=1;
  17621. HAVE_STRCASESTR=1;
  17622. HAVE_DECL_STRTOK_R=1;
  17623. HAVE_DECL_STRERROR=1;
  17624. HAVE_DECL_STRSIGNAL=1;
  17625. HAVE_STRVERSCMP=1;
  17626. REPLACE_MEMCHR=0;
  17627. REPLACE_MEMMEM=0;
  17628. REPLACE_STRDUP=0;
  17629. REPLACE_STRSTR=0;
  17630. REPLACE_STRCASESTR=0;
  17631. REPLACE_STRERROR=0;
  17632. REPLACE_STRSIGNAL=0;
  17633. GNULIB_SIGNAL_H_SIGPIPE=0;
  17634. GNULIB_SIGPROCMASK=0;
  17635. GNULIB_SIGACTION=0;
  17636. HAVE_POSIX_SIGNALBLOCKING=1;
  17637. HAVE_SIGSET_T=1;
  17638. HAVE_SIGINFO_T=1;
  17639. HAVE_SIGACTION=1;
  17640. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  17641. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  17642. { $as_echo "$as_me:$LINENO: checking for SIGPIPE" >&5
  17643. $as_echo_n "checking for SIGPIPE... " >&6; }
  17644. if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then
  17645. $as_echo_n "(cached) " >&6
  17646. else
  17647. cat >conftest.$ac_ext <<_ACEOF
  17648. /* confdefs.h. */
  17649. _ACEOF
  17650. cat confdefs.h >>conftest.$ac_ext
  17651. cat >>conftest.$ac_ext <<_ACEOF
  17652. /* end confdefs.h. */
  17653. #include <signal.h>
  17654. #if !defined SIGPIPE
  17655. booboo
  17656. #endif
  17657. _ACEOF
  17658. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17659. $EGREP "booboo" >/dev/null 2>&1; then
  17660. gl_cv_header_signal_h_SIGPIPE=no
  17661. else
  17662. gl_cv_header_signal_h_SIGPIPE=yes
  17663. fi
  17664. rm -f conftest*
  17665. fi
  17666. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_signal_h_SIGPIPE" >&5
  17667. $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
  17668. GNULIB_FPRINTF=0;
  17669. GNULIB_FPRINTF_POSIX=0;
  17670. GNULIB_PRINTF=0;
  17671. GNULIB_PRINTF_POSIX=0;
  17672. GNULIB_SNPRINTF=0;
  17673. GNULIB_SPRINTF_POSIX=0;
  17674. GNULIB_VFPRINTF=0;
  17675. GNULIB_VFPRINTF_POSIX=0;
  17676. GNULIB_VPRINTF=0;
  17677. GNULIB_VPRINTF_POSIX=0;
  17678. GNULIB_VSNPRINTF=0;
  17679. GNULIB_VSPRINTF_POSIX=0;
  17680. GNULIB_DPRINTF=0;
  17681. GNULIB_VDPRINTF=0;
  17682. GNULIB_VASPRINTF=0;
  17683. GNULIB_OBSTACK_PRINTF=0;
  17684. GNULIB_OBSTACK_PRINTF_POSIX=0;
  17685. GNULIB_FOPEN=0;
  17686. GNULIB_FREOPEN=0;
  17687. GNULIB_FSEEK=0;
  17688. GNULIB_FSEEKO=0;
  17689. GNULIB_FTELL=0;
  17690. GNULIB_FTELLO=0;
  17691. GNULIB_FFLUSH=0;
  17692. GNULIB_FPURGE=0;
  17693. GNULIB_FCLOSE=0;
  17694. GNULIB_FPUTC=0;
  17695. GNULIB_PUTC=0;
  17696. GNULIB_PUTCHAR=0;
  17697. GNULIB_FPUTS=0;
  17698. GNULIB_PUTS=0;
  17699. GNULIB_FWRITE=0;
  17700. GNULIB_GETDELIM=0;
  17701. GNULIB_GETLINE=0;
  17702. GNULIB_PERROR=0;
  17703. GNULIB_STDIO_H_SIGPIPE=0;
  17704. REPLACE_STDIO_WRITE_FUNCS=0;
  17705. REPLACE_FPRINTF=0;
  17706. REPLACE_VFPRINTF=0;
  17707. REPLACE_PRINTF=0;
  17708. REPLACE_VPRINTF=0;
  17709. REPLACE_SNPRINTF=0;
  17710. HAVE_DECL_SNPRINTF=1;
  17711. REPLACE_VSNPRINTF=0;
  17712. HAVE_DECL_VSNPRINTF=1;
  17713. REPLACE_SPRINTF=0;
  17714. REPLACE_VSPRINTF=0;
  17715. HAVE_DPRINTF=1;
  17716. REPLACE_DPRINTF=0;
  17717. HAVE_VDPRINTF=1;
  17718. REPLACE_VDPRINTF=0;
  17719. HAVE_VASPRINTF=1;
  17720. REPLACE_VASPRINTF=0;
  17721. HAVE_DECL_OBSTACK_PRINTF=1;
  17722. REPLACE_OBSTACK_PRINTF=0;
  17723. REPLACE_FOPEN=0;
  17724. REPLACE_FREOPEN=0;
  17725. HAVE_FSEEKO=1;
  17726. REPLACE_FSEEKO=0;
  17727. REPLACE_FSEEK=0;
  17728. HAVE_FTELLO=1;
  17729. REPLACE_FTELLO=0;
  17730. REPLACE_FTELL=0;
  17731. REPLACE_FFLUSH=0;
  17732. REPLACE_FPURGE=0;
  17733. HAVE_DECL_FPURGE=1;
  17734. REPLACE_FCLOSE=0;
  17735. HAVE_DECL_GETDELIM=1;
  17736. HAVE_DECL_GETLINE=1;
  17737. REPLACE_GETLINE=0;
  17738. REPLACE_PERROR=0;
  17739. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17740. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  17741. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17742. $as_echo_n "(cached) " >&6
  17743. else
  17744. cat >conftest.$ac_ext <<_ACEOF
  17745. /* confdefs.h. */
  17746. _ACEOF
  17747. cat confdefs.h >>conftest.$ac_ext
  17748. cat >>conftest.$ac_ext <<_ACEOF
  17749. /* end confdefs.h. */
  17750. #include <stdbool.h>
  17751. #ifndef bool
  17752. "error: bool is not defined"
  17753. #endif
  17754. #ifndef false
  17755. "error: false is not defined"
  17756. #endif
  17757. #if false
  17758. "error: false is not 0"
  17759. #endif
  17760. #ifndef true
  17761. "error: true is not defined"
  17762. #endif
  17763. #if true != 1
  17764. "error: true is not 1"
  17765. #endif
  17766. #ifndef __bool_true_false_are_defined
  17767. "error: __bool_true_false_are_defined is not defined"
  17768. #endif
  17769. struct s { _Bool s: 1; _Bool t; } s;
  17770. char a[true == 1 ? 1 : -1];
  17771. char b[false == 0 ? 1 : -1];
  17772. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17773. char d[(bool) 0.5 == true ? 1 : -1];
  17774. bool e = &s;
  17775. char f[(_Bool) 0.0 == false ? 1 : -1];
  17776. char g[true];
  17777. char h[sizeof (_Bool)];
  17778. char i[sizeof s.t];
  17779. enum { j = false, k = true, l = false * true, m = true * 256 };
  17780. _Bool n[m];
  17781. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  17782. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  17783. #if defined __xlc__ || defined __GNUC__
  17784. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  17785. reported by James Lemley on 2005-10-05; see
  17786. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  17787. This test is not quite right, since xlc is allowed to
  17788. reject this program, as the initializer for xlcbug is
  17789. not one of the forms that C requires support for.
  17790. However, doing the test right would require a run-time
  17791. test, and that would make cross-compilation harder.
  17792. Let us hope that IBM fixes the xlc bug, and also adds
  17793. support for this kind of constant expression. In the
  17794. meantime, this test will reject xlc, which is OK, since
  17795. our stdbool.h substitute should suffice. We also test
  17796. this with GCC, where it should work, to detect more
  17797. quickly whether someone messes up the test in the
  17798. future. */
  17799. char digs[] = "0123456789";
  17800. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  17801. #endif
  17802. /* Catch a bug in an HP-UX C compiler. See
  17803. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  17804. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  17805. */
  17806. _Bool q = true;
  17807. _Bool *pq = &q;
  17808. int
  17809. main ()
  17810. {
  17811. *pq |= q;
  17812. *pq |= ! q;
  17813. /* Refer to every declared value, to avoid compiler optimizations. */
  17814. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  17815. + !m + !n + !o + !p + !q + !pq);
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. rm -f conftest.$ac_objext
  17821. if { (ac_try="$ac_compile"
  17822. case "(($ac_try" in
  17823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17824. *) ac_try_echo=$ac_try;;
  17825. esac
  17826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17827. $as_echo "$ac_try_echo") >&5
  17828. (eval "$ac_compile") 2>conftest.er1
  17829. ac_status=$?
  17830. grep -v '^ *+' conftest.er1 >conftest.err
  17831. rm -f conftest.er1
  17832. cat conftest.err >&5
  17833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17834. (exit $ac_status); } && {
  17835. test -z "$ac_c_werror_flag" ||
  17836. test ! -s conftest.err
  17837. } && test -s conftest.$ac_objext; then
  17838. ac_cv_header_stdbool_h=yes
  17839. else
  17840. $as_echo "$as_me: failed program was:" >&5
  17841. sed 's/^/| /' conftest.$ac_ext >&5
  17842. ac_cv_header_stdbool_h=no
  17843. fi
  17844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17845. fi
  17846. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17847. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  17848. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  17849. $as_echo_n "checking for _Bool... " >&6; }
  17850. if test "${ac_cv_type__Bool+set}" = set; then
  17851. $as_echo_n "(cached) " >&6
  17852. else
  17853. ac_cv_type__Bool=no
  17854. cat >conftest.$ac_ext <<_ACEOF
  17855. /* confdefs.h. */
  17856. _ACEOF
  17857. cat confdefs.h >>conftest.$ac_ext
  17858. cat >>conftest.$ac_ext <<_ACEOF
  17859. /* end confdefs.h. */
  17860. $ac_includes_default
  17861. int
  17862. main ()
  17863. {
  17864. if (sizeof (_Bool))
  17865. return 0;
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. rm -f conftest.$ac_objext
  17871. if { (ac_try="$ac_compile"
  17872. case "(($ac_try" in
  17873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17874. *) ac_try_echo=$ac_try;;
  17875. esac
  17876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17877. $as_echo "$ac_try_echo") >&5
  17878. (eval "$ac_compile") 2>conftest.er1
  17879. ac_status=$?
  17880. grep -v '^ *+' conftest.er1 >conftest.err
  17881. rm -f conftest.er1
  17882. cat conftest.err >&5
  17883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17884. (exit $ac_status); } && {
  17885. test -z "$ac_c_werror_flag" ||
  17886. test ! -s conftest.err
  17887. } && test -s conftest.$ac_objext; then
  17888. cat >conftest.$ac_ext <<_ACEOF
  17889. /* confdefs.h. */
  17890. _ACEOF
  17891. cat confdefs.h >>conftest.$ac_ext
  17892. cat >>conftest.$ac_ext <<_ACEOF
  17893. /* end confdefs.h. */
  17894. $ac_includes_default
  17895. int
  17896. main ()
  17897. {
  17898. if (sizeof ((_Bool)))
  17899. return 0;
  17900. ;
  17901. return 0;
  17902. }
  17903. _ACEOF
  17904. rm -f conftest.$ac_objext
  17905. if { (ac_try="$ac_compile"
  17906. case "(($ac_try" in
  17907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17908. *) ac_try_echo=$ac_try;;
  17909. esac
  17910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17911. $as_echo "$ac_try_echo") >&5
  17912. (eval "$ac_compile") 2>conftest.er1
  17913. ac_status=$?
  17914. grep -v '^ *+' conftest.er1 >conftest.err
  17915. rm -f conftest.er1
  17916. cat conftest.err >&5
  17917. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17918. (exit $ac_status); } && {
  17919. test -z "$ac_c_werror_flag" ||
  17920. test ! -s conftest.err
  17921. } && test -s conftest.$ac_objext; then
  17922. :
  17923. else
  17924. $as_echo "$as_me: failed program was:" >&5
  17925. sed 's/^/| /' conftest.$ac_ext >&5
  17926. ac_cv_type__Bool=yes
  17927. fi
  17928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17929. else
  17930. $as_echo "$as_me: failed program was:" >&5
  17931. sed 's/^/| /' conftest.$ac_ext >&5
  17932. fi
  17933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17934. fi
  17935. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17936. $as_echo "$ac_cv_type__Bool" >&6; }
  17937. if test "x$ac_cv_type__Bool" = x""yes; then
  17938. cat >>confdefs.h <<_ACEOF
  17939. #define HAVE__BOOL 1
  17940. _ACEOF
  17941. fi
  17942. if test $ac_cv_header_stdbool_h = yes; then
  17943. cat >>confdefs.h <<\_ACEOF
  17944. #define HAVE_STDBOOL_H 1
  17945. _ACEOF
  17946. fi
  17947. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  17948. $as_echo_n "checking for unsigned long long int... " >&6; }
  17949. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  17950. $as_echo_n "(cached) " >&6
  17951. else
  17952. cat >conftest.$ac_ext <<_ACEOF
  17953. /* confdefs.h. */
  17954. _ACEOF
  17955. cat confdefs.h >>conftest.$ac_ext
  17956. cat >>conftest.$ac_ext <<_ACEOF
  17957. /* end confdefs.h. */
  17958. /* For now, do not test the preprocessor; as of 2007 there are too many
  17959. implementations with broken preprocessors. Perhaps this can
  17960. be revisited in 2012. In the meantime, code should not expect
  17961. #if to work with literals wider than 32 bits. */
  17962. /* Test literals. */
  17963. long long int ll = 9223372036854775807ll;
  17964. long long int nll = -9223372036854775807LL;
  17965. unsigned long long int ull = 18446744073709551615ULL;
  17966. /* Test constant expressions. */
  17967. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  17968. ? 1 : -1)];
  17969. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  17970. ? 1 : -1)];
  17971. int i = 63;
  17972. int
  17973. main ()
  17974. {
  17975. /* Test availability of runtime routines for shift and division. */
  17976. long long int llmax = 9223372036854775807ll;
  17977. unsigned long long int ullmax = 18446744073709551615ull;
  17978. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  17979. | (llmax / ll) | (llmax % ll)
  17980. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  17981. | (ullmax / ull) | (ullmax % ull));
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. rm -f conftest.$ac_objext conftest$ac_exeext
  17987. if { (ac_try="$ac_link"
  17988. case "(($ac_try" in
  17989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17990. *) ac_try_echo=$ac_try;;
  17991. esac
  17992. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17993. $as_echo "$ac_try_echo") >&5
  17994. (eval "$ac_link") 2>conftest.er1
  17995. ac_status=$?
  17996. grep -v '^ *+' conftest.er1 >conftest.err
  17997. rm -f conftest.er1
  17998. cat conftest.err >&5
  17999. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18000. (exit $ac_status); } && {
  18001. test -z "$ac_c_werror_flag" ||
  18002. test ! -s conftest.err
  18003. } && test -s conftest$ac_exeext && {
  18004. test "$cross_compiling" = yes ||
  18005. $as_test_x conftest$ac_exeext
  18006. }; then
  18007. ac_cv_type_unsigned_long_long_int=yes
  18008. else
  18009. $as_echo "$as_me: failed program was:" >&5
  18010. sed 's/^/| /' conftest.$ac_ext >&5
  18011. ac_cv_type_unsigned_long_long_int=no
  18012. fi
  18013. rm -rf conftest.dSYM
  18014. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18015. conftest$ac_exeext conftest.$ac_ext
  18016. fi
  18017. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  18018. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  18019. if test $ac_cv_type_unsigned_long_long_int = yes; then
  18020. cat >>confdefs.h <<\_ACEOF
  18021. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  18022. _ACEOF
  18023. fi
  18024. { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
  18025. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  18026. if test "${ac_cv_c_restrict+set}" = set; then
  18027. $as_echo_n "(cached) " >&6
  18028. else
  18029. ac_cv_c_restrict=no
  18030. # The order here caters to the fact that C++ does not require restrict.
  18031. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  18032. cat >conftest.$ac_ext <<_ACEOF
  18033. /* confdefs.h. */
  18034. _ACEOF
  18035. cat confdefs.h >>conftest.$ac_ext
  18036. cat >>conftest.$ac_ext <<_ACEOF
  18037. /* end confdefs.h. */
  18038. typedef int * int_ptr;
  18039. int foo (int_ptr $ac_kw ip) {
  18040. return ip[0];
  18041. }
  18042. int
  18043. main ()
  18044. {
  18045. int s[1];
  18046. int * $ac_kw t = s;
  18047. t[0] = 0;
  18048. return foo(t)
  18049. ;
  18050. return 0;
  18051. }
  18052. _ACEOF
  18053. rm -f conftest.$ac_objext
  18054. if { (ac_try="$ac_compile"
  18055. case "(($ac_try" in
  18056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18057. *) ac_try_echo=$ac_try;;
  18058. esac
  18059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18060. $as_echo "$ac_try_echo") >&5
  18061. (eval "$ac_compile") 2>conftest.er1
  18062. ac_status=$?
  18063. grep -v '^ *+' conftest.er1 >conftest.err
  18064. rm -f conftest.er1
  18065. cat conftest.err >&5
  18066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18067. (exit $ac_status); } && {
  18068. test -z "$ac_c_werror_flag" ||
  18069. test ! -s conftest.err
  18070. } && test -s conftest.$ac_objext; then
  18071. ac_cv_c_restrict=$ac_kw
  18072. else
  18073. $as_echo "$as_me: failed program was:" >&5
  18074. sed 's/^/| /' conftest.$ac_ext >&5
  18075. fi
  18076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18077. test "$ac_cv_c_restrict" != no && break
  18078. done
  18079. fi
  18080. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
  18081. $as_echo "$ac_cv_c_restrict" >&6; }
  18082. case $ac_cv_c_restrict in
  18083. restrict) ;;
  18084. no) cat >>confdefs.h <<\_ACEOF
  18085. #define restrict /**/
  18086. _ACEOF
  18087. ;;
  18088. *) cat >>confdefs.h <<_ACEOF
  18089. #define restrict $ac_cv_c_restrict
  18090. _ACEOF
  18091. ;;
  18092. esac
  18093. if test $gl_cv_have_include_next = yes; then
  18094. gl_cv_next_string_h='<'string.h'>'
  18095. else
  18096. { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
  18097. $as_echo_n "checking absolute name of <string.h>... " >&6; }
  18098. if test "${gl_cv_next_string_h+set}" = set; then
  18099. $as_echo_n "(cached) " >&6
  18100. else
  18101. if test $ac_cv_header_string_h = yes; then
  18102. cat >conftest.$ac_ext <<_ACEOF
  18103. /* confdefs.h. */
  18104. _ACEOF
  18105. cat confdefs.h >>conftest.$ac_ext
  18106. cat >>conftest.$ac_ext <<_ACEOF
  18107. /* end confdefs.h. */
  18108. #include <string.h>
  18109. _ACEOF
  18110. case "$host_os" in
  18111. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18112. *) gl_absname_cpp="$ac_cpp" ;;
  18113. esac
  18114. gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18115. sed -n '\#/string.h#{
  18116. s#.*"\(.*/string.h\)".*#\1#
  18117. s#^/[^/]#//&#
  18118. p
  18119. q
  18120. }'`'"'
  18121. else
  18122. gl_cv_next_string_h='<'string.h'>'
  18123. fi
  18124. fi
  18125. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
  18126. $as_echo "$gl_cv_next_string_h" >&6; }
  18127. fi
  18128. NEXT_STRING_H=$gl_cv_next_string_h
  18129. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18130. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18131. gl_next_as_first_directive='<'string.h'>'
  18132. else
  18133. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18134. gl_next_as_first_directive=$gl_cv_next_string_h
  18135. fi
  18136. NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
  18137. { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
  18138. $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
  18139. if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
  18140. $as_echo_n "(cached) " >&6
  18141. else
  18142. cat >conftest.$ac_ext <<_ACEOF
  18143. /* confdefs.h. */
  18144. _ACEOF
  18145. cat confdefs.h >>conftest.$ac_ext
  18146. cat >>conftest.$ac_ext <<_ACEOF
  18147. /* end confdefs.h. */
  18148. $ac_includes_default
  18149. int
  18150. main ()
  18151. {
  18152. #ifndef clearerr_unlocked
  18153. (void) clearerr_unlocked;
  18154. #endif
  18155. ;
  18156. return 0;
  18157. }
  18158. _ACEOF
  18159. rm -f conftest.$ac_objext
  18160. if { (ac_try="$ac_compile"
  18161. case "(($ac_try" in
  18162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18163. *) ac_try_echo=$ac_try;;
  18164. esac
  18165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18166. $as_echo "$ac_try_echo") >&5
  18167. (eval "$ac_compile") 2>conftest.er1
  18168. ac_status=$?
  18169. grep -v '^ *+' conftest.er1 >conftest.err
  18170. rm -f conftest.er1
  18171. cat conftest.err >&5
  18172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18173. (exit $ac_status); } && {
  18174. test -z "$ac_c_werror_flag" ||
  18175. test ! -s conftest.err
  18176. } && test -s conftest.$ac_objext; then
  18177. ac_cv_have_decl_clearerr_unlocked=yes
  18178. else
  18179. $as_echo "$as_me: failed program was:" >&5
  18180. sed 's/^/| /' conftest.$ac_ext >&5
  18181. ac_cv_have_decl_clearerr_unlocked=no
  18182. fi
  18183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18184. fi
  18185. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
  18186. $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
  18187. if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
  18188. cat >>confdefs.h <<_ACEOF
  18189. #define HAVE_DECL_CLEARERR_UNLOCKED 1
  18190. _ACEOF
  18191. else
  18192. cat >>confdefs.h <<_ACEOF
  18193. #define HAVE_DECL_CLEARERR_UNLOCKED 0
  18194. _ACEOF
  18195. fi
  18196. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  18197. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  18198. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  18199. $as_echo_n "(cached) " >&6
  18200. else
  18201. cat >conftest.$ac_ext <<_ACEOF
  18202. /* confdefs.h. */
  18203. _ACEOF
  18204. cat confdefs.h >>conftest.$ac_ext
  18205. cat >>conftest.$ac_ext <<_ACEOF
  18206. /* end confdefs.h. */
  18207. $ac_includes_default
  18208. int
  18209. main ()
  18210. {
  18211. #ifndef feof_unlocked
  18212. (void) feof_unlocked;
  18213. #endif
  18214. ;
  18215. return 0;
  18216. }
  18217. _ACEOF
  18218. rm -f conftest.$ac_objext
  18219. if { (ac_try="$ac_compile"
  18220. case "(($ac_try" in
  18221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18222. *) ac_try_echo=$ac_try;;
  18223. esac
  18224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18225. $as_echo "$ac_try_echo") >&5
  18226. (eval "$ac_compile") 2>conftest.er1
  18227. ac_status=$?
  18228. grep -v '^ *+' conftest.er1 >conftest.err
  18229. rm -f conftest.er1
  18230. cat conftest.err >&5
  18231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18232. (exit $ac_status); } && {
  18233. test -z "$ac_c_werror_flag" ||
  18234. test ! -s conftest.err
  18235. } && test -s conftest.$ac_objext; then
  18236. ac_cv_have_decl_feof_unlocked=yes
  18237. else
  18238. $as_echo "$as_me: failed program was:" >&5
  18239. sed 's/^/| /' conftest.$ac_ext >&5
  18240. ac_cv_have_decl_feof_unlocked=no
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18243. fi
  18244. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  18245. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  18246. if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
  18247. cat >>confdefs.h <<_ACEOF
  18248. #define HAVE_DECL_FEOF_UNLOCKED 1
  18249. _ACEOF
  18250. else
  18251. cat >>confdefs.h <<_ACEOF
  18252. #define HAVE_DECL_FEOF_UNLOCKED 0
  18253. _ACEOF
  18254. fi
  18255. { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
  18256. $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
  18257. if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
  18258. $as_echo_n "(cached) " >&6
  18259. else
  18260. cat >conftest.$ac_ext <<_ACEOF
  18261. /* confdefs.h. */
  18262. _ACEOF
  18263. cat confdefs.h >>conftest.$ac_ext
  18264. cat >>conftest.$ac_ext <<_ACEOF
  18265. /* end confdefs.h. */
  18266. $ac_includes_default
  18267. int
  18268. main ()
  18269. {
  18270. #ifndef ferror_unlocked
  18271. (void) ferror_unlocked;
  18272. #endif
  18273. ;
  18274. return 0;
  18275. }
  18276. _ACEOF
  18277. rm -f conftest.$ac_objext
  18278. if { (ac_try="$ac_compile"
  18279. case "(($ac_try" in
  18280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18281. *) ac_try_echo=$ac_try;;
  18282. esac
  18283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18284. $as_echo "$ac_try_echo") >&5
  18285. (eval "$ac_compile") 2>conftest.er1
  18286. ac_status=$?
  18287. grep -v '^ *+' conftest.er1 >conftest.err
  18288. rm -f conftest.er1
  18289. cat conftest.err >&5
  18290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18291. (exit $ac_status); } && {
  18292. test -z "$ac_c_werror_flag" ||
  18293. test ! -s conftest.err
  18294. } && test -s conftest.$ac_objext; then
  18295. ac_cv_have_decl_ferror_unlocked=yes
  18296. else
  18297. $as_echo "$as_me: failed program was:" >&5
  18298. sed 's/^/| /' conftest.$ac_ext >&5
  18299. ac_cv_have_decl_ferror_unlocked=no
  18300. fi
  18301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18302. fi
  18303. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
  18304. $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
  18305. if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
  18306. cat >>confdefs.h <<_ACEOF
  18307. #define HAVE_DECL_FERROR_UNLOCKED 1
  18308. _ACEOF
  18309. else
  18310. cat >>confdefs.h <<_ACEOF
  18311. #define HAVE_DECL_FERROR_UNLOCKED 0
  18312. _ACEOF
  18313. fi
  18314. { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
  18315. $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
  18316. if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
  18317. $as_echo_n "(cached) " >&6
  18318. else
  18319. cat >conftest.$ac_ext <<_ACEOF
  18320. /* confdefs.h. */
  18321. _ACEOF
  18322. cat confdefs.h >>conftest.$ac_ext
  18323. cat >>conftest.$ac_ext <<_ACEOF
  18324. /* end confdefs.h. */
  18325. $ac_includes_default
  18326. int
  18327. main ()
  18328. {
  18329. #ifndef fflush_unlocked
  18330. (void) fflush_unlocked;
  18331. #endif
  18332. ;
  18333. return 0;
  18334. }
  18335. _ACEOF
  18336. rm -f conftest.$ac_objext
  18337. if { (ac_try="$ac_compile"
  18338. case "(($ac_try" in
  18339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18340. *) ac_try_echo=$ac_try;;
  18341. esac
  18342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18343. $as_echo "$ac_try_echo") >&5
  18344. (eval "$ac_compile") 2>conftest.er1
  18345. ac_status=$?
  18346. grep -v '^ *+' conftest.er1 >conftest.err
  18347. rm -f conftest.er1
  18348. cat conftest.err >&5
  18349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18350. (exit $ac_status); } && {
  18351. test -z "$ac_c_werror_flag" ||
  18352. test ! -s conftest.err
  18353. } && test -s conftest.$ac_objext; then
  18354. ac_cv_have_decl_fflush_unlocked=yes
  18355. else
  18356. $as_echo "$as_me: failed program was:" >&5
  18357. sed 's/^/| /' conftest.$ac_ext >&5
  18358. ac_cv_have_decl_fflush_unlocked=no
  18359. fi
  18360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18361. fi
  18362. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
  18363. $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
  18364. if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
  18365. cat >>confdefs.h <<_ACEOF
  18366. #define HAVE_DECL_FFLUSH_UNLOCKED 1
  18367. _ACEOF
  18368. else
  18369. cat >>confdefs.h <<_ACEOF
  18370. #define HAVE_DECL_FFLUSH_UNLOCKED 0
  18371. _ACEOF
  18372. fi
  18373. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  18374. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  18375. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  18376. $as_echo_n "(cached) " >&6
  18377. else
  18378. cat >conftest.$ac_ext <<_ACEOF
  18379. /* confdefs.h. */
  18380. _ACEOF
  18381. cat confdefs.h >>conftest.$ac_ext
  18382. cat >>conftest.$ac_ext <<_ACEOF
  18383. /* end confdefs.h. */
  18384. $ac_includes_default
  18385. int
  18386. main ()
  18387. {
  18388. #ifndef fgets_unlocked
  18389. (void) fgets_unlocked;
  18390. #endif
  18391. ;
  18392. return 0;
  18393. }
  18394. _ACEOF
  18395. rm -f conftest.$ac_objext
  18396. if { (ac_try="$ac_compile"
  18397. case "(($ac_try" in
  18398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18399. *) ac_try_echo=$ac_try;;
  18400. esac
  18401. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18402. $as_echo "$ac_try_echo") >&5
  18403. (eval "$ac_compile") 2>conftest.er1
  18404. ac_status=$?
  18405. grep -v '^ *+' conftest.er1 >conftest.err
  18406. rm -f conftest.er1
  18407. cat conftest.err >&5
  18408. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18409. (exit $ac_status); } && {
  18410. test -z "$ac_c_werror_flag" ||
  18411. test ! -s conftest.err
  18412. } && test -s conftest.$ac_objext; then
  18413. ac_cv_have_decl_fgets_unlocked=yes
  18414. else
  18415. $as_echo "$as_me: failed program was:" >&5
  18416. sed 's/^/| /' conftest.$ac_ext >&5
  18417. ac_cv_have_decl_fgets_unlocked=no
  18418. fi
  18419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18420. fi
  18421. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  18422. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  18423. if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
  18424. cat >>confdefs.h <<_ACEOF
  18425. #define HAVE_DECL_FGETS_UNLOCKED 1
  18426. _ACEOF
  18427. else
  18428. cat >>confdefs.h <<_ACEOF
  18429. #define HAVE_DECL_FGETS_UNLOCKED 0
  18430. _ACEOF
  18431. fi
  18432. { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
  18433. $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
  18434. if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
  18435. $as_echo_n "(cached) " >&6
  18436. else
  18437. cat >conftest.$ac_ext <<_ACEOF
  18438. /* confdefs.h. */
  18439. _ACEOF
  18440. cat confdefs.h >>conftest.$ac_ext
  18441. cat >>conftest.$ac_ext <<_ACEOF
  18442. /* end confdefs.h. */
  18443. $ac_includes_default
  18444. int
  18445. main ()
  18446. {
  18447. #ifndef fputc_unlocked
  18448. (void) fputc_unlocked;
  18449. #endif
  18450. ;
  18451. return 0;
  18452. }
  18453. _ACEOF
  18454. rm -f conftest.$ac_objext
  18455. if { (ac_try="$ac_compile"
  18456. case "(($ac_try" in
  18457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18458. *) ac_try_echo=$ac_try;;
  18459. esac
  18460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18461. $as_echo "$ac_try_echo") >&5
  18462. (eval "$ac_compile") 2>conftest.er1
  18463. ac_status=$?
  18464. grep -v '^ *+' conftest.er1 >conftest.err
  18465. rm -f conftest.er1
  18466. cat conftest.err >&5
  18467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18468. (exit $ac_status); } && {
  18469. test -z "$ac_c_werror_flag" ||
  18470. test ! -s conftest.err
  18471. } && test -s conftest.$ac_objext; then
  18472. ac_cv_have_decl_fputc_unlocked=yes
  18473. else
  18474. $as_echo "$as_me: failed program was:" >&5
  18475. sed 's/^/| /' conftest.$ac_ext >&5
  18476. ac_cv_have_decl_fputc_unlocked=no
  18477. fi
  18478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18479. fi
  18480. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
  18481. $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
  18482. if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
  18483. cat >>confdefs.h <<_ACEOF
  18484. #define HAVE_DECL_FPUTC_UNLOCKED 1
  18485. _ACEOF
  18486. else
  18487. cat >>confdefs.h <<_ACEOF
  18488. #define HAVE_DECL_FPUTC_UNLOCKED 0
  18489. _ACEOF
  18490. fi
  18491. { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
  18492. $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
  18493. if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
  18494. $as_echo_n "(cached) " >&6
  18495. else
  18496. cat >conftest.$ac_ext <<_ACEOF
  18497. /* confdefs.h. */
  18498. _ACEOF
  18499. cat confdefs.h >>conftest.$ac_ext
  18500. cat >>conftest.$ac_ext <<_ACEOF
  18501. /* end confdefs.h. */
  18502. $ac_includes_default
  18503. int
  18504. main ()
  18505. {
  18506. #ifndef fputs_unlocked
  18507. (void) fputs_unlocked;
  18508. #endif
  18509. ;
  18510. return 0;
  18511. }
  18512. _ACEOF
  18513. rm -f conftest.$ac_objext
  18514. if { (ac_try="$ac_compile"
  18515. case "(($ac_try" in
  18516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18517. *) ac_try_echo=$ac_try;;
  18518. esac
  18519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18520. $as_echo "$ac_try_echo") >&5
  18521. (eval "$ac_compile") 2>conftest.er1
  18522. ac_status=$?
  18523. grep -v '^ *+' conftest.er1 >conftest.err
  18524. rm -f conftest.er1
  18525. cat conftest.err >&5
  18526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18527. (exit $ac_status); } && {
  18528. test -z "$ac_c_werror_flag" ||
  18529. test ! -s conftest.err
  18530. } && test -s conftest.$ac_objext; then
  18531. ac_cv_have_decl_fputs_unlocked=yes
  18532. else
  18533. $as_echo "$as_me: failed program was:" >&5
  18534. sed 's/^/| /' conftest.$ac_ext >&5
  18535. ac_cv_have_decl_fputs_unlocked=no
  18536. fi
  18537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18538. fi
  18539. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
  18540. $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
  18541. if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
  18542. cat >>confdefs.h <<_ACEOF
  18543. #define HAVE_DECL_FPUTS_UNLOCKED 1
  18544. _ACEOF
  18545. else
  18546. cat >>confdefs.h <<_ACEOF
  18547. #define HAVE_DECL_FPUTS_UNLOCKED 0
  18548. _ACEOF
  18549. fi
  18550. { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
  18551. $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
  18552. if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
  18553. $as_echo_n "(cached) " >&6
  18554. else
  18555. cat >conftest.$ac_ext <<_ACEOF
  18556. /* confdefs.h. */
  18557. _ACEOF
  18558. cat confdefs.h >>conftest.$ac_ext
  18559. cat >>conftest.$ac_ext <<_ACEOF
  18560. /* end confdefs.h. */
  18561. $ac_includes_default
  18562. int
  18563. main ()
  18564. {
  18565. #ifndef fread_unlocked
  18566. (void) fread_unlocked;
  18567. #endif
  18568. ;
  18569. return 0;
  18570. }
  18571. _ACEOF
  18572. rm -f conftest.$ac_objext
  18573. if { (ac_try="$ac_compile"
  18574. case "(($ac_try" in
  18575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18576. *) ac_try_echo=$ac_try;;
  18577. esac
  18578. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18579. $as_echo "$ac_try_echo") >&5
  18580. (eval "$ac_compile") 2>conftest.er1
  18581. ac_status=$?
  18582. grep -v '^ *+' conftest.er1 >conftest.err
  18583. rm -f conftest.er1
  18584. cat conftest.err >&5
  18585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18586. (exit $ac_status); } && {
  18587. test -z "$ac_c_werror_flag" ||
  18588. test ! -s conftest.err
  18589. } && test -s conftest.$ac_objext; then
  18590. ac_cv_have_decl_fread_unlocked=yes
  18591. else
  18592. $as_echo "$as_me: failed program was:" >&5
  18593. sed 's/^/| /' conftest.$ac_ext >&5
  18594. ac_cv_have_decl_fread_unlocked=no
  18595. fi
  18596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18597. fi
  18598. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
  18599. $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
  18600. if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
  18601. cat >>confdefs.h <<_ACEOF
  18602. #define HAVE_DECL_FREAD_UNLOCKED 1
  18603. _ACEOF
  18604. else
  18605. cat >>confdefs.h <<_ACEOF
  18606. #define HAVE_DECL_FREAD_UNLOCKED 0
  18607. _ACEOF
  18608. fi
  18609. { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
  18610. $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
  18611. if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
  18612. $as_echo_n "(cached) " >&6
  18613. else
  18614. cat >conftest.$ac_ext <<_ACEOF
  18615. /* confdefs.h. */
  18616. _ACEOF
  18617. cat confdefs.h >>conftest.$ac_ext
  18618. cat >>conftest.$ac_ext <<_ACEOF
  18619. /* end confdefs.h. */
  18620. $ac_includes_default
  18621. int
  18622. main ()
  18623. {
  18624. #ifndef fwrite_unlocked
  18625. (void) fwrite_unlocked;
  18626. #endif
  18627. ;
  18628. return 0;
  18629. }
  18630. _ACEOF
  18631. rm -f conftest.$ac_objext
  18632. if { (ac_try="$ac_compile"
  18633. case "(($ac_try" in
  18634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18635. *) ac_try_echo=$ac_try;;
  18636. esac
  18637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18638. $as_echo "$ac_try_echo") >&5
  18639. (eval "$ac_compile") 2>conftest.er1
  18640. ac_status=$?
  18641. grep -v '^ *+' conftest.er1 >conftest.err
  18642. rm -f conftest.er1
  18643. cat conftest.err >&5
  18644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18645. (exit $ac_status); } && {
  18646. test -z "$ac_c_werror_flag" ||
  18647. test ! -s conftest.err
  18648. } && test -s conftest.$ac_objext; then
  18649. ac_cv_have_decl_fwrite_unlocked=yes
  18650. else
  18651. $as_echo "$as_me: failed program was:" >&5
  18652. sed 's/^/| /' conftest.$ac_ext >&5
  18653. ac_cv_have_decl_fwrite_unlocked=no
  18654. fi
  18655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18656. fi
  18657. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
  18658. $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
  18659. if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
  18660. cat >>confdefs.h <<_ACEOF
  18661. #define HAVE_DECL_FWRITE_UNLOCKED 1
  18662. _ACEOF
  18663. else
  18664. cat >>confdefs.h <<_ACEOF
  18665. #define HAVE_DECL_FWRITE_UNLOCKED 0
  18666. _ACEOF
  18667. fi
  18668. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  18669. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  18670. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  18671. $as_echo_n "(cached) " >&6
  18672. else
  18673. cat >conftest.$ac_ext <<_ACEOF
  18674. /* confdefs.h. */
  18675. _ACEOF
  18676. cat confdefs.h >>conftest.$ac_ext
  18677. cat >>conftest.$ac_ext <<_ACEOF
  18678. /* end confdefs.h. */
  18679. $ac_includes_default
  18680. int
  18681. main ()
  18682. {
  18683. #ifndef getc_unlocked
  18684. (void) getc_unlocked;
  18685. #endif
  18686. ;
  18687. return 0;
  18688. }
  18689. _ACEOF
  18690. rm -f conftest.$ac_objext
  18691. if { (ac_try="$ac_compile"
  18692. case "(($ac_try" in
  18693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18694. *) ac_try_echo=$ac_try;;
  18695. esac
  18696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18697. $as_echo "$ac_try_echo") >&5
  18698. (eval "$ac_compile") 2>conftest.er1
  18699. ac_status=$?
  18700. grep -v '^ *+' conftest.er1 >conftest.err
  18701. rm -f conftest.er1
  18702. cat conftest.err >&5
  18703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18704. (exit $ac_status); } && {
  18705. test -z "$ac_c_werror_flag" ||
  18706. test ! -s conftest.err
  18707. } && test -s conftest.$ac_objext; then
  18708. ac_cv_have_decl_getc_unlocked=yes
  18709. else
  18710. $as_echo "$as_me: failed program was:" >&5
  18711. sed 's/^/| /' conftest.$ac_ext >&5
  18712. ac_cv_have_decl_getc_unlocked=no
  18713. fi
  18714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18715. fi
  18716. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  18717. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  18718. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
  18719. cat >>confdefs.h <<_ACEOF
  18720. #define HAVE_DECL_GETC_UNLOCKED 1
  18721. _ACEOF
  18722. else
  18723. cat >>confdefs.h <<_ACEOF
  18724. #define HAVE_DECL_GETC_UNLOCKED 0
  18725. _ACEOF
  18726. fi
  18727. { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
  18728. $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
  18729. if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
  18730. $as_echo_n "(cached) " >&6
  18731. else
  18732. cat >conftest.$ac_ext <<_ACEOF
  18733. /* confdefs.h. */
  18734. _ACEOF
  18735. cat confdefs.h >>conftest.$ac_ext
  18736. cat >>conftest.$ac_ext <<_ACEOF
  18737. /* end confdefs.h. */
  18738. $ac_includes_default
  18739. int
  18740. main ()
  18741. {
  18742. #ifndef getchar_unlocked
  18743. (void) getchar_unlocked;
  18744. #endif
  18745. ;
  18746. return 0;
  18747. }
  18748. _ACEOF
  18749. rm -f conftest.$ac_objext
  18750. if { (ac_try="$ac_compile"
  18751. case "(($ac_try" in
  18752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18753. *) ac_try_echo=$ac_try;;
  18754. esac
  18755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18756. $as_echo "$ac_try_echo") >&5
  18757. (eval "$ac_compile") 2>conftest.er1
  18758. ac_status=$?
  18759. grep -v '^ *+' conftest.er1 >conftest.err
  18760. rm -f conftest.er1
  18761. cat conftest.err >&5
  18762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18763. (exit $ac_status); } && {
  18764. test -z "$ac_c_werror_flag" ||
  18765. test ! -s conftest.err
  18766. } && test -s conftest.$ac_objext; then
  18767. ac_cv_have_decl_getchar_unlocked=yes
  18768. else
  18769. $as_echo "$as_me: failed program was:" >&5
  18770. sed 's/^/| /' conftest.$ac_ext >&5
  18771. ac_cv_have_decl_getchar_unlocked=no
  18772. fi
  18773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18774. fi
  18775. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
  18776. $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
  18777. if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
  18778. cat >>confdefs.h <<_ACEOF
  18779. #define HAVE_DECL_GETCHAR_UNLOCKED 1
  18780. _ACEOF
  18781. else
  18782. cat >>confdefs.h <<_ACEOF
  18783. #define HAVE_DECL_GETCHAR_UNLOCKED 0
  18784. _ACEOF
  18785. fi
  18786. { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
  18787. $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
  18788. if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
  18789. $as_echo_n "(cached) " >&6
  18790. else
  18791. cat >conftest.$ac_ext <<_ACEOF
  18792. /* confdefs.h. */
  18793. _ACEOF
  18794. cat confdefs.h >>conftest.$ac_ext
  18795. cat >>conftest.$ac_ext <<_ACEOF
  18796. /* end confdefs.h. */
  18797. $ac_includes_default
  18798. int
  18799. main ()
  18800. {
  18801. #ifndef putc_unlocked
  18802. (void) putc_unlocked;
  18803. #endif
  18804. ;
  18805. return 0;
  18806. }
  18807. _ACEOF
  18808. rm -f conftest.$ac_objext
  18809. if { (ac_try="$ac_compile"
  18810. case "(($ac_try" in
  18811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18812. *) ac_try_echo=$ac_try;;
  18813. esac
  18814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18815. $as_echo "$ac_try_echo") >&5
  18816. (eval "$ac_compile") 2>conftest.er1
  18817. ac_status=$?
  18818. grep -v '^ *+' conftest.er1 >conftest.err
  18819. rm -f conftest.er1
  18820. cat conftest.err >&5
  18821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18822. (exit $ac_status); } && {
  18823. test -z "$ac_c_werror_flag" ||
  18824. test ! -s conftest.err
  18825. } && test -s conftest.$ac_objext; then
  18826. ac_cv_have_decl_putc_unlocked=yes
  18827. else
  18828. $as_echo "$as_me: failed program was:" >&5
  18829. sed 's/^/| /' conftest.$ac_ext >&5
  18830. ac_cv_have_decl_putc_unlocked=no
  18831. fi
  18832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18833. fi
  18834. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
  18835. $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
  18836. if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
  18837. cat >>confdefs.h <<_ACEOF
  18838. #define HAVE_DECL_PUTC_UNLOCKED 1
  18839. _ACEOF
  18840. else
  18841. cat >>confdefs.h <<_ACEOF
  18842. #define HAVE_DECL_PUTC_UNLOCKED 0
  18843. _ACEOF
  18844. fi
  18845. { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
  18846. $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
  18847. if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
  18848. $as_echo_n "(cached) " >&6
  18849. else
  18850. cat >conftest.$ac_ext <<_ACEOF
  18851. /* confdefs.h. */
  18852. _ACEOF
  18853. cat confdefs.h >>conftest.$ac_ext
  18854. cat >>conftest.$ac_ext <<_ACEOF
  18855. /* end confdefs.h. */
  18856. $ac_includes_default
  18857. int
  18858. main ()
  18859. {
  18860. #ifndef putchar_unlocked
  18861. (void) putchar_unlocked;
  18862. #endif
  18863. ;
  18864. return 0;
  18865. }
  18866. _ACEOF
  18867. rm -f conftest.$ac_objext
  18868. if { (ac_try="$ac_compile"
  18869. case "(($ac_try" in
  18870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18871. *) ac_try_echo=$ac_try;;
  18872. esac
  18873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18874. $as_echo "$ac_try_echo") >&5
  18875. (eval "$ac_compile") 2>conftest.er1
  18876. ac_status=$?
  18877. grep -v '^ *+' conftest.er1 >conftest.err
  18878. rm -f conftest.er1
  18879. cat conftest.err >&5
  18880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18881. (exit $ac_status); } && {
  18882. test -z "$ac_c_werror_flag" ||
  18883. test ! -s conftest.err
  18884. } && test -s conftest.$ac_objext; then
  18885. ac_cv_have_decl_putchar_unlocked=yes
  18886. else
  18887. $as_echo "$as_me: failed program was:" >&5
  18888. sed 's/^/| /' conftest.$ac_ext >&5
  18889. ac_cv_have_decl_putchar_unlocked=no
  18890. fi
  18891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18892. fi
  18893. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
  18894. $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
  18895. if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
  18896. cat >>confdefs.h <<_ACEOF
  18897. #define HAVE_DECL_PUTCHAR_UNLOCKED 1
  18898. _ACEOF
  18899. else
  18900. cat >>confdefs.h <<_ACEOF
  18901. #define HAVE_DECL_PUTCHAR_UNLOCKED 0
  18902. _ACEOF
  18903. fi
  18904. GNULIB_BTOWC=0;
  18905. GNULIB_WCTOB=0;
  18906. GNULIB_MBSINIT=0;
  18907. GNULIB_MBRTOWC=0;
  18908. GNULIB_MBRLEN=0;
  18909. GNULIB_MBSRTOWCS=0;
  18910. GNULIB_MBSNRTOWCS=0;
  18911. GNULIB_WCRTOMB=0;
  18912. GNULIB_WCSRTOMBS=0;
  18913. GNULIB_WCSNRTOMBS=0;
  18914. GNULIB_WCWIDTH=0;
  18915. HAVE_BTOWC=1;
  18916. HAVE_MBSINIT=1;
  18917. HAVE_MBRTOWC=1;
  18918. HAVE_MBRLEN=1;
  18919. HAVE_MBSRTOWCS=1;
  18920. HAVE_MBSNRTOWCS=1;
  18921. HAVE_WCRTOMB=1;
  18922. HAVE_WCSRTOMBS=1;
  18923. HAVE_WCSNRTOMBS=1;
  18924. HAVE_DECL_WCTOB=1;
  18925. HAVE_DECL_WCWIDTH=1;
  18926. REPLACE_MBSTATE_T=0;
  18927. REPLACE_BTOWC=0;
  18928. REPLACE_WCTOB=0;
  18929. REPLACE_MBSINIT=0;
  18930. REPLACE_MBRTOWC=0;
  18931. REPLACE_MBRLEN=0;
  18932. REPLACE_MBSRTOWCS=0;
  18933. REPLACE_MBSNRTOWCS=0;
  18934. REPLACE_WCRTOMB=0;
  18935. REPLACE_WCSRTOMBS=0;
  18936. REPLACE_WCSNRTOMBS=0;
  18937. REPLACE_WCWIDTH=0;
  18938. WCHAR_H='';
  18939. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  18940. $as_echo_n "checking for wint_t... " >&6; }
  18941. if test "${gt_cv_c_wint_t+set}" = set; then
  18942. $as_echo_n "(cached) " >&6
  18943. else
  18944. cat >conftest.$ac_ext <<_ACEOF
  18945. /* confdefs.h. */
  18946. _ACEOF
  18947. cat confdefs.h >>conftest.$ac_ext
  18948. cat >>conftest.$ac_ext <<_ACEOF
  18949. /* end confdefs.h. */
  18950. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  18951. <wchar.h>.
  18952. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  18953. before <wchar.h>. */
  18954. #include <stddef.h>
  18955. #include <stdio.h>
  18956. #include <time.h>
  18957. #include <wchar.h>
  18958. wint_t foo = (wchar_t)'\0';
  18959. int
  18960. main ()
  18961. {
  18962. ;
  18963. return 0;
  18964. }
  18965. _ACEOF
  18966. rm -f conftest.$ac_objext
  18967. if { (ac_try="$ac_compile"
  18968. case "(($ac_try" in
  18969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18970. *) ac_try_echo=$ac_try;;
  18971. esac
  18972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18973. $as_echo "$ac_try_echo") >&5
  18974. (eval "$ac_compile") 2>conftest.er1
  18975. ac_status=$?
  18976. grep -v '^ *+' conftest.er1 >conftest.err
  18977. rm -f conftest.er1
  18978. cat conftest.err >&5
  18979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18980. (exit $ac_status); } && {
  18981. test -z "$ac_c_werror_flag" ||
  18982. test ! -s conftest.err
  18983. } && test -s conftest.$ac_objext; then
  18984. gt_cv_c_wint_t=yes
  18985. else
  18986. $as_echo "$as_me: failed program was:" >&5
  18987. sed 's/^/| /' conftest.$ac_ext >&5
  18988. gt_cv_c_wint_t=no
  18989. fi
  18990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18991. fi
  18992. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  18993. $as_echo "$gt_cv_c_wint_t" >&6; }
  18994. if test $gt_cv_c_wint_t = yes; then
  18995. cat >>confdefs.h <<\_ACEOF
  18996. #define HAVE_WINT_T 1
  18997. _ACEOF
  18998. fi
  18999. if false; then
  19000. GL_COND_LIBTOOL_TRUE=
  19001. GL_COND_LIBTOOL_FALSE='#'
  19002. else
  19003. GL_COND_LIBTOOL_TRUE='#'
  19004. GL_COND_LIBTOOL_FALSE=
  19005. fi
  19006. gl_cond_libtool=false
  19007. gl_libdeps=
  19008. gl_ltlibdeps=
  19009. gl_source_base='srclib'
  19010. if test $ac_cv_func_alloca_works = no; then
  19011. :
  19012. fi
  19013. # Define an additional variable used in the Makefile substitution.
  19014. cat >conftest.$ac_ext <<_ACEOF
  19015. /* confdefs.h. */
  19016. _ACEOF
  19017. cat confdefs.h >>conftest.$ac_ext
  19018. cat >>conftest.$ac_ext <<_ACEOF
  19019. /* end confdefs.h. */
  19020. #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
  19021. Need own alloca
  19022. #endif
  19023. _ACEOF
  19024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19025. $EGREP "Need own alloca" >/dev/null 2>&1; then
  19026. ALLOCA_H=alloca.h
  19027. else
  19028. ALLOCA_H=
  19029. fi
  19030. rm -f conftest*
  19031. if test $ac_cv_func_canonicalize_file_name = no; then
  19032. gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
  19033. cat >>confdefs.h <<\_ACEOF
  19034. #define realpath rpl_realpath
  19035. _ACEOF
  19036. fi
  19037. cat >>confdefs.h <<\_ACEOF
  19038. #define GNULIB_CANONICALIZE_LGPL 1
  19039. _ACEOF
  19040. { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
  19041. $as_echo_n "checking if environ is properly declared... " >&6; }
  19042. if test "${gt_cv_var_environ_declaration+set}" = set; then
  19043. $as_echo_n "(cached) " >&6
  19044. else
  19045. cat >conftest.$ac_ext <<_ACEOF
  19046. /* confdefs.h. */
  19047. _ACEOF
  19048. cat confdefs.h >>conftest.$ac_ext
  19049. cat >>conftest.$ac_ext <<_ACEOF
  19050. /* end confdefs.h. */
  19051. #include <unistd.h>
  19052. extern struct { int foo; } environ;
  19053. int
  19054. main ()
  19055. {
  19056. environ.foo = 1;
  19057. ;
  19058. return 0;
  19059. }
  19060. _ACEOF
  19061. rm -f conftest.$ac_objext
  19062. if { (ac_try="$ac_compile"
  19063. case "(($ac_try" in
  19064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19065. *) ac_try_echo=$ac_try;;
  19066. esac
  19067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19068. $as_echo "$ac_try_echo") >&5
  19069. (eval "$ac_compile") 2>conftest.er1
  19070. ac_status=$?
  19071. grep -v '^ *+' conftest.er1 >conftest.err
  19072. rm -f conftest.er1
  19073. cat conftest.err >&5
  19074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19075. (exit $ac_status); } && {
  19076. test -z "$ac_c_werror_flag" ||
  19077. test ! -s conftest.err
  19078. } && test -s conftest.$ac_objext; then
  19079. gt_cv_var_environ_declaration=no
  19080. else
  19081. $as_echo "$as_me: failed program was:" >&5
  19082. sed 's/^/| /' conftest.$ac_ext >&5
  19083. gt_cv_var_environ_declaration=yes
  19084. fi
  19085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19086. fi
  19087. { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
  19088. $as_echo "$gt_cv_var_environ_declaration" >&6; }
  19089. if test $gt_cv_var_environ_declaration = yes; then
  19090. cat >>confdefs.h <<\_ACEOF
  19091. #define HAVE_ENVIRON_DECL 1
  19092. _ACEOF
  19093. fi
  19094. if test $gt_cv_var_environ_declaration != yes; then
  19095. HAVE_DECL_ENVIRON=0
  19096. fi
  19097. GNULIB_ENVIRON=1
  19098. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  19099. $as_echo_n "checking for error_at_line... " >&6; }
  19100. if test "${ac_cv_lib_error_at_line+set}" = set; then
  19101. $as_echo_n "(cached) " >&6
  19102. else
  19103. cat >conftest.$ac_ext <<_ACEOF
  19104. /* confdefs.h. */
  19105. _ACEOF
  19106. cat confdefs.h >>conftest.$ac_ext
  19107. cat >>conftest.$ac_ext <<_ACEOF
  19108. /* end confdefs.h. */
  19109. #include <error.h>
  19110. int
  19111. main ()
  19112. {
  19113. error_at_line (0, 0, "", 0, "an error occurred");
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. rm -f conftest.$ac_objext conftest$ac_exeext
  19119. if { (ac_try="$ac_link"
  19120. case "(($ac_try" in
  19121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19122. *) ac_try_echo=$ac_try;;
  19123. esac
  19124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19125. $as_echo "$ac_try_echo") >&5
  19126. (eval "$ac_link") 2>conftest.er1
  19127. ac_status=$?
  19128. grep -v '^ *+' conftest.er1 >conftest.err
  19129. rm -f conftest.er1
  19130. cat conftest.err >&5
  19131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19132. (exit $ac_status); } && {
  19133. test -z "$ac_c_werror_flag" ||
  19134. test ! -s conftest.err
  19135. } && test -s conftest$ac_exeext && {
  19136. test "$cross_compiling" = yes ||
  19137. $as_test_x conftest$ac_exeext
  19138. }; then
  19139. ac_cv_lib_error_at_line=yes
  19140. else
  19141. $as_echo "$as_me: failed program was:" >&5
  19142. sed 's/^/| /' conftest.$ac_ext >&5
  19143. ac_cv_lib_error_at_line=no
  19144. fi
  19145. rm -rf conftest.dSYM
  19146. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19147. conftest$ac_exeext conftest.$ac_ext
  19148. fi
  19149. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  19150. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  19151. if test $ac_cv_lib_error_at_line = no; then
  19152. gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
  19153. fi
  19154. :
  19155. XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
  19156. XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
  19157. if test $gl_cv_func_malloc_posix = yes; then
  19158. HAVE_MALLOC_POSIX=1
  19159. cat >>confdefs.h <<\_ACEOF
  19160. #define HAVE_MALLOC_POSIX 1
  19161. _ACEOF
  19162. else
  19163. gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
  19164. HAVE_MALLOC_POSIX=0
  19165. fi
  19166. GNULIB_MALLOC_POSIX=1
  19167. { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
  19168. $as_echo_n "checking for mbstate_t... " >&6; }
  19169. if test "${ac_cv_type_mbstate_t+set}" = set; then
  19170. $as_echo_n "(cached) " >&6
  19171. else
  19172. cat >conftest.$ac_ext <<_ACEOF
  19173. /* confdefs.h. */
  19174. _ACEOF
  19175. cat confdefs.h >>conftest.$ac_ext
  19176. cat >>conftest.$ac_ext <<_ACEOF
  19177. /* end confdefs.h. */
  19178. $ac_includes_default
  19179. # include <wchar.h>
  19180. int
  19181. main ()
  19182. {
  19183. mbstate_t x; return sizeof x;
  19184. ;
  19185. return 0;
  19186. }
  19187. _ACEOF
  19188. rm -f conftest.$ac_objext
  19189. if { (ac_try="$ac_compile"
  19190. case "(($ac_try" in
  19191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19192. *) ac_try_echo=$ac_try;;
  19193. esac
  19194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19195. $as_echo "$ac_try_echo") >&5
  19196. (eval "$ac_compile") 2>conftest.er1
  19197. ac_status=$?
  19198. grep -v '^ *+' conftest.er1 >conftest.err
  19199. rm -f conftest.er1
  19200. cat conftest.err >&5
  19201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19202. (exit $ac_status); } && {
  19203. test -z "$ac_c_werror_flag" ||
  19204. test ! -s conftest.err
  19205. } && test -s conftest.$ac_objext; then
  19206. ac_cv_type_mbstate_t=yes
  19207. else
  19208. $as_echo "$as_me: failed program was:" >&5
  19209. sed 's/^/| /' conftest.$ac_ext >&5
  19210. ac_cv_type_mbstate_t=no
  19211. fi
  19212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19213. fi
  19214. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  19215. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  19216. if test $ac_cv_type_mbstate_t = yes; then
  19217. cat >>confdefs.h <<\_ACEOF
  19218. #define HAVE_MBSTATE_T 1
  19219. _ACEOF
  19220. else
  19221. cat >>confdefs.h <<\_ACEOF
  19222. #define mbstate_t int
  19223. _ACEOF
  19224. fi
  19225. for ac_func in memmove
  19226. do
  19227. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19228. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19229. $as_echo_n "checking for $ac_func... " >&6; }
  19230. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19231. $as_echo_n "(cached) " >&6
  19232. else
  19233. cat >conftest.$ac_ext <<_ACEOF
  19234. /* confdefs.h. */
  19235. _ACEOF
  19236. cat confdefs.h >>conftest.$ac_ext
  19237. cat >>conftest.$ac_ext <<_ACEOF
  19238. /* end confdefs.h. */
  19239. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19241. #define $ac_func innocuous_$ac_func
  19242. /* System header to define __stub macros and hopefully few prototypes,
  19243. which can conflict with char $ac_func (); below.
  19244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19245. <limits.h> exists even on freestanding compilers. */
  19246. #ifdef __STDC__
  19247. # include <limits.h>
  19248. #else
  19249. # include <assert.h>
  19250. #endif
  19251. #undef $ac_func
  19252. /* Override any GCC internal prototype to avoid an error.
  19253. Use char because int might match the return type of a GCC
  19254. builtin and then its argument prototype would still apply. */
  19255. #ifdef __cplusplus
  19256. extern "C"
  19257. #endif
  19258. char $ac_func ();
  19259. /* The GNU C library defines this for functions which it implements
  19260. to always fail with ENOSYS. Some functions are actually named
  19261. something starting with __ and the normal name is an alias. */
  19262. #if defined __stub_$ac_func || defined __stub___$ac_func
  19263. choke me
  19264. #endif
  19265. int
  19266. main ()
  19267. {
  19268. return $ac_func ();
  19269. ;
  19270. return 0;
  19271. }
  19272. _ACEOF
  19273. rm -f conftest.$ac_objext conftest$ac_exeext
  19274. if { (ac_try="$ac_link"
  19275. case "(($ac_try" in
  19276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19277. *) ac_try_echo=$ac_try;;
  19278. esac
  19279. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19280. $as_echo "$ac_try_echo") >&5
  19281. (eval "$ac_link") 2>conftest.er1
  19282. ac_status=$?
  19283. grep -v '^ *+' conftest.er1 >conftest.err
  19284. rm -f conftest.er1
  19285. cat conftest.err >&5
  19286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19287. (exit $ac_status); } && {
  19288. test -z "$ac_c_werror_flag" ||
  19289. test ! -s conftest.err
  19290. } && test -s conftest$ac_exeext && {
  19291. test "$cross_compiling" = yes ||
  19292. $as_test_x conftest$ac_exeext
  19293. }; then
  19294. eval "$as_ac_var=yes"
  19295. else
  19296. $as_echo "$as_me: failed program was:" >&5
  19297. sed 's/^/| /' conftest.$ac_ext >&5
  19298. eval "$as_ac_var=no"
  19299. fi
  19300. rm -rf conftest.dSYM
  19301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19302. conftest$ac_exeext conftest.$ac_ext
  19303. fi
  19304. ac_res=`eval 'as_val=${'$as_ac_var'}
  19305. $as_echo "$as_val"'`
  19306. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19307. $as_echo "$ac_res" >&6; }
  19308. as_val=`eval 'as_val=${'$as_ac_var'}
  19309. $as_echo "$as_val"'`
  19310. if test "x$as_val" = x""yes; then
  19311. cat >>confdefs.h <<_ACEOF
  19312. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19313. _ACEOF
  19314. else
  19315. gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
  19316. fi
  19317. done
  19318. if test $ac_cv_func_memmove = no; then
  19319. :
  19320. fi
  19321. if test $ac_cv_func_readlink = no; then
  19322. HAVE_READLINK=0
  19323. gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
  19324. :
  19325. fi
  19326. GNULIB_READLINK=1
  19327. if test $RELOCATABLE = yes; then
  19328. gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
  19329. fi
  19330. if test $RELOCATABLE = yes; then
  19331. gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
  19332. fi
  19333. : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
  19334. RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
  19335. RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
  19336. :
  19337. if test $ac_cv_func_setenv = no; then
  19338. HAVE_SETENV=0
  19339. fi
  19340. for ac_header in search.h
  19341. do
  19342. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19343. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19344. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19345. $as_echo_n "checking for $ac_header... " >&6; }
  19346. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19347. $as_echo_n "(cached) " >&6
  19348. fi
  19349. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19350. $as_echo "$as_val"'`
  19351. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19352. $as_echo "$ac_res" >&6; }
  19353. else
  19354. # Is the header compilable?
  19355. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19356. $as_echo_n "checking $ac_header usability... " >&6; }
  19357. cat >conftest.$ac_ext <<_ACEOF
  19358. /* confdefs.h. */
  19359. _ACEOF
  19360. cat confdefs.h >>conftest.$ac_ext
  19361. cat >>conftest.$ac_ext <<_ACEOF
  19362. /* end confdefs.h. */
  19363. $ac_includes_default
  19364. #include <$ac_header>
  19365. _ACEOF
  19366. rm -f conftest.$ac_objext
  19367. if { (ac_try="$ac_compile"
  19368. case "(($ac_try" in
  19369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19370. *) ac_try_echo=$ac_try;;
  19371. esac
  19372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19373. $as_echo "$ac_try_echo") >&5
  19374. (eval "$ac_compile") 2>conftest.er1
  19375. ac_status=$?
  19376. grep -v '^ *+' conftest.er1 >conftest.err
  19377. rm -f conftest.er1
  19378. cat conftest.err >&5
  19379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19380. (exit $ac_status); } && {
  19381. test -z "$ac_c_werror_flag" ||
  19382. test ! -s conftest.err
  19383. } && test -s conftest.$ac_objext; then
  19384. ac_header_compiler=yes
  19385. else
  19386. $as_echo "$as_me: failed program was:" >&5
  19387. sed 's/^/| /' conftest.$ac_ext >&5
  19388. ac_header_compiler=no
  19389. fi
  19390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19391. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19392. $as_echo "$ac_header_compiler" >&6; }
  19393. # Is the header present?
  19394. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19395. $as_echo_n "checking $ac_header presence... " >&6; }
  19396. cat >conftest.$ac_ext <<_ACEOF
  19397. /* confdefs.h. */
  19398. _ACEOF
  19399. cat confdefs.h >>conftest.$ac_ext
  19400. cat >>conftest.$ac_ext <<_ACEOF
  19401. /* end confdefs.h. */
  19402. #include <$ac_header>
  19403. _ACEOF
  19404. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19405. case "(($ac_try" in
  19406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19407. *) ac_try_echo=$ac_try;;
  19408. esac
  19409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19410. $as_echo "$ac_try_echo") >&5
  19411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19412. ac_status=$?
  19413. grep -v '^ *+' conftest.er1 >conftest.err
  19414. rm -f conftest.er1
  19415. cat conftest.err >&5
  19416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19417. (exit $ac_status); } >/dev/null && {
  19418. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19419. test ! -s conftest.err
  19420. }; then
  19421. ac_header_preproc=yes
  19422. else
  19423. $as_echo "$as_me: failed program was:" >&5
  19424. sed 's/^/| /' conftest.$ac_ext >&5
  19425. ac_header_preproc=no
  19426. fi
  19427. rm -f conftest.err conftest.$ac_ext
  19428. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19429. $as_echo "$ac_header_preproc" >&6; }
  19430. # So? What about this header?
  19431. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19432. yes:no: )
  19433. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19434. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19435. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19436. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19437. ac_header_preproc=yes
  19438. ;;
  19439. no:yes:* )
  19440. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19441. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19442. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19443. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19444. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19445. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19446. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19447. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19448. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19449. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19450. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19451. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19452. ;;
  19453. esac
  19454. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19455. $as_echo_n "checking for $ac_header... " >&6; }
  19456. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19457. $as_echo_n "(cached) " >&6
  19458. else
  19459. eval "$as_ac_Header=\$ac_header_preproc"
  19460. fi
  19461. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19462. $as_echo "$as_val"'`
  19463. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19464. $as_echo "$ac_res" >&6; }
  19465. fi
  19466. as_val=`eval 'as_val=${'$as_ac_Header'}
  19467. $as_echo "$as_val"'`
  19468. if test "x$as_val" = x""yes; then
  19469. cat >>confdefs.h <<_ACEOF
  19470. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19471. _ACEOF
  19472. fi
  19473. done
  19474. for ac_func in tsearch
  19475. do
  19476. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19477. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19478. $as_echo_n "checking for $ac_func... " >&6; }
  19479. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19480. $as_echo_n "(cached) " >&6
  19481. else
  19482. cat >conftest.$ac_ext <<_ACEOF
  19483. /* confdefs.h. */
  19484. _ACEOF
  19485. cat confdefs.h >>conftest.$ac_ext
  19486. cat >>conftest.$ac_ext <<_ACEOF
  19487. /* end confdefs.h. */
  19488. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19489. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19490. #define $ac_func innocuous_$ac_func
  19491. /* System header to define __stub macros and hopefully few prototypes,
  19492. which can conflict with char $ac_func (); below.
  19493. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19494. <limits.h> exists even on freestanding compilers. */
  19495. #ifdef __STDC__
  19496. # include <limits.h>
  19497. #else
  19498. # include <assert.h>
  19499. #endif
  19500. #undef $ac_func
  19501. /* Override any GCC internal prototype to avoid an error.
  19502. Use char because int might match the return type of a GCC
  19503. builtin and then its argument prototype would still apply. */
  19504. #ifdef __cplusplus
  19505. extern "C"
  19506. #endif
  19507. char $ac_func ();
  19508. /* The GNU C library defines this for functions which it implements
  19509. to always fail with ENOSYS. Some functions are actually named
  19510. something starting with __ and the normal name is an alias. */
  19511. #if defined __stub_$ac_func || defined __stub___$ac_func
  19512. choke me
  19513. #endif
  19514. int
  19515. main ()
  19516. {
  19517. return $ac_func ();
  19518. ;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. rm -f conftest.$ac_objext conftest$ac_exeext
  19523. if { (ac_try="$ac_link"
  19524. case "(($ac_try" in
  19525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19526. *) ac_try_echo=$ac_try;;
  19527. esac
  19528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19529. $as_echo "$ac_try_echo") >&5
  19530. (eval "$ac_link") 2>conftest.er1
  19531. ac_status=$?
  19532. grep -v '^ *+' conftest.er1 >conftest.err
  19533. rm -f conftest.er1
  19534. cat conftest.err >&5
  19535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19536. (exit $ac_status); } && {
  19537. test -z "$ac_c_werror_flag" ||
  19538. test ! -s conftest.err
  19539. } && test -s conftest$ac_exeext && {
  19540. test "$cross_compiling" = yes ||
  19541. $as_test_x conftest$ac_exeext
  19542. }; then
  19543. eval "$as_ac_var=yes"
  19544. else
  19545. $as_echo "$as_me: failed program was:" >&5
  19546. sed 's/^/| /' conftest.$ac_ext >&5
  19547. eval "$as_ac_var=no"
  19548. fi
  19549. rm -rf conftest.dSYM
  19550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19551. conftest$ac_exeext conftest.$ac_ext
  19552. fi
  19553. ac_res=`eval 'as_val=${'$as_ac_var'}
  19554. $as_echo "$as_val"'`
  19555. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19556. $as_echo "$ac_res" >&6; }
  19557. as_val=`eval 'as_val=${'$as_ac_var'}
  19558. $as_echo "$as_val"'`
  19559. if test "x$as_val" = x""yes; then
  19560. cat >>confdefs.h <<_ACEOF
  19561. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19562. _ACEOF
  19563. fi
  19564. done
  19565. if test -z "$ERRNO_H"; then
  19566. { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
  19567. $as_echo_n "checking for working strerror function... " >&6; }
  19568. if test "${gl_cv_func_working_strerror+set}" = set; then
  19569. $as_echo_n "(cached) " >&6
  19570. else
  19571. if test "$cross_compiling" = yes; then
  19572. cat >conftest.$ac_ext <<_ACEOF
  19573. /* confdefs.h. */
  19574. _ACEOF
  19575. cat confdefs.h >>conftest.$ac_ext
  19576. cat >>conftest.$ac_ext <<_ACEOF
  19577. /* end confdefs.h. */
  19578. #include <string.h>
  19579. int
  19580. main ()
  19581. {
  19582. return !*strerror (-2);
  19583. ;
  19584. return 0;
  19585. }
  19586. _ACEOF
  19587. rm -f conftest.$ac_objext
  19588. if { (ac_try="$ac_compile"
  19589. case "(($ac_try" in
  19590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19591. *) ac_try_echo=$ac_try;;
  19592. esac
  19593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19594. $as_echo "$ac_try_echo") >&5
  19595. (eval "$ac_compile") 2>conftest.er1
  19596. ac_status=$?
  19597. grep -v '^ *+' conftest.er1 >conftest.err
  19598. rm -f conftest.er1
  19599. cat conftest.err >&5
  19600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19601. (exit $ac_status); } && {
  19602. test -z "$ac_c_werror_flag" ||
  19603. test ! -s conftest.err
  19604. } && test -s conftest.$ac_objext; then
  19605. gl_cv_func_working_strerror=yes
  19606. else
  19607. $as_echo "$as_me: failed program was:" >&5
  19608. sed 's/^/| /' conftest.$ac_ext >&5
  19609. gl_cv_func_working_strerror=no
  19610. fi
  19611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19612. else
  19613. cat >conftest.$ac_ext <<_ACEOF
  19614. /* confdefs.h. */
  19615. _ACEOF
  19616. cat confdefs.h >>conftest.$ac_ext
  19617. cat >>conftest.$ac_ext <<_ACEOF
  19618. /* end confdefs.h. */
  19619. #include <string.h>
  19620. int
  19621. main ()
  19622. {
  19623. return !*strerror (-2);
  19624. ;
  19625. return 0;
  19626. }
  19627. _ACEOF
  19628. rm -f conftest$ac_exeext
  19629. if { (ac_try="$ac_link"
  19630. case "(($ac_try" in
  19631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19632. *) ac_try_echo=$ac_try;;
  19633. esac
  19634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19635. $as_echo "$ac_try_echo") >&5
  19636. (eval "$ac_link") 2>&5
  19637. ac_status=$?
  19638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19639. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19640. { (case "(($ac_try" in
  19641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19642. *) ac_try_echo=$ac_try;;
  19643. esac
  19644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19645. $as_echo "$ac_try_echo") >&5
  19646. (eval "$ac_try") 2>&5
  19647. ac_status=$?
  19648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19649. (exit $ac_status); }; }; then
  19650. gl_cv_func_working_strerror=yes
  19651. else
  19652. $as_echo "$as_me: program exited with status $ac_status" >&5
  19653. $as_echo "$as_me: failed program was:" >&5
  19654. sed 's/^/| /' conftest.$ac_ext >&5
  19655. ( exit $ac_status )
  19656. gl_cv_func_working_strerror=no
  19657. fi
  19658. rm -rf conftest.dSYM
  19659. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19660. fi
  19661. fi
  19662. { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
  19663. $as_echo "$gl_cv_func_working_strerror" >&6; }
  19664. if test $gl_cv_func_working_strerror = no; then
  19665. REPLACE_STRERROR=1
  19666. fi
  19667. else
  19668. REPLACE_STRERROR=1
  19669. fi
  19670. if test $REPLACE_STRERROR = 1; then
  19671. { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
  19672. $as_echo_n "checking whether strerror is declared... " >&6; }
  19673. if test "${ac_cv_have_decl_strerror+set}" = set; then
  19674. $as_echo_n "(cached) " >&6
  19675. else
  19676. cat >conftest.$ac_ext <<_ACEOF
  19677. /* confdefs.h. */
  19678. _ACEOF
  19679. cat confdefs.h >>conftest.$ac_ext
  19680. cat >>conftest.$ac_ext <<_ACEOF
  19681. /* end confdefs.h. */
  19682. $ac_includes_default
  19683. int
  19684. main ()
  19685. {
  19686. #ifndef strerror
  19687. (void) strerror;
  19688. #endif
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. rm -f conftest.$ac_objext
  19694. if { (ac_try="$ac_compile"
  19695. case "(($ac_try" in
  19696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19697. *) ac_try_echo=$ac_try;;
  19698. esac
  19699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19700. $as_echo "$ac_try_echo") >&5
  19701. (eval "$ac_compile") 2>conftest.er1
  19702. ac_status=$?
  19703. grep -v '^ *+' conftest.er1 >conftest.err
  19704. rm -f conftest.er1
  19705. cat conftest.err >&5
  19706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19707. (exit $ac_status); } && {
  19708. test -z "$ac_c_werror_flag" ||
  19709. test ! -s conftest.err
  19710. } && test -s conftest.$ac_objext; then
  19711. ac_cv_have_decl_strerror=yes
  19712. else
  19713. $as_echo "$as_me: failed program was:" >&5
  19714. sed 's/^/| /' conftest.$ac_ext >&5
  19715. ac_cv_have_decl_strerror=no
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19718. fi
  19719. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
  19720. $as_echo "$ac_cv_have_decl_strerror" >&6; }
  19721. if test "x$ac_cv_have_decl_strerror" = x""yes; then
  19722. cat >>confdefs.h <<_ACEOF
  19723. #define HAVE_DECL_STRERROR 1
  19724. _ACEOF
  19725. else
  19726. cat >>confdefs.h <<_ACEOF
  19727. #define HAVE_DECL_STRERROR 0
  19728. _ACEOF
  19729. fi
  19730. if test $ac_cv_header_sys_socket_h != yes; then
  19731. for ac_header in winsock2.h
  19732. do
  19733. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19734. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19735. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19736. $as_echo_n "checking for $ac_header... " >&6; }
  19737. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19738. $as_echo_n "(cached) " >&6
  19739. fi
  19740. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19741. $as_echo "$as_val"'`
  19742. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19743. $as_echo "$ac_res" >&6; }
  19744. else
  19745. # Is the header compilable?
  19746. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19747. $as_echo_n "checking $ac_header usability... " >&6; }
  19748. cat >conftest.$ac_ext <<_ACEOF
  19749. /* confdefs.h. */
  19750. _ACEOF
  19751. cat confdefs.h >>conftest.$ac_ext
  19752. cat >>conftest.$ac_ext <<_ACEOF
  19753. /* end confdefs.h. */
  19754. $ac_includes_default
  19755. #include <$ac_header>
  19756. _ACEOF
  19757. rm -f conftest.$ac_objext
  19758. if { (ac_try="$ac_compile"
  19759. case "(($ac_try" in
  19760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19761. *) ac_try_echo=$ac_try;;
  19762. esac
  19763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19764. $as_echo "$ac_try_echo") >&5
  19765. (eval "$ac_compile") 2>conftest.er1
  19766. ac_status=$?
  19767. grep -v '^ *+' conftest.er1 >conftest.err
  19768. rm -f conftest.er1
  19769. cat conftest.err >&5
  19770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19771. (exit $ac_status); } && {
  19772. test -z "$ac_c_werror_flag" ||
  19773. test ! -s conftest.err
  19774. } && test -s conftest.$ac_objext; then
  19775. ac_header_compiler=yes
  19776. else
  19777. $as_echo "$as_me: failed program was:" >&5
  19778. sed 's/^/| /' conftest.$ac_ext >&5
  19779. ac_header_compiler=no
  19780. fi
  19781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19782. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19783. $as_echo "$ac_header_compiler" >&6; }
  19784. # Is the header present?
  19785. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19786. $as_echo_n "checking $ac_header presence... " >&6; }
  19787. cat >conftest.$ac_ext <<_ACEOF
  19788. /* confdefs.h. */
  19789. _ACEOF
  19790. cat confdefs.h >>conftest.$ac_ext
  19791. cat >>conftest.$ac_ext <<_ACEOF
  19792. /* end confdefs.h. */
  19793. #include <$ac_header>
  19794. _ACEOF
  19795. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19796. case "(($ac_try" in
  19797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19798. *) ac_try_echo=$ac_try;;
  19799. esac
  19800. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19801. $as_echo "$ac_try_echo") >&5
  19802. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19803. ac_status=$?
  19804. grep -v '^ *+' conftest.er1 >conftest.err
  19805. rm -f conftest.er1
  19806. cat conftest.err >&5
  19807. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19808. (exit $ac_status); } >/dev/null && {
  19809. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19810. test ! -s conftest.err
  19811. }; then
  19812. ac_header_preproc=yes
  19813. else
  19814. $as_echo "$as_me: failed program was:" >&5
  19815. sed 's/^/| /' conftest.$ac_ext >&5
  19816. ac_header_preproc=no
  19817. fi
  19818. rm -f conftest.err conftest.$ac_ext
  19819. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19820. $as_echo "$ac_header_preproc" >&6; }
  19821. # So? What about this header?
  19822. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19823. yes:no: )
  19824. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19825. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19826. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19827. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19828. ac_header_preproc=yes
  19829. ;;
  19830. no:yes:* )
  19831. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19832. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19833. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19834. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19835. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19836. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19837. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19838. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19839. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19840. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19841. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19842. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19843. ;;
  19844. esac
  19845. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19846. $as_echo_n "checking for $ac_header... " >&6; }
  19847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19848. $as_echo_n "(cached) " >&6
  19849. else
  19850. eval "$as_ac_Header=\$ac_header_preproc"
  19851. fi
  19852. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19853. $as_echo "$as_val"'`
  19854. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19855. $as_echo "$ac_res" >&6; }
  19856. fi
  19857. as_val=`eval 'as_val=${'$as_ac_Header'}
  19858. $as_echo "$as_val"'`
  19859. if test "x$as_val" = x""yes; then
  19860. cat >>confdefs.h <<_ACEOF
  19861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19862. _ACEOF
  19863. fi
  19864. done
  19865. fi
  19866. fi
  19867. if test $gl_cv_have_include_next = yes; then
  19868. gl_cv_next_signal_h='<'signal.h'>'
  19869. else
  19870. { $as_echo "$as_me:$LINENO: checking absolute name of <signal.h>" >&5
  19871. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  19872. if test "${gl_cv_next_signal_h+set}" = set; then
  19873. $as_echo_n "(cached) " >&6
  19874. else
  19875. if test $ac_cv_header_signal_h = yes; then
  19876. cat >conftest.$ac_ext <<_ACEOF
  19877. /* confdefs.h. */
  19878. _ACEOF
  19879. cat confdefs.h >>conftest.$ac_ext
  19880. cat >>conftest.$ac_ext <<_ACEOF
  19881. /* end confdefs.h. */
  19882. #include <signal.h>
  19883. _ACEOF
  19884. case "$host_os" in
  19885. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  19886. *) gl_absname_cpp="$ac_cpp" ;;
  19887. esac
  19888. gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  19889. sed -n '\#/signal.h#{
  19890. s#.*"\(.*/signal.h\)".*#\1#
  19891. s#^/[^/]#//&#
  19892. p
  19893. q
  19894. }'`'"'
  19895. else
  19896. gl_cv_next_signal_h='<'signal.h'>'
  19897. fi
  19898. fi
  19899. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_signal_h" >&5
  19900. $as_echo "$gl_cv_next_signal_h" >&6; }
  19901. fi
  19902. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  19903. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  19904. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  19905. gl_next_as_first_directive='<'signal.h'>'
  19906. else
  19907. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  19908. gl_next_as_first_directive=$gl_cv_next_signal_h
  19909. fi
  19910. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  19911. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  19912. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  19913. { $as_echo "$as_me:$LINENO: checking for volatile sig_atomic_t" >&5
  19914. $as_echo_n "checking for volatile sig_atomic_t... " >&6; }
  19915. if test "${ac_cv_type_volatile_sig_atomic_t+set}" = set; then
  19916. $as_echo_n "(cached) " >&6
  19917. else
  19918. ac_cv_type_volatile_sig_atomic_t=no
  19919. cat >conftest.$ac_ext <<_ACEOF
  19920. /* confdefs.h. */
  19921. _ACEOF
  19922. cat confdefs.h >>conftest.$ac_ext
  19923. cat >>conftest.$ac_ext <<_ACEOF
  19924. /* end confdefs.h. */
  19925. #include <signal.h>
  19926. int
  19927. main ()
  19928. {
  19929. if (sizeof (volatile sig_atomic_t))
  19930. return 0;
  19931. ;
  19932. return 0;
  19933. }
  19934. _ACEOF
  19935. rm -f conftest.$ac_objext
  19936. if { (ac_try="$ac_compile"
  19937. case "(($ac_try" in
  19938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19939. *) ac_try_echo=$ac_try;;
  19940. esac
  19941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19942. $as_echo "$ac_try_echo") >&5
  19943. (eval "$ac_compile") 2>conftest.er1
  19944. ac_status=$?
  19945. grep -v '^ *+' conftest.er1 >conftest.err
  19946. rm -f conftest.er1
  19947. cat conftest.err >&5
  19948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19949. (exit $ac_status); } && {
  19950. test -z "$ac_c_werror_flag" ||
  19951. test ! -s conftest.err
  19952. } && test -s conftest.$ac_objext; then
  19953. cat >conftest.$ac_ext <<_ACEOF
  19954. /* confdefs.h. */
  19955. _ACEOF
  19956. cat confdefs.h >>conftest.$ac_ext
  19957. cat >>conftest.$ac_ext <<_ACEOF
  19958. /* end confdefs.h. */
  19959. #include <signal.h>
  19960. int
  19961. main ()
  19962. {
  19963. if (sizeof ((volatile sig_atomic_t)))
  19964. return 0;
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. rm -f conftest.$ac_objext
  19970. if { (ac_try="$ac_compile"
  19971. case "(($ac_try" in
  19972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19973. *) ac_try_echo=$ac_try;;
  19974. esac
  19975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19976. $as_echo "$ac_try_echo") >&5
  19977. (eval "$ac_compile") 2>conftest.er1
  19978. ac_status=$?
  19979. grep -v '^ *+' conftest.er1 >conftest.err
  19980. rm -f conftest.er1
  19981. cat conftest.err >&5
  19982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19983. (exit $ac_status); } && {
  19984. test -z "$ac_c_werror_flag" ||
  19985. test ! -s conftest.err
  19986. } && test -s conftest.$ac_objext; then
  19987. :
  19988. else
  19989. $as_echo "$as_me: failed program was:" >&5
  19990. sed 's/^/| /' conftest.$ac_ext >&5
  19991. ac_cv_type_volatile_sig_atomic_t=yes
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19994. else
  19995. $as_echo "$as_me: failed program was:" >&5
  19996. sed 's/^/| /' conftest.$ac_ext >&5
  19997. fi
  19998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19999. fi
  20000. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_volatile_sig_atomic_t" >&5
  20001. $as_echo "$ac_cv_type_volatile_sig_atomic_t" >&6; }
  20002. if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then
  20003. :
  20004. else
  20005. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  20006. fi
  20007. cat >>confdefs.h <<\_ACEOF
  20008. #define GNULIB_SIGPIPE 1
  20009. _ACEOF
  20010. GNULIB_SIGNAL_H_SIGPIPE=1
  20011. GNULIB_STDIO_H_SIGPIPE=1
  20012. GNULIB_UNISTD_H_SIGPIPE=1
  20013. signals_not_posix=
  20014. cat >conftest.$ac_ext <<_ACEOF
  20015. /* confdefs.h. */
  20016. _ACEOF
  20017. cat confdefs.h >>conftest.$ac_ext
  20018. cat >>conftest.$ac_ext <<_ACEOF
  20019. /* end confdefs.h. */
  20020. #include <signal.h>
  20021. _ACEOF
  20022. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20023. $EGREP "sigset_t" >/dev/null 2>&1; then
  20024. :
  20025. else
  20026. signals_not_posix=1
  20027. fi
  20028. rm -f conftest*
  20029. if test -z "$signals_not_posix"; then
  20030. { $as_echo "$as_me:$LINENO: checking for sigprocmask" >&5
  20031. $as_echo_n "checking for sigprocmask... " >&6; }
  20032. if test "${ac_cv_func_sigprocmask+set}" = set; then
  20033. $as_echo_n "(cached) " >&6
  20034. else
  20035. cat >conftest.$ac_ext <<_ACEOF
  20036. /* confdefs.h. */
  20037. _ACEOF
  20038. cat confdefs.h >>conftest.$ac_ext
  20039. cat >>conftest.$ac_ext <<_ACEOF
  20040. /* end confdefs.h. */
  20041. /* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
  20042. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20043. #define sigprocmask innocuous_sigprocmask
  20044. /* System header to define __stub macros and hopefully few prototypes,
  20045. which can conflict with char sigprocmask (); below.
  20046. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20047. <limits.h> exists even on freestanding compilers. */
  20048. #ifdef __STDC__
  20049. # include <limits.h>
  20050. #else
  20051. # include <assert.h>
  20052. #endif
  20053. #undef sigprocmask
  20054. /* Override any GCC internal prototype to avoid an error.
  20055. Use char because int might match the return type of a GCC
  20056. builtin and then its argument prototype would still apply. */
  20057. #ifdef __cplusplus
  20058. extern "C"
  20059. #endif
  20060. char sigprocmask ();
  20061. /* The GNU C library defines this for functions which it implements
  20062. to always fail with ENOSYS. Some functions are actually named
  20063. something starting with __ and the normal name is an alias. */
  20064. #if defined __stub_sigprocmask || defined __stub___sigprocmask
  20065. choke me
  20066. #endif
  20067. int
  20068. main ()
  20069. {
  20070. return sigprocmask ();
  20071. ;
  20072. return 0;
  20073. }
  20074. _ACEOF
  20075. rm -f conftest.$ac_objext conftest$ac_exeext
  20076. if { (ac_try="$ac_link"
  20077. case "(($ac_try" in
  20078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20079. *) ac_try_echo=$ac_try;;
  20080. esac
  20081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20082. $as_echo "$ac_try_echo") >&5
  20083. (eval "$ac_link") 2>conftest.er1
  20084. ac_status=$?
  20085. grep -v '^ *+' conftest.er1 >conftest.err
  20086. rm -f conftest.er1
  20087. cat conftest.err >&5
  20088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20089. (exit $ac_status); } && {
  20090. test -z "$ac_c_werror_flag" ||
  20091. test ! -s conftest.err
  20092. } && test -s conftest$ac_exeext && {
  20093. test "$cross_compiling" = yes ||
  20094. $as_test_x conftest$ac_exeext
  20095. }; then
  20096. ac_cv_func_sigprocmask=yes
  20097. else
  20098. $as_echo "$as_me: failed program was:" >&5
  20099. sed 's/^/| /' conftest.$ac_ext >&5
  20100. ac_cv_func_sigprocmask=no
  20101. fi
  20102. rm -rf conftest.dSYM
  20103. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20104. conftest$ac_exeext conftest.$ac_ext
  20105. fi
  20106. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
  20107. $as_echo "$ac_cv_func_sigprocmask" >&6; }
  20108. if test "x$ac_cv_func_sigprocmask" = x""yes; then
  20109. gl_cv_func_sigprocmask=1
  20110. fi
  20111. fi
  20112. if test -z "$gl_cv_func_sigprocmask"; then
  20113. HAVE_POSIX_SIGNALBLOCKING=0
  20114. gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  20115. { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
  20116. $as_echo_n "checking for sigset_t... " >&6; }
  20117. if test "${ac_cv_type_sigset_t+set}" = set; then
  20118. $as_echo_n "(cached) " >&6
  20119. else
  20120. ac_cv_type_sigset_t=no
  20121. cat >conftest.$ac_ext <<_ACEOF
  20122. /* confdefs.h. */
  20123. _ACEOF
  20124. cat confdefs.h >>conftest.$ac_ext
  20125. cat >>conftest.$ac_ext <<_ACEOF
  20126. /* end confdefs.h. */
  20127. #include <signal.h>
  20128. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  20129. #include <sys/types.h>
  20130. int
  20131. main ()
  20132. {
  20133. if (sizeof (sigset_t))
  20134. return 0;
  20135. ;
  20136. return 0;
  20137. }
  20138. _ACEOF
  20139. rm -f conftest.$ac_objext
  20140. if { (ac_try="$ac_compile"
  20141. case "(($ac_try" in
  20142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20143. *) ac_try_echo=$ac_try;;
  20144. esac
  20145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20146. $as_echo "$ac_try_echo") >&5
  20147. (eval "$ac_compile") 2>conftest.er1
  20148. ac_status=$?
  20149. grep -v '^ *+' conftest.er1 >conftest.err
  20150. rm -f conftest.er1
  20151. cat conftest.err >&5
  20152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20153. (exit $ac_status); } && {
  20154. test -z "$ac_c_werror_flag" ||
  20155. test ! -s conftest.err
  20156. } && test -s conftest.$ac_objext; then
  20157. cat >conftest.$ac_ext <<_ACEOF
  20158. /* confdefs.h. */
  20159. _ACEOF
  20160. cat confdefs.h >>conftest.$ac_ext
  20161. cat >>conftest.$ac_ext <<_ACEOF
  20162. /* end confdefs.h. */
  20163. #include <signal.h>
  20164. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  20165. #include <sys/types.h>
  20166. int
  20167. main ()
  20168. {
  20169. if (sizeof ((sigset_t)))
  20170. return 0;
  20171. ;
  20172. return 0;
  20173. }
  20174. _ACEOF
  20175. rm -f conftest.$ac_objext
  20176. if { (ac_try="$ac_compile"
  20177. case "(($ac_try" in
  20178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20179. *) ac_try_echo=$ac_try;;
  20180. esac
  20181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20182. $as_echo "$ac_try_echo") >&5
  20183. (eval "$ac_compile") 2>conftest.er1
  20184. ac_status=$?
  20185. grep -v '^ *+' conftest.er1 >conftest.err
  20186. rm -f conftest.er1
  20187. cat conftest.err >&5
  20188. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20189. (exit $ac_status); } && {
  20190. test -z "$ac_c_werror_flag" ||
  20191. test ! -s conftest.err
  20192. } && test -s conftest.$ac_objext; then
  20193. :
  20194. else
  20195. $as_echo "$as_me: failed program was:" >&5
  20196. sed 's/^/| /' conftest.$ac_ext >&5
  20197. ac_cv_type_sigset_t=yes
  20198. fi
  20199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20200. else
  20201. $as_echo "$as_me: failed program was:" >&5
  20202. sed 's/^/| /' conftest.$ac_ext >&5
  20203. fi
  20204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20205. fi
  20206. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
  20207. $as_echo "$ac_cv_type_sigset_t" >&6; }
  20208. if test "x$ac_cv_type_sigset_t" = x""yes; then
  20209. cat >>confdefs.h <<_ACEOF
  20210. #define HAVE_SIGSET_T 1
  20211. _ACEOF
  20212. gl_cv_type_sigset_t=yes
  20213. else
  20214. gl_cv_type_sigset_t=no
  20215. fi
  20216. if test $gl_cv_type_sigset_t != yes; then
  20217. HAVE_SIGSET_T=0
  20218. fi
  20219. fi
  20220. GNULIB_SIGPROCMASK=1
  20221. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  20222. $as_echo_n "checking for ssize_t... " >&6; }
  20223. if test "${gt_cv_ssize_t+set}" = set; then
  20224. $as_echo_n "(cached) " >&6
  20225. else
  20226. cat >conftest.$ac_ext <<_ACEOF
  20227. /* confdefs.h. */
  20228. _ACEOF
  20229. cat confdefs.h >>conftest.$ac_ext
  20230. cat >>conftest.$ac_ext <<_ACEOF
  20231. /* end confdefs.h. */
  20232. #include <sys/types.h>
  20233. int
  20234. main ()
  20235. {
  20236. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  20237. return !x;
  20238. ;
  20239. return 0;
  20240. }
  20241. _ACEOF
  20242. rm -f conftest.$ac_objext
  20243. if { (ac_try="$ac_compile"
  20244. case "(($ac_try" in
  20245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20246. *) ac_try_echo=$ac_try;;
  20247. esac
  20248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20249. $as_echo "$ac_try_echo") >&5
  20250. (eval "$ac_compile") 2>conftest.er1
  20251. ac_status=$?
  20252. grep -v '^ *+' conftest.er1 >conftest.err
  20253. rm -f conftest.er1
  20254. cat conftest.err >&5
  20255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20256. (exit $ac_status); } && {
  20257. test -z "$ac_c_werror_flag" ||
  20258. test ! -s conftest.err
  20259. } && test -s conftest.$ac_objext; then
  20260. gt_cv_ssize_t=yes
  20261. else
  20262. $as_echo "$as_me: failed program was:" >&5
  20263. sed 's/^/| /' conftest.$ac_ext >&5
  20264. gt_cv_ssize_t=no
  20265. fi
  20266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20267. fi
  20268. { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
  20269. $as_echo "$gt_cv_ssize_t" >&6; }
  20270. if test $gt_cv_ssize_t = no; then
  20271. cat >>confdefs.h <<\_ACEOF
  20272. #define ssize_t int
  20273. _ACEOF
  20274. fi
  20275. # Define two additional variables used in the Makefile substitution.
  20276. if test "$ac_cv_header_stdbool_h" = yes; then
  20277. STDBOOL_H=''
  20278. else
  20279. STDBOOL_H='stdbool.h'
  20280. fi
  20281. if test "$ac_cv_type__Bool" = yes; then
  20282. HAVE__BOOL=1
  20283. else
  20284. HAVE__BOOL=0
  20285. fi
  20286. if test $ac_cv_type_long_long_int = yes; then
  20287. HAVE_LONG_LONG_INT=1
  20288. else
  20289. HAVE_LONG_LONG_INT=0
  20290. fi
  20291. if test $ac_cv_type_unsigned_long_long_int = yes; then
  20292. HAVE_UNSIGNED_LONG_LONG_INT=1
  20293. else
  20294. HAVE_UNSIGNED_LONG_LONG_INT=0
  20295. fi
  20296. if test $ac_cv_header_inttypes_h = yes; then
  20297. HAVE_INTTYPES_H=1
  20298. else
  20299. HAVE_INTTYPES_H=0
  20300. fi
  20301. if test $ac_cv_header_sys_types_h = yes; then
  20302. HAVE_SYS_TYPES_H=1
  20303. else
  20304. HAVE_SYS_TYPES_H=0
  20305. fi
  20306. if test $gl_cv_have_include_next = yes; then
  20307. gl_cv_next_stdint_h='<'stdint.h'>'
  20308. else
  20309. { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
  20310. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  20311. if test "${gl_cv_next_stdint_h+set}" = set; then
  20312. $as_echo_n "(cached) " >&6
  20313. else
  20314. if test $ac_cv_header_stdint_h = yes; then
  20315. cat >conftest.$ac_ext <<_ACEOF
  20316. /* confdefs.h. */
  20317. _ACEOF
  20318. cat confdefs.h >>conftest.$ac_ext
  20319. cat >>conftest.$ac_ext <<_ACEOF
  20320. /* end confdefs.h. */
  20321. #include <stdint.h>
  20322. _ACEOF
  20323. case "$host_os" in
  20324. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  20325. *) gl_absname_cpp="$ac_cpp" ;;
  20326. esac
  20327. gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  20328. sed -n '\#/stdint.h#{
  20329. s#.*"\(.*/stdint.h\)".*#\1#
  20330. s#^/[^/]#//&#
  20331. p
  20332. q
  20333. }'`'"'
  20334. else
  20335. gl_cv_next_stdint_h='<'stdint.h'>'
  20336. fi
  20337. fi
  20338. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
  20339. $as_echo "$gl_cv_next_stdint_h" >&6; }
  20340. fi
  20341. NEXT_STDINT_H=$gl_cv_next_stdint_h
  20342. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  20343. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  20344. gl_next_as_first_directive='<'stdint.h'>'
  20345. else
  20346. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  20347. gl_next_as_first_directive=$gl_cv_next_stdint_h
  20348. fi
  20349. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  20350. if test $ac_cv_header_stdint_h = yes; then
  20351. HAVE_STDINT_H=1
  20352. else
  20353. HAVE_STDINT_H=0
  20354. fi
  20355. if test $ac_cv_header_stdint_h = yes; then
  20356. { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
  20357. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  20358. if test "${gl_cv_header_working_stdint_h+set}" = set; then
  20359. $as_echo_n "(cached) " >&6
  20360. else
  20361. gl_cv_header_working_stdint_h=no
  20362. cat >conftest.$ac_ext <<_ACEOF
  20363. /* confdefs.h. */
  20364. _ACEOF
  20365. cat confdefs.h >>conftest.$ac_ext
  20366. cat >>conftest.$ac_ext <<_ACEOF
  20367. /* end confdefs.h. */
  20368. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  20369. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  20370. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  20371. #include <stdint.h>
  20372. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  20373. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  20374. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  20375. #endif
  20376. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20377. included before <wchar.h>. */
  20378. #include <stddef.h>
  20379. #include <signal.h>
  20380. #if HAVE_WCHAR_H
  20381. # include <stdio.h>
  20382. # include <time.h>
  20383. # include <wchar.h>
  20384. #endif
  20385. #ifdef INT8_MAX
  20386. int8_t a1 = INT8_MAX;
  20387. int8_t a1min = INT8_MIN;
  20388. #endif
  20389. #ifdef INT16_MAX
  20390. int16_t a2 = INT16_MAX;
  20391. int16_t a2min = INT16_MIN;
  20392. #endif
  20393. #ifdef INT32_MAX
  20394. int32_t a3 = INT32_MAX;
  20395. int32_t a3min = INT32_MIN;
  20396. #endif
  20397. #ifdef INT64_MAX
  20398. int64_t a4 = INT64_MAX;
  20399. int64_t a4min = INT64_MIN;
  20400. #endif
  20401. #ifdef UINT8_MAX
  20402. uint8_t b1 = UINT8_MAX;
  20403. #else
  20404. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  20405. #endif
  20406. #ifdef UINT16_MAX
  20407. uint16_t b2 = UINT16_MAX;
  20408. #endif
  20409. #ifdef UINT32_MAX
  20410. uint32_t b3 = UINT32_MAX;
  20411. #endif
  20412. #ifdef UINT64_MAX
  20413. uint64_t b4 = UINT64_MAX;
  20414. #endif
  20415. int_least8_t c1 = INT8_C (0x7f);
  20416. int_least8_t c1max = INT_LEAST8_MAX;
  20417. int_least8_t c1min = INT_LEAST8_MIN;
  20418. int_least16_t c2 = INT16_C (0x7fff);
  20419. int_least16_t c2max = INT_LEAST16_MAX;
  20420. int_least16_t c2min = INT_LEAST16_MIN;
  20421. int_least32_t c3 = INT32_C (0x7fffffff);
  20422. int_least32_t c3max = INT_LEAST32_MAX;
  20423. int_least32_t c3min = INT_LEAST32_MIN;
  20424. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  20425. int_least64_t c4max = INT_LEAST64_MAX;
  20426. int_least64_t c4min = INT_LEAST64_MIN;
  20427. uint_least8_t d1 = UINT8_C (0xff);
  20428. uint_least8_t d1max = UINT_LEAST8_MAX;
  20429. uint_least16_t d2 = UINT16_C (0xffff);
  20430. uint_least16_t d2max = UINT_LEAST16_MAX;
  20431. uint_least32_t d3 = UINT32_C (0xffffffff);
  20432. uint_least32_t d3max = UINT_LEAST32_MAX;
  20433. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  20434. uint_least64_t d4max = UINT_LEAST64_MAX;
  20435. int_fast8_t e1 = INT_FAST8_MAX;
  20436. int_fast8_t e1min = INT_FAST8_MIN;
  20437. int_fast16_t e2 = INT_FAST16_MAX;
  20438. int_fast16_t e2min = INT_FAST16_MIN;
  20439. int_fast32_t e3 = INT_FAST32_MAX;
  20440. int_fast32_t e3min = INT_FAST32_MIN;
  20441. int_fast64_t e4 = INT_FAST64_MAX;
  20442. int_fast64_t e4min = INT_FAST64_MIN;
  20443. uint_fast8_t f1 = UINT_FAST8_MAX;
  20444. uint_fast16_t f2 = UINT_FAST16_MAX;
  20445. uint_fast32_t f3 = UINT_FAST32_MAX;
  20446. uint_fast64_t f4 = UINT_FAST64_MAX;
  20447. #ifdef INTPTR_MAX
  20448. intptr_t g = INTPTR_MAX;
  20449. intptr_t gmin = INTPTR_MIN;
  20450. #endif
  20451. #ifdef UINTPTR_MAX
  20452. uintptr_t h = UINTPTR_MAX;
  20453. #endif
  20454. intmax_t i = INTMAX_MAX;
  20455. uintmax_t j = UINTMAX_MAX;
  20456. #include <limits.h> /* for CHAR_BIT */
  20457. #define TYPE_MINIMUM(t) \
  20458. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
  20459. #define TYPE_MAXIMUM(t) \
  20460. ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
  20461. struct s {
  20462. int check_PTRDIFF:
  20463. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  20464. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  20465. ? 1 : -1;
  20466. /* Detect bug in FreeBSD 6.0 / ia64. */
  20467. int check_SIG_ATOMIC:
  20468. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  20469. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  20470. ? 1 : -1;
  20471. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  20472. int check_WCHAR:
  20473. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  20474. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  20475. ? 1 : -1;
  20476. /* Detect bug in mingw. */
  20477. int check_WINT:
  20478. WINT_MIN == TYPE_MINIMUM (wint_t)
  20479. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  20480. ? 1 : -1;
  20481. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  20482. int check_UINT8_C:
  20483. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  20484. int check_UINT16_C:
  20485. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  20486. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  20487. #ifdef UINT8_MAX
  20488. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  20489. #endif
  20490. #ifdef UINT16_MAX
  20491. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  20492. #endif
  20493. #ifdef UINT32_MAX
  20494. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  20495. #endif
  20496. #ifdef UINT64_MAX
  20497. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  20498. #endif
  20499. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  20500. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  20501. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  20502. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  20503. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  20504. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  20505. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  20506. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  20507. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  20508. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  20509. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  20510. };
  20511. int
  20512. main ()
  20513. {
  20514. ;
  20515. return 0;
  20516. }
  20517. _ACEOF
  20518. rm -f conftest.$ac_objext
  20519. if { (ac_try="$ac_compile"
  20520. case "(($ac_try" in
  20521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20522. *) ac_try_echo=$ac_try;;
  20523. esac
  20524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20525. $as_echo "$ac_try_echo") >&5
  20526. (eval "$ac_compile") 2>conftest.er1
  20527. ac_status=$?
  20528. grep -v '^ *+' conftest.er1 >conftest.err
  20529. rm -f conftest.er1
  20530. cat conftest.err >&5
  20531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20532. (exit $ac_status); } && {
  20533. test -z "$ac_c_werror_flag" ||
  20534. test ! -s conftest.err
  20535. } && test -s conftest.$ac_objext; then
  20536. if test "$cross_compiling" = yes; then
  20537. gl_cv_header_working_stdint_h=yes
  20538. else
  20539. cat >conftest.$ac_ext <<_ACEOF
  20540. /* confdefs.h. */
  20541. _ACEOF
  20542. cat confdefs.h >>conftest.$ac_ext
  20543. cat >>conftest.$ac_ext <<_ACEOF
  20544. /* end confdefs.h. */
  20545. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  20546. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  20547. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  20548. #include <stdint.h>
  20549. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20550. included before <wchar.h>. */
  20551. #include <stddef.h>
  20552. #include <signal.h>
  20553. #if HAVE_WCHAR_H
  20554. # include <stdio.h>
  20555. # include <time.h>
  20556. # include <wchar.h>
  20557. #endif
  20558. #include <stdio.h>
  20559. #include <string.h>
  20560. #define MVAL(macro) MVAL1(macro)
  20561. #define MVAL1(expression) #expression
  20562. static const char *macro_values[] =
  20563. {
  20564. #ifdef INT8_MAX
  20565. MVAL (INT8_MAX),
  20566. #endif
  20567. #ifdef INT16_MAX
  20568. MVAL (INT16_MAX),
  20569. #endif
  20570. #ifdef INT32_MAX
  20571. MVAL (INT32_MAX),
  20572. #endif
  20573. #ifdef INT64_MAX
  20574. MVAL (INT64_MAX),
  20575. #endif
  20576. #ifdef UINT8_MAX
  20577. MVAL (UINT8_MAX),
  20578. #endif
  20579. #ifdef UINT16_MAX
  20580. MVAL (UINT16_MAX),
  20581. #endif
  20582. #ifdef UINT32_MAX
  20583. MVAL (UINT32_MAX),
  20584. #endif
  20585. #ifdef UINT64_MAX
  20586. MVAL (UINT64_MAX),
  20587. #endif
  20588. NULL
  20589. };
  20590. int
  20591. main ()
  20592. {
  20593. const char **mv;
  20594. for (mv = macro_values; *mv != NULL; mv++)
  20595. {
  20596. const char *value = *mv;
  20597. /* Test whether it looks like a cast expression. */
  20598. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  20599. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  20600. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  20601. || strncmp (value, "((int)"/*)*/, 6) == 0
  20602. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  20603. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  20604. return 1;
  20605. }
  20606. return 0;
  20607. ;
  20608. return 0;
  20609. }
  20610. _ACEOF
  20611. rm -f conftest$ac_exeext
  20612. if { (ac_try="$ac_link"
  20613. case "(($ac_try" in
  20614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20615. *) ac_try_echo=$ac_try;;
  20616. esac
  20617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20618. $as_echo "$ac_try_echo") >&5
  20619. (eval "$ac_link") 2>&5
  20620. ac_status=$?
  20621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20623. { (case "(($ac_try" in
  20624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20625. *) ac_try_echo=$ac_try;;
  20626. esac
  20627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20628. $as_echo "$ac_try_echo") >&5
  20629. (eval "$ac_try") 2>&5
  20630. ac_status=$?
  20631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20632. (exit $ac_status); }; }; then
  20633. gl_cv_header_working_stdint_h=yes
  20634. else
  20635. $as_echo "$as_me: program exited with status $ac_status" >&5
  20636. $as_echo "$as_me: failed program was:" >&5
  20637. sed 's/^/| /' conftest.$ac_ext >&5
  20638. fi
  20639. rm -rf conftest.dSYM
  20640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20641. fi
  20642. else
  20643. $as_echo "$as_me: failed program was:" >&5
  20644. sed 's/^/| /' conftest.$ac_ext >&5
  20645. fi
  20646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20647. fi
  20648. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
  20649. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  20650. fi
  20651. if test "$gl_cv_header_working_stdint_h" = yes; then
  20652. STDINT_H=
  20653. else
  20654. for ac_header in sys/inttypes.h sys/bitypes.h
  20655. do
  20656. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20658. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20659. $as_echo_n "checking for $ac_header... " >&6; }
  20660. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20661. $as_echo_n "(cached) " >&6
  20662. fi
  20663. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20664. $as_echo "$as_val"'`
  20665. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20666. $as_echo "$ac_res" >&6; }
  20667. else
  20668. # Is the header compilable?
  20669. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20670. $as_echo_n "checking $ac_header usability... " >&6; }
  20671. cat >conftest.$ac_ext <<_ACEOF
  20672. /* confdefs.h. */
  20673. _ACEOF
  20674. cat confdefs.h >>conftest.$ac_ext
  20675. cat >>conftest.$ac_ext <<_ACEOF
  20676. /* end confdefs.h. */
  20677. $ac_includes_default
  20678. #include <$ac_header>
  20679. _ACEOF
  20680. rm -f conftest.$ac_objext
  20681. if { (ac_try="$ac_compile"
  20682. case "(($ac_try" in
  20683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20684. *) ac_try_echo=$ac_try;;
  20685. esac
  20686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20687. $as_echo "$ac_try_echo") >&5
  20688. (eval "$ac_compile") 2>conftest.er1
  20689. ac_status=$?
  20690. grep -v '^ *+' conftest.er1 >conftest.err
  20691. rm -f conftest.er1
  20692. cat conftest.err >&5
  20693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20694. (exit $ac_status); } && {
  20695. test -z "$ac_c_werror_flag" ||
  20696. test ! -s conftest.err
  20697. } && test -s conftest.$ac_objext; then
  20698. ac_header_compiler=yes
  20699. else
  20700. $as_echo "$as_me: failed program was:" >&5
  20701. sed 's/^/| /' conftest.$ac_ext >&5
  20702. ac_header_compiler=no
  20703. fi
  20704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20705. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20706. $as_echo "$ac_header_compiler" >&6; }
  20707. # Is the header present?
  20708. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20709. $as_echo_n "checking $ac_header presence... " >&6; }
  20710. cat >conftest.$ac_ext <<_ACEOF
  20711. /* confdefs.h. */
  20712. _ACEOF
  20713. cat confdefs.h >>conftest.$ac_ext
  20714. cat >>conftest.$ac_ext <<_ACEOF
  20715. /* end confdefs.h. */
  20716. #include <$ac_header>
  20717. _ACEOF
  20718. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20719. case "(($ac_try" in
  20720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20721. *) ac_try_echo=$ac_try;;
  20722. esac
  20723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20724. $as_echo "$ac_try_echo") >&5
  20725. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20726. ac_status=$?
  20727. grep -v '^ *+' conftest.er1 >conftest.err
  20728. rm -f conftest.er1
  20729. cat conftest.err >&5
  20730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20731. (exit $ac_status); } >/dev/null && {
  20732. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20733. test ! -s conftest.err
  20734. }; then
  20735. ac_header_preproc=yes
  20736. else
  20737. $as_echo "$as_me: failed program was:" >&5
  20738. sed 's/^/| /' conftest.$ac_ext >&5
  20739. ac_header_preproc=no
  20740. fi
  20741. rm -f conftest.err conftest.$ac_ext
  20742. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20743. $as_echo "$ac_header_preproc" >&6; }
  20744. # So? What about this header?
  20745. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20746. yes:no: )
  20747. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20748. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20749. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20750. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20751. ac_header_preproc=yes
  20752. ;;
  20753. no:yes:* )
  20754. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20755. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20756. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20757. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20758. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20759. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20760. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20761. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20762. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20763. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20764. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20765. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20766. ;;
  20767. esac
  20768. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20769. $as_echo_n "checking for $ac_header... " >&6; }
  20770. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20771. $as_echo_n "(cached) " >&6
  20772. else
  20773. eval "$as_ac_Header=\$ac_header_preproc"
  20774. fi
  20775. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20776. $as_echo "$as_val"'`
  20777. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20778. $as_echo "$ac_res" >&6; }
  20779. fi
  20780. as_val=`eval 'as_val=${'$as_ac_Header'}
  20781. $as_echo "$as_val"'`
  20782. if test "x$as_val" = x""yes; then
  20783. cat >>confdefs.h <<_ACEOF
  20784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20785. _ACEOF
  20786. fi
  20787. done
  20788. if test $ac_cv_header_sys_inttypes_h = yes; then
  20789. HAVE_SYS_INTTYPES_H=1
  20790. else
  20791. HAVE_SYS_INTTYPES_H=0
  20792. fi
  20793. if test $ac_cv_header_sys_bitypes_h = yes; then
  20794. HAVE_SYS_BITYPES_H=1
  20795. else
  20796. HAVE_SYS_BITYPES_H=0
  20797. fi
  20798. if test $APPLE_UNIVERSAL_BUILD = 0; then
  20799. for gltype in ptrdiff_t size_t ; do
  20800. { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
  20801. $as_echo_n "checking for bit size of $gltype... " >&6; }
  20802. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
  20803. $as_echo_n "(cached) " >&6
  20804. else
  20805. if test "$cross_compiling" = yes; then
  20806. # Depending upon the size, compute the lo and hi bounds.
  20807. cat >conftest.$ac_ext <<_ACEOF
  20808. /* confdefs.h. */
  20809. _ACEOF
  20810. cat confdefs.h >>conftest.$ac_ext
  20811. cat >>conftest.$ac_ext <<_ACEOF
  20812. /* end confdefs.h. */
  20813. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20814. included before <wchar.h>. */
  20815. #include <stddef.h>
  20816. #include <signal.h>
  20817. #if HAVE_WCHAR_H
  20818. # include <stdio.h>
  20819. # include <time.h>
  20820. # include <wchar.h>
  20821. #endif
  20822. #include <limits.h>
  20823. int
  20824. main ()
  20825. {
  20826. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
  20827. test_array [0] = 0
  20828. ;
  20829. return 0;
  20830. }
  20831. _ACEOF
  20832. rm -f conftest.$ac_objext
  20833. if { (ac_try="$ac_compile"
  20834. case "(($ac_try" in
  20835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20836. *) ac_try_echo=$ac_try;;
  20837. esac
  20838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20839. $as_echo "$ac_try_echo") >&5
  20840. (eval "$ac_compile") 2>conftest.er1
  20841. ac_status=$?
  20842. grep -v '^ *+' conftest.er1 >conftest.err
  20843. rm -f conftest.er1
  20844. cat conftest.err >&5
  20845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20846. (exit $ac_status); } && {
  20847. test -z "$ac_c_werror_flag" ||
  20848. test ! -s conftest.err
  20849. } && test -s conftest.$ac_objext; then
  20850. ac_lo=0 ac_mid=0
  20851. while :; do
  20852. cat >conftest.$ac_ext <<_ACEOF
  20853. /* confdefs.h. */
  20854. _ACEOF
  20855. cat confdefs.h >>conftest.$ac_ext
  20856. cat >>conftest.$ac_ext <<_ACEOF
  20857. /* end confdefs.h. */
  20858. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20859. included before <wchar.h>. */
  20860. #include <stddef.h>
  20861. #include <signal.h>
  20862. #if HAVE_WCHAR_H
  20863. # include <stdio.h>
  20864. # include <time.h>
  20865. # include <wchar.h>
  20866. #endif
  20867. #include <limits.h>
  20868. int
  20869. main ()
  20870. {
  20871. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
  20872. test_array [0] = 0
  20873. ;
  20874. return 0;
  20875. }
  20876. _ACEOF
  20877. rm -f conftest.$ac_objext
  20878. if { (ac_try="$ac_compile"
  20879. case "(($ac_try" in
  20880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20881. *) ac_try_echo=$ac_try;;
  20882. esac
  20883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20884. $as_echo "$ac_try_echo") >&5
  20885. (eval "$ac_compile") 2>conftest.er1
  20886. ac_status=$?
  20887. grep -v '^ *+' conftest.er1 >conftest.err
  20888. rm -f conftest.er1
  20889. cat conftest.err >&5
  20890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20891. (exit $ac_status); } && {
  20892. test -z "$ac_c_werror_flag" ||
  20893. test ! -s conftest.err
  20894. } && test -s conftest.$ac_objext; then
  20895. ac_hi=$ac_mid; break
  20896. else
  20897. $as_echo "$as_me: failed program was:" >&5
  20898. sed 's/^/| /' conftest.$ac_ext >&5
  20899. ac_lo=`expr $ac_mid + 1`
  20900. if test $ac_lo -le $ac_mid; then
  20901. ac_lo= ac_hi=
  20902. break
  20903. fi
  20904. ac_mid=`expr 2 '*' $ac_mid + 1`
  20905. fi
  20906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20907. done
  20908. else
  20909. $as_echo "$as_me: failed program was:" >&5
  20910. sed 's/^/| /' conftest.$ac_ext >&5
  20911. cat >conftest.$ac_ext <<_ACEOF
  20912. /* confdefs.h. */
  20913. _ACEOF
  20914. cat confdefs.h >>conftest.$ac_ext
  20915. cat >>conftest.$ac_ext <<_ACEOF
  20916. /* end confdefs.h. */
  20917. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20918. included before <wchar.h>. */
  20919. #include <stddef.h>
  20920. #include <signal.h>
  20921. #if HAVE_WCHAR_H
  20922. # include <stdio.h>
  20923. # include <time.h>
  20924. # include <wchar.h>
  20925. #endif
  20926. #include <limits.h>
  20927. int
  20928. main ()
  20929. {
  20930. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
  20931. test_array [0] = 0
  20932. ;
  20933. return 0;
  20934. }
  20935. _ACEOF
  20936. rm -f conftest.$ac_objext
  20937. if { (ac_try="$ac_compile"
  20938. case "(($ac_try" in
  20939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20940. *) ac_try_echo=$ac_try;;
  20941. esac
  20942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20943. $as_echo "$ac_try_echo") >&5
  20944. (eval "$ac_compile") 2>conftest.er1
  20945. ac_status=$?
  20946. grep -v '^ *+' conftest.er1 >conftest.err
  20947. rm -f conftest.er1
  20948. cat conftest.err >&5
  20949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20950. (exit $ac_status); } && {
  20951. test -z "$ac_c_werror_flag" ||
  20952. test ! -s conftest.err
  20953. } && test -s conftest.$ac_objext; then
  20954. ac_hi=-1 ac_mid=-1
  20955. while :; do
  20956. cat >conftest.$ac_ext <<_ACEOF
  20957. /* confdefs.h. */
  20958. _ACEOF
  20959. cat confdefs.h >>conftest.$ac_ext
  20960. cat >>conftest.$ac_ext <<_ACEOF
  20961. /* end confdefs.h. */
  20962. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  20963. included before <wchar.h>. */
  20964. #include <stddef.h>
  20965. #include <signal.h>
  20966. #if HAVE_WCHAR_H
  20967. # include <stdio.h>
  20968. # include <time.h>
  20969. # include <wchar.h>
  20970. #endif
  20971. #include <limits.h>
  20972. int
  20973. main ()
  20974. {
  20975. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
  20976. test_array [0] = 0
  20977. ;
  20978. return 0;
  20979. }
  20980. _ACEOF
  20981. rm -f conftest.$ac_objext
  20982. if { (ac_try="$ac_compile"
  20983. case "(($ac_try" in
  20984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20985. *) ac_try_echo=$ac_try;;
  20986. esac
  20987. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20988. $as_echo "$ac_try_echo") >&5
  20989. (eval "$ac_compile") 2>conftest.er1
  20990. ac_status=$?
  20991. grep -v '^ *+' conftest.er1 >conftest.err
  20992. rm -f conftest.er1
  20993. cat conftest.err >&5
  20994. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20995. (exit $ac_status); } && {
  20996. test -z "$ac_c_werror_flag" ||
  20997. test ! -s conftest.err
  20998. } && test -s conftest.$ac_objext; then
  20999. ac_lo=$ac_mid; break
  21000. else
  21001. $as_echo "$as_me: failed program was:" >&5
  21002. sed 's/^/| /' conftest.$ac_ext >&5
  21003. ac_hi=`expr '(' $ac_mid ')' - 1`
  21004. if test $ac_mid -le $ac_hi; then
  21005. ac_lo= ac_hi=
  21006. break
  21007. fi
  21008. ac_mid=`expr 2 '*' $ac_mid`
  21009. fi
  21010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21011. done
  21012. else
  21013. $as_echo "$as_me: failed program was:" >&5
  21014. sed 's/^/| /' conftest.$ac_ext >&5
  21015. ac_lo= ac_hi=
  21016. fi
  21017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21018. fi
  21019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21020. # Binary search between lo and hi bounds.
  21021. while test "x$ac_lo" != "x$ac_hi"; do
  21022. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21023. cat >conftest.$ac_ext <<_ACEOF
  21024. /* confdefs.h. */
  21025. _ACEOF
  21026. cat confdefs.h >>conftest.$ac_ext
  21027. cat >>conftest.$ac_ext <<_ACEOF
  21028. /* end confdefs.h. */
  21029. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21030. included before <wchar.h>. */
  21031. #include <stddef.h>
  21032. #include <signal.h>
  21033. #if HAVE_WCHAR_H
  21034. # include <stdio.h>
  21035. # include <time.h>
  21036. # include <wchar.h>
  21037. #endif
  21038. #include <limits.h>
  21039. int
  21040. main ()
  21041. {
  21042. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
  21043. test_array [0] = 0
  21044. ;
  21045. return 0;
  21046. }
  21047. _ACEOF
  21048. rm -f conftest.$ac_objext
  21049. if { (ac_try="$ac_compile"
  21050. case "(($ac_try" in
  21051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21052. *) ac_try_echo=$ac_try;;
  21053. esac
  21054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21055. $as_echo "$ac_try_echo") >&5
  21056. (eval "$ac_compile") 2>conftest.er1
  21057. ac_status=$?
  21058. grep -v '^ *+' conftest.er1 >conftest.err
  21059. rm -f conftest.er1
  21060. cat conftest.err >&5
  21061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21062. (exit $ac_status); } && {
  21063. test -z "$ac_c_werror_flag" ||
  21064. test ! -s conftest.err
  21065. } && test -s conftest.$ac_objext; then
  21066. ac_hi=$ac_mid
  21067. else
  21068. $as_echo "$as_me: failed program was:" >&5
  21069. sed 's/^/| /' conftest.$ac_ext >&5
  21070. ac_lo=`expr '(' $ac_mid ')' + 1`
  21071. fi
  21072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21073. done
  21074. case $ac_lo in
  21075. ?*) result=$ac_lo;;
  21076. '') result=unknown ;;
  21077. esac
  21078. else
  21079. cat >conftest.$ac_ext <<_ACEOF
  21080. /* confdefs.h. */
  21081. _ACEOF
  21082. cat confdefs.h >>conftest.$ac_ext
  21083. cat >>conftest.$ac_ext <<_ACEOF
  21084. /* end confdefs.h. */
  21085. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21086. included before <wchar.h>. */
  21087. #include <stddef.h>
  21088. #include <signal.h>
  21089. #if HAVE_WCHAR_H
  21090. # include <stdio.h>
  21091. # include <time.h>
  21092. # include <wchar.h>
  21093. #endif
  21094. #include <limits.h>
  21095. static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
  21096. static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
  21097. #include <stdio.h>
  21098. #include <stdlib.h>
  21099. int
  21100. main ()
  21101. {
  21102. FILE *f = fopen ("conftest.val", "w");
  21103. if (! f)
  21104. return 1;
  21105. if ((sizeof ($gltype) * CHAR_BIT) < 0)
  21106. {
  21107. long int i = longval ();
  21108. if (i != (sizeof ($gltype) * CHAR_BIT))
  21109. return 1;
  21110. fprintf (f, "%ld", i);
  21111. }
  21112. else
  21113. {
  21114. unsigned long int i = ulongval ();
  21115. if (i != (sizeof ($gltype) * CHAR_BIT))
  21116. return 1;
  21117. fprintf (f, "%lu", i);
  21118. }
  21119. /* Do not output a trailing newline, as this causes \r\n confusion
  21120. on some platforms. */
  21121. return ferror (f) || fclose (f) != 0;
  21122. ;
  21123. return 0;
  21124. }
  21125. _ACEOF
  21126. rm -f conftest$ac_exeext
  21127. if { (ac_try="$ac_link"
  21128. case "(($ac_try" in
  21129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21130. *) ac_try_echo=$ac_try;;
  21131. esac
  21132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21133. $as_echo "$ac_try_echo") >&5
  21134. (eval "$ac_link") 2>&5
  21135. ac_status=$?
  21136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21137. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21138. { (case "(($ac_try" in
  21139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21140. *) ac_try_echo=$ac_try;;
  21141. esac
  21142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21143. $as_echo "$ac_try_echo") >&5
  21144. (eval "$ac_try") 2>&5
  21145. ac_status=$?
  21146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21147. (exit $ac_status); }; }; then
  21148. result=`cat conftest.val`
  21149. else
  21150. $as_echo "$as_me: program exited with status $ac_status" >&5
  21151. $as_echo "$as_me: failed program was:" >&5
  21152. sed 's/^/| /' conftest.$ac_ext >&5
  21153. ( exit $ac_status )
  21154. result=unknown
  21155. fi
  21156. rm -rf conftest.dSYM
  21157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21158. fi
  21159. rm -f conftest.val
  21160. eval gl_cv_bitsizeof_${gltype}=\$result
  21161. fi
  21162. ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
  21163. $as_echo "$as_val"'`
  21164. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21165. $as_echo "$ac_res" >&6; }
  21166. eval result=\$gl_cv_bitsizeof_${gltype}
  21167. if test $result = unknown; then
  21168. result=0
  21169. fi
  21170. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21171. cat >>confdefs.h <<_ACEOF
  21172. #define BITSIZEOF_${GLTYPE} $result
  21173. _ACEOF
  21174. eval BITSIZEOF_${GLTYPE}=\$result
  21175. done
  21176. fi
  21177. for gltype in sig_atomic_t wchar_t wint_t ; do
  21178. { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
  21179. $as_echo_n "checking for bit size of $gltype... " >&6; }
  21180. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
  21181. $as_echo_n "(cached) " >&6
  21182. else
  21183. if test "$cross_compiling" = yes; then
  21184. # Depending upon the size, compute the lo and hi bounds.
  21185. cat >conftest.$ac_ext <<_ACEOF
  21186. /* confdefs.h. */
  21187. _ACEOF
  21188. cat confdefs.h >>conftest.$ac_ext
  21189. cat >>conftest.$ac_ext <<_ACEOF
  21190. /* end confdefs.h. */
  21191. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21192. included before <wchar.h>. */
  21193. #include <stddef.h>
  21194. #include <signal.h>
  21195. #if HAVE_WCHAR_H
  21196. # include <stdio.h>
  21197. # include <time.h>
  21198. # include <wchar.h>
  21199. #endif
  21200. #include <limits.h>
  21201. int
  21202. main ()
  21203. {
  21204. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
  21205. test_array [0] = 0
  21206. ;
  21207. return 0;
  21208. }
  21209. _ACEOF
  21210. rm -f conftest.$ac_objext
  21211. if { (ac_try="$ac_compile"
  21212. case "(($ac_try" in
  21213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21214. *) ac_try_echo=$ac_try;;
  21215. esac
  21216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21217. $as_echo "$ac_try_echo") >&5
  21218. (eval "$ac_compile") 2>conftest.er1
  21219. ac_status=$?
  21220. grep -v '^ *+' conftest.er1 >conftest.err
  21221. rm -f conftest.er1
  21222. cat conftest.err >&5
  21223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21224. (exit $ac_status); } && {
  21225. test -z "$ac_c_werror_flag" ||
  21226. test ! -s conftest.err
  21227. } && test -s conftest.$ac_objext; then
  21228. ac_lo=0 ac_mid=0
  21229. while :; do
  21230. cat >conftest.$ac_ext <<_ACEOF
  21231. /* confdefs.h. */
  21232. _ACEOF
  21233. cat confdefs.h >>conftest.$ac_ext
  21234. cat >>conftest.$ac_ext <<_ACEOF
  21235. /* end confdefs.h. */
  21236. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21237. included before <wchar.h>. */
  21238. #include <stddef.h>
  21239. #include <signal.h>
  21240. #if HAVE_WCHAR_H
  21241. # include <stdio.h>
  21242. # include <time.h>
  21243. # include <wchar.h>
  21244. #endif
  21245. #include <limits.h>
  21246. int
  21247. main ()
  21248. {
  21249. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
  21250. test_array [0] = 0
  21251. ;
  21252. return 0;
  21253. }
  21254. _ACEOF
  21255. rm -f conftest.$ac_objext
  21256. if { (ac_try="$ac_compile"
  21257. case "(($ac_try" in
  21258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21259. *) ac_try_echo=$ac_try;;
  21260. esac
  21261. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21262. $as_echo "$ac_try_echo") >&5
  21263. (eval "$ac_compile") 2>conftest.er1
  21264. ac_status=$?
  21265. grep -v '^ *+' conftest.er1 >conftest.err
  21266. rm -f conftest.er1
  21267. cat conftest.err >&5
  21268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21269. (exit $ac_status); } && {
  21270. test -z "$ac_c_werror_flag" ||
  21271. test ! -s conftest.err
  21272. } && test -s conftest.$ac_objext; then
  21273. ac_hi=$ac_mid; break
  21274. else
  21275. $as_echo "$as_me: failed program was:" >&5
  21276. sed 's/^/| /' conftest.$ac_ext >&5
  21277. ac_lo=`expr $ac_mid + 1`
  21278. if test $ac_lo -le $ac_mid; then
  21279. ac_lo= ac_hi=
  21280. break
  21281. fi
  21282. ac_mid=`expr 2 '*' $ac_mid + 1`
  21283. fi
  21284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21285. done
  21286. else
  21287. $as_echo "$as_me: failed program was:" >&5
  21288. sed 's/^/| /' conftest.$ac_ext >&5
  21289. cat >conftest.$ac_ext <<_ACEOF
  21290. /* confdefs.h. */
  21291. _ACEOF
  21292. cat confdefs.h >>conftest.$ac_ext
  21293. cat >>conftest.$ac_ext <<_ACEOF
  21294. /* end confdefs.h. */
  21295. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21296. included before <wchar.h>. */
  21297. #include <stddef.h>
  21298. #include <signal.h>
  21299. #if HAVE_WCHAR_H
  21300. # include <stdio.h>
  21301. # include <time.h>
  21302. # include <wchar.h>
  21303. #endif
  21304. #include <limits.h>
  21305. int
  21306. main ()
  21307. {
  21308. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
  21309. test_array [0] = 0
  21310. ;
  21311. return 0;
  21312. }
  21313. _ACEOF
  21314. rm -f conftest.$ac_objext
  21315. if { (ac_try="$ac_compile"
  21316. case "(($ac_try" in
  21317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21318. *) ac_try_echo=$ac_try;;
  21319. esac
  21320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21321. $as_echo "$ac_try_echo") >&5
  21322. (eval "$ac_compile") 2>conftest.er1
  21323. ac_status=$?
  21324. grep -v '^ *+' conftest.er1 >conftest.err
  21325. rm -f conftest.er1
  21326. cat conftest.err >&5
  21327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21328. (exit $ac_status); } && {
  21329. test -z "$ac_c_werror_flag" ||
  21330. test ! -s conftest.err
  21331. } && test -s conftest.$ac_objext; then
  21332. ac_hi=-1 ac_mid=-1
  21333. while :; do
  21334. cat >conftest.$ac_ext <<_ACEOF
  21335. /* confdefs.h. */
  21336. _ACEOF
  21337. cat confdefs.h >>conftest.$ac_ext
  21338. cat >>conftest.$ac_ext <<_ACEOF
  21339. /* end confdefs.h. */
  21340. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21341. included before <wchar.h>. */
  21342. #include <stddef.h>
  21343. #include <signal.h>
  21344. #if HAVE_WCHAR_H
  21345. # include <stdio.h>
  21346. # include <time.h>
  21347. # include <wchar.h>
  21348. #endif
  21349. #include <limits.h>
  21350. int
  21351. main ()
  21352. {
  21353. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
  21354. test_array [0] = 0
  21355. ;
  21356. return 0;
  21357. }
  21358. _ACEOF
  21359. rm -f conftest.$ac_objext
  21360. if { (ac_try="$ac_compile"
  21361. case "(($ac_try" in
  21362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21363. *) ac_try_echo=$ac_try;;
  21364. esac
  21365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21366. $as_echo "$ac_try_echo") >&5
  21367. (eval "$ac_compile") 2>conftest.er1
  21368. ac_status=$?
  21369. grep -v '^ *+' conftest.er1 >conftest.err
  21370. rm -f conftest.er1
  21371. cat conftest.err >&5
  21372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21373. (exit $ac_status); } && {
  21374. test -z "$ac_c_werror_flag" ||
  21375. test ! -s conftest.err
  21376. } && test -s conftest.$ac_objext; then
  21377. ac_lo=$ac_mid; break
  21378. else
  21379. $as_echo "$as_me: failed program was:" >&5
  21380. sed 's/^/| /' conftest.$ac_ext >&5
  21381. ac_hi=`expr '(' $ac_mid ')' - 1`
  21382. if test $ac_mid -le $ac_hi; then
  21383. ac_lo= ac_hi=
  21384. break
  21385. fi
  21386. ac_mid=`expr 2 '*' $ac_mid`
  21387. fi
  21388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21389. done
  21390. else
  21391. $as_echo "$as_me: failed program was:" >&5
  21392. sed 's/^/| /' conftest.$ac_ext >&5
  21393. ac_lo= ac_hi=
  21394. fi
  21395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21396. fi
  21397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21398. # Binary search between lo and hi bounds.
  21399. while test "x$ac_lo" != "x$ac_hi"; do
  21400. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21401. cat >conftest.$ac_ext <<_ACEOF
  21402. /* confdefs.h. */
  21403. _ACEOF
  21404. cat confdefs.h >>conftest.$ac_ext
  21405. cat >>conftest.$ac_ext <<_ACEOF
  21406. /* end confdefs.h. */
  21407. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21408. included before <wchar.h>. */
  21409. #include <stddef.h>
  21410. #include <signal.h>
  21411. #if HAVE_WCHAR_H
  21412. # include <stdio.h>
  21413. # include <time.h>
  21414. # include <wchar.h>
  21415. #endif
  21416. #include <limits.h>
  21417. int
  21418. main ()
  21419. {
  21420. static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
  21421. test_array [0] = 0
  21422. ;
  21423. return 0;
  21424. }
  21425. _ACEOF
  21426. rm -f conftest.$ac_objext
  21427. if { (ac_try="$ac_compile"
  21428. case "(($ac_try" in
  21429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21430. *) ac_try_echo=$ac_try;;
  21431. esac
  21432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21433. $as_echo "$ac_try_echo") >&5
  21434. (eval "$ac_compile") 2>conftest.er1
  21435. ac_status=$?
  21436. grep -v '^ *+' conftest.er1 >conftest.err
  21437. rm -f conftest.er1
  21438. cat conftest.err >&5
  21439. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21440. (exit $ac_status); } && {
  21441. test -z "$ac_c_werror_flag" ||
  21442. test ! -s conftest.err
  21443. } && test -s conftest.$ac_objext; then
  21444. ac_hi=$ac_mid
  21445. else
  21446. $as_echo "$as_me: failed program was:" >&5
  21447. sed 's/^/| /' conftest.$ac_ext >&5
  21448. ac_lo=`expr '(' $ac_mid ')' + 1`
  21449. fi
  21450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21451. done
  21452. case $ac_lo in
  21453. ?*) result=$ac_lo;;
  21454. '') result=unknown ;;
  21455. esac
  21456. else
  21457. cat >conftest.$ac_ext <<_ACEOF
  21458. /* confdefs.h. */
  21459. _ACEOF
  21460. cat confdefs.h >>conftest.$ac_ext
  21461. cat >>conftest.$ac_ext <<_ACEOF
  21462. /* end confdefs.h. */
  21463. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21464. included before <wchar.h>. */
  21465. #include <stddef.h>
  21466. #include <signal.h>
  21467. #if HAVE_WCHAR_H
  21468. # include <stdio.h>
  21469. # include <time.h>
  21470. # include <wchar.h>
  21471. #endif
  21472. #include <limits.h>
  21473. static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
  21474. static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
  21475. #include <stdio.h>
  21476. #include <stdlib.h>
  21477. int
  21478. main ()
  21479. {
  21480. FILE *f = fopen ("conftest.val", "w");
  21481. if (! f)
  21482. return 1;
  21483. if ((sizeof ($gltype) * CHAR_BIT) < 0)
  21484. {
  21485. long int i = longval ();
  21486. if (i != (sizeof ($gltype) * CHAR_BIT))
  21487. return 1;
  21488. fprintf (f, "%ld", i);
  21489. }
  21490. else
  21491. {
  21492. unsigned long int i = ulongval ();
  21493. if (i != (sizeof ($gltype) * CHAR_BIT))
  21494. return 1;
  21495. fprintf (f, "%lu", i);
  21496. }
  21497. /* Do not output a trailing newline, as this causes \r\n confusion
  21498. on some platforms. */
  21499. return ferror (f) || fclose (f) != 0;
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. rm -f conftest$ac_exeext
  21505. if { (ac_try="$ac_link"
  21506. case "(($ac_try" in
  21507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21508. *) ac_try_echo=$ac_try;;
  21509. esac
  21510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21511. $as_echo "$ac_try_echo") >&5
  21512. (eval "$ac_link") 2>&5
  21513. ac_status=$?
  21514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21515. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21516. { (case "(($ac_try" in
  21517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21518. *) ac_try_echo=$ac_try;;
  21519. esac
  21520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21521. $as_echo "$ac_try_echo") >&5
  21522. (eval "$ac_try") 2>&5
  21523. ac_status=$?
  21524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21525. (exit $ac_status); }; }; then
  21526. result=`cat conftest.val`
  21527. else
  21528. $as_echo "$as_me: program exited with status $ac_status" >&5
  21529. $as_echo "$as_me: failed program was:" >&5
  21530. sed 's/^/| /' conftest.$ac_ext >&5
  21531. ( exit $ac_status )
  21532. result=unknown
  21533. fi
  21534. rm -rf conftest.dSYM
  21535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21536. fi
  21537. rm -f conftest.val
  21538. eval gl_cv_bitsizeof_${gltype}=\$result
  21539. fi
  21540. ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
  21541. $as_echo "$as_val"'`
  21542. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21543. $as_echo "$ac_res" >&6; }
  21544. eval result=\$gl_cv_bitsizeof_${gltype}
  21545. if test $result = unknown; then
  21546. result=0
  21547. fi
  21548. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21549. cat >>confdefs.h <<_ACEOF
  21550. #define BITSIZEOF_${GLTYPE} $result
  21551. _ACEOF
  21552. eval BITSIZEOF_${GLTYPE}=\$result
  21553. done
  21554. for gltype in sig_atomic_t wchar_t wint_t ; do
  21555. { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
  21556. $as_echo_n "checking whether $gltype is signed... " >&6; }
  21557. if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
  21558. $as_echo_n "(cached) " >&6
  21559. else
  21560. cat >conftest.$ac_ext <<_ACEOF
  21561. /* confdefs.h. */
  21562. _ACEOF
  21563. cat confdefs.h >>conftest.$ac_ext
  21564. cat >>conftest.$ac_ext <<_ACEOF
  21565. /* end confdefs.h. */
  21566. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21567. included before <wchar.h>. */
  21568. #include <stddef.h>
  21569. #include <signal.h>
  21570. #if HAVE_WCHAR_H
  21571. # include <stdio.h>
  21572. # include <time.h>
  21573. # include <wchar.h>
  21574. #endif
  21575. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  21576. int
  21577. main ()
  21578. {
  21579. ;
  21580. return 0;
  21581. }
  21582. _ACEOF
  21583. rm -f conftest.$ac_objext
  21584. if { (ac_try="$ac_compile"
  21585. case "(($ac_try" in
  21586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21587. *) ac_try_echo=$ac_try;;
  21588. esac
  21589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21590. $as_echo "$ac_try_echo") >&5
  21591. (eval "$ac_compile") 2>conftest.er1
  21592. ac_status=$?
  21593. grep -v '^ *+' conftest.er1 >conftest.err
  21594. rm -f conftest.er1
  21595. cat conftest.err >&5
  21596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21597. (exit $ac_status); } && {
  21598. test -z "$ac_c_werror_flag" ||
  21599. test ! -s conftest.err
  21600. } && test -s conftest.$ac_objext; then
  21601. result=yes
  21602. else
  21603. $as_echo "$as_me: failed program was:" >&5
  21604. sed 's/^/| /' conftest.$ac_ext >&5
  21605. result=no
  21606. fi
  21607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21608. eval gl_cv_type_${gltype}_signed=\$result
  21609. fi
  21610. ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
  21611. $as_echo "$as_val"'`
  21612. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21613. $as_echo "$ac_res" >&6; }
  21614. eval result=\$gl_cv_type_${gltype}_signed
  21615. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21616. if test "$result" = yes; then
  21617. cat >>confdefs.h <<_ACEOF
  21618. #define HAVE_SIGNED_${GLTYPE} 1
  21619. _ACEOF
  21620. eval HAVE_SIGNED_${GLTYPE}=1
  21621. else
  21622. eval HAVE_SIGNED_${GLTYPE}=0
  21623. fi
  21624. done
  21625. gl_cv_type_ptrdiff_t_signed=yes
  21626. gl_cv_type_size_t_signed=no
  21627. if test $APPLE_UNIVERSAL_BUILD = 0; then
  21628. for gltype in ptrdiff_t size_t ; do
  21629. { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
  21630. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  21631. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
  21632. $as_echo_n "(cached) " >&6
  21633. else
  21634. eval gl_cv_type_${gltype}_suffix=no
  21635. eval result=\$gl_cv_type_${gltype}_signed
  21636. if test "$result" = yes; then
  21637. glsufu=
  21638. else
  21639. glsufu=u
  21640. fi
  21641. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  21642. case $glsuf in
  21643. '') gltype1='int';;
  21644. l) gltype1='long int';;
  21645. ll) gltype1='long long int';;
  21646. i64) gltype1='__int64';;
  21647. u) gltype1='unsigned int';;
  21648. ul) gltype1='unsigned long int';;
  21649. ull) gltype1='unsigned long long int';;
  21650. ui64)gltype1='unsigned __int64';;
  21651. esac
  21652. cat >conftest.$ac_ext <<_ACEOF
  21653. /* confdefs.h. */
  21654. _ACEOF
  21655. cat confdefs.h >>conftest.$ac_ext
  21656. cat >>conftest.$ac_ext <<_ACEOF
  21657. /* end confdefs.h. */
  21658. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21659. included before <wchar.h>. */
  21660. #include <stddef.h>
  21661. #include <signal.h>
  21662. #if HAVE_WCHAR_H
  21663. # include <stdio.h>
  21664. # include <time.h>
  21665. # include <wchar.h>
  21666. #endif
  21667. extern $gltype foo;
  21668. extern $gltype1 foo;
  21669. int
  21670. main ()
  21671. {
  21672. ;
  21673. return 0;
  21674. }
  21675. _ACEOF
  21676. rm -f conftest.$ac_objext
  21677. if { (ac_try="$ac_compile"
  21678. case "(($ac_try" in
  21679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21680. *) ac_try_echo=$ac_try;;
  21681. esac
  21682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21683. $as_echo "$ac_try_echo") >&5
  21684. (eval "$ac_compile") 2>conftest.er1
  21685. ac_status=$?
  21686. grep -v '^ *+' conftest.er1 >conftest.err
  21687. rm -f conftest.er1
  21688. cat conftest.err >&5
  21689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21690. (exit $ac_status); } && {
  21691. test -z "$ac_c_werror_flag" ||
  21692. test ! -s conftest.err
  21693. } && test -s conftest.$ac_objext; then
  21694. eval gl_cv_type_${gltype}_suffix=\$glsuf
  21695. else
  21696. $as_echo "$as_me: failed program was:" >&5
  21697. sed 's/^/| /' conftest.$ac_ext >&5
  21698. fi
  21699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21700. eval result=\$gl_cv_type_${gltype}_suffix
  21701. test "$result" != no && break
  21702. done
  21703. fi
  21704. ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
  21705. $as_echo "$as_val"'`
  21706. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21707. $as_echo "$ac_res" >&6; }
  21708. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21709. eval result=\$gl_cv_type_${gltype}_suffix
  21710. test "$result" = no && result=
  21711. eval ${GLTYPE}_SUFFIX=\$result
  21712. cat >>confdefs.h <<_ACEOF
  21713. #define ${GLTYPE}_SUFFIX $result
  21714. _ACEOF
  21715. done
  21716. fi
  21717. for gltype in sig_atomic_t wchar_t wint_t ; do
  21718. { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
  21719. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  21720. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
  21721. $as_echo_n "(cached) " >&6
  21722. else
  21723. eval gl_cv_type_${gltype}_suffix=no
  21724. eval result=\$gl_cv_type_${gltype}_signed
  21725. if test "$result" = yes; then
  21726. glsufu=
  21727. else
  21728. glsufu=u
  21729. fi
  21730. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  21731. case $glsuf in
  21732. '') gltype1='int';;
  21733. l) gltype1='long int';;
  21734. ll) gltype1='long long int';;
  21735. i64) gltype1='__int64';;
  21736. u) gltype1='unsigned int';;
  21737. ul) gltype1='unsigned long int';;
  21738. ull) gltype1='unsigned long long int';;
  21739. ui64)gltype1='unsigned __int64';;
  21740. esac
  21741. cat >conftest.$ac_ext <<_ACEOF
  21742. /* confdefs.h. */
  21743. _ACEOF
  21744. cat confdefs.h >>conftest.$ac_ext
  21745. cat >>conftest.$ac_ext <<_ACEOF
  21746. /* end confdefs.h. */
  21747. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  21748. included before <wchar.h>. */
  21749. #include <stddef.h>
  21750. #include <signal.h>
  21751. #if HAVE_WCHAR_H
  21752. # include <stdio.h>
  21753. # include <time.h>
  21754. # include <wchar.h>
  21755. #endif
  21756. extern $gltype foo;
  21757. extern $gltype1 foo;
  21758. int
  21759. main ()
  21760. {
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. rm -f conftest.$ac_objext
  21766. if { (ac_try="$ac_compile"
  21767. case "(($ac_try" in
  21768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21769. *) ac_try_echo=$ac_try;;
  21770. esac
  21771. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21772. $as_echo "$ac_try_echo") >&5
  21773. (eval "$ac_compile") 2>conftest.er1
  21774. ac_status=$?
  21775. grep -v '^ *+' conftest.er1 >conftest.err
  21776. rm -f conftest.er1
  21777. cat conftest.err >&5
  21778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21779. (exit $ac_status); } && {
  21780. test -z "$ac_c_werror_flag" ||
  21781. test ! -s conftest.err
  21782. } && test -s conftest.$ac_objext; then
  21783. eval gl_cv_type_${gltype}_suffix=\$glsuf
  21784. else
  21785. $as_echo "$as_me: failed program was:" >&5
  21786. sed 's/^/| /' conftest.$ac_ext >&5
  21787. fi
  21788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21789. eval result=\$gl_cv_type_${gltype}_suffix
  21790. test "$result" != no && break
  21791. done
  21792. fi
  21793. ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
  21794. $as_echo "$as_val"'`
  21795. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21796. $as_echo "$ac_res" >&6; }
  21797. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  21798. eval result=\$gl_cv_type_${gltype}_suffix
  21799. test "$result" = no && result=
  21800. eval ${GLTYPE}_SUFFIX=\$result
  21801. cat >>confdefs.h <<_ACEOF
  21802. #define ${GLTYPE}_SUFFIX $result
  21803. _ACEOF
  21804. done
  21805. STDINT_H=stdint.h
  21806. fi
  21807. if test $gl_cv_have_include_next = yes; then
  21808. gl_cv_next_stdio_h='<'stdio.h'>'
  21809. else
  21810. { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
  21811. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  21812. if test "${gl_cv_next_stdio_h+set}" = set; then
  21813. $as_echo_n "(cached) " >&6
  21814. else
  21815. if test $ac_cv_header_stdio_h = yes; then
  21816. cat >conftest.$ac_ext <<_ACEOF
  21817. /* confdefs.h. */
  21818. _ACEOF
  21819. cat confdefs.h >>conftest.$ac_ext
  21820. cat >>conftest.$ac_ext <<_ACEOF
  21821. /* end confdefs.h. */
  21822. #include <stdio.h>
  21823. _ACEOF
  21824. case "$host_os" in
  21825. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  21826. *) gl_absname_cpp="$ac_cpp" ;;
  21827. esac
  21828. gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  21829. sed -n '\#/stdio.h#{
  21830. s#.*"\(.*/stdio.h\)".*#\1#
  21831. s#^/[^/]#//&#
  21832. p
  21833. q
  21834. }'`'"'
  21835. else
  21836. gl_cv_next_stdio_h='<'stdio.h'>'
  21837. fi
  21838. fi
  21839. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
  21840. $as_echo "$gl_cv_next_stdio_h" >&6; }
  21841. fi
  21842. NEXT_STDIO_H=$gl_cv_next_stdio_h
  21843. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  21844. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  21845. gl_next_as_first_directive='<'stdio.h'>'
  21846. else
  21847. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  21848. gl_next_as_first_directive=$gl_cv_next_stdio_h
  21849. fi
  21850. NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  21851. GNULIB_FPRINTF=1
  21852. GNULIB_PRINTF=1
  21853. GNULIB_VFPRINTF=1
  21854. GNULIB_VPRINTF=1
  21855. GNULIB_FPUTC=1
  21856. GNULIB_PUTC=1
  21857. GNULIB_PUTCHAR=1
  21858. GNULIB_FPUTS=1
  21859. GNULIB_PUTS=1
  21860. GNULIB_FWRITE=1
  21861. if test $gl_cv_header_signal_h_SIGPIPE != yes; then
  21862. REPLACE_STDIO_WRITE_FUNCS=1
  21863. gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
  21864. fi
  21865. if test $gl_cv_have_include_next = yes; then
  21866. gl_cv_next_stdlib_h='<'stdlib.h'>'
  21867. else
  21868. { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
  21869. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  21870. if test "${gl_cv_next_stdlib_h+set}" = set; then
  21871. $as_echo_n "(cached) " >&6
  21872. else
  21873. if test $ac_cv_header_stdlib_h = yes; then
  21874. cat >conftest.$ac_ext <<_ACEOF
  21875. /* confdefs.h. */
  21876. _ACEOF
  21877. cat confdefs.h >>conftest.$ac_ext
  21878. cat >>conftest.$ac_ext <<_ACEOF
  21879. /* end confdefs.h. */
  21880. #include <stdlib.h>
  21881. _ACEOF
  21882. case "$host_os" in
  21883. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  21884. *) gl_absname_cpp="$ac_cpp" ;;
  21885. esac
  21886. gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  21887. sed -n '\#/stdlib.h#{
  21888. s#.*"\(.*/stdlib.h\)".*#\1#
  21889. s#^/[^/]#//&#
  21890. p
  21891. q
  21892. }'`'"'
  21893. else
  21894. gl_cv_next_stdlib_h='<'stdlib.h'>'
  21895. fi
  21896. fi
  21897. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
  21898. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  21899. fi
  21900. NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  21901. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  21902. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  21903. gl_next_as_first_directive='<'stdlib.h'>'
  21904. else
  21905. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  21906. gl_next_as_first_directive=$gl_cv_next_stdlib_h
  21907. fi
  21908. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  21909. for ac_header in random.h
  21910. do
  21911. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21912. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21913. $as_echo_n "checking for $ac_header... " >&6; }
  21914. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21915. $as_echo_n "(cached) " >&6
  21916. else
  21917. cat >conftest.$ac_ext <<_ACEOF
  21918. /* confdefs.h. */
  21919. _ACEOF
  21920. cat confdefs.h >>conftest.$ac_ext
  21921. cat >>conftest.$ac_ext <<_ACEOF
  21922. /* end confdefs.h. */
  21923. $ac_includes_default
  21924. #include <$ac_header>
  21925. _ACEOF
  21926. rm -f conftest.$ac_objext
  21927. if { (ac_try="$ac_compile"
  21928. case "(($ac_try" in
  21929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21930. *) ac_try_echo=$ac_try;;
  21931. esac
  21932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21933. $as_echo "$ac_try_echo") >&5
  21934. (eval "$ac_compile") 2>conftest.er1
  21935. ac_status=$?
  21936. grep -v '^ *+' conftest.er1 >conftest.err
  21937. rm -f conftest.er1
  21938. cat conftest.err >&5
  21939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21940. (exit $ac_status); } && {
  21941. test -z "$ac_c_werror_flag" ||
  21942. test ! -s conftest.err
  21943. } && test -s conftest.$ac_objext; then
  21944. eval "$as_ac_Header=yes"
  21945. else
  21946. $as_echo "$as_me: failed program was:" >&5
  21947. sed 's/^/| /' conftest.$ac_ext >&5
  21948. eval "$as_ac_Header=no"
  21949. fi
  21950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21951. fi
  21952. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21953. $as_echo "$as_val"'`
  21954. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21955. $as_echo "$ac_res" >&6; }
  21956. as_val=`eval 'as_val=${'$as_ac_Header'}
  21957. $as_echo "$as_val"'`
  21958. if test "x$as_val" = x""yes; then
  21959. cat >>confdefs.h <<_ACEOF
  21960. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21961. _ACEOF
  21962. fi
  21963. done
  21964. if test $ac_cv_header_random_h = yes; then
  21965. HAVE_RANDOM_H=1
  21966. else
  21967. HAVE_RANDOM_H=0
  21968. fi
  21969. { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
  21970. $as_echo_n "checking for struct random_data... " >&6; }
  21971. if test "${ac_cv_type_struct_random_data+set}" = set; then
  21972. $as_echo_n "(cached) " >&6
  21973. else
  21974. ac_cv_type_struct_random_data=no
  21975. cat >conftest.$ac_ext <<_ACEOF
  21976. /* confdefs.h. */
  21977. _ACEOF
  21978. cat confdefs.h >>conftest.$ac_ext
  21979. cat >>conftest.$ac_ext <<_ACEOF
  21980. /* end confdefs.h. */
  21981. #include <stdlib.h>
  21982. #if HAVE_RANDOM_H
  21983. # include <random.h>
  21984. #endif
  21985. int
  21986. main ()
  21987. {
  21988. if (sizeof (struct random_data))
  21989. return 0;
  21990. ;
  21991. return 0;
  21992. }
  21993. _ACEOF
  21994. rm -f conftest.$ac_objext
  21995. if { (ac_try="$ac_compile"
  21996. case "(($ac_try" in
  21997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21998. *) ac_try_echo=$ac_try;;
  21999. esac
  22000. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22001. $as_echo "$ac_try_echo") >&5
  22002. (eval "$ac_compile") 2>conftest.er1
  22003. ac_status=$?
  22004. grep -v '^ *+' conftest.er1 >conftest.err
  22005. rm -f conftest.er1
  22006. cat conftest.err >&5
  22007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22008. (exit $ac_status); } && {
  22009. test -z "$ac_c_werror_flag" ||
  22010. test ! -s conftest.err
  22011. } && test -s conftest.$ac_objext; then
  22012. cat >conftest.$ac_ext <<_ACEOF
  22013. /* confdefs.h. */
  22014. _ACEOF
  22015. cat confdefs.h >>conftest.$ac_ext
  22016. cat >>conftest.$ac_ext <<_ACEOF
  22017. /* end confdefs.h. */
  22018. #include <stdlib.h>
  22019. #if HAVE_RANDOM_H
  22020. # include <random.h>
  22021. #endif
  22022. int
  22023. main ()
  22024. {
  22025. if (sizeof ((struct random_data)))
  22026. return 0;
  22027. ;
  22028. return 0;
  22029. }
  22030. _ACEOF
  22031. rm -f conftest.$ac_objext
  22032. if { (ac_try="$ac_compile"
  22033. case "(($ac_try" in
  22034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22035. *) ac_try_echo=$ac_try;;
  22036. esac
  22037. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22038. $as_echo "$ac_try_echo") >&5
  22039. (eval "$ac_compile") 2>conftest.er1
  22040. ac_status=$?
  22041. grep -v '^ *+' conftest.er1 >conftest.err
  22042. rm -f conftest.er1
  22043. cat conftest.err >&5
  22044. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22045. (exit $ac_status); } && {
  22046. test -z "$ac_c_werror_flag" ||
  22047. test ! -s conftest.err
  22048. } && test -s conftest.$ac_objext; then
  22049. :
  22050. else
  22051. $as_echo "$as_me: failed program was:" >&5
  22052. sed 's/^/| /' conftest.$ac_ext >&5
  22053. ac_cv_type_struct_random_data=yes
  22054. fi
  22055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22056. else
  22057. $as_echo "$as_me: failed program was:" >&5
  22058. sed 's/^/| /' conftest.$ac_ext >&5
  22059. fi
  22060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22061. fi
  22062. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
  22063. $as_echo "$ac_cv_type_struct_random_data" >&6; }
  22064. if test "x$ac_cv_type_struct_random_data" = x""yes; then
  22065. cat >>confdefs.h <<_ACEOF
  22066. #define HAVE_STRUCT_RANDOM_DATA 1
  22067. _ACEOF
  22068. else
  22069. HAVE_STRUCT_RANDOM_DATA=0
  22070. fi
  22071. if test $REPLACE_STRERROR = 1; then
  22072. gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
  22073. cat >>confdefs.h <<_ACEOF
  22074. #define REPLACE_STRERROR $REPLACE_STRERROR
  22075. _ACEOF
  22076. fi
  22077. GNULIB_STRERROR=1
  22078. if test $gl_cv_have_include_next = yes; then
  22079. gl_cv_next_unistd_h='<'unistd.h'>'
  22080. else
  22081. { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
  22082. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  22083. if test "${gl_cv_next_unistd_h+set}" = set; then
  22084. $as_echo_n "(cached) " >&6
  22085. else
  22086. if test $ac_cv_header_unistd_h = yes; then
  22087. cat >conftest.$ac_ext <<_ACEOF
  22088. /* confdefs.h. */
  22089. _ACEOF
  22090. cat confdefs.h >>conftest.$ac_ext
  22091. cat >>conftest.$ac_ext <<_ACEOF
  22092. /* end confdefs.h. */
  22093. #include <unistd.h>
  22094. _ACEOF
  22095. case "$host_os" in
  22096. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22097. *) gl_absname_cpp="$ac_cpp" ;;
  22098. esac
  22099. gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  22100. sed -n '\#/unistd.h#{
  22101. s#.*"\(.*/unistd.h\)".*#\1#
  22102. s#^/[^/]#//&#
  22103. p
  22104. q
  22105. }'`'"'
  22106. else
  22107. gl_cv_next_unistd_h='<'unistd.h'>'
  22108. fi
  22109. fi
  22110. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
  22111. $as_echo "$gl_cv_next_unistd_h" >&6; }
  22112. fi
  22113. NEXT_UNISTD_H=$gl_cv_next_unistd_h
  22114. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  22115. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  22116. gl_next_as_first_directive='<'unistd.h'>'
  22117. else
  22118. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  22119. gl_next_as_first_directive=$gl_cv_next_unistd_h
  22120. fi
  22121. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  22122. if test $ac_cv_header_unistd_h = yes; then
  22123. HAVE_UNISTD_H=1
  22124. else
  22125. HAVE_UNISTD_H=0
  22126. fi
  22127. cat >>confdefs.h <<\_ACEOF
  22128. #define USE_UNLOCKED_IO 1
  22129. _ACEOF
  22130. { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
  22131. $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
  22132. if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
  22133. $as_echo_n "(cached) " >&6
  22134. else
  22135. cat >conftest.$ac_ext <<_ACEOF
  22136. #include <wchar.h>
  22137. wchar_t w;
  22138. _ACEOF
  22139. rm -f conftest.$ac_objext
  22140. if { (ac_try="$ac_compile"
  22141. case "(($ac_try" in
  22142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22143. *) ac_try_echo=$ac_try;;
  22144. esac
  22145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22146. $as_echo "$ac_try_echo") >&5
  22147. (eval "$ac_compile") 2>conftest.er1
  22148. ac_status=$?
  22149. grep -v '^ *+' conftest.er1 >conftest.err
  22150. rm -f conftest.er1
  22151. cat conftest.err >&5
  22152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22153. (exit $ac_status); } && {
  22154. test -z "$ac_c_werror_flag" ||
  22155. test ! -s conftest.err
  22156. } && test -s conftest.$ac_objext; then
  22157. gl_cv_header_wchar_h_standalone=yes
  22158. else
  22159. $as_echo "$as_me: failed program was:" >&5
  22160. sed 's/^/| /' conftest.$ac_ext >&5
  22161. gl_cv_header_wchar_h_standalone=no
  22162. fi
  22163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22164. fi
  22165. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
  22166. $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
  22167. if test $gt_cv_c_wint_t = yes; then
  22168. HAVE_WINT_T=1
  22169. else
  22170. HAVE_WINT_T=0
  22171. fi
  22172. if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
  22173. WCHAR_H=wchar.h
  22174. fi
  22175. if test $ac_cv_header_wchar_h = yes; then
  22176. HAVE_WCHAR_H=1
  22177. else
  22178. HAVE_WCHAR_H=0
  22179. fi
  22180. if test $gl_cv_have_include_next = yes; then
  22181. gl_cv_next_wchar_h='<'wchar.h'>'
  22182. else
  22183. { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
  22184. $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
  22185. if test "${gl_cv_next_wchar_h+set}" = set; then
  22186. $as_echo_n "(cached) " >&6
  22187. else
  22188. if test $ac_cv_header_wchar_h = yes; then
  22189. cat >conftest.$ac_ext <<_ACEOF
  22190. /* confdefs.h. */
  22191. _ACEOF
  22192. cat confdefs.h >>conftest.$ac_ext
  22193. cat >>conftest.$ac_ext <<_ACEOF
  22194. /* end confdefs.h. */
  22195. #include <wchar.h>
  22196. _ACEOF
  22197. case "$host_os" in
  22198. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  22199. *) gl_absname_cpp="$ac_cpp" ;;
  22200. esac
  22201. gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  22202. sed -n '\#/wchar.h#{
  22203. s#.*"\(.*/wchar.h\)".*#\1#
  22204. s#^/[^/]#//&#
  22205. p
  22206. q
  22207. }'`'"'
  22208. else
  22209. gl_cv_next_wchar_h='<'wchar.h'>'
  22210. fi
  22211. fi
  22212. { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
  22213. $as_echo "$gl_cv_next_wchar_h" >&6; }
  22214. fi
  22215. NEXT_WCHAR_H=$gl_cv_next_wchar_h
  22216. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  22217. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  22218. gl_next_as_first_directive='<'wchar.h'>'
  22219. else
  22220. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  22221. gl_next_as_first_directive=$gl_cv_next_wchar_h
  22222. fi
  22223. NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
  22224. gltests_libdeps=
  22225. gltests_ltlibdeps=
  22226. gl_source_base='tests'
  22227. LIBICRT_LIBDEPS="$gl_libdeps"
  22228. LIBICRT_LTLIBDEPS="$gl_ltlibdeps"
  22229. if test "$enable_shared" = yes; then
  22230. case "$host_os" in
  22231. mingw* | cygwin*) is_woe32dll=yes ;;
  22232. *) is_woe32dll=no ;;
  22233. esac
  22234. else
  22235. is_woe32dll=no
  22236. fi
  22237. WOE32DLL=$is_woe32dll
  22238. if test $is_woe32dll = yes; then
  22239. DLL_VARIABLE='__declspec (dllimport)'
  22240. else
  22241. DLL_VARIABLE=
  22242. fi
  22243. subdirs="$subdirs libcharset"
  22244. subdirs="$subdirs preload"
  22245. ac_config_files="$ac_config_files Makefile"
  22246. ac_config_files="$ac_config_files lib/Makefile"
  22247. ac_config_files="$ac_config_files srclib/Makefile"
  22248. ac_config_files="$ac_config_files src/Makefile"
  22249. ac_config_files="$ac_config_files po/Makefile.in"
  22250. ac_config_files="$ac_config_files man/Makefile"
  22251. if test -d "${srcdir}/tests"; then
  22252. ac_config_files="$ac_config_files tests/Makefile"
  22253. fi
  22254. ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
  22255. ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
  22256. cat >confcache <<\_ACEOF
  22257. # This file is a shell script that caches the results of configure
  22258. # tests run on this system so they can be shared between configure
  22259. # scripts and configure runs, see configure's option --config-cache.
  22260. # It is not useful on other systems. If it contains results you don't
  22261. # want to keep, you may remove or edit it.
  22262. #
  22263. # config.status only pays attention to the cache file if you give it
  22264. # the --recheck option to rerun configure.
  22265. #
  22266. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22267. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22268. # following values.
  22269. _ACEOF
  22270. # The following way of writing the cache mishandles newlines in values,
  22271. # but we know of no workaround that is simple, portable, and efficient.
  22272. # So, we kill variables containing newlines.
  22273. # Ultrix sh set writes to stderr and can't be redirected directly,
  22274. # and sets the high bit in the cache file unless we assign to the vars.
  22275. (
  22276. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22277. eval ac_val=\$$ac_var
  22278. case $ac_val in #(
  22279. *${as_nl}*)
  22280. case $ac_var in #(
  22281. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  22282. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22283. esac
  22284. case $ac_var in #(
  22285. _ | IFS | as_nl) ;; #(
  22286. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22287. *) $as_unset $ac_var ;;
  22288. esac ;;
  22289. esac
  22290. done
  22291. (set) 2>&1 |
  22292. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22293. *${as_nl}ac_space=\ *)
  22294. # `set' does not quote correctly, so add quotes (double-quote
  22295. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22296. sed -n \
  22297. "s/'/'\\\\''/g;
  22298. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22299. ;; #(
  22300. *)
  22301. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22302. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22303. ;;
  22304. esac |
  22305. sort
  22306. ) |
  22307. sed '
  22308. /^ac_cv_env_/b end
  22309. t clear
  22310. :clear
  22311. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22312. t end
  22313. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22314. :end' >>confcache
  22315. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22316. if test -w "$cache_file"; then
  22317. test "x$cache_file" != "x/dev/null" &&
  22318. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  22319. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22320. cat confcache >$cache_file
  22321. else
  22322. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  22323. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22324. fi
  22325. fi
  22326. rm -f confcache
  22327. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22328. # Let make expand exec_prefix.
  22329. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22330. DEFS=-DHAVE_CONFIG_H
  22331. ac_libobjs=
  22332. ac_ltlibobjs=
  22333. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22334. # 1. Remove the extension, and $U if already installed.
  22335. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22336. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22337. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22338. # will be set to the directory where LIBOBJS objects are built.
  22339. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22340. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  22341. done
  22342. LIBOBJS=$ac_libobjs
  22343. LTLIBOBJS=$ac_ltlibobjs
  22344. if test -n "$EXEEXT"; then
  22345. am__EXEEXT_TRUE=
  22346. am__EXEEXT_FALSE='#'
  22347. else
  22348. am__EXEEXT_TRUE='#'
  22349. am__EXEEXT_FALSE=
  22350. fi
  22351. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22352. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22353. Usually this means the macro was only invoked conditionally." >&5
  22354. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22355. Usually this means the macro was only invoked conditionally." >&2;}
  22356. { (exit 1); exit 1; }; }
  22357. fi
  22358. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22359. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22360. Usually this means the macro was only invoked conditionally." >&5
  22361. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22362. Usually this means the macro was only invoked conditionally." >&2;}
  22363. { (exit 1); exit 1; }; }
  22364. fi
  22365. if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
  22366. { { $as_echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
  22367. Usually this means the macro was only invoked conditionally." >&5
  22368. $as_echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
  22369. Usually this means the macro was only invoked conditionally." >&2;}
  22370. { (exit 1); exit 1; }; }
  22371. fi
  22372. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  22373. { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
  22374. Usually this means the macro was only invoked conditionally." >&5
  22375. $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
  22376. Usually this means the macro was only invoked conditionally." >&2;}
  22377. { (exit 1); exit 1; }; }
  22378. fi
  22379. gl_libobjs=
  22380. gl_ltlibobjs=
  22381. if test -n "$gl_LIBOBJS"; then
  22382. # Remove the extension.
  22383. sed_drop_objext='s/\.o$//;s/\.obj$//'
  22384. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  22385. gl_libobjs="$gl_libobjs $i.$ac_objext"
  22386. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  22387. done
  22388. fi
  22389. gl_LIBOBJS=$gl_libobjs
  22390. gl_LTLIBOBJS=$gl_ltlibobjs
  22391. gltests_libobjs=
  22392. gltests_ltlibobjs=
  22393. if test -n "$gltests_LIBOBJS"; then
  22394. # Remove the extension.
  22395. sed_drop_objext='s/\.o$//;s/\.obj$//'
  22396. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  22397. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  22398. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  22399. done
  22400. fi
  22401. gltests_LIBOBJS=$gltests_libobjs
  22402. gltests_LTLIBOBJS=$gltests_ltlibobjs
  22403. : ${CONFIG_STATUS=./config.status}
  22404. ac_write_fail=0
  22405. ac_clean_files_save=$ac_clean_files
  22406. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22407. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22408. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22409. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22410. #! $SHELL
  22411. # Generated by $as_me.
  22412. # Run this file to recreate the current configuration.
  22413. # Compiler output produced by configure, useful for debugging
  22414. # configure, is in config.log if it exists.
  22415. debug=false
  22416. ac_cs_recheck=false
  22417. ac_cs_silent=false
  22418. SHELL=\${CONFIG_SHELL-$SHELL}
  22419. _ACEOF
  22420. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22421. ## --------------------- ##
  22422. ## M4sh Initialization. ##
  22423. ## --------------------- ##
  22424. # Be more Bourne compatible
  22425. DUALCASE=1; export DUALCASE # for MKS sh
  22426. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22427. emulate sh
  22428. NULLCMD=:
  22429. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22430. # is contrary to our usage. Disable this feature.
  22431. alias -g '${1+"$@"}'='"$@"'
  22432. setopt NO_GLOB_SUBST
  22433. else
  22434. case `(set -o) 2>/dev/null` in
  22435. *posix*) set -o posix ;;
  22436. esac
  22437. fi
  22438. # PATH needs CR
  22439. # Avoid depending upon Character Ranges.
  22440. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22441. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22442. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22443. as_cr_digits='0123456789'
  22444. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22445. as_nl='
  22446. '
  22447. export as_nl
  22448. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22449. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22450. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22451. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22452. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22453. as_echo='printf %s\n'
  22454. as_echo_n='printf %s'
  22455. else
  22456. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22457. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22458. as_echo_n='/usr/ucb/echo -n'
  22459. else
  22460. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22461. as_echo_n_body='eval
  22462. arg=$1;
  22463. case $arg in
  22464. *"$as_nl"*)
  22465. expr "X$arg" : "X\\(.*\\)$as_nl";
  22466. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22467. esac;
  22468. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22469. '
  22470. export as_echo_n_body
  22471. as_echo_n='sh -c $as_echo_n_body as_echo'
  22472. fi
  22473. export as_echo_body
  22474. as_echo='sh -c $as_echo_body as_echo'
  22475. fi
  22476. # The user is always right.
  22477. if test "${PATH_SEPARATOR+set}" != set; then
  22478. PATH_SEPARATOR=:
  22479. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22480. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22481. PATH_SEPARATOR=';'
  22482. }
  22483. fi
  22484. # Support unset when possible.
  22485. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22486. as_unset=unset
  22487. else
  22488. as_unset=false
  22489. fi
  22490. # IFS
  22491. # We need space, tab and new line, in precisely that order. Quoting is
  22492. # there to prevent editors from complaining about space-tab.
  22493. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22494. # splitting by setting IFS to empty value.)
  22495. IFS=" "" $as_nl"
  22496. # Find who we are. Look in the path if we contain no directory separator.
  22497. case $0 in
  22498. *[\\/]* ) as_myself=$0 ;;
  22499. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22500. for as_dir in $PATH
  22501. do
  22502. IFS=$as_save_IFS
  22503. test -z "$as_dir" && as_dir=.
  22504. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22505. done
  22506. IFS=$as_save_IFS
  22507. ;;
  22508. esac
  22509. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22510. # in which case we are not to be found in the path.
  22511. if test "x$as_myself" = x; then
  22512. as_myself=$0
  22513. fi
  22514. if test ! -f "$as_myself"; then
  22515. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22516. { (exit 1); exit 1; }
  22517. fi
  22518. # Work around bugs in pre-3.0 UWIN ksh.
  22519. for as_var in ENV MAIL MAILPATH
  22520. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  22521. done
  22522. PS1='$ '
  22523. PS2='> '
  22524. PS4='+ '
  22525. # NLS nuisances.
  22526. LC_ALL=C
  22527. export LC_ALL
  22528. LANGUAGE=C
  22529. export LANGUAGE
  22530. # Required to use basename.
  22531. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22532. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22533. as_expr=expr
  22534. else
  22535. as_expr=false
  22536. fi
  22537. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22538. as_basename=basename
  22539. else
  22540. as_basename=false
  22541. fi
  22542. # Name of the executable.
  22543. as_me=`$as_basename -- "$0" ||
  22544. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22545. X"$0" : 'X\(//\)$' \| \
  22546. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22547. $as_echo X/"$0" |
  22548. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22549. s//\1/
  22550. q
  22551. }
  22552. /^X\/\(\/\/\)$/{
  22553. s//\1/
  22554. q
  22555. }
  22556. /^X\/\(\/\).*/{
  22557. s//\1/
  22558. q
  22559. }
  22560. s/.*/./; q'`
  22561. # CDPATH.
  22562. $as_unset CDPATH
  22563. as_lineno_1=$LINENO
  22564. as_lineno_2=$LINENO
  22565. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22566. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  22567. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22568. # uniformly replaced by the line number. The first 'sed' inserts a
  22569. # line-number line after each line using $LINENO; the second 'sed'
  22570. # does the real work. The second script uses 'N' to pair each
  22571. # line-number line with the line containing $LINENO, and appends
  22572. # trailing '-' during substitution so that $LINENO is not a special
  22573. # case at line end.
  22574. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22575. # scripts with optimization help from Paolo Bonzini. Blame Lee
  22576. # E. McMahon (1931-1989) for sed's syntax. :-)
  22577. sed -n '
  22578. p
  22579. /[$]LINENO/=
  22580. ' <$as_myself |
  22581. sed '
  22582. s/[$]LINENO.*/&-/
  22583. t lineno
  22584. b
  22585. :lineno
  22586. N
  22587. :loop
  22588. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  22589. t loop
  22590. s/-\n.*//
  22591. ' >$as_me.lineno &&
  22592. chmod +x "$as_me.lineno" ||
  22593. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  22594. { (exit 1); exit 1; }; }
  22595. # Don't try to exec as it changes $[0], causing all sort of problems
  22596. # (the dirname of $[0] is not the place where we might find the
  22597. # original and so on. Autoconf is especially sensitive to this).
  22598. . "./$as_me.lineno"
  22599. # Exit status is that of the last command.
  22600. exit
  22601. }
  22602. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22603. as_dirname=dirname
  22604. else
  22605. as_dirname=false
  22606. fi
  22607. ECHO_C= ECHO_N= ECHO_T=
  22608. case `echo -n x` in
  22609. -n*)
  22610. case `echo 'x\c'` in
  22611. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22612. *) ECHO_C='\c';;
  22613. esac;;
  22614. *)
  22615. ECHO_N='-n';;
  22616. esac
  22617. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22618. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22619. as_expr=expr
  22620. else
  22621. as_expr=false
  22622. fi
  22623. rm -f conf$$ conf$$.exe conf$$.file
  22624. if test -d conf$$.dir; then
  22625. rm -f conf$$.dir/conf$$.file
  22626. else
  22627. rm -f conf$$.dir
  22628. mkdir conf$$.dir 2>/dev/null
  22629. fi
  22630. if (echo >conf$$.file) 2>/dev/null; then
  22631. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22632. as_ln_s='ln -s'
  22633. # ... but there are two gotchas:
  22634. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22635. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22636. # In both cases, we have to default to `cp -p'.
  22637. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22638. as_ln_s='cp -p'
  22639. elif ln conf$$.file conf$$ 2>/dev/null; then
  22640. as_ln_s=ln
  22641. else
  22642. as_ln_s='cp -p'
  22643. fi
  22644. else
  22645. as_ln_s='cp -p'
  22646. fi
  22647. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22648. rmdir conf$$.dir 2>/dev/null
  22649. if mkdir -p . 2>/dev/null; then
  22650. as_mkdir_p=:
  22651. else
  22652. test -d ./-p && rmdir ./-p
  22653. as_mkdir_p=false
  22654. fi
  22655. if test -x / >/dev/null 2>&1; then
  22656. as_test_x='test -x'
  22657. else
  22658. if ls -dL / >/dev/null 2>&1; then
  22659. as_ls_L_option=L
  22660. else
  22661. as_ls_L_option=
  22662. fi
  22663. as_test_x='
  22664. eval sh -c '\''
  22665. if test -d "$1"; then
  22666. test -d "$1/.";
  22667. else
  22668. case $1 in
  22669. -*)set "./$1";;
  22670. esac;
  22671. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  22672. ???[sx]*):;;*)false;;esac;fi
  22673. '\'' sh
  22674. '
  22675. fi
  22676. as_executable_p=$as_test_x
  22677. # Sed expression to map a string onto a valid CPP name.
  22678. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22679. # Sed expression to map a string onto a valid variable name.
  22680. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22681. exec 6>&1
  22682. # Save the log message, to keep $[0] and so on meaningful, and to
  22683. # report actual input values of CONFIG_FILES etc. instead of their
  22684. # values after options handling.
  22685. ac_log="
  22686. This file was extended by $as_me, which was
  22687. generated by GNU Autoconf 2.63. Invocation command line was
  22688. CONFIG_FILES = $CONFIG_FILES
  22689. CONFIG_HEADERS = $CONFIG_HEADERS
  22690. CONFIG_LINKS = $CONFIG_LINKS
  22691. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22692. $ $0 $@
  22693. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22694. "
  22695. _ACEOF
  22696. case $ac_config_files in *"
  22697. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22698. esac
  22699. case $ac_config_headers in *"
  22700. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22701. esac
  22702. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22703. # Files that config.status was made for.
  22704. config_files="$ac_config_files"
  22705. config_headers="$ac_config_headers"
  22706. config_commands="$ac_config_commands"
  22707. _ACEOF
  22708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22709. ac_cs_usage="\
  22710. \`$as_me' instantiates files from templates according to the
  22711. current configuration.
  22712. Usage: $0 [OPTION]... [FILE]...
  22713. -h, --help print this help, then exit
  22714. -V, --version print version number and configuration settings, then exit
  22715. -q, --quiet, --silent
  22716. do not print progress messages
  22717. -d, --debug don't remove temporary files
  22718. --recheck update $as_me by reconfiguring in the same conditions
  22719. --file=FILE[:TEMPLATE]
  22720. instantiate the configuration file FILE
  22721. --header=FILE[:TEMPLATE]
  22722. instantiate the configuration header FILE
  22723. Configuration files:
  22724. $config_files
  22725. Configuration headers:
  22726. $config_headers
  22727. Configuration commands:
  22728. $config_commands
  22729. Report bugs to <bug-autoconf@gnu.org>."
  22730. _ACEOF
  22731. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22732. ac_cs_version="\\
  22733. config.status
  22734. configured by $0, generated by GNU Autoconf 2.63,
  22735. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22736. Copyright (C) 2008 Free Software Foundation, Inc.
  22737. This config.status script is free software; the Free Software Foundation
  22738. gives unlimited permission to copy, distribute and modify it."
  22739. ac_pwd='$ac_pwd'
  22740. srcdir='$srcdir'
  22741. INSTALL='$INSTALL'
  22742. MKDIR_P='$MKDIR_P'
  22743. AWK='$AWK'
  22744. test -n "\$AWK" || AWK=awk
  22745. _ACEOF
  22746. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22747. # The default lists apply if the user does not specify any file.
  22748. ac_need_defaults=:
  22749. while test $# != 0
  22750. do
  22751. case $1 in
  22752. --*=*)
  22753. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22754. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22755. ac_shift=:
  22756. ;;
  22757. *)
  22758. ac_option=$1
  22759. ac_optarg=$2
  22760. ac_shift=shift
  22761. ;;
  22762. esac
  22763. case $ac_option in
  22764. # Handling of the options.
  22765. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22766. ac_cs_recheck=: ;;
  22767. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22768. $as_echo "$ac_cs_version"; exit ;;
  22769. --debug | --debu | --deb | --de | --d | -d )
  22770. debug=: ;;
  22771. --file | --fil | --fi | --f )
  22772. $ac_shift
  22773. case $ac_optarg in
  22774. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22775. esac
  22776. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  22777. ac_need_defaults=false;;
  22778. --header | --heade | --head | --hea )
  22779. $ac_shift
  22780. case $ac_optarg in
  22781. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22782. esac
  22783. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  22784. ac_need_defaults=false;;
  22785. --he | --h)
  22786. # Conflict between --help and --header
  22787. { $as_echo "$as_me: error: ambiguous option: $1
  22788. Try \`$0 --help' for more information." >&2
  22789. { (exit 1); exit 1; }; };;
  22790. --help | --hel | -h )
  22791. $as_echo "$ac_cs_usage"; exit ;;
  22792. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22793. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22794. ac_cs_silent=: ;;
  22795. # This is an error.
  22796. -*) { $as_echo "$as_me: error: unrecognized option: $1
  22797. Try \`$0 --help' for more information." >&2
  22798. { (exit 1); exit 1; }; } ;;
  22799. *) ac_config_targets="$ac_config_targets $1"
  22800. ac_need_defaults=false ;;
  22801. esac
  22802. shift
  22803. done
  22804. ac_configure_extra_args=
  22805. if $ac_cs_silent; then
  22806. exec 6>/dev/null
  22807. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22808. fi
  22809. _ACEOF
  22810. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22811. if \$ac_cs_recheck; then
  22812. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22813. shift
  22814. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22815. CONFIG_SHELL='$SHELL'
  22816. export CONFIG_SHELL
  22817. exec "\$@"
  22818. fi
  22819. _ACEOF
  22820. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22821. exec 5>>config.log
  22822. {
  22823. echo
  22824. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22825. ## Running $as_me. ##
  22826. _ASBOX
  22827. $as_echo "$ac_log"
  22828. } >&5
  22829. _ACEOF
  22830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22831. #
  22832. # INIT-COMMANDS
  22833. #
  22834. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22835. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22836. # if CDPATH is set.
  22837. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22838. sed_quote_subst='$sed_quote_subst'
  22839. double_quote_subst='$double_quote_subst'
  22840. delay_variable_subst='$delay_variable_subst'
  22841. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22842. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22843. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22844. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  22845. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22846. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22847. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22848. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22849. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22850. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22851. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22852. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22853. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22854. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22855. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22856. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22857. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22858. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22859. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22860. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22861. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22862. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22863. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22864. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22865. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22866. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22867. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22868. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22869. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22870. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22871. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22872. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22873. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22874. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22875. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22876. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22877. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22878. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22879. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22880. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22881. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22882. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22883. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22884. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22885. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22886. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22887. 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"`'
  22888. 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"`'
  22889. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22890. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22891. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22892. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22893. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22894. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22895. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22896. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22897. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22898. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22899. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22900. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22901. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22902. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22903. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22904. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22905. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22906. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22907. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22908. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22909. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22910. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22911. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22912. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22913. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22914. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22915. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22916. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22917. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22918. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22919. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22920. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22921. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22922. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22923. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22924. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22925. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22926. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22927. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22928. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22929. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22930. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22931. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22932. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22933. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22934. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22935. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22936. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22937. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22938. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22939. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22940. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22941. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22942. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22943. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22944. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22945. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22946. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22947. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22948. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22949. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22950. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22951. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22952. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22953. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22954. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22955. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22956. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22957. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22958. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22959. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22960. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22961. LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22962. old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22963. compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22964. GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22965. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22966. lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22967. lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22968. lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22969. lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22970. archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22971. enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22972. export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22973. whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22974. compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22975. old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22976. old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22977. archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22978. archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22979. module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22980. module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22981. with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22982. allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22983. no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22984. hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22985. hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22986. hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22987. hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22988. hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22989. hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22990. hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22991. hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22992. inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22993. link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22994. fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22995. always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22996. export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22997. exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22998. include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
  22999. prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
  23000. file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
  23001. hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
  23002. LTCC='$LTCC'
  23003. LTCFLAGS='$LTCFLAGS'
  23004. compiler='$compiler_DEFAULT'
  23005. # Quote evaled strings.
  23006. for var in SED \
  23007. GREP \
  23008. EGREP \
  23009. FGREP \
  23010. LD \
  23011. NM \
  23012. LN_S \
  23013. lt_SP2NL \
  23014. lt_NL2SP \
  23015. reload_flag \
  23016. deplibs_check_method \
  23017. file_magic_cmd \
  23018. AR \
  23019. AR_FLAGS \
  23020. STRIP \
  23021. RANLIB \
  23022. CC \
  23023. CFLAGS \
  23024. compiler \
  23025. lt_cv_sys_global_symbol_pipe \
  23026. lt_cv_sys_global_symbol_to_cdecl \
  23027. lt_cv_sys_global_symbol_to_c_name_address \
  23028. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23029. SHELL \
  23030. ECHO \
  23031. lt_prog_compiler_no_builtin_flag \
  23032. lt_prog_compiler_wl \
  23033. lt_prog_compiler_pic \
  23034. lt_prog_compiler_static \
  23035. lt_cv_prog_compiler_c_o \
  23036. need_locks \
  23037. DSYMUTIL \
  23038. NMEDIT \
  23039. LIPO \
  23040. OTOOL \
  23041. OTOOL64 \
  23042. shrext_cmds \
  23043. export_dynamic_flag_spec \
  23044. whole_archive_flag_spec \
  23045. compiler_needs_object \
  23046. with_gnu_ld \
  23047. allow_undefined_flag \
  23048. no_undefined_flag \
  23049. hardcode_libdir_flag_spec \
  23050. hardcode_libdir_flag_spec_ld \
  23051. hardcode_libdir_separator \
  23052. fix_srcfile_path \
  23053. exclude_expsyms \
  23054. include_expsyms \
  23055. file_list_spec \
  23056. variables_saved_for_relink \
  23057. libname_spec \
  23058. library_names_spec \
  23059. soname_spec \
  23060. finish_eval \
  23061. old_striplib \
  23062. striplib \
  23063. LD_RC \
  23064. compiler_RC \
  23065. lt_prog_compiler_no_builtin_flag_RC \
  23066. lt_prog_compiler_wl_RC \
  23067. lt_prog_compiler_pic_RC \
  23068. lt_prog_compiler_static_RC \
  23069. lt_cv_prog_compiler_c_o_RC \
  23070. export_dynamic_flag_spec_RC \
  23071. whole_archive_flag_spec_RC \
  23072. compiler_needs_object_RC \
  23073. with_gnu_ld_RC \
  23074. allow_undefined_flag_RC \
  23075. no_undefined_flag_RC \
  23076. hardcode_libdir_flag_spec_RC \
  23077. hardcode_libdir_flag_spec_ld_RC \
  23078. hardcode_libdir_separator_RC \
  23079. fix_srcfile_path_RC \
  23080. exclude_expsyms_RC \
  23081. include_expsyms_RC \
  23082. file_list_spec_RC; do
  23083. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  23084. *[\\\\\\\`\\"\\\$]*)
  23085. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23086. ;;
  23087. *)
  23088. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23089. ;;
  23090. esac
  23091. done
  23092. # Double-quote double-evaled strings.
  23093. for var in reload_cmds \
  23094. old_postinstall_cmds \
  23095. old_postuninstall_cmds \
  23096. old_archive_cmds \
  23097. extract_expsyms_cmds \
  23098. old_archive_from_new_cmds \
  23099. old_archive_from_expsyms_cmds \
  23100. archive_cmds \
  23101. archive_expsym_cmds \
  23102. module_cmds \
  23103. module_expsym_cmds \
  23104. export_symbols_cmds \
  23105. prelink_cmds \
  23106. postinstall_cmds \
  23107. postuninstall_cmds \
  23108. finish_cmds \
  23109. sys_lib_search_path_spec \
  23110. sys_lib_dlsearch_path_spec \
  23111. old_archive_cmds_RC \
  23112. old_archive_from_new_cmds_RC \
  23113. old_archive_from_expsyms_cmds_RC \
  23114. archive_cmds_RC \
  23115. archive_expsym_cmds_RC \
  23116. module_cmds_RC \
  23117. module_expsym_cmds_RC \
  23118. export_symbols_cmds_RC \
  23119. prelink_cmds_RC; do
  23120. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  23121. *[\\\\\\\`\\"\\\$]*)
  23122. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23123. ;;
  23124. *)
  23125. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23126. ;;
  23127. esac
  23128. done
  23129. # Fix-up fallback echo if it was mangled by the above quoting rules.
  23130. case \$lt_ECHO in
  23131. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  23132. ;;
  23133. esac
  23134. ac_aux_dir='$ac_aux_dir'
  23135. xsi_shell='$xsi_shell'
  23136. lt_shell_append='$lt_shell_append'
  23137. # See if we are running on zsh, and set the options which allow our
  23138. # commands through without removal of \ escapes INIT.
  23139. if test -n "\${ZSH_VERSION+set}" ; then
  23140. setopt NO_GLOB_SUBST
  23141. fi
  23142. PACKAGE='$PACKAGE'
  23143. VERSION='$VERSION'
  23144. TIMESTAMP='$TIMESTAMP'
  23145. RM='$RM'
  23146. ofile='$ofile'
  23147. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  23148. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  23149. # from automake < 1.5.
  23150. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  23151. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  23152. LINGUAS="${LINGUAS-%UNSET%}"
  23153. _ACEOF
  23154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23155. # Handling of arguments.
  23156. for ac_config_target in $ac_config_targets
  23157. do
  23158. case $ac_config_target in
  23159. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  23160. "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
  23161. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23162. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23163. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  23164. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23165. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23166. "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
  23167. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  23168. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  23169. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  23170. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  23171. "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
  23172. "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
  23173. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  23174. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  23175. { (exit 1); exit 1; }; };;
  23176. esac
  23177. done
  23178. # If the user did not use the arguments to specify the items to instantiate,
  23179. # then the envvar interface is used. Set only those that are not.
  23180. # We use the long form for the default assignment because of an extremely
  23181. # bizarre bug on SunOS 4.1.3.
  23182. if $ac_need_defaults; then
  23183. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23184. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23185. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23186. fi
  23187. # Have a temporary directory for convenience. Make it in the build tree
  23188. # simply because there is no reason against having it here, and in addition,
  23189. # creating and moving files from /tmp can sometimes cause problems.
  23190. # Hook for its removal unless debugging.
  23191. # Note that there is a small window in which the directory will not be cleaned:
  23192. # after its creation but before its name has been assigned to `$tmp'.
  23193. $debug ||
  23194. {
  23195. tmp=
  23196. trap 'exit_status=$?
  23197. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  23198. ' 0
  23199. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23200. }
  23201. # Create a (secure) tmp directory for tmp files.
  23202. {
  23203. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23204. test -n "$tmp" && test -d "$tmp"
  23205. } ||
  23206. {
  23207. tmp=./conf$$-$RANDOM
  23208. (umask 077 && mkdir "$tmp")
  23209. } ||
  23210. {
  23211. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  23212. { (exit 1); exit 1; }
  23213. }
  23214. # Set up the scripts for CONFIG_FILES section.
  23215. # No need to generate them if there are no CONFIG_FILES.
  23216. # This happens for instance with `./config.status config.h'.
  23217. if test -n "$CONFIG_FILES"; then
  23218. ac_cr=' '
  23219. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23220. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23221. ac_cs_awk_cr='\\r'
  23222. else
  23223. ac_cs_awk_cr=$ac_cr
  23224. fi
  23225. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  23226. _ACEOF
  23227. {
  23228. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23229. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23230. echo "_ACEOF"
  23231. } >conf$$subs.sh ||
  23232. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23233. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23234. { (exit 1); exit 1; }; }
  23235. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  23236. ac_delim='%!_!# '
  23237. for ac_last_try in false false false false false :; do
  23238. . ./conf$$subs.sh ||
  23239. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23240. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23241. { (exit 1); exit 1; }; }
  23242. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23243. if test $ac_delim_n = $ac_delim_num; then
  23244. break
  23245. elif $ac_last_try; then
  23246. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23247. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23248. { (exit 1); exit 1; }; }
  23249. else
  23250. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23251. fi
  23252. done
  23253. rm -f conf$$subs.sh
  23254. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23255. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  23256. _ACEOF
  23257. sed -n '
  23258. h
  23259. s/^/S["/; s/!.*/"]=/
  23260. p
  23261. g
  23262. s/^[^!]*!//
  23263. :repl
  23264. t repl
  23265. s/'"$ac_delim"'$//
  23266. t delim
  23267. :nl
  23268. h
  23269. s/\(.\{148\}\).*/\1/
  23270. t more1
  23271. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23272. p
  23273. n
  23274. b repl
  23275. :more1
  23276. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23277. p
  23278. g
  23279. s/.\{148\}//
  23280. t nl
  23281. :delim
  23282. h
  23283. s/\(.\{148\}\).*/\1/
  23284. t more2
  23285. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23286. p
  23287. b
  23288. :more2
  23289. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23290. p
  23291. g
  23292. s/.\{148\}//
  23293. t delim
  23294. ' <conf$$subs.awk | sed '
  23295. /^[^""]/{
  23296. N
  23297. s/\n//
  23298. }
  23299. ' >>$CONFIG_STATUS || ac_write_fail=1
  23300. rm -f conf$$subs.awk
  23301. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23302. _ACAWK
  23303. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  23304. for (key in S) S_is_set[key] = 1
  23305. FS = ""
  23306. }
  23307. {
  23308. line = $ 0
  23309. nfields = split(line, field, "@")
  23310. substed = 0
  23311. len = length(field[1])
  23312. for (i = 2; i < nfields; i++) {
  23313. key = field[i]
  23314. keylen = length(key)
  23315. if (S_is_set[key]) {
  23316. value = S[key]
  23317. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23318. len += length(value) + length(field[++i])
  23319. substed = 1
  23320. } else
  23321. len += 1 + keylen
  23322. }
  23323. print line
  23324. }
  23325. _ACAWK
  23326. _ACEOF
  23327. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23328. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23329. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23330. else
  23331. cat
  23332. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23333. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  23334. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  23335. { (exit 1); exit 1; }; }
  23336. _ACEOF
  23337. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23338. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23339. # trailing colons and then remove the whole line if VPATH becomes empty
  23340. # (actually we leave an empty line to preserve line numbers).
  23341. if test "x$srcdir" = x.; then
  23342. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23343. s/:*\$(srcdir):*/:/
  23344. s/:*\${srcdir}:*/:/
  23345. s/:*@srcdir@:*/:/
  23346. s/^\([^=]*=[ ]*\):*/\1/
  23347. s/:*$//
  23348. s/^[^=]*=[ ]*$//
  23349. }'
  23350. fi
  23351. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23352. fi # test -n "$CONFIG_FILES"
  23353. # Set up the scripts for CONFIG_HEADERS section.
  23354. # No need to generate them if there are no CONFIG_HEADERS.
  23355. # This happens for instance with `./config.status Makefile'.
  23356. if test -n "$CONFIG_HEADERS"; then
  23357. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23358. BEGIN {
  23359. _ACEOF
  23360. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23361. # here-document in config.status, that substitutes the proper values into
  23362. # config.h.in to produce config.h.
  23363. # Create a delimiter string that does not exist in confdefs.h, to ease
  23364. # handling of long lines.
  23365. ac_delim='%!_!# '
  23366. for ac_last_try in false false :; do
  23367. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23368. if test -z "$ac_t"; then
  23369. break
  23370. elif $ac_last_try; then
  23371. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  23372. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  23373. { (exit 1); exit 1; }; }
  23374. else
  23375. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23376. fi
  23377. done
  23378. # For the awk script, D is an array of macro values keyed by name,
  23379. # likewise P contains macro parameters if any. Preserve backslash
  23380. # newline sequences.
  23381. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23382. sed -n '
  23383. s/.\{148\}/&'"$ac_delim"'/g
  23384. t rset
  23385. :rset
  23386. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23387. t def
  23388. d
  23389. :def
  23390. s/\\$//
  23391. t bsnl
  23392. s/["\\]/\\&/g
  23393. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23394. D["\1"]=" \3"/p
  23395. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23396. d
  23397. :bsnl
  23398. s/["\\]/\\&/g
  23399. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23400. D["\1"]=" \3\\\\\\n"\\/p
  23401. t cont
  23402. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23403. t cont
  23404. d
  23405. :cont
  23406. n
  23407. s/.\{148\}/&'"$ac_delim"'/g
  23408. t clear
  23409. :clear
  23410. s/\\$//
  23411. t bsnlc
  23412. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23413. d
  23414. :bsnlc
  23415. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23416. b cont
  23417. ' <confdefs.h | sed '
  23418. s/'"$ac_delim"'/"\\\
  23419. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23421. for (key in D) D_is_set[key] = 1
  23422. FS = ""
  23423. }
  23424. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23425. line = \$ 0
  23426. split(line, arg, " ")
  23427. if (arg[1] == "#") {
  23428. defundef = arg[2]
  23429. mac1 = arg[3]
  23430. } else {
  23431. defundef = substr(arg[1], 2)
  23432. mac1 = arg[2]
  23433. }
  23434. split(mac1, mac2, "(") #)
  23435. macro = mac2[1]
  23436. prefix = substr(line, 1, index(line, defundef) - 1)
  23437. if (D_is_set[macro]) {
  23438. # Preserve the white space surrounding the "#".
  23439. print prefix "define", macro P[macro] D[macro]
  23440. next
  23441. } else {
  23442. # Replace #undef with comments. This is necessary, for example,
  23443. # in the case of _POSIX_SOURCE, which is predefined and required
  23444. # on some systems where configure will not decide to define it.
  23445. if (defundef == "undef") {
  23446. print "/*", prefix defundef, macro, "*/"
  23447. next
  23448. }
  23449. }
  23450. }
  23451. { print }
  23452. _ACAWK
  23453. _ACEOF
  23454. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23455. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  23456. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  23457. { (exit 1); exit 1; }; }
  23458. fi # test -n "$CONFIG_HEADERS"
  23459. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23460. shift
  23461. for ac_tag
  23462. do
  23463. case $ac_tag in
  23464. :[FHLC]) ac_mode=$ac_tag; continue;;
  23465. esac
  23466. case $ac_mode$ac_tag in
  23467. :[FHL]*:*);;
  23468. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  23469. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  23470. { (exit 1); exit 1; }; };;
  23471. :[FH]-) ac_tag=-:-;;
  23472. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23473. esac
  23474. ac_save_IFS=$IFS
  23475. IFS=:
  23476. set x $ac_tag
  23477. IFS=$ac_save_IFS
  23478. shift
  23479. ac_file=$1
  23480. shift
  23481. case $ac_mode in
  23482. :L) ac_source=$1;;
  23483. :[FH])
  23484. ac_file_inputs=
  23485. for ac_f
  23486. do
  23487. case $ac_f in
  23488. -) ac_f="$tmp/stdin";;
  23489. *) # Look for the file first in the build tree, then in the source tree
  23490. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23491. # because $ac_f cannot contain `:'.
  23492. test -f "$ac_f" ||
  23493. case $ac_f in
  23494. [\\/$]*) false;;
  23495. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23496. esac ||
  23497. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  23498. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  23499. { (exit 1); exit 1; }; };;
  23500. esac
  23501. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23502. ac_file_inputs="$ac_file_inputs '$ac_f'"
  23503. done
  23504. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23505. # use $as_me), people would be surprised to read:
  23506. # /* config.h. Generated by config.status. */
  23507. configure_input='Generated from '`
  23508. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23509. `' by configure.'
  23510. if test x"$ac_file" != x-; then
  23511. configure_input="$ac_file. $configure_input"
  23512. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  23513. $as_echo "$as_me: creating $ac_file" >&6;}
  23514. fi
  23515. # Neutralize special characters interpreted by sed in replacement strings.
  23516. case $configure_input in #(
  23517. *\&* | *\|* | *\\* )
  23518. ac_sed_conf_input=`$as_echo "$configure_input" |
  23519. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23520. *) ac_sed_conf_input=$configure_input;;
  23521. esac
  23522. case $ac_tag in
  23523. *:-:* | *:-) cat >"$tmp/stdin" \
  23524. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23525. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23526. { (exit 1); exit 1; }; } ;;
  23527. esac
  23528. ;;
  23529. esac
  23530. ac_dir=`$as_dirname -- "$ac_file" ||
  23531. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23532. X"$ac_file" : 'X\(//\)[^/]' \| \
  23533. X"$ac_file" : 'X\(//\)$' \| \
  23534. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23535. $as_echo X"$ac_file" |
  23536. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23537. s//\1/
  23538. q
  23539. }
  23540. /^X\(\/\/\)[^/].*/{
  23541. s//\1/
  23542. q
  23543. }
  23544. /^X\(\/\/\)$/{
  23545. s//\1/
  23546. q
  23547. }
  23548. /^X\(\/\).*/{
  23549. s//\1/
  23550. q
  23551. }
  23552. s/.*/./; q'`
  23553. { as_dir="$ac_dir"
  23554. case $as_dir in #(
  23555. -*) as_dir=./$as_dir;;
  23556. esac
  23557. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23558. as_dirs=
  23559. while :; do
  23560. case $as_dir in #(
  23561. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23562. *) as_qdir=$as_dir;;
  23563. esac
  23564. as_dirs="'$as_qdir' $as_dirs"
  23565. as_dir=`$as_dirname -- "$as_dir" ||
  23566. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23567. X"$as_dir" : 'X\(//\)[^/]' \| \
  23568. X"$as_dir" : 'X\(//\)$' \| \
  23569. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23570. $as_echo X"$as_dir" |
  23571. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23572. s//\1/
  23573. q
  23574. }
  23575. /^X\(\/\/\)[^/].*/{
  23576. s//\1/
  23577. q
  23578. }
  23579. /^X\(\/\/\)$/{
  23580. s//\1/
  23581. q
  23582. }
  23583. /^X\(\/\).*/{
  23584. s//\1/
  23585. q
  23586. }
  23587. s/.*/./; q'`
  23588. test -d "$as_dir" && break
  23589. done
  23590. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23591. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23592. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23593. { (exit 1); exit 1; }; }; }
  23594. ac_builddir=.
  23595. case "$ac_dir" in
  23596. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23597. *)
  23598. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23599. # A ".." for each directory in $ac_dir_suffix.
  23600. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23601. case $ac_top_builddir_sub in
  23602. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23603. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23604. esac ;;
  23605. esac
  23606. ac_abs_top_builddir=$ac_pwd
  23607. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23608. # for backward compatibility:
  23609. ac_top_builddir=$ac_top_build_prefix
  23610. case $srcdir in
  23611. .) # We are building in place.
  23612. ac_srcdir=.
  23613. ac_top_srcdir=$ac_top_builddir_sub
  23614. ac_abs_top_srcdir=$ac_pwd ;;
  23615. [\\/]* | ?:[\\/]* ) # Absolute name.
  23616. ac_srcdir=$srcdir$ac_dir_suffix;
  23617. ac_top_srcdir=$srcdir
  23618. ac_abs_top_srcdir=$srcdir ;;
  23619. *) # Relative name.
  23620. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23621. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23622. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23623. esac
  23624. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23625. case $ac_mode in
  23626. :F)
  23627. #
  23628. # CONFIG_FILE
  23629. #
  23630. case $INSTALL in
  23631. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23632. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23633. esac
  23634. ac_MKDIR_P=$MKDIR_P
  23635. case $MKDIR_P in
  23636. [\\/$]* | ?:[\\/]* ) ;;
  23637. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23638. esac
  23639. _ACEOF
  23640. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23641. # If the template does not know about datarootdir, expand it.
  23642. # FIXME: This hack should be removed a few years after 2.60.
  23643. ac_datarootdir_hack=; ac_datarootdir_seen=
  23644. ac_sed_dataroot='
  23645. /datarootdir/ {
  23646. p
  23647. q
  23648. }
  23649. /@datadir@/p
  23650. /@docdir@/p
  23651. /@infodir@/p
  23652. /@localedir@/p
  23653. /@mandir@/p
  23654. '
  23655. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23656. *datarootdir*) ac_datarootdir_seen=yes;;
  23657. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23658. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23659. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23660. _ACEOF
  23661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23662. ac_datarootdir_hack='
  23663. s&@datadir@&$datadir&g
  23664. s&@docdir@&$docdir&g
  23665. s&@infodir@&$infodir&g
  23666. s&@localedir@&$localedir&g
  23667. s&@mandir@&$mandir&g
  23668. s&\\\${datarootdir}&$datarootdir&g' ;;
  23669. esac
  23670. _ACEOF
  23671. # Neutralize VPATH when `$srcdir' = `.'.
  23672. # Shell code in configure.ac might set extrasub.
  23673. # FIXME: do we really want to maintain this feature?
  23674. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23675. ac_sed_extra="$ac_vpsub
  23676. $extrasub
  23677. _ACEOF
  23678. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23679. :t
  23680. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23681. s|@configure_input@|$ac_sed_conf_input|;t t
  23682. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23683. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23684. s&@srcdir@&$ac_srcdir&;t t
  23685. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23686. s&@top_srcdir@&$ac_top_srcdir&;t t
  23687. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23688. s&@builddir@&$ac_builddir&;t t
  23689. s&@abs_builddir@&$ac_abs_builddir&;t t
  23690. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23691. s&@INSTALL@&$ac_INSTALL&;t t
  23692. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23693. $ac_datarootdir_hack
  23694. "
  23695. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23696. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23697. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23698. { (exit 1); exit 1; }; }
  23699. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23700. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23701. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23702. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23703. which seems to be undefined. Please make sure it is defined." >&5
  23704. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23705. which seems to be undefined. Please make sure it is defined." >&2;}
  23706. rm -f "$tmp/stdin"
  23707. case $ac_file in
  23708. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23709. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23710. esac \
  23711. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23712. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23713. { (exit 1); exit 1; }; }
  23714. ;;
  23715. :H)
  23716. #
  23717. # CONFIG_HEADER
  23718. #
  23719. if test x"$ac_file" != x-; then
  23720. {
  23721. $as_echo "/* $configure_input */" \
  23722. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23723. } >"$tmp/config.h" \
  23724. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23725. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23726. { (exit 1); exit 1; }; }
  23727. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23728. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23729. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23730. else
  23731. rm -f "$ac_file"
  23732. mv "$tmp/config.h" "$ac_file" \
  23733. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23734. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23735. { (exit 1); exit 1; }; }
  23736. fi
  23737. else
  23738. $as_echo "/* $configure_input */" \
  23739. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23740. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  23741. $as_echo "$as_me: error: could not create -" >&2;}
  23742. { (exit 1); exit 1; }; }
  23743. fi
  23744. # Compute "$ac_file"'s index in $config_headers.
  23745. _am_arg="$ac_file"
  23746. _am_stamp_count=1
  23747. for _am_header in $config_headers :; do
  23748. case $_am_header in
  23749. $_am_arg | $_am_arg:* )
  23750. break ;;
  23751. * )
  23752. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23753. esac
  23754. done
  23755. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23756. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23757. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23758. X"$_am_arg" : 'X\(//\)$' \| \
  23759. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23760. $as_echo X"$_am_arg" |
  23761. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23762. s//\1/
  23763. q
  23764. }
  23765. /^X\(\/\/\)[^/].*/{
  23766. s//\1/
  23767. q
  23768. }
  23769. /^X\(\/\/\)$/{
  23770. s//\1/
  23771. q
  23772. }
  23773. /^X\(\/\).*/{
  23774. s//\1/
  23775. q
  23776. }
  23777. s/.*/./; q'`/stamp-h$_am_stamp_count
  23778. ;;
  23779. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  23780. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23781. ;;
  23782. esac
  23783. case $ac_file$ac_mode in
  23784. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23785. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23786. # are listed without --file. Let's play safe and only enable the eval
  23787. # if we detect the quoting.
  23788. case $CONFIG_FILES in
  23789. *\'*) eval set x "$CONFIG_FILES" ;;
  23790. *) set x $CONFIG_FILES ;;
  23791. esac
  23792. shift
  23793. for mf
  23794. do
  23795. # Strip MF so we end up with the name of the file.
  23796. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23797. # Check whether this is an Automake generated Makefile or not.
  23798. # We used to match only the files named `Makefile.in', but
  23799. # some people rename them; so instead we look at the file content.
  23800. # Grep'ing the first line is not enough: some people post-process
  23801. # each Makefile.in and add a new line on top of each file to say so.
  23802. # Grep'ing the whole file is not good either: AIX grep has a line
  23803. # limit of 2048, but all sed's we know have understand at least 4000.
  23804. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23805. dirpart=`$as_dirname -- "$mf" ||
  23806. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23807. X"$mf" : 'X\(//\)[^/]' \| \
  23808. X"$mf" : 'X\(//\)$' \| \
  23809. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23810. $as_echo X"$mf" |
  23811. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23812. s//\1/
  23813. q
  23814. }
  23815. /^X\(\/\/\)[^/].*/{
  23816. s//\1/
  23817. q
  23818. }
  23819. /^X\(\/\/\)$/{
  23820. s//\1/
  23821. q
  23822. }
  23823. /^X\(\/\).*/{
  23824. s//\1/
  23825. q
  23826. }
  23827. s/.*/./; q'`
  23828. else
  23829. continue
  23830. fi
  23831. # Extract the definition of DEPDIR, am__include, and am__quote
  23832. # from the Makefile without running `make'.
  23833. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23834. test -z "$DEPDIR" && continue
  23835. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23836. test -z "am__include" && continue
  23837. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23838. # When using ansi2knr, U may be empty or an underscore; expand it
  23839. U=`sed -n 's/^U = //p' < "$mf"`
  23840. # Find all dependency output files, they are included files with
  23841. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23842. # simplest approach to changing $(DEPDIR) to its actual value in the
  23843. # expansion.
  23844. for file in `sed -n "
  23845. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23846. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23847. # Make sure the directory exists.
  23848. test -f "$dirpart/$file" && continue
  23849. fdir=`$as_dirname -- "$file" ||
  23850. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23851. X"$file" : 'X\(//\)[^/]' \| \
  23852. X"$file" : 'X\(//\)$' \| \
  23853. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23854. $as_echo X"$file" |
  23855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23856. s//\1/
  23857. q
  23858. }
  23859. /^X\(\/\/\)[^/].*/{
  23860. s//\1/
  23861. q
  23862. }
  23863. /^X\(\/\/\)$/{
  23864. s//\1/
  23865. q
  23866. }
  23867. /^X\(\/\).*/{
  23868. s//\1/
  23869. q
  23870. }
  23871. s/.*/./; q'`
  23872. { as_dir=$dirpart/$fdir
  23873. case $as_dir in #(
  23874. -*) as_dir=./$as_dir;;
  23875. esac
  23876. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23877. as_dirs=
  23878. while :; do
  23879. case $as_dir in #(
  23880. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23881. *) as_qdir=$as_dir;;
  23882. esac
  23883. as_dirs="'$as_qdir' $as_dirs"
  23884. as_dir=`$as_dirname -- "$as_dir" ||
  23885. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23886. X"$as_dir" : 'X\(//\)[^/]' \| \
  23887. X"$as_dir" : 'X\(//\)$' \| \
  23888. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23889. $as_echo X"$as_dir" |
  23890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23891. s//\1/
  23892. q
  23893. }
  23894. /^X\(\/\/\)[^/].*/{
  23895. s//\1/
  23896. q
  23897. }
  23898. /^X\(\/\/\)$/{
  23899. s//\1/
  23900. q
  23901. }
  23902. /^X\(\/\).*/{
  23903. s//\1/
  23904. q
  23905. }
  23906. s/.*/./; q'`
  23907. test -d "$as_dir" && break
  23908. done
  23909. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23910. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23911. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23912. { (exit 1); exit 1; }; }; }
  23913. # echo "creating $dirpart/$file"
  23914. echo '# dummy' > "$dirpart/$file"
  23915. done
  23916. done
  23917. }
  23918. ;;
  23919. "libtool":C)
  23920. # See if we are running on zsh, and set the options which allow our
  23921. # commands through without removal of \ escapes.
  23922. if test -n "${ZSH_VERSION+set}" ; then
  23923. setopt NO_GLOB_SUBST
  23924. fi
  23925. cfgfile="${ofile}T"
  23926. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23927. $RM "$cfgfile"
  23928. cat <<_LT_EOF >> "$cfgfile"
  23929. #! $SHELL
  23930. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23931. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23932. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23933. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23934. #
  23935. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23936. # 2006, 2007, 2008 Free Software Foundation, Inc.
  23937. # Written by Gordon Matzigkeit, 1996
  23938. #
  23939. # This file is part of GNU Libtool.
  23940. #
  23941. # GNU Libtool is free software; you can redistribute it and/or
  23942. # modify it under the terms of the GNU General Public License as
  23943. # published by the Free Software Foundation; either version 2 of
  23944. # the License, or (at your option) any later version.
  23945. #
  23946. # As a special exception to the GNU General Public License,
  23947. # if you distribute this file as part of a program or library that
  23948. # is built using GNU Libtool, you may include this file under the
  23949. # same distribution terms that you use for the rest of that program.
  23950. #
  23951. # GNU Libtool is distributed in the hope that it will be useful,
  23952. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23953. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23954. # GNU General Public License for more details.
  23955. #
  23956. # You should have received a copy of the GNU General Public License
  23957. # along with GNU Libtool; see the file COPYING. If not, a copy
  23958. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23959. # obtained by writing to the Free Software Foundation, Inc.,
  23960. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23961. # The names of the tagged configurations supported by this script.
  23962. available_tags="RC "
  23963. # ### BEGIN LIBTOOL CONFIG
  23964. # Which release of libtool.m4 was used?
  23965. macro_version=$macro_version
  23966. macro_revision=$macro_revision
  23967. # Whether or not to build static libraries.
  23968. build_old_libs=$enable_static
  23969. # Assembler program.
  23970. AS=$AS
  23971. # DLL creation program.
  23972. DLLTOOL=$DLLTOOL
  23973. # Object dumper program.
  23974. OBJDUMP=$OBJDUMP
  23975. # Whether or not to build shared libraries.
  23976. build_libtool_libs=$enable_shared
  23977. # What type of objects to build.
  23978. pic_mode=$pic_mode
  23979. # Whether or not to optimize for fast installation.
  23980. fast_install=$enable_fast_install
  23981. # The host system.
  23982. host_alias=$host_alias
  23983. host=$host
  23984. host_os=$host_os
  23985. # The build system.
  23986. build_alias=$build_alias
  23987. build=$build
  23988. build_os=$build_os
  23989. # A sed program that does not truncate output.
  23990. SED=$lt_SED
  23991. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23992. Xsed="\$SED -e 1s/^X//"
  23993. # A grep program that handles long lines.
  23994. GREP=$lt_GREP
  23995. # An ERE matcher.
  23996. EGREP=$lt_EGREP
  23997. # A literal string matcher.
  23998. FGREP=$lt_FGREP
  23999. # A BSD- or MS-compatible name lister.
  24000. NM=$lt_NM
  24001. # Whether we need soft or hard links.
  24002. LN_S=$lt_LN_S
  24003. # What is the maximum length of a command?
  24004. max_cmd_len=$max_cmd_len
  24005. # Object file suffix (normally "o").
  24006. objext=$ac_objext
  24007. # Executable file suffix (normally "").
  24008. exeext=$exeext
  24009. # whether the shell understands "unset".
  24010. lt_unset=$lt_unset
  24011. # turn spaces into newlines.
  24012. SP2NL=$lt_lt_SP2NL
  24013. # turn newlines into spaces.
  24014. NL2SP=$lt_lt_NL2SP
  24015. # How to create reloadable object files.
  24016. reload_flag=$lt_reload_flag
  24017. reload_cmds=$lt_reload_cmds
  24018. # Method to check whether dependent libraries are shared objects.
  24019. deplibs_check_method=$lt_deplibs_check_method
  24020. # Command to use when deplibs_check_method == "file_magic".
  24021. file_magic_cmd=$lt_file_magic_cmd
  24022. # The archiver.
  24023. AR=$lt_AR
  24024. AR_FLAGS=$lt_AR_FLAGS
  24025. # A symbol stripping program.
  24026. STRIP=$lt_STRIP
  24027. # Commands used to install an old-style archive.
  24028. RANLIB=$lt_RANLIB
  24029. old_postinstall_cmds=$lt_old_postinstall_cmds
  24030. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24031. # A C compiler.
  24032. LTCC=$lt_CC
  24033. # LTCC compiler flags.
  24034. LTCFLAGS=$lt_CFLAGS
  24035. # Take the output of nm and produce a listing of raw symbols and C names.
  24036. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24037. # Transform the output of nm in a proper C declaration.
  24038. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24039. # Transform the output of nm in a C name address pair.
  24040. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24041. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24042. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24043. # The name of the directory that contains temporary libtool files.
  24044. objdir=$objdir
  24045. # Shell to use when invoking shell scripts.
  24046. SHELL=$lt_SHELL
  24047. # An echo program that does not interpret backslashes.
  24048. ECHO=$lt_ECHO
  24049. # Used to examine libraries when file_magic_cmd begins with "file".
  24050. MAGIC_CMD=$MAGIC_CMD
  24051. # Must we lock files when doing compilation?
  24052. need_locks=$lt_need_locks
  24053. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24054. DSYMUTIL=$lt_DSYMUTIL
  24055. # Tool to change global to local symbols on Mac OS X.
  24056. NMEDIT=$lt_NMEDIT
  24057. # Tool to manipulate fat objects and archives on Mac OS X.
  24058. LIPO=$lt_LIPO
  24059. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24060. OTOOL=$lt_OTOOL
  24061. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24062. OTOOL64=$lt_OTOOL64
  24063. # Old archive suffix (normally "a").
  24064. libext=$libext
  24065. # Shared library suffix (normally ".so").
  24066. shrext_cmds=$lt_shrext_cmds
  24067. # The commands to extract the exported symbol list from a shared archive.
  24068. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24069. # Variables whose values should be saved in libtool wrapper scripts and
  24070. # restored at link time.
  24071. variables_saved_for_relink=$lt_variables_saved_for_relink
  24072. # Do we need the "lib" prefix for modules?
  24073. need_lib_prefix=$need_lib_prefix
  24074. # Do we need a version for libraries?
  24075. need_version=$need_version
  24076. # Library versioning type.
  24077. version_type=$version_type
  24078. # Shared library runtime path variable.
  24079. runpath_var=$runpath_var
  24080. # Shared library path variable.
  24081. shlibpath_var=$shlibpath_var
  24082. # Is shlibpath searched before the hard-coded library search path?
  24083. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24084. # Format of library name prefix.
  24085. libname_spec=$lt_libname_spec
  24086. # List of archive names. First name is the real one, the rest are links.
  24087. # The last name is the one that the linker finds with -lNAME
  24088. library_names_spec=$lt_library_names_spec
  24089. # The coded name of the library, if different from the real name.
  24090. soname_spec=$lt_soname_spec
  24091. # Command to use after installation of a shared archive.
  24092. postinstall_cmds=$lt_postinstall_cmds
  24093. # Command to use after uninstallation of a shared archive.
  24094. postuninstall_cmds=$lt_postuninstall_cmds
  24095. # Commands used to finish a libtool library installation in a directory.
  24096. finish_cmds=$lt_finish_cmds
  24097. # As "finish_cmds", except a single script fragment to be evaled but
  24098. # not shown.
  24099. finish_eval=$lt_finish_eval
  24100. # Whether we should hardcode library paths into libraries.
  24101. hardcode_into_libs=$hardcode_into_libs
  24102. # Compile-time system search path for libraries.
  24103. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24104. # Run-time system search path for libraries.
  24105. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24106. # Whether dlopen is supported.
  24107. dlopen_support=$enable_dlopen
  24108. # Whether dlopen of programs is supported.
  24109. dlopen_self=$enable_dlopen_self
  24110. # Whether dlopen of statically linked programs is supported.
  24111. dlopen_self_static=$enable_dlopen_self_static
  24112. # Commands to strip libraries.
  24113. old_striplib=$lt_old_striplib
  24114. striplib=$lt_striplib
  24115. # The linker used to build libraries.
  24116. LD=$lt_LD
  24117. # Commands used to build an old-style archive.
  24118. old_archive_cmds=$lt_old_archive_cmds
  24119. # A language specific compiler.
  24120. CC=$lt_compiler
  24121. # Is the compiler the GNU compiler?
  24122. with_gcc=$GCC
  24123. # Compiler flag to turn off builtin functions.
  24124. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24125. # How to pass a linker flag through the compiler.
  24126. wl=$lt_lt_prog_compiler_wl
  24127. # Additional compiler flags for building library objects.
  24128. pic_flag=$lt_lt_prog_compiler_pic
  24129. # Compiler flag to prevent dynamic linking.
  24130. link_static_flag=$lt_lt_prog_compiler_static
  24131. # Does compiler simultaneously support -c and -o options?
  24132. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24133. # Whether or not to add -lc for building shared libraries.
  24134. build_libtool_need_lc=$archive_cmds_need_lc
  24135. # Whether or not to disallow shared libs when runtime libs are static.
  24136. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24137. # Compiler flag to allow reflexive dlopens.
  24138. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24139. # Compiler flag to generate shared objects directly from archives.
  24140. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24141. # Whether the compiler copes with passing no objects directly.
  24142. compiler_needs_object=$lt_compiler_needs_object
  24143. # Create an old-style archive from a shared archive.
  24144. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24145. # Create a temporary old-style archive to link instead of a shared archive.
  24146. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24147. # Commands used to build a shared archive.
  24148. archive_cmds=$lt_archive_cmds
  24149. archive_expsym_cmds=$lt_archive_expsym_cmds
  24150. # Commands used to build a loadable module if different from building
  24151. # a shared archive.
  24152. module_cmds=$lt_module_cmds
  24153. module_expsym_cmds=$lt_module_expsym_cmds
  24154. # Whether we are building with GNU ld or not.
  24155. with_gnu_ld=$lt_with_gnu_ld
  24156. # Flag that allows shared libraries with undefined symbols to be built.
  24157. allow_undefined_flag=$lt_allow_undefined_flag
  24158. # Flag that enforces no undefined symbols.
  24159. no_undefined_flag=$lt_no_undefined_flag
  24160. # Flag to hardcode \$libdir into a binary during linking.
  24161. # This must work even if \$libdir does not exist
  24162. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24163. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24164. # during linking. This must work even if \$libdir does not exist.
  24165. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  24166. # Whether we need a single "-rpath" flag with a separated argument.
  24167. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24168. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24169. # DIR into the resulting binary.
  24170. hardcode_direct=$hardcode_direct
  24171. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24172. # DIR into the resulting binary and the resulting library dependency is
  24173. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24174. # library is relocated.
  24175. hardcode_direct_absolute=$hardcode_direct_absolute
  24176. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24177. # into the resulting binary.
  24178. hardcode_minus_L=$hardcode_minus_L
  24179. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24180. # into the resulting binary.
  24181. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24182. # Set to "yes" if building a shared library automatically hardcodes DIR
  24183. # into the library and all subsequent libraries and executables linked
  24184. # against it.
  24185. hardcode_automatic=$hardcode_automatic
  24186. # Set to yes if linker adds runtime paths of dependent libraries
  24187. # to runtime path list.
  24188. inherit_rpath=$inherit_rpath
  24189. # Whether libtool must link a program against all its dependency libraries.
  24190. link_all_deplibs=$link_all_deplibs
  24191. # Fix the shell variable \$srcfile for the compiler.
  24192. fix_srcfile_path=$lt_fix_srcfile_path
  24193. # Set to "yes" if exported symbols are required.
  24194. always_export_symbols=$always_export_symbols
  24195. # The commands to list exported symbols.
  24196. export_symbols_cmds=$lt_export_symbols_cmds
  24197. # Symbols that should not be listed in the preloaded symbols.
  24198. exclude_expsyms=$lt_exclude_expsyms
  24199. # Symbols that must always be exported.
  24200. include_expsyms=$lt_include_expsyms
  24201. # Commands necessary for linking programs (against libraries) with templates.
  24202. prelink_cmds=$lt_prelink_cmds
  24203. # Specify filename containing input files.
  24204. file_list_spec=$lt_file_list_spec
  24205. # How to hardcode a shared library path into an executable.
  24206. hardcode_action=$hardcode_action
  24207. # ### END LIBTOOL CONFIG
  24208. _LT_EOF
  24209. case $host_os in
  24210. aix3*)
  24211. cat <<\_LT_EOF >> "$cfgfile"
  24212. # AIX sometimes has problems with the GCC collect2 program. For some
  24213. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24214. # vanish in a puff of smoke.
  24215. if test "X${COLLECT_NAMES+set}" != Xset; then
  24216. COLLECT_NAMES=
  24217. export COLLECT_NAMES
  24218. fi
  24219. _LT_EOF
  24220. ;;
  24221. esac
  24222. ltmain="$ac_aux_dir/ltmain.sh"
  24223. # We use sed instead of cat because bash on DJGPP gets confused if
  24224. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24225. # text mode, it properly converts lines to CR/LF. This bash problem
  24226. # is reportedly fixed, but why not run on old versions too?
  24227. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  24228. || (rm -f "$cfgfile"; exit 1)
  24229. case $xsi_shell in
  24230. yes)
  24231. cat << \_LT_EOF >> "$cfgfile"
  24232. # func_dirname file append nondir_replacement
  24233. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24234. # otherwise set result to NONDIR_REPLACEMENT.
  24235. func_dirname ()
  24236. {
  24237. case ${1} in
  24238. */*) func_dirname_result="${1%/*}${2}" ;;
  24239. * ) func_dirname_result="${3}" ;;
  24240. esac
  24241. }
  24242. # func_basename file
  24243. func_basename ()
  24244. {
  24245. func_basename_result="${1##*/}"
  24246. }
  24247. # func_dirname_and_basename file append nondir_replacement
  24248. # perform func_basename and func_dirname in a single function
  24249. # call:
  24250. # dirname: Compute the dirname of FILE. If nonempty,
  24251. # add APPEND to the result, otherwise set result
  24252. # to NONDIR_REPLACEMENT.
  24253. # value returned in "$func_dirname_result"
  24254. # basename: Compute filename of FILE.
  24255. # value retuned in "$func_basename_result"
  24256. # Implementation must be kept synchronized with func_dirname
  24257. # and func_basename. For efficiency, we do not delegate to
  24258. # those functions but instead duplicate the functionality here.
  24259. func_dirname_and_basename ()
  24260. {
  24261. case ${1} in
  24262. */*) func_dirname_result="${1%/*}${2}" ;;
  24263. * ) func_dirname_result="${3}" ;;
  24264. esac
  24265. func_basename_result="${1##*/}"
  24266. }
  24267. # func_stripname prefix suffix name
  24268. # strip PREFIX and SUFFIX off of NAME.
  24269. # PREFIX and SUFFIX must not contain globbing or regex special
  24270. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24271. # dot (in which case that matches only a dot).
  24272. func_stripname ()
  24273. {
  24274. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  24275. # positional parameters, so assign one to ordinary parameter first.
  24276. func_stripname_result=${3}
  24277. func_stripname_result=${func_stripname_result#"${1}"}
  24278. func_stripname_result=${func_stripname_result%"${2}"}
  24279. }
  24280. # func_opt_split
  24281. func_opt_split ()
  24282. {
  24283. func_opt_split_opt=${1%%=*}
  24284. func_opt_split_arg=${1#*=}
  24285. }
  24286. # func_lo2o object
  24287. func_lo2o ()
  24288. {
  24289. case ${1} in
  24290. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  24291. *) func_lo2o_result=${1} ;;
  24292. esac
  24293. }
  24294. # func_xform libobj-or-source
  24295. func_xform ()
  24296. {
  24297. func_xform_result=${1%.*}.lo
  24298. }
  24299. # func_arith arithmetic-term...
  24300. func_arith ()
  24301. {
  24302. func_arith_result=$(( $* ))
  24303. }
  24304. # func_len string
  24305. # STRING may not start with a hyphen.
  24306. func_len ()
  24307. {
  24308. func_len_result=${#1}
  24309. }
  24310. _LT_EOF
  24311. ;;
  24312. *) # Bourne compatible functions.
  24313. cat << \_LT_EOF >> "$cfgfile"
  24314. # func_dirname file append nondir_replacement
  24315. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24316. # otherwise set result to NONDIR_REPLACEMENT.
  24317. func_dirname ()
  24318. {
  24319. # Extract subdirectory from the argument.
  24320. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  24321. if test "X$func_dirname_result" = "X${1}"; then
  24322. func_dirname_result="${3}"
  24323. else
  24324. func_dirname_result="$func_dirname_result${2}"
  24325. fi
  24326. }
  24327. # func_basename file
  24328. func_basename ()
  24329. {
  24330. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  24331. }
  24332. # func_stripname prefix suffix name
  24333. # strip PREFIX and SUFFIX off of NAME.
  24334. # PREFIX and SUFFIX must not contain globbing or regex special
  24335. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24336. # dot (in which case that matches only a dot).
  24337. # func_strip_suffix prefix name
  24338. func_stripname ()
  24339. {
  24340. case ${2} in
  24341. .*) func_stripname_result=`$ECHO "X${3}" \
  24342. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  24343. *) func_stripname_result=`$ECHO "X${3}" \
  24344. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  24345. esac
  24346. }
  24347. # sed scripts:
  24348. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  24349. my_sed_long_arg='1s/^-[^=]*=//'
  24350. # func_opt_split
  24351. func_opt_split ()
  24352. {
  24353. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  24354. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  24355. }
  24356. # func_lo2o object
  24357. func_lo2o ()
  24358. {
  24359. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  24360. }
  24361. # func_xform libobj-or-source
  24362. func_xform ()
  24363. {
  24364. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  24365. }
  24366. # func_arith arithmetic-term...
  24367. func_arith ()
  24368. {
  24369. func_arith_result=`expr "$@"`
  24370. }
  24371. # func_len string
  24372. # STRING may not start with a hyphen.
  24373. func_len ()
  24374. {
  24375. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  24376. }
  24377. _LT_EOF
  24378. esac
  24379. case $lt_shell_append in
  24380. yes)
  24381. cat << \_LT_EOF >> "$cfgfile"
  24382. # func_append var value
  24383. # Append VALUE to the end of shell variable VAR.
  24384. func_append ()
  24385. {
  24386. eval "$1+=\$2"
  24387. }
  24388. _LT_EOF
  24389. ;;
  24390. *)
  24391. cat << \_LT_EOF >> "$cfgfile"
  24392. # func_append var value
  24393. # Append VALUE to the end of shell variable VAR.
  24394. func_append ()
  24395. {
  24396. eval "$1=\$$1\$2"
  24397. }
  24398. _LT_EOF
  24399. ;;
  24400. esac
  24401. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24402. || (rm -f "$cfgfile"; exit 1)
  24403. mv -f "$cfgfile" "$ofile" ||
  24404. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24405. chmod +x "$ofile"
  24406. cat <<_LT_EOF >> "$ofile"
  24407. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24408. # The linker used to build libraries.
  24409. LD=$lt_LD_RC
  24410. # Commands used to build an old-style archive.
  24411. old_archive_cmds=$lt_old_archive_cmds_RC
  24412. # A language specific compiler.
  24413. CC=$lt_compiler_RC
  24414. # Is the compiler the GNU compiler?
  24415. with_gcc=$GCC_RC
  24416. # Compiler flag to turn off builtin functions.
  24417. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24418. # How to pass a linker flag through the compiler.
  24419. wl=$lt_lt_prog_compiler_wl_RC
  24420. # Additional compiler flags for building library objects.
  24421. pic_flag=$lt_lt_prog_compiler_pic_RC
  24422. # Compiler flag to prevent dynamic linking.
  24423. link_static_flag=$lt_lt_prog_compiler_static_RC
  24424. # Does compiler simultaneously support -c and -o options?
  24425. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24426. # Whether or not to add -lc for building shared libraries.
  24427. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24428. # Whether or not to disallow shared libs when runtime libs are static.
  24429. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24430. # Compiler flag to allow reflexive dlopens.
  24431. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24432. # Compiler flag to generate shared objects directly from archives.
  24433. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24434. # Whether the compiler copes with passing no objects directly.
  24435. compiler_needs_object=$lt_compiler_needs_object_RC
  24436. # Create an old-style archive from a shared archive.
  24437. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24438. # Create a temporary old-style archive to link instead of a shared archive.
  24439. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24440. # Commands used to build a shared archive.
  24441. archive_cmds=$lt_archive_cmds_RC
  24442. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24443. # Commands used to build a loadable module if different from building
  24444. # a shared archive.
  24445. module_cmds=$lt_module_cmds_RC
  24446. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24447. # Whether we are building with GNU ld or not.
  24448. with_gnu_ld=$lt_with_gnu_ld_RC
  24449. # Flag that allows shared libraries with undefined symbols to be built.
  24450. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24451. # Flag that enforces no undefined symbols.
  24452. no_undefined_flag=$lt_no_undefined_flag_RC
  24453. # Flag to hardcode \$libdir into a binary during linking.
  24454. # This must work even if \$libdir does not exist
  24455. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24456. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24457. # during linking. This must work even if \$libdir does not exist.
  24458. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  24459. # Whether we need a single "-rpath" flag with a separated argument.
  24460. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24461. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24462. # DIR into the resulting binary.
  24463. hardcode_direct=$hardcode_direct_RC
  24464. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24465. # DIR into the resulting binary and the resulting library dependency is
  24466. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24467. # library is relocated.
  24468. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24469. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24470. # into the resulting binary.
  24471. hardcode_minus_L=$hardcode_minus_L_RC
  24472. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24473. # into the resulting binary.
  24474. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24475. # Set to "yes" if building a shared library automatically hardcodes DIR
  24476. # into the library and all subsequent libraries and executables linked
  24477. # against it.
  24478. hardcode_automatic=$hardcode_automatic_RC
  24479. # Set to yes if linker adds runtime paths of dependent libraries
  24480. # to runtime path list.
  24481. inherit_rpath=$inherit_rpath_RC
  24482. # Whether libtool must link a program against all its dependency libraries.
  24483. link_all_deplibs=$link_all_deplibs_RC
  24484. # Fix the shell variable \$srcfile for the compiler.
  24485. fix_srcfile_path=$lt_fix_srcfile_path_RC
  24486. # Set to "yes" if exported symbols are required.
  24487. always_export_symbols=$always_export_symbols_RC
  24488. # The commands to list exported symbols.
  24489. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24490. # Symbols that should not be listed in the preloaded symbols.
  24491. exclude_expsyms=$lt_exclude_expsyms_RC
  24492. # Symbols that must always be exported.
  24493. include_expsyms=$lt_include_expsyms_RC
  24494. # Commands necessary for linking programs (against libraries) with templates.
  24495. prelink_cmds=$lt_prelink_cmds_RC
  24496. # Specify filename containing input files.
  24497. file_list_spec=$lt_file_list_spec_RC
  24498. # How to hardcode a shared library path into an executable.
  24499. hardcode_action=$hardcode_action_RC
  24500. # ### END LIBTOOL TAG CONFIG: RC
  24501. _LT_EOF
  24502. ;;
  24503. "po-directories":C)
  24504. for ac_file in $CONFIG_FILES; do
  24505. # Support "outfile[:infile[:infile...]]"
  24506. case "$ac_file" in
  24507. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  24508. esac
  24509. # PO directories have a Makefile.in generated from Makefile.in.in.
  24510. case "$ac_file" in */Makefile.in)
  24511. # Adjust a relative srcdir.
  24512. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  24513. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  24514. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  24515. # In autoconf-2.13 it is called $ac_given_srcdir.
  24516. # In autoconf-2.50 it is called $srcdir.
  24517. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  24518. case "$ac_given_srcdir" in
  24519. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  24520. /*) top_srcdir="$ac_given_srcdir" ;;
  24521. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  24522. esac
  24523. # Treat a directory as a PO directory if and only if it has a
  24524. # POTFILES.in file. This allows packages to have multiple PO
  24525. # directories under different names or in different locations.
  24526. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  24527. rm -f "$ac_dir/POTFILES"
  24528. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  24529. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  24530. POMAKEFILEDEPS="POTFILES.in"
  24531. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  24532. # on $ac_dir but don't depend on user-specified configuration
  24533. # parameters.
  24534. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  24535. # The LINGUAS file contains the set of available languages.
  24536. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  24537. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  24538. fi
  24539. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  24540. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  24541. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  24542. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  24543. else
  24544. # The set of available languages was given in configure.in.
  24545. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  24546. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  24547. fi
  24548. # Compute POFILES
  24549. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  24550. # Compute UPDATEPOFILES
  24551. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  24552. # Compute DUMMYPOFILES
  24553. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  24554. # Compute GMOFILES
  24555. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  24556. case "$ac_given_srcdir" in
  24557. .) srcdirpre= ;;
  24558. *) srcdirpre='$(srcdir)/' ;;
  24559. esac
  24560. POFILES=
  24561. UPDATEPOFILES=
  24562. DUMMYPOFILES=
  24563. GMOFILES=
  24564. for lang in $ALL_LINGUAS; do
  24565. POFILES="$POFILES $srcdirpre$lang.po"
  24566. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  24567. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  24568. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  24569. done
  24570. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  24571. # environment variable.
  24572. INST_LINGUAS=
  24573. if test -n "$ALL_LINGUAS"; then
  24574. for presentlang in $ALL_LINGUAS; do
  24575. useit=no
  24576. if test "%UNSET%" != "$LINGUAS"; then
  24577. desiredlanguages="$LINGUAS"
  24578. else
  24579. desiredlanguages="$ALL_LINGUAS"
  24580. fi
  24581. for desiredlang in $desiredlanguages; do
  24582. # Use the presentlang catalog if desiredlang is
  24583. # a. equal to presentlang, or
  24584. # b. a variant of presentlang (because in this case,
  24585. # presentlang can be used as a fallback for messages
  24586. # which are not translated in the desiredlang catalog).
  24587. case "$desiredlang" in
  24588. "$presentlang"*) useit=yes;;
  24589. esac
  24590. done
  24591. if test $useit = yes; then
  24592. INST_LINGUAS="$INST_LINGUAS $presentlang"
  24593. fi
  24594. done
  24595. fi
  24596. CATALOGS=
  24597. if test -n "$INST_LINGUAS"; then
  24598. for lang in $INST_LINGUAS; do
  24599. CATALOGS="$CATALOGS $lang.gmo"
  24600. done
  24601. fi
  24602. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  24603. 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"
  24604. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  24605. if test -f "$f"; then
  24606. case "$f" in
  24607. *.orig | *.bak | *~) ;;
  24608. *) cat "$f" >> "$ac_dir/Makefile" ;;
  24609. esac
  24610. fi
  24611. done
  24612. fi
  24613. ;;
  24614. esac
  24615. done ;;
  24616. esac
  24617. done # for ac_tag
  24618. { (exit 0); exit 0; }
  24619. _ACEOF
  24620. chmod +x $CONFIG_STATUS
  24621. ac_clean_files=$ac_clean_files_save
  24622. test $ac_write_fail = 0 ||
  24623. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  24624. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  24625. { (exit 1); exit 1; }; }
  24626. # configure is writing to config.log, and then calls config.status.
  24627. # config.status does its own redirection, appending to config.log.
  24628. # Unfortunately, on DOS this fails, as config.log is still kept open
  24629. # by configure, so config.status won't be able to write to it; its
  24630. # output is simply discarded. So we exec the FD to /dev/null,
  24631. # effectively closing config.log, so it can be properly (re)opened and
  24632. # appended to by config.status. When coming back to configure, we
  24633. # need to make the FD available again.
  24634. if test "$no_create" != yes; then
  24635. ac_cs_success=:
  24636. ac_config_status_args=
  24637. test "$silent" = yes &&
  24638. ac_config_status_args="$ac_config_status_args --quiet"
  24639. exec 5>/dev/null
  24640. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24641. exec 5>>config.log
  24642. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24643. # would make configure fail if this is the last instruction.
  24644. $ac_cs_success || { (exit 1); exit 1; }
  24645. fi
  24646. #
  24647. # CONFIG_SUBDIRS section.
  24648. #
  24649. if test "$no_recursion" != yes; then
  24650. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  24651. # so they do not pile up.
  24652. ac_sub_configure_args=
  24653. ac_prev=
  24654. eval "set x $ac_configure_args"
  24655. shift
  24656. for ac_arg
  24657. do
  24658. if test -n "$ac_prev"; then
  24659. ac_prev=
  24660. continue
  24661. fi
  24662. case $ac_arg in
  24663. -cache-file | --cache-file | --cache-fil | --cache-fi \
  24664. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  24665. ac_prev=cache_file ;;
  24666. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  24667. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  24668. | --c=*)
  24669. ;;
  24670. --config-cache | -C)
  24671. ;;
  24672. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  24673. ac_prev=srcdir ;;
  24674. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  24675. ;;
  24676. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  24677. ac_prev=prefix ;;
  24678. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  24679. ;;
  24680. --disable-option-checking)
  24681. ;;
  24682. *)
  24683. case $ac_arg in
  24684. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24685. esac
  24686. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  24687. esac
  24688. done
  24689. # Always prepend --prefix to ensure using the same prefix
  24690. # in subdir configurations.
  24691. ac_arg="--prefix=$prefix"
  24692. case $ac_arg in
  24693. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24694. esac
  24695. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  24696. # Pass --silent
  24697. if test "$silent" = yes; then
  24698. ac_sub_configure_args="--silent $ac_sub_configure_args"
  24699. fi
  24700. # Always prepend --disable-option-checking to silence warnings, since
  24701. # different subdirs can have different --enable and --with options.
  24702. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  24703. ac_popdir=`pwd`
  24704. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  24705. # Do not complain, so a configure script can configure whichever
  24706. # parts of a large source tree are present.
  24707. test -d "$srcdir/$ac_dir" || continue
  24708. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  24709. $as_echo "$as_me:$LINENO: $ac_msg" >&5
  24710. $as_echo "$ac_msg" >&6
  24711. { as_dir="$ac_dir"
  24712. case $as_dir in #(
  24713. -*) as_dir=./$as_dir;;
  24714. esac
  24715. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  24716. as_dirs=
  24717. while :; do
  24718. case $as_dir in #(
  24719. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24720. *) as_qdir=$as_dir;;
  24721. esac
  24722. as_dirs="'$as_qdir' $as_dirs"
  24723. as_dir=`$as_dirname -- "$as_dir" ||
  24724. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24725. X"$as_dir" : 'X\(//\)[^/]' \| \
  24726. X"$as_dir" : 'X\(//\)$' \| \
  24727. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24728. $as_echo X"$as_dir" |
  24729. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24730. s//\1/
  24731. q
  24732. }
  24733. /^X\(\/\/\)[^/].*/{
  24734. s//\1/
  24735. q
  24736. }
  24737. /^X\(\/\/\)$/{
  24738. s//\1/
  24739. q
  24740. }
  24741. /^X\(\/\).*/{
  24742. s//\1/
  24743. q
  24744. }
  24745. s/.*/./; q'`
  24746. test -d "$as_dir" && break
  24747. done
  24748. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24749. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  24750. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  24751. { (exit 1); exit 1; }; }; }
  24752. ac_builddir=.
  24753. case "$ac_dir" in
  24754. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24755. *)
  24756. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24757. # A ".." for each directory in $ac_dir_suffix.
  24758. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24759. case $ac_top_builddir_sub in
  24760. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24761. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24762. esac ;;
  24763. esac
  24764. ac_abs_top_builddir=$ac_pwd
  24765. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24766. # for backward compatibility:
  24767. ac_top_builddir=$ac_top_build_prefix
  24768. case $srcdir in
  24769. .) # We are building in place.
  24770. ac_srcdir=.
  24771. ac_top_srcdir=$ac_top_builddir_sub
  24772. ac_abs_top_srcdir=$ac_pwd ;;
  24773. [\\/]* | ?:[\\/]* ) # Absolute name.
  24774. ac_srcdir=$srcdir$ac_dir_suffix;
  24775. ac_top_srcdir=$srcdir
  24776. ac_abs_top_srcdir=$srcdir ;;
  24777. *) # Relative name.
  24778. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24779. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24780. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24781. esac
  24782. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24783. cd "$ac_dir"
  24784. # Check for guested configure; otherwise get Cygnus style configure.
  24785. if test -f "$ac_srcdir/configure.gnu"; then
  24786. ac_sub_configure=$ac_srcdir/configure.gnu
  24787. elif test -f "$ac_srcdir/configure"; then
  24788. ac_sub_configure=$ac_srcdir/configure
  24789. elif test -f "$ac_srcdir/configure.in"; then
  24790. # This should be Cygnus configure.
  24791. ac_sub_configure=$ac_aux_dir/configure
  24792. else
  24793. { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  24794. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  24795. ac_sub_configure=
  24796. fi
  24797. # The recursion is here.
  24798. if test -n "$ac_sub_configure"; then
  24799. # Make the cache file name correct relative to the subdirectory.
  24800. case $cache_file in
  24801. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  24802. *) # Relative name.
  24803. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  24804. esac
  24805. { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  24806. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  24807. # The eval makes quoting arguments work.
  24808. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  24809. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  24810. { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  24811. $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  24812. { (exit 1); exit 1; }; }
  24813. fi
  24814. cd "$ac_popdir"
  24815. done
  24816. fi
  24817. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24818. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24819. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24820. fi