configure 640 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.13.2rc.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.13.2rc'
  496. PACKAGE_STRING='aria2c 0.13.2rc'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. CYGPATH_W
  590. PACKAGE
  591. VERSION
  592. ACLOCAL
  593. AUTOCONF
  594. AUTOMAKE
  595. AUTOHEADER
  596. MAKEINFO
  597. install_sh
  598. STRIP
  599. INSTALL_STRIP_PROGRAM
  600. mkdir_p
  601. AWK
  602. SET_MAKE
  603. am__leading_dot
  604. AMTAR
  605. am__tar
  606. am__untar
  607. CPPUNIT_CONFIG
  608. CPPUNIT_CFLAGS
  609. CPPUNIT_LIBS
  610. WINSOCK_LIBS
  611. CXX
  612. CXXFLAGS
  613. LDFLAGS
  614. CPPFLAGS
  615. ac_ct_CXX
  616. EXEEXT
  617. OBJEXT
  618. DEPDIR
  619. am__include
  620. am__quote
  621. AMDEP_TRUE
  622. AMDEP_FALSE
  623. AMDEPBACKSLASH
  624. CXXDEPMODE
  625. am__fastdepCXX_TRUE
  626. am__fastdepCXX_FALSE
  627. CC
  628. CFLAGS
  629. ac_ct_CC
  630. CCDEPMODE
  631. am__fastdepCC_TRUE
  632. am__fastdepCC_FALSE
  633. RANLIB
  634. YACC
  635. YFLAGS
  636. CXXCPP
  637. GREP
  638. EGREP
  639. XML2_CONFIG
  640. XML_CPPFLAGS
  641. XML_LIBS
  642. LIBEXPAT_LIBS
  643. LIBEXPAT_CPPFLAGS
  644. LIBGNUTLS_CONFIG
  645. LIBGNUTLS_CFLAGS
  646. LIBGNUTLS_LIBS
  647. LIBGCRYPT_CONFIG
  648. LIBGCRYPT_CFLAGS
  649. LIBGCRYPT_LIBS
  650. OPENSSL_LIBS
  651. OPENSSL_CFLAGS
  652. LIBCARES_LIBS
  653. LIBCARES_CPPFLAGS
  654. LIBARES_LIBS
  655. LIBARES_CPPFLAGS
  656. ENABLE_MESSAGE_DIGEST_TRUE
  657. ENABLE_MESSAGE_DIGEST_FALSE
  658. ENABLE_BITTORRENT_TRUE
  659. ENABLE_BITTORRENT_FALSE
  660. ENABLE_METALINK_TRUE
  661. ENABLE_METALINK_FALSE
  662. ENABLE_LIBXML2_TRUE
  663. ENABLE_LIBXML2_FALSE
  664. ENABLE_LIBEXPAT_TRUE
  665. ENABLE_LIBEXPAT_FALSE
  666. ENABLE_ASYNC_DNS_TRUE
  667. ENABLE_ASYNC_DNS_FALSE
  668. ALLOCA
  669. USE_NLS
  670. GETTEXT_MACRO_VERSION
  671. MSGFMT
  672. GMSGFMT
  673. MSGFMT_015
  674. GMSGFMT_015
  675. XGETTEXT
  676. XGETTEXT_015
  677. MSGMERGE
  678. XGETTEXT_EXTRA_OPTIONS
  679. GLIBC2
  680. CFLAG_VISIBILITY
  681. HAVE_VISIBILITY
  682. PRI_MACROS_BROKEN
  683. LIBPTH
  684. LTLIBPTH
  685. LIBPTH_PREFIX
  686. LIBTHREAD
  687. LTLIBTHREAD
  688. LIBMULTITHREAD
  689. LTLIBMULTITHREAD
  690. LIBICONV
  691. LTLIBICONV
  692. INTLBISON
  693. GLIBC21
  694. INTL_MACOSX_LIBS
  695. HAVE_POSIX_PRINTF
  696. HAVE_ASPRINTF
  697. HAVE_SNPRINTF
  698. HAVE_WPRINTF
  699. WOE32DLL
  700. WOE32
  701. WINDRES
  702. LTLIBC
  703. BUILD_INCLUDED_LIBINTL
  704. USE_INCLUDED_LIBINTL
  705. CATOBJEXT
  706. DATADIRNAME
  707. INSTOBJEXT
  708. GENCAT
  709. INTLOBJS
  710. INTL_LIBTOOL_SUFFIX_PREFIX
  711. INTLLIBS
  712. LIBINTL
  713. LTLIBINTL
  714. POSUB
  715. LIBOBJS
  716. HAVE_BASENAME_TRUE
  717. HAVE_BASENAME_FALSE
  718. HAVE_GAI_STRERROR_TRUE
  719. HAVE_GAI_STRERROR_FALSE
  720. HAVE_GETADDRINFO_TRUE
  721. HAVE_GETADDRINFO_FALSE
  722. HAVE_GETTIMEOFDAY_TRUE
  723. HAVE_GETTIMEOFDAY_FALSE
  724. HAVE_INET_ATON_TRUE
  725. HAVE_INET_ATON_FALSE
  726. HAVE_LOCALTIME_R_TRUE
  727. HAVE_LOCALTIME_R_FALSE
  728. HAVE_STRPTIME_TRUE
  729. HAVE_STRPTIME_FALSE
  730. HAVE_TIMEGM_TRUE
  731. HAVE_TIMEGM_FALSE
  732. LTLIBOBJS'
  733. ac_subst_files=''
  734. ac_precious_vars='build_alias
  735. host_alias
  736. target_alias
  737. CXX
  738. CXXFLAGS
  739. LDFLAGS
  740. LIBS
  741. CPPFLAGS
  742. CCC
  743. CC
  744. CFLAGS
  745. YACC
  746. YFLAGS
  747. CXXCPP'
  748. # Initialize some variables set by options.
  749. ac_init_help=
  750. ac_init_version=false
  751. # The variables have the same names as the options, with
  752. # dashes changed to underlines.
  753. cache_file=/dev/null
  754. exec_prefix=NONE
  755. no_create=
  756. no_recursion=
  757. prefix=NONE
  758. program_prefix=NONE
  759. program_suffix=NONE
  760. program_transform_name=s,x,x,
  761. silent=
  762. site=
  763. srcdir=
  764. verbose=
  765. x_includes=NONE
  766. x_libraries=NONE
  767. # Installation directory options.
  768. # These are left unexpanded so users can "make install exec_prefix=/foo"
  769. # and all the variables that are supposed to be based on exec_prefix
  770. # by default will actually change.
  771. # Use braces instead of parens because sh, perl, etc. also accept them.
  772. # (The list follows the same order as the GNU Coding Standards.)
  773. bindir='${exec_prefix}/bin'
  774. sbindir='${exec_prefix}/sbin'
  775. libexecdir='${exec_prefix}/libexec'
  776. datarootdir='${prefix}/share'
  777. datadir='${datarootdir}'
  778. sysconfdir='${prefix}/etc'
  779. sharedstatedir='${prefix}/com'
  780. localstatedir='${prefix}/var'
  781. includedir='${prefix}/include'
  782. oldincludedir='/usr/include'
  783. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  784. infodir='${datarootdir}/info'
  785. htmldir='${docdir}'
  786. dvidir='${docdir}'
  787. pdfdir='${docdir}'
  788. psdir='${docdir}'
  789. libdir='${exec_prefix}/lib'
  790. localedir='${datarootdir}/locale'
  791. mandir='${datarootdir}/man'
  792. ac_prev=
  793. ac_dashdash=
  794. for ac_option
  795. do
  796. # If the previous option needs an argument, assign it.
  797. if test -n "$ac_prev"; then
  798. eval $ac_prev=\$ac_option
  799. ac_prev=
  800. continue
  801. fi
  802. case $ac_option in
  803. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  840. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  841. { (exit 1); exit 1; }; }
  842. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  843. eval enable_$ac_feature=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  856. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  857. { (exit 1); exit 1; }; }
  858. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  859. eval enable_$ac_feature=\$ac_optarg ;;
  860. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  861. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  862. | --exec | --exe | --ex)
  863. ac_prev=exec_prefix ;;
  864. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  865. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  866. | --exec=* | --exe=* | --ex=*)
  867. exec_prefix=$ac_optarg ;;
  868. -gas | --gas | --ga | --g)
  869. # Obsolete; use --with-gas.
  870. with_gas=yes ;;
  871. -help | --help | --hel | --he | -h)
  872. ac_init_help=long ;;
  873. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  874. ac_init_help=recursive ;;
  875. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  876. ac_init_help=short ;;
  877. -host | --host | --hos | --ho)
  878. ac_prev=host_alias ;;
  879. -host=* | --host=* | --hos=* | --ho=*)
  880. host_alias=$ac_optarg ;;
  881. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  882. ac_prev=htmldir ;;
  883. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  884. | --ht=*)
  885. htmldir=$ac_optarg ;;
  886. -includedir | --includedir | --includedi | --included | --include \
  887. | --includ | --inclu | --incl | --inc)
  888. ac_prev=includedir ;;
  889. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  890. | --includ=* | --inclu=* | --incl=* | --inc=*)
  891. includedir=$ac_optarg ;;
  892. -infodir | --infodir | --infodi | --infod | --info | --inf)
  893. ac_prev=infodir ;;
  894. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  895. infodir=$ac_optarg ;;
  896. -libdir | --libdir | --libdi | --libd)
  897. ac_prev=libdir ;;
  898. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  899. libdir=$ac_optarg ;;
  900. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  901. | --libexe | --libex | --libe)
  902. ac_prev=libexecdir ;;
  903. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  904. | --libexe=* | --libex=* | --libe=*)
  905. libexecdir=$ac_optarg ;;
  906. -localedir | --localedir | --localedi | --localed | --locale)
  907. ac_prev=localedir ;;
  908. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  909. localedir=$ac_optarg ;;
  910. -localstatedir | --localstatedir | --localstatedi | --localstated \
  911. | --localstate | --localstat | --localsta | --localst | --locals)
  912. ac_prev=localstatedir ;;
  913. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  914. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  915. localstatedir=$ac_optarg ;;
  916. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  917. ac_prev=mandir ;;
  918. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  919. mandir=$ac_optarg ;;
  920. -nfp | --nfp | --nf)
  921. # Obsolete; use --without-fp.
  922. with_fp=no ;;
  923. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  924. | --no-cr | --no-c | -n)
  925. no_create=yes ;;
  926. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  927. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  928. no_recursion=yes ;;
  929. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  930. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  931. | --oldin | --oldi | --old | --ol | --o)
  932. ac_prev=oldincludedir ;;
  933. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  934. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  935. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  936. oldincludedir=$ac_optarg ;;
  937. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  938. ac_prev=prefix ;;
  939. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  940. prefix=$ac_optarg ;;
  941. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  942. | --program-pre | --program-pr | --program-p)
  943. ac_prev=program_prefix ;;
  944. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  945. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  946. program_prefix=$ac_optarg ;;
  947. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  948. | --program-suf | --program-su | --program-s)
  949. ac_prev=program_suffix ;;
  950. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  951. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  952. program_suffix=$ac_optarg ;;
  953. -program-transform-name | --program-transform-name \
  954. | --program-transform-nam | --program-transform-na \
  955. | --program-transform-n | --program-transform- \
  956. | --program-transform | --program-transfor \
  957. | --program-transfo | --program-transf \
  958. | --program-trans | --program-tran \
  959. | --progr-tra | --program-tr | --program-t)
  960. ac_prev=program_transform_name ;;
  961. -program-transform-name=* | --program-transform-name=* \
  962. | --program-transform-nam=* | --program-transform-na=* \
  963. | --program-transform-n=* | --program-transform-=* \
  964. | --program-transform=* | --program-transfor=* \
  965. | --program-transfo=* | --program-transf=* \
  966. | --program-trans=* | --program-tran=* \
  967. | --progr-tra=* | --program-tr=* | --program-t=*)
  968. program_transform_name=$ac_optarg ;;
  969. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  970. ac_prev=pdfdir ;;
  971. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  972. pdfdir=$ac_optarg ;;
  973. -psdir | --psdir | --psdi | --psd | --ps)
  974. ac_prev=psdir ;;
  975. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  976. psdir=$ac_optarg ;;
  977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  978. | -silent | --silent | --silen | --sile | --sil)
  979. silent=yes ;;
  980. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  981. ac_prev=sbindir ;;
  982. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  983. | --sbi=* | --sb=*)
  984. sbindir=$ac_optarg ;;
  985. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  986. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  987. | --sharedst | --shareds | --shared | --share | --shar \
  988. | --sha | --sh)
  989. ac_prev=sharedstatedir ;;
  990. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  991. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  992. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  993. | --sha=* | --sh=*)
  994. sharedstatedir=$ac_optarg ;;
  995. -site | --site | --sit)
  996. ac_prev=site ;;
  997. -site=* | --site=* | --sit=*)
  998. site=$ac_optarg ;;
  999. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1000. ac_prev=srcdir ;;
  1001. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1002. srcdir=$ac_optarg ;;
  1003. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1004. | --syscon | --sysco | --sysc | --sys | --sy)
  1005. ac_prev=sysconfdir ;;
  1006. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1007. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1008. sysconfdir=$ac_optarg ;;
  1009. -target | --target | --targe | --targ | --tar | --ta | --t)
  1010. ac_prev=target_alias ;;
  1011. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1012. target_alias=$ac_optarg ;;
  1013. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1014. verbose=yes ;;
  1015. -version | --version | --versio | --versi | --vers | -V)
  1016. ac_init_version=: ;;
  1017. -with-* | --with-*)
  1018. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1021. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1022. { (exit 1); exit 1; }; }
  1023. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1024. eval with_$ac_package=\$ac_optarg ;;
  1025. -without-* | --without-*)
  1026. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1029. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1030. { (exit 1); exit 1; }; }
  1031. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1032. eval with_$ac_package=no ;;
  1033. --x)
  1034. # Obsolete; use --with-x.
  1035. with_x=yes ;;
  1036. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1037. | --x-incl | --x-inc | --x-in | --x-i)
  1038. ac_prev=x_includes ;;
  1039. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1040. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1041. x_includes=$ac_optarg ;;
  1042. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1043. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1044. ac_prev=x_libraries ;;
  1045. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1046. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1047. x_libraries=$ac_optarg ;;
  1048. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1049. Try \`$0 --help' for more information." >&2
  1050. { (exit 1); exit 1; }; }
  1051. ;;
  1052. *=*)
  1053. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1054. # Reject names that are not valid shell variable names.
  1055. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1056. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1057. { (exit 1); exit 1; }; }
  1058. eval $ac_envvar=\$ac_optarg
  1059. export $ac_envvar ;;
  1060. *)
  1061. # FIXME: should be removed in autoconf 3.0.
  1062. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1063. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1064. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1065. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1066. ;;
  1067. esac
  1068. done
  1069. if test -n "$ac_prev"; then
  1070. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1071. { echo "$as_me: error: missing argument to $ac_option" >&2
  1072. { (exit 1); exit 1; }; }
  1073. fi
  1074. # Be sure to have absolute directory names.
  1075. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1076. datadir sysconfdir sharedstatedir localstatedir includedir \
  1077. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1078. libdir localedir mandir
  1079. do
  1080. eval ac_val=\$$ac_var
  1081. case $ac_val in
  1082. [\\/$]* | ?:[\\/]* ) continue;;
  1083. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1084. esac
  1085. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1086. { (exit 1); exit 1; }; }
  1087. done
  1088. # There might be people who depend on the old broken behavior: `$host'
  1089. # used to hold the argument of --host etc.
  1090. # FIXME: To remove some day.
  1091. build=$build_alias
  1092. host=$host_alias
  1093. target=$target_alias
  1094. # FIXME: To remove some day.
  1095. if test "x$host_alias" != x; then
  1096. if test "x$build_alias" = x; then
  1097. cross_compiling=maybe
  1098. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1099. If a cross compiler is detected then cross compile mode will be used." >&2
  1100. elif test "x$build_alias" != "x$host_alias"; then
  1101. cross_compiling=yes
  1102. fi
  1103. fi
  1104. ac_tool_prefix=
  1105. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1106. test "$silent" = yes && exec 6>/dev/null
  1107. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1108. ac_ls_di=`ls -di .` &&
  1109. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1110. { echo "$as_me: error: Working directory cannot be determined" >&2
  1111. { (exit 1); exit 1; }; }
  1112. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1113. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1114. { (exit 1); exit 1; }; }
  1115. # Find the source files, if location was not specified.
  1116. if test -z "$srcdir"; then
  1117. ac_srcdir_defaulted=yes
  1118. # Try the directory containing this script, then the parent directory.
  1119. ac_confdir=`$as_dirname -- "$0" ||
  1120. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1121. X"$0" : 'X\(//\)[^/]' \| \
  1122. X"$0" : 'X\(//\)$' \| \
  1123. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1124. echo X"$0" |
  1125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1126. s//\1/
  1127. q
  1128. }
  1129. /^X\(\/\/\)[^/].*/{
  1130. s//\1/
  1131. q
  1132. }
  1133. /^X\(\/\/\)$/{
  1134. s//\1/
  1135. q
  1136. }
  1137. /^X\(\/\).*/{
  1138. s//\1/
  1139. q
  1140. }
  1141. s/.*/./; q'`
  1142. srcdir=$ac_confdir
  1143. if test ! -r "$srcdir/$ac_unique_file"; then
  1144. srcdir=..
  1145. fi
  1146. else
  1147. ac_srcdir_defaulted=no
  1148. fi
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1151. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1155. ac_abs_confdir=`(
  1156. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1157. { (exit 1); exit 1; }; }
  1158. pwd)`
  1159. # When building in place, set srcdir=.
  1160. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1161. srcdir=.
  1162. fi
  1163. # Remove unnecessary trailing slashes from srcdir.
  1164. # Double slashes in file names in object file debugging info
  1165. # mess up M-x gdb in Emacs.
  1166. case $srcdir in
  1167. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1168. esac
  1169. for ac_var in $ac_precious_vars; do
  1170. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_env_${ac_var}_value=\$${ac_var}
  1172. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1173. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1174. done
  1175. #
  1176. # Report the --help message.
  1177. #
  1178. if test "$ac_init_help" = "long"; then
  1179. # Omit some internal or obsolete options to make the list less imposing.
  1180. # This message is too long to be a string in the A/UX 3.1 sh.
  1181. cat <<_ACEOF
  1182. \`configure' configures aria2c 0.13.2rc to adapt to many kinds of systems.
  1183. Usage: $0 [OPTION]... [VAR=VALUE]...
  1184. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1185. VAR=VALUE. See below for descriptions of some of the useful variables.
  1186. Defaults for the options are specified in brackets.
  1187. Configuration:
  1188. -h, --help display this help and exit
  1189. --help=short display options specific to this package
  1190. --help=recursive display the short help of all the included packages
  1191. -V, --version display version information and exit
  1192. -q, --quiet, --silent do not print \`checking...' messages
  1193. --cache-file=FILE cache test results in FILE [disabled]
  1194. -C, --config-cache alias for \`--cache-file=config.cache'
  1195. -n, --no-create do not create output files
  1196. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1197. Installation directories:
  1198. --prefix=PREFIX install architecture-independent files in PREFIX
  1199. [$ac_default_prefix]
  1200. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1201. [PREFIX]
  1202. By default, \`make install' will install all the files in
  1203. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1204. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1205. for instance \`--prefix=\$HOME'.
  1206. For better control, use the options below.
  1207. Fine tuning of the installation directories:
  1208. --bindir=DIR user executables [EPREFIX/bin]
  1209. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1210. --libexecdir=DIR program executables [EPREFIX/libexec]
  1211. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1212. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1213. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1214. --libdir=DIR object code libraries [EPREFIX/lib]
  1215. --includedir=DIR C header files [PREFIX/include]
  1216. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1217. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1218. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1219. --infodir=DIR info documentation [DATAROOTDIR/info]
  1220. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1221. --mandir=DIR man documentation [DATAROOTDIR/man]
  1222. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1223. --htmldir=DIR html documentation [DOCDIR]
  1224. --dvidir=DIR dvi documentation [DOCDIR]
  1225. --pdfdir=DIR pdf documentation [DOCDIR]
  1226. --psdir=DIR ps documentation [DOCDIR]
  1227. _ACEOF
  1228. cat <<\_ACEOF
  1229. Program names:
  1230. --program-prefix=PREFIX prepend PREFIX to installed program names
  1231. --program-suffix=SUFFIX append SUFFIX to installed program names
  1232. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1233. System types:
  1234. --build=BUILD configure for building on BUILD [guessed]
  1235. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1236. --target=TARGET configure for building compilers for TARGET [HOST]
  1237. _ACEOF
  1238. fi
  1239. if test -n "$ac_init_help"; then
  1240. case $ac_init_help in
  1241. short | recursive ) echo "Configuration of aria2c 0.13.2rc:";;
  1242. esac
  1243. cat <<\_ACEOF
  1244. Optional Features:
  1245. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1246. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1247. --enable-bittorrent enable BitTorrent support. Default: yes
  1248. --enable-metalink enable Metalink support. Default: yes
  1249. --disable-dependency-tracking speeds up one-time build
  1250. --enable-dependency-tracking do not reject slow dependency extractors
  1251. --disable-xmltest Do not try to compile and run a test LIBXML program
  1252. --disable-largefile omit support for large files
  1253. --disable-nls do not use Native Language Support
  1254. --enable-threads={posix|solaris|pth|win32}
  1255. specify multithreading API
  1256. --disable-threads build without multithread safety
  1257. --disable-rpath do not hardcode runtime library paths
  1258. Optional Packages:
  1259. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1260. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1261. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1262. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1263. --with-gnutls use gnutls library if installed. Default: yes
  1264. --with-openssl use openssl library if installed. Default: yes
  1265. --with-libxml2 use libxml2 library if installed. Default: yes
  1266. --with-libexpat use libexpat library if installed. Default: yes
  1267. --with-libares use ares library if installed. Default: yes
  1268. --with-libcares use c-ares library if installed. Default: yes
  1269. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1270. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1271. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1272. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1273. --with-libgcrypt-prefix=PFX
  1274. prefix where LIBGCRYPT is installed (optional)
  1275. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1276. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1277. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1278. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1279. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1280. --without-libpth-prefix don't search for libpth in includedir and libdir
  1281. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1282. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1283. --with-included-gettext use the GNU gettext library included here
  1284. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1285. --without-libintl-prefix don't search for libintl in includedir and libdir
  1286. Some influential environment variables:
  1287. CXX C++ compiler command
  1288. CXXFLAGS C++ compiler flags
  1289. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1290. nonstandard directory <lib dir>
  1291. LIBS libraries to pass to the linker, e.g. -l<library>
  1292. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1293. you have headers in a nonstandard directory <include dir>
  1294. CC C compiler command
  1295. CFLAGS C compiler flags
  1296. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1297. the first program found out of: `bison -y', `byacc', `yacc'.
  1298. YFLAGS The list of arguments that will be passed by default to $YACC.
  1299. This script will default YFLAGS to the empty string to avoid a
  1300. default value of `-d' given by some make applications.
  1301. CXXCPP C++ preprocessor
  1302. Use these variables to override the choices made by `configure' or to help
  1303. it to find libraries and programs with nonstandard names/locations.
  1304. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1305. _ACEOF
  1306. ac_status=$?
  1307. fi
  1308. if test "$ac_init_help" = "recursive"; then
  1309. # If there are subdirs, report their specific --help.
  1310. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1311. test -d "$ac_dir" || continue
  1312. ac_builddir=.
  1313. case "$ac_dir" in
  1314. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1315. *)
  1316. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1317. # A ".." for each directory in $ac_dir_suffix.
  1318. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1319. case $ac_top_builddir_sub in
  1320. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1322. esac ;;
  1323. esac
  1324. ac_abs_top_builddir=$ac_pwd
  1325. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1326. # for backward compatibility:
  1327. ac_top_builddir=$ac_top_build_prefix
  1328. case $srcdir in
  1329. .) # We are building in place.
  1330. ac_srcdir=.
  1331. ac_top_srcdir=$ac_top_builddir_sub
  1332. ac_abs_top_srcdir=$ac_pwd ;;
  1333. [\\/]* | ?:[\\/]* ) # Absolute name.
  1334. ac_srcdir=$srcdir$ac_dir_suffix;
  1335. ac_top_srcdir=$srcdir
  1336. ac_abs_top_srcdir=$srcdir ;;
  1337. *) # Relative name.
  1338. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1339. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1340. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1341. esac
  1342. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1343. cd "$ac_dir" || { ac_status=$?; continue; }
  1344. # Check for guested configure.
  1345. if test -f "$ac_srcdir/configure.gnu"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1348. elif test -f "$ac_srcdir/configure"; then
  1349. echo &&
  1350. $SHELL "$ac_srcdir/configure" --help=recursive
  1351. else
  1352. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1353. fi || ac_status=$?
  1354. cd "$ac_pwd" || { ac_status=$?; break; }
  1355. done
  1356. fi
  1357. test -n "$ac_init_help" && exit $ac_status
  1358. if $ac_init_version; then
  1359. cat <<\_ACEOF
  1360. aria2c configure 0.13.2rc
  1361. generated by GNU Autoconf 2.61
  1362. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1363. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1364. This configure script is free software; the Free Software Foundation
  1365. gives unlimited permission to copy, distribute and modify it.
  1366. _ACEOF
  1367. exit
  1368. fi
  1369. cat >config.log <<_ACEOF
  1370. This file contains any messages produced by compilers while
  1371. running configure, to aid debugging if configure makes a mistake.
  1372. It was created by aria2c $as_me 0.13.2rc, which was
  1373. generated by GNU Autoconf 2.61. Invocation command line was
  1374. $ $0 $@
  1375. _ACEOF
  1376. exec 5>>config.log
  1377. {
  1378. cat <<_ASUNAME
  1379. ## --------- ##
  1380. ## Platform. ##
  1381. ## --------- ##
  1382. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1383. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1384. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1385. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1386. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1387. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1388. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1389. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1390. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1391. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1392. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1393. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1394. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1395. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1396. _ASUNAME
  1397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1398. for as_dir in $PATH
  1399. do
  1400. IFS=$as_save_IFS
  1401. test -z "$as_dir" && as_dir=.
  1402. echo "PATH: $as_dir"
  1403. done
  1404. IFS=$as_save_IFS
  1405. } >&5
  1406. cat >&5 <<_ACEOF
  1407. ## ----------- ##
  1408. ## Core tests. ##
  1409. ## ----------- ##
  1410. _ACEOF
  1411. # Keep a trace of the command line.
  1412. # Strip out --no-create and --no-recursion so they do not pile up.
  1413. # Strip out --silent because we don't want to record it for future runs.
  1414. # Also quote any args containing shell meta-characters.
  1415. # Make two passes to allow for proper duplicate-argument suppression.
  1416. ac_configure_args=
  1417. ac_configure_args0=
  1418. ac_configure_args1=
  1419. ac_must_keep_next=false
  1420. for ac_pass in 1 2
  1421. do
  1422. for ac_arg
  1423. do
  1424. case $ac_arg in
  1425. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1426. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1427. | -silent | --silent | --silen | --sile | --sil)
  1428. continue ;;
  1429. *\'*)
  1430. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1431. esac
  1432. case $ac_pass in
  1433. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1434. 2)
  1435. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1436. if test $ac_must_keep_next = true; then
  1437. ac_must_keep_next=false # Got value, back to normal.
  1438. else
  1439. case $ac_arg in
  1440. *=* | --config-cache | -C | -disable-* | --disable-* \
  1441. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1442. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1443. | -with-* | --with-* | -without-* | --without-* | --x)
  1444. case "$ac_configure_args0 " in
  1445. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1446. esac
  1447. ;;
  1448. -* ) ac_must_keep_next=true ;;
  1449. esac
  1450. fi
  1451. ac_configure_args="$ac_configure_args '$ac_arg'"
  1452. ;;
  1453. esac
  1454. done
  1455. done
  1456. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1457. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1458. # When interrupted or exit'd, cleanup temporary files, and complete
  1459. # config.log. We remove comments because anyway the quotes in there
  1460. # would cause problems or look ugly.
  1461. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1462. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1463. trap 'exit_status=$?
  1464. # Save into config.log some information that might help in debugging.
  1465. {
  1466. echo
  1467. cat <<\_ASBOX
  1468. ## ---------------- ##
  1469. ## Cache variables. ##
  1470. ## ---------------- ##
  1471. _ASBOX
  1472. echo
  1473. # The following way of writing the cache mishandles newlines in values,
  1474. (
  1475. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1476. eval ac_val=\$$ac_var
  1477. case $ac_val in #(
  1478. *${as_nl}*)
  1479. case $ac_var in #(
  1480. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1481. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1482. esac
  1483. case $ac_var in #(
  1484. _ | IFS | as_nl) ;; #(
  1485. *) $as_unset $ac_var ;;
  1486. esac ;;
  1487. esac
  1488. done
  1489. (set) 2>&1 |
  1490. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1491. *${as_nl}ac_space=\ *)
  1492. sed -n \
  1493. "s/'\''/'\''\\\\'\'''\''/g;
  1494. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1495. ;; #(
  1496. *)
  1497. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1498. ;;
  1499. esac |
  1500. sort
  1501. )
  1502. echo
  1503. cat <<\_ASBOX
  1504. ## ----------------- ##
  1505. ## Output variables. ##
  1506. ## ----------------- ##
  1507. _ASBOX
  1508. echo
  1509. for ac_var in $ac_subst_vars
  1510. do
  1511. eval ac_val=\$$ac_var
  1512. case $ac_val in
  1513. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1514. esac
  1515. echo "$ac_var='\''$ac_val'\''"
  1516. done | sort
  1517. echo
  1518. if test -n "$ac_subst_files"; then
  1519. cat <<\_ASBOX
  1520. ## ------------------- ##
  1521. ## File substitutions. ##
  1522. ## ------------------- ##
  1523. _ASBOX
  1524. echo
  1525. for ac_var in $ac_subst_files
  1526. do
  1527. eval ac_val=\$$ac_var
  1528. case $ac_val in
  1529. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1530. esac
  1531. echo "$ac_var='\''$ac_val'\''"
  1532. done | sort
  1533. echo
  1534. fi
  1535. if test -s confdefs.h; then
  1536. cat <<\_ASBOX
  1537. ## ----------- ##
  1538. ## confdefs.h. ##
  1539. ## ----------- ##
  1540. _ASBOX
  1541. echo
  1542. cat confdefs.h
  1543. echo
  1544. fi
  1545. test "$ac_signal" != 0 &&
  1546. echo "$as_me: caught signal $ac_signal"
  1547. echo "$as_me: exit $exit_status"
  1548. } >&5
  1549. rm -f core *.core core.conftest.* &&
  1550. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1551. exit $exit_status
  1552. ' 0
  1553. for ac_signal in 1 2 13 15; do
  1554. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1555. done
  1556. ac_signal=0
  1557. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1558. rm -f -r conftest* confdefs.h
  1559. # Predefined preprocessor variables.
  1560. cat >>confdefs.h <<_ACEOF
  1561. #define PACKAGE_NAME "$PACKAGE_NAME"
  1562. _ACEOF
  1563. cat >>confdefs.h <<_ACEOF
  1564. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1565. _ACEOF
  1566. cat >>confdefs.h <<_ACEOF
  1567. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1568. _ACEOF
  1569. cat >>confdefs.h <<_ACEOF
  1570. #define PACKAGE_STRING "$PACKAGE_STRING"
  1571. _ACEOF
  1572. cat >>confdefs.h <<_ACEOF
  1573. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1574. _ACEOF
  1575. # Let the site file select an alternate cache file if it wants to.
  1576. # Prefer explicitly selected file to automatically selected ones.
  1577. if test -n "$CONFIG_SITE"; then
  1578. set x "$CONFIG_SITE"
  1579. elif test "x$prefix" != xNONE; then
  1580. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1581. else
  1582. set x "$ac_default_prefix/share/config.site" \
  1583. "$ac_default_prefix/etc/config.site"
  1584. fi
  1585. shift
  1586. for ac_site_file
  1587. do
  1588. if test -r "$ac_site_file"; then
  1589. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1590. echo "$as_me: loading site script $ac_site_file" >&6;}
  1591. sed 's/^/| /' "$ac_site_file" >&5
  1592. . "$ac_site_file"
  1593. fi
  1594. done
  1595. if test -r "$cache_file"; then
  1596. # Some versions of bash will fail to source /dev/null (special
  1597. # files actually), so we avoid doing that.
  1598. if test -f "$cache_file"; then
  1599. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1600. echo "$as_me: loading cache $cache_file" >&6;}
  1601. case $cache_file in
  1602. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1603. *) . "./$cache_file";;
  1604. esac
  1605. fi
  1606. else
  1607. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1608. echo "$as_me: creating cache $cache_file" >&6;}
  1609. >$cache_file
  1610. fi
  1611. gt_needs="$gt_needs "
  1612. ac_header_list="$ac_header_list sys/time.h"
  1613. ac_header_list="$ac_header_list unistd.h"
  1614. ac_func_list="$ac_func_list alarm"
  1615. # Check that the precious variables saved in the cache have kept the same
  1616. # value.
  1617. ac_cache_corrupted=false
  1618. for ac_var in $ac_precious_vars; do
  1619. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1620. eval ac_new_set=\$ac_env_${ac_var}_set
  1621. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1622. eval ac_new_val=\$ac_env_${ac_var}_value
  1623. case $ac_old_set,$ac_new_set in
  1624. set,)
  1625. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1626. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1627. ac_cache_corrupted=: ;;
  1628. ,set)
  1629. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1630. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1631. ac_cache_corrupted=: ;;
  1632. ,);;
  1633. *)
  1634. if test "x$ac_old_val" != "x$ac_new_val"; then
  1635. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1636. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1637. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1638. echo "$as_me: former value: $ac_old_val" >&2;}
  1639. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1640. echo "$as_me: current value: $ac_new_val" >&2;}
  1641. ac_cache_corrupted=:
  1642. fi;;
  1643. esac
  1644. # Pass precious variables to config.status.
  1645. if test "$ac_new_set" = set; then
  1646. case $ac_new_val in
  1647. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1648. *) ac_arg=$ac_var=$ac_new_val ;;
  1649. esac
  1650. case " $ac_configure_args " in
  1651. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1652. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1653. esac
  1654. fi
  1655. done
  1656. if $ac_cache_corrupted; then
  1657. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1658. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1659. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1660. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1661. { (exit 1); exit 1; }; }
  1662. fi
  1663. ac_ext=c
  1664. ac_cpp='$CPP $CPPFLAGS'
  1665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1668. ac_aux_dir=
  1669. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1670. if test -f "$ac_dir/install-sh"; then
  1671. ac_aux_dir=$ac_dir
  1672. ac_install_sh="$ac_aux_dir/install-sh -c"
  1673. break
  1674. elif test -f "$ac_dir/install.sh"; then
  1675. ac_aux_dir=$ac_dir
  1676. ac_install_sh="$ac_aux_dir/install.sh -c"
  1677. break
  1678. elif test -f "$ac_dir/shtool"; then
  1679. ac_aux_dir=$ac_dir
  1680. ac_install_sh="$ac_aux_dir/shtool install -c"
  1681. break
  1682. fi
  1683. done
  1684. if test -z "$ac_aux_dir"; then
  1685. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1686. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1687. { (exit 1); exit 1; }; }
  1688. fi
  1689. # These three variables are undocumented and unsupported,
  1690. # and are intended to be withdrawn in a future Autoconf release.
  1691. # They can cause serious problems if a builder's source tree is in a directory
  1692. # whose full name contains unusual characters.
  1693. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1694. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1695. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1696. # Make sure we can run config.sub.
  1697. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1698. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1699. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1700. { (exit 1); exit 1; }; }
  1701. { echo "$as_me:$LINENO: checking build system type" >&5
  1702. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1703. if test "${ac_cv_build+set}" = set; then
  1704. echo $ECHO_N "(cached) $ECHO_C" >&6
  1705. else
  1706. ac_build_alias=$build_alias
  1707. test "x$ac_build_alias" = x &&
  1708. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1709. test "x$ac_build_alias" = x &&
  1710. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1711. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1712. { (exit 1); exit 1; }; }
  1713. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1714. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1715. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1716. { (exit 1); exit 1; }; }
  1717. fi
  1718. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1719. echo "${ECHO_T}$ac_cv_build" >&6; }
  1720. case $ac_cv_build in
  1721. *-*-*) ;;
  1722. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1723. echo "$as_me: error: invalid value of canonical build" >&2;}
  1724. { (exit 1); exit 1; }; };;
  1725. esac
  1726. build=$ac_cv_build
  1727. ac_save_IFS=$IFS; IFS='-'
  1728. set x $ac_cv_build
  1729. shift
  1730. build_cpu=$1
  1731. build_vendor=$2
  1732. shift; shift
  1733. # Remember, the first character of IFS is used to create $*,
  1734. # except with old shells:
  1735. build_os=$*
  1736. IFS=$ac_save_IFS
  1737. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1738. { echo "$as_me:$LINENO: checking host system type" >&5
  1739. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1740. if test "${ac_cv_host+set}" = set; then
  1741. echo $ECHO_N "(cached) $ECHO_C" >&6
  1742. else
  1743. if test "x$host_alias" = x; then
  1744. ac_cv_host=$ac_cv_build
  1745. else
  1746. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1747. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1748. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1749. { (exit 1); exit 1; }; }
  1750. fi
  1751. fi
  1752. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1753. echo "${ECHO_T}$ac_cv_host" >&6; }
  1754. case $ac_cv_host in
  1755. *-*-*) ;;
  1756. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1757. echo "$as_me: error: invalid value of canonical host" >&2;}
  1758. { (exit 1); exit 1; }; };;
  1759. esac
  1760. host=$ac_cv_host
  1761. ac_save_IFS=$IFS; IFS='-'
  1762. set x $ac_cv_host
  1763. shift
  1764. host_cpu=$1
  1765. host_vendor=$2
  1766. shift; shift
  1767. # Remember, the first character of IFS is used to create $*,
  1768. # except with old shells:
  1769. host_os=$*
  1770. IFS=$ac_save_IFS
  1771. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1772. { echo "$as_me:$LINENO: checking target system type" >&5
  1773. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1774. if test "${ac_cv_target+set}" = set; then
  1775. echo $ECHO_N "(cached) $ECHO_C" >&6
  1776. else
  1777. if test "x$target_alias" = x; then
  1778. ac_cv_target=$ac_cv_host
  1779. else
  1780. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1781. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1782. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1783. { (exit 1); exit 1; }; }
  1784. fi
  1785. fi
  1786. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1787. echo "${ECHO_T}$ac_cv_target" >&6; }
  1788. case $ac_cv_target in
  1789. *-*-*) ;;
  1790. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1791. echo "$as_me: error: invalid value of canonical target" >&2;}
  1792. { (exit 1); exit 1; }; };;
  1793. esac
  1794. target=$ac_cv_target
  1795. ac_save_IFS=$IFS; IFS='-'
  1796. set x $ac_cv_target
  1797. shift
  1798. target_cpu=$1
  1799. target_vendor=$2
  1800. shift; shift
  1801. # Remember, the first character of IFS is used to create $*,
  1802. # except with old shells:
  1803. target_os=$*
  1804. IFS=$ac_save_IFS
  1805. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1806. # The aliases save the names the user supplied, while $host etc.
  1807. # will get canonicalized.
  1808. test -n "$target_alias" &&
  1809. test "$program_prefix$program_suffix$program_transform_name" = \
  1810. NONENONEs,x,x, &&
  1811. program_prefix=${target_alias}-
  1812. am__api_version="1.9"
  1813. # Find a good install program. We prefer a C program (faster),
  1814. # so one script is as good as another. But avoid the broken or
  1815. # incompatible versions:
  1816. # SysV /etc/install, /usr/sbin/install
  1817. # SunOS /usr/etc/install
  1818. # IRIX /sbin/install
  1819. # AIX /bin/install
  1820. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1821. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1822. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1823. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1824. # OS/2's system install, which has a completely different semantic
  1825. # ./install, which can be erroneously created by make from ./install.sh.
  1826. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1827. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1828. if test -z "$INSTALL"; then
  1829. if test "${ac_cv_path_install+set}" = set; then
  1830. echo $ECHO_N "(cached) $ECHO_C" >&6
  1831. else
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. # Account for people who put trailing slashes in PATH elements.
  1838. case $as_dir/ in
  1839. ./ | .// | /cC/* | \
  1840. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1841. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1842. /usr/ucb/* ) ;;
  1843. *)
  1844. # OSF1 and SCO ODT 3.0 have their own names for install.
  1845. # Don't use installbsd from OSF since it installs stuff as root
  1846. # by default.
  1847. for ac_prog in ginstall scoinst install; do
  1848. for ac_exec_ext in '' $ac_executable_extensions; do
  1849. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1850. if test $ac_prog = install &&
  1851. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1852. # AIX install. It has an incompatible calling convention.
  1853. :
  1854. elif test $ac_prog = install &&
  1855. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1856. # program-specific install script used by HP pwplus--don't use.
  1857. :
  1858. else
  1859. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1860. break 3
  1861. fi
  1862. fi
  1863. done
  1864. done
  1865. ;;
  1866. esac
  1867. done
  1868. IFS=$as_save_IFS
  1869. fi
  1870. if test "${ac_cv_path_install+set}" = set; then
  1871. INSTALL=$ac_cv_path_install
  1872. else
  1873. # As a last resort, use the slow shell script. Don't cache a
  1874. # value for INSTALL within a source directory, because that will
  1875. # break other packages using the cache if that directory is
  1876. # removed, or if the value is a relative name.
  1877. INSTALL=$ac_install_sh
  1878. fi
  1879. fi
  1880. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1881. echo "${ECHO_T}$INSTALL" >&6; }
  1882. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1883. # It thinks the first close brace ends the variable substitution.
  1884. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1885. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1886. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1887. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1888. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1889. # Just in case
  1890. sleep 1
  1891. echo timestamp > conftest.file
  1892. # Do `set' in a subshell so we don't clobber the current shell's
  1893. # arguments. Must try -L first in case configure is actually a
  1894. # symlink; some systems play weird games with the mod time of symlinks
  1895. # (eg FreeBSD returns the mod time of the symlink's containing
  1896. # directory).
  1897. if (
  1898. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1899. if test "$*" = "X"; then
  1900. # -L didn't work.
  1901. set X `ls -t $srcdir/configure conftest.file`
  1902. fi
  1903. rm -f conftest.file
  1904. if test "$*" != "X $srcdir/configure conftest.file" \
  1905. && test "$*" != "X conftest.file $srcdir/configure"; then
  1906. # If neither matched, then we have a broken ls. This can happen
  1907. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1908. # broken ls alias from the environment. This has actually
  1909. # happened. Such a system could not be considered "sane".
  1910. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1911. alias in your environment" >&5
  1912. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1913. alias in your environment" >&2;}
  1914. { (exit 1); exit 1; }; }
  1915. fi
  1916. test "$2" = conftest.file
  1917. )
  1918. then
  1919. # Ok.
  1920. :
  1921. else
  1922. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1923. Check your system clock" >&5
  1924. echo "$as_me: error: newly created file is older than distributed files!
  1925. Check your system clock" >&2;}
  1926. { (exit 1); exit 1; }; }
  1927. fi
  1928. { echo "$as_me:$LINENO: result: yes" >&5
  1929. echo "${ECHO_T}yes" >&6; }
  1930. test "$program_prefix" != NONE &&
  1931. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1932. # Use a double $ so make ignores it.
  1933. test "$program_suffix" != NONE &&
  1934. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1935. # Double any \ or $. echo might interpret backslashes.
  1936. # By default was `s,x,x', remove it if useless.
  1937. cat <<\_ACEOF >conftest.sed
  1938. s/[\\$]/&&/g;s/;s,x,x,$//
  1939. _ACEOF
  1940. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1941. rm -f conftest.sed
  1942. # expand $ac_aux_dir to an absolute path
  1943. am_aux_dir=`cd $ac_aux_dir && pwd`
  1944. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1945. # Use eval to expand $SHELL
  1946. if eval "$MISSING --run true"; then
  1947. am_missing_run="$MISSING --run "
  1948. else
  1949. am_missing_run=
  1950. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1951. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1952. fi
  1953. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1954. # We used to keeping the `.' as first argument, in order to
  1955. # allow $(mkdir_p) to be used without argument. As in
  1956. # $(mkdir_p) $(somedir)
  1957. # where $(somedir) is conditionally defined. However this is wrong
  1958. # for two reasons:
  1959. # 1. if the package is installed by a user who cannot write `.'
  1960. # make install will fail,
  1961. # 2. the above comment should most certainly read
  1962. # $(mkdir_p) $(DESTDIR)$(somedir)
  1963. # so it does not work when $(somedir) is undefined and
  1964. # $(DESTDIR) is not.
  1965. # To support the latter case, we have to write
  1966. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1967. # so the `.' trick is pointless.
  1968. mkdir_p='mkdir -p --'
  1969. else
  1970. # On NextStep and OpenStep, the `mkdir' command does not
  1971. # recognize any option. It will interpret all options as
  1972. # directories to create, and then abort because `.' already
  1973. # exists.
  1974. for d in ./-p ./--version;
  1975. do
  1976. test -d $d && rmdir $d
  1977. done
  1978. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1979. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1980. mkdir_p='$(mkinstalldirs)'
  1981. else
  1982. mkdir_p='$(install_sh) -d'
  1983. fi
  1984. fi
  1985. for ac_prog in gawk mawk nawk awk
  1986. do
  1987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1988. set dummy $ac_prog; ac_word=$2
  1989. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1990. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1991. if test "${ac_cv_prog_AWK+set}" = set; then
  1992. echo $ECHO_N "(cached) $ECHO_C" >&6
  1993. else
  1994. if test -n "$AWK"; then
  1995. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1996. else
  1997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1998. for as_dir in $PATH
  1999. do
  2000. IFS=$as_save_IFS
  2001. test -z "$as_dir" && as_dir=.
  2002. for ac_exec_ext in '' $ac_executable_extensions; do
  2003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2004. ac_cv_prog_AWK="$ac_prog"
  2005. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2006. break 2
  2007. fi
  2008. done
  2009. done
  2010. IFS=$as_save_IFS
  2011. fi
  2012. fi
  2013. AWK=$ac_cv_prog_AWK
  2014. if test -n "$AWK"; then
  2015. { echo "$as_me:$LINENO: result: $AWK" >&5
  2016. echo "${ECHO_T}$AWK" >&6; }
  2017. else
  2018. { echo "$as_me:$LINENO: result: no" >&5
  2019. echo "${ECHO_T}no" >&6; }
  2020. fi
  2021. test -n "$AWK" && break
  2022. done
  2023. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2024. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2025. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2026. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2027. echo $ECHO_N "(cached) $ECHO_C" >&6
  2028. else
  2029. cat >conftest.make <<\_ACEOF
  2030. SHELL = /bin/sh
  2031. all:
  2032. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2033. _ACEOF
  2034. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2035. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2036. *@@@%%%=?*=@@@%%%*)
  2037. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2038. *)
  2039. eval ac_cv_prog_make_${ac_make}_set=no;;
  2040. esac
  2041. rm -f conftest.make
  2042. fi
  2043. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2044. { echo "$as_me:$LINENO: result: yes" >&5
  2045. echo "${ECHO_T}yes" >&6; }
  2046. SET_MAKE=
  2047. else
  2048. { echo "$as_me:$LINENO: result: no" >&5
  2049. echo "${ECHO_T}no" >&6; }
  2050. SET_MAKE="MAKE=${MAKE-make}"
  2051. fi
  2052. rm -rf .tst 2>/dev/null
  2053. mkdir .tst 2>/dev/null
  2054. if test -d .tst; then
  2055. am__leading_dot=.
  2056. else
  2057. am__leading_dot=_
  2058. fi
  2059. rmdir .tst 2>/dev/null
  2060. # test to see if srcdir already configured
  2061. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2062. test -f $srcdir/config.status; then
  2063. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2064. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2065. { (exit 1); exit 1; }; }
  2066. fi
  2067. # test whether we have cygpath
  2068. if test -z "$CYGPATH_W"; then
  2069. if (cygpath --version) >/dev/null 2>/dev/null; then
  2070. CYGPATH_W='cygpath -w'
  2071. else
  2072. CYGPATH_W=echo
  2073. fi
  2074. fi
  2075. # Define the identity of the package.
  2076. PACKAGE='aria2c'
  2077. VERSION='0.13.2rc'
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE "$PACKAGE"
  2080. _ACEOF
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define VERSION "$VERSION"
  2083. _ACEOF
  2084. # Some tools Automake needs.
  2085. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2086. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2087. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2088. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2089. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2090. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2091. # Installed binaries are usually stripped using `strip' when the user
  2092. # run `make install-strip'. However `strip' might not be the right
  2093. # tool to use in cross-compilation environments, therefore Automake
  2094. # will honor the `STRIP' environment variable to overrule this program.
  2095. if test "$cross_compiling" != no; then
  2096. if test -n "$ac_tool_prefix"; then
  2097. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2098. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2099. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2101. if test "${ac_cv_prog_STRIP+set}" = set; then
  2102. echo $ECHO_N "(cached) $ECHO_C" >&6
  2103. else
  2104. if test -n "$STRIP"; then
  2105. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2106. else
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. for ac_exec_ext in '' $ac_executable_extensions; do
  2113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2114. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2115. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2116. break 2
  2117. fi
  2118. done
  2119. done
  2120. IFS=$as_save_IFS
  2121. fi
  2122. fi
  2123. STRIP=$ac_cv_prog_STRIP
  2124. if test -n "$STRIP"; then
  2125. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2126. echo "${ECHO_T}$STRIP" >&6; }
  2127. else
  2128. { echo "$as_me:$LINENO: result: no" >&5
  2129. echo "${ECHO_T}no" >&6; }
  2130. fi
  2131. fi
  2132. if test -z "$ac_cv_prog_STRIP"; then
  2133. ac_ct_STRIP=$STRIP
  2134. # Extract the first word of "strip", so it can be a program name with args.
  2135. set dummy strip; ac_word=$2
  2136. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2137. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2138. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2139. echo $ECHO_N "(cached) $ECHO_C" >&6
  2140. else
  2141. if test -n "$ac_ct_STRIP"; then
  2142. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2143. else
  2144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2145. for as_dir in $PATH
  2146. do
  2147. IFS=$as_save_IFS
  2148. test -z "$as_dir" && as_dir=.
  2149. for ac_exec_ext in '' $ac_executable_extensions; do
  2150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2151. ac_cv_prog_ac_ct_STRIP="strip"
  2152. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2153. break 2
  2154. fi
  2155. done
  2156. done
  2157. IFS=$as_save_IFS
  2158. fi
  2159. fi
  2160. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2161. if test -n "$ac_ct_STRIP"; then
  2162. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2163. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2164. else
  2165. { echo "$as_me:$LINENO: result: no" >&5
  2166. echo "${ECHO_T}no" >&6; }
  2167. fi
  2168. if test "x$ac_ct_STRIP" = x; then
  2169. STRIP=":"
  2170. else
  2171. case $cross_compiling:$ac_tool_warned in
  2172. yes:)
  2173. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2174. whose name does not start with the host triplet. If you think this
  2175. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2176. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2177. whose name does not start with the host triplet. If you think this
  2178. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2179. ac_tool_warned=yes ;;
  2180. esac
  2181. STRIP=$ac_ct_STRIP
  2182. fi
  2183. else
  2184. STRIP="$ac_cv_prog_STRIP"
  2185. fi
  2186. fi
  2187. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2188. # We need awk for the "check" target. The system "awk" is bad on
  2189. # some platforms.
  2190. # Always define AMTAR for backward compatibility.
  2191. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2192. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2193. # Check whether --with-cppunit-prefix was given.
  2194. if test "${with_cppunit_prefix+set}" = set; then
  2195. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2196. else
  2197. cppunit_config_prefix=""
  2198. fi
  2199. # Check whether --with-cppunit-exec-prefix was given.
  2200. if test "${with_cppunit_exec_prefix+set}" = set; then
  2201. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2202. else
  2203. cppunit_config_exec_prefix=""
  2204. fi
  2205. if test x$cppunit_config_exec_prefix != x ; then
  2206. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2207. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2208. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2209. fi
  2210. fi
  2211. if test x$cppunit_config_prefix != x ; then
  2212. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2213. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2214. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2215. fi
  2216. fi
  2217. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2218. set dummy cppunit-config; ac_word=$2
  2219. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2220. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2221. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2222. echo $ECHO_N "(cached) $ECHO_C" >&6
  2223. else
  2224. case $CPPUNIT_CONFIG in
  2225. [\\/]* | ?:[\\/]*)
  2226. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2227. ;;
  2228. *)
  2229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2230. for as_dir in $PATH
  2231. do
  2232. IFS=$as_save_IFS
  2233. test -z "$as_dir" && as_dir=.
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2236. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2237. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2238. break 2
  2239. fi
  2240. done
  2241. done
  2242. IFS=$as_save_IFS
  2243. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2244. ;;
  2245. esac
  2246. fi
  2247. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2248. if test -n "$CPPUNIT_CONFIG"; then
  2249. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2250. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2251. else
  2252. { echo "$as_me:$LINENO: result: no" >&5
  2253. echo "${ECHO_T}no" >&6; }
  2254. fi
  2255. cppunit_version_min=1.10.2
  2256. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2257. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2258. no_cppunit=""
  2259. if test "$CPPUNIT_CONFIG" = "no" ; then
  2260. { echo "$as_me:$LINENO: result: no" >&5
  2261. echo "${ECHO_T}no" >&6; }
  2262. no_cppunit=yes
  2263. else
  2264. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2265. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2266. cppunit_version=`$CPPUNIT_CONFIG --version`
  2267. cppunit_major_version=`echo $cppunit_version | \
  2268. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2269. cppunit_minor_version=`echo $cppunit_version | \
  2270. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2271. cppunit_micro_version=`echo $cppunit_version | \
  2272. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2273. cppunit_major_min=`echo $cppunit_version_min | \
  2274. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2275. if test "x${cppunit_major_min}" = "x" ; then
  2276. cppunit_major_min=0
  2277. fi
  2278. cppunit_minor_min=`echo $cppunit_version_min | \
  2279. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2280. if test "x${cppunit_minor_min}" = "x" ; then
  2281. cppunit_minor_min=0
  2282. fi
  2283. cppunit_micro_min=`echo $cppunit_version_min | \
  2284. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2285. if test "x${cppunit_micro_min}" = "x" ; then
  2286. cppunit_micro_min=0
  2287. fi
  2288. cppunit_version_proper=`expr \
  2289. $cppunit_major_version \> $cppunit_major_min \| \
  2290. $cppunit_major_version \= $cppunit_major_min \& \
  2291. $cppunit_minor_version \> $cppunit_minor_min \| \
  2292. $cppunit_major_version \= $cppunit_major_min \& \
  2293. $cppunit_minor_version \= $cppunit_minor_min \& \
  2294. $cppunit_micro_version \>= $cppunit_micro_min `
  2295. if test "$cppunit_version_proper" = "1" ; then
  2296. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2297. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2298. else
  2299. { echo "$as_me:$LINENO: result: no" >&5
  2300. echo "${ECHO_T}no" >&6; }
  2301. no_cppunit=yes
  2302. fi
  2303. fi
  2304. if test "x$no_cppunit" = x ; then
  2305. :
  2306. else
  2307. CPPUNIT_CFLAGS=""
  2308. CPPUNIT_LIBS=""
  2309. :
  2310. fi
  2311. ac_config_headers="$ac_config_headers config.h"
  2312. case "$target" in
  2313. *mingw*|*cygwin*)
  2314. WINSOCK_LIBS="-lws2_32 -lpthread"
  2315. ;;
  2316. esac
  2317. cat >>confdefs.h <<_ACEOF
  2318. #define TARGET "$target"
  2319. _ACEOF
  2320. # Set localedir
  2321. localedir=${datadir}/locale
  2322. # Checks for arguments.
  2323. # Check whether --with-gnutls was given.
  2324. if test "${with_gnutls+set}" = set; then
  2325. withval=$with_gnutls; with_gnutls=$withval
  2326. else
  2327. with_gnutls=yes
  2328. fi
  2329. # Check whether --with-openssl was given.
  2330. if test "${with_openssl+set}" = set; then
  2331. withval=$with_openssl; with_openssl=$withval
  2332. else
  2333. with_openssl=yes
  2334. fi
  2335. # Check whether --with-libxml2 was given.
  2336. if test "${with_libxml2+set}" = set; then
  2337. withval=$with_libxml2; with_libxml2=$withval
  2338. else
  2339. with_libxml2=yes
  2340. fi
  2341. # Check whether --with-libexpat was given.
  2342. if test "${with_libexpat+set}" = set; then
  2343. withval=$with_libexpat; with_libexpat=$withval
  2344. else
  2345. with_libexpat=yes
  2346. fi
  2347. # Check whether --with-libares was given.
  2348. if test "${with_libares+set}" = set; then
  2349. withval=$with_libares; with_libares=$withval
  2350. else
  2351. with_libares=yes
  2352. fi
  2353. # Check whether --with-libcares was given.
  2354. if test "${with_libcares+set}" = set; then
  2355. withval=$with_libcares; with_libcares=$withval
  2356. else
  2357. with_libcares=yes
  2358. fi
  2359. # Check whether --enable-bittorrent was given.
  2360. if test "${enable_bittorrent+set}" = set; then
  2361. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2362. else
  2363. enable_bittorrent=yes
  2364. fi
  2365. # Check whether --enable-metalink was given.
  2366. if test "${enable_metalink+set}" = set; then
  2367. enableval=$enable_metalink; enable_metalink=$enableval
  2368. else
  2369. enable_metalink=yes
  2370. fi
  2371. # Checks for programs.
  2372. ac_ext=cpp
  2373. ac_cpp='$CXXCPP $CPPFLAGS'
  2374. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2375. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2376. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2377. if test -z "$CXX"; then
  2378. if test -n "$CCC"; then
  2379. CXX=$CCC
  2380. else
  2381. if test -n "$ac_tool_prefix"; then
  2382. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2383. do
  2384. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2385. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2386. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2387. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2388. if test "${ac_cv_prog_CXX+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -n "$CXX"; then
  2392. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2401. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. CXX=$ac_cv_prog_CXX
  2411. if test -n "$CXX"; then
  2412. { echo "$as_me:$LINENO: result: $CXX" >&5
  2413. echo "${ECHO_T}$CXX" >&6; }
  2414. else
  2415. { echo "$as_me:$LINENO: result: no" >&5
  2416. echo "${ECHO_T}no" >&6; }
  2417. fi
  2418. test -n "$CXX" && break
  2419. done
  2420. fi
  2421. if test -z "$CXX"; then
  2422. ac_ct_CXX=$CXX
  2423. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2424. do
  2425. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2426. set dummy $ac_prog; ac_word=$2
  2427. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2429. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2430. echo $ECHO_N "(cached) $ECHO_C" >&6
  2431. else
  2432. if test -n "$ac_ct_CXX"; then
  2433. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2434. else
  2435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2436. for as_dir in $PATH
  2437. do
  2438. IFS=$as_save_IFS
  2439. test -z "$as_dir" && as_dir=.
  2440. for ac_exec_ext in '' $ac_executable_extensions; do
  2441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2442. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2443. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2444. break 2
  2445. fi
  2446. done
  2447. done
  2448. IFS=$as_save_IFS
  2449. fi
  2450. fi
  2451. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2452. if test -n "$ac_ct_CXX"; then
  2453. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2454. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2455. else
  2456. { echo "$as_me:$LINENO: result: no" >&5
  2457. echo "${ECHO_T}no" >&6; }
  2458. fi
  2459. test -n "$ac_ct_CXX" && break
  2460. done
  2461. if test "x$ac_ct_CXX" = x; then
  2462. CXX="g++"
  2463. else
  2464. case $cross_compiling:$ac_tool_warned in
  2465. yes:)
  2466. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2467. whose name does not start with the host triplet. If you think this
  2468. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2469. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2470. whose name does not start with the host triplet. If you think this
  2471. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2472. ac_tool_warned=yes ;;
  2473. esac
  2474. CXX=$ac_ct_CXX
  2475. fi
  2476. fi
  2477. fi
  2478. fi
  2479. # Provide some information about the compiler.
  2480. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2481. ac_compiler=`set X $ac_compile; echo $2`
  2482. { (ac_try="$ac_compiler --version >&5"
  2483. case "(($ac_try" in
  2484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2485. *) ac_try_echo=$ac_try;;
  2486. esac
  2487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2488. (eval "$ac_compiler --version >&5") 2>&5
  2489. ac_status=$?
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); }
  2492. { (ac_try="$ac_compiler -v >&5"
  2493. case "(($ac_try" in
  2494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2495. *) ac_try_echo=$ac_try;;
  2496. esac
  2497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2498. (eval "$ac_compiler -v >&5") 2>&5
  2499. ac_status=$?
  2500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2501. (exit $ac_status); }
  2502. { (ac_try="$ac_compiler -V >&5"
  2503. case "(($ac_try" in
  2504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2505. *) ac_try_echo=$ac_try;;
  2506. esac
  2507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2508. (eval "$ac_compiler -V >&5") 2>&5
  2509. ac_status=$?
  2510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); }
  2512. cat >conftest.$ac_ext <<_ACEOF
  2513. /* confdefs.h. */
  2514. _ACEOF
  2515. cat confdefs.h >>conftest.$ac_ext
  2516. cat >>conftest.$ac_ext <<_ACEOF
  2517. /* end confdefs.h. */
  2518. int
  2519. main ()
  2520. {
  2521. ;
  2522. return 0;
  2523. }
  2524. _ACEOF
  2525. ac_clean_files_save=$ac_clean_files
  2526. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2527. # Try to create an executable without -o first, disregard a.out.
  2528. # It will help us diagnose broken compilers, and finding out an intuition
  2529. # of exeext.
  2530. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2531. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2532. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2533. #
  2534. # List of possible output files, starting from the most likely.
  2535. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2536. # only as a last resort. b.out is created by i960 compilers.
  2537. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2538. #
  2539. # The IRIX 6 linker writes into existing files which may not be
  2540. # executable, retaining their permissions. Remove them first so a
  2541. # subsequent execution test works.
  2542. ac_rmfiles=
  2543. for ac_file in $ac_files
  2544. do
  2545. case $ac_file in
  2546. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2547. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2548. esac
  2549. done
  2550. rm -f $ac_rmfiles
  2551. if { (ac_try="$ac_link_default"
  2552. case "(($ac_try" in
  2553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2554. *) ac_try_echo=$ac_try;;
  2555. esac
  2556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2557. (eval "$ac_link_default") 2>&5
  2558. ac_status=$?
  2559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560. (exit $ac_status); }; then
  2561. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2562. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2563. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2564. # so that the user can short-circuit this test for compilers unknown to
  2565. # Autoconf.
  2566. for ac_file in $ac_files ''
  2567. do
  2568. test -f "$ac_file" || continue
  2569. case $ac_file in
  2570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2571. ;;
  2572. [ab].out )
  2573. # We found the default executable, but exeext='' is most
  2574. # certainly right.
  2575. break;;
  2576. *.* )
  2577. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2578. then :; else
  2579. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2580. fi
  2581. # We set ac_cv_exeext here because the later test for it is not
  2582. # safe: cross compilers may not add the suffix if given an `-o'
  2583. # argument, so we may need to know it at that point already.
  2584. # Even if this section looks crufty: it has the advantage of
  2585. # actually working.
  2586. break;;
  2587. * )
  2588. break;;
  2589. esac
  2590. done
  2591. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2592. else
  2593. ac_file=''
  2594. fi
  2595. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2596. echo "${ECHO_T}$ac_file" >&6; }
  2597. if test -z "$ac_file"; then
  2598. echo "$as_me: failed program was:" >&5
  2599. sed 's/^/| /' conftest.$ac_ext >&5
  2600. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2601. See \`config.log' for more details." >&5
  2602. echo "$as_me: error: C++ compiler cannot create executables
  2603. See \`config.log' for more details." >&2;}
  2604. { (exit 77); exit 77; }; }
  2605. fi
  2606. ac_exeext=$ac_cv_exeext
  2607. # Check that the compiler produces executables we can run. If not, either
  2608. # the compiler is broken, or we cross compile.
  2609. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2610. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2611. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2612. # If not cross compiling, check that we can run a simple program.
  2613. if test "$cross_compiling" != yes; then
  2614. if { ac_try='./$ac_file'
  2615. { (case "(($ac_try" in
  2616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2617. *) ac_try_echo=$ac_try;;
  2618. esac
  2619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2620. (eval "$ac_try") 2>&5
  2621. ac_status=$?
  2622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2623. (exit $ac_status); }; }; then
  2624. cross_compiling=no
  2625. else
  2626. if test "$cross_compiling" = maybe; then
  2627. cross_compiling=yes
  2628. else
  2629. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2630. If you meant to cross compile, use \`--host'.
  2631. See \`config.log' for more details." >&5
  2632. echo "$as_me: error: cannot run C++ compiled programs.
  2633. If you meant to cross compile, use \`--host'.
  2634. See \`config.log' for more details." >&2;}
  2635. { (exit 1); exit 1; }; }
  2636. fi
  2637. fi
  2638. fi
  2639. { echo "$as_me:$LINENO: result: yes" >&5
  2640. echo "${ECHO_T}yes" >&6; }
  2641. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2642. ac_clean_files=$ac_clean_files_save
  2643. # Check that the compiler produces executables we can run. If not, either
  2644. # the compiler is broken, or we cross compile.
  2645. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2646. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2647. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2648. echo "${ECHO_T}$cross_compiling" >&6; }
  2649. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2650. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2651. if { (ac_try="$ac_link"
  2652. case "(($ac_try" in
  2653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2654. *) ac_try_echo=$ac_try;;
  2655. esac
  2656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2657. (eval "$ac_link") 2>&5
  2658. ac_status=$?
  2659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); }; then
  2661. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2662. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2663. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2664. # `rm'.
  2665. for ac_file in conftest.exe conftest conftest.*; do
  2666. test -f "$ac_file" || continue
  2667. case $ac_file in
  2668. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2669. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2670. break;;
  2671. * ) break;;
  2672. esac
  2673. done
  2674. else
  2675. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2676. See \`config.log' for more details." >&5
  2677. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2678. See \`config.log' for more details." >&2;}
  2679. { (exit 1); exit 1; }; }
  2680. fi
  2681. rm -f conftest$ac_cv_exeext
  2682. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2683. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2684. rm -f conftest.$ac_ext
  2685. EXEEXT=$ac_cv_exeext
  2686. ac_exeext=$EXEEXT
  2687. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2688. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2689. if test "${ac_cv_objext+set}" = set; then
  2690. echo $ECHO_N "(cached) $ECHO_C" >&6
  2691. else
  2692. cat >conftest.$ac_ext <<_ACEOF
  2693. /* confdefs.h. */
  2694. _ACEOF
  2695. cat confdefs.h >>conftest.$ac_ext
  2696. cat >>conftest.$ac_ext <<_ACEOF
  2697. /* end confdefs.h. */
  2698. int
  2699. main ()
  2700. {
  2701. ;
  2702. return 0;
  2703. }
  2704. _ACEOF
  2705. rm -f conftest.o conftest.obj
  2706. if { (ac_try="$ac_compile"
  2707. case "(($ac_try" in
  2708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2709. *) ac_try_echo=$ac_try;;
  2710. esac
  2711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2712. (eval "$ac_compile") 2>&5
  2713. ac_status=$?
  2714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2715. (exit $ac_status); }; then
  2716. for ac_file in conftest.o conftest.obj conftest.*; do
  2717. test -f "$ac_file" || continue;
  2718. case $ac_file in
  2719. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2720. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2721. break;;
  2722. esac
  2723. done
  2724. else
  2725. echo "$as_me: failed program was:" >&5
  2726. sed 's/^/| /' conftest.$ac_ext >&5
  2727. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2728. See \`config.log' for more details." >&5
  2729. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2730. See \`config.log' for more details." >&2;}
  2731. { (exit 1); exit 1; }; }
  2732. fi
  2733. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2734. fi
  2735. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2736. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2737. OBJEXT=$ac_cv_objext
  2738. ac_objext=$OBJEXT
  2739. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2740. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2741. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2742. echo $ECHO_N "(cached) $ECHO_C" >&6
  2743. else
  2744. cat >conftest.$ac_ext <<_ACEOF
  2745. /* confdefs.h. */
  2746. _ACEOF
  2747. cat confdefs.h >>conftest.$ac_ext
  2748. cat >>conftest.$ac_ext <<_ACEOF
  2749. /* end confdefs.h. */
  2750. int
  2751. main ()
  2752. {
  2753. #ifndef __GNUC__
  2754. choke me
  2755. #endif
  2756. ;
  2757. return 0;
  2758. }
  2759. _ACEOF
  2760. rm -f conftest.$ac_objext
  2761. if { (ac_try="$ac_compile"
  2762. case "(($ac_try" in
  2763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2764. *) ac_try_echo=$ac_try;;
  2765. esac
  2766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2767. (eval "$ac_compile") 2>conftest.er1
  2768. ac_status=$?
  2769. grep -v '^ *+' conftest.er1 >conftest.err
  2770. rm -f conftest.er1
  2771. cat conftest.err >&5
  2772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2773. (exit $ac_status); } && {
  2774. test -z "$ac_cxx_werror_flag" ||
  2775. test ! -s conftest.err
  2776. } && test -s conftest.$ac_objext; then
  2777. ac_compiler_gnu=yes
  2778. else
  2779. echo "$as_me: failed program was:" >&5
  2780. sed 's/^/| /' conftest.$ac_ext >&5
  2781. ac_compiler_gnu=no
  2782. fi
  2783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2784. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2785. fi
  2786. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2787. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2788. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2789. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2790. ac_save_CXXFLAGS=$CXXFLAGS
  2791. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2792. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2793. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2794. echo $ECHO_N "(cached) $ECHO_C" >&6
  2795. else
  2796. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2797. ac_cxx_werror_flag=yes
  2798. ac_cv_prog_cxx_g=no
  2799. CXXFLAGS="-g"
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. /* confdefs.h. */
  2802. _ACEOF
  2803. cat confdefs.h >>conftest.$ac_ext
  2804. cat >>conftest.$ac_ext <<_ACEOF
  2805. /* end confdefs.h. */
  2806. int
  2807. main ()
  2808. {
  2809. ;
  2810. return 0;
  2811. }
  2812. _ACEOF
  2813. rm -f conftest.$ac_objext
  2814. if { (ac_try="$ac_compile"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2820. (eval "$ac_compile") 2>conftest.er1
  2821. ac_status=$?
  2822. grep -v '^ *+' conftest.er1 >conftest.err
  2823. rm -f conftest.er1
  2824. cat conftest.err >&5
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); } && {
  2827. test -z "$ac_cxx_werror_flag" ||
  2828. test ! -s conftest.err
  2829. } && test -s conftest.$ac_objext; then
  2830. ac_cv_prog_cxx_g=yes
  2831. else
  2832. echo "$as_me: failed program was:" >&5
  2833. sed 's/^/| /' conftest.$ac_ext >&5
  2834. CXXFLAGS=""
  2835. cat >conftest.$ac_ext <<_ACEOF
  2836. /* confdefs.h. */
  2837. _ACEOF
  2838. cat confdefs.h >>conftest.$ac_ext
  2839. cat >>conftest.$ac_ext <<_ACEOF
  2840. /* end confdefs.h. */
  2841. int
  2842. main ()
  2843. {
  2844. ;
  2845. return 0;
  2846. }
  2847. _ACEOF
  2848. rm -f conftest.$ac_objext
  2849. if { (ac_try="$ac_compile"
  2850. case "(($ac_try" in
  2851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2852. *) ac_try_echo=$ac_try;;
  2853. esac
  2854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2855. (eval "$ac_compile") 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } && {
  2862. test -z "$ac_cxx_werror_flag" ||
  2863. test ! -s conftest.err
  2864. } && test -s conftest.$ac_objext; then
  2865. :
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2870. CXXFLAGS="-g"
  2871. cat >conftest.$ac_ext <<_ACEOF
  2872. /* confdefs.h. */
  2873. _ACEOF
  2874. cat confdefs.h >>conftest.$ac_ext
  2875. cat >>conftest.$ac_ext <<_ACEOF
  2876. /* end confdefs.h. */
  2877. int
  2878. main ()
  2879. {
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. rm -f conftest.$ac_objext
  2885. if { (ac_try="$ac_compile"
  2886. case "(($ac_try" in
  2887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2888. *) ac_try_echo=$ac_try;;
  2889. esac
  2890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2891. (eval "$ac_compile") 2>conftest.er1
  2892. ac_status=$?
  2893. grep -v '^ *+' conftest.er1 >conftest.err
  2894. rm -f conftest.er1
  2895. cat conftest.err >&5
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); } && {
  2898. test -z "$ac_cxx_werror_flag" ||
  2899. test ! -s conftest.err
  2900. } && test -s conftest.$ac_objext; then
  2901. ac_cv_prog_cxx_g=yes
  2902. else
  2903. echo "$as_me: failed program was:" >&5
  2904. sed 's/^/| /' conftest.$ac_ext >&5
  2905. fi
  2906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2907. fi
  2908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2909. fi
  2910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2911. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2912. fi
  2913. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2914. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2915. if test "$ac_test_CXXFLAGS" = set; then
  2916. CXXFLAGS=$ac_save_CXXFLAGS
  2917. elif test $ac_cv_prog_cxx_g = yes; then
  2918. if test "$GXX" = yes; then
  2919. CXXFLAGS="-g -O2"
  2920. else
  2921. CXXFLAGS="-g"
  2922. fi
  2923. else
  2924. if test "$GXX" = yes; then
  2925. CXXFLAGS="-O2"
  2926. else
  2927. CXXFLAGS=
  2928. fi
  2929. fi
  2930. ac_ext=c
  2931. ac_cpp='$CPP $CPPFLAGS'
  2932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2935. DEPDIR="${am__leading_dot}deps"
  2936. ac_config_commands="$ac_config_commands depfiles"
  2937. am_make=${MAKE-make}
  2938. cat > confinc << 'END'
  2939. am__doit:
  2940. @echo done
  2941. .PHONY: am__doit
  2942. END
  2943. # If we don't find an include directive, just comment out the code.
  2944. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2945. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2946. am__include="#"
  2947. am__quote=
  2948. _am_result=none
  2949. # First try GNU make style include.
  2950. echo "include confinc" > confmf
  2951. # We grep out `Entering directory' and `Leaving directory'
  2952. # messages which can occur if `w' ends up in MAKEFLAGS.
  2953. # In particular we don't look at `^make:' because GNU make might
  2954. # be invoked under some other name (usually "gmake"), in which
  2955. # case it prints its new name instead of `make'.
  2956. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2957. am__include=include
  2958. am__quote=
  2959. _am_result=GNU
  2960. fi
  2961. # Now try BSD make style include.
  2962. if test "$am__include" = "#"; then
  2963. echo '.include "confinc"' > confmf
  2964. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2965. am__include=.include
  2966. am__quote="\""
  2967. _am_result=BSD
  2968. fi
  2969. fi
  2970. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2971. echo "${ECHO_T}$_am_result" >&6; }
  2972. rm -f confinc confmf
  2973. # Check whether --enable-dependency-tracking was given.
  2974. if test "${enable_dependency_tracking+set}" = set; then
  2975. enableval=$enable_dependency_tracking;
  2976. fi
  2977. if test "x$enable_dependency_tracking" != xno; then
  2978. am_depcomp="$ac_aux_dir/depcomp"
  2979. AMDEPBACKSLASH='\'
  2980. fi
  2981. if test "x$enable_dependency_tracking" != xno; then
  2982. AMDEP_TRUE=
  2983. AMDEP_FALSE='#'
  2984. else
  2985. AMDEP_TRUE='#'
  2986. AMDEP_FALSE=
  2987. fi
  2988. depcc="$CXX" am_compiler_list=
  2989. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2990. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2991. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2992. echo $ECHO_N "(cached) $ECHO_C" >&6
  2993. else
  2994. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2995. # We make a subdir and do the tests there. Otherwise we can end up
  2996. # making bogus files that we don't know about and never remove. For
  2997. # instance it was reported that on HP-UX the gcc test will end up
  2998. # making a dummy file named `D' -- because `-MD' means `put the output
  2999. # in D'.
  3000. mkdir conftest.dir
  3001. # Copy depcomp to subdir because otherwise we won't find it if we're
  3002. # using a relative directory.
  3003. cp "$am_depcomp" conftest.dir
  3004. cd conftest.dir
  3005. # We will build objects and dependencies in a subdirectory because
  3006. # it helps to detect inapplicable dependency modes. For instance
  3007. # both Tru64's cc and ICC support -MD to output dependencies as a
  3008. # side effect of compilation, but ICC will put the dependencies in
  3009. # the current directory while Tru64 will put them in the object
  3010. # directory.
  3011. mkdir sub
  3012. am_cv_CXX_dependencies_compiler_type=none
  3013. if test "$am_compiler_list" = ""; then
  3014. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3015. fi
  3016. for depmode in $am_compiler_list; do
  3017. # Setup a source with many dependencies, because some compilers
  3018. # like to wrap large dependency lists on column 80 (with \), and
  3019. # we should not choose a depcomp mode which is confused by this.
  3020. #
  3021. # We need to recreate these files for each test, as the compiler may
  3022. # overwrite some of them when testing with obscure command lines.
  3023. # This happens at least with the AIX C compiler.
  3024. : > sub/conftest.c
  3025. for i in 1 2 3 4 5 6; do
  3026. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3027. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3028. # Solaris 8's {/usr,}/bin/sh.
  3029. touch sub/conftst$i.h
  3030. done
  3031. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3032. case $depmode in
  3033. nosideeffect)
  3034. # after this tag, mechanisms are not by side-effect, so they'll
  3035. # only be used when explicitly requested
  3036. if test "x$enable_dependency_tracking" = xyes; then
  3037. continue
  3038. else
  3039. break
  3040. fi
  3041. ;;
  3042. none) break ;;
  3043. esac
  3044. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3045. # mode. It turns out that the SunPro C++ compiler does not properly
  3046. # handle `-M -o', and we need to detect this.
  3047. if depmode=$depmode \
  3048. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3049. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3050. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3051. >/dev/null 2>conftest.err &&
  3052. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3053. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3054. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3055. # icc doesn't choke on unknown options, it will just issue warnings
  3056. # or remarks (even with -Werror). So we grep stderr for any message
  3057. # that says an option was ignored or not supported.
  3058. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3059. # icc: Command line warning: ignoring option '-M'; no argument required
  3060. # The diagnosis changed in icc 8.0:
  3061. # icc: Command line remark: option '-MP' not supported
  3062. if (grep 'ignoring option' conftest.err ||
  3063. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3064. am_cv_CXX_dependencies_compiler_type=$depmode
  3065. break
  3066. fi
  3067. fi
  3068. done
  3069. cd ..
  3070. rm -rf conftest.dir
  3071. else
  3072. am_cv_CXX_dependencies_compiler_type=none
  3073. fi
  3074. fi
  3075. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3076. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3077. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3078. if
  3079. test "x$enable_dependency_tracking" != xno \
  3080. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3081. am__fastdepCXX_TRUE=
  3082. am__fastdepCXX_FALSE='#'
  3083. else
  3084. am__fastdepCXX_TRUE='#'
  3085. am__fastdepCXX_FALSE=
  3086. fi
  3087. ac_ext=c
  3088. ac_cpp='$CPP $CPPFLAGS'
  3089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3092. if test -n "$ac_tool_prefix"; then
  3093. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3094. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3095. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3096. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3097. if test "${ac_cv_prog_CC+set}" = set; then
  3098. echo $ECHO_N "(cached) $ECHO_C" >&6
  3099. else
  3100. if test -n "$CC"; then
  3101. ac_cv_prog_CC="$CC" # Let the user override the test.
  3102. else
  3103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3104. for as_dir in $PATH
  3105. do
  3106. IFS=$as_save_IFS
  3107. test -z "$as_dir" && as_dir=.
  3108. for ac_exec_ext in '' $ac_executable_extensions; do
  3109. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3110. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3111. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3112. break 2
  3113. fi
  3114. done
  3115. done
  3116. IFS=$as_save_IFS
  3117. fi
  3118. fi
  3119. CC=$ac_cv_prog_CC
  3120. if test -n "$CC"; then
  3121. { echo "$as_me:$LINENO: result: $CC" >&5
  3122. echo "${ECHO_T}$CC" >&6; }
  3123. else
  3124. { echo "$as_me:$LINENO: result: no" >&5
  3125. echo "${ECHO_T}no" >&6; }
  3126. fi
  3127. fi
  3128. if test -z "$ac_cv_prog_CC"; then
  3129. ac_ct_CC=$CC
  3130. # Extract the first word of "gcc", so it can be a program name with args.
  3131. set dummy gcc; ac_word=$2
  3132. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3133. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3134. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3135. echo $ECHO_N "(cached) $ECHO_C" >&6
  3136. else
  3137. if test -n "$ac_ct_CC"; then
  3138. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3139. else
  3140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3141. for as_dir in $PATH
  3142. do
  3143. IFS=$as_save_IFS
  3144. test -z "$as_dir" && as_dir=.
  3145. for ac_exec_ext in '' $ac_executable_extensions; do
  3146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3147. ac_cv_prog_ac_ct_CC="gcc"
  3148. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3149. break 2
  3150. fi
  3151. done
  3152. done
  3153. IFS=$as_save_IFS
  3154. fi
  3155. fi
  3156. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3157. if test -n "$ac_ct_CC"; then
  3158. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3159. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3160. else
  3161. { echo "$as_me:$LINENO: result: no" >&5
  3162. echo "${ECHO_T}no" >&6; }
  3163. fi
  3164. if test "x$ac_ct_CC" = x; then
  3165. CC=""
  3166. else
  3167. case $cross_compiling:$ac_tool_warned in
  3168. yes:)
  3169. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3170. whose name does not start with the host triplet. If you think this
  3171. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3172. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3173. whose name does not start with the host triplet. If you think this
  3174. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3175. ac_tool_warned=yes ;;
  3176. esac
  3177. CC=$ac_ct_CC
  3178. fi
  3179. else
  3180. CC="$ac_cv_prog_CC"
  3181. fi
  3182. if test -z "$CC"; then
  3183. if test -n "$ac_tool_prefix"; then
  3184. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3185. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3186. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3187. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3188. if test "${ac_cv_prog_CC+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. if test -n "$CC"; then
  3192. ac_cv_prog_CC="$CC" # Let the user override the test.
  3193. else
  3194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3195. for as_dir in $PATH
  3196. do
  3197. IFS=$as_save_IFS
  3198. test -z "$as_dir" && as_dir=.
  3199. for ac_exec_ext in '' $ac_executable_extensions; do
  3200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3201. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3202. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3203. break 2
  3204. fi
  3205. done
  3206. done
  3207. IFS=$as_save_IFS
  3208. fi
  3209. fi
  3210. CC=$ac_cv_prog_CC
  3211. if test -n "$CC"; then
  3212. { echo "$as_me:$LINENO: result: $CC" >&5
  3213. echo "${ECHO_T}$CC" >&6; }
  3214. else
  3215. { echo "$as_me:$LINENO: result: no" >&5
  3216. echo "${ECHO_T}no" >&6; }
  3217. fi
  3218. fi
  3219. fi
  3220. if test -z "$CC"; then
  3221. # Extract the first word of "cc", so it can be a program name with args.
  3222. set dummy cc; ac_word=$2
  3223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3225. if test "${ac_cv_prog_CC+set}" = set; then
  3226. echo $ECHO_N "(cached) $ECHO_C" >&6
  3227. else
  3228. if test -n "$CC"; then
  3229. ac_cv_prog_CC="$CC" # Let the user override the test.
  3230. else
  3231. ac_prog_rejected=no
  3232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3233. for as_dir in $PATH
  3234. do
  3235. IFS=$as_save_IFS
  3236. test -z "$as_dir" && as_dir=.
  3237. for ac_exec_ext in '' $ac_executable_extensions; do
  3238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3239. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3240. ac_prog_rejected=yes
  3241. continue
  3242. fi
  3243. ac_cv_prog_CC="cc"
  3244. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3245. break 2
  3246. fi
  3247. done
  3248. done
  3249. IFS=$as_save_IFS
  3250. if test $ac_prog_rejected = yes; then
  3251. # We found a bogon in the path, so make sure we never use it.
  3252. set dummy $ac_cv_prog_CC
  3253. shift
  3254. if test $# != 0; then
  3255. # We chose a different compiler from the bogus one.
  3256. # However, it has the same basename, so the bogon will be chosen
  3257. # first if we set CC to just the basename; use the full file name.
  3258. shift
  3259. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3260. fi
  3261. fi
  3262. fi
  3263. fi
  3264. CC=$ac_cv_prog_CC
  3265. if test -n "$CC"; then
  3266. { echo "$as_me:$LINENO: result: $CC" >&5
  3267. echo "${ECHO_T}$CC" >&6; }
  3268. else
  3269. { echo "$as_me:$LINENO: result: no" >&5
  3270. echo "${ECHO_T}no" >&6; }
  3271. fi
  3272. fi
  3273. if test -z "$CC"; then
  3274. if test -n "$ac_tool_prefix"; then
  3275. for ac_prog in cl.exe
  3276. do
  3277. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3278. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3279. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3280. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3281. if test "${ac_cv_prog_CC+set}" = set; then
  3282. echo $ECHO_N "(cached) $ECHO_C" >&6
  3283. else
  3284. if test -n "$CC"; then
  3285. ac_cv_prog_CC="$CC" # Let the user override the test.
  3286. else
  3287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3288. for as_dir in $PATH
  3289. do
  3290. IFS=$as_save_IFS
  3291. test -z "$as_dir" && as_dir=.
  3292. for ac_exec_ext in '' $ac_executable_extensions; do
  3293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3294. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3296. break 2
  3297. fi
  3298. done
  3299. done
  3300. IFS=$as_save_IFS
  3301. fi
  3302. fi
  3303. CC=$ac_cv_prog_CC
  3304. if test -n "$CC"; then
  3305. { echo "$as_me:$LINENO: result: $CC" >&5
  3306. echo "${ECHO_T}$CC" >&6; }
  3307. else
  3308. { echo "$as_me:$LINENO: result: no" >&5
  3309. echo "${ECHO_T}no" >&6; }
  3310. fi
  3311. test -n "$CC" && break
  3312. done
  3313. fi
  3314. if test -z "$CC"; then
  3315. ac_ct_CC=$CC
  3316. for ac_prog in cl.exe
  3317. do
  3318. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3319. set dummy $ac_prog; ac_word=$2
  3320. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3322. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3323. echo $ECHO_N "(cached) $ECHO_C" >&6
  3324. else
  3325. if test -n "$ac_ct_CC"; then
  3326. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3327. else
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_exec_ext in '' $ac_executable_extensions; do
  3334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3335. ac_cv_prog_ac_ct_CC="$ac_prog"
  3336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3337. break 2
  3338. fi
  3339. done
  3340. done
  3341. IFS=$as_save_IFS
  3342. fi
  3343. fi
  3344. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3345. if test -n "$ac_ct_CC"; then
  3346. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3347. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3348. else
  3349. { echo "$as_me:$LINENO: result: no" >&5
  3350. echo "${ECHO_T}no" >&6; }
  3351. fi
  3352. test -n "$ac_ct_CC" && break
  3353. done
  3354. if test "x$ac_ct_CC" = x; then
  3355. CC=""
  3356. else
  3357. case $cross_compiling:$ac_tool_warned in
  3358. yes:)
  3359. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3360. whose name does not start with the host triplet. If you think this
  3361. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3362. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3363. whose name does not start with the host triplet. If you think this
  3364. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3365. ac_tool_warned=yes ;;
  3366. esac
  3367. CC=$ac_ct_CC
  3368. fi
  3369. fi
  3370. fi
  3371. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3372. See \`config.log' for more details." >&5
  3373. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3374. See \`config.log' for more details." >&2;}
  3375. { (exit 1); exit 1; }; }
  3376. # Provide some information about the compiler.
  3377. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3378. ac_compiler=`set X $ac_compile; echo $2`
  3379. { (ac_try="$ac_compiler --version >&5"
  3380. case "(($ac_try" in
  3381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3382. *) ac_try_echo=$ac_try;;
  3383. esac
  3384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3385. (eval "$ac_compiler --version >&5") 2>&5
  3386. ac_status=$?
  3387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3388. (exit $ac_status); }
  3389. { (ac_try="$ac_compiler -v >&5"
  3390. case "(($ac_try" in
  3391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3392. *) ac_try_echo=$ac_try;;
  3393. esac
  3394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3395. (eval "$ac_compiler -v >&5") 2>&5
  3396. ac_status=$?
  3397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3398. (exit $ac_status); }
  3399. { (ac_try="$ac_compiler -V >&5"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3405. (eval "$ac_compiler -V >&5") 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }
  3409. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3410. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3411. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3412. echo $ECHO_N "(cached) $ECHO_C" >&6
  3413. else
  3414. cat >conftest.$ac_ext <<_ACEOF
  3415. /* confdefs.h. */
  3416. _ACEOF
  3417. cat confdefs.h >>conftest.$ac_ext
  3418. cat >>conftest.$ac_ext <<_ACEOF
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. #ifndef __GNUC__
  3424. choke me
  3425. #endif
  3426. ;
  3427. return 0;
  3428. }
  3429. _ACEOF
  3430. rm -f conftest.$ac_objext
  3431. if { (ac_try="$ac_compile"
  3432. case "(($ac_try" in
  3433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3434. *) ac_try_echo=$ac_try;;
  3435. esac
  3436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3437. (eval "$ac_compile") 2>conftest.er1
  3438. ac_status=$?
  3439. grep -v '^ *+' conftest.er1 >conftest.err
  3440. rm -f conftest.er1
  3441. cat conftest.err >&5
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } && {
  3444. test -z "$ac_c_werror_flag" ||
  3445. test ! -s conftest.err
  3446. } && test -s conftest.$ac_objext; then
  3447. ac_compiler_gnu=yes
  3448. else
  3449. echo "$as_me: failed program was:" >&5
  3450. sed 's/^/| /' conftest.$ac_ext >&5
  3451. ac_compiler_gnu=no
  3452. fi
  3453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3454. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3455. fi
  3456. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3457. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3458. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3459. ac_test_CFLAGS=${CFLAGS+set}
  3460. ac_save_CFLAGS=$CFLAGS
  3461. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3462. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3463. if test "${ac_cv_prog_cc_g+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. ac_save_c_werror_flag=$ac_c_werror_flag
  3467. ac_c_werror_flag=yes
  3468. ac_cv_prog_cc_g=no
  3469. CFLAGS="-g"
  3470. cat >conftest.$ac_ext <<_ACEOF
  3471. /* confdefs.h. */
  3472. _ACEOF
  3473. cat confdefs.h >>conftest.$ac_ext
  3474. cat >>conftest.$ac_ext <<_ACEOF
  3475. /* end confdefs.h. */
  3476. int
  3477. main ()
  3478. {
  3479. ;
  3480. return 0;
  3481. }
  3482. _ACEOF
  3483. rm -f conftest.$ac_objext
  3484. if { (ac_try="$ac_compile"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3490. (eval "$ac_compile") 2>conftest.er1
  3491. ac_status=$?
  3492. grep -v '^ *+' conftest.er1 >conftest.err
  3493. rm -f conftest.er1
  3494. cat conftest.err >&5
  3495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3496. (exit $ac_status); } && {
  3497. test -z "$ac_c_werror_flag" ||
  3498. test ! -s conftest.err
  3499. } && test -s conftest.$ac_objext; then
  3500. ac_cv_prog_cc_g=yes
  3501. else
  3502. echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. CFLAGS=""
  3505. cat >conftest.$ac_ext <<_ACEOF
  3506. /* confdefs.h. */
  3507. _ACEOF
  3508. cat confdefs.h >>conftest.$ac_ext
  3509. cat >>conftest.$ac_ext <<_ACEOF
  3510. /* end confdefs.h. */
  3511. int
  3512. main ()
  3513. {
  3514. ;
  3515. return 0;
  3516. }
  3517. _ACEOF
  3518. rm -f conftest.$ac_objext
  3519. if { (ac_try="$ac_compile"
  3520. case "(($ac_try" in
  3521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3522. *) ac_try_echo=$ac_try;;
  3523. esac
  3524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3525. (eval "$ac_compile") 2>conftest.er1
  3526. ac_status=$?
  3527. grep -v '^ *+' conftest.er1 >conftest.err
  3528. rm -f conftest.er1
  3529. cat conftest.err >&5
  3530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3531. (exit $ac_status); } && {
  3532. test -z "$ac_c_werror_flag" ||
  3533. test ! -s conftest.err
  3534. } && test -s conftest.$ac_objext; then
  3535. :
  3536. else
  3537. echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. ac_c_werror_flag=$ac_save_c_werror_flag
  3540. CFLAGS="-g"
  3541. cat >conftest.$ac_ext <<_ACEOF
  3542. /* confdefs.h. */
  3543. _ACEOF
  3544. cat confdefs.h >>conftest.$ac_ext
  3545. cat >>conftest.$ac_ext <<_ACEOF
  3546. /* end confdefs.h. */
  3547. int
  3548. main ()
  3549. {
  3550. ;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. rm -f conftest.$ac_objext
  3555. if { (ac_try="$ac_compile"
  3556. case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3561. (eval "$ac_compile") 2>conftest.er1
  3562. ac_status=$?
  3563. grep -v '^ *+' conftest.er1 >conftest.err
  3564. rm -f conftest.er1
  3565. cat conftest.err >&5
  3566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567. (exit $ac_status); } && {
  3568. test -z "$ac_c_werror_flag" ||
  3569. test ! -s conftest.err
  3570. } && test -s conftest.$ac_objext; then
  3571. ac_cv_prog_cc_g=yes
  3572. else
  3573. echo "$as_me: failed program was:" >&5
  3574. sed 's/^/| /' conftest.$ac_ext >&5
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3577. fi
  3578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3579. fi
  3580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3581. ac_c_werror_flag=$ac_save_c_werror_flag
  3582. fi
  3583. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3584. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3585. if test "$ac_test_CFLAGS" = set; then
  3586. CFLAGS=$ac_save_CFLAGS
  3587. elif test $ac_cv_prog_cc_g = yes; then
  3588. if test "$GCC" = yes; then
  3589. CFLAGS="-g -O2"
  3590. else
  3591. CFLAGS="-g"
  3592. fi
  3593. else
  3594. if test "$GCC" = yes; then
  3595. CFLAGS="-O2"
  3596. else
  3597. CFLAGS=
  3598. fi
  3599. fi
  3600. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3601. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3602. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3603. echo $ECHO_N "(cached) $ECHO_C" >&6
  3604. else
  3605. ac_cv_prog_cc_c89=no
  3606. ac_save_CC=$CC
  3607. cat >conftest.$ac_ext <<_ACEOF
  3608. /* confdefs.h. */
  3609. _ACEOF
  3610. cat confdefs.h >>conftest.$ac_ext
  3611. cat >>conftest.$ac_ext <<_ACEOF
  3612. /* end confdefs.h. */
  3613. #include <stdarg.h>
  3614. #include <stdio.h>
  3615. #include <sys/types.h>
  3616. #include <sys/stat.h>
  3617. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3618. struct buf { int x; };
  3619. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3620. static char *e (p, i)
  3621. char **p;
  3622. int i;
  3623. {
  3624. return p[i];
  3625. }
  3626. static char *f (char * (*g) (char **, int), char **p, ...)
  3627. {
  3628. char *s;
  3629. va_list v;
  3630. va_start (v,p);
  3631. s = g (p, va_arg (v,int));
  3632. va_end (v);
  3633. return s;
  3634. }
  3635. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3636. function prototypes and stuff, but not '\xHH' hex character constants.
  3637. These don't provoke an error unfortunately, instead are silently treated
  3638. as 'x'. The following induces an error, until -std is added to get
  3639. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3640. array size at least. It's necessary to write '\x00'==0 to get something
  3641. that's true only with -std. */
  3642. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3643. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3644. inside strings and character constants. */
  3645. #define FOO(x) 'x'
  3646. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3647. int test (int i, double x);
  3648. struct s1 {int (*f) (int a);};
  3649. struct s2 {int (*f) (double a);};
  3650. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3651. int argc;
  3652. char **argv;
  3653. int
  3654. main ()
  3655. {
  3656. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3662. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3663. do
  3664. CC="$ac_save_CC $ac_arg"
  3665. rm -f conftest.$ac_objext
  3666. if { (ac_try="$ac_compile"
  3667. case "(($ac_try" in
  3668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3669. *) ac_try_echo=$ac_try;;
  3670. esac
  3671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3672. (eval "$ac_compile") 2>conftest.er1
  3673. ac_status=$?
  3674. grep -v '^ *+' conftest.er1 >conftest.err
  3675. rm -f conftest.er1
  3676. cat conftest.err >&5
  3677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3678. (exit $ac_status); } && {
  3679. test -z "$ac_c_werror_flag" ||
  3680. test ! -s conftest.err
  3681. } && test -s conftest.$ac_objext; then
  3682. ac_cv_prog_cc_c89=$ac_arg
  3683. else
  3684. echo "$as_me: failed program was:" >&5
  3685. sed 's/^/| /' conftest.$ac_ext >&5
  3686. fi
  3687. rm -f core conftest.err conftest.$ac_objext
  3688. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3689. done
  3690. rm -f conftest.$ac_ext
  3691. CC=$ac_save_CC
  3692. fi
  3693. # AC_CACHE_VAL
  3694. case "x$ac_cv_prog_cc_c89" in
  3695. x)
  3696. { echo "$as_me:$LINENO: result: none needed" >&5
  3697. echo "${ECHO_T}none needed" >&6; } ;;
  3698. xno)
  3699. { echo "$as_me:$LINENO: result: unsupported" >&5
  3700. echo "${ECHO_T}unsupported" >&6; } ;;
  3701. *)
  3702. CC="$CC $ac_cv_prog_cc_c89"
  3703. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3704. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3705. esac
  3706. ac_ext=c
  3707. ac_cpp='$CPP $CPPFLAGS'
  3708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3711. depcc="$CC" am_compiler_list=
  3712. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3713. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3714. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3715. echo $ECHO_N "(cached) $ECHO_C" >&6
  3716. else
  3717. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3718. # We make a subdir and do the tests there. Otherwise we can end up
  3719. # making bogus files that we don't know about and never remove. For
  3720. # instance it was reported that on HP-UX the gcc test will end up
  3721. # making a dummy file named `D' -- because `-MD' means `put the output
  3722. # in D'.
  3723. mkdir conftest.dir
  3724. # Copy depcomp to subdir because otherwise we won't find it if we're
  3725. # using a relative directory.
  3726. cp "$am_depcomp" conftest.dir
  3727. cd conftest.dir
  3728. # We will build objects and dependencies in a subdirectory because
  3729. # it helps to detect inapplicable dependency modes. For instance
  3730. # both Tru64's cc and ICC support -MD to output dependencies as a
  3731. # side effect of compilation, but ICC will put the dependencies in
  3732. # the current directory while Tru64 will put them in the object
  3733. # directory.
  3734. mkdir sub
  3735. am_cv_CC_dependencies_compiler_type=none
  3736. if test "$am_compiler_list" = ""; then
  3737. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3738. fi
  3739. for depmode in $am_compiler_list; do
  3740. # Setup a source with many dependencies, because some compilers
  3741. # like to wrap large dependency lists on column 80 (with \), and
  3742. # we should not choose a depcomp mode which is confused by this.
  3743. #
  3744. # We need to recreate these files for each test, as the compiler may
  3745. # overwrite some of them when testing with obscure command lines.
  3746. # This happens at least with the AIX C compiler.
  3747. : > sub/conftest.c
  3748. for i in 1 2 3 4 5 6; do
  3749. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3750. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3751. # Solaris 8's {/usr,}/bin/sh.
  3752. touch sub/conftst$i.h
  3753. done
  3754. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3755. case $depmode in
  3756. nosideeffect)
  3757. # after this tag, mechanisms are not by side-effect, so they'll
  3758. # only be used when explicitly requested
  3759. if test "x$enable_dependency_tracking" = xyes; then
  3760. continue
  3761. else
  3762. break
  3763. fi
  3764. ;;
  3765. none) break ;;
  3766. esac
  3767. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3768. # mode. It turns out that the SunPro C++ compiler does not properly
  3769. # handle `-M -o', and we need to detect this.
  3770. if depmode=$depmode \
  3771. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3772. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3773. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3774. >/dev/null 2>conftest.err &&
  3775. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3776. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3777. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3778. # icc doesn't choke on unknown options, it will just issue warnings
  3779. # or remarks (even with -Werror). So we grep stderr for any message
  3780. # that says an option was ignored or not supported.
  3781. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3782. # icc: Command line warning: ignoring option '-M'; no argument required
  3783. # The diagnosis changed in icc 8.0:
  3784. # icc: Command line remark: option '-MP' not supported
  3785. if (grep 'ignoring option' conftest.err ||
  3786. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3787. am_cv_CC_dependencies_compiler_type=$depmode
  3788. break
  3789. fi
  3790. fi
  3791. done
  3792. cd ..
  3793. rm -rf conftest.dir
  3794. else
  3795. am_cv_CC_dependencies_compiler_type=none
  3796. fi
  3797. fi
  3798. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3799. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3800. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3801. if
  3802. test "x$enable_dependency_tracking" != xno \
  3803. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3804. am__fastdepCC_TRUE=
  3805. am__fastdepCC_FALSE='#'
  3806. else
  3807. am__fastdepCC_TRUE='#'
  3808. am__fastdepCC_FALSE=
  3809. fi
  3810. # Find a good install program. We prefer a C program (faster),
  3811. # so one script is as good as another. But avoid the broken or
  3812. # incompatible versions:
  3813. # SysV /etc/install, /usr/sbin/install
  3814. # SunOS /usr/etc/install
  3815. # IRIX /sbin/install
  3816. # AIX /bin/install
  3817. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3818. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3819. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3820. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3821. # OS/2's system install, which has a completely different semantic
  3822. # ./install, which can be erroneously created by make from ./install.sh.
  3823. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3824. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3825. if test -z "$INSTALL"; then
  3826. if test "${ac_cv_path_install+set}" = set; then
  3827. echo $ECHO_N "(cached) $ECHO_C" >&6
  3828. else
  3829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3830. for as_dir in $PATH
  3831. do
  3832. IFS=$as_save_IFS
  3833. test -z "$as_dir" && as_dir=.
  3834. # Account for people who put trailing slashes in PATH elements.
  3835. case $as_dir/ in
  3836. ./ | .// | /cC/* | \
  3837. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3838. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3839. /usr/ucb/* ) ;;
  3840. *)
  3841. # OSF1 and SCO ODT 3.0 have their own names for install.
  3842. # Don't use installbsd from OSF since it installs stuff as root
  3843. # by default.
  3844. for ac_prog in ginstall scoinst install; do
  3845. for ac_exec_ext in '' $ac_executable_extensions; do
  3846. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3847. if test $ac_prog = install &&
  3848. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3849. # AIX install. It has an incompatible calling convention.
  3850. :
  3851. elif test $ac_prog = install &&
  3852. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3853. # program-specific install script used by HP pwplus--don't use.
  3854. :
  3855. else
  3856. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3857. break 3
  3858. fi
  3859. fi
  3860. done
  3861. done
  3862. ;;
  3863. esac
  3864. done
  3865. IFS=$as_save_IFS
  3866. fi
  3867. if test "${ac_cv_path_install+set}" = set; then
  3868. INSTALL=$ac_cv_path_install
  3869. else
  3870. # As a last resort, use the slow shell script. Don't cache a
  3871. # value for INSTALL within a source directory, because that will
  3872. # break other packages using the cache if that directory is
  3873. # removed, or if the value is a relative name.
  3874. INSTALL=$ac_install_sh
  3875. fi
  3876. fi
  3877. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3878. echo "${ECHO_T}$INSTALL" >&6; }
  3879. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3880. # It thinks the first close brace ends the variable substitution.
  3881. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3882. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3883. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3884. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3885. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3886. if test -z "$MKDIR_P"; then
  3887. if test "${ac_cv_path_mkdir+set}" = set; then
  3888. echo $ECHO_N "(cached) $ECHO_C" >&6
  3889. else
  3890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3892. do
  3893. IFS=$as_save_IFS
  3894. test -z "$as_dir" && as_dir=.
  3895. for ac_prog in mkdir gmkdir; do
  3896. for ac_exec_ext in '' $ac_executable_extensions; do
  3897. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3898. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3899. 'mkdir (GNU coreutils) '* | \
  3900. 'mkdir (coreutils) '* | \
  3901. 'mkdir (fileutils) '4.1*)
  3902. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3903. break 3;;
  3904. esac
  3905. done
  3906. done
  3907. done
  3908. IFS=$as_save_IFS
  3909. fi
  3910. if test "${ac_cv_path_mkdir+set}" = set; then
  3911. MKDIR_P="$ac_cv_path_mkdir -p"
  3912. else
  3913. # As a last resort, use the slow shell script. Don't cache a
  3914. # value for MKDIR_P within a source directory, because that will
  3915. # break other packages using the cache if that directory is
  3916. # removed, or if the value is a relative name.
  3917. test -d ./--version && rmdir ./--version
  3918. MKDIR_P="$ac_install_sh -d"
  3919. fi
  3920. fi
  3921. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3922. echo "${ECHO_T}$MKDIR_P" >&6; }
  3923. if test -n "$ac_tool_prefix"; then
  3924. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3925. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3928. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3929. echo $ECHO_N "(cached) $ECHO_C" >&6
  3930. else
  3931. if test -n "$RANLIB"; then
  3932. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_exec_ext in '' $ac_executable_extensions; do
  3940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3941. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. fi
  3949. fi
  3950. RANLIB=$ac_cv_prog_RANLIB
  3951. if test -n "$RANLIB"; then
  3952. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3953. echo "${ECHO_T}$RANLIB" >&6; }
  3954. else
  3955. { echo "$as_me:$LINENO: result: no" >&5
  3956. echo "${ECHO_T}no" >&6; }
  3957. fi
  3958. fi
  3959. if test -z "$ac_cv_prog_RANLIB"; then
  3960. ac_ct_RANLIB=$RANLIB
  3961. # Extract the first word of "ranlib", so it can be a program name with args.
  3962. set dummy ranlib; ac_word=$2
  3963. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3964. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3965. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3966. echo $ECHO_N "(cached) $ECHO_C" >&6
  3967. else
  3968. if test -n "$ac_ct_RANLIB"; then
  3969. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3978. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3979. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3988. if test -n "$ac_ct_RANLIB"; then
  3989. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3990. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3991. else
  3992. { echo "$as_me:$LINENO: result: no" >&5
  3993. echo "${ECHO_T}no" >&6; }
  3994. fi
  3995. if test "x$ac_ct_RANLIB" = x; then
  3996. RANLIB=":"
  3997. else
  3998. case $cross_compiling:$ac_tool_warned in
  3999. yes:)
  4000. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4001. whose name does not start with the host triplet. If you think this
  4002. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4003. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4004. whose name does not start with the host triplet. If you think this
  4005. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4006. ac_tool_warned=yes ;;
  4007. esac
  4008. RANLIB=$ac_ct_RANLIB
  4009. fi
  4010. else
  4011. RANLIB="$ac_cv_prog_RANLIB"
  4012. fi
  4013. for ac_prog in 'bison -y' byacc
  4014. do
  4015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4016. set dummy $ac_prog; ac_word=$2
  4017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4019. if test "${ac_cv_prog_YACC+set}" = set; then
  4020. echo $ECHO_N "(cached) $ECHO_C" >&6
  4021. else
  4022. if test -n "$YACC"; then
  4023. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4024. else
  4025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4026. for as_dir in $PATH
  4027. do
  4028. IFS=$as_save_IFS
  4029. test -z "$as_dir" && as_dir=.
  4030. for ac_exec_ext in '' $ac_executable_extensions; do
  4031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4032. ac_cv_prog_YACC="$ac_prog"
  4033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4034. break 2
  4035. fi
  4036. done
  4037. done
  4038. IFS=$as_save_IFS
  4039. fi
  4040. fi
  4041. YACC=$ac_cv_prog_YACC
  4042. if test -n "$YACC"; then
  4043. { echo "$as_me:$LINENO: result: $YACC" >&5
  4044. echo "${ECHO_T}$YACC" >&6; }
  4045. else
  4046. { echo "$as_me:$LINENO: result: no" >&5
  4047. echo "${ECHO_T}no" >&6; }
  4048. fi
  4049. test -n "$YACC" && break
  4050. done
  4051. test -n "$YACC" || YACC="yacc"
  4052. # Setting language choice
  4053. ac_ext=cpp
  4054. ac_cpp='$CXXCPP $CPPFLAGS'
  4055. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4056. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4057. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4058. # Check for GNU library
  4059. cat >>confdefs.h <<\_ACEOF
  4060. #define _GNU_SOURCE 1
  4061. _ACEOF
  4062. # Enable system extensions
  4063. ac_ext=cpp
  4064. ac_cpp='$CXXCPP $CPPFLAGS'
  4065. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4066. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4067. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4068. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4069. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4070. if test -z "$CXXCPP"; then
  4071. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. # Double quotes because CXXCPP needs to be expanded
  4075. for CXXCPP in "$CXX -E" "/lib/cpp"
  4076. do
  4077. ac_preproc_ok=false
  4078. for ac_cxx_preproc_warn_flag in '' yes
  4079. do
  4080. # Use a header file that comes with gcc, so configuring glibc
  4081. # with a fresh cross-compiler works.
  4082. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4083. # <limits.h> exists even on freestanding compilers.
  4084. # On the NeXT, cc -E runs the code through the compiler's parser,
  4085. # not just through cpp. "Syntax error" is here to catch this case.
  4086. cat >conftest.$ac_ext <<_ACEOF
  4087. /* confdefs.h. */
  4088. _ACEOF
  4089. cat confdefs.h >>conftest.$ac_ext
  4090. cat >>conftest.$ac_ext <<_ACEOF
  4091. /* end confdefs.h. */
  4092. #ifdef __STDC__
  4093. # include <limits.h>
  4094. #else
  4095. # include <assert.h>
  4096. #endif
  4097. Syntax error
  4098. _ACEOF
  4099. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4100. case "(($ac_try" in
  4101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4102. *) ac_try_echo=$ac_try;;
  4103. esac
  4104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4105. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4106. ac_status=$?
  4107. grep -v '^ *+' conftest.er1 >conftest.err
  4108. rm -f conftest.er1
  4109. cat conftest.err >&5
  4110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4111. (exit $ac_status); } >/dev/null && {
  4112. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4113. test ! -s conftest.err
  4114. }; then
  4115. :
  4116. else
  4117. echo "$as_me: failed program was:" >&5
  4118. sed 's/^/| /' conftest.$ac_ext >&5
  4119. # Broken: fails on valid input.
  4120. continue
  4121. fi
  4122. rm -f conftest.err conftest.$ac_ext
  4123. # OK, works on sane cases. Now check whether nonexistent headers
  4124. # can be detected and how.
  4125. cat >conftest.$ac_ext <<_ACEOF
  4126. /* confdefs.h. */
  4127. _ACEOF
  4128. cat confdefs.h >>conftest.$ac_ext
  4129. cat >>conftest.$ac_ext <<_ACEOF
  4130. /* end confdefs.h. */
  4131. #include <ac_nonexistent.h>
  4132. _ACEOF
  4133. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4134. case "(($ac_try" in
  4135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4136. *) ac_try_echo=$ac_try;;
  4137. esac
  4138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4139. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4140. ac_status=$?
  4141. grep -v '^ *+' conftest.er1 >conftest.err
  4142. rm -f conftest.er1
  4143. cat conftest.err >&5
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); } >/dev/null && {
  4146. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4147. test ! -s conftest.err
  4148. }; then
  4149. # Broken: success on invalid input.
  4150. continue
  4151. else
  4152. echo "$as_me: failed program was:" >&5
  4153. sed 's/^/| /' conftest.$ac_ext >&5
  4154. # Passes both tests.
  4155. ac_preproc_ok=:
  4156. break
  4157. fi
  4158. rm -f conftest.err conftest.$ac_ext
  4159. done
  4160. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4161. rm -f conftest.err conftest.$ac_ext
  4162. if $ac_preproc_ok; then
  4163. break
  4164. fi
  4165. done
  4166. ac_cv_prog_CXXCPP=$CXXCPP
  4167. fi
  4168. CXXCPP=$ac_cv_prog_CXXCPP
  4169. else
  4170. ac_cv_prog_CXXCPP=$CXXCPP
  4171. fi
  4172. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4173. echo "${ECHO_T}$CXXCPP" >&6; }
  4174. ac_preproc_ok=false
  4175. for ac_cxx_preproc_warn_flag in '' yes
  4176. do
  4177. # Use a header file that comes with gcc, so configuring glibc
  4178. # with a fresh cross-compiler works.
  4179. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4180. # <limits.h> exists even on freestanding compilers.
  4181. # On the NeXT, cc -E runs the code through the compiler's parser,
  4182. # not just through cpp. "Syntax error" is here to catch this case.
  4183. cat >conftest.$ac_ext <<_ACEOF
  4184. /* confdefs.h. */
  4185. _ACEOF
  4186. cat confdefs.h >>conftest.$ac_ext
  4187. cat >>conftest.$ac_ext <<_ACEOF
  4188. /* end confdefs.h. */
  4189. #ifdef __STDC__
  4190. # include <limits.h>
  4191. #else
  4192. # include <assert.h>
  4193. #endif
  4194. Syntax error
  4195. _ACEOF
  4196. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4197. case "(($ac_try" in
  4198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4199. *) ac_try_echo=$ac_try;;
  4200. esac
  4201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4202. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4203. ac_status=$?
  4204. grep -v '^ *+' conftest.er1 >conftest.err
  4205. rm -f conftest.er1
  4206. cat conftest.err >&5
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); } >/dev/null && {
  4209. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4210. test ! -s conftest.err
  4211. }; then
  4212. :
  4213. else
  4214. echo "$as_me: failed program was:" >&5
  4215. sed 's/^/| /' conftest.$ac_ext >&5
  4216. # Broken: fails on valid input.
  4217. continue
  4218. fi
  4219. rm -f conftest.err conftest.$ac_ext
  4220. # OK, works on sane cases. Now check whether nonexistent headers
  4221. # can be detected and how.
  4222. cat >conftest.$ac_ext <<_ACEOF
  4223. /* confdefs.h. */
  4224. _ACEOF
  4225. cat confdefs.h >>conftest.$ac_ext
  4226. cat >>conftest.$ac_ext <<_ACEOF
  4227. /* end confdefs.h. */
  4228. #include <ac_nonexistent.h>
  4229. _ACEOF
  4230. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4231. case "(($ac_try" in
  4232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4233. *) ac_try_echo=$ac_try;;
  4234. esac
  4235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4236. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } >/dev/null && {
  4243. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4244. test ! -s conftest.err
  4245. }; then
  4246. # Broken: success on invalid input.
  4247. continue
  4248. else
  4249. echo "$as_me: failed program was:" >&5
  4250. sed 's/^/| /' conftest.$ac_ext >&5
  4251. # Passes both tests.
  4252. ac_preproc_ok=:
  4253. break
  4254. fi
  4255. rm -f conftest.err conftest.$ac_ext
  4256. done
  4257. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4258. rm -f conftest.err conftest.$ac_ext
  4259. if $ac_preproc_ok; then
  4260. :
  4261. else
  4262. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4263. See \`config.log' for more details." >&5
  4264. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4265. See \`config.log' for more details." >&2;}
  4266. { (exit 1); exit 1; }; }
  4267. fi
  4268. ac_ext=cpp
  4269. ac_cpp='$CXXCPP $CPPFLAGS'
  4270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4273. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4274. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4275. if test "${ac_cv_path_GREP+set}" = set; then
  4276. echo $ECHO_N "(cached) $ECHO_C" >&6
  4277. else
  4278. # Extract the first word of "grep ggrep" to use in msg output
  4279. if test -z "$GREP"; then
  4280. set dummy grep ggrep; ac_prog_name=$2
  4281. if test "${ac_cv_path_GREP+set}" = set; then
  4282. echo $ECHO_N "(cached) $ECHO_C" >&6
  4283. else
  4284. ac_path_GREP_found=false
  4285. # Loop through the user's path and test for each of PROGNAME-LIST
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4288. do
  4289. IFS=$as_save_IFS
  4290. test -z "$as_dir" && as_dir=.
  4291. for ac_prog in grep ggrep; do
  4292. for ac_exec_ext in '' $ac_executable_extensions; do
  4293. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4294. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4295. # Check for GNU ac_path_GREP and select it if it is found.
  4296. # Check for GNU $ac_path_GREP
  4297. case `"$ac_path_GREP" --version 2>&1` in
  4298. *GNU*)
  4299. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4300. *)
  4301. ac_count=0
  4302. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4303. while :
  4304. do
  4305. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4306. mv "conftest.tmp" "conftest.in"
  4307. cp "conftest.in" "conftest.nl"
  4308. echo 'GREP' >> "conftest.nl"
  4309. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4310. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4311. ac_count=`expr $ac_count + 1`
  4312. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4313. # Best one so far, save it but keep looking for a better one
  4314. ac_cv_path_GREP="$ac_path_GREP"
  4315. ac_path_GREP_max=$ac_count
  4316. fi
  4317. # 10*(2^10) chars as input seems more than enough
  4318. test $ac_count -gt 10 && break
  4319. done
  4320. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4321. esac
  4322. $ac_path_GREP_found && break 3
  4323. done
  4324. done
  4325. done
  4326. IFS=$as_save_IFS
  4327. fi
  4328. GREP="$ac_cv_path_GREP"
  4329. if test -z "$GREP"; then
  4330. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4331. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4332. { (exit 1); exit 1; }; }
  4333. fi
  4334. else
  4335. ac_cv_path_GREP=$GREP
  4336. fi
  4337. fi
  4338. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4339. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4340. GREP="$ac_cv_path_GREP"
  4341. { echo "$as_me:$LINENO: checking for egrep" >&5
  4342. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4343. if test "${ac_cv_path_EGREP+set}" = set; then
  4344. echo $ECHO_N "(cached) $ECHO_C" >&6
  4345. else
  4346. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4347. then ac_cv_path_EGREP="$GREP -E"
  4348. else
  4349. # Extract the first word of "egrep" to use in msg output
  4350. if test -z "$EGREP"; then
  4351. set dummy egrep; ac_prog_name=$2
  4352. if test "${ac_cv_path_EGREP+set}" = set; then
  4353. echo $ECHO_N "(cached) $ECHO_C" >&6
  4354. else
  4355. ac_path_EGREP_found=false
  4356. # Loop through the user's path and test for each of PROGNAME-LIST
  4357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4358. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4359. do
  4360. IFS=$as_save_IFS
  4361. test -z "$as_dir" && as_dir=.
  4362. for ac_prog in egrep; do
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4365. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4366. # Check for GNU ac_path_EGREP and select it if it is found.
  4367. # Check for GNU $ac_path_EGREP
  4368. case `"$ac_path_EGREP" --version 2>&1` in
  4369. *GNU*)
  4370. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4371. *)
  4372. ac_count=0
  4373. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4374. while :
  4375. do
  4376. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4377. mv "conftest.tmp" "conftest.in"
  4378. cp "conftest.in" "conftest.nl"
  4379. echo 'EGREP' >> "conftest.nl"
  4380. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4381. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4382. ac_count=`expr $ac_count + 1`
  4383. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4384. # Best one so far, save it but keep looking for a better one
  4385. ac_cv_path_EGREP="$ac_path_EGREP"
  4386. ac_path_EGREP_max=$ac_count
  4387. fi
  4388. # 10*(2^10) chars as input seems more than enough
  4389. test $ac_count -gt 10 && break
  4390. done
  4391. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4392. esac
  4393. $ac_path_EGREP_found && break 3
  4394. done
  4395. done
  4396. done
  4397. IFS=$as_save_IFS
  4398. fi
  4399. EGREP="$ac_cv_path_EGREP"
  4400. if test -z "$EGREP"; then
  4401. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4402. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4403. { (exit 1); exit 1; }; }
  4404. fi
  4405. else
  4406. ac_cv_path_EGREP=$EGREP
  4407. fi
  4408. fi
  4409. fi
  4410. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4411. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4412. EGREP="$ac_cv_path_EGREP"
  4413. { echo "$as_me:$LINENO: checking for AIX" >&5
  4414. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4415. cat >conftest.$ac_ext <<_ACEOF
  4416. /* confdefs.h. */
  4417. _ACEOF
  4418. cat confdefs.h >>conftest.$ac_ext
  4419. cat >>conftest.$ac_ext <<_ACEOF
  4420. /* end confdefs.h. */
  4421. #ifdef _AIX
  4422. yes
  4423. #endif
  4424. _ACEOF
  4425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4426. $EGREP "yes" >/dev/null 2>&1; then
  4427. { echo "$as_me:$LINENO: result: yes" >&5
  4428. echo "${ECHO_T}yes" >&6; }
  4429. cat >>confdefs.h <<\_ACEOF
  4430. #define _ALL_SOURCE 1
  4431. _ACEOF
  4432. else
  4433. { echo "$as_me:$LINENO: result: no" >&5
  4434. echo "${ECHO_T}no" >&6; }
  4435. fi
  4436. rm -f conftest*
  4437. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4438. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4439. if test "${ac_cv_header_stdc+set}" = set; then
  4440. echo $ECHO_N "(cached) $ECHO_C" >&6
  4441. else
  4442. cat >conftest.$ac_ext <<_ACEOF
  4443. /* confdefs.h. */
  4444. _ACEOF
  4445. cat confdefs.h >>conftest.$ac_ext
  4446. cat >>conftest.$ac_ext <<_ACEOF
  4447. /* end confdefs.h. */
  4448. #include <stdlib.h>
  4449. #include <stdarg.h>
  4450. #include <string.h>
  4451. #include <float.h>
  4452. int
  4453. main ()
  4454. {
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. rm -f conftest.$ac_objext
  4460. if { (ac_try="$ac_compile"
  4461. case "(($ac_try" in
  4462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4463. *) ac_try_echo=$ac_try;;
  4464. esac
  4465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4466. (eval "$ac_compile") 2>conftest.er1
  4467. ac_status=$?
  4468. grep -v '^ *+' conftest.er1 >conftest.err
  4469. rm -f conftest.er1
  4470. cat conftest.err >&5
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); } && {
  4473. test -z "$ac_cxx_werror_flag" ||
  4474. test ! -s conftest.err
  4475. } && test -s conftest.$ac_objext; then
  4476. ac_cv_header_stdc=yes
  4477. else
  4478. echo "$as_me: failed program was:" >&5
  4479. sed 's/^/| /' conftest.$ac_ext >&5
  4480. ac_cv_header_stdc=no
  4481. fi
  4482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4483. if test $ac_cv_header_stdc = yes; then
  4484. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4485. cat >conftest.$ac_ext <<_ACEOF
  4486. /* confdefs.h. */
  4487. _ACEOF
  4488. cat confdefs.h >>conftest.$ac_ext
  4489. cat >>conftest.$ac_ext <<_ACEOF
  4490. /* end confdefs.h. */
  4491. #include <string.h>
  4492. _ACEOF
  4493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4494. $EGREP "memchr" >/dev/null 2>&1; then
  4495. :
  4496. else
  4497. ac_cv_header_stdc=no
  4498. fi
  4499. rm -f conftest*
  4500. fi
  4501. if test $ac_cv_header_stdc = yes; then
  4502. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4503. cat >conftest.$ac_ext <<_ACEOF
  4504. /* confdefs.h. */
  4505. _ACEOF
  4506. cat confdefs.h >>conftest.$ac_ext
  4507. cat >>conftest.$ac_ext <<_ACEOF
  4508. /* end confdefs.h. */
  4509. #include <stdlib.h>
  4510. _ACEOF
  4511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4512. $EGREP "free" >/dev/null 2>&1; then
  4513. :
  4514. else
  4515. ac_cv_header_stdc=no
  4516. fi
  4517. rm -f conftest*
  4518. fi
  4519. if test $ac_cv_header_stdc = yes; then
  4520. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4521. if test "$cross_compiling" = yes; then
  4522. :
  4523. else
  4524. cat >conftest.$ac_ext <<_ACEOF
  4525. /* confdefs.h. */
  4526. _ACEOF
  4527. cat confdefs.h >>conftest.$ac_ext
  4528. cat >>conftest.$ac_ext <<_ACEOF
  4529. /* end confdefs.h. */
  4530. #include <ctype.h>
  4531. #include <stdlib.h>
  4532. #if ((' ' & 0x0FF) == 0x020)
  4533. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4534. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4535. #else
  4536. # define ISLOWER(c) \
  4537. (('a' <= (c) && (c) <= 'i') \
  4538. || ('j' <= (c) && (c) <= 'r') \
  4539. || ('s' <= (c) && (c) <= 'z'))
  4540. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4541. #endif
  4542. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4543. int
  4544. main ()
  4545. {
  4546. int i;
  4547. for (i = 0; i < 256; i++)
  4548. if (XOR (islower (i), ISLOWER (i))
  4549. || toupper (i) != TOUPPER (i))
  4550. return 2;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. rm -f conftest$ac_exeext
  4555. if { (ac_try="$ac_link"
  4556. case "(($ac_try" in
  4557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4558. *) ac_try_echo=$ac_try;;
  4559. esac
  4560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4561. (eval "$ac_link") 2>&5
  4562. ac_status=$?
  4563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4565. { (case "(($ac_try" in
  4566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4567. *) ac_try_echo=$ac_try;;
  4568. esac
  4569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4570. (eval "$ac_try") 2>&5
  4571. ac_status=$?
  4572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4573. (exit $ac_status); }; }; then
  4574. :
  4575. else
  4576. echo "$as_me: program exited with status $ac_status" >&5
  4577. echo "$as_me: failed program was:" >&5
  4578. sed 's/^/| /' conftest.$ac_ext >&5
  4579. ( exit $ac_status )
  4580. ac_cv_header_stdc=no
  4581. fi
  4582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4583. fi
  4584. fi
  4585. fi
  4586. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4587. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4588. if test $ac_cv_header_stdc = yes; then
  4589. cat >>confdefs.h <<\_ACEOF
  4590. #define STDC_HEADERS 1
  4591. _ACEOF
  4592. fi
  4593. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4594. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4595. inttypes.h stdint.h unistd.h
  4596. do
  4597. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4598. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4599. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4600. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4601. echo $ECHO_N "(cached) $ECHO_C" >&6
  4602. else
  4603. cat >conftest.$ac_ext <<_ACEOF
  4604. /* confdefs.h. */
  4605. _ACEOF
  4606. cat confdefs.h >>conftest.$ac_ext
  4607. cat >>conftest.$ac_ext <<_ACEOF
  4608. /* end confdefs.h. */
  4609. $ac_includes_default
  4610. #include <$ac_header>
  4611. _ACEOF
  4612. rm -f conftest.$ac_objext
  4613. if { (ac_try="$ac_compile"
  4614. case "(($ac_try" in
  4615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4616. *) ac_try_echo=$ac_try;;
  4617. esac
  4618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4619. (eval "$ac_compile") 2>conftest.er1
  4620. ac_status=$?
  4621. grep -v '^ *+' conftest.er1 >conftest.err
  4622. rm -f conftest.er1
  4623. cat conftest.err >&5
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); } && {
  4626. test -z "$ac_cxx_werror_flag" ||
  4627. test ! -s conftest.err
  4628. } && test -s conftest.$ac_objext; then
  4629. eval "$as_ac_Header=yes"
  4630. else
  4631. echo "$as_me: failed program was:" >&5
  4632. sed 's/^/| /' conftest.$ac_ext >&5
  4633. eval "$as_ac_Header=no"
  4634. fi
  4635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. fi
  4637. ac_res=`eval echo '${'$as_ac_Header'}'`
  4638. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4639. echo "${ECHO_T}$ac_res" >&6; }
  4640. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4641. cat >>confdefs.h <<_ACEOF
  4642. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4643. _ACEOF
  4644. fi
  4645. done
  4646. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4647. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4648. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4649. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4650. echo $ECHO_N "(cached) $ECHO_C" >&6
  4651. fi
  4652. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4653. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4654. else
  4655. # Is the header compilable?
  4656. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4657. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4658. cat >conftest.$ac_ext <<_ACEOF
  4659. /* confdefs.h. */
  4660. _ACEOF
  4661. cat confdefs.h >>conftest.$ac_ext
  4662. cat >>conftest.$ac_ext <<_ACEOF
  4663. /* end confdefs.h. */
  4664. $ac_includes_default
  4665. #include <minix/config.h>
  4666. _ACEOF
  4667. rm -f conftest.$ac_objext
  4668. if { (ac_try="$ac_compile"
  4669. case "(($ac_try" in
  4670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4671. *) ac_try_echo=$ac_try;;
  4672. esac
  4673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4674. (eval "$ac_compile") 2>conftest.er1
  4675. ac_status=$?
  4676. grep -v '^ *+' conftest.er1 >conftest.err
  4677. rm -f conftest.er1
  4678. cat conftest.err >&5
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); } && {
  4681. test -z "$ac_cxx_werror_flag" ||
  4682. test ! -s conftest.err
  4683. } && test -s conftest.$ac_objext; then
  4684. ac_header_compiler=yes
  4685. else
  4686. echo "$as_me: failed program was:" >&5
  4687. sed 's/^/| /' conftest.$ac_ext >&5
  4688. ac_header_compiler=no
  4689. fi
  4690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4691. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4692. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4693. # Is the header present?
  4694. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4695. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4696. cat >conftest.$ac_ext <<_ACEOF
  4697. /* confdefs.h. */
  4698. _ACEOF
  4699. cat confdefs.h >>conftest.$ac_ext
  4700. cat >>conftest.$ac_ext <<_ACEOF
  4701. /* end confdefs.h. */
  4702. #include <minix/config.h>
  4703. _ACEOF
  4704. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4705. case "(($ac_try" in
  4706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4707. *) ac_try_echo=$ac_try;;
  4708. esac
  4709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4710. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4711. ac_status=$?
  4712. grep -v '^ *+' conftest.er1 >conftest.err
  4713. rm -f conftest.er1
  4714. cat conftest.err >&5
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); } >/dev/null && {
  4717. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4718. test ! -s conftest.err
  4719. }; then
  4720. ac_header_preproc=yes
  4721. else
  4722. echo "$as_me: failed program was:" >&5
  4723. sed 's/^/| /' conftest.$ac_ext >&5
  4724. ac_header_preproc=no
  4725. fi
  4726. rm -f conftest.err conftest.$ac_ext
  4727. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4728. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4729. # So? What about this header?
  4730. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4731. yes:no: )
  4732. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4733. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4734. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4735. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4736. ac_header_preproc=yes
  4737. ;;
  4738. no:yes:* )
  4739. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4740. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4741. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4742. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4743. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4744. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4745. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4746. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4747. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4748. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4749. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4750. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4751. ( cat <<\_ASBOX
  4752. ## ----------------------------------------------- ##
  4753. ## Report this to t-tujikawa@users.sourceforge.net ##
  4754. ## ----------------------------------------------- ##
  4755. _ASBOX
  4756. ) | sed "s/^/$as_me: WARNING: /" >&2
  4757. ;;
  4758. esac
  4759. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4760. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4761. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4762. echo $ECHO_N "(cached) $ECHO_C" >&6
  4763. else
  4764. ac_cv_header_minix_config_h=$ac_header_preproc
  4765. fi
  4766. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4767. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4768. fi
  4769. if test $ac_cv_header_minix_config_h = yes; then
  4770. MINIX=yes
  4771. else
  4772. MINIX=
  4773. fi
  4774. if test "$MINIX" = yes; then
  4775. cat >>confdefs.h <<\_ACEOF
  4776. #define _POSIX_SOURCE 1
  4777. _ACEOF
  4778. cat >>confdefs.h <<\_ACEOF
  4779. #define _POSIX_1_SOURCE 2
  4780. _ACEOF
  4781. cat >>confdefs.h <<\_ACEOF
  4782. #define _MINIX 1
  4783. _ACEOF
  4784. fi
  4785. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4786. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4787. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4788. echo $ECHO_N "(cached) $ECHO_C" >&6
  4789. else
  4790. cat >conftest.$ac_ext <<_ACEOF
  4791. /* confdefs.h. */
  4792. _ACEOF
  4793. cat confdefs.h >>conftest.$ac_ext
  4794. cat >>conftest.$ac_ext <<_ACEOF
  4795. /* end confdefs.h. */
  4796. # define __EXTENSIONS__ 1
  4797. $ac_includes_default
  4798. int
  4799. main ()
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext
  4806. if { (ac_try="$ac_compile"
  4807. case "(($ac_try" in
  4808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4809. *) ac_try_echo=$ac_try;;
  4810. esac
  4811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4812. (eval "$ac_compile") 2>conftest.er1
  4813. ac_status=$?
  4814. grep -v '^ *+' conftest.er1 >conftest.err
  4815. rm -f conftest.er1
  4816. cat conftest.err >&5
  4817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4818. (exit $ac_status); } && {
  4819. test -z "$ac_cxx_werror_flag" ||
  4820. test ! -s conftest.err
  4821. } && test -s conftest.$ac_objext; then
  4822. ac_cv_safe_to_define___extensions__=yes
  4823. else
  4824. echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826. ac_cv_safe_to_define___extensions__=no
  4827. fi
  4828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4829. fi
  4830. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4831. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4832. test $ac_cv_safe_to_define___extensions__ = yes &&
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define __EXTENSIONS__ 1
  4835. _ACEOF
  4836. cat >>confdefs.h <<\_ACEOF
  4837. #define _POSIX_PTHREAD_SEMANTICS 1
  4838. _ACEOF
  4839. cat >>confdefs.h <<\_ACEOF
  4840. #define _TANDEM_SOURCE 1
  4841. _ACEOF
  4842. # Checks for libraries.
  4843. if test "x$with_libxml2" = "xyes"; then
  4844. # Check whether --with-xml-prefix was given.
  4845. if test "${with_xml_prefix+set}" = set; then
  4846. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4847. else
  4848. xml_config_prefix=""
  4849. fi
  4850. # Check whether --with-xml-exec-prefix was given.
  4851. if test "${with_xml_exec_prefix+set}" = set; then
  4852. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4853. else
  4854. xml_config_exec_prefix=""
  4855. fi
  4856. # Check whether --enable-xmltest was given.
  4857. if test "${enable_xmltest+set}" = set; then
  4858. enableval=$enable_xmltest;
  4859. else
  4860. enable_xmltest=yes
  4861. fi
  4862. if test x$xml_config_exec_prefix != x ; then
  4863. xml_config_args="$xml_config_args"
  4864. if test x${XML2_CONFIG+set} != xset ; then
  4865. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4866. fi
  4867. fi
  4868. if test x$xml_config_prefix != x ; then
  4869. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4870. if test x${XML2_CONFIG+set} != xset ; then
  4871. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4872. fi
  4873. fi
  4874. # Extract the first word of "xml2-config", so it can be a program name with args.
  4875. set dummy xml2-config; ac_word=$2
  4876. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4877. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4878. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4879. echo $ECHO_N "(cached) $ECHO_C" >&6
  4880. else
  4881. case $XML2_CONFIG in
  4882. [\\/]* | ?:[\\/]*)
  4883. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4884. ;;
  4885. *)
  4886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4887. for as_dir in $PATH
  4888. do
  4889. IFS=$as_save_IFS
  4890. test -z "$as_dir" && as_dir=.
  4891. for ac_exec_ext in '' $ac_executable_extensions; do
  4892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4893. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4894. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4895. break 2
  4896. fi
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4901. ;;
  4902. esac
  4903. fi
  4904. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4905. if test -n "$XML2_CONFIG"; then
  4906. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4907. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4908. else
  4909. { echo "$as_me:$LINENO: result: no" >&5
  4910. echo "${ECHO_T}no" >&6; }
  4911. fi
  4912. min_xml_version=2.6.24
  4913. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4914. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4915. no_xml=""
  4916. if test "$XML2_CONFIG" = "no" ; then
  4917. no_xml=yes
  4918. else
  4919. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4920. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4921. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4922. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4923. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4924. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4925. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4926. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4927. if test "x$enable_xmltest" = "xyes" ; then
  4928. ac_save_CPPFLAGS="$CPPFLAGS"
  4929. ac_save_LIBS="$LIBS"
  4930. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4931. LIBS="$XML_LIBS $LIBS"
  4932. rm -f conf.xmltest
  4933. if test "$cross_compiling" = yes; then
  4934. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4935. else
  4936. cat >conftest.$ac_ext <<_ACEOF
  4937. /* confdefs.h. */
  4938. _ACEOF
  4939. cat confdefs.h >>conftest.$ac_ext
  4940. cat >>conftest.$ac_ext <<_ACEOF
  4941. /* end confdefs.h. */
  4942. #include <stdlib.h>
  4943. #include <stdio.h>
  4944. #include <string.h>
  4945. #include <libxml/xmlversion.h>
  4946. int
  4947. main()
  4948. {
  4949. int xml_major_version, xml_minor_version, xml_micro_version;
  4950. int major, minor, micro;
  4951. char *tmp_version;
  4952. system("touch conf.xmltest");
  4953. /* Capture xml2-config output via autoconf/configure variables */
  4954. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4955. tmp_version = (char *)strdup("$min_xml_version");
  4956. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4957. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4958. exit(1);
  4959. }
  4960. free(tmp_version);
  4961. /* Capture the version information from the header files */
  4962. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4963. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4964. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4965. exit(1);
  4966. }
  4967. free(tmp_version);
  4968. /* Compare xml2-config output to the libxml headers */
  4969. if ((xml_major_version != $xml_config_major_version) ||
  4970. (xml_minor_version != $xml_config_minor_version) ||
  4971. (xml_micro_version != $xml_config_micro_version))
  4972. {
  4973. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4974. xml_major_version, xml_minor_version, xml_micro_version);
  4975. printf("*** xml2-config (version %d.%d.%d)\n",
  4976. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4977. return 1;
  4978. }
  4979. /* Compare the headers to the library to make sure we match */
  4980. /* Less than ideal -- doesn't provide us with return value feedback,
  4981. * only exits if there's a serious mismatch between header and library.
  4982. */
  4983. LIBXML_TEST_VERSION;
  4984. /* Test that the library is greater than our minimum version */
  4985. if ((xml_major_version > major) ||
  4986. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4987. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4988. (xml_micro_version >= micro)))
  4989. {
  4990. return 0;
  4991. }
  4992. else
  4993. {
  4994. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4995. xml_major_version, xml_minor_version, xml_micro_version);
  4996. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4997. major, minor, micro);
  4998. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4999. printf("***\n");
  5000. printf("*** If you have already installed a sufficiently new version, this error\n");
  5001. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5002. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5003. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5004. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5005. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5006. printf("*** so that the correct libraries are found at run-time))\n");
  5007. }
  5008. return 1;
  5009. }
  5010. _ACEOF
  5011. rm -f conftest$ac_exeext
  5012. if { (ac_try="$ac_link"
  5013. case "(($ac_try" in
  5014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5015. *) ac_try_echo=$ac_try;;
  5016. esac
  5017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5018. (eval "$ac_link") 2>&5
  5019. ac_status=$?
  5020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5021. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5022. { (case "(($ac_try" in
  5023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5024. *) ac_try_echo=$ac_try;;
  5025. esac
  5026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5027. (eval "$ac_try") 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; }; then
  5031. :
  5032. else
  5033. echo "$as_me: program exited with status $ac_status" >&5
  5034. echo "$as_me: failed program was:" >&5
  5035. sed 's/^/| /' conftest.$ac_ext >&5
  5036. ( exit $ac_status )
  5037. no_xml=yes
  5038. fi
  5039. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5040. fi
  5041. CPPFLAGS="$ac_save_CPPFLAGS"
  5042. LIBS="$ac_save_LIBS"
  5043. fi
  5044. fi
  5045. if test "x$no_xml" = x ; then
  5046. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5047. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5048. have_libxml2=yes
  5049. else
  5050. { echo "$as_me:$LINENO: result: no" >&5
  5051. echo "${ECHO_T}no" >&6; }
  5052. if test "$XML2_CONFIG" = "no" ; then
  5053. echo "*** The xml2-config script installed by LIBXML could not be found"
  5054. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5055. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5056. echo "*** full path to xml2-config."
  5057. else
  5058. if test -f conf.xmltest ; then
  5059. :
  5060. else
  5061. echo "*** Could not run libxml test program, checking why..."
  5062. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5063. LIBS="$LIBS $XML_LIBS"
  5064. cat >conftest.$ac_ext <<_ACEOF
  5065. /* confdefs.h. */
  5066. _ACEOF
  5067. cat confdefs.h >>conftest.$ac_ext
  5068. cat >>conftest.$ac_ext <<_ACEOF
  5069. /* end confdefs.h. */
  5070. #include <libxml/xmlversion.h>
  5071. #include <stdio.h>
  5072. int
  5073. main ()
  5074. {
  5075. LIBXML_TEST_VERSION; return 0;
  5076. ;
  5077. return 0;
  5078. }
  5079. _ACEOF
  5080. rm -f conftest.$ac_objext conftest$ac_exeext
  5081. if { (ac_try="$ac_link"
  5082. case "(($ac_try" in
  5083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5084. *) ac_try_echo=$ac_try;;
  5085. esac
  5086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5087. (eval "$ac_link") 2>conftest.er1
  5088. ac_status=$?
  5089. grep -v '^ *+' conftest.er1 >conftest.err
  5090. rm -f conftest.er1
  5091. cat conftest.err >&5
  5092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5093. (exit $ac_status); } && {
  5094. test -z "$ac_cxx_werror_flag" ||
  5095. test ! -s conftest.err
  5096. } && test -s conftest$ac_exeext &&
  5097. $as_test_x conftest$ac_exeext; then
  5098. echo "*** The test program compiled, but did not run. This usually means"
  5099. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5100. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5101. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5102. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5103. echo "*** is required on your system"
  5104. echo "***"
  5105. echo "*** If you have an old version installed, it is best to remove it, although"
  5106. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5107. else
  5108. echo "$as_me: failed program was:" >&5
  5109. sed 's/^/| /' conftest.$ac_ext >&5
  5110. echo "*** The test program failed to compile or link. See the file config.log for the"
  5111. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5112. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5113. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5116. conftest$ac_exeext conftest.$ac_ext
  5117. CPPFLAGS="$ac_save_CPPFLAGS"
  5118. LIBS="$ac_save_LIBS"
  5119. fi
  5120. fi
  5121. XML_CPPFLAGS=""
  5122. XML_LIBS=""
  5123. :
  5124. fi
  5125. rm -f conf.xmltest
  5126. if test "x$have_libxml2" = "xyes"; then
  5127. cat >>confdefs.h <<\_ACEOF
  5128. #define HAVE_LIBXML2 1
  5129. _ACEOF
  5130. fi
  5131. fi
  5132. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5133. # Check whether --with-libexpat-prefix was given.
  5134. if test "${with_libexpat_prefix+set}" = set; then
  5135. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5136. else
  5137. libexpat_prefix=""
  5138. fi
  5139. if test "x$libexpat_prefix" = "x"; then
  5140. libexpat_prefix="/usr"
  5141. fi
  5142. libexpat_prefix_lib=$libexpat_prefix/lib
  5143. libexpat_prefix_include=$libexpat_prefix/include
  5144. LIBS_save=$LIBS
  5145. CPPFLAGS_save=$CPPFLAGS
  5146. LIBS="-L$libexpat_prefix_lib $LIBS"
  5147. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5148. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5149. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5150. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5151. echo $ECHO_N "(cached) $ECHO_C" >&6
  5152. else
  5153. ac_check_lib_save_LIBS=$LIBS
  5154. LIBS="-lexpat $LIBS"
  5155. cat >conftest.$ac_ext <<_ACEOF
  5156. /* confdefs.h. */
  5157. _ACEOF
  5158. cat confdefs.h >>conftest.$ac_ext
  5159. cat >>conftest.$ac_ext <<_ACEOF
  5160. /* end confdefs.h. */
  5161. /* Override any GCC internal prototype to avoid an error.
  5162. Use char because int might match the return type of a GCC
  5163. builtin and then its argument prototype would still apply. */
  5164. #ifdef __cplusplus
  5165. extern "C"
  5166. #endif
  5167. char XML_ParserCreate ();
  5168. int
  5169. main ()
  5170. {
  5171. return XML_ParserCreate ();
  5172. ;
  5173. return 0;
  5174. }
  5175. _ACEOF
  5176. rm -f conftest.$ac_objext conftest$ac_exeext
  5177. if { (ac_try="$ac_link"
  5178. case "(($ac_try" in
  5179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5180. *) ac_try_echo=$ac_try;;
  5181. esac
  5182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5183. (eval "$ac_link") 2>conftest.er1
  5184. ac_status=$?
  5185. grep -v '^ *+' conftest.er1 >conftest.err
  5186. rm -f conftest.er1
  5187. cat conftest.err >&5
  5188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5189. (exit $ac_status); } && {
  5190. test -z "$ac_cxx_werror_flag" ||
  5191. test ! -s conftest.err
  5192. } && test -s conftest$ac_exeext &&
  5193. $as_test_x conftest$ac_exeext; then
  5194. ac_cv_lib_expat_XML_ParserCreate=yes
  5195. else
  5196. echo "$as_me: failed program was:" >&5
  5197. sed 's/^/| /' conftest.$ac_ext >&5
  5198. ac_cv_lib_expat_XML_ParserCreate=no
  5199. fi
  5200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5201. conftest$ac_exeext conftest.$ac_ext
  5202. LIBS=$ac_check_lib_save_LIBS
  5203. fi
  5204. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5205. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5206. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5207. have_libexpat=yes
  5208. fi
  5209. if test "x$have_libexpat" = "xyes"; then
  5210. cat >>confdefs.h <<\_ACEOF
  5211. #define HAVE_LIBEXPAT 1
  5212. _ACEOF
  5213. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5214. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5215. fi
  5216. LIBS=$LIBS_save
  5217. CPPFLAGS=$CPPFLAGS_save
  5218. fi
  5219. if test "x$with_gnutls" = "xyes"; then
  5220. # Check whether --with-libgnutls-prefix was given.
  5221. if test "${with_libgnutls_prefix+set}" = set; then
  5222. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5223. else
  5224. libgnutls_config_prefix=""
  5225. fi
  5226. if test x$libgnutls_config_prefix != x ; then
  5227. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5228. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5229. fi
  5230. fi
  5231. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5232. set dummy libgnutls-config; ac_word=$2
  5233. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5234. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5235. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5236. echo $ECHO_N "(cached) $ECHO_C" >&6
  5237. else
  5238. case $LIBGNUTLS_CONFIG in
  5239. [\\/]* | ?:[\\/]*)
  5240. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5241. ;;
  5242. *)
  5243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5244. for as_dir in $PATH
  5245. do
  5246. IFS=$as_save_IFS
  5247. test -z "$as_dir" && as_dir=.
  5248. for ac_exec_ext in '' $ac_executable_extensions; do
  5249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5250. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5251. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5252. break 2
  5253. fi
  5254. done
  5255. done
  5256. IFS=$as_save_IFS
  5257. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5258. ;;
  5259. esac
  5260. fi
  5261. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5262. if test -n "$LIBGNUTLS_CONFIG"; then
  5263. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5264. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5265. else
  5266. { echo "$as_me:$LINENO: result: no" >&5
  5267. echo "${ECHO_T}no" >&6; }
  5268. fi
  5269. min_libgnutls_version=1.2.9
  5270. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5271. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5272. no_libgnutls=""
  5273. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5274. no_libgnutls=yes
  5275. else
  5276. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5277. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5278. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5279. ac_save_CFLAGS="$CFLAGS"
  5280. ac_save_LIBS="$LIBS"
  5281. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5282. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5283. rm -f conf.libgnutlstest
  5284. if test "$cross_compiling" = yes; then
  5285. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5286. else
  5287. cat >conftest.$ac_ext <<_ACEOF
  5288. /* confdefs.h. */
  5289. _ACEOF
  5290. cat confdefs.h >>conftest.$ac_ext
  5291. cat >>conftest.$ac_ext <<_ACEOF
  5292. /* end confdefs.h. */
  5293. #include <stdio.h>
  5294. #include <stdlib.h>
  5295. #include <string.h>
  5296. #include <gnutls/gnutls.h>
  5297. int
  5298. main ()
  5299. {
  5300. system ("touch conf.libgnutlstest");
  5301. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5302. {
  5303. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5304. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5305. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5306. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5307. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5308. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5309. printf("*** required on your system.\n");
  5310. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5311. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5312. printf("*** before re-running configure\n");
  5313. }
  5314. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5315. {
  5316. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5317. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5318. }
  5319. else
  5320. {
  5321. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5322. {
  5323. return 0;
  5324. }
  5325. else
  5326. {
  5327. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5328. gnutls_check_version(NULL) );
  5329. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5330. "$min_libgnutls_version" );
  5331. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5332. printf("*** \n");
  5333. printf("*** If you have already installed a sufficiently new version, this error\n");
  5334. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5335. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5336. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5337. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5338. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5339. printf("*** so that the correct libraries are found at run-time))\n");
  5340. }
  5341. }
  5342. return 1;
  5343. }
  5344. _ACEOF
  5345. rm -f conftest$ac_exeext
  5346. if { (ac_try="$ac_link"
  5347. case "(($ac_try" in
  5348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5349. *) ac_try_echo=$ac_try;;
  5350. esac
  5351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5352. (eval "$ac_link") 2>&5
  5353. ac_status=$?
  5354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5355. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5356. { (case "(($ac_try" in
  5357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5358. *) ac_try_echo=$ac_try;;
  5359. esac
  5360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5361. (eval "$ac_try") 2>&5
  5362. ac_status=$?
  5363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5364. (exit $ac_status); }; }; then
  5365. :
  5366. else
  5367. echo "$as_me: program exited with status $ac_status" >&5
  5368. echo "$as_me: failed program was:" >&5
  5369. sed 's/^/| /' conftest.$ac_ext >&5
  5370. ( exit $ac_status )
  5371. no_libgnutls=yes
  5372. fi
  5373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5374. fi
  5375. CFLAGS="$ac_save_CFLAGS"
  5376. LIBS="$ac_save_LIBS"
  5377. fi
  5378. if test "x$no_libgnutls" = x ; then
  5379. { echo "$as_me:$LINENO: result: yes" >&5
  5380. echo "${ECHO_T}yes" >&6; }
  5381. have_libgnutls=yes
  5382. else
  5383. if test -f conf.libgnutlstest ; then
  5384. :
  5385. else
  5386. { echo "$as_me:$LINENO: result: no" >&5
  5387. echo "${ECHO_T}no" >&6; }
  5388. fi
  5389. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5390. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5391. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5392. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5393. echo "*** full path to libgnutls-config."
  5394. else
  5395. if test -f conf.libgnutlstest ; then
  5396. :
  5397. else
  5398. echo "*** Could not run libgnutls test program, checking why..."
  5399. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5400. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5401. cat >conftest.$ac_ext <<_ACEOF
  5402. /* confdefs.h. */
  5403. _ACEOF
  5404. cat confdefs.h >>conftest.$ac_ext
  5405. cat >>conftest.$ac_ext <<_ACEOF
  5406. /* end confdefs.h. */
  5407. #include <stdio.h>
  5408. #include <stdlib.h>
  5409. #include <string.h>
  5410. #include <gnutls/gnutls.h>
  5411. int
  5412. main ()
  5413. {
  5414. return !!gnutls_check_version(NULL);
  5415. ;
  5416. return 0;
  5417. }
  5418. _ACEOF
  5419. rm -f conftest.$ac_objext conftest$ac_exeext
  5420. if { (ac_try="$ac_link"
  5421. case "(($ac_try" in
  5422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5423. *) ac_try_echo=$ac_try;;
  5424. esac
  5425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5426. (eval "$ac_link") 2>conftest.er1
  5427. ac_status=$?
  5428. grep -v '^ *+' conftest.er1 >conftest.err
  5429. rm -f conftest.er1
  5430. cat conftest.err >&5
  5431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5432. (exit $ac_status); } && {
  5433. test -z "$ac_cxx_werror_flag" ||
  5434. test ! -s conftest.err
  5435. } && test -s conftest$ac_exeext &&
  5436. $as_test_x conftest$ac_exeext; then
  5437. echo "*** The test program compiled, but did not run. This usually means"
  5438. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5439. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5440. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5441. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5442. echo "*** is required on your system"
  5443. echo "***"
  5444. echo "*** If you have an old version installed, it is best to remove it, although"
  5445. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5446. echo "***"
  5447. else
  5448. echo "$as_me: failed program was:" >&5
  5449. sed 's/^/| /' conftest.$ac_ext >&5
  5450. echo "*** The test program failed to compile or link. See the file config.log for the"
  5451. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5452. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5453. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5454. fi
  5455. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5456. conftest$ac_exeext conftest.$ac_ext
  5457. CFLAGS="$ac_save_CFLAGS"
  5458. LIBS="$ac_save_LIBS"
  5459. fi
  5460. fi
  5461. LIBGNUTLS_CFLAGS=""
  5462. LIBGNUTLS_LIBS=""
  5463. :
  5464. fi
  5465. rm -f conf.libgnutlstest
  5466. if test "x$have_libgnutls" = "xyes"; then
  5467. cat >>confdefs.h <<\_ACEOF
  5468. #define HAVE_LIBGNUTLS 1
  5469. _ACEOF
  5470. fi
  5471. fi
  5472. if test "x$have_libgnutls" = "xyes"; then
  5473. # Check whether --with-libgcrypt-prefix was given.
  5474. if test "${with_libgcrypt_prefix+set}" = set; then
  5475. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5476. else
  5477. libgcrypt_config_prefix=""
  5478. fi
  5479. if test x$libgcrypt_config_prefix != x ; then
  5480. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5481. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5482. fi
  5483. fi
  5484. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5485. set dummy libgcrypt-config; ac_word=$2
  5486. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5487. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5488. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5489. echo $ECHO_N "(cached) $ECHO_C" >&6
  5490. else
  5491. case $LIBGCRYPT_CONFIG in
  5492. [\\/]* | ?:[\\/]*)
  5493. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5494. ;;
  5495. *)
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5503. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5504. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5511. ;;
  5512. esac
  5513. fi
  5514. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5515. if test -n "$LIBGCRYPT_CONFIG"; then
  5516. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5517. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5518. else
  5519. { echo "$as_me:$LINENO: result: no" >&5
  5520. echo "${ECHO_T}no" >&6; }
  5521. fi
  5522. tmp=1.2.2
  5523. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5524. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5525. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5526. else
  5527. req_libgcrypt_api=0
  5528. min_libgcrypt_version="$tmp"
  5529. fi
  5530. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5531. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5532. ok=no
  5533. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5534. req_major=`echo $min_libgcrypt_version | \
  5535. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5536. req_minor=`echo $min_libgcrypt_version | \
  5537. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5538. req_micro=`echo $min_libgcrypt_version | \
  5539. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5540. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5541. major=`echo $libgcrypt_config_version | \
  5542. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5543. minor=`echo $libgcrypt_config_version | \
  5544. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5545. micro=`echo $libgcrypt_config_version | \
  5546. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5547. if test "$major" -gt "$req_major"; then
  5548. ok=yes
  5549. else
  5550. if test "$major" -eq "$req_major"; then
  5551. if test "$minor" -gt "$req_minor"; then
  5552. ok=yes
  5553. else
  5554. if test "$minor" -eq "$req_minor"; then
  5555. if test "$micro" -ge "$req_micro"; then
  5556. ok=yes
  5557. fi
  5558. fi
  5559. fi
  5560. fi
  5561. fi
  5562. fi
  5563. if test $ok = yes; then
  5564. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5565. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5566. else
  5567. { echo "$as_me:$LINENO: result: no" >&5
  5568. echo "${ECHO_T}no" >&6; }
  5569. fi
  5570. if test $ok = yes; then
  5571. # If we have a recent libgcrypt, we should also check that the
  5572. # API is compatible
  5573. if test "$req_libgcrypt_api" -gt 0 ; then
  5574. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5575. if test "$tmp" -gt 0 ; then
  5576. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5577. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5578. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5579. { echo "$as_me:$LINENO: result: okay" >&5
  5580. echo "${ECHO_T}okay" >&6; }
  5581. else
  5582. ok=no
  5583. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5584. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5585. fi
  5586. fi
  5587. fi
  5588. fi
  5589. if test $ok = yes; then
  5590. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5591. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5592. have_libgcrypt=yes
  5593. else
  5594. LIBGCRYPT_CFLAGS=""
  5595. LIBGCRYPT_LIBS=""
  5596. :
  5597. fi
  5598. if test "x$have_libgcrypt" = "xyes"; then
  5599. cat >>confdefs.h <<\_ACEOF
  5600. #define HAVE_LIBGCRYPT 1
  5601. _ACEOF
  5602. fi
  5603. fi
  5604. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5605. # Check whether --with-openssl-prefix was given.
  5606. if test "${with_openssl_prefix+set}" = set; then
  5607. withval=$with_openssl_prefix; openssl_prefix=$withval
  5608. else
  5609. openssl_prefix=""
  5610. fi
  5611. if test "x$openssl_prefix" = "x"; then
  5612. openssl_prefix="/usr/local"
  5613. fi
  5614. openssl_prefix_lib=$openssl_prefix/lib
  5615. openssl_prefix_include=$openssl_prefix/include
  5616. LIBS_save=$LIBS
  5617. CPPFLAGS_save=$CPPFLAGS
  5618. LIBS="-L$openssl_prefix_lib $LIBS"
  5619. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5620. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5621. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5622. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5623. echo $ECHO_N "(cached) $ECHO_C" >&6
  5624. else
  5625. ac_check_lib_save_LIBS=$LIBS
  5626. LIBS="-lssl $LIBS"
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. /* Override any GCC internal prototype to avoid an error.
  5634. Use char because int might match the return type of a GCC
  5635. builtin and then its argument prototype would still apply. */
  5636. #ifdef __cplusplus
  5637. extern "C"
  5638. #endif
  5639. char SSL_library_init ();
  5640. int
  5641. main ()
  5642. {
  5643. return SSL_library_init ();
  5644. ;
  5645. return 0;
  5646. }
  5647. _ACEOF
  5648. rm -f conftest.$ac_objext conftest$ac_exeext
  5649. if { (ac_try="$ac_link"
  5650. case "(($ac_try" in
  5651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5652. *) ac_try_echo=$ac_try;;
  5653. esac
  5654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5655. (eval "$ac_link") 2>conftest.er1
  5656. ac_status=$?
  5657. grep -v '^ *+' conftest.er1 >conftest.err
  5658. rm -f conftest.er1
  5659. cat conftest.err >&5
  5660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5661. (exit $ac_status); } && {
  5662. test -z "$ac_cxx_werror_flag" ||
  5663. test ! -s conftest.err
  5664. } && test -s conftest$ac_exeext &&
  5665. $as_test_x conftest$ac_exeext; then
  5666. ac_cv_lib_ssl_SSL_library_init=yes
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. ac_cv_lib_ssl_SSL_library_init=no
  5671. fi
  5672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5673. conftest$ac_exeext conftest.$ac_ext
  5674. LIBS=$ac_check_lib_save_LIBS
  5675. fi
  5676. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5677. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5678. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5679. have_openssl=yes; LIBS="-lssl $LIBS"
  5680. fi
  5681. if test "x$have_openssl" = "xyes"; then
  5682. have_openssl=no
  5683. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5684. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5685. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5686. echo $ECHO_N "(cached) $ECHO_C" >&6
  5687. else
  5688. ac_check_lib_save_LIBS=$LIBS
  5689. LIBS="-lcrypto $LIBS"
  5690. cat >conftest.$ac_ext <<_ACEOF
  5691. /* confdefs.h. */
  5692. _ACEOF
  5693. cat confdefs.h >>conftest.$ac_ext
  5694. cat >>conftest.$ac_ext <<_ACEOF
  5695. /* end confdefs.h. */
  5696. int
  5697. main ()
  5698. {
  5699. return main ();
  5700. ;
  5701. return 0;
  5702. }
  5703. _ACEOF
  5704. rm -f conftest.$ac_objext conftest$ac_exeext
  5705. if { (ac_try="$ac_link"
  5706. case "(($ac_try" in
  5707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5708. *) ac_try_echo=$ac_try;;
  5709. esac
  5710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5711. (eval "$ac_link") 2>conftest.er1
  5712. ac_status=$?
  5713. grep -v '^ *+' conftest.er1 >conftest.err
  5714. rm -f conftest.er1
  5715. cat conftest.err >&5
  5716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5717. (exit $ac_status); } && {
  5718. test -z "$ac_cxx_werror_flag" ||
  5719. test ! -s conftest.err
  5720. } && test -s conftest$ac_exeext &&
  5721. $as_test_x conftest$ac_exeext; then
  5722. ac_cv_lib_crypto_main=yes
  5723. else
  5724. echo "$as_me: failed program was:" >&5
  5725. sed 's/^/| /' conftest.$ac_ext >&5
  5726. ac_cv_lib_crypto_main=no
  5727. fi
  5728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5729. conftest$ac_exeext conftest.$ac_ext
  5730. LIBS=$ac_check_lib_save_LIBS
  5731. fi
  5732. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5733. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5734. if test $ac_cv_lib_crypto_main = yes; then
  5735. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5736. fi
  5737. if test "x$have_openssl" = "xyes"; then
  5738. cat >>confdefs.h <<\_ACEOF
  5739. #define HAVE_LIBSSL 1
  5740. _ACEOF
  5741. for ac_func in EVP_DigestInit_ex
  5742. do
  5743. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5744. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5745. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5746. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5747. echo $ECHO_N "(cached) $ECHO_C" >&6
  5748. else
  5749. cat >conftest.$ac_ext <<_ACEOF
  5750. /* confdefs.h. */
  5751. _ACEOF
  5752. cat confdefs.h >>conftest.$ac_ext
  5753. cat >>conftest.$ac_ext <<_ACEOF
  5754. /* end confdefs.h. */
  5755. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5756. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5757. #define $ac_func innocuous_$ac_func
  5758. /* System header to define __stub macros and hopefully few prototypes,
  5759. which can conflict with char $ac_func (); below.
  5760. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5761. <limits.h> exists even on freestanding compilers. */
  5762. #ifdef __STDC__
  5763. # include <limits.h>
  5764. #else
  5765. # include <assert.h>
  5766. #endif
  5767. #undef $ac_func
  5768. /* Override any GCC internal prototype to avoid an error.
  5769. Use char because int might match the return type of a GCC
  5770. builtin and then its argument prototype would still apply. */
  5771. #ifdef __cplusplus
  5772. extern "C"
  5773. #endif
  5774. char $ac_func ();
  5775. /* The GNU C library defines this for functions which it implements
  5776. to always fail with ENOSYS. Some functions are actually named
  5777. something starting with __ and the normal name is an alias. */
  5778. #if defined __stub_$ac_func || defined __stub___$ac_func
  5779. choke me
  5780. #endif
  5781. int
  5782. main ()
  5783. {
  5784. return $ac_func ();
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. rm -f conftest.$ac_objext conftest$ac_exeext
  5790. if { (ac_try="$ac_link"
  5791. case "(($ac_try" in
  5792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5793. *) ac_try_echo=$ac_try;;
  5794. esac
  5795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5796. (eval "$ac_link") 2>conftest.er1
  5797. ac_status=$?
  5798. grep -v '^ *+' conftest.er1 >conftest.err
  5799. rm -f conftest.er1
  5800. cat conftest.err >&5
  5801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802. (exit $ac_status); } && {
  5803. test -z "$ac_cxx_werror_flag" ||
  5804. test ! -s conftest.err
  5805. } && test -s conftest$ac_exeext &&
  5806. $as_test_x conftest$ac_exeext; then
  5807. eval "$as_ac_var=yes"
  5808. else
  5809. echo "$as_me: failed program was:" >&5
  5810. sed 's/^/| /' conftest.$ac_ext >&5
  5811. eval "$as_ac_var=no"
  5812. fi
  5813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5814. conftest$ac_exeext conftest.$ac_ext
  5815. fi
  5816. ac_res=`eval echo '${'$as_ac_var'}'`
  5817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5818. echo "${ECHO_T}$ac_res" >&6; }
  5819. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5820. cat >>confdefs.h <<_ACEOF
  5821. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5822. _ACEOF
  5823. have_digestinit_ex=yes
  5824. fi
  5825. done
  5826. if test "x$have_digestinit_ex" = "x"; then
  5827. cat >>confdefs.h <<\_ACEOF
  5828. #define HAVE_OLD_LIBSSL 1
  5829. _ACEOF
  5830. fi
  5831. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5832. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5833. for ac_func in EVP_sha256
  5834. do
  5835. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5836. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5837. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5838. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5839. echo $ECHO_N "(cached) $ECHO_C" >&6
  5840. else
  5841. cat >conftest.$ac_ext <<_ACEOF
  5842. /* confdefs.h. */
  5843. _ACEOF
  5844. cat confdefs.h >>conftest.$ac_ext
  5845. cat >>conftest.$ac_ext <<_ACEOF
  5846. /* end confdefs.h. */
  5847. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5848. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5849. #define $ac_func innocuous_$ac_func
  5850. /* System header to define __stub macros and hopefully few prototypes,
  5851. which can conflict with char $ac_func (); below.
  5852. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5853. <limits.h> exists even on freestanding compilers. */
  5854. #ifdef __STDC__
  5855. # include <limits.h>
  5856. #else
  5857. # include <assert.h>
  5858. #endif
  5859. #undef $ac_func
  5860. /* Override any GCC internal prototype to avoid an error.
  5861. Use char because int might match the return type of a GCC
  5862. builtin and then its argument prototype would still apply. */
  5863. #ifdef __cplusplus
  5864. extern "C"
  5865. #endif
  5866. char $ac_func ();
  5867. /* The GNU C library defines this for functions which it implements
  5868. to always fail with ENOSYS. Some functions are actually named
  5869. something starting with __ and the normal name is an alias. */
  5870. #if defined __stub_$ac_func || defined __stub___$ac_func
  5871. choke me
  5872. #endif
  5873. int
  5874. main ()
  5875. {
  5876. return $ac_func ();
  5877. ;
  5878. return 0;
  5879. }
  5880. _ACEOF
  5881. rm -f conftest.$ac_objext conftest$ac_exeext
  5882. if { (ac_try="$ac_link"
  5883. case "(($ac_try" in
  5884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5885. *) ac_try_echo=$ac_try;;
  5886. esac
  5887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5888. (eval "$ac_link") 2>conftest.er1
  5889. ac_status=$?
  5890. grep -v '^ *+' conftest.er1 >conftest.err
  5891. rm -f conftest.er1
  5892. cat conftest.err >&5
  5893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894. (exit $ac_status); } && {
  5895. test -z "$ac_cxx_werror_flag" ||
  5896. test ! -s conftest.err
  5897. } && test -s conftest$ac_exeext &&
  5898. $as_test_x conftest$ac_exeext; then
  5899. eval "$as_ac_var=yes"
  5900. else
  5901. echo "$as_me: failed program was:" >&5
  5902. sed 's/^/| /' conftest.$ac_ext >&5
  5903. eval "$as_ac_var=no"
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5906. conftest$ac_exeext conftest.$ac_ext
  5907. fi
  5908. ac_res=`eval echo '${'$as_ac_var'}'`
  5909. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5910. echo "${ECHO_T}$ac_res" >&6; }
  5911. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5912. cat >>confdefs.h <<_ACEOF
  5913. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5914. _ACEOF
  5915. fi
  5916. done
  5917. fi
  5918. fi
  5919. LIBS=$LIBS_save
  5920. CPPFLAGS=$CPPFLAGS_save
  5921. fi
  5922. if test "x$with_libcares" = "xyes"; then
  5923. # Check whether --with-libcares-prefix was given.
  5924. if test "${with_libcares_prefix+set}" = set; then
  5925. withval=$with_libcares_prefix; libcares_prefix=$withval
  5926. else
  5927. libcares_prefix=""
  5928. fi
  5929. if test "x$libcares_prefix" = "x"; then
  5930. libcares_prefix="/usr"
  5931. fi
  5932. libcares_prefix_lib=$libcares_prefix/lib
  5933. libcares_prefix_include=$libcares_prefix/include
  5934. LIBS_save=$LIBS
  5935. CPPFLAGS_save=$CPPFLAGS
  5936. LIBS="-L$libcares_prefix_lib $LIBS"
  5937. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5938. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5939. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5940. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5941. echo $ECHO_N "(cached) $ECHO_C" >&6
  5942. else
  5943. ac_check_lib_save_LIBS=$LIBS
  5944. LIBS="-lcares $LIBS"
  5945. cat >conftest.$ac_ext <<_ACEOF
  5946. /* confdefs.h. */
  5947. _ACEOF
  5948. cat confdefs.h >>conftest.$ac_ext
  5949. cat >>conftest.$ac_ext <<_ACEOF
  5950. /* end confdefs.h. */
  5951. /* Override any GCC internal prototype to avoid an error.
  5952. Use char because int might match the return type of a GCC
  5953. builtin and then its argument prototype would still apply. */
  5954. #ifdef __cplusplus
  5955. extern "C"
  5956. #endif
  5957. char ares_init ();
  5958. int
  5959. main ()
  5960. {
  5961. return ares_init ();
  5962. ;
  5963. return 0;
  5964. }
  5965. _ACEOF
  5966. rm -f conftest.$ac_objext conftest$ac_exeext
  5967. if { (ac_try="$ac_link"
  5968. case "(($ac_try" in
  5969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5970. *) ac_try_echo=$ac_try;;
  5971. esac
  5972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5973. (eval "$ac_link") 2>conftest.er1
  5974. ac_status=$?
  5975. grep -v '^ *+' conftest.er1 >conftest.err
  5976. rm -f conftest.er1
  5977. cat conftest.err >&5
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); } && {
  5980. test -z "$ac_cxx_werror_flag" ||
  5981. test ! -s conftest.err
  5982. } && test -s conftest$ac_exeext &&
  5983. $as_test_x conftest$ac_exeext; then
  5984. ac_cv_lib_cares_ares_init=yes
  5985. else
  5986. echo "$as_me: failed program was:" >&5
  5987. sed 's/^/| /' conftest.$ac_ext >&5
  5988. ac_cv_lib_cares_ares_init=no
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. LIBS=$ac_check_lib_save_LIBS
  5993. fi
  5994. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5995. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5996. if test $ac_cv_lib_cares_ares_init = yes; then
  5997. have_libcares=yes
  5998. fi
  5999. if test "x$have_libcares" = "xyes"; then
  6000. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6001. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6002. cat >conftest.$ac_ext <<_ACEOF
  6003. /* confdefs.h. */
  6004. _ACEOF
  6005. cat confdefs.h >>conftest.$ac_ext
  6006. cat >>conftest.$ac_ext <<_ACEOF
  6007. /* end confdefs.h. */
  6008. #include <ares.h>
  6009. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6010. int
  6011. main ()
  6012. {
  6013. ares_channel channel;
  6014. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. rm -f conftest.$ac_objext
  6020. if { (ac_try="$ac_compile"
  6021. case "(($ac_try" in
  6022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6023. *) ac_try_echo=$ac_try;;
  6024. esac
  6025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6026. (eval "$ac_compile") 2>conftest.er1
  6027. ac_status=$?
  6028. grep -v '^ *+' conftest.er1 >conftest.err
  6029. rm -f conftest.er1
  6030. cat conftest.err >&5
  6031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); } && {
  6033. test -z "$ac_cxx_werror_flag" ||
  6034. test ! -s conftest.err
  6035. } && test -s conftest.$ac_objext; then
  6036. have_libcares1_5=yes
  6037. else
  6038. echo "$as_me: failed program was:" >&5
  6039. sed 's/^/| /' conftest.$ac_ext >&5
  6040. have_libcares1_5=no
  6041. fi
  6042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6043. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6044. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6045. if test "x$have_libcares1_5" = "xyes"; then
  6046. cat >>confdefs.h <<\_ACEOF
  6047. #define HAVE_LIBCARES1_5 1
  6048. _ACEOF
  6049. fi
  6050. cat >>confdefs.h <<\_ACEOF
  6051. #define HAVE_LIBCARES 1
  6052. _ACEOF
  6053. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6054. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6055. fi
  6056. LIBS=$LIBS_save
  6057. CPPFLAGS=$CPPFLAGS_save
  6058. fi
  6059. if test "x$have_libcares" = "x"; then
  6060. if test "x$with_libares" = "xyes"; then
  6061. # Check whether --with-libares-prefix was given.
  6062. if test "${with_libares_prefix+set}" = set; then
  6063. withval=$with_libares_prefix; libares_prefix=$withval
  6064. else
  6065. libares_prefix=""
  6066. fi
  6067. if test "x$libares_prefix" = "x"; then
  6068. libares_prefix="/usr"
  6069. fi
  6070. libares_prefix_lib=$libares_prefix/lib
  6071. libares_prefix_include=$libares_prefix/include
  6072. LIBS_save=$LIBS
  6073. CPPFLAGS_save=$CPPFLAGS
  6074. LIBS="-L$libares_prefix_lib $LIBS"
  6075. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6076. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6077. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6078. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6079. echo $ECHO_N "(cached) $ECHO_C" >&6
  6080. else
  6081. ac_check_lib_save_LIBS=$LIBS
  6082. LIBS="-lares $LIBS"
  6083. cat >conftest.$ac_ext <<_ACEOF
  6084. /* confdefs.h. */
  6085. _ACEOF
  6086. cat confdefs.h >>conftest.$ac_ext
  6087. cat >>conftest.$ac_ext <<_ACEOF
  6088. /* end confdefs.h. */
  6089. /* Override any GCC internal prototype to avoid an error.
  6090. Use char because int might match the return type of a GCC
  6091. builtin and then its argument prototype would still apply. */
  6092. #ifdef __cplusplus
  6093. extern "C"
  6094. #endif
  6095. char ares_init ();
  6096. int
  6097. main ()
  6098. {
  6099. return ares_init ();
  6100. ;
  6101. return 0;
  6102. }
  6103. _ACEOF
  6104. rm -f conftest.$ac_objext conftest$ac_exeext
  6105. if { (ac_try="$ac_link"
  6106. case "(($ac_try" in
  6107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6108. *) ac_try_echo=$ac_try;;
  6109. esac
  6110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6111. (eval "$ac_link") 2>conftest.er1
  6112. ac_status=$?
  6113. grep -v '^ *+' conftest.er1 >conftest.err
  6114. rm -f conftest.er1
  6115. cat conftest.err >&5
  6116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6117. (exit $ac_status); } && {
  6118. test -z "$ac_cxx_werror_flag" ||
  6119. test ! -s conftest.err
  6120. } && test -s conftest$ac_exeext &&
  6121. $as_test_x conftest$ac_exeext; then
  6122. ac_cv_lib_ares_ares_init=yes
  6123. else
  6124. echo "$as_me: failed program was:" >&5
  6125. sed 's/^/| /' conftest.$ac_ext >&5
  6126. ac_cv_lib_ares_ares_init=no
  6127. fi
  6128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6129. conftest$ac_exeext conftest.$ac_ext
  6130. LIBS=$ac_check_lib_save_LIBS
  6131. fi
  6132. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6133. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6134. if test $ac_cv_lib_ares_ares_init = yes; then
  6135. have_libares=yes
  6136. fi
  6137. if test "x$have_libares" = "xyes"; then
  6138. cat >>confdefs.h <<\_ACEOF
  6139. #define HAVE_LIBARES 1
  6140. _ACEOF
  6141. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6142. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6143. fi
  6144. LIBS=$LIBS_save
  6145. CPPFLAGS=$CPPFLAGS_save
  6146. fi
  6147. fi
  6148. # Define variables based on the result of the checks for libraries.
  6149. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6150. cat >>confdefs.h <<\_ACEOF
  6151. #define ENABLE_SSL 1
  6152. _ACEOF
  6153. fi
  6154. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6155. cat >>confdefs.h <<\_ACEOF
  6156. #define ENABLE_MESSAGE_DIGEST 1
  6157. _ACEOF
  6158. if true; then
  6159. ENABLE_MESSAGE_DIGEST_TRUE=
  6160. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6161. else
  6162. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6163. ENABLE_MESSAGE_DIGEST_FALSE=
  6164. fi
  6165. enable_message_digest=yes
  6166. else
  6167. if false; then
  6168. ENABLE_MESSAGE_DIGEST_TRUE=
  6169. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6170. else
  6171. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6172. ENABLE_MESSAGE_DIGEST_FALSE=
  6173. fi
  6174. fi
  6175. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6176. cat >>confdefs.h <<\_ACEOF
  6177. #define ENABLE_BITTORRENT 1
  6178. _ACEOF
  6179. if true; then
  6180. ENABLE_BITTORRENT_TRUE=
  6181. ENABLE_BITTORRENT_FALSE='#'
  6182. else
  6183. ENABLE_BITTORRENT_TRUE='#'
  6184. ENABLE_BITTORRENT_FALSE=
  6185. fi
  6186. else
  6187. enable_bittorrent=no
  6188. if false; then
  6189. ENABLE_BITTORRENT_TRUE=
  6190. ENABLE_BITTORRENT_FALSE='#'
  6191. else
  6192. ENABLE_BITTORRENT_TRUE='#'
  6193. ENABLE_BITTORRENT_FALSE=
  6194. fi
  6195. fi
  6196. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6197. cat >>confdefs.h <<\_ACEOF
  6198. #define ENABLE_METALINK 1
  6199. _ACEOF
  6200. if true; then
  6201. ENABLE_METALINK_TRUE=
  6202. ENABLE_METALINK_FALSE='#'
  6203. else
  6204. ENABLE_METALINK_TRUE='#'
  6205. ENABLE_METALINK_FALSE=
  6206. fi
  6207. else
  6208. enable_metalink=no
  6209. if false; then
  6210. ENABLE_METALINK_TRUE=
  6211. ENABLE_METALINK_FALSE='#'
  6212. else
  6213. ENABLE_METALINK_TRUE='#'
  6214. ENABLE_METALINK_FALSE=
  6215. fi
  6216. fi
  6217. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6218. ENABLE_LIBXML2_TRUE=
  6219. ENABLE_LIBXML2_FALSE='#'
  6220. else
  6221. ENABLE_LIBXML2_TRUE='#'
  6222. ENABLE_LIBXML2_FALSE=
  6223. fi
  6224. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6225. ENABLE_LIBEXPAT_TRUE=
  6226. ENABLE_LIBEXPAT_FALSE='#'
  6227. else
  6228. ENABLE_LIBEXPAT_TRUE='#'
  6229. ENABLE_LIBEXPAT_FALSE=
  6230. fi
  6231. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6232. cat >>confdefs.h <<\_ACEOF
  6233. #define ENABLE_ASYNC_DNS 1
  6234. _ACEOF
  6235. if true; then
  6236. ENABLE_ASYNC_DNS_TRUE=
  6237. ENABLE_ASYNC_DNS_FALSE='#'
  6238. else
  6239. ENABLE_ASYNC_DNS_TRUE='#'
  6240. ENABLE_ASYNC_DNS_FALSE=
  6241. fi
  6242. else
  6243. if false; then
  6244. ENABLE_ASYNC_DNS_TRUE=
  6245. ENABLE_ASYNC_DNS_FALSE='#'
  6246. else
  6247. ENABLE_ASYNC_DNS_TRUE='#'
  6248. ENABLE_ASYNC_DNS_FALSE=
  6249. fi
  6250. fi
  6251. # Checks for header files.
  6252. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6253. # for constant arguments. Useless!
  6254. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6255. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6256. if test "${ac_cv_working_alloca_h+set}" = set; then
  6257. echo $ECHO_N "(cached) $ECHO_C" >&6
  6258. else
  6259. cat >conftest.$ac_ext <<_ACEOF
  6260. /* confdefs.h. */
  6261. _ACEOF
  6262. cat confdefs.h >>conftest.$ac_ext
  6263. cat >>conftest.$ac_ext <<_ACEOF
  6264. /* end confdefs.h. */
  6265. #include <alloca.h>
  6266. int
  6267. main ()
  6268. {
  6269. char *p = (char *) alloca (2 * sizeof (int));
  6270. if (p) return 0;
  6271. ;
  6272. return 0;
  6273. }
  6274. _ACEOF
  6275. rm -f conftest.$ac_objext conftest$ac_exeext
  6276. if { (ac_try="$ac_link"
  6277. case "(($ac_try" in
  6278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6279. *) ac_try_echo=$ac_try;;
  6280. esac
  6281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6282. (eval "$ac_link") 2>conftest.er1
  6283. ac_status=$?
  6284. grep -v '^ *+' conftest.er1 >conftest.err
  6285. rm -f conftest.er1
  6286. cat conftest.err >&5
  6287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6288. (exit $ac_status); } && {
  6289. test -z "$ac_cxx_werror_flag" ||
  6290. test ! -s conftest.err
  6291. } && test -s conftest$ac_exeext &&
  6292. $as_test_x conftest$ac_exeext; then
  6293. ac_cv_working_alloca_h=yes
  6294. else
  6295. echo "$as_me: failed program was:" >&5
  6296. sed 's/^/| /' conftest.$ac_ext >&5
  6297. ac_cv_working_alloca_h=no
  6298. fi
  6299. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6300. conftest$ac_exeext conftest.$ac_ext
  6301. fi
  6302. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6303. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6304. if test $ac_cv_working_alloca_h = yes; then
  6305. cat >>confdefs.h <<\_ACEOF
  6306. #define HAVE_ALLOCA_H 1
  6307. _ACEOF
  6308. fi
  6309. { echo "$as_me:$LINENO: checking for alloca" >&5
  6310. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6311. if test "${ac_cv_func_alloca_works+set}" = set; then
  6312. echo $ECHO_N "(cached) $ECHO_C" >&6
  6313. else
  6314. cat >conftest.$ac_ext <<_ACEOF
  6315. /* confdefs.h. */
  6316. _ACEOF
  6317. cat confdefs.h >>conftest.$ac_ext
  6318. cat >>conftest.$ac_ext <<_ACEOF
  6319. /* end confdefs.h. */
  6320. #ifdef __GNUC__
  6321. # define alloca __builtin_alloca
  6322. #else
  6323. # ifdef _MSC_VER
  6324. # include <malloc.h>
  6325. # define alloca _alloca
  6326. # else
  6327. # ifdef HAVE_ALLOCA_H
  6328. # include <alloca.h>
  6329. # else
  6330. # ifdef _AIX
  6331. #pragma alloca
  6332. # else
  6333. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6334. char *alloca ();
  6335. # endif
  6336. # endif
  6337. # endif
  6338. # endif
  6339. #endif
  6340. int
  6341. main ()
  6342. {
  6343. char *p = (char *) alloca (1);
  6344. if (p) return 0;
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. rm -f conftest.$ac_objext conftest$ac_exeext
  6350. if { (ac_try="$ac_link"
  6351. case "(($ac_try" in
  6352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6353. *) ac_try_echo=$ac_try;;
  6354. esac
  6355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6356. (eval "$ac_link") 2>conftest.er1
  6357. ac_status=$?
  6358. grep -v '^ *+' conftest.er1 >conftest.err
  6359. rm -f conftest.er1
  6360. cat conftest.err >&5
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); } && {
  6363. test -z "$ac_cxx_werror_flag" ||
  6364. test ! -s conftest.err
  6365. } && test -s conftest$ac_exeext &&
  6366. $as_test_x conftest$ac_exeext; then
  6367. ac_cv_func_alloca_works=yes
  6368. else
  6369. echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. ac_cv_func_alloca_works=no
  6372. fi
  6373. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6374. conftest$ac_exeext conftest.$ac_ext
  6375. fi
  6376. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6377. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6378. if test $ac_cv_func_alloca_works = yes; then
  6379. cat >>confdefs.h <<\_ACEOF
  6380. #define HAVE_ALLOCA 1
  6381. _ACEOF
  6382. else
  6383. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6384. # that cause trouble. Some versions do not even contain alloca or
  6385. # contain a buggy version. If you still want to use their alloca,
  6386. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6387. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6388. cat >>confdefs.h <<\_ACEOF
  6389. #define C_ALLOCA 1
  6390. _ACEOF
  6391. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6392. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6393. if test "${ac_cv_os_cray+set}" = set; then
  6394. echo $ECHO_N "(cached) $ECHO_C" >&6
  6395. else
  6396. cat >conftest.$ac_ext <<_ACEOF
  6397. /* confdefs.h. */
  6398. _ACEOF
  6399. cat confdefs.h >>conftest.$ac_ext
  6400. cat >>conftest.$ac_ext <<_ACEOF
  6401. /* end confdefs.h. */
  6402. #if defined CRAY && ! defined CRAY2
  6403. webecray
  6404. #else
  6405. wenotbecray
  6406. #endif
  6407. _ACEOF
  6408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6409. $EGREP "webecray" >/dev/null 2>&1; then
  6410. ac_cv_os_cray=yes
  6411. else
  6412. ac_cv_os_cray=no
  6413. fi
  6414. rm -f conftest*
  6415. fi
  6416. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6417. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6418. if test $ac_cv_os_cray = yes; then
  6419. for ac_func in _getb67 GETB67 getb67; do
  6420. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6421. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6422. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6423. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6424. echo $ECHO_N "(cached) $ECHO_C" >&6
  6425. else
  6426. cat >conftest.$ac_ext <<_ACEOF
  6427. /* confdefs.h. */
  6428. _ACEOF
  6429. cat confdefs.h >>conftest.$ac_ext
  6430. cat >>conftest.$ac_ext <<_ACEOF
  6431. /* end confdefs.h. */
  6432. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6433. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6434. #define $ac_func innocuous_$ac_func
  6435. /* System header to define __stub macros and hopefully few prototypes,
  6436. which can conflict with char $ac_func (); below.
  6437. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6438. <limits.h> exists even on freestanding compilers. */
  6439. #ifdef __STDC__
  6440. # include <limits.h>
  6441. #else
  6442. # include <assert.h>
  6443. #endif
  6444. #undef $ac_func
  6445. /* Override any GCC internal prototype to avoid an error.
  6446. Use char because int might match the return type of a GCC
  6447. builtin and then its argument prototype would still apply. */
  6448. #ifdef __cplusplus
  6449. extern "C"
  6450. #endif
  6451. char $ac_func ();
  6452. /* The GNU C library defines this for functions which it implements
  6453. to always fail with ENOSYS. Some functions are actually named
  6454. something starting with __ and the normal name is an alias. */
  6455. #if defined __stub_$ac_func || defined __stub___$ac_func
  6456. choke me
  6457. #endif
  6458. int
  6459. main ()
  6460. {
  6461. return $ac_func ();
  6462. ;
  6463. return 0;
  6464. }
  6465. _ACEOF
  6466. rm -f conftest.$ac_objext conftest$ac_exeext
  6467. if { (ac_try="$ac_link"
  6468. case "(($ac_try" in
  6469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6470. *) ac_try_echo=$ac_try;;
  6471. esac
  6472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6473. (eval "$ac_link") 2>conftest.er1
  6474. ac_status=$?
  6475. grep -v '^ *+' conftest.er1 >conftest.err
  6476. rm -f conftest.er1
  6477. cat conftest.err >&5
  6478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479. (exit $ac_status); } && {
  6480. test -z "$ac_cxx_werror_flag" ||
  6481. test ! -s conftest.err
  6482. } && test -s conftest$ac_exeext &&
  6483. $as_test_x conftest$ac_exeext; then
  6484. eval "$as_ac_var=yes"
  6485. else
  6486. echo "$as_me: failed program was:" >&5
  6487. sed 's/^/| /' conftest.$ac_ext >&5
  6488. eval "$as_ac_var=no"
  6489. fi
  6490. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6491. conftest$ac_exeext conftest.$ac_ext
  6492. fi
  6493. ac_res=`eval echo '${'$as_ac_var'}'`
  6494. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6495. echo "${ECHO_T}$ac_res" >&6; }
  6496. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6497. cat >>confdefs.h <<_ACEOF
  6498. #define CRAY_STACKSEG_END $ac_func
  6499. _ACEOF
  6500. break
  6501. fi
  6502. done
  6503. fi
  6504. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6505. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6506. if test "${ac_cv_c_stack_direction+set}" = set; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. if test "$cross_compiling" = yes; then
  6510. ac_cv_c_stack_direction=0
  6511. else
  6512. cat >conftest.$ac_ext <<_ACEOF
  6513. /* confdefs.h. */
  6514. _ACEOF
  6515. cat confdefs.h >>conftest.$ac_ext
  6516. cat >>conftest.$ac_ext <<_ACEOF
  6517. /* end confdefs.h. */
  6518. $ac_includes_default
  6519. int
  6520. find_stack_direction ()
  6521. {
  6522. static char *addr = 0;
  6523. auto char dummy;
  6524. if (addr == 0)
  6525. {
  6526. addr = &dummy;
  6527. return find_stack_direction ();
  6528. }
  6529. else
  6530. return (&dummy > addr) ? 1 : -1;
  6531. }
  6532. int
  6533. main ()
  6534. {
  6535. return find_stack_direction () < 0;
  6536. }
  6537. _ACEOF
  6538. rm -f conftest$ac_exeext
  6539. if { (ac_try="$ac_link"
  6540. case "(($ac_try" in
  6541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6542. *) ac_try_echo=$ac_try;;
  6543. esac
  6544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6545. (eval "$ac_link") 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6549. { (case "(($ac_try" in
  6550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6551. *) ac_try_echo=$ac_try;;
  6552. esac
  6553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6554. (eval "$ac_try") 2>&5
  6555. ac_status=$?
  6556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6557. (exit $ac_status); }; }; then
  6558. ac_cv_c_stack_direction=1
  6559. else
  6560. echo "$as_me: program exited with status $ac_status" >&5
  6561. echo "$as_me: failed program was:" >&5
  6562. sed 's/^/| /' conftest.$ac_ext >&5
  6563. ( exit $ac_status )
  6564. ac_cv_c_stack_direction=-1
  6565. fi
  6566. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6567. fi
  6568. fi
  6569. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6570. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6571. cat >>confdefs.h <<_ACEOF
  6572. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6573. _ACEOF
  6574. fi
  6575. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6576. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6577. if test "${ac_cv_header_stdc+set}" = set; then
  6578. echo $ECHO_N "(cached) $ECHO_C" >&6
  6579. else
  6580. cat >conftest.$ac_ext <<_ACEOF
  6581. /* confdefs.h. */
  6582. _ACEOF
  6583. cat confdefs.h >>conftest.$ac_ext
  6584. cat >>conftest.$ac_ext <<_ACEOF
  6585. /* end confdefs.h. */
  6586. #include <stdlib.h>
  6587. #include <stdarg.h>
  6588. #include <string.h>
  6589. #include <float.h>
  6590. int
  6591. main ()
  6592. {
  6593. ;
  6594. return 0;
  6595. }
  6596. _ACEOF
  6597. rm -f conftest.$ac_objext
  6598. if { (ac_try="$ac_compile"
  6599. case "(($ac_try" in
  6600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6601. *) ac_try_echo=$ac_try;;
  6602. esac
  6603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6604. (eval "$ac_compile") 2>conftest.er1
  6605. ac_status=$?
  6606. grep -v '^ *+' conftest.er1 >conftest.err
  6607. rm -f conftest.er1
  6608. cat conftest.err >&5
  6609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6610. (exit $ac_status); } && {
  6611. test -z "$ac_cxx_werror_flag" ||
  6612. test ! -s conftest.err
  6613. } && test -s conftest.$ac_objext; then
  6614. ac_cv_header_stdc=yes
  6615. else
  6616. echo "$as_me: failed program was:" >&5
  6617. sed 's/^/| /' conftest.$ac_ext >&5
  6618. ac_cv_header_stdc=no
  6619. fi
  6620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6621. if test $ac_cv_header_stdc = yes; then
  6622. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6623. cat >conftest.$ac_ext <<_ACEOF
  6624. /* confdefs.h. */
  6625. _ACEOF
  6626. cat confdefs.h >>conftest.$ac_ext
  6627. cat >>conftest.$ac_ext <<_ACEOF
  6628. /* end confdefs.h. */
  6629. #include <string.h>
  6630. _ACEOF
  6631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6632. $EGREP "memchr" >/dev/null 2>&1; then
  6633. :
  6634. else
  6635. ac_cv_header_stdc=no
  6636. fi
  6637. rm -f conftest*
  6638. fi
  6639. if test $ac_cv_header_stdc = yes; then
  6640. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. #include <stdlib.h>
  6648. _ACEOF
  6649. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6650. $EGREP "free" >/dev/null 2>&1; then
  6651. :
  6652. else
  6653. ac_cv_header_stdc=no
  6654. fi
  6655. rm -f conftest*
  6656. fi
  6657. if test $ac_cv_header_stdc = yes; then
  6658. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6659. if test "$cross_compiling" = yes; then
  6660. :
  6661. else
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. #include <ctype.h>
  6669. #include <stdlib.h>
  6670. #if ((' ' & 0x0FF) == 0x020)
  6671. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6672. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6673. #else
  6674. # define ISLOWER(c) \
  6675. (('a' <= (c) && (c) <= 'i') \
  6676. || ('j' <= (c) && (c) <= 'r') \
  6677. || ('s' <= (c) && (c) <= 'z'))
  6678. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6679. #endif
  6680. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6681. int
  6682. main ()
  6683. {
  6684. int i;
  6685. for (i = 0; i < 256; i++)
  6686. if (XOR (islower (i), ISLOWER (i))
  6687. || toupper (i) != TOUPPER (i))
  6688. return 2;
  6689. return 0;
  6690. }
  6691. _ACEOF
  6692. rm -f conftest$ac_exeext
  6693. if { (ac_try="$ac_link"
  6694. case "(($ac_try" in
  6695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6696. *) ac_try_echo=$ac_try;;
  6697. esac
  6698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6699. (eval "$ac_link") 2>&5
  6700. ac_status=$?
  6701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6703. { (case "(($ac_try" in
  6704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6705. *) ac_try_echo=$ac_try;;
  6706. esac
  6707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6708. (eval "$ac_try") 2>&5
  6709. ac_status=$?
  6710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6711. (exit $ac_status); }; }; then
  6712. :
  6713. else
  6714. echo "$as_me: program exited with status $ac_status" >&5
  6715. echo "$as_me: failed program was:" >&5
  6716. sed 's/^/| /' conftest.$ac_ext >&5
  6717. ( exit $ac_status )
  6718. ac_cv_header_stdc=no
  6719. fi
  6720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6721. fi
  6722. fi
  6723. fi
  6724. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6725. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6726. if test $ac_cv_header_stdc = yes; then
  6727. cat >>confdefs.h <<\_ACEOF
  6728. #define STDC_HEADERS 1
  6729. _ACEOF
  6730. fi
  6731. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h float.h inttypes.h io.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h wchar.h
  6732. do
  6733. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6734. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6735. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6736. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6737. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6738. echo $ECHO_N "(cached) $ECHO_C" >&6
  6739. fi
  6740. ac_res=`eval echo '${'$as_ac_Header'}'`
  6741. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6742. echo "${ECHO_T}$ac_res" >&6; }
  6743. else
  6744. # Is the header compilable?
  6745. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6746. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6747. cat >conftest.$ac_ext <<_ACEOF
  6748. /* confdefs.h. */
  6749. _ACEOF
  6750. cat confdefs.h >>conftest.$ac_ext
  6751. cat >>conftest.$ac_ext <<_ACEOF
  6752. /* end confdefs.h. */
  6753. $ac_includes_default
  6754. #include <$ac_header>
  6755. _ACEOF
  6756. rm -f conftest.$ac_objext
  6757. if { (ac_try="$ac_compile"
  6758. case "(($ac_try" in
  6759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6760. *) ac_try_echo=$ac_try;;
  6761. esac
  6762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6763. (eval "$ac_compile") 2>conftest.er1
  6764. ac_status=$?
  6765. grep -v '^ *+' conftest.er1 >conftest.err
  6766. rm -f conftest.er1
  6767. cat conftest.err >&5
  6768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6769. (exit $ac_status); } && {
  6770. test -z "$ac_cxx_werror_flag" ||
  6771. test ! -s conftest.err
  6772. } && test -s conftest.$ac_objext; then
  6773. ac_header_compiler=yes
  6774. else
  6775. echo "$as_me: failed program was:" >&5
  6776. sed 's/^/| /' conftest.$ac_ext >&5
  6777. ac_header_compiler=no
  6778. fi
  6779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6780. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6781. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6782. # Is the header present?
  6783. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6784. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6785. cat >conftest.$ac_ext <<_ACEOF
  6786. /* confdefs.h. */
  6787. _ACEOF
  6788. cat confdefs.h >>conftest.$ac_ext
  6789. cat >>conftest.$ac_ext <<_ACEOF
  6790. /* end confdefs.h. */
  6791. #include <$ac_header>
  6792. _ACEOF
  6793. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6794. case "(($ac_try" in
  6795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6796. *) ac_try_echo=$ac_try;;
  6797. esac
  6798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6799. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6800. ac_status=$?
  6801. grep -v '^ *+' conftest.er1 >conftest.err
  6802. rm -f conftest.er1
  6803. cat conftest.err >&5
  6804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6805. (exit $ac_status); } >/dev/null && {
  6806. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6807. test ! -s conftest.err
  6808. }; then
  6809. ac_header_preproc=yes
  6810. else
  6811. echo "$as_me: failed program was:" >&5
  6812. sed 's/^/| /' conftest.$ac_ext >&5
  6813. ac_header_preproc=no
  6814. fi
  6815. rm -f conftest.err conftest.$ac_ext
  6816. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6817. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6818. # So? What about this header?
  6819. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6820. yes:no: )
  6821. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6822. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6823. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6824. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6825. ac_header_preproc=yes
  6826. ;;
  6827. no:yes:* )
  6828. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6829. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6830. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6831. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6832. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6833. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6834. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6835. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6836. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6837. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6838. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6839. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6840. ( cat <<\_ASBOX
  6841. ## ----------------------------------------------- ##
  6842. ## Report this to t-tujikawa@users.sourceforge.net ##
  6843. ## ----------------------------------------------- ##
  6844. _ASBOX
  6845. ) | sed "s/^/$as_me: WARNING: /" >&2
  6846. ;;
  6847. esac
  6848. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6849. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6851. echo $ECHO_N "(cached) $ECHO_C" >&6
  6852. else
  6853. eval "$as_ac_Header=\$ac_header_preproc"
  6854. fi
  6855. ac_res=`eval echo '${'$as_ac_Header'}'`
  6856. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6857. echo "${ECHO_T}$ac_res" >&6; }
  6858. fi
  6859. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6860. cat >>confdefs.h <<_ACEOF
  6861. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6862. _ACEOF
  6863. fi
  6864. done
  6865. # Checks for typedefs, structures, and compiler characteristics.
  6866. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6867. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6868. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6869. echo $ECHO_N "(cached) $ECHO_C" >&6
  6870. else
  6871. cat >conftest.$ac_ext <<_ACEOF
  6872. /* confdefs.h. */
  6873. _ACEOF
  6874. cat confdefs.h >>conftest.$ac_ext
  6875. cat >>conftest.$ac_ext <<_ACEOF
  6876. /* end confdefs.h. */
  6877. #include <stdbool.h>
  6878. #ifndef bool
  6879. "error: bool is not defined"
  6880. #endif
  6881. #ifndef false
  6882. "error: false is not defined"
  6883. #endif
  6884. #if false
  6885. "error: false is not 0"
  6886. #endif
  6887. #ifndef true
  6888. "error: true is not defined"
  6889. #endif
  6890. #if true != 1
  6891. "error: true is not 1"
  6892. #endif
  6893. #ifndef __bool_true_false_are_defined
  6894. "error: __bool_true_false_are_defined is not defined"
  6895. #endif
  6896. struct s { _Bool s: 1; _Bool t; } s;
  6897. char a[true == 1 ? 1 : -1];
  6898. char b[false == 0 ? 1 : -1];
  6899. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6900. char d[(bool) 0.5 == true ? 1 : -1];
  6901. bool e = &s;
  6902. char f[(_Bool) 0.0 == false ? 1 : -1];
  6903. char g[true];
  6904. char h[sizeof (_Bool)];
  6905. char i[sizeof s.t];
  6906. enum { j = false, k = true, l = false * true, m = true * 256 };
  6907. _Bool n[m];
  6908. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6909. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6910. # if defined __xlc__ || defined __GNUC__
  6911. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6912. reported by James Lemley on 2005-10-05; see
  6913. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6914. This test is not quite right, since xlc is allowed to
  6915. reject this program, as the initializer for xlcbug is
  6916. not one of the forms that C requires support for.
  6917. However, doing the test right would require a runtime
  6918. test, and that would make cross-compilation harder.
  6919. Let us hope that IBM fixes the xlc bug, and also adds
  6920. support for this kind of constant expression. In the
  6921. meantime, this test will reject xlc, which is OK, since
  6922. our stdbool.h substitute should suffice. We also test
  6923. this with GCC, where it should work, to detect more
  6924. quickly whether someone messes up the test in the
  6925. future. */
  6926. char digs[] = "0123456789";
  6927. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6928. # endif
  6929. /* Catch a bug in an HP-UX C compiler. See
  6930. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6931. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6932. */
  6933. _Bool q = true;
  6934. _Bool *pq = &q;
  6935. int
  6936. main ()
  6937. {
  6938. *pq |= q;
  6939. *pq |= ! q;
  6940. /* Refer to every declared value, to avoid compiler optimizations. */
  6941. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6942. + !m + !n + !o + !p + !q + !pq);
  6943. ;
  6944. return 0;
  6945. }
  6946. _ACEOF
  6947. rm -f conftest.$ac_objext
  6948. if { (ac_try="$ac_compile"
  6949. case "(($ac_try" in
  6950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6951. *) ac_try_echo=$ac_try;;
  6952. esac
  6953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6954. (eval "$ac_compile") 2>conftest.er1
  6955. ac_status=$?
  6956. grep -v '^ *+' conftest.er1 >conftest.err
  6957. rm -f conftest.er1
  6958. cat conftest.err >&5
  6959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6960. (exit $ac_status); } && {
  6961. test -z "$ac_cxx_werror_flag" ||
  6962. test ! -s conftest.err
  6963. } && test -s conftest.$ac_objext; then
  6964. ac_cv_header_stdbool_h=yes
  6965. else
  6966. echo "$as_me: failed program was:" >&5
  6967. sed 's/^/| /' conftest.$ac_ext >&5
  6968. ac_cv_header_stdbool_h=no
  6969. fi
  6970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6971. fi
  6972. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6973. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6974. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6975. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6976. if test "${ac_cv_type__Bool+set}" = set; then
  6977. echo $ECHO_N "(cached) $ECHO_C" >&6
  6978. else
  6979. cat >conftest.$ac_ext <<_ACEOF
  6980. /* confdefs.h. */
  6981. _ACEOF
  6982. cat confdefs.h >>conftest.$ac_ext
  6983. cat >>conftest.$ac_ext <<_ACEOF
  6984. /* end confdefs.h. */
  6985. $ac_includes_default
  6986. typedef _Bool ac__type_new_;
  6987. int
  6988. main ()
  6989. {
  6990. if ((ac__type_new_ *) 0)
  6991. return 0;
  6992. if (sizeof (ac__type_new_))
  6993. return 0;
  6994. ;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. rm -f conftest.$ac_objext
  6999. if { (ac_try="$ac_compile"
  7000. case "(($ac_try" in
  7001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7002. *) ac_try_echo=$ac_try;;
  7003. esac
  7004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7005. (eval "$ac_compile") 2>conftest.er1
  7006. ac_status=$?
  7007. grep -v '^ *+' conftest.er1 >conftest.err
  7008. rm -f conftest.er1
  7009. cat conftest.err >&5
  7010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); } && {
  7012. test -z "$ac_cxx_werror_flag" ||
  7013. test ! -s conftest.err
  7014. } && test -s conftest.$ac_objext; then
  7015. ac_cv_type__Bool=yes
  7016. else
  7017. echo "$as_me: failed program was:" >&5
  7018. sed 's/^/| /' conftest.$ac_ext >&5
  7019. ac_cv_type__Bool=no
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7022. fi
  7023. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7024. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7025. if test $ac_cv_type__Bool = yes; then
  7026. cat >>confdefs.h <<_ACEOF
  7027. #define HAVE__BOOL 1
  7028. _ACEOF
  7029. fi
  7030. if test $ac_cv_header_stdbool_h = yes; then
  7031. cat >>confdefs.h <<\_ACEOF
  7032. #define HAVE_STDBOOL_H 1
  7033. _ACEOF
  7034. fi
  7035. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7036. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7037. if test "${ac_cv_c_const+set}" = set; then
  7038. echo $ECHO_N "(cached) $ECHO_C" >&6
  7039. else
  7040. cat >conftest.$ac_ext <<_ACEOF
  7041. /* confdefs.h. */
  7042. _ACEOF
  7043. cat confdefs.h >>conftest.$ac_ext
  7044. cat >>conftest.$ac_ext <<_ACEOF
  7045. /* end confdefs.h. */
  7046. int
  7047. main ()
  7048. {
  7049. /* FIXME: Include the comments suggested by Paul. */
  7050. #ifndef __cplusplus
  7051. /* Ultrix mips cc rejects this. */
  7052. typedef int charset[2];
  7053. const charset cs;
  7054. /* SunOS 4.1.1 cc rejects this. */
  7055. char const *const *pcpcc;
  7056. char **ppc;
  7057. /* NEC SVR4.0.2 mips cc rejects this. */
  7058. struct point {int x, y;};
  7059. static struct point const zero = {0,0};
  7060. /* AIX XL C 1.02.0.0 rejects this.
  7061. It does not let you subtract one const X* pointer from another in
  7062. an arm of an if-expression whose if-part is not a constant
  7063. expression */
  7064. const char *g = "string";
  7065. pcpcc = &g + (g ? g-g : 0);
  7066. /* HPUX 7.0 cc rejects these. */
  7067. ++pcpcc;
  7068. ppc = (char**) pcpcc;
  7069. pcpcc = (char const *const *) ppc;
  7070. { /* SCO 3.2v4 cc rejects this. */
  7071. char *t;
  7072. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7073. *t++ = 0;
  7074. if (s) return 0;
  7075. }
  7076. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7077. int x[] = {25, 17};
  7078. const int *foo = &x[0];
  7079. ++foo;
  7080. }
  7081. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7082. typedef const int *iptr;
  7083. iptr p = 0;
  7084. ++p;
  7085. }
  7086. { /* AIX XL C 1.02.0.0 rejects this saying
  7087. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7088. struct s { int j; const int *ap[3]; };
  7089. struct s *b; b->j = 5;
  7090. }
  7091. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7092. const int foo = 10;
  7093. if (!foo) return 0;
  7094. }
  7095. return !cs[0] && !zero.x;
  7096. #endif
  7097. ;
  7098. return 0;
  7099. }
  7100. _ACEOF
  7101. rm -f conftest.$ac_objext
  7102. if { (ac_try="$ac_compile"
  7103. case "(($ac_try" in
  7104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7105. *) ac_try_echo=$ac_try;;
  7106. esac
  7107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7108. (eval "$ac_compile") 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } && {
  7115. test -z "$ac_cxx_werror_flag" ||
  7116. test ! -s conftest.err
  7117. } && test -s conftest.$ac_objext; then
  7118. ac_cv_c_const=yes
  7119. else
  7120. echo "$as_me: failed program was:" >&5
  7121. sed 's/^/| /' conftest.$ac_ext >&5
  7122. ac_cv_c_const=no
  7123. fi
  7124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7125. fi
  7126. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7127. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7128. if test $ac_cv_c_const = no; then
  7129. cat >>confdefs.h <<\_ACEOF
  7130. #define const
  7131. _ACEOF
  7132. fi
  7133. { echo "$as_me:$LINENO: checking for inline" >&5
  7134. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7135. if test "${ac_cv_c_inline+set}" = set; then
  7136. echo $ECHO_N "(cached) $ECHO_C" >&6
  7137. else
  7138. ac_cv_c_inline=no
  7139. for ac_kw in inline __inline__ __inline; do
  7140. cat >conftest.$ac_ext <<_ACEOF
  7141. /* confdefs.h. */
  7142. _ACEOF
  7143. cat confdefs.h >>conftest.$ac_ext
  7144. cat >>conftest.$ac_ext <<_ACEOF
  7145. /* end confdefs.h. */
  7146. #ifndef __cplusplus
  7147. typedef int foo_t;
  7148. static $ac_kw foo_t static_foo () {return 0; }
  7149. $ac_kw foo_t foo () {return 0; }
  7150. #endif
  7151. _ACEOF
  7152. rm -f conftest.$ac_objext
  7153. if { (ac_try="$ac_compile"
  7154. case "(($ac_try" in
  7155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7156. *) ac_try_echo=$ac_try;;
  7157. esac
  7158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7159. (eval "$ac_compile") 2>conftest.er1
  7160. ac_status=$?
  7161. grep -v '^ *+' conftest.er1 >conftest.err
  7162. rm -f conftest.er1
  7163. cat conftest.err >&5
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); } && {
  7166. test -z "$ac_cxx_werror_flag" ||
  7167. test ! -s conftest.err
  7168. } && test -s conftest.$ac_objext; then
  7169. ac_cv_c_inline=$ac_kw
  7170. else
  7171. echo "$as_me: failed program was:" >&5
  7172. sed 's/^/| /' conftest.$ac_ext >&5
  7173. fi
  7174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7175. test "$ac_cv_c_inline" != no && break
  7176. done
  7177. fi
  7178. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7179. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7180. case $ac_cv_c_inline in
  7181. inline | yes) ;;
  7182. *)
  7183. case $ac_cv_c_inline in
  7184. no) ac_val=;;
  7185. *) ac_val=$ac_cv_c_inline;;
  7186. esac
  7187. cat >>confdefs.h <<_ACEOF
  7188. #ifndef __cplusplus
  7189. #define inline $ac_val
  7190. #endif
  7191. _ACEOF
  7192. ;;
  7193. esac
  7194. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7195. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7196. if test "${ac_cv_c_int16_t+set}" = set; then
  7197. echo $ECHO_N "(cached) $ECHO_C" >&6
  7198. else
  7199. ac_cv_c_int16_t=no
  7200. for ac_type in 'int16_t' 'int' 'long int' \
  7201. 'long long int' 'short int' 'signed char'; do
  7202. cat >conftest.$ac_ext <<_ACEOF
  7203. /* confdefs.h. */
  7204. _ACEOF
  7205. cat confdefs.h >>conftest.$ac_ext
  7206. cat >>conftest.$ac_ext <<_ACEOF
  7207. /* end confdefs.h. */
  7208. $ac_includes_default
  7209. int
  7210. main ()
  7211. {
  7212. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7213. test_array [0] = 0
  7214. ;
  7215. return 0;
  7216. }
  7217. _ACEOF
  7218. rm -f conftest.$ac_objext
  7219. if { (ac_try="$ac_compile"
  7220. case "(($ac_try" in
  7221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7222. *) ac_try_echo=$ac_try;;
  7223. esac
  7224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7225. (eval "$ac_compile") 2>conftest.er1
  7226. ac_status=$?
  7227. grep -v '^ *+' conftest.er1 >conftest.err
  7228. rm -f conftest.er1
  7229. cat conftest.err >&5
  7230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. (exit $ac_status); } && {
  7232. test -z "$ac_cxx_werror_flag" ||
  7233. test ! -s conftest.err
  7234. } && test -s conftest.$ac_objext; then
  7235. cat >conftest.$ac_ext <<_ACEOF
  7236. /* confdefs.h. */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h. */
  7241. $ac_includes_default
  7242. int
  7243. main ()
  7244. {
  7245. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7246. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7247. test_array [0] = 0
  7248. ;
  7249. return 0;
  7250. }
  7251. _ACEOF
  7252. rm -f conftest.$ac_objext
  7253. if { (ac_try="$ac_compile"
  7254. case "(($ac_try" in
  7255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7256. *) ac_try_echo=$ac_try;;
  7257. esac
  7258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7259. (eval "$ac_compile") 2>conftest.er1
  7260. ac_status=$?
  7261. grep -v '^ *+' conftest.er1 >conftest.err
  7262. rm -f conftest.er1
  7263. cat conftest.err >&5
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); } && {
  7266. test -z "$ac_cxx_werror_flag" ||
  7267. test ! -s conftest.err
  7268. } && test -s conftest.$ac_objext; then
  7269. :
  7270. else
  7271. echo "$as_me: failed program was:" >&5
  7272. sed 's/^/| /' conftest.$ac_ext >&5
  7273. case $ac_type in
  7274. int16_t) ac_cv_c_int16_t=yes ;;
  7275. *) ac_cv_c_int16_t=$ac_type ;;
  7276. esac
  7277. fi
  7278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7279. else
  7280. echo "$as_me: failed program was:" >&5
  7281. sed 's/^/| /' conftest.$ac_ext >&5
  7282. fi
  7283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7284. test "$ac_cv_c_int16_t" != no && break
  7285. done
  7286. fi
  7287. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7288. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7289. case $ac_cv_c_int16_t in #(
  7290. no|yes) ;; #(
  7291. *)
  7292. cat >>confdefs.h <<_ACEOF
  7293. #define int16_t $ac_cv_c_int16_t
  7294. _ACEOF
  7295. ;;
  7296. esac
  7297. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7298. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7299. if test "${ac_cv_c_int32_t+set}" = set; then
  7300. echo $ECHO_N "(cached) $ECHO_C" >&6
  7301. else
  7302. ac_cv_c_int32_t=no
  7303. for ac_type in 'int32_t' 'int' 'long int' \
  7304. 'long long int' 'short int' 'signed char'; do
  7305. cat >conftest.$ac_ext <<_ACEOF
  7306. /* confdefs.h. */
  7307. _ACEOF
  7308. cat confdefs.h >>conftest.$ac_ext
  7309. cat >>conftest.$ac_ext <<_ACEOF
  7310. /* end confdefs.h. */
  7311. $ac_includes_default
  7312. int
  7313. main ()
  7314. {
  7315. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7316. test_array [0] = 0
  7317. ;
  7318. return 0;
  7319. }
  7320. _ACEOF
  7321. rm -f conftest.$ac_objext
  7322. if { (ac_try="$ac_compile"
  7323. case "(($ac_try" in
  7324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7325. *) ac_try_echo=$ac_try;;
  7326. esac
  7327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7328. (eval "$ac_compile") 2>conftest.er1
  7329. ac_status=$?
  7330. grep -v '^ *+' conftest.er1 >conftest.err
  7331. rm -f conftest.er1
  7332. cat conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. (exit $ac_status); } && {
  7335. test -z "$ac_cxx_werror_flag" ||
  7336. test ! -s conftest.err
  7337. } && test -s conftest.$ac_objext; then
  7338. cat >conftest.$ac_ext <<_ACEOF
  7339. /* confdefs.h. */
  7340. _ACEOF
  7341. cat confdefs.h >>conftest.$ac_ext
  7342. cat >>conftest.$ac_ext <<_ACEOF
  7343. /* end confdefs.h. */
  7344. $ac_includes_default
  7345. int
  7346. main ()
  7347. {
  7348. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7349. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7350. test_array [0] = 0
  7351. ;
  7352. return 0;
  7353. }
  7354. _ACEOF
  7355. rm -f conftest.$ac_objext
  7356. if { (ac_try="$ac_compile"
  7357. case "(($ac_try" in
  7358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7359. *) ac_try_echo=$ac_try;;
  7360. esac
  7361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7362. (eval "$ac_compile") 2>conftest.er1
  7363. ac_status=$?
  7364. grep -v '^ *+' conftest.er1 >conftest.err
  7365. rm -f conftest.er1
  7366. cat conftest.err >&5
  7367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. (exit $ac_status); } && {
  7369. test -z "$ac_cxx_werror_flag" ||
  7370. test ! -s conftest.err
  7371. } && test -s conftest.$ac_objext; then
  7372. :
  7373. else
  7374. echo "$as_me: failed program was:" >&5
  7375. sed 's/^/| /' conftest.$ac_ext >&5
  7376. case $ac_type in
  7377. int32_t) ac_cv_c_int32_t=yes ;;
  7378. *) ac_cv_c_int32_t=$ac_type ;;
  7379. esac
  7380. fi
  7381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7382. else
  7383. echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. fi
  7386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7387. test "$ac_cv_c_int32_t" != no && break
  7388. done
  7389. fi
  7390. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7391. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7392. case $ac_cv_c_int32_t in #(
  7393. no|yes) ;; #(
  7394. *)
  7395. cat >>confdefs.h <<_ACEOF
  7396. #define int32_t $ac_cv_c_int32_t
  7397. _ACEOF
  7398. ;;
  7399. esac
  7400. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7401. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7402. if test "${ac_cv_c_int64_t+set}" = set; then
  7403. echo $ECHO_N "(cached) $ECHO_C" >&6
  7404. else
  7405. ac_cv_c_int64_t=no
  7406. for ac_type in 'int64_t' 'int' 'long int' \
  7407. 'long long int' 'short int' 'signed char'; do
  7408. cat >conftest.$ac_ext <<_ACEOF
  7409. /* confdefs.h. */
  7410. _ACEOF
  7411. cat confdefs.h >>conftest.$ac_ext
  7412. cat >>conftest.$ac_ext <<_ACEOF
  7413. /* end confdefs.h. */
  7414. $ac_includes_default
  7415. int
  7416. main ()
  7417. {
  7418. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7419. test_array [0] = 0
  7420. ;
  7421. return 0;
  7422. }
  7423. _ACEOF
  7424. rm -f conftest.$ac_objext
  7425. if { (ac_try="$ac_compile"
  7426. case "(($ac_try" in
  7427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7428. *) ac_try_echo=$ac_try;;
  7429. esac
  7430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7431. (eval "$ac_compile") 2>conftest.er1
  7432. ac_status=$?
  7433. grep -v '^ *+' conftest.er1 >conftest.err
  7434. rm -f conftest.er1
  7435. cat conftest.err >&5
  7436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437. (exit $ac_status); } && {
  7438. test -z "$ac_cxx_werror_flag" ||
  7439. test ! -s conftest.err
  7440. } && test -s conftest.$ac_objext; then
  7441. cat >conftest.$ac_ext <<_ACEOF
  7442. /* confdefs.h. */
  7443. _ACEOF
  7444. cat confdefs.h >>conftest.$ac_ext
  7445. cat >>conftest.$ac_ext <<_ACEOF
  7446. /* end confdefs.h. */
  7447. $ac_includes_default
  7448. int
  7449. main ()
  7450. {
  7451. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7452. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7453. test_array [0] = 0
  7454. ;
  7455. return 0;
  7456. }
  7457. _ACEOF
  7458. rm -f conftest.$ac_objext
  7459. if { (ac_try="$ac_compile"
  7460. case "(($ac_try" in
  7461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7462. *) ac_try_echo=$ac_try;;
  7463. esac
  7464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7465. (eval "$ac_compile") 2>conftest.er1
  7466. ac_status=$?
  7467. grep -v '^ *+' conftest.er1 >conftest.err
  7468. rm -f conftest.er1
  7469. cat conftest.err >&5
  7470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7471. (exit $ac_status); } && {
  7472. test -z "$ac_cxx_werror_flag" ||
  7473. test ! -s conftest.err
  7474. } && test -s conftest.$ac_objext; then
  7475. :
  7476. else
  7477. echo "$as_me: failed program was:" >&5
  7478. sed 's/^/| /' conftest.$ac_ext >&5
  7479. case $ac_type in
  7480. int64_t) ac_cv_c_int64_t=yes ;;
  7481. *) ac_cv_c_int64_t=$ac_type ;;
  7482. esac
  7483. fi
  7484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7485. else
  7486. echo "$as_me: failed program was:" >&5
  7487. sed 's/^/| /' conftest.$ac_ext >&5
  7488. fi
  7489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7490. test "$ac_cv_c_int64_t" != no && break
  7491. done
  7492. fi
  7493. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7494. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7495. case $ac_cv_c_int64_t in #(
  7496. no|yes) ;; #(
  7497. *)
  7498. cat >>confdefs.h <<_ACEOF
  7499. #define int64_t $ac_cv_c_int64_t
  7500. _ACEOF
  7501. ;;
  7502. esac
  7503. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7504. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7505. if test "${ac_cv_c_int8_t+set}" = set; then
  7506. echo $ECHO_N "(cached) $ECHO_C" >&6
  7507. else
  7508. ac_cv_c_int8_t=no
  7509. for ac_type in 'int8_t' 'int' 'long int' \
  7510. 'long long int' 'short int' 'signed char'; do
  7511. cat >conftest.$ac_ext <<_ACEOF
  7512. /* confdefs.h. */
  7513. _ACEOF
  7514. cat confdefs.h >>conftest.$ac_ext
  7515. cat >>conftest.$ac_ext <<_ACEOF
  7516. /* end confdefs.h. */
  7517. $ac_includes_default
  7518. int
  7519. main ()
  7520. {
  7521. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7522. test_array [0] = 0
  7523. ;
  7524. return 0;
  7525. }
  7526. _ACEOF
  7527. rm -f conftest.$ac_objext
  7528. if { (ac_try="$ac_compile"
  7529. case "(($ac_try" in
  7530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7531. *) ac_try_echo=$ac_try;;
  7532. esac
  7533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7534. (eval "$ac_compile") 2>conftest.er1
  7535. ac_status=$?
  7536. grep -v '^ *+' conftest.er1 >conftest.err
  7537. rm -f conftest.er1
  7538. cat conftest.err >&5
  7539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7540. (exit $ac_status); } && {
  7541. test -z "$ac_cxx_werror_flag" ||
  7542. test ! -s conftest.err
  7543. } && test -s conftest.$ac_objext; then
  7544. cat >conftest.$ac_ext <<_ACEOF
  7545. /* confdefs.h. */
  7546. _ACEOF
  7547. cat confdefs.h >>conftest.$ac_ext
  7548. cat >>conftest.$ac_ext <<_ACEOF
  7549. /* end confdefs.h. */
  7550. $ac_includes_default
  7551. int
  7552. main ()
  7553. {
  7554. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7555. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7556. test_array [0] = 0
  7557. ;
  7558. return 0;
  7559. }
  7560. _ACEOF
  7561. rm -f conftest.$ac_objext
  7562. if { (ac_try="$ac_compile"
  7563. case "(($ac_try" in
  7564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7565. *) ac_try_echo=$ac_try;;
  7566. esac
  7567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7568. (eval "$ac_compile") 2>conftest.er1
  7569. ac_status=$?
  7570. grep -v '^ *+' conftest.er1 >conftest.err
  7571. rm -f conftest.er1
  7572. cat conftest.err >&5
  7573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. (exit $ac_status); } && {
  7575. test -z "$ac_cxx_werror_flag" ||
  7576. test ! -s conftest.err
  7577. } && test -s conftest.$ac_objext; then
  7578. :
  7579. else
  7580. echo "$as_me: failed program was:" >&5
  7581. sed 's/^/| /' conftest.$ac_ext >&5
  7582. case $ac_type in
  7583. int8_t) ac_cv_c_int8_t=yes ;;
  7584. *) ac_cv_c_int8_t=$ac_type ;;
  7585. esac
  7586. fi
  7587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7588. else
  7589. echo "$as_me: failed program was:" >&5
  7590. sed 's/^/| /' conftest.$ac_ext >&5
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7593. test "$ac_cv_c_int8_t" != no && break
  7594. done
  7595. fi
  7596. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7597. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7598. case $ac_cv_c_int8_t in #(
  7599. no|yes) ;; #(
  7600. *)
  7601. cat >>confdefs.h <<_ACEOF
  7602. #define int8_t $ac_cv_c_int8_t
  7603. _ACEOF
  7604. ;;
  7605. esac
  7606. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7607. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7608. if test "${ac_cv_type_mode_t+set}" = set; then
  7609. echo $ECHO_N "(cached) $ECHO_C" >&6
  7610. else
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. $ac_includes_default
  7618. typedef mode_t ac__type_new_;
  7619. int
  7620. main ()
  7621. {
  7622. if ((ac__type_new_ *) 0)
  7623. return 0;
  7624. if (sizeof (ac__type_new_))
  7625. return 0;
  7626. ;
  7627. return 0;
  7628. }
  7629. _ACEOF
  7630. rm -f conftest.$ac_objext
  7631. if { (ac_try="$ac_compile"
  7632. case "(($ac_try" in
  7633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7634. *) ac_try_echo=$ac_try;;
  7635. esac
  7636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7637. (eval "$ac_compile") 2>conftest.er1
  7638. ac_status=$?
  7639. grep -v '^ *+' conftest.er1 >conftest.err
  7640. rm -f conftest.er1
  7641. cat conftest.err >&5
  7642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7643. (exit $ac_status); } && {
  7644. test -z "$ac_cxx_werror_flag" ||
  7645. test ! -s conftest.err
  7646. } && test -s conftest.$ac_objext; then
  7647. ac_cv_type_mode_t=yes
  7648. else
  7649. echo "$as_me: failed program was:" >&5
  7650. sed 's/^/| /' conftest.$ac_ext >&5
  7651. ac_cv_type_mode_t=no
  7652. fi
  7653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7654. fi
  7655. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7656. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7657. if test $ac_cv_type_mode_t = yes; then
  7658. :
  7659. else
  7660. cat >>confdefs.h <<_ACEOF
  7661. #define mode_t int
  7662. _ACEOF
  7663. fi
  7664. { echo "$as_me:$LINENO: checking for off_t" >&5
  7665. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7666. if test "${ac_cv_type_off_t+set}" = set; then
  7667. echo $ECHO_N "(cached) $ECHO_C" >&6
  7668. else
  7669. cat >conftest.$ac_ext <<_ACEOF
  7670. /* confdefs.h. */
  7671. _ACEOF
  7672. cat confdefs.h >>conftest.$ac_ext
  7673. cat >>conftest.$ac_ext <<_ACEOF
  7674. /* end confdefs.h. */
  7675. $ac_includes_default
  7676. typedef off_t ac__type_new_;
  7677. int
  7678. main ()
  7679. {
  7680. if ((ac__type_new_ *) 0)
  7681. return 0;
  7682. if (sizeof (ac__type_new_))
  7683. return 0;
  7684. ;
  7685. return 0;
  7686. }
  7687. _ACEOF
  7688. rm -f conftest.$ac_objext
  7689. if { (ac_try="$ac_compile"
  7690. case "(($ac_try" in
  7691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7692. *) ac_try_echo=$ac_try;;
  7693. esac
  7694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7695. (eval "$ac_compile") 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } && {
  7702. test -z "$ac_cxx_werror_flag" ||
  7703. test ! -s conftest.err
  7704. } && test -s conftest.$ac_objext; then
  7705. ac_cv_type_off_t=yes
  7706. else
  7707. echo "$as_me: failed program was:" >&5
  7708. sed 's/^/| /' conftest.$ac_ext >&5
  7709. ac_cv_type_off_t=no
  7710. fi
  7711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7712. fi
  7713. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7714. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7715. if test $ac_cv_type_off_t = yes; then
  7716. :
  7717. else
  7718. cat >>confdefs.h <<_ACEOF
  7719. #define off_t long int
  7720. _ACEOF
  7721. fi
  7722. { echo "$as_me:$LINENO: checking for size_t" >&5
  7723. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7724. if test "${ac_cv_type_size_t+set}" = set; then
  7725. echo $ECHO_N "(cached) $ECHO_C" >&6
  7726. else
  7727. cat >conftest.$ac_ext <<_ACEOF
  7728. /* confdefs.h. */
  7729. _ACEOF
  7730. cat confdefs.h >>conftest.$ac_ext
  7731. cat >>conftest.$ac_ext <<_ACEOF
  7732. /* end confdefs.h. */
  7733. $ac_includes_default
  7734. typedef size_t ac__type_new_;
  7735. int
  7736. main ()
  7737. {
  7738. if ((ac__type_new_ *) 0)
  7739. return 0;
  7740. if (sizeof (ac__type_new_))
  7741. return 0;
  7742. ;
  7743. return 0;
  7744. }
  7745. _ACEOF
  7746. rm -f conftest.$ac_objext
  7747. if { (ac_try="$ac_compile"
  7748. case "(($ac_try" in
  7749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7750. *) ac_try_echo=$ac_try;;
  7751. esac
  7752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7753. (eval "$ac_compile") 2>conftest.er1
  7754. ac_status=$?
  7755. grep -v '^ *+' conftest.er1 >conftest.err
  7756. rm -f conftest.er1
  7757. cat conftest.err >&5
  7758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. (exit $ac_status); } && {
  7760. test -z "$ac_cxx_werror_flag" ||
  7761. test ! -s conftest.err
  7762. } && test -s conftest.$ac_objext; then
  7763. ac_cv_type_size_t=yes
  7764. else
  7765. echo "$as_me: failed program was:" >&5
  7766. sed 's/^/| /' conftest.$ac_ext >&5
  7767. ac_cv_type_size_t=no
  7768. fi
  7769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7770. fi
  7771. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7772. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7773. if test $ac_cv_type_size_t = yes; then
  7774. :
  7775. else
  7776. cat >>confdefs.h <<_ACEOF
  7777. #define size_t unsigned int
  7778. _ACEOF
  7779. fi
  7780. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7781. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7782. if test "${ac_cv_type_ssize_t+set}" = set; then
  7783. echo $ECHO_N "(cached) $ECHO_C" >&6
  7784. else
  7785. cat >conftest.$ac_ext <<_ACEOF
  7786. /* confdefs.h. */
  7787. _ACEOF
  7788. cat confdefs.h >>conftest.$ac_ext
  7789. cat >>conftest.$ac_ext <<_ACEOF
  7790. /* end confdefs.h. */
  7791. $ac_includes_default
  7792. typedef ssize_t ac__type_new_;
  7793. int
  7794. main ()
  7795. {
  7796. if ((ac__type_new_ *) 0)
  7797. return 0;
  7798. if (sizeof (ac__type_new_))
  7799. return 0;
  7800. ;
  7801. return 0;
  7802. }
  7803. _ACEOF
  7804. rm -f conftest.$ac_objext
  7805. if { (ac_try="$ac_compile"
  7806. case "(($ac_try" in
  7807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7808. *) ac_try_echo=$ac_try;;
  7809. esac
  7810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7811. (eval "$ac_compile") 2>conftest.er1
  7812. ac_status=$?
  7813. grep -v '^ *+' conftest.er1 >conftest.err
  7814. rm -f conftest.er1
  7815. cat conftest.err >&5
  7816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. (exit $ac_status); } && {
  7818. test -z "$ac_cxx_werror_flag" ||
  7819. test ! -s conftest.err
  7820. } && test -s conftest.$ac_objext; then
  7821. ac_cv_type_ssize_t=yes
  7822. else
  7823. echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. ac_cv_type_ssize_t=no
  7826. fi
  7827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7828. fi
  7829. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7830. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7831. if test $ac_cv_type_ssize_t = yes; then
  7832. :
  7833. else
  7834. cat >>confdefs.h <<_ACEOF
  7835. #define ssize_t int
  7836. _ACEOF
  7837. fi
  7838. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7839. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7840. if test "${ac_cv_header_time+set}" = set; then
  7841. echo $ECHO_N "(cached) $ECHO_C" >&6
  7842. else
  7843. cat >conftest.$ac_ext <<_ACEOF
  7844. /* confdefs.h. */
  7845. _ACEOF
  7846. cat confdefs.h >>conftest.$ac_ext
  7847. cat >>conftest.$ac_ext <<_ACEOF
  7848. /* end confdefs.h. */
  7849. #include <sys/types.h>
  7850. #include <sys/time.h>
  7851. #include <time.h>
  7852. int
  7853. main ()
  7854. {
  7855. if ((struct tm *) 0)
  7856. return 0;
  7857. ;
  7858. return 0;
  7859. }
  7860. _ACEOF
  7861. rm -f conftest.$ac_objext
  7862. if { (ac_try="$ac_compile"
  7863. case "(($ac_try" in
  7864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7865. *) ac_try_echo=$ac_try;;
  7866. esac
  7867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7868. (eval "$ac_compile") 2>conftest.er1
  7869. ac_status=$?
  7870. grep -v '^ *+' conftest.er1 >conftest.err
  7871. rm -f conftest.er1
  7872. cat conftest.err >&5
  7873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7874. (exit $ac_status); } && {
  7875. test -z "$ac_cxx_werror_flag" ||
  7876. test ! -s conftest.err
  7877. } && test -s conftest.$ac_objext; then
  7878. ac_cv_header_time=yes
  7879. else
  7880. echo "$as_me: failed program was:" >&5
  7881. sed 's/^/| /' conftest.$ac_ext >&5
  7882. ac_cv_header_time=no
  7883. fi
  7884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7885. fi
  7886. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7887. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7888. if test $ac_cv_header_time = yes; then
  7889. cat >>confdefs.h <<\_ACEOF
  7890. #define TIME_WITH_SYS_TIME 1
  7891. _ACEOF
  7892. fi
  7893. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7894. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7895. if test "${ac_cv_struct_tm+set}" = set; then
  7896. echo $ECHO_N "(cached) $ECHO_C" >&6
  7897. else
  7898. cat >conftest.$ac_ext <<_ACEOF
  7899. /* confdefs.h. */
  7900. _ACEOF
  7901. cat confdefs.h >>conftest.$ac_ext
  7902. cat >>conftest.$ac_ext <<_ACEOF
  7903. /* end confdefs.h. */
  7904. #include <sys/types.h>
  7905. #include <time.h>
  7906. int
  7907. main ()
  7908. {
  7909. struct tm tm;
  7910. int *p = &tm.tm_sec;
  7911. return !p;
  7912. ;
  7913. return 0;
  7914. }
  7915. _ACEOF
  7916. rm -f conftest.$ac_objext
  7917. if { (ac_try="$ac_compile"
  7918. case "(($ac_try" in
  7919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7920. *) ac_try_echo=$ac_try;;
  7921. esac
  7922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7923. (eval "$ac_compile") 2>conftest.er1
  7924. ac_status=$?
  7925. grep -v '^ *+' conftest.er1 >conftest.err
  7926. rm -f conftest.er1
  7927. cat conftest.err >&5
  7928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7929. (exit $ac_status); } && {
  7930. test -z "$ac_cxx_werror_flag" ||
  7931. test ! -s conftest.err
  7932. } && test -s conftest.$ac_objext; then
  7933. ac_cv_struct_tm=time.h
  7934. else
  7935. echo "$as_me: failed program was:" >&5
  7936. sed 's/^/| /' conftest.$ac_ext >&5
  7937. ac_cv_struct_tm=sys/time.h
  7938. fi
  7939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7940. fi
  7941. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7942. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7943. if test $ac_cv_struct_tm = sys/time.h; then
  7944. cat >>confdefs.h <<\_ACEOF
  7945. #define TM_IN_SYS_TIME 1
  7946. _ACEOF
  7947. fi
  7948. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  7949. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  7950. if test "${ac_cv_c_uint16_t+set}" = set; then
  7951. echo $ECHO_N "(cached) $ECHO_C" >&6
  7952. else
  7953. ac_cv_c_uint16_t=no
  7954. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  7955. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7956. cat >conftest.$ac_ext <<_ACEOF
  7957. /* confdefs.h. */
  7958. _ACEOF
  7959. cat confdefs.h >>conftest.$ac_ext
  7960. cat >>conftest.$ac_ext <<_ACEOF
  7961. /* end confdefs.h. */
  7962. $ac_includes_default
  7963. int
  7964. main ()
  7965. {
  7966. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  7967. test_array [0] = 0
  7968. ;
  7969. return 0;
  7970. }
  7971. _ACEOF
  7972. rm -f conftest.$ac_objext
  7973. if { (ac_try="$ac_compile"
  7974. case "(($ac_try" in
  7975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7976. *) ac_try_echo=$ac_try;;
  7977. esac
  7978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7979. (eval "$ac_compile") 2>conftest.er1
  7980. ac_status=$?
  7981. grep -v '^ *+' conftest.er1 >conftest.err
  7982. rm -f conftest.er1
  7983. cat conftest.err >&5
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } && {
  7986. test -z "$ac_cxx_werror_flag" ||
  7987. test ! -s conftest.err
  7988. } && test -s conftest.$ac_objext; then
  7989. case $ac_type in
  7990. uint16_t) ac_cv_c_uint16_t=yes ;;
  7991. *) ac_cv_c_uint16_t=$ac_type ;;
  7992. esac
  7993. else
  7994. echo "$as_me: failed program was:" >&5
  7995. sed 's/^/| /' conftest.$ac_ext >&5
  7996. fi
  7997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7998. test "$ac_cv_c_uint16_t" != no && break
  7999. done
  8000. fi
  8001. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8002. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8003. case $ac_cv_c_uint16_t in #(
  8004. no|yes) ;; #(
  8005. *)
  8006. cat >>confdefs.h <<_ACEOF
  8007. #define uint16_t $ac_cv_c_uint16_t
  8008. _ACEOF
  8009. ;;
  8010. esac
  8011. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8012. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8013. if test "${ac_cv_c_uint32_t+set}" = set; then
  8014. echo $ECHO_N "(cached) $ECHO_C" >&6
  8015. else
  8016. ac_cv_c_uint32_t=no
  8017. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8018. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8019. cat >conftest.$ac_ext <<_ACEOF
  8020. /* confdefs.h. */
  8021. _ACEOF
  8022. cat confdefs.h >>conftest.$ac_ext
  8023. cat >>conftest.$ac_ext <<_ACEOF
  8024. /* end confdefs.h. */
  8025. $ac_includes_default
  8026. int
  8027. main ()
  8028. {
  8029. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8030. test_array [0] = 0
  8031. ;
  8032. return 0;
  8033. }
  8034. _ACEOF
  8035. rm -f conftest.$ac_objext
  8036. if { (ac_try="$ac_compile"
  8037. case "(($ac_try" in
  8038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8039. *) ac_try_echo=$ac_try;;
  8040. esac
  8041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8042. (eval "$ac_compile") 2>conftest.er1
  8043. ac_status=$?
  8044. grep -v '^ *+' conftest.er1 >conftest.err
  8045. rm -f conftest.er1
  8046. cat conftest.err >&5
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); } && {
  8049. test -z "$ac_cxx_werror_flag" ||
  8050. test ! -s conftest.err
  8051. } && test -s conftest.$ac_objext; then
  8052. case $ac_type in
  8053. uint32_t) ac_cv_c_uint32_t=yes ;;
  8054. *) ac_cv_c_uint32_t=$ac_type ;;
  8055. esac
  8056. else
  8057. echo "$as_me: failed program was:" >&5
  8058. sed 's/^/| /' conftest.$ac_ext >&5
  8059. fi
  8060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8061. test "$ac_cv_c_uint32_t" != no && break
  8062. done
  8063. fi
  8064. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8065. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8066. case $ac_cv_c_uint32_t in #(
  8067. no|yes) ;; #(
  8068. *)
  8069. cat >>confdefs.h <<\_ACEOF
  8070. #define _UINT32_T 1
  8071. _ACEOF
  8072. cat >>confdefs.h <<_ACEOF
  8073. #define uint32_t $ac_cv_c_uint32_t
  8074. _ACEOF
  8075. ;;
  8076. esac
  8077. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8078. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8079. if test "${ac_cv_c_uint64_t+set}" = set; then
  8080. echo $ECHO_N "(cached) $ECHO_C" >&6
  8081. else
  8082. ac_cv_c_uint64_t=no
  8083. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8084. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8085. cat >conftest.$ac_ext <<_ACEOF
  8086. /* confdefs.h. */
  8087. _ACEOF
  8088. cat confdefs.h >>conftest.$ac_ext
  8089. cat >>conftest.$ac_ext <<_ACEOF
  8090. /* end confdefs.h. */
  8091. $ac_includes_default
  8092. int
  8093. main ()
  8094. {
  8095. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8096. test_array [0] = 0
  8097. ;
  8098. return 0;
  8099. }
  8100. _ACEOF
  8101. rm -f conftest.$ac_objext
  8102. if { (ac_try="$ac_compile"
  8103. case "(($ac_try" in
  8104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8105. *) ac_try_echo=$ac_try;;
  8106. esac
  8107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8108. (eval "$ac_compile") 2>conftest.er1
  8109. ac_status=$?
  8110. grep -v '^ *+' conftest.er1 >conftest.err
  8111. rm -f conftest.er1
  8112. cat conftest.err >&5
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); } && {
  8115. test -z "$ac_cxx_werror_flag" ||
  8116. test ! -s conftest.err
  8117. } && test -s conftest.$ac_objext; then
  8118. case $ac_type in
  8119. uint64_t) ac_cv_c_uint64_t=yes ;;
  8120. *) ac_cv_c_uint64_t=$ac_type ;;
  8121. esac
  8122. else
  8123. echo "$as_me: failed program was:" >&5
  8124. sed 's/^/| /' conftest.$ac_ext >&5
  8125. fi
  8126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8127. test "$ac_cv_c_uint64_t" != no && break
  8128. done
  8129. fi
  8130. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8131. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8132. case $ac_cv_c_uint64_t in #(
  8133. no|yes) ;; #(
  8134. *)
  8135. cat >>confdefs.h <<\_ACEOF
  8136. #define _UINT64_T 1
  8137. _ACEOF
  8138. cat >>confdefs.h <<_ACEOF
  8139. #define uint64_t $ac_cv_c_uint64_t
  8140. _ACEOF
  8141. ;;
  8142. esac
  8143. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8144. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8145. if test "${ac_cv_c_uint8_t+set}" = set; then
  8146. echo $ECHO_N "(cached) $ECHO_C" >&6
  8147. else
  8148. ac_cv_c_uint8_t=no
  8149. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8150. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8151. cat >conftest.$ac_ext <<_ACEOF
  8152. /* confdefs.h. */
  8153. _ACEOF
  8154. cat confdefs.h >>conftest.$ac_ext
  8155. cat >>conftest.$ac_ext <<_ACEOF
  8156. /* end confdefs.h. */
  8157. $ac_includes_default
  8158. int
  8159. main ()
  8160. {
  8161. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8162. test_array [0] = 0
  8163. ;
  8164. return 0;
  8165. }
  8166. _ACEOF
  8167. rm -f conftest.$ac_objext
  8168. if { (ac_try="$ac_compile"
  8169. case "(($ac_try" in
  8170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8171. *) ac_try_echo=$ac_try;;
  8172. esac
  8173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8174. (eval "$ac_compile") 2>conftest.er1
  8175. ac_status=$?
  8176. grep -v '^ *+' conftest.er1 >conftest.err
  8177. rm -f conftest.er1
  8178. cat conftest.err >&5
  8179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); } && {
  8181. test -z "$ac_cxx_werror_flag" ||
  8182. test ! -s conftest.err
  8183. } && test -s conftest.$ac_objext; then
  8184. case $ac_type in
  8185. uint8_t) ac_cv_c_uint8_t=yes ;;
  8186. *) ac_cv_c_uint8_t=$ac_type ;;
  8187. esac
  8188. else
  8189. echo "$as_me: failed program was:" >&5
  8190. sed 's/^/| /' conftest.$ac_ext >&5
  8191. fi
  8192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8193. test "$ac_cv_c_uint8_t" != no && break
  8194. done
  8195. fi
  8196. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8197. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8198. case $ac_cv_c_uint8_t in #(
  8199. no|yes) ;; #(
  8200. *)
  8201. cat >>confdefs.h <<\_ACEOF
  8202. #define _UINT8_T 1
  8203. _ACEOF
  8204. cat >>confdefs.h <<_ACEOF
  8205. #define uint8_t $ac_cv_c_uint8_t
  8206. _ACEOF
  8207. ;;
  8208. esac
  8209. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8210. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8211. if test "${ac_cv_c_volatile+set}" = set; then
  8212. echo $ECHO_N "(cached) $ECHO_C" >&6
  8213. else
  8214. cat >conftest.$ac_ext <<_ACEOF
  8215. /* confdefs.h. */
  8216. _ACEOF
  8217. cat confdefs.h >>conftest.$ac_ext
  8218. cat >>conftest.$ac_ext <<_ACEOF
  8219. /* end confdefs.h. */
  8220. int
  8221. main ()
  8222. {
  8223. volatile int x;
  8224. int * volatile y = (int *) 0;
  8225. return !x && !y;
  8226. ;
  8227. return 0;
  8228. }
  8229. _ACEOF
  8230. rm -f conftest.$ac_objext
  8231. if { (ac_try="$ac_compile"
  8232. case "(($ac_try" in
  8233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8234. *) ac_try_echo=$ac_try;;
  8235. esac
  8236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8237. (eval "$ac_compile") 2>conftest.er1
  8238. ac_status=$?
  8239. grep -v '^ *+' conftest.er1 >conftest.err
  8240. rm -f conftest.er1
  8241. cat conftest.err >&5
  8242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8243. (exit $ac_status); } && {
  8244. test -z "$ac_cxx_werror_flag" ||
  8245. test ! -s conftest.err
  8246. } && test -s conftest.$ac_objext; then
  8247. ac_cv_c_volatile=yes
  8248. else
  8249. echo "$as_me: failed program was:" >&5
  8250. sed 's/^/| /' conftest.$ac_ext >&5
  8251. ac_cv_c_volatile=no
  8252. fi
  8253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8254. fi
  8255. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8256. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8257. if test $ac_cv_c_volatile = no; then
  8258. cat >>confdefs.h <<\_ACEOF
  8259. #define volatile
  8260. _ACEOF
  8261. fi
  8262. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8263. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8264. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8265. echo $ECHO_N "(cached) $ECHO_C" >&6
  8266. else
  8267. cat >conftest.$ac_ext <<_ACEOF
  8268. /* confdefs.h. */
  8269. _ACEOF
  8270. cat confdefs.h >>conftest.$ac_ext
  8271. cat >>conftest.$ac_ext <<_ACEOF
  8272. /* end confdefs.h. */
  8273. $ac_includes_default
  8274. typedef ptrdiff_t ac__type_new_;
  8275. int
  8276. main ()
  8277. {
  8278. if ((ac__type_new_ *) 0)
  8279. return 0;
  8280. if (sizeof (ac__type_new_))
  8281. return 0;
  8282. ;
  8283. return 0;
  8284. }
  8285. _ACEOF
  8286. rm -f conftest.$ac_objext
  8287. if { (ac_try="$ac_compile"
  8288. case "(($ac_try" in
  8289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8290. *) ac_try_echo=$ac_try;;
  8291. esac
  8292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8293. (eval "$ac_compile") 2>conftest.er1
  8294. ac_status=$?
  8295. grep -v '^ *+' conftest.er1 >conftest.err
  8296. rm -f conftest.er1
  8297. cat conftest.err >&5
  8298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299. (exit $ac_status); } && {
  8300. test -z "$ac_cxx_werror_flag" ||
  8301. test ! -s conftest.err
  8302. } && test -s conftest.$ac_objext; then
  8303. ac_cv_type_ptrdiff_t=yes
  8304. else
  8305. echo "$as_me: failed program was:" >&5
  8306. sed 's/^/| /' conftest.$ac_ext >&5
  8307. ac_cv_type_ptrdiff_t=no
  8308. fi
  8309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8310. fi
  8311. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8312. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8313. if test $ac_cv_type_ptrdiff_t = yes; then
  8314. cat >>confdefs.h <<_ACEOF
  8315. #define HAVE_PTRDIFF_T 1
  8316. _ACEOF
  8317. fi
  8318. # Check whether --enable-largefile was given.
  8319. if test "${enable_largefile+set}" = set; then
  8320. enableval=$enable_largefile;
  8321. fi
  8322. if test "$enable_largefile" != no; then
  8323. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8324. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8325. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8326. echo $ECHO_N "(cached) $ECHO_C" >&6
  8327. else
  8328. ac_cv_sys_largefile_CC=no
  8329. if test "$GCC" != yes; then
  8330. ac_save_CC=$CC
  8331. while :; do
  8332. # IRIX 6.2 and later do not support large files by default,
  8333. # so use the C compiler's -n32 option if that helps.
  8334. cat >conftest.$ac_ext <<_ACEOF
  8335. /* confdefs.h. */
  8336. _ACEOF
  8337. cat confdefs.h >>conftest.$ac_ext
  8338. cat >>conftest.$ac_ext <<_ACEOF
  8339. /* end confdefs.h. */
  8340. #include <sys/types.h>
  8341. /* Check that off_t can represent 2**63 - 1 correctly.
  8342. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8343. since some C++ compilers masquerading as C compilers
  8344. incorrectly reject 9223372036854775807. */
  8345. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8346. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8347. && LARGE_OFF_T % 2147483647 == 1)
  8348. ? 1 : -1];
  8349. int
  8350. main ()
  8351. {
  8352. ;
  8353. return 0;
  8354. }
  8355. _ACEOF
  8356. rm -f conftest.$ac_objext
  8357. if { (ac_try="$ac_compile"
  8358. case "(($ac_try" in
  8359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8360. *) ac_try_echo=$ac_try;;
  8361. esac
  8362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8363. (eval "$ac_compile") 2>conftest.er1
  8364. ac_status=$?
  8365. grep -v '^ *+' conftest.er1 >conftest.err
  8366. rm -f conftest.er1
  8367. cat conftest.err >&5
  8368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8369. (exit $ac_status); } && {
  8370. test -z "$ac_cxx_werror_flag" ||
  8371. test ! -s conftest.err
  8372. } && test -s conftest.$ac_objext; then
  8373. break
  8374. else
  8375. echo "$as_me: failed program was:" >&5
  8376. sed 's/^/| /' conftest.$ac_ext >&5
  8377. fi
  8378. rm -f core conftest.err conftest.$ac_objext
  8379. CC="$CC -n32"
  8380. rm -f conftest.$ac_objext
  8381. if { (ac_try="$ac_compile"
  8382. case "(($ac_try" in
  8383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8384. *) ac_try_echo=$ac_try;;
  8385. esac
  8386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8387. (eval "$ac_compile") 2>conftest.er1
  8388. ac_status=$?
  8389. grep -v '^ *+' conftest.er1 >conftest.err
  8390. rm -f conftest.er1
  8391. cat conftest.err >&5
  8392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8393. (exit $ac_status); } && {
  8394. test -z "$ac_cxx_werror_flag" ||
  8395. test ! -s conftest.err
  8396. } && test -s conftest.$ac_objext; then
  8397. ac_cv_sys_largefile_CC=' -n32'; break
  8398. else
  8399. echo "$as_me: failed program was:" >&5
  8400. sed 's/^/| /' conftest.$ac_ext >&5
  8401. fi
  8402. rm -f core conftest.err conftest.$ac_objext
  8403. break
  8404. done
  8405. CC=$ac_save_CC
  8406. rm -f conftest.$ac_ext
  8407. fi
  8408. fi
  8409. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8410. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8411. if test "$ac_cv_sys_largefile_CC" != no; then
  8412. CC=$CC$ac_cv_sys_largefile_CC
  8413. fi
  8414. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8415. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8416. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8417. echo $ECHO_N "(cached) $ECHO_C" >&6
  8418. else
  8419. while :; do
  8420. cat >conftest.$ac_ext <<_ACEOF
  8421. /* confdefs.h. */
  8422. _ACEOF
  8423. cat confdefs.h >>conftest.$ac_ext
  8424. cat >>conftest.$ac_ext <<_ACEOF
  8425. /* end confdefs.h. */
  8426. #include <sys/types.h>
  8427. /* Check that off_t can represent 2**63 - 1 correctly.
  8428. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8429. since some C++ compilers masquerading as C compilers
  8430. incorrectly reject 9223372036854775807. */
  8431. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8432. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8433. && LARGE_OFF_T % 2147483647 == 1)
  8434. ? 1 : -1];
  8435. int
  8436. main ()
  8437. {
  8438. ;
  8439. return 0;
  8440. }
  8441. _ACEOF
  8442. rm -f conftest.$ac_objext
  8443. if { (ac_try="$ac_compile"
  8444. case "(($ac_try" in
  8445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8446. *) ac_try_echo=$ac_try;;
  8447. esac
  8448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8449. (eval "$ac_compile") 2>conftest.er1
  8450. ac_status=$?
  8451. grep -v '^ *+' conftest.er1 >conftest.err
  8452. rm -f conftest.er1
  8453. cat conftest.err >&5
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. (exit $ac_status); } && {
  8456. test -z "$ac_cxx_werror_flag" ||
  8457. test ! -s conftest.err
  8458. } && test -s conftest.$ac_objext; then
  8459. ac_cv_sys_file_offset_bits=no; break
  8460. else
  8461. echo "$as_me: failed program was:" >&5
  8462. sed 's/^/| /' conftest.$ac_ext >&5
  8463. fi
  8464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8465. cat >conftest.$ac_ext <<_ACEOF
  8466. /* confdefs.h. */
  8467. _ACEOF
  8468. cat confdefs.h >>conftest.$ac_ext
  8469. cat >>conftest.$ac_ext <<_ACEOF
  8470. /* end confdefs.h. */
  8471. #define _FILE_OFFSET_BITS 64
  8472. #include <sys/types.h>
  8473. /* Check that off_t can represent 2**63 - 1 correctly.
  8474. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8475. since some C++ compilers masquerading as C compilers
  8476. incorrectly reject 9223372036854775807. */
  8477. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8478. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8479. && LARGE_OFF_T % 2147483647 == 1)
  8480. ? 1 : -1];
  8481. int
  8482. main ()
  8483. {
  8484. ;
  8485. return 0;
  8486. }
  8487. _ACEOF
  8488. rm -f conftest.$ac_objext
  8489. if { (ac_try="$ac_compile"
  8490. case "(($ac_try" in
  8491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8492. *) ac_try_echo=$ac_try;;
  8493. esac
  8494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8495. (eval "$ac_compile") 2>conftest.er1
  8496. ac_status=$?
  8497. grep -v '^ *+' conftest.er1 >conftest.err
  8498. rm -f conftest.er1
  8499. cat conftest.err >&5
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); } && {
  8502. test -z "$ac_cxx_werror_flag" ||
  8503. test ! -s conftest.err
  8504. } && test -s conftest.$ac_objext; then
  8505. ac_cv_sys_file_offset_bits=64; break
  8506. else
  8507. echo "$as_me: failed program was:" >&5
  8508. sed 's/^/| /' conftest.$ac_ext >&5
  8509. fi
  8510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8511. ac_cv_sys_file_offset_bits=unknown
  8512. break
  8513. done
  8514. fi
  8515. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8516. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8517. case $ac_cv_sys_file_offset_bits in #(
  8518. no | unknown) ;;
  8519. *)
  8520. cat >>confdefs.h <<_ACEOF
  8521. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8522. _ACEOF
  8523. ;;
  8524. esac
  8525. rm -f conftest*
  8526. if test $ac_cv_sys_file_offset_bits = unknown; then
  8527. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8528. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8529. if test "${ac_cv_sys_large_files+set}" = set; then
  8530. echo $ECHO_N "(cached) $ECHO_C" >&6
  8531. else
  8532. while :; do
  8533. cat >conftest.$ac_ext <<_ACEOF
  8534. /* confdefs.h. */
  8535. _ACEOF
  8536. cat confdefs.h >>conftest.$ac_ext
  8537. cat >>conftest.$ac_ext <<_ACEOF
  8538. /* end confdefs.h. */
  8539. #include <sys/types.h>
  8540. /* Check that off_t can represent 2**63 - 1 correctly.
  8541. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8542. since some C++ compilers masquerading as C compilers
  8543. incorrectly reject 9223372036854775807. */
  8544. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8545. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8546. && LARGE_OFF_T % 2147483647 == 1)
  8547. ? 1 : -1];
  8548. int
  8549. main ()
  8550. {
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext
  8556. if { (ac_try="$ac_compile"
  8557. case "(($ac_try" in
  8558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8559. *) ac_try_echo=$ac_try;;
  8560. esac
  8561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8562. (eval "$ac_compile") 2>conftest.er1
  8563. ac_status=$?
  8564. grep -v '^ *+' conftest.er1 >conftest.err
  8565. rm -f conftest.er1
  8566. cat conftest.err >&5
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } && {
  8569. test -z "$ac_cxx_werror_flag" ||
  8570. test ! -s conftest.err
  8571. } && test -s conftest.$ac_objext; then
  8572. ac_cv_sys_large_files=no; break
  8573. else
  8574. echo "$as_me: failed program was:" >&5
  8575. sed 's/^/| /' conftest.$ac_ext >&5
  8576. fi
  8577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. #define _LARGE_FILES 1
  8585. #include <sys/types.h>
  8586. /* Check that off_t can represent 2**63 - 1 correctly.
  8587. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8588. since some C++ compilers masquerading as C compilers
  8589. incorrectly reject 9223372036854775807. */
  8590. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8591. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8592. && LARGE_OFF_T % 2147483647 == 1)
  8593. ? 1 : -1];
  8594. int
  8595. main ()
  8596. {
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. rm -f conftest.$ac_objext
  8602. if { (ac_try="$ac_compile"
  8603. case "(($ac_try" in
  8604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8605. *) ac_try_echo=$ac_try;;
  8606. esac
  8607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8608. (eval "$ac_compile") 2>conftest.er1
  8609. ac_status=$?
  8610. grep -v '^ *+' conftest.er1 >conftest.err
  8611. rm -f conftest.er1
  8612. cat conftest.err >&5
  8613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8614. (exit $ac_status); } && {
  8615. test -z "$ac_cxx_werror_flag" ||
  8616. test ! -s conftest.err
  8617. } && test -s conftest.$ac_objext; then
  8618. ac_cv_sys_large_files=1; break
  8619. else
  8620. echo "$as_me: failed program was:" >&5
  8621. sed 's/^/| /' conftest.$ac_ext >&5
  8622. fi
  8623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8624. ac_cv_sys_large_files=unknown
  8625. break
  8626. done
  8627. fi
  8628. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8629. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8630. case $ac_cv_sys_large_files in #(
  8631. no | unknown) ;;
  8632. *)
  8633. cat >>confdefs.h <<_ACEOF
  8634. #define _LARGE_FILES $ac_cv_sys_large_files
  8635. _ACEOF
  8636. ;;
  8637. esac
  8638. rm -f conftest*
  8639. fi
  8640. fi
  8641. # Checks for library functions.
  8642. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8643. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8644. # Check whether --enable-nls was given.
  8645. if test "${enable_nls+set}" = set; then
  8646. enableval=$enable_nls; USE_NLS=$enableval
  8647. else
  8648. USE_NLS=yes
  8649. fi
  8650. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8651. echo "${ECHO_T}$USE_NLS" >&6; }
  8652. GETTEXT_MACRO_VERSION=0.17
  8653. # Prepare PATH_SEPARATOR.
  8654. # The user is always right.
  8655. if test "${PATH_SEPARATOR+set}" != set; then
  8656. echo "#! /bin/sh" >conf$$.sh
  8657. echo "exit 0" >>conf$$.sh
  8658. chmod +x conf$$.sh
  8659. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8660. PATH_SEPARATOR=';'
  8661. else
  8662. PATH_SEPARATOR=:
  8663. fi
  8664. rm -f conf$$.sh
  8665. fi
  8666. # Find out how to test for executable files. Don't use a zero-byte file,
  8667. # as systems may use methods other than mode bits to determine executability.
  8668. cat >conf$$.file <<_ASEOF
  8669. #! /bin/sh
  8670. exit 0
  8671. _ASEOF
  8672. chmod +x conf$$.file
  8673. if test -x conf$$.file >/dev/null 2>&1; then
  8674. ac_executable_p="test -x"
  8675. else
  8676. ac_executable_p="test -f"
  8677. fi
  8678. rm -f conf$$.file
  8679. # Extract the first word of "msgfmt", so it can be a program name with args.
  8680. set dummy msgfmt; ac_word=$2
  8681. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8682. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8683. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8684. echo $ECHO_N "(cached) $ECHO_C" >&6
  8685. else
  8686. case "$MSGFMT" in
  8687. [\\/]* | ?:[\\/]*)
  8688. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8689. ;;
  8690. *)
  8691. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8692. for ac_dir in $PATH; do
  8693. IFS="$ac_save_IFS"
  8694. test -z "$ac_dir" && ac_dir=.
  8695. for ac_exec_ext in '' $ac_executable_extensions; do
  8696. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8697. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8698. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8699. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8700. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8701. break 2
  8702. fi
  8703. fi
  8704. done
  8705. done
  8706. IFS="$ac_save_IFS"
  8707. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8708. ;;
  8709. esac
  8710. fi
  8711. MSGFMT="$ac_cv_path_MSGFMT"
  8712. if test "$MSGFMT" != ":"; then
  8713. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8714. echo "${ECHO_T}$MSGFMT" >&6; }
  8715. else
  8716. { echo "$as_me:$LINENO: result: no" >&5
  8717. echo "${ECHO_T}no" >&6; }
  8718. fi
  8719. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8720. set dummy gmsgfmt; ac_word=$2
  8721. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8722. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8723. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8724. echo $ECHO_N "(cached) $ECHO_C" >&6
  8725. else
  8726. case $GMSGFMT in
  8727. [\\/]* | ?:[\\/]*)
  8728. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8729. ;;
  8730. *)
  8731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8732. for as_dir in $PATH
  8733. do
  8734. IFS=$as_save_IFS
  8735. test -z "$as_dir" && as_dir=.
  8736. for ac_exec_ext in '' $ac_executable_extensions; do
  8737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8738. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8739. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8740. break 2
  8741. fi
  8742. done
  8743. done
  8744. IFS=$as_save_IFS
  8745. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8746. ;;
  8747. esac
  8748. fi
  8749. GMSGFMT=$ac_cv_path_GMSGFMT
  8750. if test -n "$GMSGFMT"; then
  8751. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8752. echo "${ECHO_T}$GMSGFMT" >&6; }
  8753. else
  8754. { echo "$as_me:$LINENO: result: no" >&5
  8755. echo "${ECHO_T}no" >&6; }
  8756. fi
  8757. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8758. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8759. *) MSGFMT_015=$MSGFMT ;;
  8760. esac
  8761. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8762. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8763. *) GMSGFMT_015=$GMSGFMT ;;
  8764. esac
  8765. # Prepare PATH_SEPARATOR.
  8766. # The user is always right.
  8767. if test "${PATH_SEPARATOR+set}" != set; then
  8768. echo "#! /bin/sh" >conf$$.sh
  8769. echo "exit 0" >>conf$$.sh
  8770. chmod +x conf$$.sh
  8771. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8772. PATH_SEPARATOR=';'
  8773. else
  8774. PATH_SEPARATOR=:
  8775. fi
  8776. rm -f conf$$.sh
  8777. fi
  8778. # Find out how to test for executable files. Don't use a zero-byte file,
  8779. # as systems may use methods other than mode bits to determine executability.
  8780. cat >conf$$.file <<_ASEOF
  8781. #! /bin/sh
  8782. exit 0
  8783. _ASEOF
  8784. chmod +x conf$$.file
  8785. if test -x conf$$.file >/dev/null 2>&1; then
  8786. ac_executable_p="test -x"
  8787. else
  8788. ac_executable_p="test -f"
  8789. fi
  8790. rm -f conf$$.file
  8791. # Extract the first word of "xgettext", so it can be a program name with args.
  8792. set dummy xgettext; ac_word=$2
  8793. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8794. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8795. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8796. echo $ECHO_N "(cached) $ECHO_C" >&6
  8797. else
  8798. case "$XGETTEXT" in
  8799. [\\/]* | ?:[\\/]*)
  8800. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8801. ;;
  8802. *)
  8803. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8804. for ac_dir in $PATH; do
  8805. IFS="$ac_save_IFS"
  8806. test -z "$ac_dir" && ac_dir=.
  8807. for ac_exec_ext in '' $ac_executable_extensions; do
  8808. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8809. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8810. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8811. (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
  8812. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8813. break 2
  8814. fi
  8815. fi
  8816. done
  8817. done
  8818. IFS="$ac_save_IFS"
  8819. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8820. ;;
  8821. esac
  8822. fi
  8823. XGETTEXT="$ac_cv_path_XGETTEXT"
  8824. if test "$XGETTEXT" != ":"; then
  8825. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8826. echo "${ECHO_T}$XGETTEXT" >&6; }
  8827. else
  8828. { echo "$as_me:$LINENO: result: no" >&5
  8829. echo "${ECHO_T}no" >&6; }
  8830. fi
  8831. rm -f messages.po
  8832. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8833. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8834. *) XGETTEXT_015=$XGETTEXT ;;
  8835. esac
  8836. # Prepare PATH_SEPARATOR.
  8837. # The user is always right.
  8838. if test "${PATH_SEPARATOR+set}" != set; then
  8839. echo "#! /bin/sh" >conf$$.sh
  8840. echo "exit 0" >>conf$$.sh
  8841. chmod +x conf$$.sh
  8842. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8843. PATH_SEPARATOR=';'
  8844. else
  8845. PATH_SEPARATOR=:
  8846. fi
  8847. rm -f conf$$.sh
  8848. fi
  8849. # Find out how to test for executable files. Don't use a zero-byte file,
  8850. # as systems may use methods other than mode bits to determine executability.
  8851. cat >conf$$.file <<_ASEOF
  8852. #! /bin/sh
  8853. exit 0
  8854. _ASEOF
  8855. chmod +x conf$$.file
  8856. if test -x conf$$.file >/dev/null 2>&1; then
  8857. ac_executable_p="test -x"
  8858. else
  8859. ac_executable_p="test -f"
  8860. fi
  8861. rm -f conf$$.file
  8862. # Extract the first word of "msgmerge", so it can be a program name with args.
  8863. set dummy msgmerge; ac_word=$2
  8864. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8865. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8866. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  8867. echo $ECHO_N "(cached) $ECHO_C" >&6
  8868. else
  8869. case "$MSGMERGE" in
  8870. [\\/]* | ?:[\\/]*)
  8871. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8872. ;;
  8873. *)
  8874. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8875. for ac_dir in $PATH; do
  8876. IFS="$ac_save_IFS"
  8877. test -z "$ac_dir" && ac_dir=.
  8878. for ac_exec_ext in '' $ac_executable_extensions; do
  8879. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8880. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8881. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8882. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8883. break 2
  8884. fi
  8885. fi
  8886. done
  8887. done
  8888. IFS="$ac_save_IFS"
  8889. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8890. ;;
  8891. esac
  8892. fi
  8893. MSGMERGE="$ac_cv_path_MSGMERGE"
  8894. if test "$MSGMERGE" != ":"; then
  8895. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  8896. echo "${ECHO_T}$MSGMERGE" >&6; }
  8897. else
  8898. { echo "$as_me:$LINENO: result: no" >&5
  8899. echo "${ECHO_T}no" >&6; }
  8900. fi
  8901. test -n "$localedir" || localedir='${datadir}/locale'
  8902. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8903. ac_config_commands="$ac_config_commands po-directories"
  8904. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  8905. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  8906. if test "${ac_cv_gnu_library_2+set}" = set; then
  8907. echo $ECHO_N "(cached) $ECHO_C" >&6
  8908. else
  8909. cat >conftest.$ac_ext <<_ACEOF
  8910. /* confdefs.h. */
  8911. _ACEOF
  8912. cat confdefs.h >>conftest.$ac_ext
  8913. cat >>conftest.$ac_ext <<_ACEOF
  8914. /* end confdefs.h. */
  8915. #include <features.h>
  8916. #ifdef __GNU_LIBRARY__
  8917. #if (__GLIBC__ >= 2)
  8918. Lucky GNU user
  8919. #endif
  8920. #endif
  8921. _ACEOF
  8922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8923. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  8924. ac_cv_gnu_library_2=yes
  8925. else
  8926. ac_cv_gnu_library_2=no
  8927. fi
  8928. rm -f conftest*
  8929. fi
  8930. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  8931. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  8932. GLIBC2="$ac_cv_gnu_library_2"
  8933. CFLAG_VISIBILITY=
  8934. HAVE_VISIBILITY=0
  8935. if test -n "$GCC"; then
  8936. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  8937. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  8938. if test "${gl_cv_cc_visibility+set}" = set; then
  8939. echo $ECHO_N "(cached) $ECHO_C" >&6
  8940. else
  8941. gl_save_CFLAGS="$CFLAGS"
  8942. CFLAGS="$CFLAGS -fvisibility=hidden"
  8943. cat >conftest.$ac_ext <<_ACEOF
  8944. /* confdefs.h. */
  8945. _ACEOF
  8946. cat confdefs.h >>conftest.$ac_ext
  8947. cat >>conftest.$ac_ext <<_ACEOF
  8948. /* end confdefs.h. */
  8949. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8950. extern __attribute__((__visibility__("default"))) int exportedvar;
  8951. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8952. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8953. int
  8954. main ()
  8955. {
  8956. ;
  8957. return 0;
  8958. }
  8959. _ACEOF
  8960. rm -f conftest.$ac_objext
  8961. if { (ac_try="$ac_compile"
  8962. case "(($ac_try" in
  8963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8964. *) ac_try_echo=$ac_try;;
  8965. esac
  8966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8967. (eval "$ac_compile") 2>conftest.er1
  8968. ac_status=$?
  8969. grep -v '^ *+' conftest.er1 >conftest.err
  8970. rm -f conftest.er1
  8971. cat conftest.err >&5
  8972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8973. (exit $ac_status); } && {
  8974. test -z "$ac_cxx_werror_flag" ||
  8975. test ! -s conftest.err
  8976. } && test -s conftest.$ac_objext; then
  8977. gl_cv_cc_visibility=yes
  8978. else
  8979. echo "$as_me: failed program was:" >&5
  8980. sed 's/^/| /' conftest.$ac_ext >&5
  8981. gl_cv_cc_visibility=no
  8982. fi
  8983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8984. CFLAGS="$gl_save_CFLAGS"
  8985. fi
  8986. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  8987. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  8988. if test $gl_cv_cc_visibility = yes; then
  8989. CFLAG_VISIBILITY="-fvisibility=hidden"
  8990. HAVE_VISIBILITY=1
  8991. fi
  8992. fi
  8993. cat >>confdefs.h <<_ACEOF
  8994. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8995. _ACEOF
  8996. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  8997. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  8998. if test "${gl_cv_header_stdint_h+set}" = set; then
  8999. echo $ECHO_N "(cached) $ECHO_C" >&6
  9000. else
  9001. cat >conftest.$ac_ext <<_ACEOF
  9002. /* confdefs.h. */
  9003. _ACEOF
  9004. cat confdefs.h >>conftest.$ac_ext
  9005. cat >>conftest.$ac_ext <<_ACEOF
  9006. /* end confdefs.h. */
  9007. #include <sys/types.h>
  9008. #include <stdint.h>
  9009. int
  9010. main ()
  9011. {
  9012. uintmax_t i = (uintmax_t) -1; return !i;
  9013. ;
  9014. return 0;
  9015. }
  9016. _ACEOF
  9017. rm -f conftest.$ac_objext
  9018. if { (ac_try="$ac_compile"
  9019. case "(($ac_try" in
  9020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9021. *) ac_try_echo=$ac_try;;
  9022. esac
  9023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9024. (eval "$ac_compile") 2>conftest.er1
  9025. ac_status=$?
  9026. grep -v '^ *+' conftest.er1 >conftest.err
  9027. rm -f conftest.er1
  9028. cat conftest.err >&5
  9029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9030. (exit $ac_status); } && {
  9031. test -z "$ac_cxx_werror_flag" ||
  9032. test ! -s conftest.err
  9033. } && test -s conftest.$ac_objext; then
  9034. gl_cv_header_stdint_h=yes
  9035. else
  9036. echo "$as_me: failed program was:" >&5
  9037. sed 's/^/| /' conftest.$ac_ext >&5
  9038. gl_cv_header_stdint_h=no
  9039. fi
  9040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9041. fi
  9042. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9043. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9044. if test $gl_cv_header_stdint_h = yes; then
  9045. cat >>confdefs.h <<_ACEOF
  9046. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9047. _ACEOF
  9048. fi
  9049. for ac_header in stdlib.h unistd.h
  9050. do
  9051. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9052. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9053. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9054. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9055. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. fi
  9058. ac_res=`eval echo '${'$as_ac_Header'}'`
  9059. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9060. echo "${ECHO_T}$ac_res" >&6; }
  9061. else
  9062. # Is the header compilable?
  9063. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9064. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9065. cat >conftest.$ac_ext <<_ACEOF
  9066. /* confdefs.h. */
  9067. _ACEOF
  9068. cat confdefs.h >>conftest.$ac_ext
  9069. cat >>conftest.$ac_ext <<_ACEOF
  9070. /* end confdefs.h. */
  9071. $ac_includes_default
  9072. #include <$ac_header>
  9073. _ACEOF
  9074. rm -f conftest.$ac_objext
  9075. if { (ac_try="$ac_compile"
  9076. case "(($ac_try" in
  9077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9078. *) ac_try_echo=$ac_try;;
  9079. esac
  9080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9081. (eval "$ac_compile") 2>conftest.er1
  9082. ac_status=$?
  9083. grep -v '^ *+' conftest.er1 >conftest.err
  9084. rm -f conftest.er1
  9085. cat conftest.err >&5
  9086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9087. (exit $ac_status); } && {
  9088. test -z "$ac_cxx_werror_flag" ||
  9089. test ! -s conftest.err
  9090. } && test -s conftest.$ac_objext; then
  9091. ac_header_compiler=yes
  9092. else
  9093. echo "$as_me: failed program was:" >&5
  9094. sed 's/^/| /' conftest.$ac_ext >&5
  9095. ac_header_compiler=no
  9096. fi
  9097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9098. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9099. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9100. # Is the header present?
  9101. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9102. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9103. cat >conftest.$ac_ext <<_ACEOF
  9104. /* confdefs.h. */
  9105. _ACEOF
  9106. cat confdefs.h >>conftest.$ac_ext
  9107. cat >>conftest.$ac_ext <<_ACEOF
  9108. /* end confdefs.h. */
  9109. #include <$ac_header>
  9110. _ACEOF
  9111. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9112. case "(($ac_try" in
  9113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9114. *) ac_try_echo=$ac_try;;
  9115. esac
  9116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9117. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } >/dev/null && {
  9124. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9125. test ! -s conftest.err
  9126. }; then
  9127. ac_header_preproc=yes
  9128. else
  9129. echo "$as_me: failed program was:" >&5
  9130. sed 's/^/| /' conftest.$ac_ext >&5
  9131. ac_header_preproc=no
  9132. fi
  9133. rm -f conftest.err conftest.$ac_ext
  9134. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9135. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9136. # So? What about this header?
  9137. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9138. yes:no: )
  9139. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9140. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9141. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9142. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9143. ac_header_preproc=yes
  9144. ;;
  9145. no:yes:* )
  9146. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9147. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9148. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9149. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9150. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9151. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9152. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9153. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9154. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9155. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9156. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9157. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9158. ( cat <<\_ASBOX
  9159. ## ----------------------------------------------- ##
  9160. ## Report this to t-tujikawa@users.sourceforge.net ##
  9161. ## ----------------------------------------------- ##
  9162. _ASBOX
  9163. ) | sed "s/^/$as_me: WARNING: /" >&2
  9164. ;;
  9165. esac
  9166. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9167. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9168. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9169. echo $ECHO_N "(cached) $ECHO_C" >&6
  9170. else
  9171. eval "$as_ac_Header=\$ac_header_preproc"
  9172. fi
  9173. ac_res=`eval echo '${'$as_ac_Header'}'`
  9174. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9175. echo "${ECHO_T}$ac_res" >&6; }
  9176. fi
  9177. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9178. cat >>confdefs.h <<_ACEOF
  9179. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9180. _ACEOF
  9181. fi
  9182. done
  9183. for ac_func in getpagesize
  9184. do
  9185. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9186. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9187. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9188. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9189. echo $ECHO_N "(cached) $ECHO_C" >&6
  9190. else
  9191. cat >conftest.$ac_ext <<_ACEOF
  9192. /* confdefs.h. */
  9193. _ACEOF
  9194. cat confdefs.h >>conftest.$ac_ext
  9195. cat >>conftest.$ac_ext <<_ACEOF
  9196. /* end confdefs.h. */
  9197. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9198. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9199. #define $ac_func innocuous_$ac_func
  9200. /* System header to define __stub macros and hopefully few prototypes,
  9201. which can conflict with char $ac_func (); below.
  9202. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9203. <limits.h> exists even on freestanding compilers. */
  9204. #ifdef __STDC__
  9205. # include <limits.h>
  9206. #else
  9207. # include <assert.h>
  9208. #endif
  9209. #undef $ac_func
  9210. /* Override any GCC internal prototype to avoid an error.
  9211. Use char because int might match the return type of a GCC
  9212. builtin and then its argument prototype would still apply. */
  9213. #ifdef __cplusplus
  9214. extern "C"
  9215. #endif
  9216. char $ac_func ();
  9217. /* The GNU C library defines this for functions which it implements
  9218. to always fail with ENOSYS. Some functions are actually named
  9219. something starting with __ and the normal name is an alias. */
  9220. #if defined __stub_$ac_func || defined __stub___$ac_func
  9221. choke me
  9222. #endif
  9223. int
  9224. main ()
  9225. {
  9226. return $ac_func ();
  9227. ;
  9228. return 0;
  9229. }
  9230. _ACEOF
  9231. rm -f conftest.$ac_objext conftest$ac_exeext
  9232. if { (ac_try="$ac_link"
  9233. case "(($ac_try" in
  9234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9235. *) ac_try_echo=$ac_try;;
  9236. esac
  9237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9238. (eval "$ac_link") 2>conftest.er1
  9239. ac_status=$?
  9240. grep -v '^ *+' conftest.er1 >conftest.err
  9241. rm -f conftest.er1
  9242. cat conftest.err >&5
  9243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9244. (exit $ac_status); } && {
  9245. test -z "$ac_cxx_werror_flag" ||
  9246. test ! -s conftest.err
  9247. } && test -s conftest$ac_exeext &&
  9248. $as_test_x conftest$ac_exeext; then
  9249. eval "$as_ac_var=yes"
  9250. else
  9251. echo "$as_me: failed program was:" >&5
  9252. sed 's/^/| /' conftest.$ac_ext >&5
  9253. eval "$as_ac_var=no"
  9254. fi
  9255. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9256. conftest$ac_exeext conftest.$ac_ext
  9257. fi
  9258. ac_res=`eval echo '${'$as_ac_var'}'`
  9259. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9260. echo "${ECHO_T}$ac_res" >&6; }
  9261. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9262. cat >>confdefs.h <<_ACEOF
  9263. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9264. _ACEOF
  9265. fi
  9266. done
  9267. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9268. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9269. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9270. echo $ECHO_N "(cached) $ECHO_C" >&6
  9271. else
  9272. if test "$cross_compiling" = yes; then
  9273. ac_cv_func_mmap_fixed_mapped=no
  9274. else
  9275. cat >conftest.$ac_ext <<_ACEOF
  9276. /* confdefs.h. */
  9277. _ACEOF
  9278. cat confdefs.h >>conftest.$ac_ext
  9279. cat >>conftest.$ac_ext <<_ACEOF
  9280. /* end confdefs.h. */
  9281. $ac_includes_default
  9282. /* malloc might have been renamed as rpl_malloc. */
  9283. #undef malloc
  9284. /* Thanks to Mike Haertel and Jim Avera for this test.
  9285. Here is a matrix of mmap possibilities:
  9286. mmap private not fixed
  9287. mmap private fixed at somewhere currently unmapped
  9288. mmap private fixed at somewhere already mapped
  9289. mmap shared not fixed
  9290. mmap shared fixed at somewhere currently unmapped
  9291. mmap shared fixed at somewhere already mapped
  9292. For private mappings, we should verify that changes cannot be read()
  9293. back from the file, nor mmap's back from the file at a different
  9294. address. (There have been systems where private was not correctly
  9295. implemented like the infamous i386 svr4.0, and systems where the
  9296. VM page cache was not coherent with the file system buffer cache
  9297. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9298. For shared mappings, we should conversely verify that changes get
  9299. propagated back to all the places they're supposed to be.
  9300. Grep wants private fixed already mapped.
  9301. The main things grep needs to know about mmap are:
  9302. * does it exist and is it safe to write into the mmap'd area
  9303. * how to use it (BSD variants) */
  9304. #include <fcntl.h>
  9305. #include <sys/mman.h>
  9306. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9307. char *malloc ();
  9308. #endif
  9309. /* This mess was copied from the GNU getpagesize.h. */
  9310. #ifndef HAVE_GETPAGESIZE
  9311. /* Assume that all systems that can run configure have sys/param.h. */
  9312. # ifndef HAVE_SYS_PARAM_H
  9313. # define HAVE_SYS_PARAM_H 1
  9314. # endif
  9315. # ifdef _SC_PAGESIZE
  9316. # define getpagesize() sysconf(_SC_PAGESIZE)
  9317. # else /* no _SC_PAGESIZE */
  9318. # ifdef HAVE_SYS_PARAM_H
  9319. # include <sys/param.h>
  9320. # ifdef EXEC_PAGESIZE
  9321. # define getpagesize() EXEC_PAGESIZE
  9322. # else /* no EXEC_PAGESIZE */
  9323. # ifdef NBPG
  9324. # define getpagesize() NBPG * CLSIZE
  9325. # ifndef CLSIZE
  9326. # define CLSIZE 1
  9327. # endif /* no CLSIZE */
  9328. # else /* no NBPG */
  9329. # ifdef NBPC
  9330. # define getpagesize() NBPC
  9331. # else /* no NBPC */
  9332. # ifdef PAGESIZE
  9333. # define getpagesize() PAGESIZE
  9334. # endif /* PAGESIZE */
  9335. # endif /* no NBPC */
  9336. # endif /* no NBPG */
  9337. # endif /* no EXEC_PAGESIZE */
  9338. # else /* no HAVE_SYS_PARAM_H */
  9339. # define getpagesize() 8192 /* punt totally */
  9340. # endif /* no HAVE_SYS_PARAM_H */
  9341. # endif /* no _SC_PAGESIZE */
  9342. #endif /* no HAVE_GETPAGESIZE */
  9343. int
  9344. main ()
  9345. {
  9346. char *data, *data2, *data3;
  9347. int i, pagesize;
  9348. int fd;
  9349. pagesize = getpagesize ();
  9350. /* First, make a file with some known garbage in it. */
  9351. data = (char *) malloc (pagesize);
  9352. if (!data)
  9353. return 1;
  9354. for (i = 0; i < pagesize; ++i)
  9355. *(data + i) = rand ();
  9356. umask (0);
  9357. fd = creat ("conftest.mmap", 0600);
  9358. if (fd < 0)
  9359. return 1;
  9360. if (write (fd, data, pagesize) != pagesize)
  9361. return 1;
  9362. close (fd);
  9363. /* Next, try to mmap the file at a fixed address which already has
  9364. something else allocated at it. If we can, also make sure that
  9365. we see the same garbage. */
  9366. fd = open ("conftest.mmap", O_RDWR);
  9367. if (fd < 0)
  9368. return 1;
  9369. data2 = (char *) malloc (2 * pagesize);
  9370. if (!data2)
  9371. return 1;
  9372. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9373. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9374. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9375. return 1;
  9376. for (i = 0; i < pagesize; ++i)
  9377. if (*(data + i) != *(data2 + i))
  9378. return 1;
  9379. /* Finally, make sure that changes to the mapped area do not
  9380. percolate back to the file as seen by read(). (This is a bug on
  9381. some variants of i386 svr4.0.) */
  9382. for (i = 0; i < pagesize; ++i)
  9383. *(data2 + i) = *(data2 + i) + 1;
  9384. data3 = (char *) malloc (pagesize);
  9385. if (!data3)
  9386. return 1;
  9387. if (read (fd, data3, pagesize) != pagesize)
  9388. return 1;
  9389. for (i = 0; i < pagesize; ++i)
  9390. if (*(data + i) != *(data3 + i))
  9391. return 1;
  9392. close (fd);
  9393. return 0;
  9394. }
  9395. _ACEOF
  9396. rm -f conftest$ac_exeext
  9397. if { (ac_try="$ac_link"
  9398. case "(($ac_try" in
  9399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9400. *) ac_try_echo=$ac_try;;
  9401. esac
  9402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9403. (eval "$ac_link") 2>&5
  9404. ac_status=$?
  9405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9406. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9407. { (case "(($ac_try" in
  9408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9409. *) ac_try_echo=$ac_try;;
  9410. esac
  9411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9412. (eval "$ac_try") 2>&5
  9413. ac_status=$?
  9414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9415. (exit $ac_status); }; }; then
  9416. ac_cv_func_mmap_fixed_mapped=yes
  9417. else
  9418. echo "$as_me: program exited with status $ac_status" >&5
  9419. echo "$as_me: failed program was:" >&5
  9420. sed 's/^/| /' conftest.$ac_ext >&5
  9421. ( exit $ac_status )
  9422. ac_cv_func_mmap_fixed_mapped=no
  9423. fi
  9424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9425. fi
  9426. fi
  9427. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9428. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9429. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9430. cat >>confdefs.h <<\_ACEOF
  9431. #define HAVE_MMAP 1
  9432. _ACEOF
  9433. fi
  9434. rm -f conftest.mmap
  9435. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9436. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9437. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9438. echo $ECHO_N "(cached) $ECHO_C" >&6
  9439. else
  9440. gt_cv_int_divbyzero_sigfpe=
  9441. case "$host_os" in
  9442. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9443. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9444. # compiling. If we were to perform the real test, 1 Crash Report
  9445. # dialog window would pop up.
  9446. case "$host_cpu" in
  9447. i[34567]86 | x86_64)
  9448. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9449. esac
  9450. ;;
  9451. esac
  9452. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9453. if test "$cross_compiling" = yes; then
  9454. # Guess based on the CPU.
  9455. case "$host_cpu" in
  9456. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9457. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9458. *)
  9459. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9460. esac
  9461. else
  9462. cat >conftest.$ac_ext <<_ACEOF
  9463. /* confdefs.h. */
  9464. _ACEOF
  9465. cat confdefs.h >>conftest.$ac_ext
  9466. cat >>conftest.$ac_ext <<_ACEOF
  9467. /* end confdefs.h. */
  9468. #include <stdlib.h>
  9469. #include <signal.h>
  9470. static void
  9471. sigfpe_handler (int sig)
  9472. {
  9473. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9474. exit (sig != SIGFPE);
  9475. }
  9476. int x = 1;
  9477. int y = 0;
  9478. int z;
  9479. int nan;
  9480. int main ()
  9481. {
  9482. signal (SIGFPE, sigfpe_handler);
  9483. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9484. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9485. signal (SIGTRAP, sigfpe_handler);
  9486. #endif
  9487. /* Linux/SPARC yields signal SIGILL. */
  9488. #if defined (__sparc__) && defined (__linux__)
  9489. signal (SIGILL, sigfpe_handler);
  9490. #endif
  9491. z = x / y;
  9492. nan = y / y;
  9493. exit (1);
  9494. }
  9495. _ACEOF
  9496. rm -f conftest$ac_exeext
  9497. if { (ac_try="$ac_link"
  9498. case "(($ac_try" in
  9499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9500. *) ac_try_echo=$ac_try;;
  9501. esac
  9502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9503. (eval "$ac_link") 2>&5
  9504. ac_status=$?
  9505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9506. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9507. { (case "(($ac_try" in
  9508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9509. *) ac_try_echo=$ac_try;;
  9510. esac
  9511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9512. (eval "$ac_try") 2>&5
  9513. ac_status=$?
  9514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); }; }; then
  9516. gt_cv_int_divbyzero_sigfpe=yes
  9517. else
  9518. echo "$as_me: program exited with status $ac_status" >&5
  9519. echo "$as_me: failed program was:" >&5
  9520. sed 's/^/| /' conftest.$ac_ext >&5
  9521. ( exit $ac_status )
  9522. gt_cv_int_divbyzero_sigfpe=no
  9523. fi
  9524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9525. fi
  9526. fi
  9527. fi
  9528. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9529. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9530. case "$gt_cv_int_divbyzero_sigfpe" in
  9531. *yes) value=1;;
  9532. *) value=0;;
  9533. esac
  9534. cat >>confdefs.h <<_ACEOF
  9535. #define INTDIV0_RAISES_SIGFPE $value
  9536. _ACEOF
  9537. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9538. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9539. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9540. echo $ECHO_N "(cached) $ECHO_C" >&6
  9541. else
  9542. cat >conftest.$ac_ext <<_ACEOF
  9543. /* confdefs.h. */
  9544. _ACEOF
  9545. cat confdefs.h >>conftest.$ac_ext
  9546. cat >>conftest.$ac_ext <<_ACEOF
  9547. /* end confdefs.h. */
  9548. #include <sys/types.h>
  9549. #include <inttypes.h>
  9550. int
  9551. main ()
  9552. {
  9553. uintmax_t i = (uintmax_t) -1; return !i;
  9554. ;
  9555. return 0;
  9556. }
  9557. _ACEOF
  9558. rm -f conftest.$ac_objext
  9559. if { (ac_try="$ac_compile"
  9560. case "(($ac_try" in
  9561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9562. *) ac_try_echo=$ac_try;;
  9563. esac
  9564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9565. (eval "$ac_compile") 2>conftest.er1
  9566. ac_status=$?
  9567. grep -v '^ *+' conftest.er1 >conftest.err
  9568. rm -f conftest.er1
  9569. cat conftest.err >&5
  9570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); } && {
  9572. test -z "$ac_cxx_werror_flag" ||
  9573. test ! -s conftest.err
  9574. } && test -s conftest.$ac_objext; then
  9575. gl_cv_header_inttypes_h=yes
  9576. else
  9577. echo "$as_me: failed program was:" >&5
  9578. sed 's/^/| /' conftest.$ac_ext >&5
  9579. gl_cv_header_inttypes_h=no
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9582. fi
  9583. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9584. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9585. if test $gl_cv_header_inttypes_h = yes; then
  9586. cat >>confdefs.h <<_ACEOF
  9587. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9588. _ACEOF
  9589. fi
  9590. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9591. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9592. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9593. echo $ECHO_N "(cached) $ECHO_C" >&6
  9594. else
  9595. cat >conftest.$ac_ext <<_ACEOF
  9596. /* confdefs.h. */
  9597. _ACEOF
  9598. cat confdefs.h >>conftest.$ac_ext
  9599. cat >>conftest.$ac_ext <<_ACEOF
  9600. /* end confdefs.h. */
  9601. /* Test preprocessor. */
  9602. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9603. error in preprocessor;
  9604. #endif
  9605. #if ! (18446744073709551615ULL <= -1ull)
  9606. error in preprocessor;
  9607. #endif
  9608. /* Test literals. */
  9609. long long int ll = 9223372036854775807ll;
  9610. long long int nll = -9223372036854775807LL;
  9611. unsigned long long int ull = 18446744073709551615ULL;
  9612. /* Test constant expressions. */
  9613. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9614. ? 1 : -1)];
  9615. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9616. ? 1 : -1)];
  9617. int i = 63;
  9618. int
  9619. main ()
  9620. {
  9621. /* Test availability of runtime routines for shift and division. */
  9622. long long int llmax = 9223372036854775807ll;
  9623. unsigned long long int ullmax = 18446744073709551615ull;
  9624. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9625. | (llmax / ll) | (llmax % ll)
  9626. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9627. | (ullmax / ull) | (ullmax % ull));
  9628. ;
  9629. return 0;
  9630. }
  9631. _ACEOF
  9632. rm -f conftest.$ac_objext conftest$ac_exeext
  9633. if { (ac_try="$ac_link"
  9634. case "(($ac_try" in
  9635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9636. *) ac_try_echo=$ac_try;;
  9637. esac
  9638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9639. (eval "$ac_link") 2>conftest.er1
  9640. ac_status=$?
  9641. grep -v '^ *+' conftest.er1 >conftest.err
  9642. rm -f conftest.er1
  9643. cat conftest.err >&5
  9644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9645. (exit $ac_status); } && {
  9646. test -z "$ac_cxx_werror_flag" ||
  9647. test ! -s conftest.err
  9648. } && test -s conftest$ac_exeext &&
  9649. $as_test_x conftest$ac_exeext; then
  9650. ac_cv_type_unsigned_long_long_int=yes
  9651. else
  9652. echo "$as_me: failed program was:" >&5
  9653. sed 's/^/| /' conftest.$ac_ext >&5
  9654. ac_cv_type_unsigned_long_long_int=no
  9655. fi
  9656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9657. conftest$ac_exeext conftest.$ac_ext
  9658. fi
  9659. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9660. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9661. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9662. cat >>confdefs.h <<\_ACEOF
  9663. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9664. _ACEOF
  9665. fi
  9666. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9667. test $ac_cv_type_unsigned_long_long_int = yes \
  9668. && ac_type='unsigned long long' \
  9669. || ac_type='unsigned long'
  9670. cat >>confdefs.h <<_ACEOF
  9671. #define uintmax_t $ac_type
  9672. _ACEOF
  9673. else
  9674. cat >>confdefs.h <<\_ACEOF
  9675. #define HAVE_UINTMAX_T 1
  9676. _ACEOF
  9677. fi
  9678. for ac_header in inttypes.h
  9679. do
  9680. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9681. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9682. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9683. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9684. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9685. echo $ECHO_N "(cached) $ECHO_C" >&6
  9686. fi
  9687. ac_res=`eval echo '${'$as_ac_Header'}'`
  9688. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9689. echo "${ECHO_T}$ac_res" >&6; }
  9690. else
  9691. # Is the header compilable?
  9692. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9693. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9694. cat >conftest.$ac_ext <<_ACEOF
  9695. /* confdefs.h. */
  9696. _ACEOF
  9697. cat confdefs.h >>conftest.$ac_ext
  9698. cat >>conftest.$ac_ext <<_ACEOF
  9699. /* end confdefs.h. */
  9700. $ac_includes_default
  9701. #include <$ac_header>
  9702. _ACEOF
  9703. rm -f conftest.$ac_objext
  9704. if { (ac_try="$ac_compile"
  9705. case "(($ac_try" in
  9706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9707. *) ac_try_echo=$ac_try;;
  9708. esac
  9709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9710. (eval "$ac_compile") 2>conftest.er1
  9711. ac_status=$?
  9712. grep -v '^ *+' conftest.er1 >conftest.err
  9713. rm -f conftest.er1
  9714. cat conftest.err >&5
  9715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9716. (exit $ac_status); } && {
  9717. test -z "$ac_cxx_werror_flag" ||
  9718. test ! -s conftest.err
  9719. } && test -s conftest.$ac_objext; then
  9720. ac_header_compiler=yes
  9721. else
  9722. echo "$as_me: failed program was:" >&5
  9723. sed 's/^/| /' conftest.$ac_ext >&5
  9724. ac_header_compiler=no
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9727. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9728. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9729. # Is the header present?
  9730. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9731. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9732. cat >conftest.$ac_ext <<_ACEOF
  9733. /* confdefs.h. */
  9734. _ACEOF
  9735. cat confdefs.h >>conftest.$ac_ext
  9736. cat >>conftest.$ac_ext <<_ACEOF
  9737. /* end confdefs.h. */
  9738. #include <$ac_header>
  9739. _ACEOF
  9740. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9741. case "(($ac_try" in
  9742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9743. *) ac_try_echo=$ac_try;;
  9744. esac
  9745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9746. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9747. ac_status=$?
  9748. grep -v '^ *+' conftest.er1 >conftest.err
  9749. rm -f conftest.er1
  9750. cat conftest.err >&5
  9751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9752. (exit $ac_status); } >/dev/null && {
  9753. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9754. test ! -s conftest.err
  9755. }; then
  9756. ac_header_preproc=yes
  9757. else
  9758. echo "$as_me: failed program was:" >&5
  9759. sed 's/^/| /' conftest.$ac_ext >&5
  9760. ac_header_preproc=no
  9761. fi
  9762. rm -f conftest.err conftest.$ac_ext
  9763. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9764. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9765. # So? What about this header?
  9766. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9767. yes:no: )
  9768. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9769. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9770. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9771. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9772. ac_header_preproc=yes
  9773. ;;
  9774. no:yes:* )
  9775. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9776. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9777. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9778. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9779. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9780. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9781. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9782. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9783. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9784. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9785. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9786. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9787. ( cat <<\_ASBOX
  9788. ## ----------------------------------------------- ##
  9789. ## Report this to t-tujikawa@users.sourceforge.net ##
  9790. ## ----------------------------------------------- ##
  9791. _ASBOX
  9792. ) | sed "s/^/$as_me: WARNING: /" >&2
  9793. ;;
  9794. esac
  9795. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9796. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9797. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9798. echo $ECHO_N "(cached) $ECHO_C" >&6
  9799. else
  9800. eval "$as_ac_Header=\$ac_header_preproc"
  9801. fi
  9802. ac_res=`eval echo '${'$as_ac_Header'}'`
  9803. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9804. echo "${ECHO_T}$ac_res" >&6; }
  9805. fi
  9806. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9807. cat >>confdefs.h <<_ACEOF
  9808. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9809. _ACEOF
  9810. fi
  9811. done
  9812. if test $ac_cv_header_inttypes_h = yes; then
  9813. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9814. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9815. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9816. echo $ECHO_N "(cached) $ECHO_C" >&6
  9817. else
  9818. cat >conftest.$ac_ext <<_ACEOF
  9819. /* confdefs.h. */
  9820. _ACEOF
  9821. cat confdefs.h >>conftest.$ac_ext
  9822. cat >>conftest.$ac_ext <<_ACEOF
  9823. /* end confdefs.h. */
  9824. #include <inttypes.h>
  9825. #ifdef PRId32
  9826. char *p = PRId32;
  9827. #endif
  9828. int
  9829. main ()
  9830. {
  9831. ;
  9832. return 0;
  9833. }
  9834. _ACEOF
  9835. rm -f conftest.$ac_objext
  9836. if { (ac_try="$ac_compile"
  9837. case "(($ac_try" in
  9838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9839. *) ac_try_echo=$ac_try;;
  9840. esac
  9841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9842. (eval "$ac_compile") 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } && {
  9849. test -z "$ac_cxx_werror_flag" ||
  9850. test ! -s conftest.err
  9851. } && test -s conftest.$ac_objext; then
  9852. gt_cv_inttypes_pri_broken=no
  9853. else
  9854. echo "$as_me: failed program was:" >&5
  9855. sed 's/^/| /' conftest.$ac_ext >&5
  9856. gt_cv_inttypes_pri_broken=yes
  9857. fi
  9858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9859. fi
  9860. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  9861. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  9862. fi
  9863. if test "$gt_cv_inttypes_pri_broken" = yes; then
  9864. cat >>confdefs.h <<_ACEOF
  9865. #define PRI_MACROS_BROKEN 1
  9866. _ACEOF
  9867. PRI_MACROS_BROKEN=1
  9868. else
  9869. PRI_MACROS_BROKEN=0
  9870. fi
  9871. # Check whether --enable-threads was given.
  9872. if test "${enable_threads+set}" = set; then
  9873. enableval=$enable_threads; gl_use_threads=$enableval
  9874. else
  9875. case "$host_os" in
  9876. osf*) gl_use_threads=no ;;
  9877. *) gl_use_threads=yes ;;
  9878. esac
  9879. fi
  9880. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  9881. # For using <pthread.h>:
  9882. case "$host_os" in
  9883. osf*)
  9884. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  9885. # groks <pthread.h>. cc also understands the flag -pthread, but
  9886. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  9887. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  9888. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  9889. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  9890. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  9891. ;;
  9892. esac
  9893. # Some systems optimize for single-threaded programs by default, and
  9894. # need special flags to disable these optimizations. For example, the
  9895. # definition of 'errno' in <errno.h>.
  9896. case "$host_os" in
  9897. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  9898. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  9899. esac
  9900. fi
  9901. if test "X$prefix" = "XNONE"; then
  9902. acl_final_prefix="$ac_default_prefix"
  9903. else
  9904. acl_final_prefix="$prefix"
  9905. fi
  9906. if test "X$exec_prefix" = "XNONE"; then
  9907. acl_final_exec_prefix='${prefix}'
  9908. else
  9909. acl_final_exec_prefix="$exec_prefix"
  9910. fi
  9911. acl_save_prefix="$prefix"
  9912. prefix="$acl_final_prefix"
  9913. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  9914. prefix="$acl_save_prefix"
  9915. # Check whether --with-gnu-ld was given.
  9916. if test "${with_gnu_ld+set}" = set; then
  9917. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9918. else
  9919. with_gnu_ld=no
  9920. fi
  9921. # Prepare PATH_SEPARATOR.
  9922. # The user is always right.
  9923. if test "${PATH_SEPARATOR+set}" != set; then
  9924. echo "#! /bin/sh" >conf$$.sh
  9925. echo "exit 0" >>conf$$.sh
  9926. chmod +x conf$$.sh
  9927. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9928. PATH_SEPARATOR=';'
  9929. else
  9930. PATH_SEPARATOR=:
  9931. fi
  9932. rm -f conf$$.sh
  9933. fi
  9934. ac_prog=ld
  9935. if test "$GCC" = yes; then
  9936. # Check if gcc -print-prog-name=ld gives a path.
  9937. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  9938. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  9939. case $host in
  9940. *-*-mingw*)
  9941. # gcc leaves a trailing carriage return which upsets mingw
  9942. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9943. *)
  9944. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9945. esac
  9946. case $ac_prog in
  9947. # Accept absolute paths.
  9948. [\\/]* | [A-Za-z]:[\\/]*)
  9949. re_direlt='/[^/][^/]*/\.\./'
  9950. # Canonicalize the path of ld
  9951. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  9952. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9953. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  9954. done
  9955. test -z "$LD" && LD="$ac_prog"
  9956. ;;
  9957. "")
  9958. # If it fails, then pretend we aren't using GCC.
  9959. ac_prog=ld
  9960. ;;
  9961. *)
  9962. # If it is relative, then search for the first ld in PATH.
  9963. with_gnu_ld=unknown
  9964. ;;
  9965. esac
  9966. elif test "$with_gnu_ld" = yes; then
  9967. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9968. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9969. else
  9970. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9971. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9972. fi
  9973. if test "${acl_cv_path_LD+set}" = set; then
  9974. echo $ECHO_N "(cached) $ECHO_C" >&6
  9975. else
  9976. if test -z "$LD"; then
  9977. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  9978. for ac_dir in $PATH; do
  9979. test -z "$ac_dir" && ac_dir=.
  9980. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9981. acl_cv_path_LD="$ac_dir/$ac_prog"
  9982. # Check to see if the program is GNU ld. I'd rather use --version,
  9983. # but apparently some GNU ld's only accept -v.
  9984. # Break only if it was the GNU/non-GNU ld that we prefer.
  9985. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  9986. *GNU* | *'with BFD'*)
  9987. test "$with_gnu_ld" != no && break ;;
  9988. *)
  9989. test "$with_gnu_ld" != yes && break ;;
  9990. esac
  9991. fi
  9992. done
  9993. IFS="$ac_save_ifs"
  9994. else
  9995. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  9996. fi
  9997. fi
  9998. LD="$acl_cv_path_LD"
  9999. if test -n "$LD"; then
  10000. { echo "$as_me:$LINENO: result: $LD" >&5
  10001. echo "${ECHO_T}$LD" >&6; }
  10002. else
  10003. { echo "$as_me:$LINENO: result: no" >&5
  10004. echo "${ECHO_T}no" >&6; }
  10005. fi
  10006. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10007. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10008. { (exit 1); exit 1; }; }
  10009. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10010. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10011. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10012. echo $ECHO_N "(cached) $ECHO_C" >&6
  10013. else
  10014. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10015. case `$LD -v 2>&1 </dev/null` in
  10016. *GNU* | *'with BFD'*)
  10017. acl_cv_prog_gnu_ld=yes ;;
  10018. *)
  10019. acl_cv_prog_gnu_ld=no ;;
  10020. esac
  10021. fi
  10022. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10023. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10024. with_gnu_ld=$acl_cv_prog_gnu_ld
  10025. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10026. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10027. if test "${acl_cv_rpath+set}" = set; then
  10028. echo $ECHO_N "(cached) $ECHO_C" >&6
  10029. else
  10030. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10031. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10032. . ./conftest.sh
  10033. rm -f ./conftest.sh
  10034. acl_cv_rpath=done
  10035. fi
  10036. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10037. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10038. wl="$acl_cv_wl"
  10039. acl_libext="$acl_cv_libext"
  10040. acl_shlibext="$acl_cv_shlibext"
  10041. acl_libname_spec="$acl_cv_libname_spec"
  10042. acl_library_names_spec="$acl_cv_library_names_spec"
  10043. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10044. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10045. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10046. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10047. # Check whether --enable-rpath was given.
  10048. if test "${enable_rpath+set}" = set; then
  10049. enableval=$enable_rpath; :
  10050. else
  10051. enable_rpath=yes
  10052. fi
  10053. acl_libdirstem=lib
  10054. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10055. if test -n "$searchpath"; then
  10056. acl_save_IFS="${IFS= }"; IFS=":"
  10057. for searchdir in $searchpath; do
  10058. if test -d "$searchdir"; then
  10059. case "$searchdir" in
  10060. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10061. *) searchdir=`cd "$searchdir" && pwd`
  10062. case "$searchdir" in
  10063. */lib64 ) acl_libdirstem=lib64 ;;
  10064. esac ;;
  10065. esac
  10066. fi
  10067. done
  10068. IFS="$acl_save_IFS"
  10069. fi
  10070. gl_threads_api=none
  10071. LIBTHREAD=
  10072. LTLIBTHREAD=
  10073. LIBMULTITHREAD=
  10074. LTLIBMULTITHREAD=
  10075. if test "$gl_use_threads" != no; then
  10076. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10077. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10078. gl_have_weak=no
  10079. cat >conftest.$ac_ext <<_ACEOF
  10080. /* confdefs.h. */
  10081. _ACEOF
  10082. cat confdefs.h >>conftest.$ac_ext
  10083. cat >>conftest.$ac_ext <<_ACEOF
  10084. /* end confdefs.h. */
  10085. extern void xyzzy ();
  10086. #pragma weak xyzzy
  10087. int
  10088. main ()
  10089. {
  10090. xyzzy();
  10091. ;
  10092. return 0;
  10093. }
  10094. _ACEOF
  10095. rm -f conftest.$ac_objext conftest$ac_exeext
  10096. if { (ac_try="$ac_link"
  10097. case "(($ac_try" in
  10098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10099. *) ac_try_echo=$ac_try;;
  10100. esac
  10101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10102. (eval "$ac_link") 2>conftest.er1
  10103. ac_status=$?
  10104. grep -v '^ *+' conftest.er1 >conftest.err
  10105. rm -f conftest.er1
  10106. cat conftest.err >&5
  10107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10108. (exit $ac_status); } && {
  10109. test -z "$ac_cxx_werror_flag" ||
  10110. test ! -s conftest.err
  10111. } && test -s conftest$ac_exeext &&
  10112. $as_test_x conftest$ac_exeext; then
  10113. gl_have_weak=yes
  10114. else
  10115. echo "$as_me: failed program was:" >&5
  10116. sed 's/^/| /' conftest.$ac_ext >&5
  10117. fi
  10118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10119. conftest$ac_exeext conftest.$ac_ext
  10120. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10121. echo "${ECHO_T}$gl_have_weak" >&6; }
  10122. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10123. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10124. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10125. if test "${ac_cv_header_pthread_h+set}" = set; then
  10126. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10127. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10128. if test "${ac_cv_header_pthread_h+set}" = set; then
  10129. echo $ECHO_N "(cached) $ECHO_C" >&6
  10130. fi
  10131. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10132. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10133. else
  10134. # Is the header compilable?
  10135. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10136. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10137. cat >conftest.$ac_ext <<_ACEOF
  10138. /* confdefs.h. */
  10139. _ACEOF
  10140. cat confdefs.h >>conftest.$ac_ext
  10141. cat >>conftest.$ac_ext <<_ACEOF
  10142. /* end confdefs.h. */
  10143. $ac_includes_default
  10144. #include <pthread.h>
  10145. _ACEOF
  10146. rm -f conftest.$ac_objext
  10147. if { (ac_try="$ac_compile"
  10148. case "(($ac_try" in
  10149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10150. *) ac_try_echo=$ac_try;;
  10151. esac
  10152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10153. (eval "$ac_compile") 2>conftest.er1
  10154. ac_status=$?
  10155. grep -v '^ *+' conftest.er1 >conftest.err
  10156. rm -f conftest.er1
  10157. cat conftest.err >&5
  10158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10159. (exit $ac_status); } && {
  10160. test -z "$ac_cxx_werror_flag" ||
  10161. test ! -s conftest.err
  10162. } && test -s conftest.$ac_objext; then
  10163. ac_header_compiler=yes
  10164. else
  10165. echo "$as_me: failed program was:" >&5
  10166. sed 's/^/| /' conftest.$ac_ext >&5
  10167. ac_header_compiler=no
  10168. fi
  10169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10170. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10171. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10172. # Is the header present?
  10173. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10174. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10175. cat >conftest.$ac_ext <<_ACEOF
  10176. /* confdefs.h. */
  10177. _ACEOF
  10178. cat confdefs.h >>conftest.$ac_ext
  10179. cat >>conftest.$ac_ext <<_ACEOF
  10180. /* end confdefs.h. */
  10181. #include <pthread.h>
  10182. _ACEOF
  10183. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10184. case "(($ac_try" in
  10185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10186. *) ac_try_echo=$ac_try;;
  10187. esac
  10188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10189. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10190. ac_status=$?
  10191. grep -v '^ *+' conftest.er1 >conftest.err
  10192. rm -f conftest.er1
  10193. cat conftest.err >&5
  10194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10195. (exit $ac_status); } >/dev/null && {
  10196. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10197. test ! -s conftest.err
  10198. }; then
  10199. ac_header_preproc=yes
  10200. else
  10201. echo "$as_me: failed program was:" >&5
  10202. sed 's/^/| /' conftest.$ac_ext >&5
  10203. ac_header_preproc=no
  10204. fi
  10205. rm -f conftest.err conftest.$ac_ext
  10206. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10207. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10208. # So? What about this header?
  10209. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10210. yes:no: )
  10211. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10212. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10213. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10214. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10215. ac_header_preproc=yes
  10216. ;;
  10217. no:yes:* )
  10218. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10219. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10220. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10221. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10222. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10223. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10224. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10225. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10226. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10227. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10228. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10229. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10230. ( cat <<\_ASBOX
  10231. ## ----------------------------------------------- ##
  10232. ## Report this to t-tujikawa@users.sourceforge.net ##
  10233. ## ----------------------------------------------- ##
  10234. _ASBOX
  10235. ) | sed "s/^/$as_me: WARNING: /" >&2
  10236. ;;
  10237. esac
  10238. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10239. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10240. if test "${ac_cv_header_pthread_h+set}" = set; then
  10241. echo $ECHO_N "(cached) $ECHO_C" >&6
  10242. else
  10243. ac_cv_header_pthread_h=$ac_header_preproc
  10244. fi
  10245. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10246. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10247. fi
  10248. if test $ac_cv_header_pthread_h = yes; then
  10249. gl_have_pthread_h=yes
  10250. else
  10251. gl_have_pthread_h=no
  10252. fi
  10253. if test "$gl_have_pthread_h" = yes; then
  10254. # Other possible tests:
  10255. # -lpthreads (FSU threads, PCthreads)
  10256. # -lgthreads
  10257. gl_have_pthread=
  10258. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10259. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10260. # the second one only in libpthread, and lock.c needs it.
  10261. cat >conftest.$ac_ext <<_ACEOF
  10262. /* confdefs.h. */
  10263. _ACEOF
  10264. cat confdefs.h >>conftest.$ac_ext
  10265. cat >>conftest.$ac_ext <<_ACEOF
  10266. /* end confdefs.h. */
  10267. #include <pthread.h>
  10268. int
  10269. main ()
  10270. {
  10271. pthread_mutex_lock((pthread_mutex_t*)0);
  10272. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10273. ;
  10274. return 0;
  10275. }
  10276. _ACEOF
  10277. rm -f conftest.$ac_objext conftest$ac_exeext
  10278. if { (ac_try="$ac_link"
  10279. case "(($ac_try" in
  10280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10281. *) ac_try_echo=$ac_try;;
  10282. esac
  10283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10284. (eval "$ac_link") 2>conftest.er1
  10285. ac_status=$?
  10286. grep -v '^ *+' conftest.er1 >conftest.err
  10287. rm -f conftest.er1
  10288. cat conftest.err >&5
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); } && {
  10291. test -z "$ac_cxx_werror_flag" ||
  10292. test ! -s conftest.err
  10293. } && test -s conftest$ac_exeext &&
  10294. $as_test_x conftest$ac_exeext; then
  10295. gl_have_pthread=yes
  10296. else
  10297. echo "$as_me: failed program was:" >&5
  10298. sed 's/^/| /' conftest.$ac_ext >&5
  10299. fi
  10300. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10301. conftest$ac_exeext conftest.$ac_ext
  10302. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10303. # since it is defined as a macro on OSF/1.)
  10304. if test -n "$gl_have_pthread"; then
  10305. # The program links fine without libpthread. But it may actually
  10306. # need to link with libpthread in order to create multiple threads.
  10307. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10308. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10309. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10310. echo $ECHO_N "(cached) $ECHO_C" >&6
  10311. else
  10312. ac_check_lib_save_LIBS=$LIBS
  10313. LIBS="-lpthread $LIBS"
  10314. cat >conftest.$ac_ext <<_ACEOF
  10315. /* confdefs.h. */
  10316. _ACEOF
  10317. cat confdefs.h >>conftest.$ac_ext
  10318. cat >>conftest.$ac_ext <<_ACEOF
  10319. /* end confdefs.h. */
  10320. /* Override any GCC internal prototype to avoid an error.
  10321. Use char because int might match the return type of a GCC
  10322. builtin and then its argument prototype would still apply. */
  10323. #ifdef __cplusplus
  10324. extern "C"
  10325. #endif
  10326. char pthread_kill ();
  10327. int
  10328. main ()
  10329. {
  10330. return pthread_kill ();
  10331. ;
  10332. return 0;
  10333. }
  10334. _ACEOF
  10335. rm -f conftest.$ac_objext conftest$ac_exeext
  10336. if { (ac_try="$ac_link"
  10337. case "(($ac_try" in
  10338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10339. *) ac_try_echo=$ac_try;;
  10340. esac
  10341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10342. (eval "$ac_link") 2>conftest.er1
  10343. ac_status=$?
  10344. grep -v '^ *+' conftest.er1 >conftest.err
  10345. rm -f conftest.er1
  10346. cat conftest.err >&5
  10347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10348. (exit $ac_status); } && {
  10349. test -z "$ac_cxx_werror_flag" ||
  10350. test ! -s conftest.err
  10351. } && test -s conftest$ac_exeext &&
  10352. $as_test_x conftest$ac_exeext; then
  10353. ac_cv_lib_pthread_pthread_kill=yes
  10354. else
  10355. echo "$as_me: failed program was:" >&5
  10356. sed 's/^/| /' conftest.$ac_ext >&5
  10357. ac_cv_lib_pthread_pthread_kill=no
  10358. fi
  10359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10360. conftest$ac_exeext conftest.$ac_ext
  10361. LIBS=$ac_check_lib_save_LIBS
  10362. fi
  10363. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10364. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10365. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10366. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10367. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10368. # Therefore pthread_in_use() needs to actually try to create a
  10369. # thread: pthread_create from libc will fail, whereas
  10370. # pthread_create will actually create a thread.
  10371. case "$host_os" in
  10372. solaris* | hpux*)
  10373. cat >>confdefs.h <<\_ACEOF
  10374. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10375. _ACEOF
  10376. esac
  10377. fi
  10378. else
  10379. # Some library is needed. Try libpthread and libc_r.
  10380. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10381. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10382. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10383. echo $ECHO_N "(cached) $ECHO_C" >&6
  10384. else
  10385. ac_check_lib_save_LIBS=$LIBS
  10386. LIBS="-lpthread $LIBS"
  10387. cat >conftest.$ac_ext <<_ACEOF
  10388. /* confdefs.h. */
  10389. _ACEOF
  10390. cat confdefs.h >>conftest.$ac_ext
  10391. cat >>conftest.$ac_ext <<_ACEOF
  10392. /* end confdefs.h. */
  10393. /* Override any GCC internal prototype to avoid an error.
  10394. Use char because int might match the return type of a GCC
  10395. builtin and then its argument prototype would still apply. */
  10396. #ifdef __cplusplus
  10397. extern "C"
  10398. #endif
  10399. char pthread_kill ();
  10400. int
  10401. main ()
  10402. {
  10403. return pthread_kill ();
  10404. ;
  10405. return 0;
  10406. }
  10407. _ACEOF
  10408. rm -f conftest.$ac_objext conftest$ac_exeext
  10409. if { (ac_try="$ac_link"
  10410. case "(($ac_try" in
  10411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10412. *) ac_try_echo=$ac_try;;
  10413. esac
  10414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10415. (eval "$ac_link") 2>conftest.er1
  10416. ac_status=$?
  10417. grep -v '^ *+' conftest.er1 >conftest.err
  10418. rm -f conftest.er1
  10419. cat conftest.err >&5
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); } && {
  10422. test -z "$ac_cxx_werror_flag" ||
  10423. test ! -s conftest.err
  10424. } && test -s conftest$ac_exeext &&
  10425. $as_test_x conftest$ac_exeext; then
  10426. ac_cv_lib_pthread_pthread_kill=yes
  10427. else
  10428. echo "$as_me: failed program was:" >&5
  10429. sed 's/^/| /' conftest.$ac_ext >&5
  10430. ac_cv_lib_pthread_pthread_kill=no
  10431. fi
  10432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10433. conftest$ac_exeext conftest.$ac_ext
  10434. LIBS=$ac_check_lib_save_LIBS
  10435. fi
  10436. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10437. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10438. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10439. gl_have_pthread=yes
  10440. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10441. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10442. fi
  10443. if test -z "$gl_have_pthread"; then
  10444. # For FreeBSD 4.
  10445. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10446. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10447. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10448. echo $ECHO_N "(cached) $ECHO_C" >&6
  10449. else
  10450. ac_check_lib_save_LIBS=$LIBS
  10451. LIBS="-lc_r $LIBS"
  10452. cat >conftest.$ac_ext <<_ACEOF
  10453. /* confdefs.h. */
  10454. _ACEOF
  10455. cat confdefs.h >>conftest.$ac_ext
  10456. cat >>conftest.$ac_ext <<_ACEOF
  10457. /* end confdefs.h. */
  10458. /* Override any GCC internal prototype to avoid an error.
  10459. Use char because int might match the return type of a GCC
  10460. builtin and then its argument prototype would still apply. */
  10461. #ifdef __cplusplus
  10462. extern "C"
  10463. #endif
  10464. char pthread_kill ();
  10465. int
  10466. main ()
  10467. {
  10468. return pthread_kill ();
  10469. ;
  10470. return 0;
  10471. }
  10472. _ACEOF
  10473. rm -f conftest.$ac_objext conftest$ac_exeext
  10474. if { (ac_try="$ac_link"
  10475. case "(($ac_try" in
  10476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10477. *) ac_try_echo=$ac_try;;
  10478. esac
  10479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10480. (eval "$ac_link") 2>conftest.er1
  10481. ac_status=$?
  10482. grep -v '^ *+' conftest.er1 >conftest.err
  10483. rm -f conftest.er1
  10484. cat conftest.err >&5
  10485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10486. (exit $ac_status); } && {
  10487. test -z "$ac_cxx_werror_flag" ||
  10488. test ! -s conftest.err
  10489. } && test -s conftest$ac_exeext &&
  10490. $as_test_x conftest$ac_exeext; then
  10491. ac_cv_lib_c_r_pthread_kill=yes
  10492. else
  10493. echo "$as_me: failed program was:" >&5
  10494. sed 's/^/| /' conftest.$ac_ext >&5
  10495. ac_cv_lib_c_r_pthread_kill=no
  10496. fi
  10497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10498. conftest$ac_exeext conftest.$ac_ext
  10499. LIBS=$ac_check_lib_save_LIBS
  10500. fi
  10501. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10502. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10503. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10504. gl_have_pthread=yes
  10505. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10506. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10507. fi
  10508. fi
  10509. fi
  10510. if test -n "$gl_have_pthread"; then
  10511. gl_threads_api=posix
  10512. cat >>confdefs.h <<\_ACEOF
  10513. #define USE_POSIX_THREADS 1
  10514. _ACEOF
  10515. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10516. if test $gl_have_weak = yes; then
  10517. cat >>confdefs.h <<\_ACEOF
  10518. #define USE_POSIX_THREADS_WEAK 1
  10519. _ACEOF
  10520. LIBTHREAD=
  10521. LTLIBTHREAD=
  10522. fi
  10523. fi
  10524. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10525. # pthread_rwlock_* functions.
  10526. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10527. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10528. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10529. echo $ECHO_N "(cached) $ECHO_C" >&6
  10530. else
  10531. cat >conftest.$ac_ext <<_ACEOF
  10532. /* confdefs.h. */
  10533. _ACEOF
  10534. cat confdefs.h >>conftest.$ac_ext
  10535. cat >>conftest.$ac_ext <<_ACEOF
  10536. /* end confdefs.h. */
  10537. #include <pthread.h>
  10538. typedef pthread_rwlock_t ac__type_new_;
  10539. int
  10540. main ()
  10541. {
  10542. if ((ac__type_new_ *) 0)
  10543. return 0;
  10544. if (sizeof (ac__type_new_))
  10545. return 0;
  10546. ;
  10547. return 0;
  10548. }
  10549. _ACEOF
  10550. rm -f conftest.$ac_objext
  10551. if { (ac_try="$ac_compile"
  10552. case "(($ac_try" in
  10553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10554. *) ac_try_echo=$ac_try;;
  10555. esac
  10556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10557. (eval "$ac_compile") 2>conftest.er1
  10558. ac_status=$?
  10559. grep -v '^ *+' conftest.er1 >conftest.err
  10560. rm -f conftest.er1
  10561. cat conftest.err >&5
  10562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10563. (exit $ac_status); } && {
  10564. test -z "$ac_cxx_werror_flag" ||
  10565. test ! -s conftest.err
  10566. } && test -s conftest.$ac_objext; then
  10567. ac_cv_type_pthread_rwlock_t=yes
  10568. else
  10569. echo "$as_me: failed program was:" >&5
  10570. sed 's/^/| /' conftest.$ac_ext >&5
  10571. ac_cv_type_pthread_rwlock_t=no
  10572. fi
  10573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10574. fi
  10575. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10576. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10577. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10578. cat >>confdefs.h <<\_ACEOF
  10579. #define HAVE_PTHREAD_RWLOCK 1
  10580. _ACEOF
  10581. fi
  10582. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10583. cat >conftest.$ac_ext <<_ACEOF
  10584. /* confdefs.h. */
  10585. _ACEOF
  10586. cat confdefs.h >>conftest.$ac_ext
  10587. cat >>conftest.$ac_ext <<_ACEOF
  10588. /* end confdefs.h. */
  10589. #include <pthread.h>
  10590. int
  10591. main ()
  10592. {
  10593. #if __FreeBSD__ == 4
  10594. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10595. #else
  10596. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10597. return !x;
  10598. #endif
  10599. ;
  10600. return 0;
  10601. }
  10602. _ACEOF
  10603. rm -f conftest.$ac_objext
  10604. if { (ac_try="$ac_compile"
  10605. case "(($ac_try" in
  10606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10607. *) ac_try_echo=$ac_try;;
  10608. esac
  10609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10610. (eval "$ac_compile") 2>conftest.er1
  10611. ac_status=$?
  10612. grep -v '^ *+' conftest.er1 >conftest.err
  10613. rm -f conftest.er1
  10614. cat conftest.err >&5
  10615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10616. (exit $ac_status); } && {
  10617. test -z "$ac_cxx_werror_flag" ||
  10618. test ! -s conftest.err
  10619. } && test -s conftest.$ac_objext; then
  10620. cat >>confdefs.h <<\_ACEOF
  10621. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10622. _ACEOF
  10623. else
  10624. echo "$as_me: failed program was:" >&5
  10625. sed 's/^/| /' conftest.$ac_ext >&5
  10626. fi
  10627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10628. fi
  10629. fi
  10630. fi
  10631. if test -z "$gl_have_pthread"; then
  10632. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10633. gl_have_solaristhread=
  10634. gl_save_LIBS="$LIBS"
  10635. LIBS="$LIBS -lthread"
  10636. cat >conftest.$ac_ext <<_ACEOF
  10637. /* confdefs.h. */
  10638. _ACEOF
  10639. cat confdefs.h >>conftest.$ac_ext
  10640. cat >>conftest.$ac_ext <<_ACEOF
  10641. /* end confdefs.h. */
  10642. #include <thread.h>
  10643. #include <synch.h>
  10644. int
  10645. main ()
  10646. {
  10647. thr_self();
  10648. ;
  10649. return 0;
  10650. }
  10651. _ACEOF
  10652. rm -f conftest.$ac_objext conftest$ac_exeext
  10653. if { (ac_try="$ac_link"
  10654. case "(($ac_try" in
  10655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10656. *) ac_try_echo=$ac_try;;
  10657. esac
  10658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10659. (eval "$ac_link") 2>conftest.er1
  10660. ac_status=$?
  10661. grep -v '^ *+' conftest.er1 >conftest.err
  10662. rm -f conftest.er1
  10663. cat conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. (exit $ac_status); } && {
  10666. test -z "$ac_cxx_werror_flag" ||
  10667. test ! -s conftest.err
  10668. } && test -s conftest$ac_exeext &&
  10669. $as_test_x conftest$ac_exeext; then
  10670. gl_have_solaristhread=yes
  10671. else
  10672. echo "$as_me: failed program was:" >&5
  10673. sed 's/^/| /' conftest.$ac_ext >&5
  10674. fi
  10675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10676. conftest$ac_exeext conftest.$ac_ext
  10677. LIBS="$gl_save_LIBS"
  10678. if test -n "$gl_have_solaristhread"; then
  10679. gl_threads_api=solaris
  10680. LIBTHREAD=-lthread
  10681. LTLIBTHREAD=-lthread
  10682. LIBMULTITHREAD="$LIBTHREAD"
  10683. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10684. cat >>confdefs.h <<\_ACEOF
  10685. #define USE_SOLARIS_THREADS 1
  10686. _ACEOF
  10687. if test $gl_have_weak = yes; then
  10688. cat >>confdefs.h <<\_ACEOF
  10689. #define USE_SOLARIS_THREADS_WEAK 1
  10690. _ACEOF
  10691. LIBTHREAD=
  10692. LTLIBTHREAD=
  10693. fi
  10694. fi
  10695. fi
  10696. fi
  10697. if test "$gl_use_threads" = pth; then
  10698. gl_save_CPPFLAGS="$CPPFLAGS"
  10699. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10700. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10701. if test "${ac_cv_libpth_libs+set}" = set; then
  10702. echo $ECHO_N "(cached) $ECHO_C" >&6
  10703. else
  10704. use_additional=yes
  10705. acl_save_prefix="$prefix"
  10706. prefix="$acl_final_prefix"
  10707. acl_save_exec_prefix="$exec_prefix"
  10708. exec_prefix="$acl_final_exec_prefix"
  10709. eval additional_includedir=\"$includedir\"
  10710. eval additional_libdir=\"$libdir\"
  10711. exec_prefix="$acl_save_exec_prefix"
  10712. prefix="$acl_save_prefix"
  10713. # Check whether --with-libpth-prefix was given.
  10714. if test "${with_libpth_prefix+set}" = set; then
  10715. withval=$with_libpth_prefix;
  10716. if test "X$withval" = "Xno"; then
  10717. use_additional=no
  10718. else
  10719. if test "X$withval" = "X"; then
  10720. acl_save_prefix="$prefix"
  10721. prefix="$acl_final_prefix"
  10722. acl_save_exec_prefix="$exec_prefix"
  10723. exec_prefix="$acl_final_exec_prefix"
  10724. eval additional_includedir=\"$includedir\"
  10725. eval additional_libdir=\"$libdir\"
  10726. exec_prefix="$acl_save_exec_prefix"
  10727. prefix="$acl_save_prefix"
  10728. else
  10729. additional_includedir="$withval/include"
  10730. additional_libdir="$withval/$acl_libdirstem"
  10731. fi
  10732. fi
  10733. fi
  10734. LIBPTH=
  10735. LTLIBPTH=
  10736. INCPTH=
  10737. LIBPTH_PREFIX=
  10738. rpathdirs=
  10739. ltrpathdirs=
  10740. names_already_handled=
  10741. names_next_round='pth '
  10742. while test -n "$names_next_round"; do
  10743. names_this_round="$names_next_round"
  10744. names_next_round=
  10745. for name in $names_this_round; do
  10746. already_handled=
  10747. for n in $names_already_handled; do
  10748. if test "$n" = "$name"; then
  10749. already_handled=yes
  10750. break
  10751. fi
  10752. done
  10753. if test -z "$already_handled"; then
  10754. names_already_handled="$names_already_handled $name"
  10755. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10756. eval value=\"\$HAVE_LIB$uppername\"
  10757. if test -n "$value"; then
  10758. if test "$value" = yes; then
  10759. eval value=\"\$LIB$uppername\"
  10760. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10761. eval value=\"\$LTLIB$uppername\"
  10762. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10763. else
  10764. :
  10765. fi
  10766. else
  10767. found_dir=
  10768. found_la=
  10769. found_so=
  10770. found_a=
  10771. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10772. if test -n "$acl_shlibext"; then
  10773. shrext=".$acl_shlibext" # typically: shrext=.so
  10774. else
  10775. shrext=
  10776. fi
  10777. if test $use_additional = yes; then
  10778. dir="$additional_libdir"
  10779. if test -n "$acl_shlibext"; then
  10780. if test -f "$dir/$libname$shrext"; then
  10781. found_dir="$dir"
  10782. found_so="$dir/$libname$shrext"
  10783. else
  10784. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10785. ver=`(cd "$dir" && \
  10786. for f in "$libname$shrext".*; do echo "$f"; done \
  10787. | sed -e "s,^$libname$shrext\\\\.,," \
  10788. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10789. | sed 1q ) 2>/dev/null`
  10790. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10791. found_dir="$dir"
  10792. found_so="$dir/$libname$shrext.$ver"
  10793. fi
  10794. else
  10795. eval library_names=\"$acl_library_names_spec\"
  10796. for f in $library_names; do
  10797. if test -f "$dir/$f"; then
  10798. found_dir="$dir"
  10799. found_so="$dir/$f"
  10800. break
  10801. fi
  10802. done
  10803. fi
  10804. fi
  10805. fi
  10806. if test "X$found_dir" = "X"; then
  10807. if test -f "$dir/$libname.$acl_libext"; then
  10808. found_dir="$dir"
  10809. found_a="$dir/$libname.$acl_libext"
  10810. fi
  10811. fi
  10812. if test "X$found_dir" != "X"; then
  10813. if test -f "$dir/$libname.la"; then
  10814. found_la="$dir/$libname.la"
  10815. fi
  10816. fi
  10817. fi
  10818. if test "X$found_dir" = "X"; then
  10819. for x in $LDFLAGS $LTLIBPTH; do
  10820. acl_save_prefix="$prefix"
  10821. prefix="$acl_final_prefix"
  10822. acl_save_exec_prefix="$exec_prefix"
  10823. exec_prefix="$acl_final_exec_prefix"
  10824. eval x=\"$x\"
  10825. exec_prefix="$acl_save_exec_prefix"
  10826. prefix="$acl_save_prefix"
  10827. case "$x" in
  10828. -L*)
  10829. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10830. if test -n "$acl_shlibext"; then
  10831. if test -f "$dir/$libname$shrext"; then
  10832. found_dir="$dir"
  10833. found_so="$dir/$libname$shrext"
  10834. else
  10835. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10836. ver=`(cd "$dir" && \
  10837. for f in "$libname$shrext".*; do echo "$f"; done \
  10838. | sed -e "s,^$libname$shrext\\\\.,," \
  10839. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10840. | sed 1q ) 2>/dev/null`
  10841. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10842. found_dir="$dir"
  10843. found_so="$dir/$libname$shrext.$ver"
  10844. fi
  10845. else
  10846. eval library_names=\"$acl_library_names_spec\"
  10847. for f in $library_names; do
  10848. if test -f "$dir/$f"; then
  10849. found_dir="$dir"
  10850. found_so="$dir/$f"
  10851. break
  10852. fi
  10853. done
  10854. fi
  10855. fi
  10856. fi
  10857. if test "X$found_dir" = "X"; then
  10858. if test -f "$dir/$libname.$acl_libext"; then
  10859. found_dir="$dir"
  10860. found_a="$dir/$libname.$acl_libext"
  10861. fi
  10862. fi
  10863. if test "X$found_dir" != "X"; then
  10864. if test -f "$dir/$libname.la"; then
  10865. found_la="$dir/$libname.la"
  10866. fi
  10867. fi
  10868. ;;
  10869. esac
  10870. if test "X$found_dir" != "X"; then
  10871. break
  10872. fi
  10873. done
  10874. fi
  10875. if test "X$found_dir" != "X"; then
  10876. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  10877. if test "X$found_so" != "X"; then
  10878. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  10879. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10880. else
  10881. haveit=
  10882. for x in $ltrpathdirs; do
  10883. if test "X$x" = "X$found_dir"; then
  10884. haveit=yes
  10885. break
  10886. fi
  10887. done
  10888. if test -z "$haveit"; then
  10889. ltrpathdirs="$ltrpathdirs $found_dir"
  10890. fi
  10891. if test "$acl_hardcode_direct" = yes; then
  10892. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10893. else
  10894. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  10895. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10896. haveit=
  10897. for x in $rpathdirs; do
  10898. if test "X$x" = "X$found_dir"; then
  10899. haveit=yes
  10900. break
  10901. fi
  10902. done
  10903. if test -z "$haveit"; then
  10904. rpathdirs="$rpathdirs $found_dir"
  10905. fi
  10906. else
  10907. haveit=
  10908. for x in $LDFLAGS $LIBPTH; do
  10909. acl_save_prefix="$prefix"
  10910. prefix="$acl_final_prefix"
  10911. acl_save_exec_prefix="$exec_prefix"
  10912. exec_prefix="$acl_final_exec_prefix"
  10913. eval x=\"$x\"
  10914. exec_prefix="$acl_save_exec_prefix"
  10915. prefix="$acl_save_prefix"
  10916. if test "X$x" = "X-L$found_dir"; then
  10917. haveit=yes
  10918. break
  10919. fi
  10920. done
  10921. if test -z "$haveit"; then
  10922. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  10923. fi
  10924. if test "$acl_hardcode_minus_L" != no; then
  10925. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10926. else
  10927. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  10928. fi
  10929. fi
  10930. fi
  10931. fi
  10932. else
  10933. if test "X$found_a" != "X"; then
  10934. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  10935. else
  10936. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  10937. fi
  10938. fi
  10939. additional_includedir=
  10940. case "$found_dir" in
  10941. */$acl_libdirstem | */$acl_libdirstem/)
  10942. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10943. LIBPTH_PREFIX="$basedir"
  10944. additional_includedir="$basedir/include"
  10945. ;;
  10946. esac
  10947. if test "X$additional_includedir" != "X"; then
  10948. if test "X$additional_includedir" != "X/usr/include"; then
  10949. haveit=
  10950. if test "X$additional_includedir" = "X/usr/local/include"; then
  10951. if test -n "$GCC"; then
  10952. case $host_os in
  10953. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10954. esac
  10955. fi
  10956. fi
  10957. if test -z "$haveit"; then
  10958. for x in $CPPFLAGS $INCPTH; do
  10959. acl_save_prefix="$prefix"
  10960. prefix="$acl_final_prefix"
  10961. acl_save_exec_prefix="$exec_prefix"
  10962. exec_prefix="$acl_final_exec_prefix"
  10963. eval x=\"$x\"
  10964. exec_prefix="$acl_save_exec_prefix"
  10965. prefix="$acl_save_prefix"
  10966. if test "X$x" = "X-I$additional_includedir"; then
  10967. haveit=yes
  10968. break
  10969. fi
  10970. done
  10971. if test -z "$haveit"; then
  10972. if test -d "$additional_includedir"; then
  10973. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  10974. fi
  10975. fi
  10976. fi
  10977. fi
  10978. fi
  10979. if test -n "$found_la"; then
  10980. save_libdir="$libdir"
  10981. case "$found_la" in
  10982. */* | *\\*) . "$found_la" ;;
  10983. *) . "./$found_la" ;;
  10984. esac
  10985. libdir="$save_libdir"
  10986. for dep in $dependency_libs; do
  10987. case "$dep" in
  10988. -L*)
  10989. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  10990. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  10991. haveit=
  10992. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  10993. if test -n "$GCC"; then
  10994. case $host_os in
  10995. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10996. esac
  10997. fi
  10998. fi
  10999. if test -z "$haveit"; then
  11000. haveit=
  11001. for x in $LDFLAGS $LIBPTH; do
  11002. acl_save_prefix="$prefix"
  11003. prefix="$acl_final_prefix"
  11004. acl_save_exec_prefix="$exec_prefix"
  11005. exec_prefix="$acl_final_exec_prefix"
  11006. eval x=\"$x\"
  11007. exec_prefix="$acl_save_exec_prefix"
  11008. prefix="$acl_save_prefix"
  11009. if test "X$x" = "X-L$additional_libdir"; then
  11010. haveit=yes
  11011. break
  11012. fi
  11013. done
  11014. if test -z "$haveit"; then
  11015. if test -d "$additional_libdir"; then
  11016. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11017. fi
  11018. fi
  11019. haveit=
  11020. for x in $LDFLAGS $LTLIBPTH; do
  11021. acl_save_prefix="$prefix"
  11022. prefix="$acl_final_prefix"
  11023. acl_save_exec_prefix="$exec_prefix"
  11024. exec_prefix="$acl_final_exec_prefix"
  11025. eval x=\"$x\"
  11026. exec_prefix="$acl_save_exec_prefix"
  11027. prefix="$acl_save_prefix"
  11028. if test "X$x" = "X-L$additional_libdir"; then
  11029. haveit=yes
  11030. break
  11031. fi
  11032. done
  11033. if test -z "$haveit"; then
  11034. if test -d "$additional_libdir"; then
  11035. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11036. fi
  11037. fi
  11038. fi
  11039. fi
  11040. ;;
  11041. -R*)
  11042. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11043. if test "$enable_rpath" != no; then
  11044. haveit=
  11045. for x in $rpathdirs; do
  11046. if test "X$x" = "X$dir"; then
  11047. haveit=yes
  11048. break
  11049. fi
  11050. done
  11051. if test -z "$haveit"; then
  11052. rpathdirs="$rpathdirs $dir"
  11053. fi
  11054. haveit=
  11055. for x in $ltrpathdirs; do
  11056. if test "X$x" = "X$dir"; then
  11057. haveit=yes
  11058. break
  11059. fi
  11060. done
  11061. if test -z "$haveit"; then
  11062. ltrpathdirs="$ltrpathdirs $dir"
  11063. fi
  11064. fi
  11065. ;;
  11066. -l*)
  11067. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11068. ;;
  11069. *.la)
  11070. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11071. ;;
  11072. *)
  11073. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11074. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11075. ;;
  11076. esac
  11077. done
  11078. fi
  11079. else
  11080. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11081. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11082. fi
  11083. fi
  11084. fi
  11085. done
  11086. done
  11087. if test "X$rpathdirs" != "X"; then
  11088. if test -n "$acl_hardcode_libdir_separator"; then
  11089. alldirs=
  11090. for found_dir in $rpathdirs; do
  11091. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11092. done
  11093. acl_save_libdir="$libdir"
  11094. libdir="$alldirs"
  11095. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11096. libdir="$acl_save_libdir"
  11097. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11098. else
  11099. for found_dir in $rpathdirs; do
  11100. acl_save_libdir="$libdir"
  11101. libdir="$found_dir"
  11102. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11103. libdir="$acl_save_libdir"
  11104. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11105. done
  11106. fi
  11107. fi
  11108. if test "X$ltrpathdirs" != "X"; then
  11109. for found_dir in $ltrpathdirs; do
  11110. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11111. done
  11112. fi
  11113. ac_cv_libpth_libs="$LIBPTH"
  11114. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11115. ac_cv_libpth_cppflags="$INCPTH"
  11116. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11117. fi
  11118. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11119. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11120. LIBPTH="$ac_cv_libpth_libs"
  11121. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11122. INCPTH="$ac_cv_libpth_cppflags"
  11123. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11124. for element in $INCPTH; do
  11125. haveit=
  11126. for x in $CPPFLAGS; do
  11127. acl_save_prefix="$prefix"
  11128. prefix="$acl_final_prefix"
  11129. acl_save_exec_prefix="$exec_prefix"
  11130. exec_prefix="$acl_final_exec_prefix"
  11131. eval x=\"$x\"
  11132. exec_prefix="$acl_save_exec_prefix"
  11133. prefix="$acl_save_prefix"
  11134. if test "X$x" = "X$element"; then
  11135. haveit=yes
  11136. break
  11137. fi
  11138. done
  11139. if test -z "$haveit"; then
  11140. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11141. fi
  11142. done
  11143. HAVE_LIBPTH=yes
  11144. gl_have_pth=
  11145. gl_save_LIBS="$LIBS"
  11146. LIBS="$LIBS -lpth"
  11147. cat >conftest.$ac_ext <<_ACEOF
  11148. /* confdefs.h. */
  11149. _ACEOF
  11150. cat confdefs.h >>conftest.$ac_ext
  11151. cat >>conftest.$ac_ext <<_ACEOF
  11152. /* end confdefs.h. */
  11153. #include <pth.h>
  11154. int
  11155. main ()
  11156. {
  11157. pth_self();
  11158. ;
  11159. return 0;
  11160. }
  11161. _ACEOF
  11162. rm -f conftest.$ac_objext conftest$ac_exeext
  11163. if { (ac_try="$ac_link"
  11164. case "(($ac_try" in
  11165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11166. *) ac_try_echo=$ac_try;;
  11167. esac
  11168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11169. (eval "$ac_link") 2>conftest.er1
  11170. ac_status=$?
  11171. grep -v '^ *+' conftest.er1 >conftest.err
  11172. rm -f conftest.er1
  11173. cat conftest.err >&5
  11174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11175. (exit $ac_status); } && {
  11176. test -z "$ac_cxx_werror_flag" ||
  11177. test ! -s conftest.err
  11178. } && test -s conftest$ac_exeext &&
  11179. $as_test_x conftest$ac_exeext; then
  11180. gl_have_pth=yes
  11181. else
  11182. echo "$as_me: failed program was:" >&5
  11183. sed 's/^/| /' conftest.$ac_ext >&5
  11184. fi
  11185. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11186. conftest$ac_exeext conftest.$ac_ext
  11187. LIBS="$gl_save_LIBS"
  11188. if test -n "$gl_have_pth"; then
  11189. gl_threads_api=pth
  11190. LIBTHREAD="$LIBPTH"
  11191. LTLIBTHREAD="$LTLIBPTH"
  11192. LIBMULTITHREAD="$LIBTHREAD"
  11193. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11194. cat >>confdefs.h <<\_ACEOF
  11195. #define USE_PTH_THREADS 1
  11196. _ACEOF
  11197. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11198. if test $gl_have_weak = yes; then
  11199. cat >>confdefs.h <<\_ACEOF
  11200. #define USE_PTH_THREADS_WEAK 1
  11201. _ACEOF
  11202. LIBTHREAD=
  11203. LTLIBTHREAD=
  11204. fi
  11205. fi
  11206. else
  11207. CPPFLAGS="$gl_save_CPPFLAGS"
  11208. fi
  11209. fi
  11210. if test -z "$gl_have_pthread"; then
  11211. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11212. if { case "$host_os" in
  11213. mingw*) true;;
  11214. *) false;;
  11215. esac
  11216. }; then
  11217. gl_threads_api=win32
  11218. cat >>confdefs.h <<\_ACEOF
  11219. #define USE_WIN32_THREADS 1
  11220. _ACEOF
  11221. fi
  11222. fi
  11223. fi
  11224. fi
  11225. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11226. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11227. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11228. echo "${ECHO_T}$gl_threads_api" >&6; }
  11229. use_additional=yes
  11230. acl_save_prefix="$prefix"
  11231. prefix="$acl_final_prefix"
  11232. acl_save_exec_prefix="$exec_prefix"
  11233. exec_prefix="$acl_final_exec_prefix"
  11234. eval additional_includedir=\"$includedir\"
  11235. eval additional_libdir=\"$libdir\"
  11236. exec_prefix="$acl_save_exec_prefix"
  11237. prefix="$acl_save_prefix"
  11238. # Check whether --with-libiconv-prefix was given.
  11239. if test "${with_libiconv_prefix+set}" = set; then
  11240. withval=$with_libiconv_prefix;
  11241. if test "X$withval" = "Xno"; then
  11242. use_additional=no
  11243. else
  11244. if test "X$withval" = "X"; then
  11245. acl_save_prefix="$prefix"
  11246. prefix="$acl_final_prefix"
  11247. acl_save_exec_prefix="$exec_prefix"
  11248. exec_prefix="$acl_final_exec_prefix"
  11249. eval additional_includedir=\"$includedir\"
  11250. eval additional_libdir=\"$libdir\"
  11251. exec_prefix="$acl_save_exec_prefix"
  11252. prefix="$acl_save_prefix"
  11253. else
  11254. additional_includedir="$withval/include"
  11255. additional_libdir="$withval/$acl_libdirstem"
  11256. fi
  11257. fi
  11258. fi
  11259. LIBICONV=
  11260. LTLIBICONV=
  11261. INCICONV=
  11262. LIBICONV_PREFIX=
  11263. rpathdirs=
  11264. ltrpathdirs=
  11265. names_already_handled=
  11266. names_next_round='iconv '
  11267. while test -n "$names_next_round"; do
  11268. names_this_round="$names_next_round"
  11269. names_next_round=
  11270. for name in $names_this_round; do
  11271. already_handled=
  11272. for n in $names_already_handled; do
  11273. if test "$n" = "$name"; then
  11274. already_handled=yes
  11275. break
  11276. fi
  11277. done
  11278. if test -z "$already_handled"; then
  11279. names_already_handled="$names_already_handled $name"
  11280. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11281. eval value=\"\$HAVE_LIB$uppername\"
  11282. if test -n "$value"; then
  11283. if test "$value" = yes; then
  11284. eval value=\"\$LIB$uppername\"
  11285. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11286. eval value=\"\$LTLIB$uppername\"
  11287. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11288. else
  11289. :
  11290. fi
  11291. else
  11292. found_dir=
  11293. found_la=
  11294. found_so=
  11295. found_a=
  11296. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11297. if test -n "$acl_shlibext"; then
  11298. shrext=".$acl_shlibext" # typically: shrext=.so
  11299. else
  11300. shrext=
  11301. fi
  11302. if test $use_additional = yes; then
  11303. dir="$additional_libdir"
  11304. if test -n "$acl_shlibext"; then
  11305. if test -f "$dir/$libname$shrext"; then
  11306. found_dir="$dir"
  11307. found_so="$dir/$libname$shrext"
  11308. else
  11309. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11310. ver=`(cd "$dir" && \
  11311. for f in "$libname$shrext".*; do echo "$f"; done \
  11312. | sed -e "s,^$libname$shrext\\\\.,," \
  11313. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11314. | sed 1q ) 2>/dev/null`
  11315. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11316. found_dir="$dir"
  11317. found_so="$dir/$libname$shrext.$ver"
  11318. fi
  11319. else
  11320. eval library_names=\"$acl_library_names_spec\"
  11321. for f in $library_names; do
  11322. if test -f "$dir/$f"; then
  11323. found_dir="$dir"
  11324. found_so="$dir/$f"
  11325. break
  11326. fi
  11327. done
  11328. fi
  11329. fi
  11330. fi
  11331. if test "X$found_dir" = "X"; then
  11332. if test -f "$dir/$libname.$acl_libext"; then
  11333. found_dir="$dir"
  11334. found_a="$dir/$libname.$acl_libext"
  11335. fi
  11336. fi
  11337. if test "X$found_dir" != "X"; then
  11338. if test -f "$dir/$libname.la"; then
  11339. found_la="$dir/$libname.la"
  11340. fi
  11341. fi
  11342. fi
  11343. if test "X$found_dir" = "X"; then
  11344. for x in $LDFLAGS $LTLIBICONV; do
  11345. acl_save_prefix="$prefix"
  11346. prefix="$acl_final_prefix"
  11347. acl_save_exec_prefix="$exec_prefix"
  11348. exec_prefix="$acl_final_exec_prefix"
  11349. eval x=\"$x\"
  11350. exec_prefix="$acl_save_exec_prefix"
  11351. prefix="$acl_save_prefix"
  11352. case "$x" in
  11353. -L*)
  11354. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11355. if test -n "$acl_shlibext"; then
  11356. if test -f "$dir/$libname$shrext"; then
  11357. found_dir="$dir"
  11358. found_so="$dir/$libname$shrext"
  11359. else
  11360. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11361. ver=`(cd "$dir" && \
  11362. for f in "$libname$shrext".*; do echo "$f"; done \
  11363. | sed -e "s,^$libname$shrext\\\\.,," \
  11364. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11365. | sed 1q ) 2>/dev/null`
  11366. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11367. found_dir="$dir"
  11368. found_so="$dir/$libname$shrext.$ver"
  11369. fi
  11370. else
  11371. eval library_names=\"$acl_library_names_spec\"
  11372. for f in $library_names; do
  11373. if test -f "$dir/$f"; then
  11374. found_dir="$dir"
  11375. found_so="$dir/$f"
  11376. break
  11377. fi
  11378. done
  11379. fi
  11380. fi
  11381. fi
  11382. if test "X$found_dir" = "X"; then
  11383. if test -f "$dir/$libname.$acl_libext"; then
  11384. found_dir="$dir"
  11385. found_a="$dir/$libname.$acl_libext"
  11386. fi
  11387. fi
  11388. if test "X$found_dir" != "X"; then
  11389. if test -f "$dir/$libname.la"; then
  11390. found_la="$dir/$libname.la"
  11391. fi
  11392. fi
  11393. ;;
  11394. esac
  11395. if test "X$found_dir" != "X"; then
  11396. break
  11397. fi
  11398. done
  11399. fi
  11400. if test "X$found_dir" != "X"; then
  11401. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11402. if test "X$found_so" != "X"; then
  11403. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11404. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11405. else
  11406. haveit=
  11407. for x in $ltrpathdirs; do
  11408. if test "X$x" = "X$found_dir"; then
  11409. haveit=yes
  11410. break
  11411. fi
  11412. done
  11413. if test -z "$haveit"; then
  11414. ltrpathdirs="$ltrpathdirs $found_dir"
  11415. fi
  11416. if test "$acl_hardcode_direct" = yes; then
  11417. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11418. else
  11419. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11420. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11421. haveit=
  11422. for x in $rpathdirs; do
  11423. if test "X$x" = "X$found_dir"; then
  11424. haveit=yes
  11425. break
  11426. fi
  11427. done
  11428. if test -z "$haveit"; then
  11429. rpathdirs="$rpathdirs $found_dir"
  11430. fi
  11431. else
  11432. haveit=
  11433. for x in $LDFLAGS $LIBICONV; do
  11434. acl_save_prefix="$prefix"
  11435. prefix="$acl_final_prefix"
  11436. acl_save_exec_prefix="$exec_prefix"
  11437. exec_prefix="$acl_final_exec_prefix"
  11438. eval x=\"$x\"
  11439. exec_prefix="$acl_save_exec_prefix"
  11440. prefix="$acl_save_prefix"
  11441. if test "X$x" = "X-L$found_dir"; then
  11442. haveit=yes
  11443. break
  11444. fi
  11445. done
  11446. if test -z "$haveit"; then
  11447. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11448. fi
  11449. if test "$acl_hardcode_minus_L" != no; then
  11450. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11451. else
  11452. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11453. fi
  11454. fi
  11455. fi
  11456. fi
  11457. else
  11458. if test "X$found_a" != "X"; then
  11459. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11460. else
  11461. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11462. fi
  11463. fi
  11464. additional_includedir=
  11465. case "$found_dir" in
  11466. */$acl_libdirstem | */$acl_libdirstem/)
  11467. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11468. LIBICONV_PREFIX="$basedir"
  11469. additional_includedir="$basedir/include"
  11470. ;;
  11471. esac
  11472. if test "X$additional_includedir" != "X"; then
  11473. if test "X$additional_includedir" != "X/usr/include"; then
  11474. haveit=
  11475. if test "X$additional_includedir" = "X/usr/local/include"; then
  11476. if test -n "$GCC"; then
  11477. case $host_os in
  11478. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11479. esac
  11480. fi
  11481. fi
  11482. if test -z "$haveit"; then
  11483. for x in $CPPFLAGS $INCICONV; do
  11484. acl_save_prefix="$prefix"
  11485. prefix="$acl_final_prefix"
  11486. acl_save_exec_prefix="$exec_prefix"
  11487. exec_prefix="$acl_final_exec_prefix"
  11488. eval x=\"$x\"
  11489. exec_prefix="$acl_save_exec_prefix"
  11490. prefix="$acl_save_prefix"
  11491. if test "X$x" = "X-I$additional_includedir"; then
  11492. haveit=yes
  11493. break
  11494. fi
  11495. done
  11496. if test -z "$haveit"; then
  11497. if test -d "$additional_includedir"; then
  11498. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11499. fi
  11500. fi
  11501. fi
  11502. fi
  11503. fi
  11504. if test -n "$found_la"; then
  11505. save_libdir="$libdir"
  11506. case "$found_la" in
  11507. */* | *\\*) . "$found_la" ;;
  11508. *) . "./$found_la" ;;
  11509. esac
  11510. libdir="$save_libdir"
  11511. for dep in $dependency_libs; do
  11512. case "$dep" in
  11513. -L*)
  11514. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11515. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11516. haveit=
  11517. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11518. if test -n "$GCC"; then
  11519. case $host_os in
  11520. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11521. esac
  11522. fi
  11523. fi
  11524. if test -z "$haveit"; then
  11525. haveit=
  11526. for x in $LDFLAGS $LIBICONV; do
  11527. acl_save_prefix="$prefix"
  11528. prefix="$acl_final_prefix"
  11529. acl_save_exec_prefix="$exec_prefix"
  11530. exec_prefix="$acl_final_exec_prefix"
  11531. eval x=\"$x\"
  11532. exec_prefix="$acl_save_exec_prefix"
  11533. prefix="$acl_save_prefix"
  11534. if test "X$x" = "X-L$additional_libdir"; then
  11535. haveit=yes
  11536. break
  11537. fi
  11538. done
  11539. if test -z "$haveit"; then
  11540. if test -d "$additional_libdir"; then
  11541. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11542. fi
  11543. fi
  11544. haveit=
  11545. for x in $LDFLAGS $LTLIBICONV; do
  11546. acl_save_prefix="$prefix"
  11547. prefix="$acl_final_prefix"
  11548. acl_save_exec_prefix="$exec_prefix"
  11549. exec_prefix="$acl_final_exec_prefix"
  11550. eval x=\"$x\"
  11551. exec_prefix="$acl_save_exec_prefix"
  11552. prefix="$acl_save_prefix"
  11553. if test "X$x" = "X-L$additional_libdir"; then
  11554. haveit=yes
  11555. break
  11556. fi
  11557. done
  11558. if test -z "$haveit"; then
  11559. if test -d "$additional_libdir"; then
  11560. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11561. fi
  11562. fi
  11563. fi
  11564. fi
  11565. ;;
  11566. -R*)
  11567. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11568. if test "$enable_rpath" != no; then
  11569. haveit=
  11570. for x in $rpathdirs; do
  11571. if test "X$x" = "X$dir"; then
  11572. haveit=yes
  11573. break
  11574. fi
  11575. done
  11576. if test -z "$haveit"; then
  11577. rpathdirs="$rpathdirs $dir"
  11578. fi
  11579. haveit=
  11580. for x in $ltrpathdirs; do
  11581. if test "X$x" = "X$dir"; then
  11582. haveit=yes
  11583. break
  11584. fi
  11585. done
  11586. if test -z "$haveit"; then
  11587. ltrpathdirs="$ltrpathdirs $dir"
  11588. fi
  11589. fi
  11590. ;;
  11591. -l*)
  11592. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11593. ;;
  11594. *.la)
  11595. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11596. ;;
  11597. *)
  11598. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11599. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11600. ;;
  11601. esac
  11602. done
  11603. fi
  11604. else
  11605. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11606. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11607. fi
  11608. fi
  11609. fi
  11610. done
  11611. done
  11612. if test "X$rpathdirs" != "X"; then
  11613. if test -n "$acl_hardcode_libdir_separator"; then
  11614. alldirs=
  11615. for found_dir in $rpathdirs; do
  11616. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11617. done
  11618. acl_save_libdir="$libdir"
  11619. libdir="$alldirs"
  11620. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11621. libdir="$acl_save_libdir"
  11622. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11623. else
  11624. for found_dir in $rpathdirs; do
  11625. acl_save_libdir="$libdir"
  11626. libdir="$found_dir"
  11627. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11628. libdir="$acl_save_libdir"
  11629. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11630. done
  11631. fi
  11632. fi
  11633. if test "X$ltrpathdirs" != "X"; then
  11634. for found_dir in $ltrpathdirs; do
  11635. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11636. done
  11637. fi
  11638. cat >conftest.$ac_ext <<_ACEOF
  11639. /* confdefs.h. */
  11640. _ACEOF
  11641. cat confdefs.h >>conftest.$ac_ext
  11642. cat >>conftest.$ac_ext <<_ACEOF
  11643. /* end confdefs.h. */
  11644. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11645. int
  11646. main ()
  11647. {
  11648. ;
  11649. return 0;
  11650. }
  11651. _ACEOF
  11652. rm -f conftest.$ac_objext conftest$ac_exeext
  11653. if { (ac_try="$ac_link"
  11654. case "(($ac_try" in
  11655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11656. *) ac_try_echo=$ac_try;;
  11657. esac
  11658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11659. (eval "$ac_link") 2>conftest.er1
  11660. ac_status=$?
  11661. grep -v '^ *+' conftest.er1 >conftest.err
  11662. rm -f conftest.er1
  11663. cat conftest.err >&5
  11664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11665. (exit $ac_status); } && {
  11666. test -z "$ac_cxx_werror_flag" ||
  11667. test ! -s conftest.err
  11668. } && test -s conftest$ac_exeext &&
  11669. $as_test_x conftest$ac_exeext; then
  11670. cat >>confdefs.h <<\_ACEOF
  11671. #define HAVE_BUILTIN_EXPECT 1
  11672. _ACEOF
  11673. else
  11674. echo "$as_me: failed program was:" >&5
  11675. sed 's/^/| /' conftest.$ac_ext >&5
  11676. fi
  11677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11678. conftest$ac_exeext conftest.$ac_ext
  11679. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11680. do
  11681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11683. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11686. echo $ECHO_N "(cached) $ECHO_C" >&6
  11687. fi
  11688. ac_res=`eval echo '${'$as_ac_Header'}'`
  11689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11690. echo "${ECHO_T}$ac_res" >&6; }
  11691. else
  11692. # Is the header compilable?
  11693. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11695. cat >conftest.$ac_ext <<_ACEOF
  11696. /* confdefs.h. */
  11697. _ACEOF
  11698. cat confdefs.h >>conftest.$ac_ext
  11699. cat >>conftest.$ac_ext <<_ACEOF
  11700. /* end confdefs.h. */
  11701. $ac_includes_default
  11702. #include <$ac_header>
  11703. _ACEOF
  11704. rm -f conftest.$ac_objext
  11705. if { (ac_try="$ac_compile"
  11706. case "(($ac_try" in
  11707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11708. *) ac_try_echo=$ac_try;;
  11709. esac
  11710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11711. (eval "$ac_compile") 2>conftest.er1
  11712. ac_status=$?
  11713. grep -v '^ *+' conftest.er1 >conftest.err
  11714. rm -f conftest.er1
  11715. cat conftest.err >&5
  11716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11717. (exit $ac_status); } && {
  11718. test -z "$ac_cxx_werror_flag" ||
  11719. test ! -s conftest.err
  11720. } && test -s conftest.$ac_objext; then
  11721. ac_header_compiler=yes
  11722. else
  11723. echo "$as_me: failed program was:" >&5
  11724. sed 's/^/| /' conftest.$ac_ext >&5
  11725. ac_header_compiler=no
  11726. fi
  11727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11728. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11729. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11730. # Is the header present?
  11731. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11732. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11733. cat >conftest.$ac_ext <<_ACEOF
  11734. /* confdefs.h. */
  11735. _ACEOF
  11736. cat confdefs.h >>conftest.$ac_ext
  11737. cat >>conftest.$ac_ext <<_ACEOF
  11738. /* end confdefs.h. */
  11739. #include <$ac_header>
  11740. _ACEOF
  11741. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11742. case "(($ac_try" in
  11743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11744. *) ac_try_echo=$ac_try;;
  11745. esac
  11746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11747. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11748. ac_status=$?
  11749. grep -v '^ *+' conftest.er1 >conftest.err
  11750. rm -f conftest.er1
  11751. cat conftest.err >&5
  11752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11753. (exit $ac_status); } >/dev/null && {
  11754. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11755. test ! -s conftest.err
  11756. }; then
  11757. ac_header_preproc=yes
  11758. else
  11759. echo "$as_me: failed program was:" >&5
  11760. sed 's/^/| /' conftest.$ac_ext >&5
  11761. ac_header_preproc=no
  11762. fi
  11763. rm -f conftest.err conftest.$ac_ext
  11764. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11765. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11766. # So? What about this header?
  11767. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11768. yes:no: )
  11769. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11770. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11772. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11773. ac_header_preproc=yes
  11774. ;;
  11775. no:yes:* )
  11776. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11777. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11778. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11779. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11780. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11781. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11782. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11783. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11785. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11786. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11787. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11788. ( cat <<\_ASBOX
  11789. ## ----------------------------------------------- ##
  11790. ## Report this to t-tujikawa@users.sourceforge.net ##
  11791. ## ----------------------------------------------- ##
  11792. _ASBOX
  11793. ) | sed "s/^/$as_me: WARNING: /" >&2
  11794. ;;
  11795. esac
  11796. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11797. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11798. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11799. echo $ECHO_N "(cached) $ECHO_C" >&6
  11800. else
  11801. eval "$as_ac_Header=\$ac_header_preproc"
  11802. fi
  11803. ac_res=`eval echo '${'$as_ac_Header'}'`
  11804. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11805. echo "${ECHO_T}$ac_res" >&6; }
  11806. fi
  11807. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11808. cat >>confdefs.h <<_ACEOF
  11809. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11810. _ACEOF
  11811. fi
  11812. done
  11813. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11814. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11815. argz_next __fsetlocking
  11816. do
  11817. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11818. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11819. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11820. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11821. echo $ECHO_N "(cached) $ECHO_C" >&6
  11822. else
  11823. cat >conftest.$ac_ext <<_ACEOF
  11824. /* confdefs.h. */
  11825. _ACEOF
  11826. cat confdefs.h >>conftest.$ac_ext
  11827. cat >>conftest.$ac_ext <<_ACEOF
  11828. /* end confdefs.h. */
  11829. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11830. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11831. #define $ac_func innocuous_$ac_func
  11832. /* System header to define __stub macros and hopefully few prototypes,
  11833. which can conflict with char $ac_func (); below.
  11834. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11835. <limits.h> exists even on freestanding compilers. */
  11836. #ifdef __STDC__
  11837. # include <limits.h>
  11838. #else
  11839. # include <assert.h>
  11840. #endif
  11841. #undef $ac_func
  11842. /* Override any GCC internal prototype to avoid an error.
  11843. Use char because int might match the return type of a GCC
  11844. builtin and then its argument prototype would still apply. */
  11845. #ifdef __cplusplus
  11846. extern "C"
  11847. #endif
  11848. char $ac_func ();
  11849. /* The GNU C library defines this for functions which it implements
  11850. to always fail with ENOSYS. Some functions are actually named
  11851. something starting with __ and the normal name is an alias. */
  11852. #if defined __stub_$ac_func || defined __stub___$ac_func
  11853. choke me
  11854. #endif
  11855. int
  11856. main ()
  11857. {
  11858. return $ac_func ();
  11859. ;
  11860. return 0;
  11861. }
  11862. _ACEOF
  11863. rm -f conftest.$ac_objext conftest$ac_exeext
  11864. if { (ac_try="$ac_link"
  11865. case "(($ac_try" in
  11866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11867. *) ac_try_echo=$ac_try;;
  11868. esac
  11869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11870. (eval "$ac_link") 2>conftest.er1
  11871. ac_status=$?
  11872. grep -v '^ *+' conftest.er1 >conftest.err
  11873. rm -f conftest.er1
  11874. cat conftest.err >&5
  11875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11876. (exit $ac_status); } && {
  11877. test -z "$ac_cxx_werror_flag" ||
  11878. test ! -s conftest.err
  11879. } && test -s conftest$ac_exeext &&
  11880. $as_test_x conftest$ac_exeext; then
  11881. eval "$as_ac_var=yes"
  11882. else
  11883. echo "$as_me: failed program was:" >&5
  11884. sed 's/^/| /' conftest.$ac_ext >&5
  11885. eval "$as_ac_var=no"
  11886. fi
  11887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11888. conftest$ac_exeext conftest.$ac_ext
  11889. fi
  11890. ac_res=`eval echo '${'$as_ac_var'}'`
  11891. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11892. echo "${ECHO_T}$ac_res" >&6; }
  11893. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11894. cat >>confdefs.h <<_ACEOF
  11895. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11896. _ACEOF
  11897. fi
  11898. done
  11899. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  11900. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  11901. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  11902. echo $ECHO_N "(cached) $ECHO_C" >&6
  11903. else
  11904. cat >conftest.$ac_ext <<_ACEOF
  11905. /* confdefs.h. */
  11906. _ACEOF
  11907. cat confdefs.h >>conftest.$ac_ext
  11908. cat >>conftest.$ac_ext <<_ACEOF
  11909. /* end confdefs.h. */
  11910. #include <stdio.h>
  11911. int
  11912. main ()
  11913. {
  11914. #ifndef feof_unlocked
  11915. char *p = (char *) feof_unlocked;
  11916. #endif
  11917. ;
  11918. return 0;
  11919. }
  11920. _ACEOF
  11921. rm -f conftest.$ac_objext
  11922. if { (ac_try="$ac_compile"
  11923. case "(($ac_try" in
  11924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11925. *) ac_try_echo=$ac_try;;
  11926. esac
  11927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11928. (eval "$ac_compile") 2>conftest.er1
  11929. ac_status=$?
  11930. grep -v '^ *+' conftest.er1 >conftest.err
  11931. rm -f conftest.er1
  11932. cat conftest.err >&5
  11933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11934. (exit $ac_status); } && {
  11935. test -z "$ac_cxx_werror_flag" ||
  11936. test ! -s conftest.err
  11937. } && test -s conftest.$ac_objext; then
  11938. ac_cv_have_decl_feof_unlocked=yes
  11939. else
  11940. echo "$as_me: failed program was:" >&5
  11941. sed 's/^/| /' conftest.$ac_ext >&5
  11942. ac_cv_have_decl_feof_unlocked=no
  11943. fi
  11944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11945. fi
  11946. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  11947. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  11948. if test $ac_cv_have_decl_feof_unlocked = yes; then
  11949. gt_value=1
  11950. else
  11951. gt_value=0
  11952. fi
  11953. cat >>confdefs.h <<_ACEOF
  11954. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  11955. _ACEOF
  11956. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  11957. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  11958. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  11959. echo $ECHO_N "(cached) $ECHO_C" >&6
  11960. else
  11961. cat >conftest.$ac_ext <<_ACEOF
  11962. /* confdefs.h. */
  11963. _ACEOF
  11964. cat confdefs.h >>conftest.$ac_ext
  11965. cat >>conftest.$ac_ext <<_ACEOF
  11966. /* end confdefs.h. */
  11967. #include <stdio.h>
  11968. int
  11969. main ()
  11970. {
  11971. #ifndef fgets_unlocked
  11972. char *p = (char *) fgets_unlocked;
  11973. #endif
  11974. ;
  11975. return 0;
  11976. }
  11977. _ACEOF
  11978. rm -f conftest.$ac_objext
  11979. if { (ac_try="$ac_compile"
  11980. case "(($ac_try" in
  11981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11982. *) ac_try_echo=$ac_try;;
  11983. esac
  11984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11985. (eval "$ac_compile") 2>conftest.er1
  11986. ac_status=$?
  11987. grep -v '^ *+' conftest.er1 >conftest.err
  11988. rm -f conftest.er1
  11989. cat conftest.err >&5
  11990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11991. (exit $ac_status); } && {
  11992. test -z "$ac_cxx_werror_flag" ||
  11993. test ! -s conftest.err
  11994. } && test -s conftest.$ac_objext; then
  11995. ac_cv_have_decl_fgets_unlocked=yes
  11996. else
  11997. echo "$as_me: failed program was:" >&5
  11998. sed 's/^/| /' conftest.$ac_ext >&5
  11999. ac_cv_have_decl_fgets_unlocked=no
  12000. fi
  12001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12002. fi
  12003. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12004. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12005. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12006. gt_value=1
  12007. else
  12008. gt_value=0
  12009. fi
  12010. cat >>confdefs.h <<_ACEOF
  12011. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12012. _ACEOF
  12013. am_save_CPPFLAGS="$CPPFLAGS"
  12014. for element in $INCICONV; do
  12015. haveit=
  12016. for x in $CPPFLAGS; do
  12017. acl_save_prefix="$prefix"
  12018. prefix="$acl_final_prefix"
  12019. acl_save_exec_prefix="$exec_prefix"
  12020. exec_prefix="$acl_final_exec_prefix"
  12021. eval x=\"$x\"
  12022. exec_prefix="$acl_save_exec_prefix"
  12023. prefix="$acl_save_prefix"
  12024. if test "X$x" = "X$element"; then
  12025. haveit=yes
  12026. break
  12027. fi
  12028. done
  12029. if test -z "$haveit"; then
  12030. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12031. fi
  12032. done
  12033. { echo "$as_me:$LINENO: checking for iconv" >&5
  12034. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12035. if test "${am_cv_func_iconv+set}" = set; then
  12036. echo $ECHO_N "(cached) $ECHO_C" >&6
  12037. else
  12038. am_cv_func_iconv="no, consider installing GNU libiconv"
  12039. am_cv_lib_iconv=no
  12040. cat >conftest.$ac_ext <<_ACEOF
  12041. /* confdefs.h. */
  12042. _ACEOF
  12043. cat confdefs.h >>conftest.$ac_ext
  12044. cat >>conftest.$ac_ext <<_ACEOF
  12045. /* end confdefs.h. */
  12046. #include <stdlib.h>
  12047. #include <iconv.h>
  12048. int
  12049. main ()
  12050. {
  12051. iconv_t cd = iconv_open("","");
  12052. iconv(cd,NULL,NULL,NULL,NULL);
  12053. iconv_close(cd);
  12054. ;
  12055. return 0;
  12056. }
  12057. _ACEOF
  12058. rm -f conftest.$ac_objext conftest$ac_exeext
  12059. if { (ac_try="$ac_link"
  12060. case "(($ac_try" in
  12061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12062. *) ac_try_echo=$ac_try;;
  12063. esac
  12064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12065. (eval "$ac_link") 2>conftest.er1
  12066. ac_status=$?
  12067. grep -v '^ *+' conftest.er1 >conftest.err
  12068. rm -f conftest.er1
  12069. cat conftest.err >&5
  12070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12071. (exit $ac_status); } && {
  12072. test -z "$ac_cxx_werror_flag" ||
  12073. test ! -s conftest.err
  12074. } && test -s conftest$ac_exeext &&
  12075. $as_test_x conftest$ac_exeext; then
  12076. am_cv_func_iconv=yes
  12077. else
  12078. echo "$as_me: failed program was:" >&5
  12079. sed 's/^/| /' conftest.$ac_ext >&5
  12080. fi
  12081. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12082. conftest$ac_exeext conftest.$ac_ext
  12083. if test "$am_cv_func_iconv" != yes; then
  12084. am_save_LIBS="$LIBS"
  12085. LIBS="$LIBS $LIBICONV"
  12086. cat >conftest.$ac_ext <<_ACEOF
  12087. /* confdefs.h. */
  12088. _ACEOF
  12089. cat confdefs.h >>conftest.$ac_ext
  12090. cat >>conftest.$ac_ext <<_ACEOF
  12091. /* end confdefs.h. */
  12092. #include <stdlib.h>
  12093. #include <iconv.h>
  12094. int
  12095. main ()
  12096. {
  12097. iconv_t cd = iconv_open("","");
  12098. iconv(cd,NULL,NULL,NULL,NULL);
  12099. iconv_close(cd);
  12100. ;
  12101. return 0;
  12102. }
  12103. _ACEOF
  12104. rm -f conftest.$ac_objext conftest$ac_exeext
  12105. if { (ac_try="$ac_link"
  12106. case "(($ac_try" in
  12107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12108. *) ac_try_echo=$ac_try;;
  12109. esac
  12110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12111. (eval "$ac_link") 2>conftest.er1
  12112. ac_status=$?
  12113. grep -v '^ *+' conftest.er1 >conftest.err
  12114. rm -f conftest.er1
  12115. cat conftest.err >&5
  12116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12117. (exit $ac_status); } && {
  12118. test -z "$ac_cxx_werror_flag" ||
  12119. test ! -s conftest.err
  12120. } && test -s conftest$ac_exeext &&
  12121. $as_test_x conftest$ac_exeext; then
  12122. am_cv_lib_iconv=yes
  12123. am_cv_func_iconv=yes
  12124. else
  12125. echo "$as_me: failed program was:" >&5
  12126. sed 's/^/| /' conftest.$ac_ext >&5
  12127. fi
  12128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12129. conftest$ac_exeext conftest.$ac_ext
  12130. LIBS="$am_save_LIBS"
  12131. fi
  12132. fi
  12133. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12134. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12135. if test "$am_cv_func_iconv" = yes; then
  12136. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12137. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12138. if test "${am_cv_func_iconv_works+set}" = set; then
  12139. echo $ECHO_N "(cached) $ECHO_C" >&6
  12140. else
  12141. am_save_LIBS="$LIBS"
  12142. if test $am_cv_lib_iconv = yes; then
  12143. LIBS="$LIBS $LIBICONV"
  12144. fi
  12145. if test "$cross_compiling" = yes; then
  12146. case "$host_os" in
  12147. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12148. *) am_cv_func_iconv_works="guessing yes" ;;
  12149. esac
  12150. else
  12151. cat >conftest.$ac_ext <<_ACEOF
  12152. /* confdefs.h. */
  12153. _ACEOF
  12154. cat confdefs.h >>conftest.$ac_ext
  12155. cat >>conftest.$ac_ext <<_ACEOF
  12156. /* end confdefs.h. */
  12157. #include <iconv.h>
  12158. #include <string.h>
  12159. int main ()
  12160. {
  12161. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12162. returns. */
  12163. {
  12164. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12165. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12166. {
  12167. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12168. char buf[10];
  12169. const char *inptr = input;
  12170. size_t inbytesleft = strlen (input);
  12171. char *outptr = buf;
  12172. size_t outbytesleft = sizeof (buf);
  12173. size_t res = iconv (cd_utf8_to_88591,
  12174. (char **) &inptr, &inbytesleft,
  12175. &outptr, &outbytesleft);
  12176. if (res == 0)
  12177. return 1;
  12178. }
  12179. }
  12180. #if 0 /* This bug could be worked around by the caller. */
  12181. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12182. {
  12183. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12184. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12185. {
  12186. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12187. char buf[50];
  12188. const char *inptr = input;
  12189. size_t inbytesleft = strlen (input);
  12190. char *outptr = buf;
  12191. size_t outbytesleft = sizeof (buf);
  12192. size_t res = iconv (cd_88591_to_utf8,
  12193. (char **) &inptr, &inbytesleft,
  12194. &outptr, &outbytesleft);
  12195. if ((int)res > 0)
  12196. return 1;
  12197. }
  12198. }
  12199. #endif
  12200. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12201. provided. */
  12202. if (/* Try standardized names. */
  12203. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12204. /* Try IRIX, OSF/1 names. */
  12205. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12206. /* Try AIX names. */
  12207. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12208. /* Try HP-UX names. */
  12209. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12210. return 1;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. rm -f conftest$ac_exeext
  12215. if { (ac_try="$ac_link"
  12216. case "(($ac_try" in
  12217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12218. *) ac_try_echo=$ac_try;;
  12219. esac
  12220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12221. (eval "$ac_link") 2>&5
  12222. ac_status=$?
  12223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12224. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12225. { (case "(($ac_try" in
  12226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12227. *) ac_try_echo=$ac_try;;
  12228. esac
  12229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12230. (eval "$ac_try") 2>&5
  12231. ac_status=$?
  12232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12233. (exit $ac_status); }; }; then
  12234. am_cv_func_iconv_works=yes
  12235. else
  12236. echo "$as_me: program exited with status $ac_status" >&5
  12237. echo "$as_me: failed program was:" >&5
  12238. sed 's/^/| /' conftest.$ac_ext >&5
  12239. ( exit $ac_status )
  12240. am_cv_func_iconv_works=no
  12241. fi
  12242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12243. fi
  12244. LIBS="$am_save_LIBS"
  12245. fi
  12246. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12247. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12248. case "$am_cv_func_iconv_works" in
  12249. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12250. *) am_func_iconv=yes ;;
  12251. esac
  12252. else
  12253. am_func_iconv=no am_cv_lib_iconv=no
  12254. fi
  12255. if test "$am_func_iconv" = yes; then
  12256. cat >>confdefs.h <<\_ACEOF
  12257. #define HAVE_ICONV 1
  12258. _ACEOF
  12259. fi
  12260. if test "$am_cv_lib_iconv" = yes; then
  12261. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12262. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12263. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12264. echo "${ECHO_T}$LIBICONV" >&6; }
  12265. else
  12266. CPPFLAGS="$am_save_CPPFLAGS"
  12267. LIBICONV=
  12268. LTLIBICONV=
  12269. fi
  12270. if test "$am_cv_func_iconv" = yes; then
  12271. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12272. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12273. if test "${am_cv_proto_iconv+set}" = set; then
  12274. echo $ECHO_N "(cached) $ECHO_C" >&6
  12275. else
  12276. cat >conftest.$ac_ext <<_ACEOF
  12277. /* confdefs.h. */
  12278. _ACEOF
  12279. cat confdefs.h >>conftest.$ac_ext
  12280. cat >>conftest.$ac_ext <<_ACEOF
  12281. /* end confdefs.h. */
  12282. #include <stdlib.h>
  12283. #include <iconv.h>
  12284. extern
  12285. #ifdef __cplusplus
  12286. "C"
  12287. #endif
  12288. #if defined(__STDC__) || defined(__cplusplus)
  12289. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12290. #else
  12291. size_t iconv();
  12292. #endif
  12293. int
  12294. main ()
  12295. {
  12296. ;
  12297. return 0;
  12298. }
  12299. _ACEOF
  12300. rm -f conftest.$ac_objext
  12301. if { (ac_try="$ac_compile"
  12302. case "(($ac_try" in
  12303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12304. *) ac_try_echo=$ac_try;;
  12305. esac
  12306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12307. (eval "$ac_compile") 2>conftest.er1
  12308. ac_status=$?
  12309. grep -v '^ *+' conftest.er1 >conftest.err
  12310. rm -f conftest.er1
  12311. cat conftest.err >&5
  12312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12313. (exit $ac_status); } && {
  12314. test -z "$ac_cxx_werror_flag" ||
  12315. test ! -s conftest.err
  12316. } && test -s conftest.$ac_objext; then
  12317. am_cv_proto_iconv_arg1=""
  12318. else
  12319. echo "$as_me: failed program was:" >&5
  12320. sed 's/^/| /' conftest.$ac_ext >&5
  12321. am_cv_proto_iconv_arg1="const"
  12322. fi
  12323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12324. 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);"
  12325. fi
  12326. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12327. { echo "$as_me:$LINENO: result: ${ac_t:-
  12328. }$am_cv_proto_iconv" >&5
  12329. echo "${ECHO_T}${ac_t:-
  12330. }$am_cv_proto_iconv" >&6; }
  12331. cat >>confdefs.h <<_ACEOF
  12332. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12333. _ACEOF
  12334. fi
  12335. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12336. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12337. if test "${gt_cv_nl_locale_name+set}" = set; then
  12338. echo $ECHO_N "(cached) $ECHO_C" >&6
  12339. else
  12340. cat >conftest.$ac_ext <<_ACEOF
  12341. /* confdefs.h. */
  12342. _ACEOF
  12343. cat confdefs.h >>conftest.$ac_ext
  12344. cat >>conftest.$ac_ext <<_ACEOF
  12345. /* end confdefs.h. */
  12346. #include <langinfo.h>
  12347. #include <locale.h>
  12348. int
  12349. main ()
  12350. {
  12351. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12352. return !cs;
  12353. ;
  12354. return 0;
  12355. }
  12356. _ACEOF
  12357. rm -f conftest.$ac_objext conftest$ac_exeext
  12358. if { (ac_try="$ac_link"
  12359. case "(($ac_try" in
  12360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12361. *) ac_try_echo=$ac_try;;
  12362. esac
  12363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12364. (eval "$ac_link") 2>conftest.er1
  12365. ac_status=$?
  12366. grep -v '^ *+' conftest.er1 >conftest.err
  12367. rm -f conftest.er1
  12368. cat conftest.err >&5
  12369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. (exit $ac_status); } && {
  12371. test -z "$ac_cxx_werror_flag" ||
  12372. test ! -s conftest.err
  12373. } && test -s conftest$ac_exeext &&
  12374. $as_test_x conftest$ac_exeext; then
  12375. gt_cv_nl_locale_name=yes
  12376. else
  12377. echo "$as_me: failed program was:" >&5
  12378. sed 's/^/| /' conftest.$ac_ext >&5
  12379. gt_cv_nl_locale_name=no
  12380. fi
  12381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12382. conftest$ac_exeext conftest.$ac_ext
  12383. fi
  12384. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12385. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12386. if test $gt_cv_nl_locale_name = yes; then
  12387. cat >>confdefs.h <<\_ACEOF
  12388. #define HAVE_NL_LOCALE_NAME 1
  12389. _ACEOF
  12390. fi
  12391. for ac_prog in bison
  12392. do
  12393. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12394. set dummy $ac_prog; ac_word=$2
  12395. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12396. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12397. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12398. echo $ECHO_N "(cached) $ECHO_C" >&6
  12399. else
  12400. if test -n "$INTLBISON"; then
  12401. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12402. else
  12403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12404. for as_dir in $PATH
  12405. do
  12406. IFS=$as_save_IFS
  12407. test -z "$as_dir" && as_dir=.
  12408. for ac_exec_ext in '' $ac_executable_extensions; do
  12409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12410. ac_cv_prog_INTLBISON="$ac_prog"
  12411. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12412. break 2
  12413. fi
  12414. done
  12415. done
  12416. IFS=$as_save_IFS
  12417. fi
  12418. fi
  12419. INTLBISON=$ac_cv_prog_INTLBISON
  12420. if test -n "$INTLBISON"; then
  12421. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12422. echo "${ECHO_T}$INTLBISON" >&6; }
  12423. else
  12424. { echo "$as_me:$LINENO: result: no" >&5
  12425. echo "${ECHO_T}no" >&6; }
  12426. fi
  12427. test -n "$INTLBISON" && break
  12428. done
  12429. if test -z "$INTLBISON"; then
  12430. ac_verc_fail=yes
  12431. else
  12432. { echo "$as_me:$LINENO: checking version of bison" >&5
  12433. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12434. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12435. case $ac_prog_version in
  12436. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12437. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12438. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12439. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12440. esac
  12441. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12442. echo "${ECHO_T}$ac_prog_version" >&6; }
  12443. fi
  12444. if test $ac_verc_fail = yes; then
  12445. INTLBISON=:
  12446. fi
  12447. { echo "$as_me:$LINENO: checking for long long int" >&5
  12448. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12449. if test "${ac_cv_type_long_long_int+set}" = set; then
  12450. echo $ECHO_N "(cached) $ECHO_C" >&6
  12451. else
  12452. cat >conftest.$ac_ext <<_ACEOF
  12453. /* confdefs.h. */
  12454. _ACEOF
  12455. cat confdefs.h >>conftest.$ac_ext
  12456. cat >>conftest.$ac_ext <<_ACEOF
  12457. /* end confdefs.h. */
  12458. /* Test preprocessor. */
  12459. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12460. error in preprocessor;
  12461. #endif
  12462. #if ! (18446744073709551615ULL <= -1ull)
  12463. error in preprocessor;
  12464. #endif
  12465. /* Test literals. */
  12466. long long int ll = 9223372036854775807ll;
  12467. long long int nll = -9223372036854775807LL;
  12468. unsigned long long int ull = 18446744073709551615ULL;
  12469. /* Test constant expressions. */
  12470. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12471. ? 1 : -1)];
  12472. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12473. ? 1 : -1)];
  12474. int i = 63;
  12475. int
  12476. main ()
  12477. {
  12478. /* Test availability of runtime routines for shift and division. */
  12479. long long int llmax = 9223372036854775807ll;
  12480. unsigned long long int ullmax = 18446744073709551615ull;
  12481. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12482. | (llmax / ll) | (llmax % ll)
  12483. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12484. | (ullmax / ull) | (ullmax % ull));
  12485. ;
  12486. return 0;
  12487. }
  12488. _ACEOF
  12489. rm -f conftest.$ac_objext conftest$ac_exeext
  12490. if { (ac_try="$ac_link"
  12491. case "(($ac_try" in
  12492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12493. *) ac_try_echo=$ac_try;;
  12494. esac
  12495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12496. (eval "$ac_link") 2>conftest.er1
  12497. ac_status=$?
  12498. grep -v '^ *+' conftest.er1 >conftest.err
  12499. rm -f conftest.er1
  12500. cat conftest.err >&5
  12501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12502. (exit $ac_status); } && {
  12503. test -z "$ac_cxx_werror_flag" ||
  12504. test ! -s conftest.err
  12505. } && test -s conftest$ac_exeext &&
  12506. $as_test_x conftest$ac_exeext; then
  12507. if test "$cross_compiling" = yes; then
  12508. ac_cv_type_long_long_int=yes
  12509. else
  12510. cat >conftest.$ac_ext <<_ACEOF
  12511. /* confdefs.h. */
  12512. _ACEOF
  12513. cat confdefs.h >>conftest.$ac_ext
  12514. cat >>conftest.$ac_ext <<_ACEOF
  12515. /* end confdefs.h. */
  12516. #include <limits.h>
  12517. #ifndef LLONG_MAX
  12518. # define HALF \
  12519. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12520. # define LLONG_MAX (HALF - 1 + HALF)
  12521. #endif
  12522. int
  12523. main ()
  12524. {
  12525. long long int n = 1;
  12526. int i;
  12527. for (i = 0; ; i++)
  12528. {
  12529. long long int m = n << i;
  12530. if (m >> i != n)
  12531. return 1;
  12532. if (LLONG_MAX / 2 < m)
  12533. break;
  12534. }
  12535. return 0;
  12536. ;
  12537. return 0;
  12538. }
  12539. _ACEOF
  12540. rm -f conftest$ac_exeext
  12541. if { (ac_try="$ac_link"
  12542. case "(($ac_try" in
  12543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12544. *) ac_try_echo=$ac_try;;
  12545. esac
  12546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12547. (eval "$ac_link") 2>&5
  12548. ac_status=$?
  12549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12550. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12551. { (case "(($ac_try" in
  12552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12553. *) ac_try_echo=$ac_try;;
  12554. esac
  12555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12556. (eval "$ac_try") 2>&5
  12557. ac_status=$?
  12558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12559. (exit $ac_status); }; }; then
  12560. ac_cv_type_long_long_int=yes
  12561. else
  12562. echo "$as_me: program exited with status $ac_status" >&5
  12563. echo "$as_me: failed program was:" >&5
  12564. sed 's/^/| /' conftest.$ac_ext >&5
  12565. ( exit $ac_status )
  12566. ac_cv_type_long_long_int=no
  12567. fi
  12568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12569. fi
  12570. else
  12571. echo "$as_me: failed program was:" >&5
  12572. sed 's/^/| /' conftest.$ac_ext >&5
  12573. ac_cv_type_long_long_int=no
  12574. fi
  12575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12576. conftest$ac_exeext conftest.$ac_ext
  12577. fi
  12578. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12579. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12580. if test $ac_cv_type_long_long_int = yes; then
  12581. cat >>confdefs.h <<\_ACEOF
  12582. #define HAVE_LONG_LONG_INT 1
  12583. _ACEOF
  12584. fi
  12585. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12586. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12587. if test "${gt_cv_c_wchar_t+set}" = set; then
  12588. echo $ECHO_N "(cached) $ECHO_C" >&6
  12589. else
  12590. cat >conftest.$ac_ext <<_ACEOF
  12591. /* confdefs.h. */
  12592. _ACEOF
  12593. cat confdefs.h >>conftest.$ac_ext
  12594. cat >>conftest.$ac_ext <<_ACEOF
  12595. /* end confdefs.h. */
  12596. #include <stddef.h>
  12597. wchar_t foo = (wchar_t)'\0';
  12598. int
  12599. main ()
  12600. {
  12601. ;
  12602. return 0;
  12603. }
  12604. _ACEOF
  12605. rm -f conftest.$ac_objext
  12606. if { (ac_try="$ac_compile"
  12607. case "(($ac_try" in
  12608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12609. *) ac_try_echo=$ac_try;;
  12610. esac
  12611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12612. (eval "$ac_compile") 2>conftest.er1
  12613. ac_status=$?
  12614. grep -v '^ *+' conftest.er1 >conftest.err
  12615. rm -f conftest.er1
  12616. cat conftest.err >&5
  12617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12618. (exit $ac_status); } && {
  12619. test -z "$ac_cxx_werror_flag" ||
  12620. test ! -s conftest.err
  12621. } && test -s conftest.$ac_objext; then
  12622. gt_cv_c_wchar_t=yes
  12623. else
  12624. echo "$as_me: failed program was:" >&5
  12625. sed 's/^/| /' conftest.$ac_ext >&5
  12626. gt_cv_c_wchar_t=no
  12627. fi
  12628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12629. fi
  12630. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12631. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12632. if test $gt_cv_c_wchar_t = yes; then
  12633. cat >>confdefs.h <<\_ACEOF
  12634. #define HAVE_WCHAR_T 1
  12635. _ACEOF
  12636. fi
  12637. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12638. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12639. if test "${gt_cv_c_wint_t+set}" = set; then
  12640. echo $ECHO_N "(cached) $ECHO_C" >&6
  12641. else
  12642. cat >conftest.$ac_ext <<_ACEOF
  12643. /* confdefs.h. */
  12644. _ACEOF
  12645. cat confdefs.h >>conftest.$ac_ext
  12646. cat >>conftest.$ac_ext <<_ACEOF
  12647. /* end confdefs.h. */
  12648. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12649. <wchar.h>.
  12650. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12651. before <wchar.h>. */
  12652. #include <stddef.h>
  12653. #include <stdio.h>
  12654. #include <time.h>
  12655. #include <wchar.h>
  12656. wint_t foo = (wchar_t)'\0';
  12657. int
  12658. main ()
  12659. {
  12660. ;
  12661. return 0;
  12662. }
  12663. _ACEOF
  12664. rm -f conftest.$ac_objext
  12665. if { (ac_try="$ac_compile"
  12666. case "(($ac_try" in
  12667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12668. *) ac_try_echo=$ac_try;;
  12669. esac
  12670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12671. (eval "$ac_compile") 2>conftest.er1
  12672. ac_status=$?
  12673. grep -v '^ *+' conftest.er1 >conftest.err
  12674. rm -f conftest.er1
  12675. cat conftest.err >&5
  12676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12677. (exit $ac_status); } && {
  12678. test -z "$ac_cxx_werror_flag" ||
  12679. test ! -s conftest.err
  12680. } && test -s conftest.$ac_objext; then
  12681. gt_cv_c_wint_t=yes
  12682. else
  12683. echo "$as_me: failed program was:" >&5
  12684. sed 's/^/| /' conftest.$ac_ext >&5
  12685. gt_cv_c_wint_t=no
  12686. fi
  12687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12688. fi
  12689. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12690. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12691. if test $gt_cv_c_wint_t = yes; then
  12692. cat >>confdefs.h <<\_ACEOF
  12693. #define HAVE_WINT_T 1
  12694. _ACEOF
  12695. fi
  12696. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12697. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12698. if test "${gt_cv_c_intmax_t+set}" = set; then
  12699. echo $ECHO_N "(cached) $ECHO_C" >&6
  12700. else
  12701. cat >conftest.$ac_ext <<_ACEOF
  12702. /* confdefs.h. */
  12703. _ACEOF
  12704. cat confdefs.h >>conftest.$ac_ext
  12705. cat >>conftest.$ac_ext <<_ACEOF
  12706. /* end confdefs.h. */
  12707. #include <stddef.h>
  12708. #include <stdlib.h>
  12709. #if HAVE_STDINT_H_WITH_UINTMAX
  12710. #include <stdint.h>
  12711. #endif
  12712. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12713. #include <inttypes.h>
  12714. #endif
  12715. int
  12716. main ()
  12717. {
  12718. intmax_t x = -1;
  12719. return !x;
  12720. ;
  12721. return 0;
  12722. }
  12723. _ACEOF
  12724. rm -f conftest.$ac_objext
  12725. if { (ac_try="$ac_compile"
  12726. case "(($ac_try" in
  12727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12728. *) ac_try_echo=$ac_try;;
  12729. esac
  12730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12731. (eval "$ac_compile") 2>conftest.er1
  12732. ac_status=$?
  12733. grep -v '^ *+' conftest.er1 >conftest.err
  12734. rm -f conftest.er1
  12735. cat conftest.err >&5
  12736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12737. (exit $ac_status); } && {
  12738. test -z "$ac_cxx_werror_flag" ||
  12739. test ! -s conftest.err
  12740. } && test -s conftest.$ac_objext; then
  12741. gt_cv_c_intmax_t=yes
  12742. else
  12743. echo "$as_me: failed program was:" >&5
  12744. sed 's/^/| /' conftest.$ac_ext >&5
  12745. gt_cv_c_intmax_t=no
  12746. fi
  12747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12748. fi
  12749. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12750. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12751. if test $gt_cv_c_intmax_t = yes; then
  12752. cat >>confdefs.h <<\_ACEOF
  12753. #define HAVE_INTMAX_T 1
  12754. _ACEOF
  12755. fi
  12756. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12757. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12758. if test "${gt_cv_func_printf_posix+set}" = set; then
  12759. echo $ECHO_N "(cached) $ECHO_C" >&6
  12760. else
  12761. if test "$cross_compiling" = yes; then
  12762. cat >conftest.$ac_ext <<_ACEOF
  12763. /* confdefs.h. */
  12764. _ACEOF
  12765. cat confdefs.h >>conftest.$ac_ext
  12766. cat >>conftest.$ac_ext <<_ACEOF
  12767. /* end confdefs.h. */
  12768. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12769. notposix
  12770. #endif
  12771. _ACEOF
  12772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12773. $EGREP "notposix" >/dev/null 2>&1; then
  12774. gt_cv_func_printf_posix="guessing no"
  12775. else
  12776. gt_cv_func_printf_posix="guessing yes"
  12777. fi
  12778. rm -f conftest*
  12779. else
  12780. cat >conftest.$ac_ext <<_ACEOF
  12781. /* confdefs.h. */
  12782. _ACEOF
  12783. cat confdefs.h >>conftest.$ac_ext
  12784. cat >>conftest.$ac_ext <<_ACEOF
  12785. /* end confdefs.h. */
  12786. #include <stdio.h>
  12787. #include <string.h>
  12788. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12789. dollar expansion (possibly an autoconf bug). */
  12790. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12791. static char buf[100];
  12792. int main ()
  12793. {
  12794. sprintf (buf, format, 33, 55);
  12795. return (strcmp (buf, "55 33") != 0);
  12796. }
  12797. _ACEOF
  12798. rm -f conftest$ac_exeext
  12799. if { (ac_try="$ac_link"
  12800. case "(($ac_try" in
  12801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12802. *) ac_try_echo=$ac_try;;
  12803. esac
  12804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12805. (eval "$ac_link") 2>&5
  12806. ac_status=$?
  12807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12808. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12809. { (case "(($ac_try" in
  12810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12811. *) ac_try_echo=$ac_try;;
  12812. esac
  12813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12814. (eval "$ac_try") 2>&5
  12815. ac_status=$?
  12816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12817. (exit $ac_status); }; }; then
  12818. gt_cv_func_printf_posix=yes
  12819. else
  12820. echo "$as_me: program exited with status $ac_status" >&5
  12821. echo "$as_me: failed program was:" >&5
  12822. sed 's/^/| /' conftest.$ac_ext >&5
  12823. ( exit $ac_status )
  12824. gt_cv_func_printf_posix=no
  12825. fi
  12826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12827. fi
  12828. fi
  12829. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12830. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12831. case $gt_cv_func_printf_posix in
  12832. *yes)
  12833. cat >>confdefs.h <<\_ACEOF
  12834. #define HAVE_POSIX_PRINTF 1
  12835. _ACEOF
  12836. ;;
  12837. esac
  12838. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  12839. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  12840. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  12841. echo $ECHO_N "(cached) $ECHO_C" >&6
  12842. else
  12843. cat >conftest.$ac_ext <<_ACEOF
  12844. /* confdefs.h. */
  12845. _ACEOF
  12846. cat confdefs.h >>conftest.$ac_ext
  12847. cat >>conftest.$ac_ext <<_ACEOF
  12848. /* end confdefs.h. */
  12849. #include <features.h>
  12850. #ifdef __GNU_LIBRARY__
  12851. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  12852. Lucky GNU user
  12853. #endif
  12854. #endif
  12855. _ACEOF
  12856. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12857. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  12858. ac_cv_gnu_library_2_1=yes
  12859. else
  12860. ac_cv_gnu_library_2_1=no
  12861. fi
  12862. rm -f conftest*
  12863. fi
  12864. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  12865. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  12866. GLIBC21="$ac_cv_gnu_library_2_1"
  12867. for ac_header in stdint.h
  12868. do
  12869. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12870. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12871. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12872. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12873. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12874. echo $ECHO_N "(cached) $ECHO_C" >&6
  12875. fi
  12876. ac_res=`eval echo '${'$as_ac_Header'}'`
  12877. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12878. echo "${ECHO_T}$ac_res" >&6; }
  12879. else
  12880. # Is the header compilable?
  12881. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12882. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12883. cat >conftest.$ac_ext <<_ACEOF
  12884. /* confdefs.h. */
  12885. _ACEOF
  12886. cat confdefs.h >>conftest.$ac_ext
  12887. cat >>conftest.$ac_ext <<_ACEOF
  12888. /* end confdefs.h. */
  12889. $ac_includes_default
  12890. #include <$ac_header>
  12891. _ACEOF
  12892. rm -f conftest.$ac_objext
  12893. if { (ac_try="$ac_compile"
  12894. case "(($ac_try" in
  12895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12896. *) ac_try_echo=$ac_try;;
  12897. esac
  12898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12899. (eval "$ac_compile") 2>conftest.er1
  12900. ac_status=$?
  12901. grep -v '^ *+' conftest.er1 >conftest.err
  12902. rm -f conftest.er1
  12903. cat conftest.err >&5
  12904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12905. (exit $ac_status); } && {
  12906. test -z "$ac_cxx_werror_flag" ||
  12907. test ! -s conftest.err
  12908. } && test -s conftest.$ac_objext; then
  12909. ac_header_compiler=yes
  12910. else
  12911. echo "$as_me: failed program was:" >&5
  12912. sed 's/^/| /' conftest.$ac_ext >&5
  12913. ac_header_compiler=no
  12914. fi
  12915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12916. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12917. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12918. # Is the header present?
  12919. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12920. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12921. cat >conftest.$ac_ext <<_ACEOF
  12922. /* confdefs.h. */
  12923. _ACEOF
  12924. cat confdefs.h >>conftest.$ac_ext
  12925. cat >>conftest.$ac_ext <<_ACEOF
  12926. /* end confdefs.h. */
  12927. #include <$ac_header>
  12928. _ACEOF
  12929. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12930. case "(($ac_try" in
  12931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12932. *) ac_try_echo=$ac_try;;
  12933. esac
  12934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12935. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12936. ac_status=$?
  12937. grep -v '^ *+' conftest.er1 >conftest.err
  12938. rm -f conftest.er1
  12939. cat conftest.err >&5
  12940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12941. (exit $ac_status); } >/dev/null && {
  12942. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12943. test ! -s conftest.err
  12944. }; then
  12945. ac_header_preproc=yes
  12946. else
  12947. echo "$as_me: failed program was:" >&5
  12948. sed 's/^/| /' conftest.$ac_ext >&5
  12949. ac_header_preproc=no
  12950. fi
  12951. rm -f conftest.err conftest.$ac_ext
  12952. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12953. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12954. # So? What about this header?
  12955. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12956. yes:no: )
  12957. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12958. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12959. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12960. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12961. ac_header_preproc=yes
  12962. ;;
  12963. no:yes:* )
  12964. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12965. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12966. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12967. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12968. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12969. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12970. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12971. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12972. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12973. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12974. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12975. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12976. ( cat <<\_ASBOX
  12977. ## ----------------------------------------------- ##
  12978. ## Report this to t-tujikawa@users.sourceforge.net ##
  12979. ## ----------------------------------------------- ##
  12980. _ASBOX
  12981. ) | sed "s/^/$as_me: WARNING: /" >&2
  12982. ;;
  12983. esac
  12984. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12985. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12986. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12987. echo $ECHO_N "(cached) $ECHO_C" >&6
  12988. else
  12989. eval "$as_ac_Header=\$ac_header_preproc"
  12990. fi
  12991. ac_res=`eval echo '${'$as_ac_Header'}'`
  12992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12993. echo "${ECHO_T}$ac_res" >&6; }
  12994. fi
  12995. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12996. cat >>confdefs.h <<_ACEOF
  12997. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12998. _ACEOF
  12999. fi
  13000. done
  13001. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13002. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13003. if test "${gl_cv_size_max+set}" = set; then
  13004. echo $ECHO_N "(cached) $ECHO_C" >&6
  13005. else
  13006. gl_cv_size_max=
  13007. cat >conftest.$ac_ext <<_ACEOF
  13008. /* confdefs.h. */
  13009. _ACEOF
  13010. cat confdefs.h >>conftest.$ac_ext
  13011. cat >>conftest.$ac_ext <<_ACEOF
  13012. /* end confdefs.h. */
  13013. #include <limits.h>
  13014. #if HAVE_STDINT_H
  13015. #include <stdint.h>
  13016. #endif
  13017. #ifdef SIZE_MAX
  13018. Found it
  13019. #endif
  13020. _ACEOF
  13021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13022. $EGREP "Found it" >/dev/null 2>&1; then
  13023. gl_cv_size_max=yes
  13024. fi
  13025. rm -f conftest*
  13026. if test -z "$gl_cv_size_max"; then
  13027. if test "$cross_compiling" = yes; then
  13028. # Depending upon the size, compute the lo and hi bounds.
  13029. cat >conftest.$ac_ext <<_ACEOF
  13030. /* confdefs.h. */
  13031. _ACEOF
  13032. cat confdefs.h >>conftest.$ac_ext
  13033. cat >>conftest.$ac_ext <<_ACEOF
  13034. /* end confdefs.h. */
  13035. #include <stddef.h>
  13036. #include <limits.h>
  13037. int
  13038. main ()
  13039. {
  13040. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13041. test_array [0] = 0
  13042. ;
  13043. return 0;
  13044. }
  13045. _ACEOF
  13046. rm -f conftest.$ac_objext
  13047. if { (ac_try="$ac_compile"
  13048. case "(($ac_try" in
  13049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13050. *) ac_try_echo=$ac_try;;
  13051. esac
  13052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13053. (eval "$ac_compile") 2>conftest.er1
  13054. ac_status=$?
  13055. grep -v '^ *+' conftest.er1 >conftest.err
  13056. rm -f conftest.er1
  13057. cat conftest.err >&5
  13058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13059. (exit $ac_status); } && {
  13060. test -z "$ac_cxx_werror_flag" ||
  13061. test ! -s conftest.err
  13062. } && test -s conftest.$ac_objext; then
  13063. ac_lo=0 ac_mid=0
  13064. while :; do
  13065. cat >conftest.$ac_ext <<_ACEOF
  13066. /* confdefs.h. */
  13067. _ACEOF
  13068. cat confdefs.h >>conftest.$ac_ext
  13069. cat >>conftest.$ac_ext <<_ACEOF
  13070. /* end confdefs.h. */
  13071. #include <stddef.h>
  13072. #include <limits.h>
  13073. int
  13074. main ()
  13075. {
  13076. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13077. test_array [0] = 0
  13078. ;
  13079. return 0;
  13080. }
  13081. _ACEOF
  13082. rm -f conftest.$ac_objext
  13083. if { (ac_try="$ac_compile"
  13084. case "(($ac_try" in
  13085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13086. *) ac_try_echo=$ac_try;;
  13087. esac
  13088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13089. (eval "$ac_compile") 2>conftest.er1
  13090. ac_status=$?
  13091. grep -v '^ *+' conftest.er1 >conftest.err
  13092. rm -f conftest.er1
  13093. cat conftest.err >&5
  13094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13095. (exit $ac_status); } && {
  13096. test -z "$ac_cxx_werror_flag" ||
  13097. test ! -s conftest.err
  13098. } && test -s conftest.$ac_objext; then
  13099. ac_hi=$ac_mid; break
  13100. else
  13101. echo "$as_me: failed program was:" >&5
  13102. sed 's/^/| /' conftest.$ac_ext >&5
  13103. ac_lo=`expr $ac_mid + 1`
  13104. if test $ac_lo -le $ac_mid; then
  13105. ac_lo= ac_hi=
  13106. break
  13107. fi
  13108. ac_mid=`expr 2 '*' $ac_mid + 1`
  13109. fi
  13110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13111. done
  13112. else
  13113. echo "$as_me: failed program was:" >&5
  13114. sed 's/^/| /' conftest.$ac_ext >&5
  13115. cat >conftest.$ac_ext <<_ACEOF
  13116. /* confdefs.h. */
  13117. _ACEOF
  13118. cat confdefs.h >>conftest.$ac_ext
  13119. cat >>conftest.$ac_ext <<_ACEOF
  13120. /* end confdefs.h. */
  13121. #include <stddef.h>
  13122. #include <limits.h>
  13123. int
  13124. main ()
  13125. {
  13126. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13127. test_array [0] = 0
  13128. ;
  13129. return 0;
  13130. }
  13131. _ACEOF
  13132. rm -f conftest.$ac_objext
  13133. if { (ac_try="$ac_compile"
  13134. case "(($ac_try" in
  13135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13136. *) ac_try_echo=$ac_try;;
  13137. esac
  13138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13139. (eval "$ac_compile") 2>conftest.er1
  13140. ac_status=$?
  13141. grep -v '^ *+' conftest.er1 >conftest.err
  13142. rm -f conftest.er1
  13143. cat conftest.err >&5
  13144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13145. (exit $ac_status); } && {
  13146. test -z "$ac_cxx_werror_flag" ||
  13147. test ! -s conftest.err
  13148. } && test -s conftest.$ac_objext; then
  13149. ac_hi=-1 ac_mid=-1
  13150. while :; do
  13151. cat >conftest.$ac_ext <<_ACEOF
  13152. /* confdefs.h. */
  13153. _ACEOF
  13154. cat confdefs.h >>conftest.$ac_ext
  13155. cat >>conftest.$ac_ext <<_ACEOF
  13156. /* end confdefs.h. */
  13157. #include <stddef.h>
  13158. #include <limits.h>
  13159. int
  13160. main ()
  13161. {
  13162. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13163. test_array [0] = 0
  13164. ;
  13165. return 0;
  13166. }
  13167. _ACEOF
  13168. rm -f conftest.$ac_objext
  13169. if { (ac_try="$ac_compile"
  13170. case "(($ac_try" in
  13171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13172. *) ac_try_echo=$ac_try;;
  13173. esac
  13174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13175. (eval "$ac_compile") 2>conftest.er1
  13176. ac_status=$?
  13177. grep -v '^ *+' conftest.er1 >conftest.err
  13178. rm -f conftest.er1
  13179. cat conftest.err >&5
  13180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13181. (exit $ac_status); } && {
  13182. test -z "$ac_cxx_werror_flag" ||
  13183. test ! -s conftest.err
  13184. } && test -s conftest.$ac_objext; then
  13185. ac_lo=$ac_mid; break
  13186. else
  13187. echo "$as_me: failed program was:" >&5
  13188. sed 's/^/| /' conftest.$ac_ext >&5
  13189. ac_hi=`expr '(' $ac_mid ')' - 1`
  13190. if test $ac_mid -le $ac_hi; then
  13191. ac_lo= ac_hi=
  13192. break
  13193. fi
  13194. ac_mid=`expr 2 '*' $ac_mid`
  13195. fi
  13196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13197. done
  13198. else
  13199. echo "$as_me: failed program was:" >&5
  13200. sed 's/^/| /' conftest.$ac_ext >&5
  13201. ac_lo= ac_hi=
  13202. fi
  13203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13204. fi
  13205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13206. # Binary search between lo and hi bounds.
  13207. while test "x$ac_lo" != "x$ac_hi"; do
  13208. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13209. cat >conftest.$ac_ext <<_ACEOF
  13210. /* confdefs.h. */
  13211. _ACEOF
  13212. cat confdefs.h >>conftest.$ac_ext
  13213. cat >>conftest.$ac_ext <<_ACEOF
  13214. /* end confdefs.h. */
  13215. #include <stddef.h>
  13216. #include <limits.h>
  13217. int
  13218. main ()
  13219. {
  13220. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13221. test_array [0] = 0
  13222. ;
  13223. return 0;
  13224. }
  13225. _ACEOF
  13226. rm -f conftest.$ac_objext
  13227. if { (ac_try="$ac_compile"
  13228. case "(($ac_try" in
  13229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13230. *) ac_try_echo=$ac_try;;
  13231. esac
  13232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13233. (eval "$ac_compile") 2>conftest.er1
  13234. ac_status=$?
  13235. grep -v '^ *+' conftest.er1 >conftest.err
  13236. rm -f conftest.er1
  13237. cat conftest.err >&5
  13238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13239. (exit $ac_status); } && {
  13240. test -z "$ac_cxx_werror_flag" ||
  13241. test ! -s conftest.err
  13242. } && test -s conftest.$ac_objext; then
  13243. ac_hi=$ac_mid
  13244. else
  13245. echo "$as_me: failed program was:" >&5
  13246. sed 's/^/| /' conftest.$ac_ext >&5
  13247. ac_lo=`expr '(' $ac_mid ')' + 1`
  13248. fi
  13249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13250. done
  13251. case $ac_lo in
  13252. ?*) size_t_bits_minus_1=$ac_lo;;
  13253. '') size_t_bits_minus_1= ;;
  13254. esac
  13255. else
  13256. cat >conftest.$ac_ext <<_ACEOF
  13257. /* confdefs.h. */
  13258. _ACEOF
  13259. cat confdefs.h >>conftest.$ac_ext
  13260. cat >>conftest.$ac_ext <<_ACEOF
  13261. /* end confdefs.h. */
  13262. #include <stddef.h>
  13263. #include <limits.h>
  13264. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13265. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13266. #include <stdio.h>
  13267. #include <stdlib.h>
  13268. int
  13269. main ()
  13270. {
  13271. FILE *f = fopen ("conftest.val", "w");
  13272. if (! f)
  13273. return 1;
  13274. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13275. {
  13276. long int i = longval ();
  13277. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13278. return 1;
  13279. fprintf (f, "%ld\n", i);
  13280. }
  13281. else
  13282. {
  13283. unsigned long int i = ulongval ();
  13284. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13285. return 1;
  13286. fprintf (f, "%lu\n", i);
  13287. }
  13288. return ferror (f) || fclose (f) != 0;
  13289. ;
  13290. return 0;
  13291. }
  13292. _ACEOF
  13293. rm -f conftest$ac_exeext
  13294. if { (ac_try="$ac_link"
  13295. case "(($ac_try" in
  13296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13297. *) ac_try_echo=$ac_try;;
  13298. esac
  13299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13300. (eval "$ac_link") 2>&5
  13301. ac_status=$?
  13302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13303. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13304. { (case "(($ac_try" in
  13305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13306. *) ac_try_echo=$ac_try;;
  13307. esac
  13308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13309. (eval "$ac_try") 2>&5
  13310. ac_status=$?
  13311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13312. (exit $ac_status); }; }; then
  13313. size_t_bits_minus_1=`cat conftest.val`
  13314. else
  13315. echo "$as_me: program exited with status $ac_status" >&5
  13316. echo "$as_me: failed program was:" >&5
  13317. sed 's/^/| /' conftest.$ac_ext >&5
  13318. ( exit $ac_status )
  13319. size_t_bits_minus_1=
  13320. fi
  13321. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13322. fi
  13323. rm -f conftest.val
  13324. if test "$cross_compiling" = yes; then
  13325. # Depending upon the size, compute the lo and hi bounds.
  13326. cat >conftest.$ac_ext <<_ACEOF
  13327. /* confdefs.h. */
  13328. _ACEOF
  13329. cat confdefs.h >>conftest.$ac_ext
  13330. cat >>conftest.$ac_ext <<_ACEOF
  13331. /* end confdefs.h. */
  13332. #include <stddef.h>
  13333. int
  13334. main ()
  13335. {
  13336. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13337. test_array [0] = 0
  13338. ;
  13339. return 0;
  13340. }
  13341. _ACEOF
  13342. rm -f conftest.$ac_objext
  13343. if { (ac_try="$ac_compile"
  13344. case "(($ac_try" in
  13345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13346. *) ac_try_echo=$ac_try;;
  13347. esac
  13348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13349. (eval "$ac_compile") 2>conftest.er1
  13350. ac_status=$?
  13351. grep -v '^ *+' conftest.er1 >conftest.err
  13352. rm -f conftest.er1
  13353. cat conftest.err >&5
  13354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13355. (exit $ac_status); } && {
  13356. test -z "$ac_cxx_werror_flag" ||
  13357. test ! -s conftest.err
  13358. } && test -s conftest.$ac_objext; then
  13359. ac_lo=0 ac_mid=0
  13360. while :; do
  13361. cat >conftest.$ac_ext <<_ACEOF
  13362. /* confdefs.h. */
  13363. _ACEOF
  13364. cat confdefs.h >>conftest.$ac_ext
  13365. cat >>conftest.$ac_ext <<_ACEOF
  13366. /* end confdefs.h. */
  13367. #include <stddef.h>
  13368. int
  13369. main ()
  13370. {
  13371. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13372. test_array [0] = 0
  13373. ;
  13374. return 0;
  13375. }
  13376. _ACEOF
  13377. rm -f conftest.$ac_objext
  13378. if { (ac_try="$ac_compile"
  13379. case "(($ac_try" in
  13380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13381. *) ac_try_echo=$ac_try;;
  13382. esac
  13383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13384. (eval "$ac_compile") 2>conftest.er1
  13385. ac_status=$?
  13386. grep -v '^ *+' conftest.er1 >conftest.err
  13387. rm -f conftest.er1
  13388. cat conftest.err >&5
  13389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13390. (exit $ac_status); } && {
  13391. test -z "$ac_cxx_werror_flag" ||
  13392. test ! -s conftest.err
  13393. } && test -s conftest.$ac_objext; then
  13394. ac_hi=$ac_mid; break
  13395. else
  13396. echo "$as_me: failed program was:" >&5
  13397. sed 's/^/| /' conftest.$ac_ext >&5
  13398. ac_lo=`expr $ac_mid + 1`
  13399. if test $ac_lo -le $ac_mid; then
  13400. ac_lo= ac_hi=
  13401. break
  13402. fi
  13403. ac_mid=`expr 2 '*' $ac_mid + 1`
  13404. fi
  13405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13406. done
  13407. else
  13408. echo "$as_me: failed program was:" >&5
  13409. sed 's/^/| /' conftest.$ac_ext >&5
  13410. cat >conftest.$ac_ext <<_ACEOF
  13411. /* confdefs.h. */
  13412. _ACEOF
  13413. cat confdefs.h >>conftest.$ac_ext
  13414. cat >>conftest.$ac_ext <<_ACEOF
  13415. /* end confdefs.h. */
  13416. #include <stddef.h>
  13417. int
  13418. main ()
  13419. {
  13420. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13421. test_array [0] = 0
  13422. ;
  13423. return 0;
  13424. }
  13425. _ACEOF
  13426. rm -f conftest.$ac_objext
  13427. if { (ac_try="$ac_compile"
  13428. case "(($ac_try" in
  13429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13430. *) ac_try_echo=$ac_try;;
  13431. esac
  13432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13433. (eval "$ac_compile") 2>conftest.er1
  13434. ac_status=$?
  13435. grep -v '^ *+' conftest.er1 >conftest.err
  13436. rm -f conftest.er1
  13437. cat conftest.err >&5
  13438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13439. (exit $ac_status); } && {
  13440. test -z "$ac_cxx_werror_flag" ||
  13441. test ! -s conftest.err
  13442. } && test -s conftest.$ac_objext; then
  13443. ac_hi=-1 ac_mid=-1
  13444. while :; do
  13445. cat >conftest.$ac_ext <<_ACEOF
  13446. /* confdefs.h. */
  13447. _ACEOF
  13448. cat confdefs.h >>conftest.$ac_ext
  13449. cat >>conftest.$ac_ext <<_ACEOF
  13450. /* end confdefs.h. */
  13451. #include <stddef.h>
  13452. int
  13453. main ()
  13454. {
  13455. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13456. test_array [0] = 0
  13457. ;
  13458. return 0;
  13459. }
  13460. _ACEOF
  13461. rm -f conftest.$ac_objext
  13462. if { (ac_try="$ac_compile"
  13463. case "(($ac_try" in
  13464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13465. *) ac_try_echo=$ac_try;;
  13466. esac
  13467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13468. (eval "$ac_compile") 2>conftest.er1
  13469. ac_status=$?
  13470. grep -v '^ *+' conftest.er1 >conftest.err
  13471. rm -f conftest.er1
  13472. cat conftest.err >&5
  13473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13474. (exit $ac_status); } && {
  13475. test -z "$ac_cxx_werror_flag" ||
  13476. test ! -s conftest.err
  13477. } && test -s conftest.$ac_objext; then
  13478. ac_lo=$ac_mid; break
  13479. else
  13480. echo "$as_me: failed program was:" >&5
  13481. sed 's/^/| /' conftest.$ac_ext >&5
  13482. ac_hi=`expr '(' $ac_mid ')' - 1`
  13483. if test $ac_mid -le $ac_hi; then
  13484. ac_lo= ac_hi=
  13485. break
  13486. fi
  13487. ac_mid=`expr 2 '*' $ac_mid`
  13488. fi
  13489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13490. done
  13491. else
  13492. echo "$as_me: failed program was:" >&5
  13493. sed 's/^/| /' conftest.$ac_ext >&5
  13494. ac_lo= ac_hi=
  13495. fi
  13496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13497. fi
  13498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13499. # Binary search between lo and hi bounds.
  13500. while test "x$ac_lo" != "x$ac_hi"; do
  13501. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13502. cat >conftest.$ac_ext <<_ACEOF
  13503. /* confdefs.h. */
  13504. _ACEOF
  13505. cat confdefs.h >>conftest.$ac_ext
  13506. cat >>conftest.$ac_ext <<_ACEOF
  13507. /* end confdefs.h. */
  13508. #include <stddef.h>
  13509. int
  13510. main ()
  13511. {
  13512. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13513. test_array [0] = 0
  13514. ;
  13515. return 0;
  13516. }
  13517. _ACEOF
  13518. rm -f conftest.$ac_objext
  13519. if { (ac_try="$ac_compile"
  13520. case "(($ac_try" in
  13521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13522. *) ac_try_echo=$ac_try;;
  13523. esac
  13524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13525. (eval "$ac_compile") 2>conftest.er1
  13526. ac_status=$?
  13527. grep -v '^ *+' conftest.er1 >conftest.err
  13528. rm -f conftest.er1
  13529. cat conftest.err >&5
  13530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13531. (exit $ac_status); } && {
  13532. test -z "$ac_cxx_werror_flag" ||
  13533. test ! -s conftest.err
  13534. } && test -s conftest.$ac_objext; then
  13535. ac_hi=$ac_mid
  13536. else
  13537. echo "$as_me: failed program was:" >&5
  13538. sed 's/^/| /' conftest.$ac_ext >&5
  13539. ac_lo=`expr '(' $ac_mid ')' + 1`
  13540. fi
  13541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13542. done
  13543. case $ac_lo in
  13544. ?*) fits_in_uint=$ac_lo;;
  13545. '') fits_in_uint= ;;
  13546. esac
  13547. else
  13548. cat >conftest.$ac_ext <<_ACEOF
  13549. /* confdefs.h. */
  13550. _ACEOF
  13551. cat confdefs.h >>conftest.$ac_ext
  13552. cat >>conftest.$ac_ext <<_ACEOF
  13553. /* end confdefs.h. */
  13554. #include <stddef.h>
  13555. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13556. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13557. #include <stdio.h>
  13558. #include <stdlib.h>
  13559. int
  13560. main ()
  13561. {
  13562. FILE *f = fopen ("conftest.val", "w");
  13563. if (! f)
  13564. return 1;
  13565. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13566. {
  13567. long int i = longval ();
  13568. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13569. return 1;
  13570. fprintf (f, "%ld\n", i);
  13571. }
  13572. else
  13573. {
  13574. unsigned long int i = ulongval ();
  13575. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13576. return 1;
  13577. fprintf (f, "%lu\n", i);
  13578. }
  13579. return ferror (f) || fclose (f) != 0;
  13580. ;
  13581. return 0;
  13582. }
  13583. _ACEOF
  13584. rm -f conftest$ac_exeext
  13585. if { (ac_try="$ac_link"
  13586. case "(($ac_try" in
  13587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13588. *) ac_try_echo=$ac_try;;
  13589. esac
  13590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13591. (eval "$ac_link") 2>&5
  13592. ac_status=$?
  13593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13594. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13595. { (case "(($ac_try" in
  13596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13597. *) ac_try_echo=$ac_try;;
  13598. esac
  13599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13600. (eval "$ac_try") 2>&5
  13601. ac_status=$?
  13602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13603. (exit $ac_status); }; }; then
  13604. fits_in_uint=`cat conftest.val`
  13605. else
  13606. echo "$as_me: program exited with status $ac_status" >&5
  13607. echo "$as_me: failed program was:" >&5
  13608. sed 's/^/| /' conftest.$ac_ext >&5
  13609. ( exit $ac_status )
  13610. fits_in_uint=
  13611. fi
  13612. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13613. fi
  13614. rm -f conftest.val
  13615. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13616. if test $fits_in_uint = 1; then
  13617. cat >conftest.$ac_ext <<_ACEOF
  13618. /* confdefs.h. */
  13619. _ACEOF
  13620. cat confdefs.h >>conftest.$ac_ext
  13621. cat >>conftest.$ac_ext <<_ACEOF
  13622. /* end confdefs.h. */
  13623. #include <stddef.h>
  13624. extern size_t foo;
  13625. extern unsigned long foo;
  13626. int
  13627. main ()
  13628. {
  13629. ;
  13630. return 0;
  13631. }
  13632. _ACEOF
  13633. rm -f conftest.$ac_objext
  13634. if { (ac_try="$ac_compile"
  13635. case "(($ac_try" in
  13636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13637. *) ac_try_echo=$ac_try;;
  13638. esac
  13639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13640. (eval "$ac_compile") 2>conftest.er1
  13641. ac_status=$?
  13642. grep -v '^ *+' conftest.er1 >conftest.err
  13643. rm -f conftest.er1
  13644. cat conftest.err >&5
  13645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13646. (exit $ac_status); } && {
  13647. test -z "$ac_cxx_werror_flag" ||
  13648. test ! -s conftest.err
  13649. } && test -s conftest.$ac_objext; then
  13650. fits_in_uint=0
  13651. else
  13652. echo "$as_me: failed program was:" >&5
  13653. sed 's/^/| /' conftest.$ac_ext >&5
  13654. fi
  13655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13656. fi
  13657. if test $fits_in_uint = 1; then
  13658. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13659. else
  13660. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13661. fi
  13662. else
  13663. gl_cv_size_max='((size_t)~(size_t)0)'
  13664. fi
  13665. fi
  13666. fi
  13667. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13668. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13669. if test "$gl_cv_size_max" != yes; then
  13670. cat >>confdefs.h <<_ACEOF
  13671. #define SIZE_MAX $gl_cv_size_max
  13672. _ACEOF
  13673. fi
  13674. for ac_header in stdint.h
  13675. do
  13676. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13677. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13678. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13679. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13680. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13681. echo $ECHO_N "(cached) $ECHO_C" >&6
  13682. fi
  13683. ac_res=`eval echo '${'$as_ac_Header'}'`
  13684. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13685. echo "${ECHO_T}$ac_res" >&6; }
  13686. else
  13687. # Is the header compilable?
  13688. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13689. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13690. cat >conftest.$ac_ext <<_ACEOF
  13691. /* confdefs.h. */
  13692. _ACEOF
  13693. cat confdefs.h >>conftest.$ac_ext
  13694. cat >>conftest.$ac_ext <<_ACEOF
  13695. /* end confdefs.h. */
  13696. $ac_includes_default
  13697. #include <$ac_header>
  13698. _ACEOF
  13699. rm -f conftest.$ac_objext
  13700. if { (ac_try="$ac_compile"
  13701. case "(($ac_try" in
  13702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13703. *) ac_try_echo=$ac_try;;
  13704. esac
  13705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13706. (eval "$ac_compile") 2>conftest.er1
  13707. ac_status=$?
  13708. grep -v '^ *+' conftest.er1 >conftest.err
  13709. rm -f conftest.er1
  13710. cat conftest.err >&5
  13711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13712. (exit $ac_status); } && {
  13713. test -z "$ac_cxx_werror_flag" ||
  13714. test ! -s conftest.err
  13715. } && test -s conftest.$ac_objext; then
  13716. ac_header_compiler=yes
  13717. else
  13718. echo "$as_me: failed program was:" >&5
  13719. sed 's/^/| /' conftest.$ac_ext >&5
  13720. ac_header_compiler=no
  13721. fi
  13722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13723. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13724. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13725. # Is the header present?
  13726. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13727. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13728. cat >conftest.$ac_ext <<_ACEOF
  13729. /* confdefs.h. */
  13730. _ACEOF
  13731. cat confdefs.h >>conftest.$ac_ext
  13732. cat >>conftest.$ac_ext <<_ACEOF
  13733. /* end confdefs.h. */
  13734. #include <$ac_header>
  13735. _ACEOF
  13736. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13737. case "(($ac_try" in
  13738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13739. *) ac_try_echo=$ac_try;;
  13740. esac
  13741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13743. ac_status=$?
  13744. grep -v '^ *+' conftest.er1 >conftest.err
  13745. rm -f conftest.er1
  13746. cat conftest.err >&5
  13747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13748. (exit $ac_status); } >/dev/null && {
  13749. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13750. test ! -s conftest.err
  13751. }; then
  13752. ac_header_preproc=yes
  13753. else
  13754. echo "$as_me: failed program was:" >&5
  13755. sed 's/^/| /' conftest.$ac_ext >&5
  13756. ac_header_preproc=no
  13757. fi
  13758. rm -f conftest.err conftest.$ac_ext
  13759. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13760. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13761. # So? What about this header?
  13762. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13763. yes:no: )
  13764. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13765. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13766. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13767. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13768. ac_header_preproc=yes
  13769. ;;
  13770. no:yes:* )
  13771. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13772. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13773. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13774. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13775. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13776. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13777. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13778. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13779. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13780. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13781. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13782. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13783. ( cat <<\_ASBOX
  13784. ## ----------------------------------------------- ##
  13785. ## Report this to t-tujikawa@users.sourceforge.net ##
  13786. ## ----------------------------------------------- ##
  13787. _ASBOX
  13788. ) | sed "s/^/$as_me: WARNING: /" >&2
  13789. ;;
  13790. esac
  13791. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13792. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13793. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13794. echo $ECHO_N "(cached) $ECHO_C" >&6
  13795. else
  13796. eval "$as_ac_Header=\$ac_header_preproc"
  13797. fi
  13798. ac_res=`eval echo '${'$as_ac_Header'}'`
  13799. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13800. echo "${ECHO_T}$ac_res" >&6; }
  13801. fi
  13802. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13803. cat >>confdefs.h <<_ACEOF
  13804. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13805. _ACEOF
  13806. fi
  13807. done
  13808. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13809. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13810. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13811. echo $ECHO_N "(cached) $ECHO_C" >&6
  13812. else
  13813. gt_save_LIBS="$LIBS"
  13814. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13815. cat >conftest.$ac_ext <<_ACEOF
  13816. /* confdefs.h. */
  13817. _ACEOF
  13818. cat confdefs.h >>conftest.$ac_ext
  13819. cat >>conftest.$ac_ext <<_ACEOF
  13820. /* end confdefs.h. */
  13821. #include <CoreFoundation/CFPreferences.h>
  13822. int
  13823. main ()
  13824. {
  13825. CFPreferencesCopyAppValue(NULL, NULL)
  13826. ;
  13827. return 0;
  13828. }
  13829. _ACEOF
  13830. rm -f conftest.$ac_objext conftest$ac_exeext
  13831. if { (ac_try="$ac_link"
  13832. case "(($ac_try" in
  13833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13834. *) ac_try_echo=$ac_try;;
  13835. esac
  13836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13837. (eval "$ac_link") 2>conftest.er1
  13838. ac_status=$?
  13839. grep -v '^ *+' conftest.er1 >conftest.err
  13840. rm -f conftest.er1
  13841. cat conftest.err >&5
  13842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13843. (exit $ac_status); } && {
  13844. test -z "$ac_cxx_werror_flag" ||
  13845. test ! -s conftest.err
  13846. } && test -s conftest$ac_exeext &&
  13847. $as_test_x conftest$ac_exeext; then
  13848. gt_cv_func_CFPreferencesCopyAppValue=yes
  13849. else
  13850. echo "$as_me: failed program was:" >&5
  13851. sed 's/^/| /' conftest.$ac_ext >&5
  13852. gt_cv_func_CFPreferencesCopyAppValue=no
  13853. fi
  13854. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13855. conftest$ac_exeext conftest.$ac_ext
  13856. LIBS="$gt_save_LIBS"
  13857. fi
  13858. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13859. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13860. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13861. cat >>confdefs.h <<\_ACEOF
  13862. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13863. _ACEOF
  13864. fi
  13865. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13866. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13867. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13868. echo $ECHO_N "(cached) $ECHO_C" >&6
  13869. else
  13870. gt_save_LIBS="$LIBS"
  13871. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13872. cat >conftest.$ac_ext <<_ACEOF
  13873. /* confdefs.h. */
  13874. _ACEOF
  13875. cat confdefs.h >>conftest.$ac_ext
  13876. cat >>conftest.$ac_ext <<_ACEOF
  13877. /* end confdefs.h. */
  13878. #include <CoreFoundation/CFLocale.h>
  13879. int
  13880. main ()
  13881. {
  13882. CFLocaleCopyCurrent();
  13883. ;
  13884. return 0;
  13885. }
  13886. _ACEOF
  13887. rm -f conftest.$ac_objext conftest$ac_exeext
  13888. if { (ac_try="$ac_link"
  13889. case "(($ac_try" in
  13890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13891. *) ac_try_echo=$ac_try;;
  13892. esac
  13893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13894. (eval "$ac_link") 2>conftest.er1
  13895. ac_status=$?
  13896. grep -v '^ *+' conftest.er1 >conftest.err
  13897. rm -f conftest.er1
  13898. cat conftest.err >&5
  13899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13900. (exit $ac_status); } && {
  13901. test -z "$ac_cxx_werror_flag" ||
  13902. test ! -s conftest.err
  13903. } && test -s conftest$ac_exeext &&
  13904. $as_test_x conftest$ac_exeext; then
  13905. gt_cv_func_CFLocaleCopyCurrent=yes
  13906. else
  13907. echo "$as_me: failed program was:" >&5
  13908. sed 's/^/| /' conftest.$ac_ext >&5
  13909. gt_cv_func_CFLocaleCopyCurrent=no
  13910. fi
  13911. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13912. conftest$ac_exeext conftest.$ac_ext
  13913. LIBS="$gt_save_LIBS"
  13914. fi
  13915. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13916. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13917. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13918. cat >>confdefs.h <<\_ACEOF
  13919. #define HAVE_CFLOCALECOPYCURRENT 1
  13920. _ACEOF
  13921. fi
  13922. INTL_MACOSX_LIBS=
  13923. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13924. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13925. fi
  13926. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  13927. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  13928. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  13929. echo $ECHO_N "(cached) $ECHO_C" >&6
  13930. else
  13931. cat >conftest.$ac_ext <<_ACEOF
  13932. /* confdefs.h. */
  13933. _ACEOF
  13934. cat confdefs.h >>conftest.$ac_ext
  13935. cat >>conftest.$ac_ext <<_ACEOF
  13936. /* end confdefs.h. */
  13937. $ac_includes_default
  13938. typedef ptrdiff_t ac__type_new_;
  13939. int
  13940. main ()
  13941. {
  13942. if ((ac__type_new_ *) 0)
  13943. return 0;
  13944. if (sizeof (ac__type_new_))
  13945. return 0;
  13946. ;
  13947. return 0;
  13948. }
  13949. _ACEOF
  13950. rm -f conftest.$ac_objext
  13951. if { (ac_try="$ac_compile"
  13952. case "(($ac_try" in
  13953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13954. *) ac_try_echo=$ac_try;;
  13955. esac
  13956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13957. (eval "$ac_compile") 2>conftest.er1
  13958. ac_status=$?
  13959. grep -v '^ *+' conftest.er1 >conftest.err
  13960. rm -f conftest.er1
  13961. cat conftest.err >&5
  13962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13963. (exit $ac_status); } && {
  13964. test -z "$ac_cxx_werror_flag" ||
  13965. test ! -s conftest.err
  13966. } && test -s conftest.$ac_objext; then
  13967. ac_cv_type_ptrdiff_t=yes
  13968. else
  13969. echo "$as_me: failed program was:" >&5
  13970. sed 's/^/| /' conftest.$ac_ext >&5
  13971. ac_cv_type_ptrdiff_t=no
  13972. fi
  13973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13974. fi
  13975. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  13976. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  13977. if test $ac_cv_type_ptrdiff_t = yes; then
  13978. :
  13979. else
  13980. cat >>confdefs.h <<\_ACEOF
  13981. #define ptrdiff_t long
  13982. _ACEOF
  13983. fi
  13984. for ac_header in stddef.h stdlib.h string.h
  13985. do
  13986. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13987. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13988. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13989. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13990. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13991. echo $ECHO_N "(cached) $ECHO_C" >&6
  13992. fi
  13993. ac_res=`eval echo '${'$as_ac_Header'}'`
  13994. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13995. echo "${ECHO_T}$ac_res" >&6; }
  13996. else
  13997. # Is the header compilable?
  13998. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13999. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14000. cat >conftest.$ac_ext <<_ACEOF
  14001. /* confdefs.h. */
  14002. _ACEOF
  14003. cat confdefs.h >>conftest.$ac_ext
  14004. cat >>conftest.$ac_ext <<_ACEOF
  14005. /* end confdefs.h. */
  14006. $ac_includes_default
  14007. #include <$ac_header>
  14008. _ACEOF
  14009. rm -f conftest.$ac_objext
  14010. if { (ac_try="$ac_compile"
  14011. case "(($ac_try" in
  14012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14013. *) ac_try_echo=$ac_try;;
  14014. esac
  14015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14016. (eval "$ac_compile") 2>conftest.er1
  14017. ac_status=$?
  14018. grep -v '^ *+' conftest.er1 >conftest.err
  14019. rm -f conftest.er1
  14020. cat conftest.err >&5
  14021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14022. (exit $ac_status); } && {
  14023. test -z "$ac_cxx_werror_flag" ||
  14024. test ! -s conftest.err
  14025. } && test -s conftest.$ac_objext; then
  14026. ac_header_compiler=yes
  14027. else
  14028. echo "$as_me: failed program was:" >&5
  14029. sed 's/^/| /' conftest.$ac_ext >&5
  14030. ac_header_compiler=no
  14031. fi
  14032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14033. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14034. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14035. # Is the header present?
  14036. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14037. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14038. cat >conftest.$ac_ext <<_ACEOF
  14039. /* confdefs.h. */
  14040. _ACEOF
  14041. cat confdefs.h >>conftest.$ac_ext
  14042. cat >>conftest.$ac_ext <<_ACEOF
  14043. /* end confdefs.h. */
  14044. #include <$ac_header>
  14045. _ACEOF
  14046. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14047. case "(($ac_try" in
  14048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14049. *) ac_try_echo=$ac_try;;
  14050. esac
  14051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14052. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14053. ac_status=$?
  14054. grep -v '^ *+' conftest.er1 >conftest.err
  14055. rm -f conftest.er1
  14056. cat conftest.err >&5
  14057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14058. (exit $ac_status); } >/dev/null && {
  14059. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14060. test ! -s conftest.err
  14061. }; then
  14062. ac_header_preproc=yes
  14063. else
  14064. echo "$as_me: failed program was:" >&5
  14065. sed 's/^/| /' conftest.$ac_ext >&5
  14066. ac_header_preproc=no
  14067. fi
  14068. rm -f conftest.err conftest.$ac_ext
  14069. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14070. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14071. # So? What about this header?
  14072. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14073. yes:no: )
  14074. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14075. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14076. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14077. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14078. ac_header_preproc=yes
  14079. ;;
  14080. no:yes:* )
  14081. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14082. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14083. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14084. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14085. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14086. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14087. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14088. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14090. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14091. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14092. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14093. ( cat <<\_ASBOX
  14094. ## ----------------------------------------------- ##
  14095. ## Report this to t-tujikawa@users.sourceforge.net ##
  14096. ## ----------------------------------------------- ##
  14097. _ASBOX
  14098. ) | sed "s/^/$as_me: WARNING: /" >&2
  14099. ;;
  14100. esac
  14101. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14102. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14103. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14104. echo $ECHO_N "(cached) $ECHO_C" >&6
  14105. else
  14106. eval "$as_ac_Header=\$ac_header_preproc"
  14107. fi
  14108. ac_res=`eval echo '${'$as_ac_Header'}'`
  14109. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14110. echo "${ECHO_T}$ac_res" >&6; }
  14111. fi
  14112. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14113. cat >>confdefs.h <<_ACEOF
  14114. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14115. _ACEOF
  14116. fi
  14117. done
  14118. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14119. do
  14120. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14121. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14122. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14123. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14124. echo $ECHO_N "(cached) $ECHO_C" >&6
  14125. else
  14126. cat >conftest.$ac_ext <<_ACEOF
  14127. /* confdefs.h. */
  14128. _ACEOF
  14129. cat confdefs.h >>conftest.$ac_ext
  14130. cat >>conftest.$ac_ext <<_ACEOF
  14131. /* end confdefs.h. */
  14132. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14134. #define $ac_func innocuous_$ac_func
  14135. /* System header to define __stub macros and hopefully few prototypes,
  14136. which can conflict with char $ac_func (); below.
  14137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14138. <limits.h> exists even on freestanding compilers. */
  14139. #ifdef __STDC__
  14140. # include <limits.h>
  14141. #else
  14142. # include <assert.h>
  14143. #endif
  14144. #undef $ac_func
  14145. /* Override any GCC internal prototype to avoid an error.
  14146. Use char because int might match the return type of a GCC
  14147. builtin and then its argument prototype would still apply. */
  14148. #ifdef __cplusplus
  14149. extern "C"
  14150. #endif
  14151. char $ac_func ();
  14152. /* The GNU C library defines this for functions which it implements
  14153. to always fail with ENOSYS. Some functions are actually named
  14154. something starting with __ and the normal name is an alias. */
  14155. #if defined __stub_$ac_func || defined __stub___$ac_func
  14156. choke me
  14157. #endif
  14158. int
  14159. main ()
  14160. {
  14161. return $ac_func ();
  14162. ;
  14163. return 0;
  14164. }
  14165. _ACEOF
  14166. rm -f conftest.$ac_objext conftest$ac_exeext
  14167. if { (ac_try="$ac_link"
  14168. case "(($ac_try" in
  14169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14170. *) ac_try_echo=$ac_try;;
  14171. esac
  14172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14173. (eval "$ac_link") 2>conftest.er1
  14174. ac_status=$?
  14175. grep -v '^ *+' conftest.er1 >conftest.err
  14176. rm -f conftest.er1
  14177. cat conftest.err >&5
  14178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14179. (exit $ac_status); } && {
  14180. test -z "$ac_cxx_werror_flag" ||
  14181. test ! -s conftest.err
  14182. } && test -s conftest$ac_exeext &&
  14183. $as_test_x conftest$ac_exeext; then
  14184. eval "$as_ac_var=yes"
  14185. else
  14186. echo "$as_me: failed program was:" >&5
  14187. sed 's/^/| /' conftest.$ac_ext >&5
  14188. eval "$as_ac_var=no"
  14189. fi
  14190. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14191. conftest$ac_exeext conftest.$ac_ext
  14192. fi
  14193. ac_res=`eval echo '${'$as_ac_var'}'`
  14194. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14195. echo "${ECHO_T}$ac_res" >&6; }
  14196. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14197. cat >>confdefs.h <<_ACEOF
  14198. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14199. _ACEOF
  14200. fi
  14201. done
  14202. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14203. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14204. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14205. echo $ECHO_N "(cached) $ECHO_C" >&6
  14206. else
  14207. cat >conftest.$ac_ext <<_ACEOF
  14208. /* confdefs.h. */
  14209. _ACEOF
  14210. cat confdefs.h >>conftest.$ac_ext
  14211. cat >>conftest.$ac_ext <<_ACEOF
  14212. /* end confdefs.h. */
  14213. #include <stdio.h>
  14214. int
  14215. main ()
  14216. {
  14217. #ifndef _snprintf
  14218. char *p = (char *) _snprintf;
  14219. #endif
  14220. ;
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. rm -f conftest.$ac_objext
  14225. if { (ac_try="$ac_compile"
  14226. case "(($ac_try" in
  14227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14228. *) ac_try_echo=$ac_try;;
  14229. esac
  14230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14231. (eval "$ac_compile") 2>conftest.er1
  14232. ac_status=$?
  14233. grep -v '^ *+' conftest.er1 >conftest.err
  14234. rm -f conftest.er1
  14235. cat conftest.err >&5
  14236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14237. (exit $ac_status); } && {
  14238. test -z "$ac_cxx_werror_flag" ||
  14239. test ! -s conftest.err
  14240. } && test -s conftest.$ac_objext; then
  14241. ac_cv_have_decl__snprintf=yes
  14242. else
  14243. echo "$as_me: failed program was:" >&5
  14244. sed 's/^/| /' conftest.$ac_ext >&5
  14245. ac_cv_have_decl__snprintf=no
  14246. fi
  14247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14248. fi
  14249. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14250. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14251. if test $ac_cv_have_decl__snprintf = yes; then
  14252. gt_value=1
  14253. else
  14254. gt_value=0
  14255. fi
  14256. cat >>confdefs.h <<_ACEOF
  14257. #define HAVE_DECL__SNPRINTF $gt_value
  14258. _ACEOF
  14259. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14260. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14261. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14262. echo $ECHO_N "(cached) $ECHO_C" >&6
  14263. else
  14264. cat >conftest.$ac_ext <<_ACEOF
  14265. /* confdefs.h. */
  14266. _ACEOF
  14267. cat confdefs.h >>conftest.$ac_ext
  14268. cat >>conftest.$ac_ext <<_ACEOF
  14269. /* end confdefs.h. */
  14270. #include <stdio.h>
  14271. int
  14272. main ()
  14273. {
  14274. #ifndef _snwprintf
  14275. char *p = (char *) _snwprintf;
  14276. #endif
  14277. ;
  14278. return 0;
  14279. }
  14280. _ACEOF
  14281. rm -f conftest.$ac_objext
  14282. if { (ac_try="$ac_compile"
  14283. case "(($ac_try" in
  14284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14285. *) ac_try_echo=$ac_try;;
  14286. esac
  14287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14288. (eval "$ac_compile") 2>conftest.er1
  14289. ac_status=$?
  14290. grep -v '^ *+' conftest.er1 >conftest.err
  14291. rm -f conftest.er1
  14292. cat conftest.err >&5
  14293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14294. (exit $ac_status); } && {
  14295. test -z "$ac_cxx_werror_flag" ||
  14296. test ! -s conftest.err
  14297. } && test -s conftest.$ac_objext; then
  14298. ac_cv_have_decl__snwprintf=yes
  14299. else
  14300. echo "$as_me: failed program was:" >&5
  14301. sed 's/^/| /' conftest.$ac_ext >&5
  14302. ac_cv_have_decl__snwprintf=no
  14303. fi
  14304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14305. fi
  14306. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14307. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14308. if test $ac_cv_have_decl__snwprintf = yes; then
  14309. gt_value=1
  14310. else
  14311. gt_value=0
  14312. fi
  14313. cat >>confdefs.h <<_ACEOF
  14314. #define HAVE_DECL__SNWPRINTF $gt_value
  14315. _ACEOF
  14316. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14317. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14318. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14319. echo $ECHO_N "(cached) $ECHO_C" >&6
  14320. else
  14321. cat >conftest.$ac_ext <<_ACEOF
  14322. /* confdefs.h. */
  14323. _ACEOF
  14324. cat confdefs.h >>conftest.$ac_ext
  14325. cat >>conftest.$ac_ext <<_ACEOF
  14326. /* end confdefs.h. */
  14327. #include <stdio.h>
  14328. int
  14329. main ()
  14330. {
  14331. #ifndef getc_unlocked
  14332. char *p = (char *) getc_unlocked;
  14333. #endif
  14334. ;
  14335. return 0;
  14336. }
  14337. _ACEOF
  14338. rm -f conftest.$ac_objext
  14339. if { (ac_try="$ac_compile"
  14340. case "(($ac_try" in
  14341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14342. *) ac_try_echo=$ac_try;;
  14343. esac
  14344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14345. (eval "$ac_compile") 2>conftest.er1
  14346. ac_status=$?
  14347. grep -v '^ *+' conftest.er1 >conftest.err
  14348. rm -f conftest.er1
  14349. cat conftest.err >&5
  14350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14351. (exit $ac_status); } && {
  14352. test -z "$ac_cxx_werror_flag" ||
  14353. test ! -s conftest.err
  14354. } && test -s conftest.$ac_objext; then
  14355. ac_cv_have_decl_getc_unlocked=yes
  14356. else
  14357. echo "$as_me: failed program was:" >&5
  14358. sed 's/^/| /' conftest.$ac_ext >&5
  14359. ac_cv_have_decl_getc_unlocked=no
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14362. fi
  14363. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14364. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14365. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14366. gt_value=1
  14367. else
  14368. gt_value=0
  14369. fi
  14370. cat >>confdefs.h <<_ACEOF
  14371. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14372. _ACEOF
  14373. case $gt_cv_func_printf_posix in
  14374. *yes) HAVE_POSIX_PRINTF=1 ;;
  14375. *) HAVE_POSIX_PRINTF=0 ;;
  14376. esac
  14377. if test "$ac_cv_func_asprintf" = yes; then
  14378. HAVE_ASPRINTF=1
  14379. else
  14380. HAVE_ASPRINTF=0
  14381. fi
  14382. if test "$ac_cv_func_snprintf" = yes; then
  14383. HAVE_SNPRINTF=1
  14384. else
  14385. HAVE_SNPRINTF=0
  14386. fi
  14387. if test "$ac_cv_func_wprintf" = yes; then
  14388. HAVE_WPRINTF=1
  14389. else
  14390. HAVE_WPRINTF=0
  14391. fi
  14392. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14393. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14394. if test "${am_cv_langinfo_codeset+set}" = set; then
  14395. echo $ECHO_N "(cached) $ECHO_C" >&6
  14396. else
  14397. cat >conftest.$ac_ext <<_ACEOF
  14398. /* confdefs.h. */
  14399. _ACEOF
  14400. cat confdefs.h >>conftest.$ac_ext
  14401. cat >>conftest.$ac_ext <<_ACEOF
  14402. /* end confdefs.h. */
  14403. #include <langinfo.h>
  14404. int
  14405. main ()
  14406. {
  14407. char* cs = nl_langinfo(CODESET); return !cs;
  14408. ;
  14409. return 0;
  14410. }
  14411. _ACEOF
  14412. rm -f conftest.$ac_objext conftest$ac_exeext
  14413. if { (ac_try="$ac_link"
  14414. case "(($ac_try" in
  14415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14416. *) ac_try_echo=$ac_try;;
  14417. esac
  14418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14419. (eval "$ac_link") 2>conftest.er1
  14420. ac_status=$?
  14421. grep -v '^ *+' conftest.er1 >conftest.err
  14422. rm -f conftest.er1
  14423. cat conftest.err >&5
  14424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14425. (exit $ac_status); } && {
  14426. test -z "$ac_cxx_werror_flag" ||
  14427. test ! -s conftest.err
  14428. } && test -s conftest$ac_exeext &&
  14429. $as_test_x conftest$ac_exeext; then
  14430. am_cv_langinfo_codeset=yes
  14431. else
  14432. echo "$as_me: failed program was:" >&5
  14433. sed 's/^/| /' conftest.$ac_ext >&5
  14434. am_cv_langinfo_codeset=no
  14435. fi
  14436. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14437. conftest$ac_exeext conftest.$ac_ext
  14438. fi
  14439. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14440. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14441. if test $am_cv_langinfo_codeset = yes; then
  14442. cat >>confdefs.h <<\_ACEOF
  14443. #define HAVE_LANGINFO_CODESET 1
  14444. _ACEOF
  14445. fi
  14446. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14447. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14448. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14449. echo $ECHO_N "(cached) $ECHO_C" >&6
  14450. else
  14451. cat >conftest.$ac_ext <<_ACEOF
  14452. /* confdefs.h. */
  14453. _ACEOF
  14454. cat confdefs.h >>conftest.$ac_ext
  14455. cat >>conftest.$ac_ext <<_ACEOF
  14456. /* end confdefs.h. */
  14457. #include <locale.h>
  14458. int
  14459. main ()
  14460. {
  14461. return LC_MESSAGES
  14462. ;
  14463. return 0;
  14464. }
  14465. _ACEOF
  14466. rm -f conftest.$ac_objext conftest$ac_exeext
  14467. if { (ac_try="$ac_link"
  14468. case "(($ac_try" in
  14469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14470. *) ac_try_echo=$ac_try;;
  14471. esac
  14472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14473. (eval "$ac_link") 2>conftest.er1
  14474. ac_status=$?
  14475. grep -v '^ *+' conftest.er1 >conftest.err
  14476. rm -f conftest.er1
  14477. cat conftest.err >&5
  14478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14479. (exit $ac_status); } && {
  14480. test -z "$ac_cxx_werror_flag" ||
  14481. test ! -s conftest.err
  14482. } && test -s conftest$ac_exeext &&
  14483. $as_test_x conftest$ac_exeext; then
  14484. gt_cv_val_LC_MESSAGES=yes
  14485. else
  14486. echo "$as_me: failed program was:" >&5
  14487. sed 's/^/| /' conftest.$ac_ext >&5
  14488. gt_cv_val_LC_MESSAGES=no
  14489. fi
  14490. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14491. conftest$ac_exeext conftest.$ac_ext
  14492. fi
  14493. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14494. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14495. if test $gt_cv_val_LC_MESSAGES = yes; then
  14496. cat >>confdefs.h <<\_ACEOF
  14497. #define HAVE_LC_MESSAGES 1
  14498. _ACEOF
  14499. fi
  14500. if test "$enable_shared" = yes; then
  14501. case "$host_os" in
  14502. mingw* | cygwin*) is_woe32dll=yes ;;
  14503. *) is_woe32dll=no ;;
  14504. esac
  14505. else
  14506. is_woe32dll=no
  14507. fi
  14508. WOE32DLL=$is_woe32dll
  14509. case "$host_os" in
  14510. mingw* | cygwin*) is_woe32=yes ;;
  14511. *) is_woe32=no ;;
  14512. esac
  14513. WOE32=$is_woe32
  14514. if test $WOE32 = yes; then
  14515. if test -n "$ac_tool_prefix"; then
  14516. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14517. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14518. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14520. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14521. echo $ECHO_N "(cached) $ECHO_C" >&6
  14522. else
  14523. if test -n "$WINDRES"; then
  14524. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14525. else
  14526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14527. for as_dir in $PATH
  14528. do
  14529. IFS=$as_save_IFS
  14530. test -z "$as_dir" && as_dir=.
  14531. for ac_exec_ext in '' $ac_executable_extensions; do
  14532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14533. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14535. break 2
  14536. fi
  14537. done
  14538. done
  14539. IFS=$as_save_IFS
  14540. fi
  14541. fi
  14542. WINDRES=$ac_cv_prog_WINDRES
  14543. if test -n "$WINDRES"; then
  14544. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14545. echo "${ECHO_T}$WINDRES" >&6; }
  14546. else
  14547. { echo "$as_me:$LINENO: result: no" >&5
  14548. echo "${ECHO_T}no" >&6; }
  14549. fi
  14550. fi
  14551. if test -z "$ac_cv_prog_WINDRES"; then
  14552. ac_ct_WINDRES=$WINDRES
  14553. # Extract the first word of "windres", so it can be a program name with args.
  14554. set dummy windres; ac_word=$2
  14555. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14557. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14558. echo $ECHO_N "(cached) $ECHO_C" >&6
  14559. else
  14560. if test -n "$ac_ct_WINDRES"; then
  14561. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14562. else
  14563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14564. for as_dir in $PATH
  14565. do
  14566. IFS=$as_save_IFS
  14567. test -z "$as_dir" && as_dir=.
  14568. for ac_exec_ext in '' $ac_executable_extensions; do
  14569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14570. ac_cv_prog_ac_ct_WINDRES="windres"
  14571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14572. break 2
  14573. fi
  14574. done
  14575. done
  14576. IFS=$as_save_IFS
  14577. fi
  14578. fi
  14579. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14580. if test -n "$ac_ct_WINDRES"; then
  14581. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14582. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14583. else
  14584. { echo "$as_me:$LINENO: result: no" >&5
  14585. echo "${ECHO_T}no" >&6; }
  14586. fi
  14587. if test "x$ac_ct_WINDRES" = x; then
  14588. WINDRES=""
  14589. else
  14590. case $cross_compiling:$ac_tool_warned in
  14591. yes:)
  14592. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14593. whose name does not start with the host triplet. If you think this
  14594. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14595. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14596. whose name does not start with the host triplet. If you think this
  14597. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14598. ac_tool_warned=yes ;;
  14599. esac
  14600. WINDRES=$ac_ct_WINDRES
  14601. fi
  14602. else
  14603. WINDRES="$ac_cv_prog_WINDRES"
  14604. fi
  14605. fi
  14606. case "$host_os" in
  14607. hpux*) LTLIBC="" ;;
  14608. *) LTLIBC="-lc" ;;
  14609. esac
  14610. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14611. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14612. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14613. echo $ECHO_N "(cached) $ECHO_C" >&6
  14614. else
  14615. gt_save_LIBS="$LIBS"
  14616. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14617. cat >conftest.$ac_ext <<_ACEOF
  14618. /* confdefs.h. */
  14619. _ACEOF
  14620. cat confdefs.h >>conftest.$ac_ext
  14621. cat >>conftest.$ac_ext <<_ACEOF
  14622. /* end confdefs.h. */
  14623. #include <CoreFoundation/CFPreferences.h>
  14624. int
  14625. main ()
  14626. {
  14627. CFPreferencesCopyAppValue(NULL, NULL)
  14628. ;
  14629. return 0;
  14630. }
  14631. _ACEOF
  14632. rm -f conftest.$ac_objext conftest$ac_exeext
  14633. if { (ac_try="$ac_link"
  14634. case "(($ac_try" in
  14635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14636. *) ac_try_echo=$ac_try;;
  14637. esac
  14638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14639. (eval "$ac_link") 2>conftest.er1
  14640. ac_status=$?
  14641. grep -v '^ *+' conftest.er1 >conftest.err
  14642. rm -f conftest.er1
  14643. cat conftest.err >&5
  14644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14645. (exit $ac_status); } && {
  14646. test -z "$ac_cxx_werror_flag" ||
  14647. test ! -s conftest.err
  14648. } && test -s conftest$ac_exeext &&
  14649. $as_test_x conftest$ac_exeext; then
  14650. gt_cv_func_CFPreferencesCopyAppValue=yes
  14651. else
  14652. echo "$as_me: failed program was:" >&5
  14653. sed 's/^/| /' conftest.$ac_ext >&5
  14654. gt_cv_func_CFPreferencesCopyAppValue=no
  14655. fi
  14656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14657. conftest$ac_exeext conftest.$ac_ext
  14658. LIBS="$gt_save_LIBS"
  14659. fi
  14660. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14661. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14662. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14663. cat >>confdefs.h <<\_ACEOF
  14664. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14665. _ACEOF
  14666. fi
  14667. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14668. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14669. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14670. echo $ECHO_N "(cached) $ECHO_C" >&6
  14671. else
  14672. gt_save_LIBS="$LIBS"
  14673. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14674. cat >conftest.$ac_ext <<_ACEOF
  14675. /* confdefs.h. */
  14676. _ACEOF
  14677. cat confdefs.h >>conftest.$ac_ext
  14678. cat >>conftest.$ac_ext <<_ACEOF
  14679. /* end confdefs.h. */
  14680. #include <CoreFoundation/CFLocale.h>
  14681. int
  14682. main ()
  14683. {
  14684. CFLocaleCopyCurrent();
  14685. ;
  14686. return 0;
  14687. }
  14688. _ACEOF
  14689. rm -f conftest.$ac_objext conftest$ac_exeext
  14690. if { (ac_try="$ac_link"
  14691. case "(($ac_try" in
  14692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14693. *) ac_try_echo=$ac_try;;
  14694. esac
  14695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14696. (eval "$ac_link") 2>conftest.er1
  14697. ac_status=$?
  14698. grep -v '^ *+' conftest.er1 >conftest.err
  14699. rm -f conftest.er1
  14700. cat conftest.err >&5
  14701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14702. (exit $ac_status); } && {
  14703. test -z "$ac_cxx_werror_flag" ||
  14704. test ! -s conftest.err
  14705. } && test -s conftest$ac_exeext &&
  14706. $as_test_x conftest$ac_exeext; then
  14707. gt_cv_func_CFLocaleCopyCurrent=yes
  14708. else
  14709. echo "$as_me: failed program was:" >&5
  14710. sed 's/^/| /' conftest.$ac_ext >&5
  14711. gt_cv_func_CFLocaleCopyCurrent=no
  14712. fi
  14713. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14714. conftest$ac_exeext conftest.$ac_ext
  14715. LIBS="$gt_save_LIBS"
  14716. fi
  14717. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14718. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14719. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14720. cat >>confdefs.h <<\_ACEOF
  14721. #define HAVE_CFLOCALECOPYCURRENT 1
  14722. _ACEOF
  14723. fi
  14724. INTL_MACOSX_LIBS=
  14725. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14726. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14727. fi
  14728. BUILD_INCLUDED_LIBINTL=no
  14729. USE_INCLUDED_LIBINTL=no
  14730. LIBINTL=
  14731. LTLIBINTL=
  14732. POSUB=
  14733. case " $gt_needs " in
  14734. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14735. *" need-ngettext "*) gt_api_version=2 ;;
  14736. *) gt_api_version=1 ;;
  14737. esac
  14738. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14739. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14740. if test "$USE_NLS" = "yes"; then
  14741. gt_use_preinstalled_gnugettext=no
  14742. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14743. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14744. # Check whether --with-included-gettext was given.
  14745. if test "${with_included_gettext+set}" = set; then
  14746. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14747. else
  14748. nls_cv_force_use_gnu_gettext=no
  14749. fi
  14750. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14751. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14752. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14753. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14754. if test $gt_api_version -ge 3; then
  14755. gt_revision_test_code='
  14756. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14757. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14758. #endif
  14759. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14760. '
  14761. else
  14762. gt_revision_test_code=
  14763. fi
  14764. if test $gt_api_version -ge 2; then
  14765. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14766. else
  14767. gt_expression_test_code=
  14768. fi
  14769. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14770. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14771. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14772. echo $ECHO_N "(cached) $ECHO_C" >&6
  14773. else
  14774. cat >conftest.$ac_ext <<_ACEOF
  14775. /* confdefs.h. */
  14776. _ACEOF
  14777. cat confdefs.h >>conftest.$ac_ext
  14778. cat >>conftest.$ac_ext <<_ACEOF
  14779. /* end confdefs.h. */
  14780. #include <libintl.h>
  14781. $gt_revision_test_code
  14782. extern int _nl_msg_cat_cntr;
  14783. extern int *_nl_domain_bindings;
  14784. int
  14785. main ()
  14786. {
  14787. bindtextdomain ("", "");
  14788. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14789. ;
  14790. return 0;
  14791. }
  14792. _ACEOF
  14793. rm -f conftest.$ac_objext conftest$ac_exeext
  14794. if { (ac_try="$ac_link"
  14795. case "(($ac_try" in
  14796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14797. *) ac_try_echo=$ac_try;;
  14798. esac
  14799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14800. (eval "$ac_link") 2>conftest.er1
  14801. ac_status=$?
  14802. grep -v '^ *+' conftest.er1 >conftest.err
  14803. rm -f conftest.er1
  14804. cat conftest.err >&5
  14805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14806. (exit $ac_status); } && {
  14807. test -z "$ac_cxx_werror_flag" ||
  14808. test ! -s conftest.err
  14809. } && test -s conftest$ac_exeext &&
  14810. $as_test_x conftest$ac_exeext; then
  14811. eval "$gt_func_gnugettext_libc=yes"
  14812. else
  14813. echo "$as_me: failed program was:" >&5
  14814. sed 's/^/| /' conftest.$ac_ext >&5
  14815. eval "$gt_func_gnugettext_libc=no"
  14816. fi
  14817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14818. conftest$ac_exeext conftest.$ac_ext
  14819. fi
  14820. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14821. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14822. echo "${ECHO_T}$ac_res" >&6; }
  14823. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14824. use_additional=yes
  14825. acl_save_prefix="$prefix"
  14826. prefix="$acl_final_prefix"
  14827. acl_save_exec_prefix="$exec_prefix"
  14828. exec_prefix="$acl_final_exec_prefix"
  14829. eval additional_includedir=\"$includedir\"
  14830. eval additional_libdir=\"$libdir\"
  14831. exec_prefix="$acl_save_exec_prefix"
  14832. prefix="$acl_save_prefix"
  14833. # Check whether --with-libintl-prefix was given.
  14834. if test "${with_libintl_prefix+set}" = set; then
  14835. withval=$with_libintl_prefix;
  14836. if test "X$withval" = "Xno"; then
  14837. use_additional=no
  14838. else
  14839. if test "X$withval" = "X"; then
  14840. acl_save_prefix="$prefix"
  14841. prefix="$acl_final_prefix"
  14842. acl_save_exec_prefix="$exec_prefix"
  14843. exec_prefix="$acl_final_exec_prefix"
  14844. eval additional_includedir=\"$includedir\"
  14845. eval additional_libdir=\"$libdir\"
  14846. exec_prefix="$acl_save_exec_prefix"
  14847. prefix="$acl_save_prefix"
  14848. else
  14849. additional_includedir="$withval/include"
  14850. additional_libdir="$withval/$acl_libdirstem"
  14851. fi
  14852. fi
  14853. fi
  14854. LIBINTL=
  14855. LTLIBINTL=
  14856. INCINTL=
  14857. LIBINTL_PREFIX=
  14858. rpathdirs=
  14859. ltrpathdirs=
  14860. names_already_handled=
  14861. names_next_round='intl '
  14862. while test -n "$names_next_round"; do
  14863. names_this_round="$names_next_round"
  14864. names_next_round=
  14865. for name in $names_this_round; do
  14866. already_handled=
  14867. for n in $names_already_handled; do
  14868. if test "$n" = "$name"; then
  14869. already_handled=yes
  14870. break
  14871. fi
  14872. done
  14873. if test -z "$already_handled"; then
  14874. names_already_handled="$names_already_handled $name"
  14875. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  14876. eval value=\"\$HAVE_LIB$uppername\"
  14877. if test -n "$value"; then
  14878. if test "$value" = yes; then
  14879. eval value=\"\$LIB$uppername\"
  14880. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  14881. eval value=\"\$LTLIB$uppername\"
  14882. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  14883. else
  14884. :
  14885. fi
  14886. else
  14887. found_dir=
  14888. found_la=
  14889. found_so=
  14890. found_a=
  14891. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  14892. if test -n "$acl_shlibext"; then
  14893. shrext=".$acl_shlibext" # typically: shrext=.so
  14894. else
  14895. shrext=
  14896. fi
  14897. if test $use_additional = yes; then
  14898. dir="$additional_libdir"
  14899. if test -n "$acl_shlibext"; then
  14900. if test -f "$dir/$libname$shrext"; then
  14901. found_dir="$dir"
  14902. found_so="$dir/$libname$shrext"
  14903. else
  14904. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14905. ver=`(cd "$dir" && \
  14906. for f in "$libname$shrext".*; do echo "$f"; done \
  14907. | sed -e "s,^$libname$shrext\\\\.,," \
  14908. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14909. | sed 1q ) 2>/dev/null`
  14910. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14911. found_dir="$dir"
  14912. found_so="$dir/$libname$shrext.$ver"
  14913. fi
  14914. else
  14915. eval library_names=\"$acl_library_names_spec\"
  14916. for f in $library_names; do
  14917. if test -f "$dir/$f"; then
  14918. found_dir="$dir"
  14919. found_so="$dir/$f"
  14920. break
  14921. fi
  14922. done
  14923. fi
  14924. fi
  14925. fi
  14926. if test "X$found_dir" = "X"; then
  14927. if test -f "$dir/$libname.$acl_libext"; then
  14928. found_dir="$dir"
  14929. found_a="$dir/$libname.$acl_libext"
  14930. fi
  14931. fi
  14932. if test "X$found_dir" != "X"; then
  14933. if test -f "$dir/$libname.la"; then
  14934. found_la="$dir/$libname.la"
  14935. fi
  14936. fi
  14937. fi
  14938. if test "X$found_dir" = "X"; then
  14939. for x in $LDFLAGS $LTLIBINTL; do
  14940. acl_save_prefix="$prefix"
  14941. prefix="$acl_final_prefix"
  14942. acl_save_exec_prefix="$exec_prefix"
  14943. exec_prefix="$acl_final_exec_prefix"
  14944. eval x=\"$x\"
  14945. exec_prefix="$acl_save_exec_prefix"
  14946. prefix="$acl_save_prefix"
  14947. case "$x" in
  14948. -L*)
  14949. dir=`echo "X$x" | sed -e 's/^X-L//'`
  14950. if test -n "$acl_shlibext"; then
  14951. if test -f "$dir/$libname$shrext"; then
  14952. found_dir="$dir"
  14953. found_so="$dir/$libname$shrext"
  14954. else
  14955. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14956. ver=`(cd "$dir" && \
  14957. for f in "$libname$shrext".*; do echo "$f"; done \
  14958. | sed -e "s,^$libname$shrext\\\\.,," \
  14959. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14960. | sed 1q ) 2>/dev/null`
  14961. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14962. found_dir="$dir"
  14963. found_so="$dir/$libname$shrext.$ver"
  14964. fi
  14965. else
  14966. eval library_names=\"$acl_library_names_spec\"
  14967. for f in $library_names; do
  14968. if test -f "$dir/$f"; then
  14969. found_dir="$dir"
  14970. found_so="$dir/$f"
  14971. break
  14972. fi
  14973. done
  14974. fi
  14975. fi
  14976. fi
  14977. if test "X$found_dir" = "X"; then
  14978. if test -f "$dir/$libname.$acl_libext"; then
  14979. found_dir="$dir"
  14980. found_a="$dir/$libname.$acl_libext"
  14981. fi
  14982. fi
  14983. if test "X$found_dir" != "X"; then
  14984. if test -f "$dir/$libname.la"; then
  14985. found_la="$dir/$libname.la"
  14986. fi
  14987. fi
  14988. ;;
  14989. esac
  14990. if test "X$found_dir" != "X"; then
  14991. break
  14992. fi
  14993. done
  14994. fi
  14995. if test "X$found_dir" != "X"; then
  14996. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  14997. if test "X$found_so" != "X"; then
  14998. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  14999. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15000. else
  15001. haveit=
  15002. for x in $ltrpathdirs; do
  15003. if test "X$x" = "X$found_dir"; then
  15004. haveit=yes
  15005. break
  15006. fi
  15007. done
  15008. if test -z "$haveit"; then
  15009. ltrpathdirs="$ltrpathdirs $found_dir"
  15010. fi
  15011. if test "$acl_hardcode_direct" = yes; then
  15012. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15013. else
  15014. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15015. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15016. haveit=
  15017. for x in $rpathdirs; do
  15018. if test "X$x" = "X$found_dir"; then
  15019. haveit=yes
  15020. break
  15021. fi
  15022. done
  15023. if test -z "$haveit"; then
  15024. rpathdirs="$rpathdirs $found_dir"
  15025. fi
  15026. else
  15027. haveit=
  15028. for x in $LDFLAGS $LIBINTL; do
  15029. acl_save_prefix="$prefix"
  15030. prefix="$acl_final_prefix"
  15031. acl_save_exec_prefix="$exec_prefix"
  15032. exec_prefix="$acl_final_exec_prefix"
  15033. eval x=\"$x\"
  15034. exec_prefix="$acl_save_exec_prefix"
  15035. prefix="$acl_save_prefix"
  15036. if test "X$x" = "X-L$found_dir"; then
  15037. haveit=yes
  15038. break
  15039. fi
  15040. done
  15041. if test -z "$haveit"; then
  15042. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15043. fi
  15044. if test "$acl_hardcode_minus_L" != no; then
  15045. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15046. else
  15047. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15048. fi
  15049. fi
  15050. fi
  15051. fi
  15052. else
  15053. if test "X$found_a" != "X"; then
  15054. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15055. else
  15056. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15057. fi
  15058. fi
  15059. additional_includedir=
  15060. case "$found_dir" in
  15061. */$acl_libdirstem | */$acl_libdirstem/)
  15062. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15063. LIBINTL_PREFIX="$basedir"
  15064. additional_includedir="$basedir/include"
  15065. ;;
  15066. esac
  15067. if test "X$additional_includedir" != "X"; then
  15068. if test "X$additional_includedir" != "X/usr/include"; then
  15069. haveit=
  15070. if test "X$additional_includedir" = "X/usr/local/include"; then
  15071. if test -n "$GCC"; then
  15072. case $host_os in
  15073. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15074. esac
  15075. fi
  15076. fi
  15077. if test -z "$haveit"; then
  15078. for x in $CPPFLAGS $INCINTL; do
  15079. acl_save_prefix="$prefix"
  15080. prefix="$acl_final_prefix"
  15081. acl_save_exec_prefix="$exec_prefix"
  15082. exec_prefix="$acl_final_exec_prefix"
  15083. eval x=\"$x\"
  15084. exec_prefix="$acl_save_exec_prefix"
  15085. prefix="$acl_save_prefix"
  15086. if test "X$x" = "X-I$additional_includedir"; then
  15087. haveit=yes
  15088. break
  15089. fi
  15090. done
  15091. if test -z "$haveit"; then
  15092. if test -d "$additional_includedir"; then
  15093. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15094. fi
  15095. fi
  15096. fi
  15097. fi
  15098. fi
  15099. if test -n "$found_la"; then
  15100. save_libdir="$libdir"
  15101. case "$found_la" in
  15102. */* | *\\*) . "$found_la" ;;
  15103. *) . "./$found_la" ;;
  15104. esac
  15105. libdir="$save_libdir"
  15106. for dep in $dependency_libs; do
  15107. case "$dep" in
  15108. -L*)
  15109. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15110. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15111. haveit=
  15112. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15113. if test -n "$GCC"; then
  15114. case $host_os in
  15115. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15116. esac
  15117. fi
  15118. fi
  15119. if test -z "$haveit"; then
  15120. haveit=
  15121. for x in $LDFLAGS $LIBINTL; do
  15122. acl_save_prefix="$prefix"
  15123. prefix="$acl_final_prefix"
  15124. acl_save_exec_prefix="$exec_prefix"
  15125. exec_prefix="$acl_final_exec_prefix"
  15126. eval x=\"$x\"
  15127. exec_prefix="$acl_save_exec_prefix"
  15128. prefix="$acl_save_prefix"
  15129. if test "X$x" = "X-L$additional_libdir"; then
  15130. haveit=yes
  15131. break
  15132. fi
  15133. done
  15134. if test -z "$haveit"; then
  15135. if test -d "$additional_libdir"; then
  15136. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15137. fi
  15138. fi
  15139. haveit=
  15140. for x in $LDFLAGS $LTLIBINTL; do
  15141. acl_save_prefix="$prefix"
  15142. prefix="$acl_final_prefix"
  15143. acl_save_exec_prefix="$exec_prefix"
  15144. exec_prefix="$acl_final_exec_prefix"
  15145. eval x=\"$x\"
  15146. exec_prefix="$acl_save_exec_prefix"
  15147. prefix="$acl_save_prefix"
  15148. if test "X$x" = "X-L$additional_libdir"; then
  15149. haveit=yes
  15150. break
  15151. fi
  15152. done
  15153. if test -z "$haveit"; then
  15154. if test -d "$additional_libdir"; then
  15155. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15156. fi
  15157. fi
  15158. fi
  15159. fi
  15160. ;;
  15161. -R*)
  15162. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15163. if test "$enable_rpath" != no; then
  15164. haveit=
  15165. for x in $rpathdirs; do
  15166. if test "X$x" = "X$dir"; then
  15167. haveit=yes
  15168. break
  15169. fi
  15170. done
  15171. if test -z "$haveit"; then
  15172. rpathdirs="$rpathdirs $dir"
  15173. fi
  15174. haveit=
  15175. for x in $ltrpathdirs; do
  15176. if test "X$x" = "X$dir"; then
  15177. haveit=yes
  15178. break
  15179. fi
  15180. done
  15181. if test -z "$haveit"; then
  15182. ltrpathdirs="$ltrpathdirs $dir"
  15183. fi
  15184. fi
  15185. ;;
  15186. -l*)
  15187. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15188. ;;
  15189. *.la)
  15190. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15191. ;;
  15192. *)
  15193. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15194. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15195. ;;
  15196. esac
  15197. done
  15198. fi
  15199. else
  15200. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15201. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15202. fi
  15203. fi
  15204. fi
  15205. done
  15206. done
  15207. if test "X$rpathdirs" != "X"; then
  15208. if test -n "$acl_hardcode_libdir_separator"; then
  15209. alldirs=
  15210. for found_dir in $rpathdirs; do
  15211. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15212. done
  15213. acl_save_libdir="$libdir"
  15214. libdir="$alldirs"
  15215. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15216. libdir="$acl_save_libdir"
  15217. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15218. else
  15219. for found_dir in $rpathdirs; do
  15220. acl_save_libdir="$libdir"
  15221. libdir="$found_dir"
  15222. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15223. libdir="$acl_save_libdir"
  15224. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15225. done
  15226. fi
  15227. fi
  15228. if test "X$ltrpathdirs" != "X"; then
  15229. for found_dir in $ltrpathdirs; do
  15230. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15231. done
  15232. fi
  15233. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15234. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15235. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15236. echo $ECHO_N "(cached) $ECHO_C" >&6
  15237. else
  15238. gt_save_CPPFLAGS="$CPPFLAGS"
  15239. CPPFLAGS="$CPPFLAGS $INCINTL"
  15240. gt_save_LIBS="$LIBS"
  15241. LIBS="$LIBS $LIBINTL"
  15242. cat >conftest.$ac_ext <<_ACEOF
  15243. /* confdefs.h. */
  15244. _ACEOF
  15245. cat confdefs.h >>conftest.$ac_ext
  15246. cat >>conftest.$ac_ext <<_ACEOF
  15247. /* end confdefs.h. */
  15248. #include <libintl.h>
  15249. $gt_revision_test_code
  15250. extern int _nl_msg_cat_cntr;
  15251. extern
  15252. #ifdef __cplusplus
  15253. "C"
  15254. #endif
  15255. const char *_nl_expand_alias (const char *);
  15256. int
  15257. main ()
  15258. {
  15259. bindtextdomain ("", "");
  15260. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15261. ;
  15262. return 0;
  15263. }
  15264. _ACEOF
  15265. rm -f conftest.$ac_objext conftest$ac_exeext
  15266. if { (ac_try="$ac_link"
  15267. case "(($ac_try" in
  15268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15269. *) ac_try_echo=$ac_try;;
  15270. esac
  15271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15272. (eval "$ac_link") 2>conftest.er1
  15273. ac_status=$?
  15274. grep -v '^ *+' conftest.er1 >conftest.err
  15275. rm -f conftest.er1
  15276. cat conftest.err >&5
  15277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15278. (exit $ac_status); } && {
  15279. test -z "$ac_cxx_werror_flag" ||
  15280. test ! -s conftest.err
  15281. } && test -s conftest$ac_exeext &&
  15282. $as_test_x conftest$ac_exeext; then
  15283. eval "$gt_func_gnugettext_libintl=yes"
  15284. else
  15285. echo "$as_me: failed program was:" >&5
  15286. sed 's/^/| /' conftest.$ac_ext >&5
  15287. eval "$gt_func_gnugettext_libintl=no"
  15288. fi
  15289. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15290. conftest$ac_exeext conftest.$ac_ext
  15291. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15292. LIBS="$LIBS $LIBICONV"
  15293. cat >conftest.$ac_ext <<_ACEOF
  15294. /* confdefs.h. */
  15295. _ACEOF
  15296. cat confdefs.h >>conftest.$ac_ext
  15297. cat >>conftest.$ac_ext <<_ACEOF
  15298. /* end confdefs.h. */
  15299. #include <libintl.h>
  15300. $gt_revision_test_code
  15301. extern int _nl_msg_cat_cntr;
  15302. extern
  15303. #ifdef __cplusplus
  15304. "C"
  15305. #endif
  15306. const char *_nl_expand_alias (const char *);
  15307. int
  15308. main ()
  15309. {
  15310. bindtextdomain ("", "");
  15311. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15312. ;
  15313. return 0;
  15314. }
  15315. _ACEOF
  15316. rm -f conftest.$ac_objext conftest$ac_exeext
  15317. if { (ac_try="$ac_link"
  15318. case "(($ac_try" in
  15319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15320. *) ac_try_echo=$ac_try;;
  15321. esac
  15322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15323. (eval "$ac_link") 2>conftest.er1
  15324. ac_status=$?
  15325. grep -v '^ *+' conftest.er1 >conftest.err
  15326. rm -f conftest.er1
  15327. cat conftest.err >&5
  15328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15329. (exit $ac_status); } && {
  15330. test -z "$ac_cxx_werror_flag" ||
  15331. test ! -s conftest.err
  15332. } && test -s conftest$ac_exeext &&
  15333. $as_test_x conftest$ac_exeext; then
  15334. LIBINTL="$LIBINTL $LIBICONV"
  15335. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15336. eval "$gt_func_gnugettext_libintl=yes"
  15337. else
  15338. echo "$as_me: failed program was:" >&5
  15339. sed 's/^/| /' conftest.$ac_ext >&5
  15340. fi
  15341. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15342. conftest$ac_exeext conftest.$ac_ext
  15343. fi
  15344. CPPFLAGS="$gt_save_CPPFLAGS"
  15345. LIBS="$gt_save_LIBS"
  15346. fi
  15347. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15348. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15349. echo "${ECHO_T}$ac_res" >&6; }
  15350. fi
  15351. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15352. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15353. && test "$PACKAGE" != gettext-runtime \
  15354. && test "$PACKAGE" != gettext-tools; }; then
  15355. gt_use_preinstalled_gnugettext=yes
  15356. else
  15357. LIBINTL=
  15358. LTLIBINTL=
  15359. INCINTL=
  15360. fi
  15361. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15362. nls_cv_use_gnu_gettext=yes
  15363. fi
  15364. fi
  15365. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15366. BUILD_INCLUDED_LIBINTL=yes
  15367. USE_INCLUDED_LIBINTL=yes
  15368. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15369. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15370. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15371. fi
  15372. CATOBJEXT=
  15373. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15374. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15375. CATOBJEXT=.gmo
  15376. fi
  15377. if test -n "$INTL_MACOSX_LIBS"; then
  15378. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15379. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15380. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15381. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15382. fi
  15383. fi
  15384. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15385. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15386. cat >>confdefs.h <<\_ACEOF
  15387. #define ENABLE_NLS 1
  15388. _ACEOF
  15389. else
  15390. USE_NLS=no
  15391. fi
  15392. fi
  15393. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15394. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15395. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15396. echo "${ECHO_T}$USE_NLS" >&6; }
  15397. if test "$USE_NLS" = "yes"; then
  15398. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15399. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15400. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15401. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15402. gt_source="external libintl"
  15403. else
  15404. gt_source="libc"
  15405. fi
  15406. else
  15407. gt_source="included intl directory"
  15408. fi
  15409. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15410. echo "${ECHO_T}$gt_source" >&6; }
  15411. fi
  15412. if test "$USE_NLS" = "yes"; then
  15413. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15414. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15415. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15416. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15417. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15418. echo "${ECHO_T}$LIBINTL" >&6; }
  15419. for element in $INCINTL; do
  15420. haveit=
  15421. for x in $CPPFLAGS; do
  15422. acl_save_prefix="$prefix"
  15423. prefix="$acl_final_prefix"
  15424. acl_save_exec_prefix="$exec_prefix"
  15425. exec_prefix="$acl_final_exec_prefix"
  15426. eval x=\"$x\"
  15427. exec_prefix="$acl_save_exec_prefix"
  15428. prefix="$acl_save_prefix"
  15429. if test "X$x" = "X$element"; then
  15430. haveit=yes
  15431. break
  15432. fi
  15433. done
  15434. if test -z "$haveit"; then
  15435. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15436. fi
  15437. done
  15438. fi
  15439. cat >>confdefs.h <<\_ACEOF
  15440. #define HAVE_GETTEXT 1
  15441. _ACEOF
  15442. cat >>confdefs.h <<\_ACEOF
  15443. #define HAVE_DCGETTEXT 1
  15444. _ACEOF
  15445. fi
  15446. POSUB=po
  15447. fi
  15448. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15449. BUILD_INCLUDED_LIBINTL=yes
  15450. fi
  15451. nls_cv_header_intl=
  15452. nls_cv_header_libgt=
  15453. DATADIRNAME=share
  15454. INSTOBJEXT=.mo
  15455. GENCAT=gencat
  15456. INTLOBJS=
  15457. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15458. INTLOBJS="\$(GETTOBJS)"
  15459. fi
  15460. INTL_LIBTOOL_SUFFIX_PREFIX=
  15461. INTLLIBS="$LIBINTL"
  15462. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15463. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15464. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15465. echo $ECHO_N "(cached) $ECHO_C" >&6
  15466. else
  15467. cat >conftest.$ac_ext <<_ACEOF
  15468. /* confdefs.h. */
  15469. _ACEOF
  15470. cat confdefs.h >>conftest.$ac_ext
  15471. cat >>conftest.$ac_ext <<_ACEOF
  15472. /* end confdefs.h. */
  15473. #include <error.h>
  15474. int
  15475. main ()
  15476. {
  15477. error_at_line (0, 0, "", 0, "an error occurred");
  15478. ;
  15479. return 0;
  15480. }
  15481. _ACEOF
  15482. rm -f conftest.$ac_objext conftest$ac_exeext
  15483. if { (ac_try="$ac_link"
  15484. case "(($ac_try" in
  15485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15486. *) ac_try_echo=$ac_try;;
  15487. esac
  15488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15489. (eval "$ac_link") 2>conftest.er1
  15490. ac_status=$?
  15491. grep -v '^ *+' conftest.er1 >conftest.err
  15492. rm -f conftest.er1
  15493. cat conftest.err >&5
  15494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15495. (exit $ac_status); } && {
  15496. test -z "$ac_cxx_werror_flag" ||
  15497. test ! -s conftest.err
  15498. } && test -s conftest$ac_exeext &&
  15499. $as_test_x conftest$ac_exeext; then
  15500. ac_cv_lib_error_at_line=yes
  15501. else
  15502. echo "$as_me: failed program was:" >&5
  15503. sed 's/^/| /' conftest.$ac_ext >&5
  15504. ac_cv_lib_error_at_line=no
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. fi
  15509. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15510. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15511. if test $ac_cv_lib_error_at_line = no; then
  15512. case " $LIBOBJS " in
  15513. *" error.$ac_objext "* ) ;;
  15514. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15515. ;;
  15516. esac
  15517. fi
  15518. if test $ac_cv_c_compiler_gnu = yes; then
  15519. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15520. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15521. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15522. echo $ECHO_N "(cached) $ECHO_C" >&6
  15523. else
  15524. ac_pattern="Autoconf.*'x'"
  15525. cat >conftest.$ac_ext <<_ACEOF
  15526. /* confdefs.h. */
  15527. _ACEOF
  15528. cat confdefs.h >>conftest.$ac_ext
  15529. cat >>conftest.$ac_ext <<_ACEOF
  15530. /* end confdefs.h. */
  15531. #include <sgtty.h>
  15532. Autoconf TIOCGETP
  15533. _ACEOF
  15534. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15535. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15536. ac_cv_prog_gcc_traditional=yes
  15537. else
  15538. ac_cv_prog_gcc_traditional=no
  15539. fi
  15540. rm -f conftest*
  15541. if test $ac_cv_prog_gcc_traditional = no; then
  15542. cat >conftest.$ac_ext <<_ACEOF
  15543. /* confdefs.h. */
  15544. _ACEOF
  15545. cat confdefs.h >>conftest.$ac_ext
  15546. cat >>conftest.$ac_ext <<_ACEOF
  15547. /* end confdefs.h. */
  15548. #include <termio.h>
  15549. Autoconf TCGETA
  15550. _ACEOF
  15551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15552. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15553. ac_cv_prog_gcc_traditional=yes
  15554. fi
  15555. rm -f conftest*
  15556. fi
  15557. fi
  15558. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15559. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15560. if test $ac_cv_prog_gcc_traditional = yes; then
  15561. CC="$CC -traditional"
  15562. fi
  15563. fi
  15564. case "$target" in
  15565. *mingw*)
  15566. ;;
  15567. *)
  15568. for ac_header in stdlib.h
  15569. do
  15570. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15571. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15572. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15573. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15574. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15575. echo $ECHO_N "(cached) $ECHO_C" >&6
  15576. fi
  15577. ac_res=`eval echo '${'$as_ac_Header'}'`
  15578. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15579. echo "${ECHO_T}$ac_res" >&6; }
  15580. else
  15581. # Is the header compilable?
  15582. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15583. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15584. cat >conftest.$ac_ext <<_ACEOF
  15585. /* confdefs.h. */
  15586. _ACEOF
  15587. cat confdefs.h >>conftest.$ac_ext
  15588. cat >>conftest.$ac_ext <<_ACEOF
  15589. /* end confdefs.h. */
  15590. $ac_includes_default
  15591. #include <$ac_header>
  15592. _ACEOF
  15593. rm -f conftest.$ac_objext
  15594. if { (ac_try="$ac_compile"
  15595. case "(($ac_try" in
  15596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15597. *) ac_try_echo=$ac_try;;
  15598. esac
  15599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15600. (eval "$ac_compile") 2>conftest.er1
  15601. ac_status=$?
  15602. grep -v '^ *+' conftest.er1 >conftest.err
  15603. rm -f conftest.er1
  15604. cat conftest.err >&5
  15605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15606. (exit $ac_status); } && {
  15607. test -z "$ac_cxx_werror_flag" ||
  15608. test ! -s conftest.err
  15609. } && test -s conftest.$ac_objext; then
  15610. ac_header_compiler=yes
  15611. else
  15612. echo "$as_me: failed program was:" >&5
  15613. sed 's/^/| /' conftest.$ac_ext >&5
  15614. ac_header_compiler=no
  15615. fi
  15616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15617. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15618. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15619. # Is the header present?
  15620. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15621. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15622. cat >conftest.$ac_ext <<_ACEOF
  15623. /* confdefs.h. */
  15624. _ACEOF
  15625. cat confdefs.h >>conftest.$ac_ext
  15626. cat >>conftest.$ac_ext <<_ACEOF
  15627. /* end confdefs.h. */
  15628. #include <$ac_header>
  15629. _ACEOF
  15630. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15631. case "(($ac_try" in
  15632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15633. *) ac_try_echo=$ac_try;;
  15634. esac
  15635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15636. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15637. ac_status=$?
  15638. grep -v '^ *+' conftest.er1 >conftest.err
  15639. rm -f conftest.er1
  15640. cat conftest.err >&5
  15641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15642. (exit $ac_status); } >/dev/null && {
  15643. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15644. test ! -s conftest.err
  15645. }; then
  15646. ac_header_preproc=yes
  15647. else
  15648. echo "$as_me: failed program was:" >&5
  15649. sed 's/^/| /' conftest.$ac_ext >&5
  15650. ac_header_preproc=no
  15651. fi
  15652. rm -f conftest.err conftest.$ac_ext
  15653. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15654. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15655. # So? What about this header?
  15656. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15657. yes:no: )
  15658. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15659. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15660. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15661. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15662. ac_header_preproc=yes
  15663. ;;
  15664. no:yes:* )
  15665. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15666. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15667. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15668. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15669. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15670. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15671. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15672. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15673. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15674. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15675. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15676. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15677. ( cat <<\_ASBOX
  15678. ## ----------------------------------------------- ##
  15679. ## Report this to t-tujikawa@users.sourceforge.net ##
  15680. ## ----------------------------------------------- ##
  15681. _ASBOX
  15682. ) | sed "s/^/$as_me: WARNING: /" >&2
  15683. ;;
  15684. esac
  15685. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15686. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15687. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15688. echo $ECHO_N "(cached) $ECHO_C" >&6
  15689. else
  15690. eval "$as_ac_Header=\$ac_header_preproc"
  15691. fi
  15692. ac_res=`eval echo '${'$as_ac_Header'}'`
  15693. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15694. echo "${ECHO_T}$ac_res" >&6; }
  15695. fi
  15696. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15697. cat >>confdefs.h <<_ACEOF
  15698. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15699. _ACEOF
  15700. fi
  15701. done
  15702. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15703. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15704. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15705. echo $ECHO_N "(cached) $ECHO_C" >&6
  15706. else
  15707. if test "$cross_compiling" = yes; then
  15708. ac_cv_func_malloc_0_nonnull=no
  15709. else
  15710. cat >conftest.$ac_ext <<_ACEOF
  15711. /* confdefs.h. */
  15712. _ACEOF
  15713. cat confdefs.h >>conftest.$ac_ext
  15714. cat >>conftest.$ac_ext <<_ACEOF
  15715. /* end confdefs.h. */
  15716. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15717. # include <stdlib.h>
  15718. #else
  15719. char *malloc ();
  15720. #endif
  15721. int
  15722. main ()
  15723. {
  15724. return ! malloc (0);
  15725. ;
  15726. return 0;
  15727. }
  15728. _ACEOF
  15729. rm -f conftest$ac_exeext
  15730. if { (ac_try="$ac_link"
  15731. case "(($ac_try" in
  15732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15733. *) ac_try_echo=$ac_try;;
  15734. esac
  15735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15736. (eval "$ac_link") 2>&5
  15737. ac_status=$?
  15738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15740. { (case "(($ac_try" in
  15741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15742. *) ac_try_echo=$ac_try;;
  15743. esac
  15744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15745. (eval "$ac_try") 2>&5
  15746. ac_status=$?
  15747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15748. (exit $ac_status); }; }; then
  15749. ac_cv_func_malloc_0_nonnull=yes
  15750. else
  15751. echo "$as_me: program exited with status $ac_status" >&5
  15752. echo "$as_me: failed program was:" >&5
  15753. sed 's/^/| /' conftest.$ac_ext >&5
  15754. ( exit $ac_status )
  15755. ac_cv_func_malloc_0_nonnull=no
  15756. fi
  15757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15758. fi
  15759. fi
  15760. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15761. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15762. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15763. cat >>confdefs.h <<\_ACEOF
  15764. #define HAVE_MALLOC 1
  15765. _ACEOF
  15766. else
  15767. cat >>confdefs.h <<\_ACEOF
  15768. #define HAVE_MALLOC 0
  15769. _ACEOF
  15770. case " $LIBOBJS " in
  15771. *" malloc.$ac_objext "* ) ;;
  15772. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15773. ;;
  15774. esac
  15775. cat >>confdefs.h <<\_ACEOF
  15776. #define malloc rpl_malloc
  15777. _ACEOF
  15778. fi
  15779. for ac_header in stdlib.h
  15780. do
  15781. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15782. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15783. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15784. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15785. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15786. echo $ECHO_N "(cached) $ECHO_C" >&6
  15787. fi
  15788. ac_res=`eval echo '${'$as_ac_Header'}'`
  15789. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15790. echo "${ECHO_T}$ac_res" >&6; }
  15791. else
  15792. # Is the header compilable?
  15793. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15794. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15795. cat >conftest.$ac_ext <<_ACEOF
  15796. /* confdefs.h. */
  15797. _ACEOF
  15798. cat confdefs.h >>conftest.$ac_ext
  15799. cat >>conftest.$ac_ext <<_ACEOF
  15800. /* end confdefs.h. */
  15801. $ac_includes_default
  15802. #include <$ac_header>
  15803. _ACEOF
  15804. rm -f conftest.$ac_objext
  15805. if { (ac_try="$ac_compile"
  15806. case "(($ac_try" in
  15807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15808. *) ac_try_echo=$ac_try;;
  15809. esac
  15810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15811. (eval "$ac_compile") 2>conftest.er1
  15812. ac_status=$?
  15813. grep -v '^ *+' conftest.er1 >conftest.err
  15814. rm -f conftest.er1
  15815. cat conftest.err >&5
  15816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15817. (exit $ac_status); } && {
  15818. test -z "$ac_cxx_werror_flag" ||
  15819. test ! -s conftest.err
  15820. } && test -s conftest.$ac_objext; then
  15821. ac_header_compiler=yes
  15822. else
  15823. echo "$as_me: failed program was:" >&5
  15824. sed 's/^/| /' conftest.$ac_ext >&5
  15825. ac_header_compiler=no
  15826. fi
  15827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15828. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15829. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15830. # Is the header present?
  15831. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15832. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15833. cat >conftest.$ac_ext <<_ACEOF
  15834. /* confdefs.h. */
  15835. _ACEOF
  15836. cat confdefs.h >>conftest.$ac_ext
  15837. cat >>conftest.$ac_ext <<_ACEOF
  15838. /* end confdefs.h. */
  15839. #include <$ac_header>
  15840. _ACEOF
  15841. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15842. case "(($ac_try" in
  15843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15844. *) ac_try_echo=$ac_try;;
  15845. esac
  15846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15848. ac_status=$?
  15849. grep -v '^ *+' conftest.er1 >conftest.err
  15850. rm -f conftest.er1
  15851. cat conftest.err >&5
  15852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15853. (exit $ac_status); } >/dev/null && {
  15854. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15855. test ! -s conftest.err
  15856. }; then
  15857. ac_header_preproc=yes
  15858. else
  15859. echo "$as_me: failed program was:" >&5
  15860. sed 's/^/| /' conftest.$ac_ext >&5
  15861. ac_header_preproc=no
  15862. fi
  15863. rm -f conftest.err conftest.$ac_ext
  15864. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15865. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15866. # So? What about this header?
  15867. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15868. yes:no: )
  15869. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15870. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15871. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15872. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15873. ac_header_preproc=yes
  15874. ;;
  15875. no:yes:* )
  15876. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15877. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15878. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15879. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15880. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15881. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15882. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15883. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15884. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15885. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15886. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15887. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15888. ( cat <<\_ASBOX
  15889. ## ----------------------------------------------- ##
  15890. ## Report this to t-tujikawa@users.sourceforge.net ##
  15891. ## ----------------------------------------------- ##
  15892. _ASBOX
  15893. ) | sed "s/^/$as_me: WARNING: /" >&2
  15894. ;;
  15895. esac
  15896. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15897. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15898. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15899. echo $ECHO_N "(cached) $ECHO_C" >&6
  15900. else
  15901. eval "$as_ac_Header=\$ac_header_preproc"
  15902. fi
  15903. ac_res=`eval echo '${'$as_ac_Header'}'`
  15904. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15905. echo "${ECHO_T}$ac_res" >&6; }
  15906. fi
  15907. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15908. cat >>confdefs.h <<_ACEOF
  15909. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15910. _ACEOF
  15911. fi
  15912. done
  15913. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  15914. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  15915. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  15916. echo $ECHO_N "(cached) $ECHO_C" >&6
  15917. else
  15918. if test "$cross_compiling" = yes; then
  15919. ac_cv_func_realloc_0_nonnull=no
  15920. else
  15921. cat >conftest.$ac_ext <<_ACEOF
  15922. /* confdefs.h. */
  15923. _ACEOF
  15924. cat confdefs.h >>conftest.$ac_ext
  15925. cat >>conftest.$ac_ext <<_ACEOF
  15926. /* end confdefs.h. */
  15927. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15928. # include <stdlib.h>
  15929. #else
  15930. char *realloc ();
  15931. #endif
  15932. int
  15933. main ()
  15934. {
  15935. return ! realloc (0, 0);
  15936. ;
  15937. return 0;
  15938. }
  15939. _ACEOF
  15940. rm -f conftest$ac_exeext
  15941. if { (ac_try="$ac_link"
  15942. case "(($ac_try" in
  15943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15944. *) ac_try_echo=$ac_try;;
  15945. esac
  15946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15947. (eval "$ac_link") 2>&5
  15948. ac_status=$?
  15949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15950. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15951. { (case "(($ac_try" in
  15952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15953. *) ac_try_echo=$ac_try;;
  15954. esac
  15955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15956. (eval "$ac_try") 2>&5
  15957. ac_status=$?
  15958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15959. (exit $ac_status); }; }; then
  15960. ac_cv_func_realloc_0_nonnull=yes
  15961. else
  15962. echo "$as_me: program exited with status $ac_status" >&5
  15963. echo "$as_me: failed program was:" >&5
  15964. sed 's/^/| /' conftest.$ac_ext >&5
  15965. ( exit $ac_status )
  15966. ac_cv_func_realloc_0_nonnull=no
  15967. fi
  15968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15969. fi
  15970. fi
  15971. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  15972. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  15973. if test $ac_cv_func_realloc_0_nonnull = yes; then
  15974. cat >>confdefs.h <<\_ACEOF
  15975. #define HAVE_REALLOC 1
  15976. _ACEOF
  15977. else
  15978. cat >>confdefs.h <<\_ACEOF
  15979. #define HAVE_REALLOC 0
  15980. _ACEOF
  15981. case " $LIBOBJS " in
  15982. *" realloc.$ac_objext "* ) ;;
  15983. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  15984. ;;
  15985. esac
  15986. cat >>confdefs.h <<\_ACEOF
  15987. #define realloc rpl_realloc
  15988. _ACEOF
  15989. fi
  15990. ;;
  15991. esac
  15992. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  15993. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  15994. if test "${ac_cv_func_memcmp_working+set}" = set; then
  15995. echo $ECHO_N "(cached) $ECHO_C" >&6
  15996. else
  15997. if test "$cross_compiling" = yes; then
  15998. ac_cv_func_memcmp_working=no
  15999. else
  16000. cat >conftest.$ac_ext <<_ACEOF
  16001. /* confdefs.h. */
  16002. _ACEOF
  16003. cat confdefs.h >>conftest.$ac_ext
  16004. cat >>conftest.$ac_ext <<_ACEOF
  16005. /* end confdefs.h. */
  16006. $ac_includes_default
  16007. int
  16008. main ()
  16009. {
  16010. /* Some versions of memcmp are not 8-bit clean. */
  16011. char c0 = '\100', c1 = '\200', c2 = '\201';
  16012. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16013. return 1;
  16014. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16015. or more and with at least one buffer not starting on a 4-byte boundary.
  16016. William Lewis provided this test program. */
  16017. {
  16018. char foo[21];
  16019. char bar[21];
  16020. int i;
  16021. for (i = 0; i < 4; i++)
  16022. {
  16023. char *a = foo + i;
  16024. char *b = bar + i;
  16025. strcpy (a, "--------01111111");
  16026. strcpy (b, "--------10000000");
  16027. if (memcmp (a, b, 16) >= 0)
  16028. return 1;
  16029. }
  16030. return 0;
  16031. }
  16032. ;
  16033. return 0;
  16034. }
  16035. _ACEOF
  16036. rm -f conftest$ac_exeext
  16037. if { (ac_try="$ac_link"
  16038. case "(($ac_try" in
  16039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16040. *) ac_try_echo=$ac_try;;
  16041. esac
  16042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16043. (eval "$ac_link") 2>&5
  16044. ac_status=$?
  16045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16046. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16047. { (case "(($ac_try" in
  16048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16049. *) ac_try_echo=$ac_try;;
  16050. esac
  16051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16052. (eval "$ac_try") 2>&5
  16053. ac_status=$?
  16054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16055. (exit $ac_status); }; }; then
  16056. ac_cv_func_memcmp_working=yes
  16057. else
  16058. echo "$as_me: program exited with status $ac_status" >&5
  16059. echo "$as_me: failed program was:" >&5
  16060. sed 's/^/| /' conftest.$ac_ext >&5
  16061. ( exit $ac_status )
  16062. ac_cv_func_memcmp_working=no
  16063. fi
  16064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16065. fi
  16066. fi
  16067. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16068. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16069. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16070. *" memcmp.$ac_objext "* ) ;;
  16071. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16072. ;;
  16073. esac
  16074. for ac_header in $ac_header_list
  16075. do
  16076. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16077. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16078. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16079. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16080. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16081. echo $ECHO_N "(cached) $ECHO_C" >&6
  16082. fi
  16083. ac_res=`eval echo '${'$as_ac_Header'}'`
  16084. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16085. echo "${ECHO_T}$ac_res" >&6; }
  16086. else
  16087. # Is the header compilable?
  16088. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16089. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16090. cat >conftest.$ac_ext <<_ACEOF
  16091. /* confdefs.h. */
  16092. _ACEOF
  16093. cat confdefs.h >>conftest.$ac_ext
  16094. cat >>conftest.$ac_ext <<_ACEOF
  16095. /* end confdefs.h. */
  16096. $ac_includes_default
  16097. #include <$ac_header>
  16098. _ACEOF
  16099. rm -f conftest.$ac_objext
  16100. if { (ac_try="$ac_compile"
  16101. case "(($ac_try" in
  16102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16103. *) ac_try_echo=$ac_try;;
  16104. esac
  16105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16106. (eval "$ac_compile") 2>conftest.er1
  16107. ac_status=$?
  16108. grep -v '^ *+' conftest.er1 >conftest.err
  16109. rm -f conftest.er1
  16110. cat conftest.err >&5
  16111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16112. (exit $ac_status); } && {
  16113. test -z "$ac_cxx_werror_flag" ||
  16114. test ! -s conftest.err
  16115. } && test -s conftest.$ac_objext; then
  16116. ac_header_compiler=yes
  16117. else
  16118. echo "$as_me: failed program was:" >&5
  16119. sed 's/^/| /' conftest.$ac_ext >&5
  16120. ac_header_compiler=no
  16121. fi
  16122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16123. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16124. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16125. # Is the header present?
  16126. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16127. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16128. cat >conftest.$ac_ext <<_ACEOF
  16129. /* confdefs.h. */
  16130. _ACEOF
  16131. cat confdefs.h >>conftest.$ac_ext
  16132. cat >>conftest.$ac_ext <<_ACEOF
  16133. /* end confdefs.h. */
  16134. #include <$ac_header>
  16135. _ACEOF
  16136. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16137. case "(($ac_try" in
  16138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16139. *) ac_try_echo=$ac_try;;
  16140. esac
  16141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16142. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16143. ac_status=$?
  16144. grep -v '^ *+' conftest.er1 >conftest.err
  16145. rm -f conftest.er1
  16146. cat conftest.err >&5
  16147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16148. (exit $ac_status); } >/dev/null && {
  16149. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16150. test ! -s conftest.err
  16151. }; then
  16152. ac_header_preproc=yes
  16153. else
  16154. echo "$as_me: failed program was:" >&5
  16155. sed 's/^/| /' conftest.$ac_ext >&5
  16156. ac_header_preproc=no
  16157. fi
  16158. rm -f conftest.err conftest.$ac_ext
  16159. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16160. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16161. # So? What about this header?
  16162. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16163. yes:no: )
  16164. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16165. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16167. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16168. ac_header_preproc=yes
  16169. ;;
  16170. no:yes:* )
  16171. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16172. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16173. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16174. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16175. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16176. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16177. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16178. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16179. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16180. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16181. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16182. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16183. ( cat <<\_ASBOX
  16184. ## ----------------------------------------------- ##
  16185. ## Report this to t-tujikawa@users.sourceforge.net ##
  16186. ## ----------------------------------------------- ##
  16187. _ASBOX
  16188. ) | sed "s/^/$as_me: WARNING: /" >&2
  16189. ;;
  16190. esac
  16191. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16192. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16193. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16194. echo $ECHO_N "(cached) $ECHO_C" >&6
  16195. else
  16196. eval "$as_ac_Header=\$ac_header_preproc"
  16197. fi
  16198. ac_res=`eval echo '${'$as_ac_Header'}'`
  16199. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16200. echo "${ECHO_T}$ac_res" >&6; }
  16201. fi
  16202. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16203. cat >>confdefs.h <<_ACEOF
  16204. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16205. _ACEOF
  16206. fi
  16207. done
  16208. for ac_func in $ac_func_list
  16209. do
  16210. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16211. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16212. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16213. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16214. echo $ECHO_N "(cached) $ECHO_C" >&6
  16215. else
  16216. cat >conftest.$ac_ext <<_ACEOF
  16217. /* confdefs.h. */
  16218. _ACEOF
  16219. cat confdefs.h >>conftest.$ac_ext
  16220. cat >>conftest.$ac_ext <<_ACEOF
  16221. /* end confdefs.h. */
  16222. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16223. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16224. #define $ac_func innocuous_$ac_func
  16225. /* System header to define __stub macros and hopefully few prototypes,
  16226. which can conflict with char $ac_func (); below.
  16227. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16228. <limits.h> exists even on freestanding compilers. */
  16229. #ifdef __STDC__
  16230. # include <limits.h>
  16231. #else
  16232. # include <assert.h>
  16233. #endif
  16234. #undef $ac_func
  16235. /* Override any GCC internal prototype to avoid an error.
  16236. Use char because int might match the return type of a GCC
  16237. builtin and then its argument prototype would still apply. */
  16238. #ifdef __cplusplus
  16239. extern "C"
  16240. #endif
  16241. char $ac_func ();
  16242. /* The GNU C library defines this for functions which it implements
  16243. to always fail with ENOSYS. Some functions are actually named
  16244. something starting with __ and the normal name is an alias. */
  16245. #if defined __stub_$ac_func || defined __stub___$ac_func
  16246. choke me
  16247. #endif
  16248. int
  16249. main ()
  16250. {
  16251. return $ac_func ();
  16252. ;
  16253. return 0;
  16254. }
  16255. _ACEOF
  16256. rm -f conftest.$ac_objext conftest$ac_exeext
  16257. if { (ac_try="$ac_link"
  16258. case "(($ac_try" in
  16259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16260. *) ac_try_echo=$ac_try;;
  16261. esac
  16262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16263. (eval "$ac_link") 2>conftest.er1
  16264. ac_status=$?
  16265. grep -v '^ *+' conftest.er1 >conftest.err
  16266. rm -f conftest.er1
  16267. cat conftest.err >&5
  16268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16269. (exit $ac_status); } && {
  16270. test -z "$ac_cxx_werror_flag" ||
  16271. test ! -s conftest.err
  16272. } && test -s conftest$ac_exeext &&
  16273. $as_test_x conftest$ac_exeext; then
  16274. eval "$as_ac_var=yes"
  16275. else
  16276. echo "$as_me: failed program was:" >&5
  16277. sed 's/^/| /' conftest.$ac_ext >&5
  16278. eval "$as_ac_var=no"
  16279. fi
  16280. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16281. conftest$ac_exeext conftest.$ac_ext
  16282. fi
  16283. ac_res=`eval echo '${'$as_ac_var'}'`
  16284. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16285. echo "${ECHO_T}$ac_res" >&6; }
  16286. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16287. cat >>confdefs.h <<_ACEOF
  16288. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16289. _ACEOF
  16290. fi
  16291. done
  16292. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16293. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16294. if test "${ac_cv_func_working_mktime+set}" = set; then
  16295. echo $ECHO_N "(cached) $ECHO_C" >&6
  16296. else
  16297. if test "$cross_compiling" = yes; then
  16298. ac_cv_func_working_mktime=no
  16299. else
  16300. cat >conftest.$ac_ext <<_ACEOF
  16301. /* confdefs.h. */
  16302. _ACEOF
  16303. cat confdefs.h >>conftest.$ac_ext
  16304. cat >>conftest.$ac_ext <<_ACEOF
  16305. /* end confdefs.h. */
  16306. /* Test program from Paul Eggert and Tony Leneis. */
  16307. #ifdef TIME_WITH_SYS_TIME
  16308. # include <sys/time.h>
  16309. # include <time.h>
  16310. #else
  16311. # ifdef HAVE_SYS_TIME_H
  16312. # include <sys/time.h>
  16313. # else
  16314. # include <time.h>
  16315. # endif
  16316. #endif
  16317. #include <stdlib.h>
  16318. #ifdef HAVE_UNISTD_H
  16319. # include <unistd.h>
  16320. #endif
  16321. #ifndef HAVE_ALARM
  16322. # define alarm(X) /* empty */
  16323. #endif
  16324. /* Work around redefinition to rpl_putenv by other config tests. */
  16325. #undef putenv
  16326. static time_t time_t_max;
  16327. static time_t time_t_min;
  16328. /* Values we'll use to set the TZ environment variable. */
  16329. static char *tz_strings[] = {
  16330. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16331. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16332. };
  16333. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16334. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16335. Based on a problem report from Andreas Jaeger. */
  16336. static int
  16337. spring_forward_gap ()
  16338. {
  16339. /* glibc (up to about 1998-10-07) failed this test. */
  16340. struct tm tm;
  16341. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16342. instead of "TZ=America/Vancouver" in order to detect the bug even
  16343. on systems that don't support the Olson extension, or don't have the
  16344. full zoneinfo tables installed. */
  16345. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16346. tm.tm_year = 98;
  16347. tm.tm_mon = 3;
  16348. tm.tm_mday = 5;
  16349. tm.tm_hour = 2;
  16350. tm.tm_min = 0;
  16351. tm.tm_sec = 0;
  16352. tm.tm_isdst = -1;
  16353. return mktime (&tm) != (time_t) -1;
  16354. }
  16355. static int
  16356. mktime_test1 (now)
  16357. time_t now;
  16358. {
  16359. struct tm *lt;
  16360. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16361. }
  16362. static int
  16363. mktime_test (now)
  16364. time_t now;
  16365. {
  16366. return (mktime_test1 (now)
  16367. && mktime_test1 ((time_t) (time_t_max - now))
  16368. && mktime_test1 ((time_t) (time_t_min + now)));
  16369. }
  16370. static int
  16371. irix_6_4_bug ()
  16372. {
  16373. /* Based on code from Ariel Faigon. */
  16374. struct tm tm;
  16375. tm.tm_year = 96;
  16376. tm.tm_mon = 3;
  16377. tm.tm_mday = 0;
  16378. tm.tm_hour = 0;
  16379. tm.tm_min = 0;
  16380. tm.tm_sec = 0;
  16381. tm.tm_isdst = -1;
  16382. mktime (&tm);
  16383. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16384. }
  16385. static int
  16386. bigtime_test (j)
  16387. int j;
  16388. {
  16389. struct tm tm;
  16390. time_t now;
  16391. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16392. now = mktime (&tm);
  16393. if (now != (time_t) -1)
  16394. {
  16395. struct tm *lt = localtime (&now);
  16396. if (! (lt
  16397. && lt->tm_year == tm.tm_year
  16398. && lt->tm_mon == tm.tm_mon
  16399. && lt->tm_mday == tm.tm_mday
  16400. && lt->tm_hour == tm.tm_hour
  16401. && lt->tm_min == tm.tm_min
  16402. && lt->tm_sec == tm.tm_sec
  16403. && lt->tm_yday == tm.tm_yday
  16404. && lt->tm_wday == tm.tm_wday
  16405. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16406. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16407. return 0;
  16408. }
  16409. return 1;
  16410. }
  16411. static int
  16412. year_2050_test ()
  16413. {
  16414. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16415. ignoring leap seconds. */
  16416. unsigned long int answer = 2527315200UL;
  16417. struct tm tm;
  16418. time_t t;
  16419. tm.tm_year = 2050 - 1900;
  16420. tm.tm_mon = 2 - 1;
  16421. tm.tm_mday = 1;
  16422. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16423. tm.tm_isdst = -1;
  16424. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16425. instead of "TZ=America/Vancouver" in order to detect the bug even
  16426. on systems that don't support the Olson extension, or don't have the
  16427. full zoneinfo tables installed. */
  16428. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16429. t = mktime (&tm);
  16430. /* Check that the result is either a failure, or close enough
  16431. to the correct answer that we can assume the discrepancy is
  16432. due to leap seconds. */
  16433. return (t == (time_t) -1
  16434. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16435. }
  16436. int
  16437. main ()
  16438. {
  16439. time_t t, delta;
  16440. int i, j;
  16441. /* This test makes some buggy mktime implementations loop.
  16442. Give up after 60 seconds; a mktime slower than that
  16443. isn't worth using anyway. */
  16444. alarm (60);
  16445. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  16446. continue;
  16447. time_t_max--;
  16448. if ((time_t) -1 < 0)
  16449. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  16450. continue;
  16451. delta = time_t_max / 997; /* a suitable prime number */
  16452. for (i = 0; i < N_STRINGS; i++)
  16453. {
  16454. if (tz_strings[i])
  16455. putenv (tz_strings[i]);
  16456. for (t = 0; t <= time_t_max - delta; t += delta)
  16457. if (! mktime_test (t))
  16458. return 1;
  16459. if (! (mktime_test ((time_t) 1)
  16460. && mktime_test ((time_t) (60 * 60))
  16461. && mktime_test ((time_t) (60 * 60 * 24))))
  16462. return 1;
  16463. for (j = 1; 0 < j; j *= 2)
  16464. if (! bigtime_test (j))
  16465. return 1;
  16466. if (! bigtime_test (j - 1))
  16467. return 1;
  16468. }
  16469. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16470. }
  16471. _ACEOF
  16472. rm -f conftest$ac_exeext
  16473. if { (ac_try="$ac_link"
  16474. case "(($ac_try" in
  16475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16476. *) ac_try_echo=$ac_try;;
  16477. esac
  16478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16479. (eval "$ac_link") 2>&5
  16480. ac_status=$?
  16481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16482. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16483. { (case "(($ac_try" in
  16484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16485. *) ac_try_echo=$ac_try;;
  16486. esac
  16487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16488. (eval "$ac_try") 2>&5
  16489. ac_status=$?
  16490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16491. (exit $ac_status); }; }; then
  16492. ac_cv_func_working_mktime=yes
  16493. else
  16494. echo "$as_me: program exited with status $ac_status" >&5
  16495. echo "$as_me: failed program was:" >&5
  16496. sed 's/^/| /' conftest.$ac_ext >&5
  16497. ( exit $ac_status )
  16498. ac_cv_func_working_mktime=no
  16499. fi
  16500. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16501. fi
  16502. fi
  16503. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16504. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16505. if test $ac_cv_func_working_mktime = no; then
  16506. case " $LIBOBJS " in
  16507. *" mktime.$ac_objext "* ) ;;
  16508. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16509. ;;
  16510. esac
  16511. fi
  16512. for ac_header in stdlib.h unistd.h
  16513. do
  16514. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16515. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16516. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16517. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16518. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16519. echo $ECHO_N "(cached) $ECHO_C" >&6
  16520. fi
  16521. ac_res=`eval echo '${'$as_ac_Header'}'`
  16522. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16523. echo "${ECHO_T}$ac_res" >&6; }
  16524. else
  16525. # Is the header compilable?
  16526. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16527. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16528. cat >conftest.$ac_ext <<_ACEOF
  16529. /* confdefs.h. */
  16530. _ACEOF
  16531. cat confdefs.h >>conftest.$ac_ext
  16532. cat >>conftest.$ac_ext <<_ACEOF
  16533. /* end confdefs.h. */
  16534. $ac_includes_default
  16535. #include <$ac_header>
  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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16544. (eval "$ac_compile") 2>conftest.er1
  16545. ac_status=$?
  16546. grep -v '^ *+' conftest.er1 >conftest.err
  16547. rm -f conftest.er1
  16548. cat conftest.err >&5
  16549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16550. (exit $ac_status); } && {
  16551. test -z "$ac_cxx_werror_flag" ||
  16552. test ! -s conftest.err
  16553. } && test -s conftest.$ac_objext; then
  16554. ac_header_compiler=yes
  16555. else
  16556. echo "$as_me: failed program was:" >&5
  16557. sed 's/^/| /' conftest.$ac_ext >&5
  16558. ac_header_compiler=no
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16561. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16562. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16563. # Is the header present?
  16564. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16565. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16566. cat >conftest.$ac_ext <<_ACEOF
  16567. /* confdefs.h. */
  16568. _ACEOF
  16569. cat confdefs.h >>conftest.$ac_ext
  16570. cat >>conftest.$ac_ext <<_ACEOF
  16571. /* end confdefs.h. */
  16572. #include <$ac_header>
  16573. _ACEOF
  16574. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16575. case "(($ac_try" in
  16576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16577. *) ac_try_echo=$ac_try;;
  16578. esac
  16579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16580. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16581. ac_status=$?
  16582. grep -v '^ *+' conftest.er1 >conftest.err
  16583. rm -f conftest.er1
  16584. cat conftest.err >&5
  16585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16586. (exit $ac_status); } >/dev/null && {
  16587. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16588. test ! -s conftest.err
  16589. }; then
  16590. ac_header_preproc=yes
  16591. else
  16592. echo "$as_me: failed program was:" >&5
  16593. sed 's/^/| /' conftest.$ac_ext >&5
  16594. ac_header_preproc=no
  16595. fi
  16596. rm -f conftest.err conftest.$ac_ext
  16597. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16598. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16599. # So? What about this header?
  16600. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16601. yes:no: )
  16602. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16603. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16604. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16605. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16606. ac_header_preproc=yes
  16607. ;;
  16608. no:yes:* )
  16609. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16610. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16611. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16612. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16613. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16614. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16615. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16616. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16617. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16618. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16619. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16620. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16621. ( cat <<\_ASBOX
  16622. ## ----------------------------------------------- ##
  16623. ## Report this to t-tujikawa@users.sourceforge.net ##
  16624. ## ----------------------------------------------- ##
  16625. _ASBOX
  16626. ) | sed "s/^/$as_me: WARNING: /" >&2
  16627. ;;
  16628. esac
  16629. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16630. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16631. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16632. echo $ECHO_N "(cached) $ECHO_C" >&6
  16633. else
  16634. eval "$as_ac_Header=\$ac_header_preproc"
  16635. fi
  16636. ac_res=`eval echo '${'$as_ac_Header'}'`
  16637. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16638. echo "${ECHO_T}$ac_res" >&6; }
  16639. fi
  16640. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16641. cat >>confdefs.h <<_ACEOF
  16642. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16643. _ACEOF
  16644. fi
  16645. done
  16646. for ac_func in getpagesize
  16647. do
  16648. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16649. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16650. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16651. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16652. echo $ECHO_N "(cached) $ECHO_C" >&6
  16653. else
  16654. cat >conftest.$ac_ext <<_ACEOF
  16655. /* confdefs.h. */
  16656. _ACEOF
  16657. cat confdefs.h >>conftest.$ac_ext
  16658. cat >>conftest.$ac_ext <<_ACEOF
  16659. /* end confdefs.h. */
  16660. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16661. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16662. #define $ac_func innocuous_$ac_func
  16663. /* System header to define __stub macros and hopefully few prototypes,
  16664. which can conflict with char $ac_func (); below.
  16665. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16666. <limits.h> exists even on freestanding compilers. */
  16667. #ifdef __STDC__
  16668. # include <limits.h>
  16669. #else
  16670. # include <assert.h>
  16671. #endif
  16672. #undef $ac_func
  16673. /* Override any GCC internal prototype to avoid an error.
  16674. Use char because int might match the return type of a GCC
  16675. builtin and then its argument prototype would still apply. */
  16676. #ifdef __cplusplus
  16677. extern "C"
  16678. #endif
  16679. char $ac_func ();
  16680. /* The GNU C library defines this for functions which it implements
  16681. to always fail with ENOSYS. Some functions are actually named
  16682. something starting with __ and the normal name is an alias. */
  16683. #if defined __stub_$ac_func || defined __stub___$ac_func
  16684. choke me
  16685. #endif
  16686. int
  16687. main ()
  16688. {
  16689. return $ac_func ();
  16690. ;
  16691. return 0;
  16692. }
  16693. _ACEOF
  16694. rm -f conftest.$ac_objext conftest$ac_exeext
  16695. if { (ac_try="$ac_link"
  16696. case "(($ac_try" in
  16697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16698. *) ac_try_echo=$ac_try;;
  16699. esac
  16700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16701. (eval "$ac_link") 2>conftest.er1
  16702. ac_status=$?
  16703. grep -v '^ *+' conftest.er1 >conftest.err
  16704. rm -f conftest.er1
  16705. cat conftest.err >&5
  16706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16707. (exit $ac_status); } && {
  16708. test -z "$ac_cxx_werror_flag" ||
  16709. test ! -s conftest.err
  16710. } && test -s conftest$ac_exeext &&
  16711. $as_test_x conftest$ac_exeext; then
  16712. eval "$as_ac_var=yes"
  16713. else
  16714. echo "$as_me: failed program was:" >&5
  16715. sed 's/^/| /' conftest.$ac_ext >&5
  16716. eval "$as_ac_var=no"
  16717. fi
  16718. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16719. conftest$ac_exeext conftest.$ac_ext
  16720. fi
  16721. ac_res=`eval echo '${'$as_ac_var'}'`
  16722. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16723. echo "${ECHO_T}$ac_res" >&6; }
  16724. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16725. cat >>confdefs.h <<_ACEOF
  16726. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16727. _ACEOF
  16728. fi
  16729. done
  16730. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16731. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16732. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16733. echo $ECHO_N "(cached) $ECHO_C" >&6
  16734. else
  16735. if test "$cross_compiling" = yes; then
  16736. ac_cv_func_mmap_fixed_mapped=no
  16737. else
  16738. cat >conftest.$ac_ext <<_ACEOF
  16739. /* confdefs.h. */
  16740. _ACEOF
  16741. cat confdefs.h >>conftest.$ac_ext
  16742. cat >>conftest.$ac_ext <<_ACEOF
  16743. /* end confdefs.h. */
  16744. $ac_includes_default
  16745. /* malloc might have been renamed as rpl_malloc. */
  16746. #undef malloc
  16747. /* Thanks to Mike Haertel and Jim Avera for this test.
  16748. Here is a matrix of mmap possibilities:
  16749. mmap private not fixed
  16750. mmap private fixed at somewhere currently unmapped
  16751. mmap private fixed at somewhere already mapped
  16752. mmap shared not fixed
  16753. mmap shared fixed at somewhere currently unmapped
  16754. mmap shared fixed at somewhere already mapped
  16755. For private mappings, we should verify that changes cannot be read()
  16756. back from the file, nor mmap's back from the file at a different
  16757. address. (There have been systems where private was not correctly
  16758. implemented like the infamous i386 svr4.0, and systems where the
  16759. VM page cache was not coherent with the file system buffer cache
  16760. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16761. For shared mappings, we should conversely verify that changes get
  16762. propagated back to all the places they're supposed to be.
  16763. Grep wants private fixed already mapped.
  16764. The main things grep needs to know about mmap are:
  16765. * does it exist and is it safe to write into the mmap'd area
  16766. * how to use it (BSD variants) */
  16767. #include <fcntl.h>
  16768. #include <sys/mman.h>
  16769. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16770. char *malloc ();
  16771. #endif
  16772. /* This mess was copied from the GNU getpagesize.h. */
  16773. #ifndef HAVE_GETPAGESIZE
  16774. /* Assume that all systems that can run configure have sys/param.h. */
  16775. # ifndef HAVE_SYS_PARAM_H
  16776. # define HAVE_SYS_PARAM_H 1
  16777. # endif
  16778. # ifdef _SC_PAGESIZE
  16779. # define getpagesize() sysconf(_SC_PAGESIZE)
  16780. # else /* no _SC_PAGESIZE */
  16781. # ifdef HAVE_SYS_PARAM_H
  16782. # include <sys/param.h>
  16783. # ifdef EXEC_PAGESIZE
  16784. # define getpagesize() EXEC_PAGESIZE
  16785. # else /* no EXEC_PAGESIZE */
  16786. # ifdef NBPG
  16787. # define getpagesize() NBPG * CLSIZE
  16788. # ifndef CLSIZE
  16789. # define CLSIZE 1
  16790. # endif /* no CLSIZE */
  16791. # else /* no NBPG */
  16792. # ifdef NBPC
  16793. # define getpagesize() NBPC
  16794. # else /* no NBPC */
  16795. # ifdef PAGESIZE
  16796. # define getpagesize() PAGESIZE
  16797. # endif /* PAGESIZE */
  16798. # endif /* no NBPC */
  16799. # endif /* no NBPG */
  16800. # endif /* no EXEC_PAGESIZE */
  16801. # else /* no HAVE_SYS_PARAM_H */
  16802. # define getpagesize() 8192 /* punt totally */
  16803. # endif /* no HAVE_SYS_PARAM_H */
  16804. # endif /* no _SC_PAGESIZE */
  16805. #endif /* no HAVE_GETPAGESIZE */
  16806. int
  16807. main ()
  16808. {
  16809. char *data, *data2, *data3;
  16810. int i, pagesize;
  16811. int fd;
  16812. pagesize = getpagesize ();
  16813. /* First, make a file with some known garbage in it. */
  16814. data = (char *) malloc (pagesize);
  16815. if (!data)
  16816. return 1;
  16817. for (i = 0; i < pagesize; ++i)
  16818. *(data + i) = rand ();
  16819. umask (0);
  16820. fd = creat ("conftest.mmap", 0600);
  16821. if (fd < 0)
  16822. return 1;
  16823. if (write (fd, data, pagesize) != pagesize)
  16824. return 1;
  16825. close (fd);
  16826. /* Next, try to mmap the file at a fixed address which already has
  16827. something else allocated at it. If we can, also make sure that
  16828. we see the same garbage. */
  16829. fd = open ("conftest.mmap", O_RDWR);
  16830. if (fd < 0)
  16831. return 1;
  16832. data2 = (char *) malloc (2 * pagesize);
  16833. if (!data2)
  16834. return 1;
  16835. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16836. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16837. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16838. return 1;
  16839. for (i = 0; i < pagesize; ++i)
  16840. if (*(data + i) != *(data2 + i))
  16841. return 1;
  16842. /* Finally, make sure that changes to the mapped area do not
  16843. percolate back to the file as seen by read(). (This is a bug on
  16844. some variants of i386 svr4.0.) */
  16845. for (i = 0; i < pagesize; ++i)
  16846. *(data2 + i) = *(data2 + i) + 1;
  16847. data3 = (char *) malloc (pagesize);
  16848. if (!data3)
  16849. return 1;
  16850. if (read (fd, data3, pagesize) != pagesize)
  16851. return 1;
  16852. for (i = 0; i < pagesize; ++i)
  16853. if (*(data + i) != *(data3 + i))
  16854. return 1;
  16855. close (fd);
  16856. return 0;
  16857. }
  16858. _ACEOF
  16859. rm -f conftest$ac_exeext
  16860. if { (ac_try="$ac_link"
  16861. case "(($ac_try" in
  16862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16863. *) ac_try_echo=$ac_try;;
  16864. esac
  16865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16866. (eval "$ac_link") 2>&5
  16867. ac_status=$?
  16868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16869. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16870. { (case "(($ac_try" in
  16871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16872. *) ac_try_echo=$ac_try;;
  16873. esac
  16874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16875. (eval "$ac_try") 2>&5
  16876. ac_status=$?
  16877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16878. (exit $ac_status); }; }; then
  16879. ac_cv_func_mmap_fixed_mapped=yes
  16880. else
  16881. echo "$as_me: program exited with status $ac_status" >&5
  16882. echo "$as_me: failed program was:" >&5
  16883. sed 's/^/| /' conftest.$ac_ext >&5
  16884. ( exit $ac_status )
  16885. ac_cv_func_mmap_fixed_mapped=no
  16886. fi
  16887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16888. fi
  16889. fi
  16890. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16891. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  16892. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16893. cat >>confdefs.h <<\_ACEOF
  16894. #define HAVE_MMAP 1
  16895. _ACEOF
  16896. fi
  16897. rm -f conftest.mmap
  16898. for ac_header in sys/select.h sys/socket.h
  16899. do
  16900. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16901. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16902. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16903. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16904. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16905. echo $ECHO_N "(cached) $ECHO_C" >&6
  16906. fi
  16907. ac_res=`eval echo '${'$as_ac_Header'}'`
  16908. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16909. echo "${ECHO_T}$ac_res" >&6; }
  16910. else
  16911. # Is the header compilable?
  16912. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16913. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16914. cat >conftest.$ac_ext <<_ACEOF
  16915. /* confdefs.h. */
  16916. _ACEOF
  16917. cat confdefs.h >>conftest.$ac_ext
  16918. cat >>conftest.$ac_ext <<_ACEOF
  16919. /* end confdefs.h. */
  16920. $ac_includes_default
  16921. #include <$ac_header>
  16922. _ACEOF
  16923. rm -f conftest.$ac_objext
  16924. if { (ac_try="$ac_compile"
  16925. case "(($ac_try" in
  16926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16927. *) ac_try_echo=$ac_try;;
  16928. esac
  16929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16930. (eval "$ac_compile") 2>conftest.er1
  16931. ac_status=$?
  16932. grep -v '^ *+' conftest.er1 >conftest.err
  16933. rm -f conftest.er1
  16934. cat conftest.err >&5
  16935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16936. (exit $ac_status); } && {
  16937. test -z "$ac_cxx_werror_flag" ||
  16938. test ! -s conftest.err
  16939. } && test -s conftest.$ac_objext; then
  16940. ac_header_compiler=yes
  16941. else
  16942. echo "$as_me: failed program was:" >&5
  16943. sed 's/^/| /' conftest.$ac_ext >&5
  16944. ac_header_compiler=no
  16945. fi
  16946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16947. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16948. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16949. # Is the header present?
  16950. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16951. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16952. cat >conftest.$ac_ext <<_ACEOF
  16953. /* confdefs.h. */
  16954. _ACEOF
  16955. cat confdefs.h >>conftest.$ac_ext
  16956. cat >>conftest.$ac_ext <<_ACEOF
  16957. /* end confdefs.h. */
  16958. #include <$ac_header>
  16959. _ACEOF
  16960. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16961. case "(($ac_try" in
  16962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16963. *) ac_try_echo=$ac_try;;
  16964. esac
  16965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16966. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16967. ac_status=$?
  16968. grep -v '^ *+' conftest.er1 >conftest.err
  16969. rm -f conftest.er1
  16970. cat conftest.err >&5
  16971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16972. (exit $ac_status); } >/dev/null && {
  16973. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16974. test ! -s conftest.err
  16975. }; then
  16976. ac_header_preproc=yes
  16977. else
  16978. echo "$as_me: failed program was:" >&5
  16979. sed 's/^/| /' conftest.$ac_ext >&5
  16980. ac_header_preproc=no
  16981. fi
  16982. rm -f conftest.err conftest.$ac_ext
  16983. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16984. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16985. # So? What about this header?
  16986. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16987. yes:no: )
  16988. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16989. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16990. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16991. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16992. ac_header_preproc=yes
  16993. ;;
  16994. no:yes:* )
  16995. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16996. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16997. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16998. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16999. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17000. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17001. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17002. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17003. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17004. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17005. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17006. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17007. ( cat <<\_ASBOX
  17008. ## ----------------------------------------------- ##
  17009. ## Report this to t-tujikawa@users.sourceforge.net ##
  17010. ## ----------------------------------------------- ##
  17011. _ASBOX
  17012. ) | sed "s/^/$as_me: WARNING: /" >&2
  17013. ;;
  17014. esac
  17015. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17017. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17018. echo $ECHO_N "(cached) $ECHO_C" >&6
  17019. else
  17020. eval "$as_ac_Header=\$ac_header_preproc"
  17021. fi
  17022. ac_res=`eval echo '${'$as_ac_Header'}'`
  17023. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17024. echo "${ECHO_T}$ac_res" >&6; }
  17025. fi
  17026. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17027. cat >>confdefs.h <<_ACEOF
  17028. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17029. _ACEOF
  17030. fi
  17031. done
  17032. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17033. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17034. if test "${ac_cv_func_select_args+set}" = set; then
  17035. echo $ECHO_N "(cached) $ECHO_C" >&6
  17036. else
  17037. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17038. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17039. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17040. cat >conftest.$ac_ext <<_ACEOF
  17041. /* confdefs.h. */
  17042. _ACEOF
  17043. cat confdefs.h >>conftest.$ac_ext
  17044. cat >>conftest.$ac_ext <<_ACEOF
  17045. /* end confdefs.h. */
  17046. $ac_includes_default
  17047. #ifdef HAVE_SYS_SELECT_H
  17048. # include <sys/select.h>
  17049. #endif
  17050. #ifdef HAVE_SYS_SOCKET_H
  17051. # include <sys/socket.h>
  17052. #endif
  17053. int
  17054. main ()
  17055. {
  17056. extern int select ($ac_arg1,
  17057. $ac_arg234, $ac_arg234, $ac_arg234,
  17058. $ac_arg5);
  17059. ;
  17060. return 0;
  17061. }
  17062. _ACEOF
  17063. rm -f conftest.$ac_objext
  17064. if { (ac_try="$ac_compile"
  17065. case "(($ac_try" in
  17066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17067. *) ac_try_echo=$ac_try;;
  17068. esac
  17069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17070. (eval "$ac_compile") 2>conftest.er1
  17071. ac_status=$?
  17072. grep -v '^ *+' conftest.er1 >conftest.err
  17073. rm -f conftest.er1
  17074. cat conftest.err >&5
  17075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17076. (exit $ac_status); } && {
  17077. test -z "$ac_cxx_werror_flag" ||
  17078. test ! -s conftest.err
  17079. } && test -s conftest.$ac_objext; then
  17080. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17081. else
  17082. echo "$as_me: failed program was:" >&5
  17083. sed 's/^/| /' conftest.$ac_ext >&5
  17084. fi
  17085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17086. done
  17087. done
  17088. done
  17089. # Provide a safe default value.
  17090. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17091. fi
  17092. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17093. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17094. ac_save_IFS=$IFS; IFS=','
  17095. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17096. IFS=$ac_save_IFS
  17097. shift
  17098. cat >>confdefs.h <<_ACEOF
  17099. #define SELECT_TYPE_ARG1 $1
  17100. _ACEOF
  17101. cat >>confdefs.h <<_ACEOF
  17102. #define SELECT_TYPE_ARG234 ($2)
  17103. _ACEOF
  17104. cat >>confdefs.h <<_ACEOF
  17105. #define SELECT_TYPE_ARG5 ($3)
  17106. _ACEOF
  17107. rm -f conftest*
  17108. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17109. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17110. if test "${ac_cv_type_signal+set}" = set; then
  17111. echo $ECHO_N "(cached) $ECHO_C" >&6
  17112. else
  17113. cat >conftest.$ac_ext <<_ACEOF
  17114. /* confdefs.h. */
  17115. _ACEOF
  17116. cat confdefs.h >>conftest.$ac_ext
  17117. cat >>conftest.$ac_ext <<_ACEOF
  17118. /* end confdefs.h. */
  17119. #include <sys/types.h>
  17120. #include <signal.h>
  17121. int
  17122. main ()
  17123. {
  17124. return *(signal (0, 0)) (0) == 1;
  17125. ;
  17126. return 0;
  17127. }
  17128. _ACEOF
  17129. rm -f conftest.$ac_objext
  17130. if { (ac_try="$ac_compile"
  17131. case "(($ac_try" in
  17132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17133. *) ac_try_echo=$ac_try;;
  17134. esac
  17135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17136. (eval "$ac_compile") 2>conftest.er1
  17137. ac_status=$?
  17138. grep -v '^ *+' conftest.er1 >conftest.err
  17139. rm -f conftest.er1
  17140. cat conftest.err >&5
  17141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17142. (exit $ac_status); } && {
  17143. test -z "$ac_cxx_werror_flag" ||
  17144. test ! -s conftest.err
  17145. } && test -s conftest.$ac_objext; then
  17146. ac_cv_type_signal=int
  17147. else
  17148. echo "$as_me: failed program was:" >&5
  17149. sed 's/^/| /' conftest.$ac_ext >&5
  17150. ac_cv_type_signal=void
  17151. fi
  17152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17153. fi
  17154. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17155. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17156. cat >>confdefs.h <<_ACEOF
  17157. #define RETSIGTYPE $ac_cv_type_signal
  17158. _ACEOF
  17159. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17160. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17161. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17162. echo $ECHO_N "(cached) $ECHO_C" >&6
  17163. else
  17164. rm -f conftest.sym conftest.file
  17165. echo >conftest.file
  17166. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17167. if test "$cross_compiling" = yes; then
  17168. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17169. else
  17170. cat >conftest.$ac_ext <<_ACEOF
  17171. /* confdefs.h. */
  17172. _ACEOF
  17173. cat confdefs.h >>conftest.$ac_ext
  17174. cat >>conftest.$ac_ext <<_ACEOF
  17175. /* end confdefs.h. */
  17176. $ac_includes_default
  17177. int
  17178. main ()
  17179. {
  17180. struct stat sbuf;
  17181. /* Linux will dereference the symlink and fail.
  17182. That is better in the sense that it means we will not
  17183. have to compile and use the lstat wrapper. */
  17184. return lstat ("conftest.sym/", &sbuf) == 0;
  17185. ;
  17186. return 0;
  17187. }
  17188. _ACEOF
  17189. rm -f conftest$ac_exeext
  17190. if { (ac_try="$ac_link"
  17191. case "(($ac_try" in
  17192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17193. *) ac_try_echo=$ac_try;;
  17194. esac
  17195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17196. (eval "$ac_link") 2>&5
  17197. ac_status=$?
  17198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17199. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17200. { (case "(($ac_try" in
  17201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17202. *) ac_try_echo=$ac_try;;
  17203. esac
  17204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17205. (eval "$ac_try") 2>&5
  17206. ac_status=$?
  17207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17208. (exit $ac_status); }; }; then
  17209. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17210. else
  17211. echo "$as_me: program exited with status $ac_status" >&5
  17212. echo "$as_me: failed program was:" >&5
  17213. sed 's/^/| /' conftest.$ac_ext >&5
  17214. ( exit $ac_status )
  17215. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17216. fi
  17217. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17218. fi
  17219. else
  17220. # If the `ln -s' command failed, then we probably don't even
  17221. # have an lstat function.
  17222. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17223. fi
  17224. rm -f conftest.sym conftest.file
  17225. fi
  17226. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17227. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17228. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17229. cat >>confdefs.h <<_ACEOF
  17230. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17231. _ACEOF
  17232. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17233. case " $LIBOBJS " in
  17234. *" lstat.$ac_objext "* ) ;;
  17235. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17236. ;;
  17237. esac
  17238. fi
  17239. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17240. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17241. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17242. echo $ECHO_N "(cached) $ECHO_C" >&6
  17243. else
  17244. if test "$cross_compiling" = yes; then
  17245. ac_cv_func_stat_empty_string_bug=yes
  17246. else
  17247. cat >conftest.$ac_ext <<_ACEOF
  17248. /* confdefs.h. */
  17249. _ACEOF
  17250. cat confdefs.h >>conftest.$ac_ext
  17251. cat >>conftest.$ac_ext <<_ACEOF
  17252. /* end confdefs.h. */
  17253. $ac_includes_default
  17254. int
  17255. main ()
  17256. {
  17257. struct stat sbuf;
  17258. return stat ("", &sbuf) == 0;
  17259. ;
  17260. return 0;
  17261. }
  17262. _ACEOF
  17263. rm -f conftest$ac_exeext
  17264. if { (ac_try="$ac_link"
  17265. case "(($ac_try" in
  17266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17267. *) ac_try_echo=$ac_try;;
  17268. esac
  17269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17270. (eval "$ac_link") 2>&5
  17271. ac_status=$?
  17272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17273. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17274. { (case "(($ac_try" in
  17275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17276. *) ac_try_echo=$ac_try;;
  17277. esac
  17278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17279. (eval "$ac_try") 2>&5
  17280. ac_status=$?
  17281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17282. (exit $ac_status); }; }; then
  17283. ac_cv_func_stat_empty_string_bug=no
  17284. else
  17285. echo "$as_me: program exited with status $ac_status" >&5
  17286. echo "$as_me: failed program was:" >&5
  17287. sed 's/^/| /' conftest.$ac_ext >&5
  17288. ( exit $ac_status )
  17289. ac_cv_func_stat_empty_string_bug=yes
  17290. fi
  17291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17292. fi
  17293. fi
  17294. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17295. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17296. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17297. case " $LIBOBJS " in
  17298. *" stat.$ac_objext "* ) ;;
  17299. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17300. ;;
  17301. esac
  17302. cat >>confdefs.h <<_ACEOF
  17303. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17304. _ACEOF
  17305. fi
  17306. for ac_func in strftime
  17307. do
  17308. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17309. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17310. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17311. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17312. echo $ECHO_N "(cached) $ECHO_C" >&6
  17313. else
  17314. cat >conftest.$ac_ext <<_ACEOF
  17315. /* confdefs.h. */
  17316. _ACEOF
  17317. cat confdefs.h >>conftest.$ac_ext
  17318. cat >>conftest.$ac_ext <<_ACEOF
  17319. /* end confdefs.h. */
  17320. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17321. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17322. #define $ac_func innocuous_$ac_func
  17323. /* System header to define __stub macros and hopefully few prototypes,
  17324. which can conflict with char $ac_func (); below.
  17325. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17326. <limits.h> exists even on freestanding compilers. */
  17327. #ifdef __STDC__
  17328. # include <limits.h>
  17329. #else
  17330. # include <assert.h>
  17331. #endif
  17332. #undef $ac_func
  17333. /* Override any GCC internal prototype to avoid an error.
  17334. Use char because int might match the return type of a GCC
  17335. builtin and then its argument prototype would still apply. */
  17336. #ifdef __cplusplus
  17337. extern "C"
  17338. #endif
  17339. char $ac_func ();
  17340. /* The GNU C library defines this for functions which it implements
  17341. to always fail with ENOSYS. Some functions are actually named
  17342. something starting with __ and the normal name is an alias. */
  17343. #if defined __stub_$ac_func || defined __stub___$ac_func
  17344. choke me
  17345. #endif
  17346. int
  17347. main ()
  17348. {
  17349. return $ac_func ();
  17350. ;
  17351. return 0;
  17352. }
  17353. _ACEOF
  17354. rm -f conftest.$ac_objext conftest$ac_exeext
  17355. if { (ac_try="$ac_link"
  17356. case "(($ac_try" in
  17357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17358. *) ac_try_echo=$ac_try;;
  17359. esac
  17360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17361. (eval "$ac_link") 2>conftest.er1
  17362. ac_status=$?
  17363. grep -v '^ *+' conftest.er1 >conftest.err
  17364. rm -f conftest.er1
  17365. cat conftest.err >&5
  17366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17367. (exit $ac_status); } && {
  17368. test -z "$ac_cxx_werror_flag" ||
  17369. test ! -s conftest.err
  17370. } && test -s conftest$ac_exeext &&
  17371. $as_test_x conftest$ac_exeext; then
  17372. eval "$as_ac_var=yes"
  17373. else
  17374. echo "$as_me: failed program was:" >&5
  17375. sed 's/^/| /' conftest.$ac_ext >&5
  17376. eval "$as_ac_var=no"
  17377. fi
  17378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17379. conftest$ac_exeext conftest.$ac_ext
  17380. fi
  17381. ac_res=`eval echo '${'$as_ac_var'}'`
  17382. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17383. echo "${ECHO_T}$ac_res" >&6; }
  17384. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17385. cat >>confdefs.h <<_ACEOF
  17386. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17387. _ACEOF
  17388. else
  17389. # strftime is in -lintl on SCO UNIX.
  17390. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17391. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17392. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17393. echo $ECHO_N "(cached) $ECHO_C" >&6
  17394. else
  17395. ac_check_lib_save_LIBS=$LIBS
  17396. LIBS="-lintl $LIBS"
  17397. cat >conftest.$ac_ext <<_ACEOF
  17398. /* confdefs.h. */
  17399. _ACEOF
  17400. cat confdefs.h >>conftest.$ac_ext
  17401. cat >>conftest.$ac_ext <<_ACEOF
  17402. /* end confdefs.h. */
  17403. /* Override any GCC internal prototype to avoid an error.
  17404. Use char because int might match the return type of a GCC
  17405. builtin and then its argument prototype would still apply. */
  17406. #ifdef __cplusplus
  17407. extern "C"
  17408. #endif
  17409. char strftime ();
  17410. int
  17411. main ()
  17412. {
  17413. return strftime ();
  17414. ;
  17415. return 0;
  17416. }
  17417. _ACEOF
  17418. rm -f conftest.$ac_objext conftest$ac_exeext
  17419. if { (ac_try="$ac_link"
  17420. case "(($ac_try" in
  17421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17422. *) ac_try_echo=$ac_try;;
  17423. esac
  17424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17425. (eval "$ac_link") 2>conftest.er1
  17426. ac_status=$?
  17427. grep -v '^ *+' conftest.er1 >conftest.err
  17428. rm -f conftest.er1
  17429. cat conftest.err >&5
  17430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17431. (exit $ac_status); } && {
  17432. test -z "$ac_cxx_werror_flag" ||
  17433. test ! -s conftest.err
  17434. } && test -s conftest$ac_exeext &&
  17435. $as_test_x conftest$ac_exeext; then
  17436. ac_cv_lib_intl_strftime=yes
  17437. else
  17438. echo "$as_me: failed program was:" >&5
  17439. sed 's/^/| /' conftest.$ac_ext >&5
  17440. ac_cv_lib_intl_strftime=no
  17441. fi
  17442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17443. conftest$ac_exeext conftest.$ac_ext
  17444. LIBS=$ac_check_lib_save_LIBS
  17445. fi
  17446. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17447. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17448. if test $ac_cv_lib_intl_strftime = yes; then
  17449. cat >>confdefs.h <<\_ACEOF
  17450. #define HAVE_STRFTIME 1
  17451. _ACEOF
  17452. LIBS="-lintl $LIBS"
  17453. fi
  17454. fi
  17455. done
  17456. for ac_func in vprintf
  17457. do
  17458. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17459. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17460. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17461. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17462. echo $ECHO_N "(cached) $ECHO_C" >&6
  17463. else
  17464. cat >conftest.$ac_ext <<_ACEOF
  17465. /* confdefs.h. */
  17466. _ACEOF
  17467. cat confdefs.h >>conftest.$ac_ext
  17468. cat >>conftest.$ac_ext <<_ACEOF
  17469. /* end confdefs.h. */
  17470. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17471. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17472. #define $ac_func innocuous_$ac_func
  17473. /* System header to define __stub macros and hopefully few prototypes,
  17474. which can conflict with char $ac_func (); below.
  17475. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17476. <limits.h> exists even on freestanding compilers. */
  17477. #ifdef __STDC__
  17478. # include <limits.h>
  17479. #else
  17480. # include <assert.h>
  17481. #endif
  17482. #undef $ac_func
  17483. /* Override any GCC internal prototype to avoid an error.
  17484. Use char because int might match the return type of a GCC
  17485. builtin and then its argument prototype would still apply. */
  17486. #ifdef __cplusplus
  17487. extern "C"
  17488. #endif
  17489. char $ac_func ();
  17490. /* The GNU C library defines this for functions which it implements
  17491. to always fail with ENOSYS. Some functions are actually named
  17492. something starting with __ and the normal name is an alias. */
  17493. #if defined __stub_$ac_func || defined __stub___$ac_func
  17494. choke me
  17495. #endif
  17496. int
  17497. main ()
  17498. {
  17499. return $ac_func ();
  17500. ;
  17501. return 0;
  17502. }
  17503. _ACEOF
  17504. rm -f conftest.$ac_objext conftest$ac_exeext
  17505. if { (ac_try="$ac_link"
  17506. case "(($ac_try" in
  17507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17508. *) ac_try_echo=$ac_try;;
  17509. esac
  17510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17511. (eval "$ac_link") 2>conftest.er1
  17512. ac_status=$?
  17513. grep -v '^ *+' conftest.er1 >conftest.err
  17514. rm -f conftest.er1
  17515. cat conftest.err >&5
  17516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17517. (exit $ac_status); } && {
  17518. test -z "$ac_cxx_werror_flag" ||
  17519. test ! -s conftest.err
  17520. } && test -s conftest$ac_exeext &&
  17521. $as_test_x conftest$ac_exeext; then
  17522. eval "$as_ac_var=yes"
  17523. else
  17524. echo "$as_me: failed program was:" >&5
  17525. sed 's/^/| /' conftest.$ac_ext >&5
  17526. eval "$as_ac_var=no"
  17527. fi
  17528. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17529. conftest$ac_exeext conftest.$ac_ext
  17530. fi
  17531. ac_res=`eval echo '${'$as_ac_var'}'`
  17532. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17533. echo "${ECHO_T}$ac_res" >&6; }
  17534. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17535. cat >>confdefs.h <<_ACEOF
  17536. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17537. _ACEOF
  17538. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17539. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17540. if test "${ac_cv_func__doprnt+set}" = set; then
  17541. echo $ECHO_N "(cached) $ECHO_C" >&6
  17542. else
  17543. cat >conftest.$ac_ext <<_ACEOF
  17544. /* confdefs.h. */
  17545. _ACEOF
  17546. cat confdefs.h >>conftest.$ac_ext
  17547. cat >>conftest.$ac_ext <<_ACEOF
  17548. /* end confdefs.h. */
  17549. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17550. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17551. #define _doprnt innocuous__doprnt
  17552. /* System header to define __stub macros and hopefully few prototypes,
  17553. which can conflict with char _doprnt (); below.
  17554. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17555. <limits.h> exists even on freestanding compilers. */
  17556. #ifdef __STDC__
  17557. # include <limits.h>
  17558. #else
  17559. # include <assert.h>
  17560. #endif
  17561. #undef _doprnt
  17562. /* Override any GCC internal prototype to avoid an error.
  17563. Use char because int might match the return type of a GCC
  17564. builtin and then its argument prototype would still apply. */
  17565. #ifdef __cplusplus
  17566. extern "C"
  17567. #endif
  17568. char _doprnt ();
  17569. /* The GNU C library defines this for functions which it implements
  17570. to always fail with ENOSYS. Some functions are actually named
  17571. something starting with __ and the normal name is an alias. */
  17572. #if defined __stub__doprnt || defined __stub____doprnt
  17573. choke me
  17574. #endif
  17575. int
  17576. main ()
  17577. {
  17578. return _doprnt ();
  17579. ;
  17580. return 0;
  17581. }
  17582. _ACEOF
  17583. rm -f conftest.$ac_objext conftest$ac_exeext
  17584. if { (ac_try="$ac_link"
  17585. case "(($ac_try" in
  17586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17587. *) ac_try_echo=$ac_try;;
  17588. esac
  17589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17590. (eval "$ac_link") 2>conftest.er1
  17591. ac_status=$?
  17592. grep -v '^ *+' conftest.er1 >conftest.err
  17593. rm -f conftest.er1
  17594. cat conftest.err >&5
  17595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17596. (exit $ac_status); } && {
  17597. test -z "$ac_cxx_werror_flag" ||
  17598. test ! -s conftest.err
  17599. } && test -s conftest$ac_exeext &&
  17600. $as_test_x conftest$ac_exeext; then
  17601. ac_cv_func__doprnt=yes
  17602. else
  17603. echo "$as_me: failed program was:" >&5
  17604. sed 's/^/| /' conftest.$ac_ext >&5
  17605. ac_cv_func__doprnt=no
  17606. fi
  17607. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17608. conftest$ac_exeext conftest.$ac_ext
  17609. fi
  17610. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17611. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17612. if test $ac_cv_func__doprnt = yes; then
  17613. cat >>confdefs.h <<\_ACEOF
  17614. #define HAVE_DOPRNT 1
  17615. _ACEOF
  17616. fi
  17617. fi
  17618. done
  17619. for ac_func in __argz_count __argz_next __argz_stringify atexit daemon ftruncate getcwd gethostbyaddr gethostbyname getpagesize inet_ntoa memchr memmove mempcpy memset mkdir munmap nl_langinfo posix_memalign putenv rmdir select setlocale sleep socket stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull tzset unsetenv usleep
  17620. do
  17621. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17622. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17623. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17624. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17625. echo $ECHO_N "(cached) $ECHO_C" >&6
  17626. else
  17627. cat >conftest.$ac_ext <<_ACEOF
  17628. /* confdefs.h. */
  17629. _ACEOF
  17630. cat confdefs.h >>conftest.$ac_ext
  17631. cat >>conftest.$ac_ext <<_ACEOF
  17632. /* end confdefs.h. */
  17633. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17634. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17635. #define $ac_func innocuous_$ac_func
  17636. /* System header to define __stub macros and hopefully few prototypes,
  17637. which can conflict with char $ac_func (); below.
  17638. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17639. <limits.h> exists even on freestanding compilers. */
  17640. #ifdef __STDC__
  17641. # include <limits.h>
  17642. #else
  17643. # include <assert.h>
  17644. #endif
  17645. #undef $ac_func
  17646. /* Override any GCC internal prototype to avoid an error.
  17647. Use char because int might match the return type of a GCC
  17648. builtin and then its argument prototype would still apply. */
  17649. #ifdef __cplusplus
  17650. extern "C"
  17651. #endif
  17652. char $ac_func ();
  17653. /* The GNU C library defines this for functions which it implements
  17654. to always fail with ENOSYS. Some functions are actually named
  17655. something starting with __ and the normal name is an alias. */
  17656. #if defined __stub_$ac_func || defined __stub___$ac_func
  17657. choke me
  17658. #endif
  17659. int
  17660. main ()
  17661. {
  17662. return $ac_func ();
  17663. ;
  17664. return 0;
  17665. }
  17666. _ACEOF
  17667. rm -f conftest.$ac_objext conftest$ac_exeext
  17668. if { (ac_try="$ac_link"
  17669. case "(($ac_try" in
  17670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17671. *) ac_try_echo=$ac_try;;
  17672. esac
  17673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17674. (eval "$ac_link") 2>conftest.er1
  17675. ac_status=$?
  17676. grep -v '^ *+' conftest.er1 >conftest.err
  17677. rm -f conftest.er1
  17678. cat conftest.err >&5
  17679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17680. (exit $ac_status); } && {
  17681. test -z "$ac_cxx_werror_flag" ||
  17682. test ! -s conftest.err
  17683. } && test -s conftest$ac_exeext &&
  17684. $as_test_x conftest$ac_exeext; then
  17685. eval "$as_ac_var=yes"
  17686. else
  17687. echo "$as_me: failed program was:" >&5
  17688. sed 's/^/| /' conftest.$ac_ext >&5
  17689. eval "$as_ac_var=no"
  17690. fi
  17691. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17692. conftest$ac_exeext conftest.$ac_ext
  17693. fi
  17694. ac_res=`eval echo '${'$as_ac_var'}'`
  17695. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17696. echo "${ECHO_T}$ac_res" >&6; }
  17697. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17698. cat >>confdefs.h <<_ACEOF
  17699. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17700. _ACEOF
  17701. fi
  17702. done
  17703. for ac_func in basename
  17704. do
  17705. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17706. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17707. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17708. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17709. echo $ECHO_N "(cached) $ECHO_C" >&6
  17710. else
  17711. cat >conftest.$ac_ext <<_ACEOF
  17712. /* confdefs.h. */
  17713. _ACEOF
  17714. cat confdefs.h >>conftest.$ac_ext
  17715. cat >>conftest.$ac_ext <<_ACEOF
  17716. /* end confdefs.h. */
  17717. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17719. #define $ac_func innocuous_$ac_func
  17720. /* System header to define __stub macros and hopefully few prototypes,
  17721. which can conflict with char $ac_func (); below.
  17722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17723. <limits.h> exists even on freestanding compilers. */
  17724. #ifdef __STDC__
  17725. # include <limits.h>
  17726. #else
  17727. # include <assert.h>
  17728. #endif
  17729. #undef $ac_func
  17730. /* Override any GCC internal prototype to avoid an error.
  17731. Use char because int might match the return type of a GCC
  17732. builtin and then its argument prototype would still apply. */
  17733. #ifdef __cplusplus
  17734. extern "C"
  17735. #endif
  17736. char $ac_func ();
  17737. /* The GNU C library defines this for functions which it implements
  17738. to always fail with ENOSYS. Some functions are actually named
  17739. something starting with __ and the normal name is an alias. */
  17740. #if defined __stub_$ac_func || defined __stub___$ac_func
  17741. choke me
  17742. #endif
  17743. int
  17744. main ()
  17745. {
  17746. return $ac_func ();
  17747. ;
  17748. return 0;
  17749. }
  17750. _ACEOF
  17751. rm -f conftest.$ac_objext conftest$ac_exeext
  17752. if { (ac_try="$ac_link"
  17753. case "(($ac_try" in
  17754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17755. *) ac_try_echo=$ac_try;;
  17756. esac
  17757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17758. (eval "$ac_link") 2>conftest.er1
  17759. ac_status=$?
  17760. grep -v '^ *+' conftest.er1 >conftest.err
  17761. rm -f conftest.er1
  17762. cat conftest.err >&5
  17763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17764. (exit $ac_status); } && {
  17765. test -z "$ac_cxx_werror_flag" ||
  17766. test ! -s conftest.err
  17767. } && test -s conftest$ac_exeext &&
  17768. $as_test_x conftest$ac_exeext; then
  17769. eval "$as_ac_var=yes"
  17770. else
  17771. echo "$as_me: failed program was:" >&5
  17772. sed 's/^/| /' conftest.$ac_ext >&5
  17773. eval "$as_ac_var=no"
  17774. fi
  17775. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17776. conftest$ac_exeext conftest.$ac_ext
  17777. fi
  17778. ac_res=`eval echo '${'$as_ac_var'}'`
  17779. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17780. echo "${ECHO_T}$ac_res" >&6; }
  17781. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17782. cat >>confdefs.h <<_ACEOF
  17783. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17784. _ACEOF
  17785. if true; then
  17786. HAVE_BASENAME_TRUE=
  17787. HAVE_BASENAME_FALSE='#'
  17788. else
  17789. HAVE_BASENAME_TRUE='#'
  17790. HAVE_BASENAME_FALSE=
  17791. fi
  17792. else
  17793. if false; then
  17794. HAVE_BASENAME_TRUE=
  17795. HAVE_BASENAME_FALSE='#'
  17796. else
  17797. HAVE_BASENAME_TRUE='#'
  17798. HAVE_BASENAME_FALSE=
  17799. fi
  17800. fi
  17801. done
  17802. for ac_func in gai_strerror
  17803. do
  17804. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17805. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17806. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17807. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17808. echo $ECHO_N "(cached) $ECHO_C" >&6
  17809. else
  17810. cat >conftest.$ac_ext <<_ACEOF
  17811. /* confdefs.h. */
  17812. _ACEOF
  17813. cat confdefs.h >>conftest.$ac_ext
  17814. cat >>conftest.$ac_ext <<_ACEOF
  17815. /* end confdefs.h. */
  17816. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17817. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17818. #define $ac_func innocuous_$ac_func
  17819. /* System header to define __stub macros and hopefully few prototypes,
  17820. which can conflict with char $ac_func (); below.
  17821. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17822. <limits.h> exists even on freestanding compilers. */
  17823. #ifdef __STDC__
  17824. # include <limits.h>
  17825. #else
  17826. # include <assert.h>
  17827. #endif
  17828. #undef $ac_func
  17829. /* Override any GCC internal prototype to avoid an error.
  17830. Use char because int might match the return type of a GCC
  17831. builtin and then its argument prototype would still apply. */
  17832. #ifdef __cplusplus
  17833. extern "C"
  17834. #endif
  17835. char $ac_func ();
  17836. /* The GNU C library defines this for functions which it implements
  17837. to always fail with ENOSYS. Some functions are actually named
  17838. something starting with __ and the normal name is an alias. */
  17839. #if defined __stub_$ac_func || defined __stub___$ac_func
  17840. choke me
  17841. #endif
  17842. int
  17843. main ()
  17844. {
  17845. return $ac_func ();
  17846. ;
  17847. return 0;
  17848. }
  17849. _ACEOF
  17850. rm -f conftest.$ac_objext conftest$ac_exeext
  17851. if { (ac_try="$ac_link"
  17852. case "(($ac_try" in
  17853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17854. *) ac_try_echo=$ac_try;;
  17855. esac
  17856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17857. (eval "$ac_link") 2>conftest.er1
  17858. ac_status=$?
  17859. grep -v '^ *+' conftest.er1 >conftest.err
  17860. rm -f conftest.er1
  17861. cat conftest.err >&5
  17862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17863. (exit $ac_status); } && {
  17864. test -z "$ac_cxx_werror_flag" ||
  17865. test ! -s conftest.err
  17866. } && test -s conftest$ac_exeext &&
  17867. $as_test_x conftest$ac_exeext; then
  17868. eval "$as_ac_var=yes"
  17869. else
  17870. echo "$as_me: failed program was:" >&5
  17871. sed 's/^/| /' conftest.$ac_ext >&5
  17872. eval "$as_ac_var=no"
  17873. fi
  17874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17875. conftest$ac_exeext conftest.$ac_ext
  17876. fi
  17877. ac_res=`eval echo '${'$as_ac_var'}'`
  17878. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17879. echo "${ECHO_T}$ac_res" >&6; }
  17880. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17881. cat >>confdefs.h <<_ACEOF
  17882. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17883. _ACEOF
  17884. if true; then
  17885. HAVE_GAI_STRERROR_TRUE=
  17886. HAVE_GAI_STRERROR_FALSE='#'
  17887. else
  17888. HAVE_GAI_STRERROR_TRUE='#'
  17889. HAVE_GAI_STRERROR_FALSE=
  17890. fi
  17891. else
  17892. if false; then
  17893. HAVE_GAI_STRERROR_TRUE=
  17894. HAVE_GAI_STRERROR_FALSE='#'
  17895. else
  17896. HAVE_GAI_STRERROR_TRUE='#'
  17897. HAVE_GAI_STRERROR_FALSE=
  17898. fi
  17899. fi
  17900. done
  17901. for ac_func in getaddrinfo
  17902. do
  17903. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17904. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17905. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17906. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17907. echo $ECHO_N "(cached) $ECHO_C" >&6
  17908. else
  17909. cat >conftest.$ac_ext <<_ACEOF
  17910. /* confdefs.h. */
  17911. _ACEOF
  17912. cat confdefs.h >>conftest.$ac_ext
  17913. cat >>conftest.$ac_ext <<_ACEOF
  17914. /* end confdefs.h. */
  17915. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17917. #define $ac_func innocuous_$ac_func
  17918. /* System header to define __stub macros and hopefully few prototypes,
  17919. which can conflict with char $ac_func (); below.
  17920. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17921. <limits.h> exists even on freestanding compilers. */
  17922. #ifdef __STDC__
  17923. # include <limits.h>
  17924. #else
  17925. # include <assert.h>
  17926. #endif
  17927. #undef $ac_func
  17928. /* Override any GCC internal prototype to avoid an error.
  17929. Use char because int might match the return type of a GCC
  17930. builtin and then its argument prototype would still apply. */
  17931. #ifdef __cplusplus
  17932. extern "C"
  17933. #endif
  17934. char $ac_func ();
  17935. /* The GNU C library defines this for functions which it implements
  17936. to always fail with ENOSYS. Some functions are actually named
  17937. something starting with __ and the normal name is an alias. */
  17938. #if defined __stub_$ac_func || defined __stub___$ac_func
  17939. choke me
  17940. #endif
  17941. int
  17942. main ()
  17943. {
  17944. return $ac_func ();
  17945. ;
  17946. return 0;
  17947. }
  17948. _ACEOF
  17949. rm -f conftest.$ac_objext conftest$ac_exeext
  17950. if { (ac_try="$ac_link"
  17951. case "(($ac_try" in
  17952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17953. *) ac_try_echo=$ac_try;;
  17954. esac
  17955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17956. (eval "$ac_link") 2>conftest.er1
  17957. ac_status=$?
  17958. grep -v '^ *+' conftest.er1 >conftest.err
  17959. rm -f conftest.er1
  17960. cat conftest.err >&5
  17961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17962. (exit $ac_status); } && {
  17963. test -z "$ac_cxx_werror_flag" ||
  17964. test ! -s conftest.err
  17965. } && test -s conftest$ac_exeext &&
  17966. $as_test_x conftest$ac_exeext; then
  17967. eval "$as_ac_var=yes"
  17968. else
  17969. echo "$as_me: failed program was:" >&5
  17970. sed 's/^/| /' conftest.$ac_ext >&5
  17971. eval "$as_ac_var=no"
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17974. conftest$ac_exeext conftest.$ac_ext
  17975. fi
  17976. ac_res=`eval echo '${'$as_ac_var'}'`
  17977. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17978. echo "${ECHO_T}$ac_res" >&6; }
  17979. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17980. cat >>confdefs.h <<_ACEOF
  17981. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17982. _ACEOF
  17983. if true; then
  17984. HAVE_GETADDRINFO_TRUE=
  17985. HAVE_GETADDRINFO_FALSE='#'
  17986. else
  17987. HAVE_GETADDRINFO_TRUE='#'
  17988. HAVE_GETADDRINFO_FALSE=
  17989. fi
  17990. else
  17991. if false; then
  17992. HAVE_GETADDRINFO_TRUE=
  17993. HAVE_GETADDRINFO_FALSE='#'
  17994. else
  17995. HAVE_GETADDRINFO_TRUE='#'
  17996. HAVE_GETADDRINFO_FALSE=
  17997. fi
  17998. fi
  17999. done
  18000. for ac_func in gettimeofday
  18001. do
  18002. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18003. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18004. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18005. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18006. echo $ECHO_N "(cached) $ECHO_C" >&6
  18007. else
  18008. cat >conftest.$ac_ext <<_ACEOF
  18009. /* confdefs.h. */
  18010. _ACEOF
  18011. cat confdefs.h >>conftest.$ac_ext
  18012. cat >>conftest.$ac_ext <<_ACEOF
  18013. /* end confdefs.h. */
  18014. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18015. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18016. #define $ac_func innocuous_$ac_func
  18017. /* System header to define __stub macros and hopefully few prototypes,
  18018. which can conflict with char $ac_func (); below.
  18019. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18020. <limits.h> exists even on freestanding compilers. */
  18021. #ifdef __STDC__
  18022. # include <limits.h>
  18023. #else
  18024. # include <assert.h>
  18025. #endif
  18026. #undef $ac_func
  18027. /* Override any GCC internal prototype to avoid an error.
  18028. Use char because int might match the return type of a GCC
  18029. builtin and then its argument prototype would still apply. */
  18030. #ifdef __cplusplus
  18031. extern "C"
  18032. #endif
  18033. char $ac_func ();
  18034. /* The GNU C library defines this for functions which it implements
  18035. to always fail with ENOSYS. Some functions are actually named
  18036. something starting with __ and the normal name is an alias. */
  18037. #if defined __stub_$ac_func || defined __stub___$ac_func
  18038. choke me
  18039. #endif
  18040. int
  18041. main ()
  18042. {
  18043. return $ac_func ();
  18044. ;
  18045. return 0;
  18046. }
  18047. _ACEOF
  18048. rm -f conftest.$ac_objext conftest$ac_exeext
  18049. if { (ac_try="$ac_link"
  18050. case "(($ac_try" in
  18051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18052. *) ac_try_echo=$ac_try;;
  18053. esac
  18054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18055. (eval "$ac_link") 2>conftest.er1
  18056. ac_status=$?
  18057. grep -v '^ *+' conftest.er1 >conftest.err
  18058. rm -f conftest.er1
  18059. cat conftest.err >&5
  18060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18061. (exit $ac_status); } && {
  18062. test -z "$ac_cxx_werror_flag" ||
  18063. test ! -s conftest.err
  18064. } && test -s conftest$ac_exeext &&
  18065. $as_test_x conftest$ac_exeext; then
  18066. eval "$as_ac_var=yes"
  18067. else
  18068. echo "$as_me: failed program was:" >&5
  18069. sed 's/^/| /' conftest.$ac_ext >&5
  18070. eval "$as_ac_var=no"
  18071. fi
  18072. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18073. conftest$ac_exeext conftest.$ac_ext
  18074. fi
  18075. ac_res=`eval echo '${'$as_ac_var'}'`
  18076. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18077. echo "${ECHO_T}$ac_res" >&6; }
  18078. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18079. cat >>confdefs.h <<_ACEOF
  18080. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18081. _ACEOF
  18082. if true; then
  18083. HAVE_GETTIMEOFDAY_TRUE=
  18084. HAVE_GETTIMEOFDAY_FALSE='#'
  18085. else
  18086. HAVE_GETTIMEOFDAY_TRUE='#'
  18087. HAVE_GETTIMEOFDAY_FALSE=
  18088. fi
  18089. else
  18090. if false; then
  18091. HAVE_GETTIMEOFDAY_TRUE=
  18092. HAVE_GETTIMEOFDAY_FALSE='#'
  18093. else
  18094. HAVE_GETTIMEOFDAY_TRUE='#'
  18095. HAVE_GETTIMEOFDAY_FALSE=
  18096. fi
  18097. fi
  18098. done
  18099. for ac_func in inet_aton
  18100. do
  18101. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18102. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18103. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18104. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18105. echo $ECHO_N "(cached) $ECHO_C" >&6
  18106. else
  18107. cat >conftest.$ac_ext <<_ACEOF
  18108. /* confdefs.h. */
  18109. _ACEOF
  18110. cat confdefs.h >>conftest.$ac_ext
  18111. cat >>conftest.$ac_ext <<_ACEOF
  18112. /* end confdefs.h. */
  18113. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18114. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18115. #define $ac_func innocuous_$ac_func
  18116. /* System header to define __stub macros and hopefully few prototypes,
  18117. which can conflict with char $ac_func (); below.
  18118. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18119. <limits.h> exists even on freestanding compilers. */
  18120. #ifdef __STDC__
  18121. # include <limits.h>
  18122. #else
  18123. # include <assert.h>
  18124. #endif
  18125. #undef $ac_func
  18126. /* Override any GCC internal prototype to avoid an error.
  18127. Use char because int might match the return type of a GCC
  18128. builtin and then its argument prototype would still apply. */
  18129. #ifdef __cplusplus
  18130. extern "C"
  18131. #endif
  18132. char $ac_func ();
  18133. /* The GNU C library defines this for functions which it implements
  18134. to always fail with ENOSYS. Some functions are actually named
  18135. something starting with __ and the normal name is an alias. */
  18136. #if defined __stub_$ac_func || defined __stub___$ac_func
  18137. choke me
  18138. #endif
  18139. int
  18140. main ()
  18141. {
  18142. return $ac_func ();
  18143. ;
  18144. return 0;
  18145. }
  18146. _ACEOF
  18147. rm -f conftest.$ac_objext conftest$ac_exeext
  18148. if { (ac_try="$ac_link"
  18149. case "(($ac_try" in
  18150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18151. *) ac_try_echo=$ac_try;;
  18152. esac
  18153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18154. (eval "$ac_link") 2>conftest.er1
  18155. ac_status=$?
  18156. grep -v '^ *+' conftest.er1 >conftest.err
  18157. rm -f conftest.er1
  18158. cat conftest.err >&5
  18159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18160. (exit $ac_status); } && {
  18161. test -z "$ac_cxx_werror_flag" ||
  18162. test ! -s conftest.err
  18163. } && test -s conftest$ac_exeext &&
  18164. $as_test_x conftest$ac_exeext; then
  18165. eval "$as_ac_var=yes"
  18166. else
  18167. echo "$as_me: failed program was:" >&5
  18168. sed 's/^/| /' conftest.$ac_ext >&5
  18169. eval "$as_ac_var=no"
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18172. conftest$ac_exeext conftest.$ac_ext
  18173. fi
  18174. ac_res=`eval echo '${'$as_ac_var'}'`
  18175. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18176. echo "${ECHO_T}$ac_res" >&6; }
  18177. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18178. cat >>confdefs.h <<_ACEOF
  18179. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18180. _ACEOF
  18181. if true; then
  18182. HAVE_INET_ATON_TRUE=
  18183. HAVE_INET_ATON_FALSE='#'
  18184. else
  18185. HAVE_INET_ATON_TRUE='#'
  18186. HAVE_INET_ATON_FALSE=
  18187. fi
  18188. else
  18189. if false; then
  18190. HAVE_INET_ATON_TRUE=
  18191. HAVE_INET_ATON_FALSE='#'
  18192. else
  18193. HAVE_INET_ATON_TRUE='#'
  18194. HAVE_INET_ATON_FALSE=
  18195. fi
  18196. fi
  18197. done
  18198. for ac_func in localtime_r
  18199. do
  18200. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18201. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18202. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18203. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18204. echo $ECHO_N "(cached) $ECHO_C" >&6
  18205. else
  18206. cat >conftest.$ac_ext <<_ACEOF
  18207. /* confdefs.h. */
  18208. _ACEOF
  18209. cat confdefs.h >>conftest.$ac_ext
  18210. cat >>conftest.$ac_ext <<_ACEOF
  18211. /* end confdefs.h. */
  18212. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18213. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18214. #define $ac_func innocuous_$ac_func
  18215. /* System header to define __stub macros and hopefully few prototypes,
  18216. which can conflict with char $ac_func (); below.
  18217. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18218. <limits.h> exists even on freestanding compilers. */
  18219. #ifdef __STDC__
  18220. # include <limits.h>
  18221. #else
  18222. # include <assert.h>
  18223. #endif
  18224. #undef $ac_func
  18225. /* Override any GCC internal prototype to avoid an error.
  18226. Use char because int might match the return type of a GCC
  18227. builtin and then its argument prototype would still apply. */
  18228. #ifdef __cplusplus
  18229. extern "C"
  18230. #endif
  18231. char $ac_func ();
  18232. /* The GNU C library defines this for functions which it implements
  18233. to always fail with ENOSYS. Some functions are actually named
  18234. something starting with __ and the normal name is an alias. */
  18235. #if defined __stub_$ac_func || defined __stub___$ac_func
  18236. choke me
  18237. #endif
  18238. int
  18239. main ()
  18240. {
  18241. return $ac_func ();
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. rm -f conftest.$ac_objext conftest$ac_exeext
  18247. if { (ac_try="$ac_link"
  18248. case "(($ac_try" in
  18249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18250. *) ac_try_echo=$ac_try;;
  18251. esac
  18252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18253. (eval "$ac_link") 2>conftest.er1
  18254. ac_status=$?
  18255. grep -v '^ *+' conftest.er1 >conftest.err
  18256. rm -f conftest.er1
  18257. cat conftest.err >&5
  18258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18259. (exit $ac_status); } && {
  18260. test -z "$ac_cxx_werror_flag" ||
  18261. test ! -s conftest.err
  18262. } && test -s conftest$ac_exeext &&
  18263. $as_test_x conftest$ac_exeext; then
  18264. eval "$as_ac_var=yes"
  18265. else
  18266. echo "$as_me: failed program was:" >&5
  18267. sed 's/^/| /' conftest.$ac_ext >&5
  18268. eval "$as_ac_var=no"
  18269. fi
  18270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18271. conftest$ac_exeext conftest.$ac_ext
  18272. fi
  18273. ac_res=`eval echo '${'$as_ac_var'}'`
  18274. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18275. echo "${ECHO_T}$ac_res" >&6; }
  18276. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18277. cat >>confdefs.h <<_ACEOF
  18278. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18279. _ACEOF
  18280. if true; then
  18281. HAVE_LOCALTIME_R_TRUE=
  18282. HAVE_LOCALTIME_R_FALSE='#'
  18283. else
  18284. HAVE_LOCALTIME_R_TRUE='#'
  18285. HAVE_LOCALTIME_R_FALSE=
  18286. fi
  18287. else
  18288. if false; then
  18289. HAVE_LOCALTIME_R_TRUE=
  18290. HAVE_LOCALTIME_R_FALSE='#'
  18291. else
  18292. HAVE_LOCALTIME_R_TRUE='#'
  18293. HAVE_LOCALTIME_R_FALSE=
  18294. fi
  18295. fi
  18296. done
  18297. for ac_func in strptime
  18298. do
  18299. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18300. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18301. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18302. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18303. echo $ECHO_N "(cached) $ECHO_C" >&6
  18304. else
  18305. cat >conftest.$ac_ext <<_ACEOF
  18306. /* confdefs.h. */
  18307. _ACEOF
  18308. cat confdefs.h >>conftest.$ac_ext
  18309. cat >>conftest.$ac_ext <<_ACEOF
  18310. /* end confdefs.h. */
  18311. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18312. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18313. #define $ac_func innocuous_$ac_func
  18314. /* System header to define __stub macros and hopefully few prototypes,
  18315. which can conflict with char $ac_func (); below.
  18316. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18317. <limits.h> exists even on freestanding compilers. */
  18318. #ifdef __STDC__
  18319. # include <limits.h>
  18320. #else
  18321. # include <assert.h>
  18322. #endif
  18323. #undef $ac_func
  18324. /* Override any GCC internal prototype to avoid an error.
  18325. Use char because int might match the return type of a GCC
  18326. builtin and then its argument prototype would still apply. */
  18327. #ifdef __cplusplus
  18328. extern "C"
  18329. #endif
  18330. char $ac_func ();
  18331. /* The GNU C library defines this for functions which it implements
  18332. to always fail with ENOSYS. Some functions are actually named
  18333. something starting with __ and the normal name is an alias. */
  18334. #if defined __stub_$ac_func || defined __stub___$ac_func
  18335. choke me
  18336. #endif
  18337. int
  18338. main ()
  18339. {
  18340. return $ac_func ();
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. rm -f conftest.$ac_objext conftest$ac_exeext
  18346. if { (ac_try="$ac_link"
  18347. case "(($ac_try" in
  18348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18349. *) ac_try_echo=$ac_try;;
  18350. esac
  18351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18352. (eval "$ac_link") 2>conftest.er1
  18353. ac_status=$?
  18354. grep -v '^ *+' conftest.er1 >conftest.err
  18355. rm -f conftest.er1
  18356. cat conftest.err >&5
  18357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. (exit $ac_status); } && {
  18359. test -z "$ac_cxx_werror_flag" ||
  18360. test ! -s conftest.err
  18361. } && test -s conftest$ac_exeext &&
  18362. $as_test_x conftest$ac_exeext; then
  18363. eval "$as_ac_var=yes"
  18364. else
  18365. echo "$as_me: failed program was:" >&5
  18366. sed 's/^/| /' conftest.$ac_ext >&5
  18367. eval "$as_ac_var=no"
  18368. fi
  18369. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18370. conftest$ac_exeext conftest.$ac_ext
  18371. fi
  18372. ac_res=`eval echo '${'$as_ac_var'}'`
  18373. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18374. echo "${ECHO_T}$ac_res" >&6; }
  18375. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18376. cat >>confdefs.h <<_ACEOF
  18377. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18378. _ACEOF
  18379. if true; then
  18380. HAVE_STRPTIME_TRUE=
  18381. HAVE_STRPTIME_FALSE='#'
  18382. else
  18383. HAVE_STRPTIME_TRUE='#'
  18384. HAVE_STRPTIME_FALSE=
  18385. fi
  18386. else
  18387. if false; then
  18388. HAVE_STRPTIME_TRUE=
  18389. HAVE_STRPTIME_FALSE='#'
  18390. else
  18391. HAVE_STRPTIME_TRUE='#'
  18392. HAVE_STRPTIME_FALSE=
  18393. fi
  18394. fi
  18395. done
  18396. for ac_func in timegm
  18397. do
  18398. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18399. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18400. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18401. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18402. echo $ECHO_N "(cached) $ECHO_C" >&6
  18403. else
  18404. cat >conftest.$ac_ext <<_ACEOF
  18405. /* confdefs.h. */
  18406. _ACEOF
  18407. cat confdefs.h >>conftest.$ac_ext
  18408. cat >>conftest.$ac_ext <<_ACEOF
  18409. /* end confdefs.h. */
  18410. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18411. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18412. #define $ac_func innocuous_$ac_func
  18413. /* System header to define __stub macros and hopefully few prototypes,
  18414. which can conflict with char $ac_func (); below.
  18415. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18416. <limits.h> exists even on freestanding compilers. */
  18417. #ifdef __STDC__
  18418. # include <limits.h>
  18419. #else
  18420. # include <assert.h>
  18421. #endif
  18422. #undef $ac_func
  18423. /* Override any GCC internal prototype to avoid an error.
  18424. Use char because int might match the return type of a GCC
  18425. builtin and then its argument prototype would still apply. */
  18426. #ifdef __cplusplus
  18427. extern "C"
  18428. #endif
  18429. char $ac_func ();
  18430. /* The GNU C library defines this for functions which it implements
  18431. to always fail with ENOSYS. Some functions are actually named
  18432. something starting with __ and the normal name is an alias. */
  18433. #if defined __stub_$ac_func || defined __stub___$ac_func
  18434. choke me
  18435. #endif
  18436. int
  18437. main ()
  18438. {
  18439. return $ac_func ();
  18440. ;
  18441. return 0;
  18442. }
  18443. _ACEOF
  18444. rm -f conftest.$ac_objext conftest$ac_exeext
  18445. if { (ac_try="$ac_link"
  18446. case "(($ac_try" in
  18447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18448. *) ac_try_echo=$ac_try;;
  18449. esac
  18450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18451. (eval "$ac_link") 2>conftest.er1
  18452. ac_status=$?
  18453. grep -v '^ *+' conftest.er1 >conftest.err
  18454. rm -f conftest.er1
  18455. cat conftest.err >&5
  18456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18457. (exit $ac_status); } && {
  18458. test -z "$ac_cxx_werror_flag" ||
  18459. test ! -s conftest.err
  18460. } && test -s conftest$ac_exeext &&
  18461. $as_test_x conftest$ac_exeext; then
  18462. eval "$as_ac_var=yes"
  18463. else
  18464. echo "$as_me: failed program was:" >&5
  18465. sed 's/^/| /' conftest.$ac_ext >&5
  18466. eval "$as_ac_var=no"
  18467. fi
  18468. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18469. conftest$ac_exeext conftest.$ac_ext
  18470. fi
  18471. ac_res=`eval echo '${'$as_ac_var'}'`
  18472. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18473. echo "${ECHO_T}$ac_res" >&6; }
  18474. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18475. cat >>confdefs.h <<_ACEOF
  18476. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18477. _ACEOF
  18478. if true; then
  18479. HAVE_TIMEGM_TRUE=
  18480. HAVE_TIMEGM_FALSE='#'
  18481. else
  18482. HAVE_TIMEGM_TRUE='#'
  18483. HAVE_TIMEGM_FALSE=
  18484. fi
  18485. else
  18486. if false; then
  18487. HAVE_TIMEGM_TRUE=
  18488. HAVE_TIMEGM_FALSE='#'
  18489. else
  18490. HAVE_TIMEGM_TRUE='#'
  18491. HAVE_TIMEGM_FALSE=
  18492. fi
  18493. fi
  18494. done
  18495. case "$target" in
  18496. *mingw*)
  18497. if true; then
  18498. HAVE_GETADDRINFO_TRUE=
  18499. HAVE_GETADDRINFO_FALSE='#'
  18500. else
  18501. HAVE_GETADDRINFO_TRUE='#'
  18502. HAVE_GETADDRINFO_FALSE=
  18503. fi
  18504. if false; then
  18505. HAVE_GAI_STRERROR_TRUE=
  18506. HAVE_GAI_STRERROR_FALSE='#'
  18507. else
  18508. HAVE_GAI_STRERROR_TRUE='#'
  18509. HAVE_GAI_STRERROR_FALSE=
  18510. fi
  18511. ;;
  18512. esac
  18513. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18514. cat >confcache <<\_ACEOF
  18515. # This file is a shell script that caches the results of configure
  18516. # tests run on this system so they can be shared between configure
  18517. # scripts and configure runs, see configure's option --config-cache.
  18518. # It is not useful on other systems. If it contains results you don't
  18519. # want to keep, you may remove or edit it.
  18520. #
  18521. # config.status only pays attention to the cache file if you give it
  18522. # the --recheck option to rerun configure.
  18523. #
  18524. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18525. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18526. # following values.
  18527. _ACEOF
  18528. # The following way of writing the cache mishandles newlines in values,
  18529. # but we know of no workaround that is simple, portable, and efficient.
  18530. # So, we kill variables containing newlines.
  18531. # Ultrix sh set writes to stderr and can't be redirected directly,
  18532. # and sets the high bit in the cache file unless we assign to the vars.
  18533. (
  18534. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18535. eval ac_val=\$$ac_var
  18536. case $ac_val in #(
  18537. *${as_nl}*)
  18538. case $ac_var in #(
  18539. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18540. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18541. esac
  18542. case $ac_var in #(
  18543. _ | IFS | as_nl) ;; #(
  18544. *) $as_unset $ac_var ;;
  18545. esac ;;
  18546. esac
  18547. done
  18548. (set) 2>&1 |
  18549. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18550. *${as_nl}ac_space=\ *)
  18551. # `set' does not quote correctly, so add quotes (double-quote
  18552. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18553. sed -n \
  18554. "s/'/'\\\\''/g;
  18555. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18556. ;; #(
  18557. *)
  18558. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18559. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18560. ;;
  18561. esac |
  18562. sort
  18563. ) |
  18564. sed '
  18565. /^ac_cv_env_/b end
  18566. t clear
  18567. :clear
  18568. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18569. t end
  18570. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18571. :end' >>confcache
  18572. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18573. if test -w "$cache_file"; then
  18574. test "x$cache_file" != "x/dev/null" &&
  18575. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18576. echo "$as_me: updating cache $cache_file" >&6;}
  18577. cat confcache >$cache_file
  18578. else
  18579. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18580. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18581. fi
  18582. fi
  18583. rm -f confcache
  18584. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18585. # Let make expand exec_prefix.
  18586. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18587. DEFS=-DHAVE_CONFIG_H
  18588. ac_libobjs=
  18589. ac_ltlibobjs=
  18590. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18591. # 1. Remove the extension, and $U if already installed.
  18592. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18593. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18594. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18595. # will be set to the directory where LIBOBJS objects are built.
  18596. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18597. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18598. done
  18599. LIBOBJS=$ac_libobjs
  18600. LTLIBOBJS=$ac_ltlibobjs
  18601. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18602. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18603. Usually this means the macro was only invoked conditionally." >&5
  18604. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18605. Usually this means the macro was only invoked conditionally." >&2;}
  18606. { (exit 1); exit 1; }; }
  18607. fi
  18608. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18609. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18610. Usually this means the macro was only invoked conditionally." >&5
  18611. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18612. Usually this means the macro was only invoked conditionally." >&2;}
  18613. { (exit 1); exit 1; }; }
  18614. fi
  18615. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18616. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18617. Usually this means the macro was only invoked conditionally." >&5
  18618. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18619. Usually this means the macro was only invoked conditionally." >&2;}
  18620. { (exit 1); exit 1; }; }
  18621. fi
  18622. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18623. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18624. Usually this means the macro was only invoked conditionally." >&5
  18625. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18626. Usually this means the macro was only invoked conditionally." >&2;}
  18627. { (exit 1); exit 1; }; }
  18628. fi
  18629. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18630. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18631. Usually this means the macro was only invoked conditionally." >&5
  18632. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18633. Usually this means the macro was only invoked conditionally." >&2;}
  18634. { (exit 1); exit 1; }; }
  18635. fi
  18636. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18637. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18638. Usually this means the macro was only invoked conditionally." >&5
  18639. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18640. Usually this means the macro was only invoked conditionally." >&2;}
  18641. { (exit 1); exit 1; }; }
  18642. fi
  18643. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18644. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18645. Usually this means the macro was only invoked conditionally." >&5
  18646. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18647. Usually this means the macro was only invoked conditionally." >&2;}
  18648. { (exit 1); exit 1; }; }
  18649. fi
  18650. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18651. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18652. Usually this means the macro was only invoked conditionally." >&5
  18653. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18654. Usually this means the macro was only invoked conditionally." >&2;}
  18655. { (exit 1); exit 1; }; }
  18656. fi
  18657. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18658. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18659. Usually this means the macro was only invoked conditionally." >&5
  18660. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18661. Usually this means the macro was only invoked conditionally." >&2;}
  18662. { (exit 1); exit 1; }; }
  18663. fi
  18664. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  18665. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18666. Usually this means the macro was only invoked conditionally." >&5
  18667. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18668. Usually this means the macro was only invoked conditionally." >&2;}
  18669. { (exit 1); exit 1; }; }
  18670. fi
  18671. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  18672. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18673. Usually this means the macro was only invoked conditionally." >&5
  18674. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18675. Usually this means the macro was only invoked conditionally." >&2;}
  18676. { (exit 1); exit 1; }; }
  18677. fi
  18678. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18679. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18680. Usually this means the macro was only invoked conditionally." >&5
  18681. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18682. Usually this means the macro was only invoked conditionally." >&2;}
  18683. { (exit 1); exit 1; }; }
  18684. fi
  18685. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18686. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18687. Usually this means the macro was only invoked conditionally." >&5
  18688. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18689. Usually this means the macro was only invoked conditionally." >&2;}
  18690. { (exit 1); exit 1; }; }
  18691. fi
  18692. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18693. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18694. Usually this means the macro was only invoked conditionally." >&5
  18695. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18696. Usually this means the macro was only invoked conditionally." >&2;}
  18697. { (exit 1); exit 1; }; }
  18698. fi
  18699. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18700. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18701. Usually this means the macro was only invoked conditionally." >&5
  18702. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18703. Usually this means the macro was only invoked conditionally." >&2;}
  18704. { (exit 1); exit 1; }; }
  18705. fi
  18706. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18707. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18708. Usually this means the macro was only invoked conditionally." >&5
  18709. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18710. Usually this means the macro was only invoked conditionally." >&2;}
  18711. { (exit 1); exit 1; }; }
  18712. fi
  18713. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18714. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18715. Usually this means the macro was only invoked conditionally." >&5
  18716. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18717. Usually this means the macro was only invoked conditionally." >&2;}
  18718. { (exit 1); exit 1; }; }
  18719. fi
  18720. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18721. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18722. Usually this means the macro was only invoked conditionally." >&5
  18723. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18724. Usually this means the macro was only invoked conditionally." >&2;}
  18725. { (exit 1); exit 1; }; }
  18726. fi
  18727. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18728. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18729. Usually this means the macro was only invoked conditionally." >&5
  18730. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18731. Usually this means the macro was only invoked conditionally." >&2;}
  18732. { (exit 1); exit 1; }; }
  18733. fi
  18734. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18735. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18736. Usually this means the macro was only invoked conditionally." >&5
  18737. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18738. Usually this means the macro was only invoked conditionally." >&2;}
  18739. { (exit 1); exit 1; }; }
  18740. fi
  18741. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18742. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18743. Usually this means the macro was only invoked conditionally." >&5
  18744. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18745. Usually this means the macro was only invoked conditionally." >&2;}
  18746. { (exit 1); exit 1; }; }
  18747. fi
  18748. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18749. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18750. Usually this means the macro was only invoked conditionally." >&5
  18751. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18752. Usually this means the macro was only invoked conditionally." >&2;}
  18753. { (exit 1); exit 1; }; }
  18754. fi
  18755. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18756. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18757. Usually this means the macro was only invoked conditionally." >&5
  18758. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18759. Usually this means the macro was only invoked conditionally." >&2;}
  18760. { (exit 1); exit 1; }; }
  18761. fi
  18762. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18763. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18764. Usually this means the macro was only invoked conditionally." >&5
  18765. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18766. Usually this means the macro was only invoked conditionally." >&2;}
  18767. { (exit 1); exit 1; }; }
  18768. fi
  18769. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18770. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18771. Usually this means the macro was only invoked conditionally." >&5
  18772. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18773. Usually this means the macro was only invoked conditionally." >&2;}
  18774. { (exit 1); exit 1; }; }
  18775. fi
  18776. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  18777. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  18778. Usually this means the macro was only invoked conditionally." >&5
  18779. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  18780. Usually this means the macro was only invoked conditionally." >&2;}
  18781. { (exit 1); exit 1; }; }
  18782. fi
  18783. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  18784. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  18785. Usually this means the macro was only invoked conditionally." >&5
  18786. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  18787. Usually this means the macro was only invoked conditionally." >&2;}
  18788. { (exit 1); exit 1; }; }
  18789. fi
  18790. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  18791. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  18792. Usually this means the macro was only invoked conditionally." >&5
  18793. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  18794. Usually this means the macro was only invoked conditionally." >&2;}
  18795. { (exit 1); exit 1; }; }
  18796. fi
  18797. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  18798. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  18799. Usually this means the macro was only invoked conditionally." >&5
  18800. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  18801. Usually this means the macro was only invoked conditionally." >&2;}
  18802. { (exit 1); exit 1; }; }
  18803. fi
  18804. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18805. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18806. Usually this means the macro was only invoked conditionally." >&5
  18807. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18808. Usually this means the macro was only invoked conditionally." >&2;}
  18809. { (exit 1); exit 1; }; }
  18810. fi
  18811. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18812. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18813. Usually this means the macro was only invoked conditionally." >&5
  18814. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18815. Usually this means the macro was only invoked conditionally." >&2;}
  18816. { (exit 1); exit 1; }; }
  18817. fi
  18818. : ${CONFIG_STATUS=./config.status}
  18819. ac_clean_files_save=$ac_clean_files
  18820. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18821. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18822. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18823. cat >$CONFIG_STATUS <<_ACEOF
  18824. #! $SHELL
  18825. # Generated by $as_me.
  18826. # Run this file to recreate the current configuration.
  18827. # Compiler output produced by configure, useful for debugging
  18828. # configure, is in config.log if it exists.
  18829. debug=false
  18830. ac_cs_recheck=false
  18831. ac_cs_silent=false
  18832. SHELL=\${CONFIG_SHELL-$SHELL}
  18833. _ACEOF
  18834. cat >>$CONFIG_STATUS <<\_ACEOF
  18835. ## --------------------- ##
  18836. ## M4sh Initialization. ##
  18837. ## --------------------- ##
  18838. # Be more Bourne compatible
  18839. DUALCASE=1; export DUALCASE # for MKS sh
  18840. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18841. emulate sh
  18842. NULLCMD=:
  18843. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18844. # is contrary to our usage. Disable this feature.
  18845. alias -g '${1+"$@"}'='"$@"'
  18846. setopt NO_GLOB_SUBST
  18847. else
  18848. case `(set -o) 2>/dev/null` in
  18849. *posix*) set -o posix ;;
  18850. esac
  18851. fi
  18852. # PATH needs CR
  18853. # Avoid depending upon Character Ranges.
  18854. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18855. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18856. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18857. as_cr_digits='0123456789'
  18858. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18859. # The user is always right.
  18860. if test "${PATH_SEPARATOR+set}" != set; then
  18861. echo "#! /bin/sh" >conf$$.sh
  18862. echo "exit 0" >>conf$$.sh
  18863. chmod +x conf$$.sh
  18864. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18865. PATH_SEPARATOR=';'
  18866. else
  18867. PATH_SEPARATOR=:
  18868. fi
  18869. rm -f conf$$.sh
  18870. fi
  18871. # Support unset when possible.
  18872. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18873. as_unset=unset
  18874. else
  18875. as_unset=false
  18876. fi
  18877. # IFS
  18878. # We need space, tab and new line, in precisely that order. Quoting is
  18879. # there to prevent editors from complaining about space-tab.
  18880. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18881. # splitting by setting IFS to empty value.)
  18882. as_nl='
  18883. '
  18884. IFS=" "" $as_nl"
  18885. # Find who we are. Look in the path if we contain no directory separator.
  18886. case $0 in
  18887. *[\\/]* ) as_myself=$0 ;;
  18888. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18889. for as_dir in $PATH
  18890. do
  18891. IFS=$as_save_IFS
  18892. test -z "$as_dir" && as_dir=.
  18893. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18894. done
  18895. IFS=$as_save_IFS
  18896. ;;
  18897. esac
  18898. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18899. # in which case we are not to be found in the path.
  18900. if test "x$as_myself" = x; then
  18901. as_myself=$0
  18902. fi
  18903. if test ! -f "$as_myself"; then
  18904. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18905. { (exit 1); exit 1; }
  18906. fi
  18907. # Work around bugs in pre-3.0 UWIN ksh.
  18908. for as_var in ENV MAIL MAILPATH
  18909. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18910. done
  18911. PS1='$ '
  18912. PS2='> '
  18913. PS4='+ '
  18914. # NLS nuisances.
  18915. for as_var in \
  18916. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  18917. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  18918. LC_TELEPHONE LC_TIME
  18919. do
  18920. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  18921. eval $as_var=C; export $as_var
  18922. else
  18923. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18924. fi
  18925. done
  18926. # Required to use basename.
  18927. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18928. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18929. as_expr=expr
  18930. else
  18931. as_expr=false
  18932. fi
  18933. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18934. as_basename=basename
  18935. else
  18936. as_basename=false
  18937. fi
  18938. # Name of the executable.
  18939. as_me=`$as_basename -- "$0" ||
  18940. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18941. X"$0" : 'X\(//\)$' \| \
  18942. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18943. echo X/"$0" |
  18944. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18945. s//\1/
  18946. q
  18947. }
  18948. /^X\/\(\/\/\)$/{
  18949. s//\1/
  18950. q
  18951. }
  18952. /^X\/\(\/\).*/{
  18953. s//\1/
  18954. q
  18955. }
  18956. s/.*/./; q'`
  18957. # CDPATH.
  18958. $as_unset CDPATH
  18959. as_lineno_1=$LINENO
  18960. as_lineno_2=$LINENO
  18961. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18962. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  18963. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18964. # uniformly replaced by the line number. The first 'sed' inserts a
  18965. # line-number line after each line using $LINENO; the second 'sed'
  18966. # does the real work. The second script uses 'N' to pair each
  18967. # line-number line with the line containing $LINENO, and appends
  18968. # trailing '-' during substitution so that $LINENO is not a special
  18969. # case at line end.
  18970. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18971. # scripts with optimization help from Paolo Bonzini. Blame Lee
  18972. # E. McMahon (1931-1989) for sed's syntax. :-)
  18973. sed -n '
  18974. p
  18975. /[$]LINENO/=
  18976. ' <$as_myself |
  18977. sed '
  18978. s/[$]LINENO.*/&-/
  18979. t lineno
  18980. b
  18981. :lineno
  18982. N
  18983. :loop
  18984. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  18985. t loop
  18986. s/-\n.*//
  18987. ' >$as_me.lineno &&
  18988. chmod +x "$as_me.lineno" ||
  18989. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  18990. { (exit 1); exit 1; }; }
  18991. # Don't try to exec as it changes $[0], causing all sort of problems
  18992. # (the dirname of $[0] is not the place where we might find the
  18993. # original and so on. Autoconf is especially sensitive to this).
  18994. . "./$as_me.lineno"
  18995. # Exit status is that of the last command.
  18996. exit
  18997. }
  18998. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18999. as_dirname=dirname
  19000. else
  19001. as_dirname=false
  19002. fi
  19003. ECHO_C= ECHO_N= ECHO_T=
  19004. case `echo -n x` in
  19005. -n*)
  19006. case `echo 'x\c'` in
  19007. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19008. *) ECHO_C='\c';;
  19009. esac;;
  19010. *)
  19011. ECHO_N='-n';;
  19012. esac
  19013. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19014. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19015. as_expr=expr
  19016. else
  19017. as_expr=false
  19018. fi
  19019. rm -f conf$$ conf$$.exe conf$$.file
  19020. if test -d conf$$.dir; then
  19021. rm -f conf$$.dir/conf$$.file
  19022. else
  19023. rm -f conf$$.dir
  19024. mkdir conf$$.dir
  19025. fi
  19026. echo >conf$$.file
  19027. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19028. as_ln_s='ln -s'
  19029. # ... but there are two gotchas:
  19030. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19031. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19032. # In both cases, we have to default to `cp -p'.
  19033. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19034. as_ln_s='cp -p'
  19035. elif ln conf$$.file conf$$ 2>/dev/null; then
  19036. as_ln_s=ln
  19037. else
  19038. as_ln_s='cp -p'
  19039. fi
  19040. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19041. rmdir conf$$.dir 2>/dev/null
  19042. if mkdir -p . 2>/dev/null; then
  19043. as_mkdir_p=:
  19044. else
  19045. test -d ./-p && rmdir ./-p
  19046. as_mkdir_p=false
  19047. fi
  19048. if test -x / >/dev/null 2>&1; then
  19049. as_test_x='test -x'
  19050. else
  19051. if ls -dL / >/dev/null 2>&1; then
  19052. as_ls_L_option=L
  19053. else
  19054. as_ls_L_option=
  19055. fi
  19056. as_test_x='
  19057. eval sh -c '\''
  19058. if test -d "$1"; then
  19059. test -d "$1/.";
  19060. else
  19061. case $1 in
  19062. -*)set "./$1";;
  19063. esac;
  19064. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19065. ???[sx]*):;;*)false;;esac;fi
  19066. '\'' sh
  19067. '
  19068. fi
  19069. as_executable_p=$as_test_x
  19070. # Sed expression to map a string onto a valid CPP name.
  19071. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19072. # Sed expression to map a string onto a valid variable name.
  19073. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19074. exec 6>&1
  19075. # Save the log message, to keep $[0] and so on meaningful, and to
  19076. # report actual input values of CONFIG_FILES etc. instead of their
  19077. # values after options handling.
  19078. ac_log="
  19079. This file was extended by aria2c $as_me 0.13.2rc, which was
  19080. generated by GNU Autoconf 2.61. Invocation command line was
  19081. CONFIG_FILES = $CONFIG_FILES
  19082. CONFIG_HEADERS = $CONFIG_HEADERS
  19083. CONFIG_LINKS = $CONFIG_LINKS
  19084. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19085. $ $0 $@
  19086. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19087. "
  19088. _ACEOF
  19089. cat >>$CONFIG_STATUS <<_ACEOF
  19090. # Files that config.status was made for.
  19091. config_files="$ac_config_files"
  19092. config_headers="$ac_config_headers"
  19093. config_commands="$ac_config_commands"
  19094. _ACEOF
  19095. cat >>$CONFIG_STATUS <<\_ACEOF
  19096. ac_cs_usage="\
  19097. \`$as_me' instantiates files from templates according to the
  19098. current configuration.
  19099. Usage: $0 [OPTIONS] [FILE]...
  19100. -h, --help print this help, then exit
  19101. -V, --version print version number and configuration settings, then exit
  19102. -q, --quiet do not print progress messages
  19103. -d, --debug don't remove temporary files
  19104. --recheck update $as_me by reconfiguring in the same conditions
  19105. --file=FILE[:TEMPLATE]
  19106. instantiate the configuration file FILE
  19107. --header=FILE[:TEMPLATE]
  19108. instantiate the configuration header FILE
  19109. Configuration files:
  19110. $config_files
  19111. Configuration headers:
  19112. $config_headers
  19113. Configuration commands:
  19114. $config_commands
  19115. Report bugs to <bug-autoconf@gnu.org>."
  19116. _ACEOF
  19117. cat >>$CONFIG_STATUS <<_ACEOF
  19118. ac_cs_version="\\
  19119. aria2c config.status 0.13.2rc
  19120. configured by $0, generated by GNU Autoconf 2.61,
  19121. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19122. Copyright (C) 2006 Free Software Foundation, Inc.
  19123. This config.status script is free software; the Free Software Foundation
  19124. gives unlimited permission to copy, distribute and modify it."
  19125. ac_pwd='$ac_pwd'
  19126. srcdir='$srcdir'
  19127. INSTALL='$INSTALL'
  19128. MKDIR_P='$MKDIR_P'
  19129. _ACEOF
  19130. cat >>$CONFIG_STATUS <<\_ACEOF
  19131. # If no file are specified by the user, then we need to provide default
  19132. # value. By we need to know if files were specified by the user.
  19133. ac_need_defaults=:
  19134. while test $# != 0
  19135. do
  19136. case $1 in
  19137. --*=*)
  19138. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19139. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19140. ac_shift=:
  19141. ;;
  19142. *)
  19143. ac_option=$1
  19144. ac_optarg=$2
  19145. ac_shift=shift
  19146. ;;
  19147. esac
  19148. case $ac_option in
  19149. # Handling of the options.
  19150. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19151. ac_cs_recheck=: ;;
  19152. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19153. echo "$ac_cs_version"; exit ;;
  19154. --debug | --debu | --deb | --de | --d | -d )
  19155. debug=: ;;
  19156. --file | --fil | --fi | --f )
  19157. $ac_shift
  19158. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19159. ac_need_defaults=false;;
  19160. --header | --heade | --head | --hea )
  19161. $ac_shift
  19162. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19163. ac_need_defaults=false;;
  19164. --he | --h)
  19165. # Conflict between --help and --header
  19166. { echo "$as_me: error: ambiguous option: $1
  19167. Try \`$0 --help' for more information." >&2
  19168. { (exit 1); exit 1; }; };;
  19169. --help | --hel | -h )
  19170. echo "$ac_cs_usage"; exit ;;
  19171. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19172. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19173. ac_cs_silent=: ;;
  19174. # This is an error.
  19175. -*) { echo "$as_me: error: unrecognized option: $1
  19176. Try \`$0 --help' for more information." >&2
  19177. { (exit 1); exit 1; }; } ;;
  19178. *) ac_config_targets="$ac_config_targets $1"
  19179. ac_need_defaults=false ;;
  19180. esac
  19181. shift
  19182. done
  19183. ac_configure_extra_args=
  19184. if $ac_cs_silent; then
  19185. exec 6>/dev/null
  19186. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19187. fi
  19188. _ACEOF
  19189. cat >>$CONFIG_STATUS <<_ACEOF
  19190. if \$ac_cs_recheck; then
  19191. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19192. CONFIG_SHELL=$SHELL
  19193. export CONFIG_SHELL
  19194. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19195. fi
  19196. _ACEOF
  19197. cat >>$CONFIG_STATUS <<\_ACEOF
  19198. exec 5>>config.log
  19199. {
  19200. echo
  19201. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19202. ## Running $as_me. ##
  19203. _ASBOX
  19204. echo "$ac_log"
  19205. } >&5
  19206. _ACEOF
  19207. cat >>$CONFIG_STATUS <<_ACEOF
  19208. #
  19209. # INIT-COMMANDS
  19210. #
  19211. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19212. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19213. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19214. # from automake < 1.5.
  19215. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19216. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19217. LINGUAS="${LINGUAS-%UNSET%}"
  19218. _ACEOF
  19219. cat >>$CONFIG_STATUS <<\_ACEOF
  19220. # Handling of arguments.
  19221. for ac_config_target in $ac_config_targets
  19222. do
  19223. case $ac_config_target in
  19224. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19225. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19226. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19227. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19228. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19229. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19230. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19231. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19232. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19233. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19234. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19235. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19236. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19237. { (exit 1); exit 1; }; };;
  19238. esac
  19239. done
  19240. # If the user did not use the arguments to specify the items to instantiate,
  19241. # then the envvar interface is used. Set only those that are not.
  19242. # We use the long form for the default assignment because of an extremely
  19243. # bizarre bug on SunOS 4.1.3.
  19244. if $ac_need_defaults; then
  19245. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19246. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19247. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19248. fi
  19249. # Have a temporary directory for convenience. Make it in the build tree
  19250. # simply because there is no reason against having it here, and in addition,
  19251. # creating and moving files from /tmp can sometimes cause problems.
  19252. # Hook for its removal unless debugging.
  19253. # Note that there is a small window in which the directory will not be cleaned:
  19254. # after its creation but before its name has been assigned to `$tmp'.
  19255. $debug ||
  19256. {
  19257. tmp=
  19258. trap 'exit_status=$?
  19259. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19260. ' 0
  19261. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19262. }
  19263. # Create a (secure) tmp directory for tmp files.
  19264. {
  19265. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19266. test -n "$tmp" && test -d "$tmp"
  19267. } ||
  19268. {
  19269. tmp=./conf$$-$RANDOM
  19270. (umask 077 && mkdir "$tmp")
  19271. } ||
  19272. {
  19273. echo "$me: cannot create a temporary directory in ." >&2
  19274. { (exit 1); exit 1; }
  19275. }
  19276. #
  19277. # Set up the sed scripts for CONFIG_FILES section.
  19278. #
  19279. # No need to generate the scripts if there are no CONFIG_FILES.
  19280. # This happens for instance when ./config.status config.h
  19281. if test -n "$CONFIG_FILES"; then
  19282. _ACEOF
  19283. ac_delim='%!_!# '
  19284. for ac_last_try in false false false false false :; do
  19285. cat >conf$$subs.sed <<_ACEOF
  19286. SHELL!$SHELL$ac_delim
  19287. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19288. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19289. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19290. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19291. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19292. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19293. exec_prefix!$exec_prefix$ac_delim
  19294. prefix!$prefix$ac_delim
  19295. program_transform_name!$program_transform_name$ac_delim
  19296. bindir!$bindir$ac_delim
  19297. sbindir!$sbindir$ac_delim
  19298. libexecdir!$libexecdir$ac_delim
  19299. datarootdir!$datarootdir$ac_delim
  19300. datadir!$datadir$ac_delim
  19301. sysconfdir!$sysconfdir$ac_delim
  19302. sharedstatedir!$sharedstatedir$ac_delim
  19303. localstatedir!$localstatedir$ac_delim
  19304. includedir!$includedir$ac_delim
  19305. oldincludedir!$oldincludedir$ac_delim
  19306. docdir!$docdir$ac_delim
  19307. infodir!$infodir$ac_delim
  19308. htmldir!$htmldir$ac_delim
  19309. dvidir!$dvidir$ac_delim
  19310. pdfdir!$pdfdir$ac_delim
  19311. psdir!$psdir$ac_delim
  19312. libdir!$libdir$ac_delim
  19313. localedir!$localedir$ac_delim
  19314. mandir!$mandir$ac_delim
  19315. DEFS!$DEFS$ac_delim
  19316. ECHO_C!$ECHO_C$ac_delim
  19317. ECHO_N!$ECHO_N$ac_delim
  19318. ECHO_T!$ECHO_T$ac_delim
  19319. LIBS!$LIBS$ac_delim
  19320. build_alias!$build_alias$ac_delim
  19321. host_alias!$host_alias$ac_delim
  19322. target_alias!$target_alias$ac_delim
  19323. build!$build$ac_delim
  19324. build_cpu!$build_cpu$ac_delim
  19325. build_vendor!$build_vendor$ac_delim
  19326. build_os!$build_os$ac_delim
  19327. host!$host$ac_delim
  19328. host_cpu!$host_cpu$ac_delim
  19329. host_vendor!$host_vendor$ac_delim
  19330. host_os!$host_os$ac_delim
  19331. target!$target$ac_delim
  19332. target_cpu!$target_cpu$ac_delim
  19333. target_vendor!$target_vendor$ac_delim
  19334. target_os!$target_os$ac_delim
  19335. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19336. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19337. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19338. CYGPATH_W!$CYGPATH_W$ac_delim
  19339. PACKAGE!$PACKAGE$ac_delim
  19340. VERSION!$VERSION$ac_delim
  19341. ACLOCAL!$ACLOCAL$ac_delim
  19342. AUTOCONF!$AUTOCONF$ac_delim
  19343. AUTOMAKE!$AUTOMAKE$ac_delim
  19344. AUTOHEADER!$AUTOHEADER$ac_delim
  19345. MAKEINFO!$MAKEINFO$ac_delim
  19346. install_sh!$install_sh$ac_delim
  19347. STRIP!$STRIP$ac_delim
  19348. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19349. mkdir_p!$mkdir_p$ac_delim
  19350. AWK!$AWK$ac_delim
  19351. SET_MAKE!$SET_MAKE$ac_delim
  19352. am__leading_dot!$am__leading_dot$ac_delim
  19353. AMTAR!$AMTAR$ac_delim
  19354. am__tar!$am__tar$ac_delim
  19355. am__untar!$am__untar$ac_delim
  19356. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19357. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19358. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19359. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19360. CXX!$CXX$ac_delim
  19361. CXXFLAGS!$CXXFLAGS$ac_delim
  19362. LDFLAGS!$LDFLAGS$ac_delim
  19363. CPPFLAGS!$CPPFLAGS$ac_delim
  19364. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19365. EXEEXT!$EXEEXT$ac_delim
  19366. OBJEXT!$OBJEXT$ac_delim
  19367. DEPDIR!$DEPDIR$ac_delim
  19368. am__include!$am__include$ac_delim
  19369. am__quote!$am__quote$ac_delim
  19370. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19371. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19372. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19373. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19374. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19375. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19376. CC!$CC$ac_delim
  19377. CFLAGS!$CFLAGS$ac_delim
  19378. ac_ct_CC!$ac_ct_CC$ac_delim
  19379. CCDEPMODE!$CCDEPMODE$ac_delim
  19380. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19381. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19382. RANLIB!$RANLIB$ac_delim
  19383. _ACEOF
  19384. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19385. break
  19386. elif $ac_last_try; then
  19387. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19388. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19389. { (exit 1); exit 1; }; }
  19390. else
  19391. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19392. fi
  19393. done
  19394. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19395. if test -n "$ac_eof"; then
  19396. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19397. ac_eof=`expr $ac_eof + 1`
  19398. fi
  19399. cat >>$CONFIG_STATUS <<_ACEOF
  19400. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19401. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19402. _ACEOF
  19403. sed '
  19404. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19405. s/^/s,@/; s/!/@,|#_!!_#|/
  19406. :n
  19407. t n
  19408. s/'"$ac_delim"'$/,g/; t
  19409. s/$/\\/; p
  19410. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19411. ' >>$CONFIG_STATUS <conf$$subs.sed
  19412. rm -f conf$$subs.sed
  19413. cat >>$CONFIG_STATUS <<_ACEOF
  19414. CEOF$ac_eof
  19415. _ACEOF
  19416. ac_delim='%!_!# '
  19417. for ac_last_try in false false false false false :; do
  19418. cat >conf$$subs.sed <<_ACEOF
  19419. YACC!$YACC$ac_delim
  19420. YFLAGS!$YFLAGS$ac_delim
  19421. CXXCPP!$CXXCPP$ac_delim
  19422. GREP!$GREP$ac_delim
  19423. EGREP!$EGREP$ac_delim
  19424. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19425. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19426. XML_LIBS!$XML_LIBS$ac_delim
  19427. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19428. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19429. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19430. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19431. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19432. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19433. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19434. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19435. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19436. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19437. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19438. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19439. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19440. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19441. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19442. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19443. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19444. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19445. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19446. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19447. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19448. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19449. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19450. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19451. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19452. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19453. ALLOCA!$ALLOCA$ac_delim
  19454. USE_NLS!$USE_NLS$ac_delim
  19455. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19456. MSGFMT!$MSGFMT$ac_delim
  19457. GMSGFMT!$GMSGFMT$ac_delim
  19458. MSGFMT_015!$MSGFMT_015$ac_delim
  19459. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19460. XGETTEXT!$XGETTEXT$ac_delim
  19461. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19462. MSGMERGE!$MSGMERGE$ac_delim
  19463. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19464. GLIBC2!$GLIBC2$ac_delim
  19465. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19466. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19467. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19468. LIBPTH!$LIBPTH$ac_delim
  19469. LTLIBPTH!$LTLIBPTH$ac_delim
  19470. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19471. LIBTHREAD!$LIBTHREAD$ac_delim
  19472. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19473. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19474. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19475. LIBICONV!$LIBICONV$ac_delim
  19476. LTLIBICONV!$LTLIBICONV$ac_delim
  19477. INTLBISON!$INTLBISON$ac_delim
  19478. GLIBC21!$GLIBC21$ac_delim
  19479. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19480. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19481. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19482. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19483. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19484. WOE32DLL!$WOE32DLL$ac_delim
  19485. WOE32!$WOE32$ac_delim
  19486. WINDRES!$WINDRES$ac_delim
  19487. LTLIBC!$LTLIBC$ac_delim
  19488. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19489. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19490. CATOBJEXT!$CATOBJEXT$ac_delim
  19491. DATADIRNAME!$DATADIRNAME$ac_delim
  19492. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19493. GENCAT!$GENCAT$ac_delim
  19494. INTLOBJS!$INTLOBJS$ac_delim
  19495. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19496. INTLLIBS!$INTLLIBS$ac_delim
  19497. LIBINTL!$LIBINTL$ac_delim
  19498. LTLIBINTL!$LTLIBINTL$ac_delim
  19499. POSUB!$POSUB$ac_delim
  19500. LIBOBJS!$LIBOBJS$ac_delim
  19501. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19502. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19503. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19504. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19505. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19506. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19507. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19508. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19509. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19510. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19511. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19512. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19513. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19514. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19515. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19516. _ACEOF
  19517. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19518. break
  19519. elif $ac_last_try; then
  19520. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19521. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19522. { (exit 1); exit 1; }; }
  19523. else
  19524. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19525. fi
  19526. done
  19527. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19528. if test -n "$ac_eof"; then
  19529. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19530. ac_eof=`expr $ac_eof + 1`
  19531. fi
  19532. cat >>$CONFIG_STATUS <<_ACEOF
  19533. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19534. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19535. _ACEOF
  19536. sed '
  19537. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19538. s/^/s,@/; s/!/@,|#_!!_#|/
  19539. :n
  19540. t n
  19541. s/'"$ac_delim"'$/,g/; t
  19542. s/$/\\/; p
  19543. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19544. ' >>$CONFIG_STATUS <conf$$subs.sed
  19545. rm -f conf$$subs.sed
  19546. cat >>$CONFIG_STATUS <<_ACEOF
  19547. CEOF$ac_eof
  19548. _ACEOF
  19549. ac_delim='%!_!# '
  19550. for ac_last_try in false false false false false :; do
  19551. cat >conf$$subs.sed <<_ACEOF
  19552. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19553. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19554. _ACEOF
  19555. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
  19556. break
  19557. elif $ac_last_try; then
  19558. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19559. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19560. { (exit 1); exit 1; }; }
  19561. else
  19562. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19563. fi
  19564. done
  19565. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19566. if test -n "$ac_eof"; then
  19567. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19568. ac_eof=`expr $ac_eof + 1`
  19569. fi
  19570. cat >>$CONFIG_STATUS <<_ACEOF
  19571. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19572. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19573. _ACEOF
  19574. sed '
  19575. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19576. s/^/s,@/; s/!/@,|#_!!_#|/
  19577. :n
  19578. t n
  19579. s/'"$ac_delim"'$/,g/; t
  19580. s/$/\\/; p
  19581. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19582. ' >>$CONFIG_STATUS <conf$$subs.sed
  19583. rm -f conf$$subs.sed
  19584. cat >>$CONFIG_STATUS <<_ACEOF
  19585. :end
  19586. s/|#_!!_#|//g
  19587. CEOF$ac_eof
  19588. _ACEOF
  19589. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19590. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19591. # trailing colons and then remove the whole line if VPATH becomes empty
  19592. # (actually we leave an empty line to preserve line numbers).
  19593. if test "x$srcdir" = x.; then
  19594. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19595. s/:*\$(srcdir):*/:/
  19596. s/:*\${srcdir}:*/:/
  19597. s/:*@srcdir@:*/:/
  19598. s/^\([^=]*=[ ]*\):*/\1/
  19599. s/:*$//
  19600. s/^[^=]*=[ ]*$//
  19601. }'
  19602. fi
  19603. cat >>$CONFIG_STATUS <<\_ACEOF
  19604. fi # test -n "$CONFIG_FILES"
  19605. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  19606. do
  19607. case $ac_tag in
  19608. :[FHLC]) ac_mode=$ac_tag; continue;;
  19609. esac
  19610. case $ac_mode$ac_tag in
  19611. :[FHL]*:*);;
  19612. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  19613. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  19614. { (exit 1); exit 1; }; };;
  19615. :[FH]-) ac_tag=-:-;;
  19616. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19617. esac
  19618. ac_save_IFS=$IFS
  19619. IFS=:
  19620. set x $ac_tag
  19621. IFS=$ac_save_IFS
  19622. shift
  19623. ac_file=$1
  19624. shift
  19625. case $ac_mode in
  19626. :L) ac_source=$1;;
  19627. :[FH])
  19628. ac_file_inputs=
  19629. for ac_f
  19630. do
  19631. case $ac_f in
  19632. -) ac_f="$tmp/stdin";;
  19633. *) # Look for the file first in the build tree, then in the source tree
  19634. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19635. # because $ac_f cannot contain `:'.
  19636. test -f "$ac_f" ||
  19637. case $ac_f in
  19638. [\\/$]*) false;;
  19639. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19640. esac ||
  19641. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19642. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19643. { (exit 1); exit 1; }; };;
  19644. esac
  19645. ac_file_inputs="$ac_file_inputs $ac_f"
  19646. done
  19647. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19648. # use $as_me), people would be surprised to read:
  19649. # /* config.h. Generated by config.status. */
  19650. configure_input="Generated from "`IFS=:
  19651. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  19652. if test x"$ac_file" != x-; then
  19653. configure_input="$ac_file. $configure_input"
  19654. { echo "$as_me:$LINENO: creating $ac_file" >&5
  19655. echo "$as_me: creating $ac_file" >&6;}
  19656. fi
  19657. case $ac_tag in
  19658. *:-:* | *:-) cat >"$tmp/stdin";;
  19659. esac
  19660. ;;
  19661. esac
  19662. ac_dir=`$as_dirname -- "$ac_file" ||
  19663. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19664. X"$ac_file" : 'X\(//\)[^/]' \| \
  19665. X"$ac_file" : 'X\(//\)$' \| \
  19666. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19667. echo X"$ac_file" |
  19668. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19669. s//\1/
  19670. q
  19671. }
  19672. /^X\(\/\/\)[^/].*/{
  19673. s//\1/
  19674. q
  19675. }
  19676. /^X\(\/\/\)$/{
  19677. s//\1/
  19678. q
  19679. }
  19680. /^X\(\/\).*/{
  19681. s//\1/
  19682. q
  19683. }
  19684. s/.*/./; q'`
  19685. { as_dir="$ac_dir"
  19686. case $as_dir in #(
  19687. -*) as_dir=./$as_dir;;
  19688. esac
  19689. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19690. as_dirs=
  19691. while :; do
  19692. case $as_dir in #(
  19693. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  19694. *) as_qdir=$as_dir;;
  19695. esac
  19696. as_dirs="'$as_qdir' $as_dirs"
  19697. as_dir=`$as_dirname -- "$as_dir" ||
  19698. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19699. X"$as_dir" : 'X\(//\)[^/]' \| \
  19700. X"$as_dir" : 'X\(//\)$' \| \
  19701. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19702. echo X"$as_dir" |
  19703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19704. s//\1/
  19705. q
  19706. }
  19707. /^X\(\/\/\)[^/].*/{
  19708. s//\1/
  19709. q
  19710. }
  19711. /^X\(\/\/\)$/{
  19712. s//\1/
  19713. q
  19714. }
  19715. /^X\(\/\).*/{
  19716. s//\1/
  19717. q
  19718. }
  19719. s/.*/./; q'`
  19720. test -d "$as_dir" && break
  19721. done
  19722. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19723. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19724. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19725. { (exit 1); exit 1; }; }; }
  19726. ac_builddir=.
  19727. case "$ac_dir" in
  19728. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19729. *)
  19730. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19731. # A ".." for each directory in $ac_dir_suffix.
  19732. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  19733. case $ac_top_builddir_sub in
  19734. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19735. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19736. esac ;;
  19737. esac
  19738. ac_abs_top_builddir=$ac_pwd
  19739. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19740. # for backward compatibility:
  19741. ac_top_builddir=$ac_top_build_prefix
  19742. case $srcdir in
  19743. .) # We are building in place.
  19744. ac_srcdir=.
  19745. ac_top_srcdir=$ac_top_builddir_sub
  19746. ac_abs_top_srcdir=$ac_pwd ;;
  19747. [\\/]* | ?:[\\/]* ) # Absolute name.
  19748. ac_srcdir=$srcdir$ac_dir_suffix;
  19749. ac_top_srcdir=$srcdir
  19750. ac_abs_top_srcdir=$srcdir ;;
  19751. *) # Relative name.
  19752. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19753. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19754. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19755. esac
  19756. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19757. case $ac_mode in
  19758. :F)
  19759. #
  19760. # CONFIG_FILE
  19761. #
  19762. case $INSTALL in
  19763. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19764. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19765. esac
  19766. ac_MKDIR_P=$MKDIR_P
  19767. case $MKDIR_P in
  19768. [\\/$]* | ?:[\\/]* ) ;;
  19769. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19770. esac
  19771. _ACEOF
  19772. cat >>$CONFIG_STATUS <<\_ACEOF
  19773. # If the template does not know about datarootdir, expand it.
  19774. # FIXME: This hack should be removed a few years after 2.60.
  19775. ac_datarootdir_hack=; ac_datarootdir_seen=
  19776. case `sed -n '/datarootdir/ {
  19777. p
  19778. q
  19779. }
  19780. /@datadir@/p
  19781. /@docdir@/p
  19782. /@infodir@/p
  19783. /@localedir@/p
  19784. /@mandir@/p
  19785. ' $ac_file_inputs` in
  19786. *datarootdir*) ac_datarootdir_seen=yes;;
  19787. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19788. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19789. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19790. _ACEOF
  19791. cat >>$CONFIG_STATUS <<_ACEOF
  19792. ac_datarootdir_hack='
  19793. s&@datadir@&$datadir&g
  19794. s&@docdir@&$docdir&g
  19795. s&@infodir@&$infodir&g
  19796. s&@localedir@&$localedir&g
  19797. s&@mandir@&$mandir&g
  19798. s&\\\${datarootdir}&$datarootdir&g' ;;
  19799. esac
  19800. _ACEOF
  19801. # Neutralize VPATH when `$srcdir' = `.'.
  19802. # Shell code in configure.ac might set extrasub.
  19803. # FIXME: do we really want to maintain this feature?
  19804. cat >>$CONFIG_STATUS <<_ACEOF
  19805. sed "$ac_vpsub
  19806. $extrasub
  19807. _ACEOF
  19808. cat >>$CONFIG_STATUS <<\_ACEOF
  19809. :t
  19810. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19811. s&@configure_input@&$configure_input&;t t
  19812. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19813. s&@srcdir@&$ac_srcdir&;t t
  19814. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19815. s&@top_srcdir@&$ac_top_srcdir&;t t
  19816. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19817. s&@builddir@&$ac_builddir&;t t
  19818. s&@abs_builddir@&$ac_abs_builddir&;t t
  19819. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19820. s&@INSTALL@&$ac_INSTALL&;t t
  19821. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19822. $ac_datarootdir_hack
  19823. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  19824. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19825. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19826. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19827. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19828. which seems to be undefined. Please make sure it is defined." >&5
  19829. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19830. which seems to be undefined. Please make sure it is defined." >&2;}
  19831. rm -f "$tmp/stdin"
  19832. case $ac_file in
  19833. -) cat "$tmp/out"; rm -f "$tmp/out";;
  19834. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  19835. esac
  19836. ;;
  19837. :H)
  19838. #
  19839. # CONFIG_HEADER
  19840. #
  19841. _ACEOF
  19842. # Transform confdefs.h into a sed script `conftest.defines', that
  19843. # substitutes the proper values into config.h.in to produce config.h.
  19844. rm -f conftest.defines conftest.tail
  19845. # First, append a space to every undef/define line, to ease matching.
  19846. echo 's/$/ /' >conftest.defines
  19847. # Then, protect against being on the right side of a sed subst, or in
  19848. # an unquoted here document, in config.status. If some macros were
  19849. # called several times there might be several #defines for the same
  19850. # symbol, which is useless. But do not sort them, since the last
  19851. # AC_DEFINE must be honored.
  19852. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19853. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  19854. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  19855. # PARAMS is the parameter list in the macro definition--in most cases, it's
  19856. # just an empty string.
  19857. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  19858. ac_dB='\\)[ (].*,\\1define\\2'
  19859. ac_dC=' '
  19860. ac_dD=' ,'
  19861. uniq confdefs.h |
  19862. sed -n '
  19863. t rset
  19864. :rset
  19865. s/^[ ]*#[ ]*define[ ][ ]*//
  19866. t ok
  19867. d
  19868. :ok
  19869. s/[\\&,]/\\&/g
  19870. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  19871. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  19872. ' >>conftest.defines
  19873. # Remove the space that was appended to ease matching.
  19874. # Then replace #undef with comments. This is necessary, for
  19875. # example, in the case of _POSIX_SOURCE, which is predefined and required
  19876. # on some systems where configure will not decide to define it.
  19877. # (The regexp can be short, since the line contains either #define or #undef.)
  19878. echo 's/ $//
  19879. s,^[ #]*u.*,/* & */,' >>conftest.defines
  19880. # Break up conftest.defines:
  19881. ac_max_sed_lines=50
  19882. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  19883. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  19884. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  19885. # et cetera.
  19886. ac_in='$ac_file_inputs'
  19887. ac_out='"$tmp/out1"'
  19888. ac_nxt='"$tmp/out2"'
  19889. while :
  19890. do
  19891. # Write a here document:
  19892. cat >>$CONFIG_STATUS <<_ACEOF
  19893. # First, check the format of the line:
  19894. cat >"\$tmp/defines.sed" <<\\CEOF
  19895. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  19896. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  19897. b
  19898. :def
  19899. _ACEOF
  19900. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  19901. echo 'CEOF
  19902. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  19903. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  19904. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  19905. grep . conftest.tail >/dev/null || break
  19906. rm -f conftest.defines
  19907. mv conftest.tail conftest.defines
  19908. done
  19909. rm -f conftest.defines conftest.tail
  19910. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  19911. cat >>$CONFIG_STATUS <<\_ACEOF
  19912. if test x"$ac_file" != x-; then
  19913. echo "/* $configure_input */" >"$tmp/config.h"
  19914. cat "$ac_result" >>"$tmp/config.h"
  19915. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  19916. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  19917. echo "$as_me: $ac_file is unchanged" >&6;}
  19918. else
  19919. rm -f $ac_file
  19920. mv "$tmp/config.h" $ac_file
  19921. fi
  19922. else
  19923. echo "/* $configure_input */"
  19924. cat "$ac_result"
  19925. fi
  19926. rm -f "$tmp/out12"
  19927. # Compute $ac_file's index in $config_headers.
  19928. _am_stamp_count=1
  19929. for _am_header in $config_headers :; do
  19930. case $_am_header in
  19931. $ac_file | $ac_file:* )
  19932. break ;;
  19933. * )
  19934. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19935. esac
  19936. done
  19937. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  19938. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19939. X$ac_file : 'X\(//\)[^/]' \| \
  19940. X$ac_file : 'X\(//\)$' \| \
  19941. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  19942. echo X$ac_file |
  19943. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19944. s//\1/
  19945. q
  19946. }
  19947. /^X\(\/\/\)[^/].*/{
  19948. s//\1/
  19949. q
  19950. }
  19951. /^X\(\/\/\)$/{
  19952. s//\1/
  19953. q
  19954. }
  19955. /^X\(\/\).*/{
  19956. s//\1/
  19957. q
  19958. }
  19959. s/.*/./; q'`/stamp-h$_am_stamp_count
  19960. ;;
  19961. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  19962. echo "$as_me: executing $ac_file commands" >&6;}
  19963. ;;
  19964. esac
  19965. case $ac_file$ac_mode in
  19966. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  19967. # Strip MF so we end up with the name of the file.
  19968. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19969. # Check whether this is an Automake generated Makefile or not.
  19970. # We used to match only the files named `Makefile.in', but
  19971. # some people rename them; so instead we look at the file content.
  19972. # Grep'ing the first line is not enough: some people post-process
  19973. # each Makefile.in and add a new line on top of each file to say so.
  19974. # So let's grep whole file.
  19975. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  19976. dirpart=`$as_dirname -- "$mf" ||
  19977. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19978. X"$mf" : 'X\(//\)[^/]' \| \
  19979. X"$mf" : 'X\(//\)$' \| \
  19980. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19981. echo X"$mf" |
  19982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19983. s//\1/
  19984. q
  19985. }
  19986. /^X\(\/\/\)[^/].*/{
  19987. s//\1/
  19988. q
  19989. }
  19990. /^X\(\/\/\)$/{
  19991. s//\1/
  19992. q
  19993. }
  19994. /^X\(\/\).*/{
  19995. s//\1/
  19996. q
  19997. }
  19998. s/.*/./; q'`
  19999. else
  20000. continue
  20001. fi
  20002. # Extract the definition of DEPDIR, am__include, and am__quote
  20003. # from the Makefile without running `make'.
  20004. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20005. test -z "$DEPDIR" && continue
  20006. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20007. test -z "am__include" && continue
  20008. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20009. # When using ansi2knr, U may be empty or an underscore; expand it
  20010. U=`sed -n 's/^U = //p' < "$mf"`
  20011. # Find all dependency output files, they are included files with
  20012. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20013. # simplest approach to changing $(DEPDIR) to its actual value in the
  20014. # expansion.
  20015. for file in `sed -n "
  20016. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20017. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20018. # Make sure the directory exists.
  20019. test -f "$dirpart/$file" && continue
  20020. fdir=`$as_dirname -- "$file" ||
  20021. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20022. X"$file" : 'X\(//\)[^/]' \| \
  20023. X"$file" : 'X\(//\)$' \| \
  20024. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20025. echo X"$file" |
  20026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20027. s//\1/
  20028. q
  20029. }
  20030. /^X\(\/\/\)[^/].*/{
  20031. s//\1/
  20032. q
  20033. }
  20034. /^X\(\/\/\)$/{
  20035. s//\1/
  20036. q
  20037. }
  20038. /^X\(\/\).*/{
  20039. s//\1/
  20040. q
  20041. }
  20042. s/.*/./; q'`
  20043. { as_dir=$dirpart/$fdir
  20044. case $as_dir in #(
  20045. -*) as_dir=./$as_dir;;
  20046. esac
  20047. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20048. as_dirs=
  20049. while :; do
  20050. case $as_dir in #(
  20051. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20052. *) as_qdir=$as_dir;;
  20053. esac
  20054. as_dirs="'$as_qdir' $as_dirs"
  20055. as_dir=`$as_dirname -- "$as_dir" ||
  20056. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20057. X"$as_dir" : 'X\(//\)[^/]' \| \
  20058. X"$as_dir" : 'X\(//\)$' \| \
  20059. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20060. echo X"$as_dir" |
  20061. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20062. s//\1/
  20063. q
  20064. }
  20065. /^X\(\/\/\)[^/].*/{
  20066. s//\1/
  20067. q
  20068. }
  20069. /^X\(\/\/\)$/{
  20070. s//\1/
  20071. q
  20072. }
  20073. /^X\(\/\).*/{
  20074. s//\1/
  20075. q
  20076. }
  20077. s/.*/./; q'`
  20078. test -d "$as_dir" && break
  20079. done
  20080. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20081. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20082. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20083. { (exit 1); exit 1; }; }; }
  20084. # echo "creating $dirpart/$file"
  20085. echo '# dummy' > "$dirpart/$file"
  20086. done
  20087. done
  20088. ;;
  20089. "po-directories":C)
  20090. for ac_file in $CONFIG_FILES; do
  20091. # Support "outfile[:infile[:infile...]]"
  20092. case "$ac_file" in
  20093. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20094. esac
  20095. # PO directories have a Makefile.in generated from Makefile.in.in.
  20096. case "$ac_file" in */Makefile.in)
  20097. # Adjust a relative srcdir.
  20098. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20099. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20100. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20101. # In autoconf-2.13 it is called $ac_given_srcdir.
  20102. # In autoconf-2.50 it is called $srcdir.
  20103. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20104. case "$ac_given_srcdir" in
  20105. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20106. /*) top_srcdir="$ac_given_srcdir" ;;
  20107. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20108. esac
  20109. # Treat a directory as a PO directory if and only if it has a
  20110. # POTFILES.in file. This allows packages to have multiple PO
  20111. # directories under different names or in different locations.
  20112. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20113. rm -f "$ac_dir/POTFILES"
  20114. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20115. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20116. POMAKEFILEDEPS="POTFILES.in"
  20117. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20118. # on $ac_dir but don't depend on user-specified configuration
  20119. # parameters.
  20120. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20121. # The LINGUAS file contains the set of available languages.
  20122. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20123. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20124. fi
  20125. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20126. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20127. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20128. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20129. else
  20130. # The set of available languages was given in configure.in.
  20131. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20132. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20133. fi
  20134. # Compute POFILES
  20135. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20136. # Compute UPDATEPOFILES
  20137. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20138. # Compute DUMMYPOFILES
  20139. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20140. # Compute GMOFILES
  20141. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20142. case "$ac_given_srcdir" in
  20143. .) srcdirpre= ;;
  20144. *) srcdirpre='$(srcdir)/' ;;
  20145. esac
  20146. POFILES=
  20147. UPDATEPOFILES=
  20148. DUMMYPOFILES=
  20149. GMOFILES=
  20150. for lang in $ALL_LINGUAS; do
  20151. POFILES="$POFILES $srcdirpre$lang.po"
  20152. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20153. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20154. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20155. done
  20156. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20157. # environment variable.
  20158. INST_LINGUAS=
  20159. if test -n "$ALL_LINGUAS"; then
  20160. for presentlang in $ALL_LINGUAS; do
  20161. useit=no
  20162. if test "%UNSET%" != "$LINGUAS"; then
  20163. desiredlanguages="$LINGUAS"
  20164. else
  20165. desiredlanguages="$ALL_LINGUAS"
  20166. fi
  20167. for desiredlang in $desiredlanguages; do
  20168. # Use the presentlang catalog if desiredlang is
  20169. # a. equal to presentlang, or
  20170. # b. a variant of presentlang (because in this case,
  20171. # presentlang can be used as a fallback for messages
  20172. # which are not translated in the desiredlang catalog).
  20173. case "$desiredlang" in
  20174. "$presentlang"*) useit=yes;;
  20175. esac
  20176. done
  20177. if test $useit = yes; then
  20178. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20179. fi
  20180. done
  20181. fi
  20182. CATALOGS=
  20183. if test -n "$INST_LINGUAS"; then
  20184. for lang in $INST_LINGUAS; do
  20185. CATALOGS="$CATALOGS $lang.gmo"
  20186. done
  20187. fi
  20188. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20189. 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"
  20190. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20191. if test -f "$f"; then
  20192. case "$f" in
  20193. *.orig | *.bak | *~) ;;
  20194. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20195. esac
  20196. fi
  20197. done
  20198. fi
  20199. ;;
  20200. esac
  20201. done ;;
  20202. esac
  20203. done # for ac_tag
  20204. { (exit 0); exit 0; }
  20205. _ACEOF
  20206. chmod +x $CONFIG_STATUS
  20207. ac_clean_files=$ac_clean_files_save
  20208. # configure is writing to config.log, and then calls config.status.
  20209. # config.status does its own redirection, appending to config.log.
  20210. # Unfortunately, on DOS this fails, as config.log is still kept open
  20211. # by configure, so config.status won't be able to write to it; its
  20212. # output is simply discarded. So we exec the FD to /dev/null,
  20213. # effectively closing config.log, so it can be properly (re)opened and
  20214. # appended to by config.status. When coming back to configure, we
  20215. # need to make the FD available again.
  20216. if test "$no_create" != yes; then
  20217. ac_cs_success=:
  20218. ac_config_status_args=
  20219. test "$silent" = yes &&
  20220. ac_config_status_args="$ac_config_status_args --quiet"
  20221. exec 5>/dev/null
  20222. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20223. exec 5>>config.log
  20224. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20225. # would make configure fail if this is the last instruction.
  20226. $ac_cs_success || { (exit 1); exit 1; }
  20227. fi
  20228. echo " "
  20229. echo "Build: $build"
  20230. echo "Target: $target"
  20231. echo "Install prefix: $prefix"
  20232. echo "CFLAGS: $CFLAGS"
  20233. echo "CPPFLAGS: $CPPFLAGS"
  20234. echo "LDFLAGS: $LDFLAGS"
  20235. echo "LIBS: $LIBS"
  20236. echo "GnuTLS: $have_libgnutls"
  20237. echo "OpenSSL: $have_openssl"
  20238. echo "LibXML2: $have_libxml2"
  20239. echo "LibExpat: $have_libexpat"
  20240. echo "LibAres: $have_libares"
  20241. echo "LibCares: $have_libcares"
  20242. echo "Bittorrent: $enable_bittorrent"
  20243. echo "Metalink: $enable_metalink"